From deb62df8f65a4781d563ae4ef84fa6eb45fa328e Mon Sep 17 00:00:00 2001 From: mayurrat Date: Sat, 27 Apr 2024 01:04:59 +0530 Subject: [PATCH 01/86] Allow using Env parameters in VRT Config by use of Value Expressions --- .../UI/VisualTesting/VRTAnalyzer.cs | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/Ginger/GingerCoreNET/ActionsLib/UI/VisualTesting/VRTAnalyzer.cs b/Ginger/GingerCoreNET/ActionsLib/UI/VisualTesting/VRTAnalyzer.cs index 8f0df9900d..3b808d2f6c 100644 --- a/Ginger/GingerCoreNET/ActionsLib/UI/VisualTesting/VRTAnalyzer.cs +++ b/Ginger/GingerCoreNET/ActionsLib/UI/VisualTesting/VRTAnalyzer.cs @@ -18,6 +18,7 @@ limitations under the License. using amdocs.ginger.GingerCoreNET; using Amdocs.Ginger.Common; +using GingerCore.Environments; using GingerCoreNET.GeneralLib; using System; using System.Drawing; @@ -45,19 +46,12 @@ public class VRTAnalyzer : IVisualAnalyzer VisualRegressionTracker.VisualRegressionTracker vrt; VisualRegressionTracker.Config config; - public VRTAnalyzer() - { - if (vrt == null) - { - CreateVRTConfig(); - } - } private void CreateVRTConfig() { - ValueExpression VE = new ValueExpression(null, null); + ValueExpression VE = new ValueExpression(GetCurrentProjectEnvironment(), null); - config = new VisualRegressionTracker.Config + config = new Config { BranchName = VE.Calculate(WorkSpace.Instance.Solution.VRTConfiguration.BranchName), Project = VE.Calculate(WorkSpace.Instance.Solution.VRTConfiguration.Project), @@ -67,6 +61,19 @@ private void CreateVRTConfig() }; } + private ProjEnvironment GetCurrentProjectEnvironment() + { + foreach (ProjEnvironment env in WorkSpace.Instance.SolutionRepository.GetAllRepositoryItems()) + { + if (env.Name.Equals(mDriver.GetEnvironment())) + { + return env; + } + } + + return null; + } + public enum eVRTAction { [EnumValueDescription("Start Test")] @@ -188,7 +195,7 @@ private void StartVRT() { } - } + } private void TrackVRT() { From 386881b63b932e71aba26b3b46d664393613c565 Mon Sep 17 00:00:00 2001 From: mayurrat Date: Mon, 29 Apr 2024 16:47:37 +0530 Subject: [PATCH 02/86] Unpushed Local Commits Count was not coming on Warning Message box and di some refactoring. --- Ginger/Ginger/SourceControl/CheckInPage.xaml.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Ginger/Ginger/SourceControl/CheckInPage.xaml.cs b/Ginger/Ginger/SourceControl/CheckInPage.xaml.cs index 12a168ffa9..ce93ac9bdf 100644 --- a/Ginger/Ginger/SourceControl/CheckInPage.xaml.cs +++ b/Ginger/Ginger/SourceControl/CheckInPage.xaml.cs @@ -261,13 +261,14 @@ private async void CommitAndCheckinButton_Click(object sender, RoutedEventArgs e SourceControlIntegration.BusyInProcessWhileDownloading = true; List SelectedFiles = mFiles.Where(x => x.Selected == true).ToList(); - ObservableList unpushedLocalCommits = null; + int unpushedLocalCommitsCount = 0; if (WorkSpace.Instance.Solution.SourceControl.GetSourceControlType == SourceControlBase.eSourceControlType.GIT) { - unpushedLocalCommits = WorkSpace.Instance.Solution.SourceControl.GetUnpushedLocalCommits(); + ObservableList unpushedLocalCommits = WorkSpace.Instance.Solution.SourceControl.GetUnpushedLocalCommits(); + unpushedLocalCommitsCount = unpushedLocalCommits.Count; } - if ((SelectedFiles == null || SelectedFiles.Count == 0) && (unpushedLocalCommits == null || unpushedLocalCommits.Count == 0)) + if ((SelectedFiles == null || SelectedFiles.Count == 0) && (unpushedLocalCommitsCount == 0)) { Reporter.ToUser(eUserMsgKey.SourceControlMissingSelectionToCheckIn); return; @@ -278,9 +279,9 @@ private async void CommitAndCheckinButton_Click(object sender, RoutedEventArgs e return; } - if ((SelectedFiles == null || SelectedFiles.Count == 0) && unpushedLocalCommits != null && unpushedLocalCommits.Count > 0) + if ((SelectedFiles == null || SelectedFiles.Count == 0) && unpushedLocalCommitsCount > 0) { - if (Reporter.ToUser(eUserMsgKey.SourceControlChkInConfirmtionForLocalCommit, unpushedLocalCommits) == eUserMsgSelection.No) + if (Reporter.ToUser(eUserMsgKey.SourceControlChkInConfirmtionForLocalCommit, unpushedLocalCommitsCount) == eUserMsgSelection.No) { return; } @@ -768,7 +769,7 @@ private void RefreshLocalCommitsGrid(object sender, RoutedEventArgs e) private void InitLocalCommitGrid() { LocalCommitedFilesGrid.DataSourceList = WorkSpace.Instance.Solution.SourceControl.GetUnpushedLocalCommits(); - LocalCommitedFilesGrid.Title = $"Pending Local Commits for Check-In {{{LocalCommitedFilesGrid.DataSourceList.Count}}}"; + LocalCommitedFilesGrid.Title = $"Pending Local Commits for Check-In ({LocalCommitedFilesGrid.DataSourceList.Count})"; } private void SetLocalCommitGridView() From c110dcb3f20e52255b1ed8354d52244991d8a615 Mon Sep 17 00:00:00 2001 From: Sudarshan Sathe Date: Mon, 29 Apr 2024 19:05:31 +0530 Subject: [PATCH 03/86] fix #40124 + action, activities graph loading + hide artifact section if no artifacts --- .gitignore | 2 +- Ginger/GingerCoreNET/GingerCoreNET.csproj | 69 +++++++++++++++++++ .../assets/artifacts/test.txt | 0 .../Reports/Ginger-Web-Client/index.html | 2 +- .../main.015f76cbde0590f1.js | 1 - .../main.38bb56b87fd01368.js | 1 - .../main.9fb32635369394e3.js | 1 + .../main.acf1aa309189b63a.js | 1 - 8 files changed, 72 insertions(+), 5 deletions(-) create mode 100644 Ginger/GingerCoreNET/Reports/Ginger-Web-Client/assets/artifacts/test.txt delete mode 100644 Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.015f76cbde0590f1.js delete mode 100644 Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.38bb56b87fd01368.js create mode 100644 Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.9fb32635369394e3.js delete mode 100644 Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.acf1aa309189b63a.js diff --git a/.gitignore b/.gitignore index 6090df72b6..70ec18631b 100644 --- a/.gitignore +++ b/.gitignore @@ -51,7 +51,7 @@ BenchmarkDotNet.Artifacts/ # .NET Core project.lock.json project.fragment.lock.json -artifacts/ + **/Properties/launchSettings.json # StyleCop diff --git a/Ginger/GingerCoreNET/GingerCoreNET.csproj b/Ginger/GingerCoreNET/GingerCoreNET.csproj index 658fb50787..7f65130e82 100644 --- a/Ginger/GingerCoreNET/GingerCoreNET.csproj +++ b/Ginger/GingerCoreNET/GingerCoreNET.csproj @@ -706,6 +706,66 @@ Always + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + + + Always + Always @@ -787,6 +847,9 @@ Always + + Always + Always @@ -1087,12 +1150,18 @@ Always + + Always + Always Always + + Always + PreserveNewest diff --git a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/assets/artifacts/test.txt b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/assets/artifacts/test.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html index a177ada7a5..77071ea9c9 100644 --- a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html +++ b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html @@ -20,5 +20,5 @@
- + diff --git a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.015f76cbde0590f1.js b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.015f76cbde0590f1.js deleted file mode 100644 index c448dbb0c8..0000000000 --- a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.015f76cbde0590f1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkGinger_HtmlReport_Web_App=self.webpackChunkGinger_HtmlReport_Web_App||[]).push([[179],{5544:(tc,xe,z)=>{"use strict";function L(t){return"function"==typeof t}function ae(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const H=ae(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Z(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class F{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(L(n))try{n()}catch(s){i=s instanceof H?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{S(s)}catch(r){i=i??[],r instanceof H?i=[...i,...r.errors]:i.push(r)}}if(i)throw new H(i)}}add(i){var e;if(i&&i!==this)if(this.closed)S(i);else{if(i instanceof F){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Z(e,i)}remove(i){const{_finalizers:e}=this;e&&Z(e,i),i instanceof F&&i._removeParent(this)}}F.EMPTY=(()=>{const t=new F;return t.closed=!0,t})();const N=F.EMPTY;function O(t){return t instanceof F||t&&"closed"in t&&L(t.remove)&&L(t.add)&&L(t.unsubscribe)}function S(t){L(t)?t():t.unsubscribe()}const I={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},v={setTimeout(t,i,...e){const{delegate:n}=v;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=v;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function T(t){v.setTimeout(()=>{const{onUnhandledError:i}=I;if(!i)throw t;i(t)})}function C(){}const k=w("C",void 0,void 0);function w(t,i,e){return{kind:t,value:i,error:e}}let M=null;function $(t){if(I.useDeprecatedSynchronousErrorHandling){const i=!M;if(i&&(M={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=M;if(M=null,e)throw n}}else t()}class B extends F{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,O(i)&&i.add(this)):this.destination=ue}static create(i,e,n){return new R(i,e,n)}next(i){this.isStopped?U(function D(t){return w("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?U(function y(t){return w("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?U(k,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function Y(t,i){return ne.call(t,i)}class Q{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){se(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){se(n)}else se(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){se(e)}}}class R extends B{constructor(i,e,n){let o;if(super(),L(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let s;this&&I.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&Y(i.next,s),error:i.error&&Y(i.error,s),complete:i.complete&&Y(i.complete,s)}):o=i}this.destination=new Q(o)}}function se(t){I.useDeprecatedSynchronousErrorHandling?function ee(t){I.useDeprecatedSynchronousErrorHandling&&M&&(M.errorThrown=!0,M.error=t)}(t):T(t)}function U(t,i){const{onStoppedNotification:e}=I;e&&v.setTimeout(()=>e(t,i))}const ue={closed:!0,next:C,error:function X(t){throw t},complete:C},pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function _e(t){return t}function de(t){return 0===t.length?_e:1===t.length?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}let ce=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){const s=function oe(t){return t&&t instanceof B||function J(t){return t&&L(t.next)&&L(t.error)&&L(t.complete)}(t)&&O(t)}(e)?e:new R(e,n,o);return $(()=>{const{operator:r,source:a}=this;s.add(r?r.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=ie(n))((o,s)=>{const r=new R({next:a=>{try{e(a)}catch(l){s(l),r.unsubscribe()}},error:s,complete:o});this.subscribe(r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[pe](){return this}pipe(...e){return de(e)(this)}toPromise(e){return new(e=ie(e))((n,o)=>{let s;this.subscribe(r=>s=r,r=>o(r),()=>n(s))})}}return t.create=i=>new t(i),t})();function ie(t){var i;return null!==(i=t??I.Promise)&&void 0!==i?i:Promise}const Ie=ae(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class t extends ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new ye(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ie}next(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:o,observers:s}=this;return n||o?N:(this.currentObservers=null,s.push(e),new F(()=>{this.currentObservers=null,Z(s,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:o,isStopped:s}=this;n?e.error(o):s&&e.complete()}asObservable(){const e=new ce;return e.source=this,e}}return t.create=(i,e)=>new ye(i,e),t})();class ye extends re{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:N}}function Be(t){return L(t?.lift)}function Me(t){return i=>{if(Be(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,i,e,n,o){return new Bn(t,i,e,n,o)}class Bn extends B{constructor(i,e,n,o,s,r){super(i),this.onFinalize=s,this.shouldUnsubscribe=r,this._next=e?function(a){try{e(a)}catch(l){i.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function at(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>{n.next(t.call(i,s,o++))}))})}function or(t){return this instanceof or?(this.v=t,this):new or(t)}function Hv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function yo(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=t[s]&&function(r){return new Promise(function(a,l){!function o(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}(a,l,(r=t[s](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const dg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function zv(t){return L(t?.then)}function jv(t){return L(t[pe])}function Uv(t){return Symbol.asyncIterator&&L(t?.[Symbol.asyncIterator])}function $v(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Kv=function d4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Gv(t){return L(t?.[Kv])}function qv(t){return function Bv(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=e.apply(t,i||[]),s=[];return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;function r(m){n[m]&&(o[m]=function(_){return new Promise(function(b,E){s.push([m,_,b,E])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof or?Promise.resolve(m.value.v).then(c,u):p(s[0][2],m)}(n[m](_))}catch(b){p(s[0][3],b)}}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,_){m(_),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:o}=yield or(e.read());if(o)return yield or(void 0);yield yield or(n)}}finally{e.releaseLock()}})}function Wv(t){return L(t?.getReader)}function Ri(t){if(t instanceof ce)return t;if(null!=t){if(jv(t))return function p4(t){return new ce(i=>{const e=t[pe]();if(L(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(dg(t))return function h4(t){return new ce(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,T)})}(t);if(Uv(t))return Qv(t);if(Gv(t))return function g4(t){return new ce(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(Wv(t))return function m4(t){return Qv(qv(t))}(t)}throw $v(t)}function Qv(t){return new ce(i=>{(function _4(t,i){var e,n,o,s;return function As(t,i,e,n){return new(e||(e=Promise))(function(s,r){function a(u){try{c(n.next(u))}catch(p){r(p)}}function l(u){try{c(n.throw(u))}catch(p){r(p)}}function c(u){u.done?s(u.value):function o(s){return s instanceof e?s:new e(function(r){r(s)})}(u.value).then(a,l)}c((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Hv(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(r){o={error:r}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(o)throw o.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function ws(t,i,e,n=0,o=!1){const s=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}function si(t,i,e=1/0){return L(i)?si((n,o)=>at((s,r)=>i(n,s,o,r))(Ri(t(n,o))),e):("number"==typeof i&&(e=i),Me((n,o)=>function I4(t,i,e,n,o,s,r,a){const l=[];let c=0,u=0,p=!1;const m=()=>{p&&!l.length&&!c&&i.complete()},_=E=>c{s&&i.next(E),c++;let P=!1;Ri(e(E,u++)).subscribe(Ue(i,W=>{o?.(W),s?_(W):i.next(W)},()=>{P=!0},void 0,()=>{if(P)try{for(c--;l.length&&cb(W)):b(W)}m()}catch(W){i.error(W)}}))};return t.subscribe(Ue(i,_,()=>{p=!0,m()})),()=>{a?.()}}(n,o,t,e)))}function Ta(t=1/0){return si(_e,t)}const es=new ce(t=>t.complete());function Zv(t){return t&&L(t.schedule)}function pg(t){return t[t.length-1]}function Yv(t){return L(pg(t))?t.pop():void 0}function ic(t){return Zv(pg(t))?t.pop():void 0}function Xv(t,i=0){return Me((e,n)=>{e.subscribe(Ue(n,o=>ws(n,t,()=>n.next(o),i),()=>ws(n,t,()=>n.complete(),i),o=>ws(n,t,()=>n.error(o),i)))})}function Jv(t,i=0){return Me((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function e1(t,i){if(!t)throw new Error("Iterable cannot be null");return new ce(e=>{ws(e,i,()=>{const n=t[Symbol.asyncIterator]();ws(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ri(t,i){return i?function T4(t,i){if(null!=t){if(jv(t))return function b4(t,i){return Ri(t).pipe(Jv(i),Xv(i))}(t,i);if(dg(t))return function x4(t,i){return new ce(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(zv(t))return function y4(t,i){return Ri(t).pipe(Jv(i),Xv(i))}(t,i);if(Uv(t))return e1(t,i);if(Gv(t))return function A4(t,i){return new ce(e=>{let n;return ws(e,i,()=>{n=t[Kv](),ws(e,i,()=>{let o,s;try{({value:o,done:s}=n.next())}catch(r){return void e.error(r)}s?e.complete():e.next(o)},0,!0)}),()=>L(n?.return)&&n.return()})}(t,i);if(Wv(t))return function w4(t,i){return e1(qv(t),i)}(t,i)}throw $v(t)}(t,i):Ri(t)}class xo extends re{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}function ht(...t){return ri(t,ic(t))}function t1(t={}){const{connector:i=(()=>new re),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return s=>{let r,a,l,c=0,u=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),r=l=void 0,u=p=!1},b=()=>{const E=r;_(),E?.unsubscribe()};return Me((E,P)=>{c++,!p&&!u&&m();const W=l=l??i();P.add(()=>{c--,0===c&&!p&&!u&&(a=hg(b,o))}),W.subscribe(P),!r&&c>0&&(r=new R({next:te=>W.next(te),error:te=>{p=!0,m(),a=hg(_,e,te),W.error(te)},complete:()=>{u=!0,m(),a=hg(_,n),W.complete()}}),Ri(E).subscribe(r))})(s)}}function hg(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new R({next:()=>{n.unsubscribe(),t()}});return Ri(i(...e)).subscribe(n)}function Ao(t,i){return Me((e,n)=>{let o=null,s=0,r=!1;const a=()=>r&&!o&&n.complete();e.subscribe(Ue(n,l=>{o?.unsubscribe();let c=0;const u=s++;Ri(t(l,u)).subscribe(o=Ue(n,p=>n.next(i?i(l,p,u,c++):p),()=>{o=null,a()}))},()=>{r=!0,a()}))})}function D4(t,i){return t===i}function fn(t){for(let i in t)if(t[i]===fn)return i;throw Error("Could not find renamed property on target object.")}function _d(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ai(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ai).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function fg(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const k4=fn({__forward_ref__:fn});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return ai(this())},t}function vt(t){return gg(t)?t():t}function gg(t){return"function"==typeof t&&t.hasOwnProperty(k4)&&t.__forward_ref__===ft}function mg(t){return t&&!!t.\u0275providers}const n1="https://g.co/ng/security#xss";class Ae extends Error{constructor(i,e){super(function Id(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function xt(t){return"string"==typeof t?t:null==t?"":String(t)}function _g(t,i){throw new Ae(-201,!1)}function wo(t,i){null==t&&function _t(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function nt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const o1=nt;function Ge(t){return{providers:t.providers||[],imports:t.imports||[]}}function Cd(t){return s1(t,bd)||s1(t,r1)}function s1(t,i){return t.hasOwnProperty(i)?t[i]:null}function vd(t){return t&&(t.hasOwnProperty(Ig)||t.hasOwnProperty(V4))?t[Ig]:null}const bd=fn({\u0275prov:fn}),Ig=fn({\u0275inj:fn}),r1=fn({ngInjectableDef:fn}),V4=fn({ngInjectorDef:fn});var zt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(zt||{});let Cg;function a1(){return Cg}function Yi(t){const i=Cg;return Cg=t,i}function l1(t,i,e){const n=Cd(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&zt.Optional?null:void 0!==i?i:void _g(ai(t))}const Tn=globalThis;class Ye{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=nt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const oc={},Ag="__NG_DI_FLAG__",yd="ngTempTokenPath",z4=/\n/gm,u1="__source";let Sa;function sr(t){const i=Sa;return Sa=t,i}function $4(t,i=zt.Default){if(void 0===Sa)throw new Ae(-203,!1);return null===Sa?l1(t,void 0,i):Sa.get(t,i&zt.Optional?null:void 0,i)}function Ze(t,i=zt.Default){return(a1()||$4)(vt(t),i)}function et(t,i=zt.Default){return Ze(t,xd(i))}function xd(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function wg(t){const i=[];for(let e=0;ei){r=s-1;break}}}for(;ss?"":o[p+1].toLowerCase();const _=8&n?m:null;if(_&&-1!==f1(_,c,0)||2&n&&c!==m){if(Bo(n))return!1;r=!0}}}}else{if(!r&&!Bo(n)&&!Bo(l))return!1;if(r&&Bo(l))continue;r=!1,n=l|1&n}}return Bo(n)||r}function Bo(t){return 0==(1&t)}function Y4(t,i,e,n){if(null===i)return-1;let o=0;if(n||!e){let s=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?o+="."+r:4&n&&(o+=" "+r);else""!==o&&!Bo(r)&&(i+=b1(s,o),o=""),n=r,s=s||!Bo(n);e++}return""!==o&&(i+=b1(s,o)),i}function Oe(t){return Ts(()=>{const i=x1(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ad.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||To.Emulated,styles:t.styles||nn,_:null,schemas:t.schemas||null,tView:null,id:""};A1(e);const n=t.dependencies;return e.directiveDefs=Td(n,!1),e.pipeDefs=Td(n,!0),e.id=function cL(t){let i=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(e),e})}function Dg(t,i,e){const n=t.\u0275cmp;n.directiveDefs=Td(i,!1),n.pipeDefs=Td(e,!0)}function sL(t){return Zt(t)||fi(t)}function rL(t){return null!==t}function qe(t){return Ts(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function y1(t,i){if(null==t)return ts;const e={};for(const n in t)if(t.hasOwnProperty(n)){let o=t[n],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),e[o]=n,i&&(i[o]=s)}return e}function ut(t){return Ts(()=>{const i=x1(t);return A1(i),i})}function Ni(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[wd]||null}function fi(t){return t[Tg]||null}function Vi(t){return t[Sg]||null}function lo(t,i){const e=t[p1]||null;if(!e&&!0===i)throw new Error(`Type ${ai(t)} does not have '\u0275mod' property.`);return e}function x1(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||ts,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:y1(t.inputs,i),outputs:y1(t.outputs)}}function A1(t){t.features?.forEach(i=>i(t))}function Td(t,i){if(!t)return null;const e=i?Vi:sL;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(rL)}const Un=0,it=1,kt=2,Fn=3,Ho=4,lc=5,xi=6,Da=7,Zn=8,rr=9,ka=10,At=11,cc=12,w1=13,Ma=14,Yn=15,uc=16,Oa=17,ns=18,dc=19,T1=20,ar=21,Es=22,pc=23,hc=24,Ut=25,kg=1,S1=2,is=7,La=9,gi=11;function Xi(t){return Array.isArray(t)&&"object"==typeof t[kg]}function Bi(t){return Array.isArray(t)&&!0===t[kg]}function Mg(t){return 0!=(4&t.flags)}function $r(t){return t.componentOffset>-1}function Ed(t){return 1==(1&t.flags)}function zo(t){return!!t.template}function Og(t){return 0!=(512&t[kt])}function Kr(t,i){return t.hasOwnProperty(Ss)?t[Ss]:null}const lr=Symbol("SIGNAL");function k1(t,i){return(null===t||"object"!=typeof t)&&Object.is(t,i)}let mi=null,Dd=!1;function So(t){const i=mi;return mi=t,i}const kd={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function M1(t){if(Dd)throw new Error("");if(null===mi)return;const i=mi.nextProducerIndex++;Pa(mi),it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function F1(t){Pa(t);for(let i=0;i0}function Pa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function V1(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ds(t,i){const e=Object.create(fL);e.computation=t,i?.equal&&(e.equal=i.equal);const n=()=>{if(O1(e),M1(e),e.value===Pd)throw e.error;return e.value};return n[lr]=e,n}const Pg=Symbol("UNSET"),Fg=Symbol("COMPUTING"),Pd=Symbol("ERRORED"),fL=(()=>({...kd,value:Pg,dirty:!0,error:null,equal:k1,producerMustRecompute:t=>t.value===Pg||t.value===Fg,producerRecomputeValue(t){if(t.value===Fg)throw new Error("Detected cycle in computations.");const i=t.value;t.value=Fg;const e=Md(t);let n;try{n=t.computation()}catch(o){n=Pd,t.error=o}finally{Od(t,e)}i!==Pg&&i!==Pd&&n!==Pd&&t.equal(i,n)?t.value=i:(t.value=n,t.version++)}}))();let B1=function gL(){throw new Error};function Rg(){B1()}let Ng=null;function bn(t,i){const e=Object.create(_L);function n(){return M1(e),e.value}return e.value=t,i?.equal&&(e.equal=i.equal),n.set=z1,n.update=IL,n.mutate=CL,n.asReadonly=vL,n[lr]=e,n}const _L=(()=>({...kd,equal:k1,readonlyFn:void 0}))();function H1(t){t.version++,L1(t),Ng?.()}function z1(t){const i=this[lr];Lg()||Rg(),i.equal(i.value,t)||(i.value=t,H1(i))}function IL(t){Lg()||Rg(),z1.call(this,t(this[lr].value))}function CL(t){const i=this[lr];Lg()||Rg(),t(i.value),H1(i)}function vL(){const t=this[lr];if(void 0===t.readonlyFn){const i=()=>this();i[lr]=t,t.readonlyFn=i}return t.readonlyFn}const U1=()=>{},yL=(()=>({...kd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:U1}))();class xL{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Hn(){return $1}function $1(t){return t.type.prototype.ngOnChanges&&(t.setInput=wL),AL}function AL(){const t=G1(this),i=t?.current;if(i){const e=t.previous;if(e===ts)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function wL(t,i,e,n){const o=this.declaredInputs[e],s=G1(t)||function TL(t,i){return t[K1]=i}(t,{previous:ts,current:null}),r=s.current||(s.current={}),a=s.previous,l=a[o];r[o]=new xL(l&&l.currentValue,i,a===ts),t[n]=i}Hn.ngInherit=!0;const K1="__ngSimpleChanges__";function G1(t){return t[K1]||null}const os=function(t,i,e){};function Sn(t){for(;Array.isArray(t);)t=t[Un];return t}function Fd(t,i){return Sn(i[t])}function Ji(t,i){return Sn(i[t.index])}function Q1(t,i){return t.data[i]}function Fa(t,i){return t[i]}function co(t,i){const e=i[t];return Xi(e)?e:e[Un]}function cr(t,i){return null==i?null:t[i]}function Z1(t){t[Oa]=0}function OL(t){1024&t[kt]||(t[kt]|=1024,X1(t,1))}function Y1(t){1024&t[kt]&&(t[kt]&=-1025,X1(t,-1))}function X1(t,i){let e=t[Fn];if(null===e)return;e[lc]+=i;let n=e;for(e=e[Fn];null!==e&&(1===i&&1===n[lc]||-1===i&&0===n[lc]);)e[lc]+=i,n=e,e=e[Fn]}function J1(t,i){if(256==(256&t[kt]))throw new Ae(911,!1);null===t[ar]&&(t[ar]=[]),t[ar].push(i)}const It={lFrame:cb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function tb(){return It.bindingsEnabled}function Ra(){return null!==It.skipHydrationRootTNode}function Ne(){return It.lFrame.lView}function Yt(){return It.lFrame.tView}function G(t){return It.lFrame.contextLView=t,t[Zn]}function q(t){return It.lFrame.contextLView=null,t}function _i(){let t=nb();for(;null!==t&&64===t.type;)t=t.parent;return t}function nb(){return It.lFrame.currentTNode}function ss(t,i){const e=It.lFrame;e.currentTNode=t,e.isParent=i}function Hg(){return It.lFrame.isParent}function zg(){It.lFrame.isParent=!1}function Hi(){const t=It.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Na(){return It.lFrame.bindingIndex++}function Ms(t){const i=It.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function $L(t,i){const e=It.lFrame;e.bindingIndex=e.bindingRootIndex=t,jg(i)}function jg(t){It.lFrame.currentDirectiveIndex=t}function rb(){return It.lFrame.currentQueryIndex}function $g(t){It.lFrame.currentQueryIndex=t}function GL(t){const i=t[it];return 2===i.type?i.declTNode:1===i.type?t[xi]:null}function ab(t,i,e){if(e&zt.SkipSelf){let o=i,s=t;for(;!(o=o.parent,null!==o||e&zt.Host||(o=GL(s),null===o||(s=s[Ma],10&o.type))););if(null===o)return!1;i=o,t=s}const n=It.lFrame=lb();return n.currentTNode=i,n.lView=t,!0}function Kg(t){const i=lb(),e=t[it];It.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function lb(){const t=It.lFrame,i=null===t?null:t.child;return null===i?cb(t):i}function cb(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function ub(){const t=It.lFrame;return It.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const db=ub;function Gg(){const t=ub();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function zi(){return It.lFrame.selectedIndex}function Gr(t){It.lFrame.selectedIndex=t}function zn(){const t=It.lFrame;return Q1(t.tView,t.selectedIndex)}function Mt(){It.lFrame.currentNamespace="svg"}let hb=!0;function Rd(){return hb}function ur(t){hb=t}function Nd(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Oa]+=65536),(a>13>16&&(3&t[kt])===i&&(t[kt]+=8192,gb(a,s)):gb(a,s)}const Va=-1;class _c{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Qg(t){return t!==Va}function Ic(t){return 32767&t}function Cc(t,i){let e=function iP(t){return t>>16}(t),n=i;for(;e>0;)n=n[Ma],e--;return n}let Zg=!0;function Hd(t){const i=Zg;return Zg=t,i}const mb=255,_b=5;let oP=0;const rs={};function zd(t,i){const e=Ib(t,i);if(-1!==e)return e;const n=i[it];n.firstCreatePass&&(t.injectorIndex=i.length,Yg(n.data,t),Yg(i,null),Yg(n.blueprint,null));const o=jd(t,i),s=t.injectorIndex;if(Qg(o)){const r=Ic(o),a=Cc(o,i),l=a[it].data;for(let c=0;c<8;c++)i[s+c]=a[r+c]|l[r+c]}return i[s+8]=o,s}function Yg(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Ib(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function jd(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;null!==o;){if(n=wb(o),null===n)return Va;if(e++,o=o[Ma],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Va}function Xg(t,i,e){!function sP(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(rc)&&(n=e[rc]),null==n&&(n=e[rc]=oP++);const o=n&mb;i.data[t+(o>>_b)]|=1<=0?i&mb:uP:i}(e);if("function"==typeof s){if(!ab(i,t,n))return n&zt.Host?Cb(o,0,n):vb(i,e,n,o);try{let r;if(r=s(n),null!=r||n&zt.Optional)return r;_g()}finally{db()}}else if("number"==typeof s){let r=null,a=Ib(t,i),l=Va,c=n&zt.Host?i[Yn][xi]:null;for((-1===a||n&zt.SkipSelf)&&(l=-1===a?jd(t,i):i[a+8],l!==Va&&Ab(n,!1)?(r=i[it],a=Ic(l),i=Cc(l,i)):a=-1);-1!==a;){const u=i[it];if(xb(s,a,u.data)){const p=aP(a,i,e,r,n,c);if(p!==rs)return p}l=i[a+8],l!==Va&&Ab(n,i[it].data[a+8]===c)&&xb(s,a,i)?(r=u,a=Ic(l),i=Cc(l,i)):a=-1}}return o}function aP(t,i,e,n,o,s){const r=i[it],a=r.data[t+8],u=Ud(a,r,e,null==n?$r(a)&&Zg:n!=r&&0!=(3&a.type),o&zt.Host&&s===a);return null!==u?qr(i,r,u,a):rs}function Ud(t,i,e,n,o){const s=t.providerIndexes,r=i.data,a=1048575&s,l=t.directiveStart,u=s>>20,m=o?a+u:t.directiveEnd;for(let _=n?a:a+u;_=l&&b.type===e)return _}if(o){const _=r[l];if(_&&zo(_)&&_.type===e)return l}return null}function qr(t,i,e,n){let o=t[e];const s=i.data;if(function eP(t){return t instanceof _c}(o)){const r=o;r.resolving&&function M4(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Ae(-200,`Circular dependency in DI detected for ${t}${e}`)}(function pn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():xt(t)}(s[e]));const a=Hd(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?Yi(r.injectImpl):null;ab(t,n,zt.Default);try{o=t[e]=r.factory(void 0,s,t,n),i.firstCreatePass&&e>=n.directiveStart&&function XL(t,i,e){const{ngOnChanges:n,ngOnInit:o,ngDoCheck:s}=i.type.prototype;if(n){const r=$1(i);(e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r)}o&&(e.preOrderHooks??=[]).push(0-t,o),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}(e,s[e],i)}finally{null!==c&&Yi(c),Hd(a),r.resolving=!1,db()}}return o}function xb(t,i,e){return!!(e[i+(t>>_b)]&1<{const i=t.prototype.constructor,e=i[Ss]||Jg(i),n=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){const s=o[Ss]||Jg(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Jg(t){return gg(t)?()=>{const i=Jg(vt(t));return i&&i()}:Kr(t)}function wb(t){const i=t[it],e=i.type;return 2===e?i.declTNode:1===e?t[xi]:null}const Ha="__parameters__";function ja(t,i,e){return Ts(()=>{const n=function em(t){return function(...e){if(t){const n=t(...e);for(const o in n)this[o]=n[o]}}}(i);function o(...s){if(this instanceof o)return n.apply(this,s),this;const r=new o(...s);return a.annotation=r,a;function a(l,c,u){const p=l.hasOwnProperty(Ha)?l[Ha]:Object.defineProperty(l,Ha,{value:[]})[Ha];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(r),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $a(t,i){t.forEach(e=>Array.isArray(e)?$a(e,i):i(e))}function Sb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Kd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function yc(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function IP(t,i,e,n){let o=t.length;if(o==i)t.push(e,n);else if(1===o)t.push(n,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>i;)t[o]=t[o-2],o--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function tm(t,i){const e=Ka(t,i);if(e>=0)return t[1|e]}function Ka(t,i){return function Eb(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){const s=n+(o-n>>1),r=t[s<i?o=s:n=s+1}return~(o<|^->||--!>|)/g,zP="\u200b$1\u200b";const rm=new Map;let jP=0;const lm="__ngContext__";function Ai(t,i){Xi(i)?(t[lm]=i[dc],function $P(t){rm.set(t[dc],t)}(i)):t[lm]=i}let cm;function um(t,i){return cm(t,i)}function wc(t){const i=t[Fn];return Bi(i)?i[Fn]:i}function Wb(t){return Zb(t[cc])}function Qb(t){return Zb(t[Ho])}function Zb(t){for(;null!==t&&!Bi(t);)t=t[Ho];return t}function Wa(t,i,e,n,o){if(null!=n){let s,r=!1;Bi(n)?s=n:Xi(n)&&(r=!0,n=n[Un]);const a=Sn(n);0===t&&null!==e?null==o?ey(i,e,a):Wr(i,e,a,o||null,!0):1===t&&null!==e?Wr(i,e,a,o||null,!0):2===t?function rp(t,i,e){const n=op(t,i);n&&function u5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,a,r):3===t&&i.destroyNode(a),null!=s&&function h5(t,i,e,n,o){const s=e[is];s!==Sn(e)&&Wa(i,t,n,s,o);for(let a=gi;ai.replace(HP,zP))}(i))}function np(t,i,e){return t.createElement(i,e)}function Xb(t,i){const e=t[La],n=e.indexOf(i);Y1(i),e.splice(n,1)}function ip(t,i){if(t.length<=gi)return;const e=gi+i,n=t[e];if(n){const o=n[uc];null!==o&&o!==t&&Xb(o,n),i>0&&(t[e-1][Ho]=n[Ho]);const s=Kd(t,gi+i);!function t5(t,i){Sc(t,i,i[At],2,null,null),i[Un]=null,i[xi]=null}(n[it],n);const r=s[ns];null!==r&&r.detachView(s[it]),n[Fn]=null,n[Ho]=null,n[kt]&=-129}return n}function pm(t,i){if(!(256&i[kt])){const e=i[At];i[pc]&&R1(i[pc]),i[hc]&&R1(i[hc]),e.destroyNode&&Sc(t,i,e,3,null,null),function s5(t){let i=t[cc];if(!i)return hm(t[it],t);for(;i;){let e=null;if(Xi(i))e=i[cc];else{const n=i[gi];n&&(e=n)}if(!e){for(;i&&!i[Ho]&&i!==t;)Xi(i)&&hm(i[it],i),i=i[Fn];null===i&&(i=t),Xi(i)&&hm(i[it],i),e=i&&i[Ho]}i=e}}(i)}}function hm(t,i){if(!(256&i[kt])){i[kt]&=-129,i[kt]|=256,function c5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r]():n[-r].unsubscribe(),s+=2}else e[s].call(n[e[s+1]]);null!==n&&(i[Da]=null);const o=i[ar];if(null!==o){i[ar]=null;for(let s=0;s-1){const{encapsulation:s}=t.data[n.directiveStart+o];if(s===To.None||s===To.Emulated)return null}return Ji(n,e)}}(t,i.parent,e)}function Wr(t,i,e,n,o){t.insertBefore(i,e,n,o)}function ey(t,i,e){t.appendChild(i,e)}function ty(t,i,e,n,o){null!==n?Wr(t,i,e,n,o):ey(t,i,e)}function op(t,i){return t.parentNode(i)}function ny(t,i,e){return oy(t,i,e)}let gm,ap,Cm,lp,oy=function iy(t,i,e){return 40&t.type?Ji(t,e):null};function sp(t,i,e,n){const o=fm(t,n,i),s=i[At],a=ny(n.parent||i[xi],n,i);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return ap}()?.createHTML(t)||t}function Za(){if(void 0!==Cm)return Cm;if(typeof document<"u")return document;throw new Ae(210,!1)}function vm(){if(void 0===lp&&(lp=null,Tn.trustedTypes))try{lp=Tn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lp}function dy(t){return vm()?.createHTML(t)||t}function hy(t){return vm()?.createScriptURL(t)||t}class fy{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${n1})`}}function pr(t){return t instanceof fy?t.changingThisBreaksApplicationSecurity:t}function Ec(t,i){const e=function w5(t){return t instanceof fy&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${n1})`)}return e===i}class T5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(Qa(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class S5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Qa(i),e}}const D5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bm(t){return(t=String(t)).match(D5)?t:"unsafe:"+t}function Os(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Dc(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const my=Os("area,br,col,hr,img,wbr"),_y=Os("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Iy=Os("rp,rt"),ym=Dc(my,Dc(_y,Os("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dc(Iy,Os("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Dc(Iy,_y)),xm=Os("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cy=Dc(xm,Os("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Os("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),k5=Os("script,style,template");class M5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!ym.hasOwnProperty(e))return this.sanitizedSomething=!0,!k5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let o=0;o"),!0}endElement(i){const e=i.nodeName.toLowerCase();ym.hasOwnProperty(e)&&!my.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(vy(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const O5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L5=/([^\#-~ |!])/g;function vy(t){return t.replace(/&/g,"&").replace(O5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(L5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let cp;function Am(t){return"content"in t&&function F5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ya=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ya||{});function hr(t){const i=kc();return i?dy(i.sanitize(Ya.HTML,t)||""):Ec(t,"HTML")?dy(pr(t)):function P5(t,i){let e=null;try{cp=cp||function gy(t){const i=new S5(t);return function E5(){try{return!!(new window.DOMParser).parseFromString(Qa(""),"text/html")}catch{return!1}}()?new T5(i):i}(t);let n=i?String(i):"";e=cp.getInertBodyElement(n);let o=5,s=n;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,n=s,s=e.innerHTML,e=cp.getInertBodyElement(n)}while(n!==s);return Qa((new M5).sanitizeChildren(Am(e)||e))}finally{if(e){const n=Am(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Za(),xt(t))}function Ls(t){const i=kc();return i?i.sanitize(Ya.URL,t)||"":Ec(t,"URL")?pr(t):bm(xt(t))}function by(t){const i=kc();if(i)return hy(i.sanitize(Ya.RESOURCE_URL,t)||"");if(Ec(t,"ResourceURL"))return hy(pr(t));throw new Ae(904,!1)}function kc(){const t=Ne();return t&&t[ka].sanitizer}const Mc=new Ye("ENVIRONMENT_INITIALIZER"),xy=new Ye("INJECTOR",-1),Ay=new Ye("INJECTOR_DEF_TYPES");class wm{get(i,e=oc){if(e===oc){const n=new Error(`NullInjectorError: No provider for ${ai(i)}!`);throw n.name="NullInjectorError",n}return e}}function z5(...t){return{\u0275providers:wy(0,t),\u0275fromNgModule:!0}}function wy(t,...i){const e=[],n=new Set;let o;const s=r=>{e.push(r)};return $a(i,r=>{const a=r;up(a,s,[],n)&&(o||=[],o.push(a))}),void 0!==o&&Ty(o,s),e}function Ty(t,i){for(let e=0;e{i(s,n)})}}function up(t,i,e,n){if(!(t=vt(t)))return!1;let o=null,s=vd(t);const r=!s&&Zt(t);if(s||r){if(r&&!r.standalone)return!1;o=t}else{const l=t.ngModule;if(s=vd(l),!s)return!1;o=l}const a=n.has(o);if(r){if(a)return!1;if(n.add(o),r.dependencies){const l="function"==typeof r.dependencies?r.dependencies():r.dependencies;for(const c of l)up(c,i,e,n)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;n.add(o);try{$a(s.imports,u=>{up(u,i,e,n)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Ty(c,i)}if(!a){const c=Kr(o)||(()=>new o);i({provide:o,useFactory:c,deps:nn},o),i({provide:Ay,useValue:o,multi:!0},o),i({provide:Mc,useValue:()=>Ze(o),multi:!0},o)}const l=s.providers;if(null!=l&&!a){const c=t;Sm(l,u=>{i(u,c)})}}}return o!==t&&void 0!==t.providers}function Sm(t,i){for(let e of t)mg(e)&&(e=e.\u0275providers),Array.isArray(e)?Sm(e,i):i(e)}const j5=fn({provide:String,useValue:fn});function Em(t){return null!==t&&"object"==typeof t&&j5 in t}function Qr(t){return"function"==typeof t}const Dm=new Ye("Set Injector scope."),dp={},$5={};let km;function pp(){return void 0===km&&(km=new wm),km}class po{}class Xa extends po{get destroyed(){return this._destroyed}constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Om(i,r=>this.processProvider(r)),this.records.set(xy,Ja(void 0,this)),o.has("environment")&&this.records.set(po,Ja(void 0,this));const s=this.records.get(Dm);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ay.multi,nn,zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of i)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const e=sr(this),n=Yi(void 0);try{return i()}finally{sr(e),Yi(n)}}get(i,e=oc,n=zt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(h1))return i[h1](this);n=xd(n);const s=sr(this),r=Yi(void 0);try{if(!(n&zt.SkipSelf)){let l=this.records.get(i);if(void 0===l){const c=function Q5(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ye}(i)&&Cd(i);l=c&&this.injectableDefInScope(c)?Ja(Mm(i),dp):null,this.records.set(i,l)}if(null!=l)return this.hydrate(i,l)}return(n&zt.Self?pp():this.parent).get(i,e=n&zt.Optional&&e===oc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[yd]=a[yd]||[]).unshift(ai(i)),s)throw a;return function G4(t,i,e,n){const o=t[yd];throw i[u1]&&o.unshift(i[u1]),t.message=function q4(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=ai(i);if(Array.isArray(i))o=i.map(ai).join(" -> ");else if("object"==typeof i){let s=[];for(let r in i)if(i.hasOwnProperty(r)){let a=i[r];s.push(r+":"+("string"==typeof a?JSON.stringify(a):ai(a)))}o=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(z4,"\n ")}`}("\n"+t.message,o,e,n),t.ngTokenPath=o,t[yd]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{Yi(r),sr(s)}}resolveInjectorInitializers(){const i=sr(this),e=Yi(void 0);try{const o=this.get(Mc.multi,nn,zt.Self);for(const s of o)s()}finally{sr(i),Yi(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(ai(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ae(205,!1)}processProvider(i){let e=Qr(i=vt(i))?i:vt(i&&i.provide);const n=function G5(t){return Em(t)?Ja(void 0,t.useValue):Ja(Dy(t),dp)}(i);if(Qr(i)||!0!==i.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=Ja(void 0,dp,!0),o.factory=()=>wg(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===dp&&(e.value=$5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=vt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){const e=this._onDestroyHooks.indexOf(i);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Mm(t){const i=Cd(t),e=null!==i?i.factory:Kr(t);if(null!==e)return e;if(t instanceof Ye)throw new Ae(204,!1);if(t instanceof Function)return function K5(t){const i=t.length;if(i>0)throw yc(i,"?"),new Ae(204,!1);const e=function N4(t){return t&&(t[bd]||t[r1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ae(204,!1)}function Dy(t,i,e){let n;if(Qr(t)){const o=vt(t);return Kr(o)||Mm(o)}if(Em(t))n=()=>vt(t.useValue);else if(function Ey(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...wg(t.deps||[]));else if(function Sy(t){return!(!t||!t.useExisting)}(t))n=()=>Ze(vt(t.useExisting));else{const o=vt(t&&(t.useClass||t.provide));if(!function q5(t){return!!t.deps}(t))return Kr(o)||Mm(o);n=()=>new o(...wg(t.deps))}return n}function Ja(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Om(t,i){for(const e of t)Array.isArray(e)?Om(e,i):e&&mg(e)?Om(e.\u0275providers,i):i(e)}const hp=new Ye("AppId",{providedIn:"root",factory:()=>Z5}),Z5="ng",ky=new Ye("Platform Initializer"),$n=new Ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),My=new Ye("AnimationModuleType"),Oy=new Ye("CSP nonce",{providedIn:"root",factory:()=>Za().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ly=(t,i,e)=>null;function Hm(t,i,e=!1){return Ly(t,i,e)}class rF{}class Ry{}class lF{resolveComponentFactory(i){throw function aF(t){const i=Error(`No component factory found for ${ai(t)}.`);return i.ngComponent=t,i}(i)}}let Cp=(()=>{class t{static#e=this.NULL=new lF}return t})();function cF(){return nl(_i(),Ne())}function nl(t,i){return new bt(Ji(t,i))}let bt=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=cF}return t})();function uF(t){return t instanceof bt?t.nativeElement:t}class Pc{}let hn=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function dF(){const t=Ne(),e=co(_i().index,t);return(Xi(e)?e:t)[At]}()}return t})(),pF=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>null})}return t})();class Fc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const hF=new Fc("16.2.12"),Um={};function zy(t,i=null,e=null,n){const o=jy(t,i,e,n);return o.resolveInjectorInitializers(),o}function jy(t,i=null,e=null,n,o=new Set){const s=[e||nn,z5(t)];return n=n||("object"==typeof t?void 0:ai(t)),new Xa(s,i||pp(),n||null,o)}let Ui=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=oc;static#t=this.NULL=new wm;static create(e,n){if(Array.isArray(e))return zy({name:""},n,e,"");{const o=e.name??"";return zy({name:o},e.parent,e.providers,o)}}static#n=this.\u0275prov=nt({token:t,providedIn:"any",factory:()=>Ze(xy)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Km(t){return t.ngOriginalError}class Ps{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Km(i);for(;e&&Km(e);)e=Km(e);return e||null}}let vp=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=vF;static#t=this.__NG_ENV_ID__=e=>e}return t})();class CF extends vp{constructor(i){super(),this._lView=i}onDestroy(i){return J1(this._lView,i),()=>function LL(t,i){if(null===t[ar])return;const e=t[ar].indexOf(i);-1!==e&&t[ar].splice(e,1)}(this._lView,i)}}function vF(){return new CF(Ne())}function Gm(t){return i=>{setTimeout(t,void 0,i)}}const ge=class bF extends re{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let o=i,s=e||(()=>null),r=n;if(i&&"object"==typeof i){const l=i;o=l.next?.bind(l),s=l.error?.bind(l),r=l.complete?.bind(l)}this.__isAsync&&(s=Gm(s),o&&(o=Gm(o)),r&&(r=Gm(r)));const a=super.subscribe({next:o,error:s,complete:r});return i instanceof F&&i.add(a),a}};function $y(...t){}class Tt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),typeof Zone>"u")throw new Ae(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&e,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function yF(){const t="function"==typeof Tn.requestAnimationFrame;let i=Tn[t?"requestAnimationFrame":"setTimeout"],e=Tn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function wF(t){const i=()=>{!function AF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Wm(t),t.isCheckStableRunning=!0,qm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Wm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,o,s,r,a)=>{if(function SF(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(o,s,r,a);try{return Ky(t),e.invokeTask(o,s,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&i(),Gy(t)}},onInvoke:(e,n,o,s,r,a,l)=>{try{return Ky(t),e.invoke(o,s,r,a,l)}finally{t.shouldCoalesceRunChangeDetection&&i(),Gy(t)}},onHasTask:(e,n,o,s)=>{e.hasTask(o,s),n===o&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Wm(t),qm(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,o,s)=>(e.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tt.isInAngularZone())throw new Ae(909,!1)}static assertNotInAngularZone(){if(Tt.isInAngularZone())throw new Ae(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+o,i,xF,$y,$y);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const xF={};function qm(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Wm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ky(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gy(t){t._nesting--,qm(t)}class TF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ge,this.onMicrotaskEmpty=new ge,this.onStable=new ge,this.onError=new ge}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}}const qy=new Ye("",{providedIn:"root",factory:Wy});function Wy(){const t=et(Tt);let i=!0;return function S4(...t){const i=ic(t),e=function v4(t,i){return"number"==typeof pg(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Ri(n[0]):Ta(e)(ri(n,i)):es}(new ce(o=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(i),o.complete()})}),new ce(o=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,o.next(!0))})})});const r=t.onUnstable.subscribe(()=>{Tt.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),r.unsubscribe()}}).pipe(t1()))}function Qy(t){return t.ownerDocument}function Fs(t){return t instanceof Function?t():t}let Qm=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function Rc(t){for(;t;){t[kt]|=64;const i=wc(t);if(Og(t)&&!i)return t;t=i}return null}const ex=new Ye("",{providedIn:"root",factory:()=>!1});let yp=null;function ox(t,i){return t[i]??ax()}function sx(t,i){const e=ax();e.producerNode?.length&&(t[i]=yp,e.lView=t,yp=rx())}const RF={...kd,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Rc(t.lView)},lView:null};function rx(){return Object.create(RF)}function ax(){return yp??=rx(),yp}const St={};function h(t){lx(Yt(),Ne(),zi()+t,!1)}function lx(t,i,e,n){if(!n)if(3==(3&i[kt])){const s=t.preOrderCheckHooks;null!==s&&Vd(i,s,e)}else{const s=t.preOrderHooks;null!==s&&Bd(i,s,0,e)}Gr(e)}function V(t,i=zt.Default){const e=Ne();return null===e?Ze(t,i):bb(_i(),e,vt(t),i)}function xp(t,i,e,n,o,s,r,a,l,c,u){const p=i.blueprint.slice();return p[Un]=o,p[kt]=140|n,(null!==c||t&&2048&t[kt])&&(p[kt]|=2048),Z1(p),p[Fn]=p[Ma]=t,p[Zn]=e,p[ka]=r||t&&t[ka],p[At]=a||t&&t[At],p[rr]=l||t&&t[rr]||null,p[xi]=s,p[dc]=function UP(){return jP++}(),p[Es]=u,p[T1]=c,p[Yn]=2==i.type?t[Yn]:p,p}function sl(t,i,e,n,o){let s=t.data[i];if(null===s)s=function Zm(t,i,e,n,o){const s=nb(),r=Hg(),l=t.data[i]=function $F(t,i,e,n,o,s){let r=i?i.injectorIndex:-1,a=0;return Ra()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?s:s&&s.parent,e,i,n,o);return null===t.firstChild&&(t.firstChild=l),null!==s&&(r?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(t,i,e,n,o),function UL(){return It.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=n,s.attrs=o;const r=function mc(){const t=It.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();s.injectorIndex=null===r?-1:r.injectorIndex}return ss(s,!0),s}function Nc(t,i,e,n){if(0===e)return-1;const o=i.length;for(let s=0;sUt&&lx(t,i,Ut,!1),os(a?2:0,o);const c=a?s:null,u=Md(c);try{null!==c&&(c.dirty=!1),e(n,o)}finally{Od(c,u)}}finally{a&&null===i[pc]&&sx(i,pc),Gr(r),os(a?3:1,o)}}function Ym(t,i,e){if(Mg(i)){const n=So(null);try{const s=i.directiveEnd;for(let r=i.directiveStart;rnull;function hx(t,i,e,n){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const s=t[o];null===n?fx(e,i,o,s):n.hasOwnProperty(o)&&fx(e,i,n[o],s)}return e}function fx(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function ho(t,i,e,n,o,s,r,a){const l=Ji(i,e);let u,c=i.inputs;!a&&null!=c&&(u=c[n])?(s_(t,e,u,n,o),$r(i)&&function qF(t,i){const e=co(i,t);16&e[kt]||(e[kt]|=64)}(e,i.index)):3&i.type&&(n=function GF(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),o=null!=r?r(o,i.value||"",n):o,s.setProperty(l,n,o))}function t_(t,i,e,n){if(tb()){const o=null===n?null:{"":-1},s=function JF(t,i){const e=t.directiveRegistry;let n=null,o=null;if(e)for(let s=0;s0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(r)!=a&&r.push(a),r.push(e,n,s)}}(t,i,n,Nc(t,e,o.hostVars,St),o)}function as(t,i,e,n,o,s){const r=Ji(t,i);!function i_(t,i,e,n,o,s,r){if(null==s)t.removeAttribute(i,o,e);else{const a=null==r?xt(s):r(s,n||"",o);t.setAttribute(i,o,a,e)}}(i[At],r,s,t.value,e,n,o)}function sR(t,i,e,n,o,s){const r=s[i];if(null!==r)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,o){const s=typeof Zone>"u"?null:Zone.current,r=function bL(t,i,e){const n=Object.create(yL);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;const o=r=>{n.cleanupFn=r};return n.ref={notify:()=>P1(n),run:()=>{if(n.dirty=!1,n.hasRun&&!F1(n))return;n.hasRun=!0;const r=Md(n);try{n.cleanupFn(),n.cleanupFn=U1,n.fn(o)}finally{Od(n,r)}},cleanup:()=>n.cleanupFn()},n.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,s)},o);let a;this.all.add(r),r.notify();const l=()=>{r.cleanup(),a?.(),this.all.delete(r),this.queue.delete(r)};return a=n?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function a_(t,i){!i?.injector&&function $m(t){if(!a1()&&!function U4(){return Sa}())throw new Ae(-203,!1)}();const e=i?.injector??et(Ui),n=e.get(Ax),o=!0!==i?.manualCleanup?e.get(vp):null;return n.create(t,o,!!i?.allowSignalWrites)}function wp(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,s=0;if(null!==i)for(let r=0;r0){Sx(t,1);const o=e.components;null!==o&&Dx(t,o,1)}}function Dx(t,i,e){for(let n=0;n-1&&(ip(i,n),Kd(e,n))}this._attachedToViewContainer=!1}pm(this._lView[it],this._lView)}onDestroy(i){J1(this._lView,i)}markForCheck(){Rc(this._cdRefInjectingView||this._lView)}detach(){this._lView[kt]&=-129}reattach(){this._lView[kt]|=128}detectChanges(){Tp(this._lView[it],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function o5(t,i){Sc(t,i,i[At],2,null,null)}(this._lView[it],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ae(902,!1);this._appRef=i}}class hR extends Bc{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Tp(i[it],i,i[Zn],!1)}checkNoChanges(){}get context(){return null}}class kx extends Cp{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Zt(i);return new Hc(e,this.ngModule)}}function Mx(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class gR{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=xd(n);const o=this.injector.get(i,Um,n);return o!==Um||e===Um?o:this.parentInjector.get(i,e,n)}}class Hc extends Ry{get inputs(){const i=this.componentDef,e=i.inputTransforms,n=Mx(i.inputs);if(null!==e)for(const o of n)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return n}get outputs(){return Mx(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function iL(t){return t.map(nL).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,o){let s=(o=o||this.ngModule)instanceof po?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const r=s?new gR(i,s):i,a=r.get(Pc,null);if(null===a)throw new Ae(407,!1);const p={rendererFactory:a,sanitizer:r.get(pF,null),effectManager:r.get(Ax,null),afterRenderEventManager:r.get(Qm,null)},m=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=n?function BF(t,i,e,n){const s=n.get(ex,!1)||e===To.ShadowDom,r=t.selectRootElement(i,s);return function HF(t){px(t)}(r),r}(m,n,this.componentDef.encapsulation,r):np(m,_,function fR(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(_)),W=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let te=null;null!==b&&(te=Hm(b,r,!0));const fe=e_(0,null,null,1,0,null,null,null,null,null,null),Ce=xp(null,fe,null,W,null,null,p,m,r,null,te);let ve,ke;Kg(Ce);try{const Pe=this.componentDef;let $e,Ke=null;Pe.findHostDirectiveDefs?($e=[],Ke=new Map,Pe.findHostDirectiveDefs(Pe,$e,Ke),$e.push(Pe)):$e=[Pe];const pt=function _R(t,i){const e=t[it],n=Ut;return t[n]=i,sl(e,n,2,"#host",null)}(Ce,b),jt=function IR(t,i,e,n,o,s,r){const a=o[it];!function CR(t,i,e,n){for(const o of t)i.mergedAttrs=ac(i.mergedAttrs,o.hostAttrs);null!==i.mergedAttrs&&(wp(i,i.mergedAttrs,!0),null!==e&&uy(n,e,i))}(n,t,i,r);let l=null;null!==i&&(l=Hm(i,o[rr]));const c=s.rendererFactory.createRenderer(i,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const p=xp(o,dx(e),null,u,o[t.index],t,s,c,null,null,l);return a.firstCreatePass&&n_(a,t,n.length-1),Ap(o,p),o[t.index]=p}(pt,b,Pe,$e,Ce,p,m);ke=Q1(fe,Ut),b&&function bR(t,i,e,n){if(n)Eg(t,e,["ng-version",hF.full]);else{const{attrs:o,classes:s}=function oL(t){const i=[],e=[];let n=1,o=2;for(;n0&&cy(t,e,s.join(" "))}}(m,Pe,b,n),void 0!==e&&function yR(t,i,e){const n=t.projection=[];for(let o=0;o=0;n--){const o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=ac(o.hostAttrs,e=ac(e,o.hostAttrs))}}(n)}function Sp(t){return t===ts?{}:t===nn?[]:t}function wR(t,i){const e=t.viewQuery;t.viewQuery=e?(n,o)=>{i(n,o),e(n,o)}:i}function TR(t,i){const e=t.contentQueries;t.contentQueries=e?(n,o,s)=>{i(n,o,s),e(n,o,s)}:i}function SR(t,i){const e=t.hostBindings;t.hostBindings=e?(n,o)=>{i(n,o),e(n,o)}:i}function Rx(t){const i=t.inputConfig,e={};for(const n in i)if(i.hasOwnProperty(n)){const o=i[n];Array.isArray(o)&&o[2]&&(e[n]=o[2])}t.inputTransforms=e}function Ep(t){return!!l_(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function l_(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ls(t,i,e){return t[i]=e}function zc(t,i){return t[i]}function wi(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Zr(t,i,e,n){const o=wi(t,i,e);return wi(t,i+1,n)||o}function Dp(t,i,e,n,o){const s=Zr(t,i,e,n);return wi(t,i+2,o)||s}function Do(t,i,e,n,o,s){const r=Zr(t,i,e,n);return Zr(t,i+2,o,s)||r}function K(t,i,e,n){const o=Ne();return wi(o,Na(),i)&&(Yt(),as(zn(),o,t,i,e,n)),K}function al(t,i,e,n){return wi(t,Na(),e)?i+xt(e)+n:St}function ll(t,i,e,n,o,s){const a=Zr(t,function ks(){return It.lFrame.bindingIndex}(),e,o);return Ms(2),a?i+xt(e)+n+xt(o)+s:St}function g(t,i,e,n,o,s,r,a){const l=Ne(),c=Yt(),u=t+Ut,p=c.firstCreatePass?function XR(t,i,e,n,o,s,r,a,l){const c=i.consts,u=sl(i,t,4,r||null,cr(c,a));t_(i,e,u,cr(c,l)),Nd(i,u);const p=u.tView=e_(2,u,n,o,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return null!==i.queries&&(i.queries.template(i,u),p.queries=i.queries.embeddedTView(u)),u}(u,c,l,i,e,n,o,s,r):c.data[u];ss(p,!1);const m=Qx(c,l,p,t);Rd()&&sp(c,l,m,p),Ai(m,l),Ap(l,l[u]=Ix(m,l,m,p)),Ed(p)&&Xm(c,l,p),null!=r&&Jm(l,p,a)}let Qx=function Zx(t,i,e,n){return ur(!0),i[At].createComment("")};function Bt(t){return Fa(function jL(){return It.lFrame.contextLView}(),Ut+t)}function d(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!1),d}function f_(t,i,e,n,o){const r=o?"class":"style";s_(t,e,i.inputs[r],r,n)}function x(t,i,e,n){const o=Ne(),s=Yt(),r=Ut+t,a=o[At],l=s.firstCreatePass?function n6(t,i,e,n,o,s){const r=i.consts,l=sl(i,t,2,n,cr(r,o));return t_(i,e,l,cr(r,s)),null!==l.attrs&&wp(l,l.attrs,!1),null!==l.mergedAttrs&&wp(l,l.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,l),l}(r,s,o,i,e,n):s.data[r],c=Yx(s,o,l,a,i,t);o[r]=c;const u=Ed(l);return ss(l,!0),uy(a,c,l),32!=(32&l.flags)&&Rd()&&sp(s,o,c,l),0===function PL(){return It.lFrame.elementDepthCount}()&&Ai(c,o),function FL(){It.lFrame.elementDepthCount++}(),u&&(Xm(s,o,l),Ym(s,l,o)),null!==n&&Jm(o,l),x}function A(){let t=_i();Hg()?zg():(t=t.parent,ss(t,!1));const i=t;(function NL(t){return It.skipHydrationRootTNode===t})(i)&&function zL(){It.skipHydrationRootTNode=null}(),function RL(){It.lFrame.elementDepthCount--}();const e=Yt();return e.firstCreatePass&&(Nd(e,t),Mg(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function tP(t){return 0!=(8&t.flags)}(i)&&f_(e,i,Ne(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function nP(t){return 0!=(16&t.flags)}(i)&&f_(e,i,Ne(),i.stylesWithoutHost,!1),A}function le(t,i,e,n){return x(t,i,e,n),A(),le}let Yx=(t,i,e,n,o,s)=>(ur(!0),np(n,o,function pb(){return It.lFrame.currentNamespace}()));function we(t,i,e){const n=Ne(),o=Yt(),s=t+Ut,r=o.firstCreatePass?function r6(t,i,e,n,o){const s=i.consts,r=cr(s,n),a=sl(i,t,8,"ng-container",r);return null!==r&&wp(a,r,!0),t_(i,e,a,cr(s,o)),null!==i.queries&&i.queries.elementStart(i,a),a}(s,o,n,i,e):o.data[s];ss(r,!0);const a=Xx(o,n,r,t);return n[s]=a,Rd()&&sp(o,n,a,r),Ai(a,n),Ed(r)&&(Xm(o,n,r),Ym(o,r,n)),null!=e&&Jm(n,r),we}function Te(){let t=_i();const i=Yt();return Hg()?zg():(t=t.parent,ss(t,!1)),i.firstCreatePass&&(Nd(i,t),Mg(t)&&i.queries.elementEnd(t)),Te}function ze(t,i,e){return we(t,i,e),Te(),ze}let Xx=(t,i,e,n)=>(ur(!0),dm(i[At],""));function De(){return Ne()}function Kc(t){return!!t&&"function"==typeof t.then}function Jx(t){return!!t&&"function"==typeof t.subscribe}function me(t,i,e,n){const o=Ne(),s=Yt(),r=_i();return function tA(t,i,e,n,o,s,r){const a=Ed(n),c=t.firstCreatePass&&bx(t),u=i[Zn],p=vx(i);let m=!0;if(3&n.type||r){const E=Ji(n,i),P=r?r(E):E,W=p.length,te=r?Ce=>r(Sn(Ce[n.index])):n.index;let fe=null;if(!r&&a&&(fe=function c6(t,i,e,n){const o=t.cleanup;if(null!=o)for(let s=0;sl?a[l]:null}"string"==typeof r&&(s+=2)}return null}(t,i,o,n.index)),null!==fe)(fe.__ngLastListenerFn__||fe).__ngNextListenerFn__=s,fe.__ngLastListenerFn__=s,m=!1;else{s=iA(n,i,u,s,!1);const Ce=e.listen(P,o,s);p.push(s,Ce),c&&c.push(o,te,W,W+1)}}else s=iA(n,i,u,s,!1);const _=n.outputs;let b;if(m&&null!==_&&(b=_[o])){const E=b.length;if(E)for(let P=0;P-1?co(t.index,i):i);let l=nA(i,e,n,r),c=s.__ngNextListenerFn__;for(;c;)l=nA(i,e,c,r)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&r.preventDefault(),l}}function f(t=1){return function qL(t){return(It.lFrame.contextLView=function WL(t,i){for(;t>0;)i=i[Ma],t--;return i}(t,It.lFrame.contextLView))[Zn]}(t)}function u6(t,i){let e=null;const n=function X4(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let o=0;o>17&32767}function I_(t){return 2|t}function Yr(t){return(131068&t)>>2}function C_(t,i){return-131069&t|i<<2}function v_(t){return 1|t}function dA(t,i,e,n,o){const s=t[e+1],r=null===i;let a=n?fr(s):Yr(s),l=!1;for(;0!==a&&(!1===l||r);){const u=t[a+1];m6(t[a],i)&&(l=!0,t[a+1]=n?v_(u):I_(u)),a=n?fr(u):Yr(u)}l&&(t[e+1]=n?I_(s):v_(s))}function m6(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Ka(t,i)>=0}const ci={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pA(t){return t.substring(ci.key,ci.keyEnd)}function _6(t){return t.substring(ci.value,ci.valueEnd)}function hA(t,i){const e=ci.textEnd;return e===i?-1:(i=ci.keyEnd=function v6(t,i,e){for(;i32;)i++;return i}(t,ci.key=i,e),gl(t,i,e))}function fA(t,i){const e=ci.textEnd;let n=ci.key=gl(t,i,e);return e===n?-1:(n=ci.keyEnd=function b6(t,i,e){let n;for(;i=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=mA(t,n,e),n=ci.value=gl(t,n,e),n=ci.valueEnd=function y6(t,i,e){let n=-1,o=-1,s=-1,r=i,a=r;for(;r32&&(a=r),s=o,o=n,n=-33&l}return a}(t,n,e),mA(t,n,e))}function gA(t){ci.key=0,ci.keyEnd=0,ci.value=0,ci.valueEnd=0,ci.textEnd=t.length}function gl(t,i,e){for(;i=0;e=fA(i,e))vA(t,pA(i),_6(i))}function Ve(t){Uo(D6,cs,t,!0)}function cs(t,i){for(let e=function I6(t){return gA(t),hA(t,gl(t,0,ci.textEnd))}(i);e>=0;e=hA(i,e))uo(t,pA(i),!0)}function jo(t,i,e,n){const o=Ne(),s=Yt(),r=Ms(2);s.firstUpdatePass&&CA(s,t,r,n),i!==St&&wi(o,r,i)&&bA(s,s.data[zi()],o,o[At],t,o[r+1]=function M6(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ai(pr(t)))),t}(i,e),n,r)}function Uo(t,i,e,n){const o=Yt(),s=Ms(2);o.firstUpdatePass&&CA(o,null,s,n);const r=Ne();if(e!==St&&wi(r,s,e)){const a=o.data[zi()];if(xA(a,n)&&!IA(o,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=fg(l,e||"")),f_(o,a,r,e,n)}else!function k6(t,i,e,n,o,s,r,a){o===St&&(o=nn);let l=0,c=0,u=0=t.expandoStartIndex}function CA(t,i,e,n){const o=t.data;if(null===o[e+1]){const s=o[zi()],r=IA(t,e);xA(s,n)&&null===i&&!r&&(i=!1),i=function A6(t,i,e,n){const o=function Ug(t){const i=It.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let s=n?i.residualClasses:i.residualStyles;if(null===o)0===(n?i.classBindings:i.styleBindings)&&(e=Gc(e=b_(null,t,i,e,n),i.attrs,n),s=null);else{const r=i.directiveStylingLast;if(-1===r||t[r]!==o)if(e=b_(o,t,i,e,n),null===s){let l=function w6(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Yr(n))return t[fr(n)]}(t,i,n);void 0!==l&&Array.isArray(l)&&(l=b_(null,t,i,l[1],n),l=Gc(l,i.attrs,n),function T6(t,i,e,n){t[fr(e?i.classBindings:i.styleBindings)]=n}(t,i,n,l))}else s=function S6(t,i,e){let n;const o=i.directiveEnd;for(let s=1+i.directiveStylingLast;s0)&&(c=!0)):u=e,o)if(0!==l){const m=fr(t[a+1]);t[n+1]=Lp(m,a),0!==m&&(t[m+1]=C_(t[m+1],n)),t[a+1]=function p6(t,i){return 131071&t|i<<17}(t[a+1],n)}else t[n+1]=Lp(a,0),0!==a&&(t[a+1]=C_(t[a+1],n)),a=n;else t[n+1]=Lp(l,0),0===a?a=n:t[l+1]=C_(t[l+1],n),l=n;c&&(t[n+1]=I_(t[n+1])),dA(t,u,n,!0),dA(t,u,n,!1),function g6(t,i,e,n,o){const s=o?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof i&&Ka(s,i)>=0&&(e[n+1]=v_(e[n+1]))}(i,u,t,n,s),r=Lp(a,l),s?i.classBindings=r:i.styleBindings=r}(o,s,i,e,r,n)}}function b_(t,i,e,n,o){let s=null;const r=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let m=e[o+1];m===St&&(m=p?nn:void 0);let _=p?tm(m,n):u===n?m:void 0;if(c&&!Pp(_)&&(_=tm(l,n)),Pp(_)&&(a=_,r))return a;const b=t[o+1];o=r?fr(b):Yr(b)}if(null!==i){let l=s?i.residualClasses:i.residualStyles;null!=l&&(a=tm(l,n))}return a}function Pp(t){return void 0!==t}function xA(t,i){return 0!=(t.flags&(i?8:16))}function Le(t,i=""){const e=Ne(),n=Yt(),o=t+Ut,s=n.firstCreatePass?sl(n,o,1,i,null):n.data[o],r=AA(n,e,s,i,t);e[o]=r,Rd()&&sp(n,e,r,s),ss(s,!1)}let AA=(t,i,e,n,o)=>(ur(!0),function tp(t,i){return t.createText(i)}(i[At],n));function dt(t){return Pt("",t,""),dt}function Pt(t,i,e){const n=Ne(),o=al(n,t,i,e);return o!==St&&Rs(n,zi(),o),Pt}function Fp(t,i,e,n,o){const s=Ne(),r=ll(s,t,i,e,n,o);return r!==St&&Rs(s,zi(),r),Fp}function y_(t,i,e){Uo(uo,cs,al(Ne(),t,i,e),!0)}function x_(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!0),x_}const Xr=void 0;var X6=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Y6(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ml={};function $i(t){const i=function J6(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=UA(i);if(e)return e;const n=i.split("-")[0];if(e=UA(n),e)return e;if("en"===n)return X6;throw new Ae(701,!1)}function UA(t){return t in ml||(ml[t]=Tn.ng&&Tn.ng.common&&Tn.ng.common.locales&&Tn.ng.common.locales[t]),ml[t]}var En=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(En||{});const _l="en-US";let $A=_l;function T_(t,i,e,n,o){if(t=vt(t),Array.isArray(t))for(let s=0;s>20;if(Qr(t)||!t.multi){const _=new _c(c,o,V),b=E_(l,i,o?u:u+m,p);-1===b?(Xg(zd(a,r),s,l),S_(s,t,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(_),r.push(_)):(e[b]=_,r[b]=_)}else{const _=E_(l,i,u+m,p),b=E_(l,i,u,u+m),P=b>=0&&e[b];if(o&&!P||!o&&!(_>=0&&e[_])){Xg(zd(a,r),s,l);const W=function X9(t,i,e,n,o){const s=new _c(t,e,V);return s.multi=[],s.index=i,s.componentProviders=0,gw(s,o,n&&!e),s}(o?Y9:Z9,e.length,o,n,c);!o&&P&&(e[b].providerFactory=W),S_(s,t,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(W),r.push(W)}else S_(s,t,_>-1?_:b,gw(e[o?b:_],c,!o&&n));!o&&n&&P&&e[b].componentProviders++}}}function S_(t,i,e,n){const o=Qr(i),s=function U5(t){return!!t.useClass}(i);if(o||s){const l=(s?vt(i.useClass):i).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){const u=c.indexOf(e);-1===u?c.push(e,[n,l]):c[u+1].push(n,l)}else c.push(e,l)}}}function gw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function E_(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>function Q9(t,i,e){const n=Yt();if(n.firstCreatePass){const o=zo(t);T_(e,n.data,n.blueprint,o,!0),T_(i,n.data,n.blueprint,o,!1)}}(n,o?o(t):t,i)}}class Jr{}class mw{}class k_ extends Jr{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kx(this);const o=lo(i);this._bootstrapComponents=Fs(o.bootstrap),this._r3Injector=jy(i,e,[{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver},...n],ai(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class M_ extends mw{constructor(i){super(),this.moduleType=i}create(i){return new k_(this.moduleType,i,[])}}class _w extends Jr{constructor(i){super(),this.componentFactoryResolver=new kx(this),this.instance=null;const e=new Xa([...i.providers,{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver}],i.parent||pp(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function O_(t,i,e=null){return new _w({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}let t7=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=wy(0,e.type),o=n.length>0?O_([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=nt({token:t,providedIn:"environment",factory:()=>new t(Ze(po))})}return t})();function Et(t){t.getStandaloneInjector=i=>i.get(t7).getOrCreateStandaloneInjector(t)}function Jt(t,i,e){const n=Hi()+t,o=Ne();return o[n]===St?ls(o,n,e?i.call(e):i()):zc(o,n)}function He(t,i,e,n){return function ww(t,i,e,n,o,s){const r=i+e;return wi(t,r,o)?ls(t,r+1,s?n.call(s,o):n(o)):Xc(t,r+1)}(Ne(),Hi(),t,i,e,n)}function mt(t,i,e,n,o){return Tw(Ne(),Hi(),t,i,e,n,o)}function Rn(t,i,e,n,o,s){return function Sw(t,i,e,n,o,s,r,a){const l=i+e;return Dp(t,l,o,s,r)?ls(t,l+3,a?n.call(a,o,s,r):n(o,s,r)):Xc(t,l+3)}(Ne(),Hi(),t,i,e,n,o,s)}function gr(t,i,e,n,o,s,r){return function Ew(t,i,e,n,o,s,r,a,l){const c=i+e;return Do(t,c,o,s,r,a)?ls(t,c+4,l?n.call(l,o,s,r,a):n(o,s,r,a)):Xc(t,c+4)}(Ne(),Hi(),t,i,e,n,o,s,r)}function Hp(t,i,e,n,o,s,r,a){const l=Hi()+t,c=Ne(),u=Do(c,l,e,n,o,s);return wi(c,l+4,r)||u?ls(c,l+5,a?i.call(a,e,n,o,s,r):i(e,n,o,s,r)):zc(c,l+5)}function ea(t,i,e,n,o,s,r,a,l){const c=Hi()+t,u=Ne(),p=Do(u,c,e,n,o,s);return Zr(u,c+4,r,a)||p?ls(u,c+6,l?i.call(l,e,n,o,s,r,a):i(e,n,o,s,r,a)):zc(u,c+6)}function zp(t,i,e,n){return function Dw(t,i,e,n,o,s){let r=i+e,a=!1;for(let l=0;l=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];const s=n.factory||(n.factory=Kr(n.type)),a=Yi(V);try{const l=Hd(!1),c=s();return Hd(l),function t6(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,Ne(),o,c),c}finally{Yi(a)}}function Cl(t,i,e,n){const o=t+Ut,s=Ne(),r=Fa(s,o);return function Jc(t,i){return t[it].data[i].pure}(s,o)?Tw(s,Hi(),i,r.transform,e,n,r):r.transform(e,n)}function _7(){return this._results[Symbol.iterator]()}class P_{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new ge)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=P_.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_7)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const o=function Eo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function mP(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n0&&(e[o-1][Ho]=i),n{class t{static#e=this.__NG_ELEMENT_ID__=y7}return t})();const v7=$o,b7=class extends v7{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){const o=function I7(t,i,e,n){const o=i.tView,a=xp(t,o,e,4096&t[kt]?4096:16,null,i,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[uc]=t[i.index];const c=t[ns];return null!==c&&(a[ns]=c.createEmbeddedView(o)),r_(o,a,e),a}(this._declarationLView,this._declarationTContainer,i,{injector:e,hydrationInfo:n});return new Bc(o)}};function y7(){return jp(_i(),Ne())}function jp(t,i){return 4&t.type?new b7(i,t,nl(t,i)):null}let go=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=E7}return t})();function E7(){return Rw(_i(),Ne())}const D7=go,Pw=class extends D7{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return nl(this._hostTNode,this._hostLView)}get injector(){return new ji(this._hostTNode,this._hostLView)}get parentInjector(){const i=jd(this._hostTNode,this._hostLView);if(Qg(i)){const e=Cc(i,this._hostLView),n=Ic(i);return new ji(e[it].data[n+8],e)}return new ji(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=Fw(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-gi}createEmbeddedView(i,e,n){let o,s;"number"==typeof n?o=n:null!=n&&(o=n.index,s=n.injector);const a=i.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(a,o,false),a}createComponent(i,e,n,o,s){const r=i&&!function bc(t){return"function"==typeof t}(i);let a;if(r)a=e;else{const E=e||{};a=E.index,n=E.injector,o=E.projectableNodes,s=E.environmentInjector||E.ngModuleRef}const l=r?i:new Hc(Zt(i)),c=n||this.parentInjector;if(!s&&null==l.ngModule){const P=(r?c:this.parentInjector).get(po,null);P&&(s=P)}Zt(l.componentType??{});const _=l.create(c,o,null,s);return this.insertImpl(_.hostView,a,false),_}insert(i,e){return this.insertImpl(i,e,!1)}insertImpl(i,e,n){const o=i._lView;if(function ML(t){return Bi(t[Fn])}(o)){const l=this.indexOf(i);if(-1!==l)this.detach(l);else{const c=o[Fn],u=new Pw(c,c[xi],c[Fn]);u.detach(u.indexOf(i))}}const r=this._adjustIndex(e),a=this._lContainer;return C7(a,o,r,!n),i.attachToViewContainerRef(),Sb(F_(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=Fw(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);n&&(Kd(F_(this._lContainer),e),pm(n[it],n))}detach(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);return n&&null!=Kd(F_(this._lContainer),e)?new Bc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Fw(t){return t[8]}function F_(t){return t[8]||(t[8]=[])}function Rw(t,i){let e;const n=i[t.index];return Bi(n)?e=n:(e=Ix(n,i,null,t),i[t.index]=e,Ap(i,e)),Nw(e,i,t,n),new Pw(e,t,i)}let Nw=function Vw(t,i,e,n){if(t[is])return;let o;o=8&e.type?Sn(n):function k7(t,i){const e=t[At],n=e.createComment(""),o=Ji(i,t);return Wr(e,op(e,o),n,function d5(t,i){return t.nextSibling(i)}(e,o),!1),n}(i,e),t[is]=o};class R_{constructor(i){this.queryList=i,this.matches=null}clone(){return new R_(this.queryList)}setDirty(){this.queryList.setDirty()}}class N_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,o=[];for(let s=0;s0)n.push(r[a/2]);else{const c=s[a+1],u=i[-l];for(let p=gi;p{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=et(G_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const s=o();if(Kc(s))e.push(s);else if(Jx(s)){const r=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(r)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),a2=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const us=new Ye("LocaleId",{providedIn:"root",factory:()=>et(us,zt.Optional|zt.SkipSelf)||function sN(){return typeof $localize<"u"&&$localize.locale||_l}()});let Kp=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xo(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class lN{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let l2=(()=>{class t{compileModuleSync(e){return new M_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=Fs(lo(e).declarations).reduce((r,a)=>{const l=Zt(a);return l&&r.push(new Hc(l)),r},[]);return new lN(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const p2=new Ye(""),qp=new Ye("");let X_,Z_=(()=>{class t{constructor(e,n,o){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,X_||(function kN(t){X_=t}(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:o})}whenStable(e,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Tt),Ze(Y_),Ze(qp))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),Y_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return X_?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),mr=null;const h2=new Ye("AllowMultipleToken"),J_=new Ye("PlatformDestroyListeners"),e0=new Ye("appBootstrapListener");class g2{constructor(i,e){this.name=i,this.token=e}}function _2(t,i,e=[]){const n=`Platform: ${i}`,o=new Ye(n);return(s=[])=>{let r=t0();if(!r||r.injector.get(h2,!1)){const a=[...e,...s,{provide:o,useValue:!0}];t?t(a):function LN(t){if(mr&&!mr.get(h2,!1))throw new Ae(400,!1);(function f2(){!function mL(t){B1=t}(()=>{throw new Ae(600,!1)})})(),mr=t;const i=t.get(C2);(function m2(t){t.get(ky,null)?.forEach(e=>e())})(t)}(function I2(t=[],i){return Ui.create({name:i,providers:[{provide:Dm,useValue:"platform"},{provide:J_,useValue:new Set([()=>mr=null])},...t]})}(a,n))}return function FN(t){const i=t0();if(!i)throw new Ae(401,!1);return i}()}}function t0(){return mr?.get(C2)??null}let C2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const o=function RN(t="zone.js",i){return"noop"===t?new TF:"zone.js"===t?new Tt(i):t}(n?.ngZone,function v2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{const s=function e7(t,i,e){return new k_(t,i,e)}(e.moduleType,this.injector,function w2(t){return[{provide:Tt,useFactory:t},{provide:Mc,multi:!0,useFactory:()=>{const i=et(VN,{optional:!0});return()=>i.initialize()}},{provide:A2,useFactory:NN},{provide:qy,useFactory:Wy}]}(()=>o)),r=s.injector.get(Ps,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{r.handleError(l)}});s.onDestroy(()=>{Wp(this._modules,s),a.unsubscribe()})}),function b2(t,i,e){try{const n=e();return Kc(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(r,o,()=>{const a=s.injector.get(q_);return a.runInitializers(),a.donePromise.then(()=>(function KA(t){wo(t,"Expected localeId to be defined"),"string"==typeof t&&($A=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(us,_l)||_l),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const o=y2({},n);return function MN(t,i,e){const n=new M_(e);return Promise.resolve(n)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(e){const n=e.injector.get(ta);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>n.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Ae(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ae(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(J_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Ui))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function y2(t,i){return Array.isArray(i)?i.reduce(y2,t):{...t,...i}}let ta=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=et(A2),this.zoneIsStable=et(qy),this.componentTypes=[],this.components=[],this.isStable=et(Kp).hasPendingTasks.pipe(Ao(e=>e?ht(!1):this.zoneIsStable),function E4(t,i=_e){return t=t??D4,Me((e,n)=>{let o,s=!0;e.subscribe(Ue(n,r=>{const a=i(r);(s||!t(o,a))&&(s=!1,o=a,n.next(r))}))})}(),t1()),this._injector=et(po)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const o=e instanceof Ry;if(!this._injector.get(q_).done)throw!o&&function Ea(t){const i=Zt(t)||fi(t)||Vi(t);return null!==i&&i.standalone}(e),new Ae(405,!1);let r;r=o?e:this._injector.get(Cp).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const a=function ON(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Jr),c=r.create(Ui.NULL,[],n||r.selector,a),u=c.location.nativeElement,p=c.injector.get(p2,null);return p?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Wp(this.components,c),p?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ae(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Wp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(e0,[]);n.push(...this._bootstrapListeners),n.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Wp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ae(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const A2=new Ye("",{providedIn:"root",factory:()=>et(Ps).handleError.bind(void 0)});function NN(){const t=et(Tt),i=et(Ps);return e=>t.runOutsideAngular(()=>i.handleError(e))}let VN=(()=>{class t{constructor(){this.zone=et(Tt),this.applicationRef=et(ta)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let Ft=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=HN}return t})();function HN(t){return function zN(t,i,e){if($r(t)&&!e){const n=co(t.index,i);return new Bc(n,n)}return 47&t.type?new Bc(i[Yn],i):null}(_i(),Ne(),16==(16&t))}class D2{constructor(){}supports(i){return Ep(i)}create(i){return new qN(i)}}const GN=(t,i)=>i;class qN{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||GN}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,a,r,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,r,o),n=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,s,o)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,s,o)):i=this._addAfter(new WN(e,n),s,o),i}_verifyReinsertion(i,e,n,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?i=this._reinsertAfter(s,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const o=i._prevRemoved,s=i._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const o=null===e?this._itHead:e._next;return i._next=o,i._prev=e,null===o?this._itTail=i:o._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new k2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new k2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class WN{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class QN{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class k2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new QN,this.map.set(e,n)),n.add(i)}get(i,e){const o=this.map.get(i);return o?o.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function M2(t,i,e){const n=t.previousIndex;if(null===n)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const o=this._records.get(i);this._maybeAddToChanges(o,e);const s=o._prev,r=o._next;return s&&(s._next=r),r&&(r._prev=s),o._next=null,o._prev=null,o}const n=new YN(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class YN{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function L2(){return new Yp([new D2])}let Yp=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:L2});constructor(e){this.factories=e}static create(e,n){if(null!=n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||L2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(null!=n)return n;throw new Ae(901,!1)}}return t})();function P2(){return new yl([new O2])}let yl=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:P2});constructor(e){this.factories=e}static create(e,n){if(n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||P2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new Ae(901,!1)}}return t})();const e8=_2(null,"core",[]);let t8=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ta))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function xl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let l0=null;function _r(){return l0}class m8{}const Wt=new Ye("DocumentToken");let c0=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(I8)},providedIn:"platform"})}return t})();const _8=new Ye("Location Initialized");let I8=(()=>{class t extends c0{constructor(){super(),this._doc=et(Wt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function u0(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function U2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ns(t){return t&&"?"!==t[0]?"?"+t:t}let Ir=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(K2)},providedIn:"root"})}return t})();const $2=new Ye("appBaseHref");let K2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??et(Wt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return u0(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Ns(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=u0(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),d0=(()=>{class t{constructor(e){this._subject=new ge,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function b8(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(U2(q2(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Ns(n))}normalize(e){return t.stripTrailingSlash(function v8(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,q2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n,complete:o})}static#e=this.normalizeQueryParams=Ns;static#t=this.joinWithSlash=u0;static#n=this.stripTrailingSlash=U2;static#i=this.\u0275fac=function(n){return new(n||t)(Ze(Ir))};static#o=this.\u0275prov=nt({token:t,factory:function(){return function C8(){return new d0(Ze(Ir))}()},providedIn:"root"})}return t})();function q2(t){return t.replace(/\/index.html$/,"")}var Gi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Gi||{}),xn=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(xn||{}),mo=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(mo||{}),Xn=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(Xn||{});function eh(t,i){return Mo($i(t)[En.DateFormat],i)}function th(t,i){return Mo($i(t)[En.TimeFormat],i)}function nh(t,i){return Mo($i(t)[En.DateTimeFormat],i)}function ko(t,i){const e=$i(t),n=e[En.NumberSymbols][i];if(typeof n>"u"){if(i===Xn.CurrencyDecimal)return e[En.NumberSymbols][Xn.Decimal];if(i===Xn.CurrencyGroup)return e[En.NumberSymbols][Xn.Group]}return n}function Q2(t){if(!t[En.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[En.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Mo(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function h0(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const F8=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nu={},R8=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Vs=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Vs||{}),ln=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ln||{}),cn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(cn||{});function N8(t,i,e,n){let o=function G8(t){if(X2(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,s=1,r=1]=t.split("-").map(a=>+a);return ih(o,s-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(F8))return function q8(t){const i=new Date(0);let e=0,n=0;const o=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-e,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,r,a,l,c),i}(n)}const i=new Date(t);if(!X2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Bs(e,i)||i;let a,r=[];for(;i;){if(a=R8.exec(i),!a){r.push(i);break}{r=r.concat(a.slice(1));const u=r.pop();if(!u)break;i=u}}let l=o.getTimezoneOffset();n&&(l=Y2(n,l),o=function K8(t,i,e){const n=e?-1:1,o=t.getTimezoneOffset();return function $8(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(Y2(i,o)-o))}(o,n,!0));let c="";return r.forEach(u=>{const p=function U8(t){if(g0[t])return g0[t];let i;switch(t){case"G":case"GG":case"GGG":i=Dn(cn.Eras,xn.Abbreviated);break;case"GGGG":i=Dn(cn.Eras,xn.Wide);break;case"GGGGG":i=Dn(cn.Eras,xn.Narrow);break;case"y":i=ii(ln.FullYear,1,0,!1,!0);break;case"yy":i=ii(ln.FullYear,2,0,!0,!0);break;case"yyy":i=ii(ln.FullYear,3,0,!1,!0);break;case"yyyy":i=ii(ln.FullYear,4,0,!1,!0);break;case"Y":i=ah(1);break;case"YY":i=ah(2,!0);break;case"YYY":i=ah(3);break;case"YYYY":i=ah(4);break;case"M":case"L":i=ii(ln.Month,1,1);break;case"MM":case"LL":i=ii(ln.Month,2,1);break;case"MMM":i=Dn(cn.Months,xn.Abbreviated);break;case"MMMM":i=Dn(cn.Months,xn.Wide);break;case"MMMMM":i=Dn(cn.Months,xn.Narrow);break;case"LLL":i=Dn(cn.Months,xn.Abbreviated,Gi.Standalone);break;case"LLLL":i=Dn(cn.Months,xn.Wide,Gi.Standalone);break;case"LLLLL":i=Dn(cn.Months,xn.Narrow,Gi.Standalone);break;case"w":i=f0(1);break;case"ww":i=f0(2);break;case"W":i=f0(1,!0);break;case"d":i=ii(ln.Date,1);break;case"dd":i=ii(ln.Date,2);break;case"c":case"cc":i=ii(ln.Day,1);break;case"ccc":i=Dn(cn.Days,xn.Abbreviated,Gi.Standalone);break;case"cccc":i=Dn(cn.Days,xn.Wide,Gi.Standalone);break;case"ccccc":i=Dn(cn.Days,xn.Narrow,Gi.Standalone);break;case"cccccc":i=Dn(cn.Days,xn.Short,Gi.Standalone);break;case"E":case"EE":case"EEE":i=Dn(cn.Days,xn.Abbreviated);break;case"EEEE":i=Dn(cn.Days,xn.Wide);break;case"EEEEE":i=Dn(cn.Days,xn.Narrow);break;case"EEEEEE":i=Dn(cn.Days,xn.Short);break;case"a":case"aa":case"aaa":i=Dn(cn.DayPeriods,xn.Abbreviated);break;case"aaaa":i=Dn(cn.DayPeriods,xn.Wide);break;case"aaaaa":i=Dn(cn.DayPeriods,xn.Narrow);break;case"b":case"bb":case"bbb":i=Dn(cn.DayPeriods,xn.Abbreviated,Gi.Standalone,!0);break;case"bbbb":i=Dn(cn.DayPeriods,xn.Wide,Gi.Standalone,!0);break;case"bbbbb":i=Dn(cn.DayPeriods,xn.Narrow,Gi.Standalone,!0);break;case"B":case"BB":case"BBB":i=Dn(cn.DayPeriods,xn.Abbreviated,Gi.Format,!0);break;case"BBBB":i=Dn(cn.DayPeriods,xn.Wide,Gi.Format,!0);break;case"BBBBB":i=Dn(cn.DayPeriods,xn.Narrow,Gi.Format,!0);break;case"h":i=ii(ln.Hours,1,-12);break;case"hh":i=ii(ln.Hours,2,-12);break;case"H":i=ii(ln.Hours,1);break;case"HH":i=ii(ln.Hours,2);break;case"m":i=ii(ln.Minutes,1);break;case"mm":i=ii(ln.Minutes,2);break;case"s":i=ii(ln.Seconds,1);break;case"ss":i=ii(ln.Seconds,2);break;case"S":i=ii(ln.FractionalSeconds,1);break;case"SS":i=ii(ln.FractionalSeconds,2);break;case"SSS":i=ii(ln.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=sh(Vs.Short);break;case"ZZZZZ":i=sh(Vs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=sh(Vs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=sh(Vs.Long);break;default:return null}return g0[t]=i,i}(u);c+=p?p(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ih(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Bs(t,i){const e=function x8(t){return $i(t)[En.LocaleId]}(t);if(nu[e]=nu[e]||{},nu[e][i])return nu[e][i];let n="";switch(i){case"shortDate":n=eh(t,mo.Short);break;case"mediumDate":n=eh(t,mo.Medium);break;case"longDate":n=eh(t,mo.Long);break;case"fullDate":n=eh(t,mo.Full);break;case"shortTime":n=th(t,mo.Short);break;case"mediumTime":n=th(t,mo.Medium);break;case"longTime":n=th(t,mo.Long);break;case"fullTime":n=th(t,mo.Full);break;case"short":const o=Bs(t,"shortTime"),s=Bs(t,"shortDate");n=oh(nh(t,mo.Short),[o,s]);break;case"medium":const r=Bs(t,"mediumTime"),a=Bs(t,"mediumDate");n=oh(nh(t,mo.Medium),[r,a]);break;case"long":const l=Bs(t,"longTime"),c=Bs(t,"longDate");n=oh(nh(t,mo.Long),[l,c]);break;case"full":const u=Bs(t,"fullTime"),p=Bs(t,"fullDate");n=oh(nh(t,mo.Full),[u,p])}return n&&(nu[e][i]=n),n}function oh(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Ko(t,i,e="-",n,o){let s="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,s=e));let r=String(t);for(;r.length0||a>-e)&&(a+=e),t===ln.Hours)0===a&&-12===e&&(a=12);else if(t===ln.FractionalSeconds)return function V8(t,i){return Ko(t,3).substring(0,i)}(a,i);const l=ko(r,Xn.MinusSign);return Ko(a,i,l,n,o)}}function Dn(t,i,e=Gi.Format,n=!1){return function(o,s){return function H8(t,i,e,n,o,s){switch(e){case cn.Months:return function T8(t,i,e){const n=$i(t),s=Mo([n[En.MonthsFormat],n[En.MonthsStandalone]],i);return Mo(s,e)}(i,o,n)[t.getMonth()];case cn.Days:return function w8(t,i,e){const n=$i(t),s=Mo([n[En.DaysFormat],n[En.DaysStandalone]],i);return Mo(s,e)}(i,o,n)[t.getDay()];case cn.DayPeriods:const r=t.getHours(),a=t.getMinutes();if(s){const c=function k8(t){const i=$i(t);return Q2(i),(i[En.ExtraData][2]||[]).map(n=>"string"==typeof n?h0(n):[h0(n[0]),h0(n[1])])}(i),u=function M8(t,i,e){const n=$i(t);Q2(n);const s=Mo([n[En.ExtraData][0],n[En.ExtraData][1]],i)||[];return Mo(s,e)||[]}(i,o,n),p=c.findIndex(m=>{if(Array.isArray(m)){const[_,b]=m,E=r>=_.hours&&a>=_.minutes,P=r0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Vs.Short:return(o>=0?"+":"")+Ko(r,2,s)+Ko(Math.abs(o%60),2,s);case Vs.ShortGMT:return"GMT"+(o>=0?"+":"")+Ko(r,1,s);case Vs.Long:return"GMT"+(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);case Vs.Extended:return 0===n?"Z":(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const z8=0,rh=4;function Z2(t){return ih(t.getFullYear(),t.getMonth(),t.getDate()+(rh-t.getDay()))}function f0(t,i=!1){return function(e,n){let o;if(i){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,r=e.getDate();o=1+Math.floor((r+s)/7)}else{const s=Z2(e),r=function j8(t){const i=ih(t,z8,1).getDay();return ih(t,0,1+(i<=rh?rh:rh+7)-i)}(s.getFullYear()),a=s.getTime()-r.getTime();o=1+Math.round(a/6048e5)}return Ko(o,t,ko(n,Xn.MinusSign))}}function ah(t,i=!1){return function(e,n){return Ko(Z2(e).getFullYear(),t,ko(n,Xn.MinusSign),i)}}const g0={};function Y2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function X2(t){return t instanceof Date&&!isNaN(t.valueOf())}function nT(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[o,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(s)}return null}const b0=/\s+/,iT=[];let Ct=(()=>{class t{constructor(e,n,o,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=o,this._renderer=s,this.initialClasses=iT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(b0):iT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(b0):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(b0).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(n){return new(n||t)(V(Yp),V(yl),V(bt),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class rV{constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((o,s,r)=>{if(null==o.previousIndex)n.createEmbeddedView(this._template,new rV(o.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===s?void 0:s);else if(null!==s){const a=n.get(s);n.move(a,r),sT(a,o)}});for(let o=0,s=n.length;o{sT(n.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(Yp))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function sT(t,i){t.context.$implicit=i.item}let gt=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new aV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rT("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class aV{constructor(){this.$implicit=null,this.ngIf=null}}function rT(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ai(i)}'.`)}class y0{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let wl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),ch=(()=>{class t{constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new y0(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),x0=(()=>{class t{constructor(e,n,o){o._addDefault(new y0(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),Ht=(()=>{class t{constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[o,s]=e.split("."),r=-1===o.indexOf("-")?void 0:dr.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,r):this._renderer.removeStyle(this._ngEl.nativeElement,o,r)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(V(bt),V(yl),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),on=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:r}=this;this._viewRef=n.createEmbeddedView(o,s,r?{injector:r}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(V(go))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]})}return t})();const CV=new Ye("DATE_PIPE_DEFAULT_TIMEZONE"),vV=new Ye("DATE_PIPE_DEFAULT_OPTIONS");let Hs=(()=>{class t{constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,s){if(null==e||""===e||e!=e)return null;try{return N8(e,n??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(r){throw function Go(t,i){return new Ae(2100,!1)}()}}static#e=this.\u0275fac=function(n){return new(n||t)(V(us,16),V(CV,24),V(vV,24))};static#t=this.\u0275pipe=Ni({name:"date",type:t,pure:!0,standalone:!0})}return t})(),Xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();const cT="browser";function ei(t){return t===cT}function uT(t){return"server"===t}let LV=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new PV(Ze(Wt),window)})}return t})();class PV{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function FV(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=n.currentNode;for(;o;){const s=o.shadowRoot;if(s){const r=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(r)return r}o=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],o-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class dT{}class oB extends m8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class E0 extends oB{static makeCurrent(){!function g8(t){l0||(l0=t)}(new E0)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function sB(){return su=su||document.querySelector("base"),su?su.getAttribute("href"):null}();return null==e?null:function rB(t){ph=ph||document.createElement("a"),ph.setAttribute("href",t);const i=ph.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return nT(document.cookie,i)}}let ph,su=null,lB=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const D0=new Ye("EventManagerPlugins");let mT=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,o){return this._findPluginFor(n).addEventListener(e,n,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new Ae(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(D0),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class _T{constructor(i){this._doc=i}}const k0="ng-app-id";let IT=(()=>{class t{constructor(e,n,o,s={}){this.doc=e,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uT(s),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(o=>o.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${k0}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(o=>{null!=o.textContent&&n.set(o.textContent,o)}),n}return null}changeUsageCount(e,n){const o=this.styleRef;if(o.has(e)){const s=o.get(e);return s.usage+=n,s.usage}return o.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===e)return o.delete(n),s.removeAttribute(k0),s;{const r=this.doc.createElement("style");return this.nonce&&r.setAttribute("nonce",this.nonce),r.textContent=n,this.platformIsServer&&r.setAttribute(k0,this.appId),r}}addStyleToHost(e,n){const o=this.getStyleElement(e,n);e.appendChild(o);const s=this.styleRef,r=s.get(n)?.elements;r?r.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(hp),Ze(Oy,8),Ze($n))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const M0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},O0=/%COMP%/g,pB=new Ye("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vT(t,i){return i.map(e=>e.replace(O0,t))}let L0=(()=>{class t{constructor(e,n,o,s,r,a,l,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=r,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uT(a),this.defaultRenderer=new P0(e,r,l,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===To.ShadowDom&&(n={...n,encapsulation:To.Emulated});const o=this.getOrCreateRenderer(e,n);return o instanceof yT?o.applyToHost(e):o instanceof F0&&o.applyStyles(),o}getOrCreateRenderer(e,n){const o=this.rendererByCompId;let s=o.get(n.id);if(!s){const r=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case To.Emulated:s=new yT(l,c,n,this.appId,u,r,a,p);break;case To.ShadowDom:return new mB(l,c,e,n,r,a,this.nonce,p);default:s=new F0(l,c,n,u,r,a,p)}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(mT),Ze(IT),Ze(hp),Ze(pB),Ze(Wt),Ze($n),Ze(Tt),Ze(Oy))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class P0{constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(M0[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(bT(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(bT(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?this.doc.querySelector(i):i;if(!n)throw new Ae(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;const s=M0[o];s?i.setAttributeNS(s,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const o=M0[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(dr.DashCase|dr.Important)?i.style.setProperty(e,n,o&dr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&dr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){if("string"==typeof i&&!(i=_r().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if("__ngUnwrap__"===e)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))&&e.preventDefault()}}}function bT(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class mB extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vT(o.id,o.styles);for(const u of c){const p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class F0 extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?vT(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class yT extends F0{constructor(i,e,n,o,s,r,a,l){const c=o+"-"+n.id;super(i,e,n,s,r,a,l,c),this.contentAttr=function hB(t){return"_ngcontent-%COMP%".replace(O0,t)}(c),this.hostAttr=function fB(t){return"_nghost-%COMP%".replace(O0,t)}(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let _B=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o){return e.addEventListener(n,o,!1),()=>this.removeEventListener(e,n,o)}removeEventListener(e,n,o){return e.removeEventListener(n,o)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const xT=["alt","control","meta","shift"],IB={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let vB=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,o){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(n.pop());let r="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),r="code."),xT.forEach(c=>{const u=n.indexOf(c);u>-1&&(n.splice(u,1),r+=c+".")}),r+=s,0!=n.length||0===s.length)return null;const l={};return l.domEventName=o,l.fullKey=r,l}static matchEventFullKeyCode(e,n){let o=IB[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(o=e.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),xT.forEach(r=>{r!==o&&(0,CB[r])(e)&&(s+=r+".")}),s+=o,s===n)}static eventCallback(e,n,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const AB=_2(e8,"browser",[{provide:$n,useValue:cT},{provide:ky,useValue:function bB(){E0.makeCurrent()},multi:!0},{provide:Wt,useFactory:function xB(){return function C5(t){Cm=t}(document),document},deps:[]}]),wB=new Ye(""),TT=[{provide:qp,useClass:class aB{addToWindow(i){Tn.getAngularTestability=(n,o=!0)=>{const s=i.findTestabilityInTree(n,o);if(null==s)throw new Ae(5103,!1);return s},Tn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Tn.getAllAngularRootElements=()=>i.getAllRootElements(),Tn.frameworkStabilizers||(Tn.frameworkStabilizers=[]),Tn.frameworkStabilizers.push(n=>{const o=Tn.getAllAngularTestabilities();let s=o.length,r=!1;const a=function(l){r=r||l,s--,0==s&&n(r)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:p2,useClass:Z_,deps:[Tt,Y_,qp]},{provide:Z_,useClass:Z_,deps:[Tt,Y_,qp]}],ST=[{provide:Dm,useValue:"root"},{provide:Ps,useFactory:function yB(){return new Ps},deps:[]},{provide:D0,useClass:_B,multi:!0,deps:[Wt,Tt,$n]},{provide:D0,useClass:vB,multi:!0,deps:[Wt]},L0,IT,mT,{provide:Pc,useExisting:L0},{provide:dT,useClass:lB,deps:[]},[]];let R0=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:hp,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wB,12))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[...ST,...TT],imports:[Xe,t8]})}return t})(),ET=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:function(n){let o=null;return o=n?new n:function SB(){return new ET(Ze(Wt))}(),o},providedIn:"root"})}return t})();typeof window<"u"&&window;const{isArray:OB}=Array,{getPrototypeOf:LB,prototype:PB,keys:FB}=Object;function OT(t){if(1===t.length){const i=t[0];if(OB(i))return{args:i,keys:null};if(function RB(t){return t&&"object"==typeof t&&LB(t)===PB}(i)){const e=FB(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:NB}=Array;function V0(t){return at(i=>function VB(t,i){return NB(i)?t(...i):t(i)}(t,i))}function LT(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}let PT=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt))};static#t=this.\u0275dir=ut({type:t})}return t})(),ia=(()=>{class t extends PT{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275dir=ut({type:t,features:[st]})}return t})();const un=new Ye("NgValueAccessor"),zB={provide:un,useExisting:ft(()=>B0),multi:!0},UB=new Ye("CompositionEventMode");let B0=(()=>{class t extends PT{constructor(e,n,o){super(e,n),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jB(){const t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt),V(UB,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){1&n&&me("input",function(r){return o._handleInput(r.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(r){return o._compositionEnd(r.target.value)})},features:[yt([zB]),st]})}return t})();const Si=new Ye("NgValidators"),br=new Ye("NgAsyncValidators");function KT(t){return null!=t}function GT(t){return Kc(t)?ri(t):t}function qT(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function WT(t,i){return i.map(e=>e(t))}function QT(t){return t.map(i=>function KB(t){return!t.validate}(i)?i:e=>i.validate(e))}function H0(t){return null!=t?function ZT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return qT(WT(e,i))}}(QT(t)):null}function z0(t){return null!=t?function YT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return function BB(...t){const i=Yv(t),{args:e,keys:n}=OT(t),o=new ce(s=>{const{length:r}=e;if(!r)return void s.complete();const a=new Array(r);let l=r,c=r;for(let u=0;u{p||(p=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!p)&&(c||s.next(n?LT(n,a):a),s.complete())}))}});return i?o.pipe(V0(i)):o}(WT(e,i).map(GT)).pipe(at(qT))}}(QT(t)):null}function XT(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function j0(t){return t?Array.isArray(t)?t:[t]:[]}function fh(t,i){return Array.isArray(t)?t.includes(i):t===i}function tS(t,i){const e=j0(i);return j0(t).forEach(o=>{fh(e,o)||e.push(o)}),e}function nS(t,i){return j0(i).filter(e=>!fh(t,e))}class iS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=H0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=z0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class qi extends iS{get formDirective(){return null}get path(){return null}}class ds extends iS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oS{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let sS=(()=>{class t extends oS{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(ds,2))};static#t=this.\u0275dir=ut({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){2&n&&Ii("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[st]})}return t})();const ru="VALID",mh="INVALID",Tl="PENDING",au="DISABLED";function _h(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class cS{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===ru}get invalid(){return this.status===mh}get pending(){return this.status==Tl}get disabled(){return this.status===au}get enabled(){return this.status!==au}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(tS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(tS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(nS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(nS(i,this._rawAsyncValidators))}hasValidator(i){return fh(this._rawValidators,i)}hasAsyncValidator(i){return fh(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tl,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=au,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=ru,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ru||this.status===Tl)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?au:ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tl,this._hasOwnPendingAsyncValidator=!0;const e=GT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?au:this.errors?mh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tl)?Tl:this._anyControlsHaveStatus(mh)?mh:ru}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){_h(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function ZB(t){return Array.isArray(t)?H0(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function YB(t){return Array.isArray(t)?z0(t):t||null}(this._rawAsyncValidators)}}const Sl=new Ye("CallSetDisabledState",{providedIn:"root",factory:()=>Ih}),Ih="always";function lu(t,i,e=Ih){(function W0(t,i){const e=function JT(t){return t._rawValidators}(t);null!==i.validator?t.setValidators(XT(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=function eS(t){return t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(XT(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const o=()=>t.updateValueAndValidity();bh(i._rawValidators,o),bh(i._rawAsyncValidators,o)})(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function eH(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&uS(t,i)})}(t,i),function nH(t,i){const e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function tH(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&uS(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function JB(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function bh(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function uS(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function hS(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function fS(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const gS=class extends cS{constructor(i=null,e,n){super(function K0(t){return(_h(t)?t.validators:t)||null}(e),function G0(t,i){return(_h(i)?i.asyncValidators:t)||null}(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_h(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=fS(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){hS(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){hS(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){fS(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},uH={provide:ds,useExisting:ft(()=>xh)},IS=(()=>Promise.resolve())();let xh=(()=>{class t extends ds{constructor(e,n,o,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this.control=new gS,this._registered=!1,this.name="",this.update=new ge,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=function Y0(t,i){if(!i)return null;let e,n,o;return Array.isArray(i),i.forEach(s=>{s.constructor===B0?e=s:function sH(t){return Object.getPrototypeOf(t.constructor)===ia}(s)?n=s:o=s}),o||n||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Z0(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){IS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,o=0!==n&&xl(n);IS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Ch(t,i){return[...i.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(V(qi,9),V(Si,10),V(br,10),V(un,10),V(Ft,8),V(Sl,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([uH]),st,Hn]})}return t})(),vS=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})(),FH=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[vS]})}return t})(),uu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sl,useValue:e.callSetDisabledState??Ih}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[FH]})}return t})();function El(t,i){return L(i)?si(t,i,1):si(t,1)}function zs(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>t.call(i,s,o++)&&n.next(s)))})}function du(t){return Me((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}class Ah{}class wh{}class qo{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const o=e.slice(0,n),s=o.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof qo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const o=("a"===i.op?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":const s=i.value;if(s){let r=this.headers.get(e);if(!r)return;r=r.filter(a=>-1===s.indexOf(a)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(i,e){const n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class NH{encodeKey(i){return VS(i)}encodeValue(i){return VS(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const BH=/%(\d[a-f0-9])/gi,HH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VS(t){return encodeURIComponent(t).replace(BH,(i,e)=>HH[e]??i)}function Th(t){return`${t}`}class yr{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new NH,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function VH(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[r,a]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],l=e.get(r)||[];l.push(a),e.set(r,l)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],o=Array.isArray(n)?n.map(Th):[Th(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new yr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Th(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(Th(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class zH{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function BS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function HS(t){return typeof Blob<"u"&&t instanceof Blob}function zS(t){return typeof FormData<"u"&&t instanceof FormData}class pu{constructor(i,e,n,o){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function jH(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qo),this.context||(this.context=new zH),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ap.set(m,i.setHeaders[m]),l)),i.setParams&&(c=Object.keys(i.setParams).reduce((p,m)=>p.set(m,i.setParams[m]),c)),new pu(e,n,s,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:r})}}var Dl=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Dl||{});class sI{constructor(i,e=200,n="OK"){this.headers=i.headers||new qo,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class rI extends sI{constructor(i={}){super(i),this.type=Dl.ResponseHeader}clone(i={}){return new rI({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class kl extends sI{constructor(i={}){super(i),this.type=Dl.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new kl({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class jS extends sI{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function aI(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let lI=(()=>{class t{constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof pu)s=e;else{let l,c;l=o.headers instanceof qo?o.headers:new qo(o.headers),o.params&&(c=o.params instanceof yr?o.params:new yr({fromObject:o.params})),s=new pu(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const r=ht(s).pipe(El(l=>this.handler.handle(l)));if(e instanceof pu||"events"===o.observe)return r;const a=r.pipe(zs(l=>l instanceof kl));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(at(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(at(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new yr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,aI(o,n))}post(e,n,o={}){return this.request("POST",e,aI(o,n))}put(e,n,o={}){return this.request("PUT",e,aI(o,n))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Ah))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function KS(t,i){return i(t)}function KH(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}const qH=new Ye(""),hu=new Ye(""),GS=new Ye("");function WH(){let t=null;return(i,e)=>{null===t&&(t=(et(qH,{optional:!0})??[]).reduceRight(KH,KS));const n=et(Kp),o=n.add();return t(i,e).pipe(du(()=>n.remove(o)))}}let qS=(()=>{class t extends Ah{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=et(Kp)}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(hu),...this.injector.get(GS,[])]));this.chain=o.reduceRight((s,r)=>function GH(t,i,e){return(n,o)=>e.runInContext(()=>i(n,s=>t(s,o)))}(s,r,this.injector),KS)}const n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(du(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wh),Ze(po))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const XH=/^\)\]\}',?\n/;let QS=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Ae(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?ri(n.\u0275loadImpl()):ht(null)).pipe(Ao(()=>new ce(s=>{const r=n.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((E,P)=>r.setRequestHeader(E,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&r.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();r.responseType="json"!==E?E:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const E=r.statusText||"OK",P=new qo(r.getAllResponseHeaders()),W=function JH(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new rI({headers:P,status:r.status,statusText:E,url:W}),l},u=()=>{let{headers:E,status:P,statusText:W,url:te}=c(),fe=null;204!==P&&(fe=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=fe?200:0);let Ce=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof fe){const ve=fe;fe=fe.replace(XH,"");try{fe=""!==fe?JSON.parse(fe):null}catch(ke){fe=ve,Ce&&(Ce=!1,fe={error:ke,text:fe})}}Ce?(s.next(new kl({body:fe,headers:E,status:P,statusText:W,url:te||void 0})),s.complete()):s.error(new jS({error:fe,headers:E,status:P,statusText:W,url:te||void 0}))},p=E=>{const{url:P}=c(),W=new jS({error:E,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});s.error(W)};let m=!1;const _=E=>{m||(s.next(c()),m=!0);let P={type:Dl.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),s.next(P)},b=E=>{let P={type:Dl.UploadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),s.next(P)};return r.addEventListener("load",u),r.addEventListener("error",p),r.addEventListener("timeout",p),r.addEventListener("abort",p),e.reportProgress&&(r.addEventListener("progress",_),null!==a&&r.upload&&r.upload.addEventListener("progress",b)),r.send(a),s.next({type:Dl.Sent}),()=>{r.removeEventListener("error",p),r.removeEventListener("abort",p),r.removeEventListener("load",u),r.removeEventListener("timeout",p),e.reportProgress&&(r.removeEventListener("progress",_),null!==a&&r.upload&&r.upload.removeEventListener("progress",b)),r.readyState!==r.DONE&&r.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(dT))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const cI=new Ye("XSRF_ENABLED"),ZS=new Ye("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),YS=new Ye("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class XS{}let nz=(()=>{class t{constructor(e,n,o){this.doc=e,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=nT(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze($n),Ze(ZS))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function iz(t,i){const e=t.url.toLowerCase();if(!et(cI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=et(XS).getToken(),o=et(YS);return null!=n&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var xr=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(xr||{});function oz(...t){const i=[lI,QS,qS,{provide:Ah,useExisting:qS},{provide:wh,useExisting:QS},{provide:hu,useValue:iz,multi:!0},{provide:cI,useValue:!0},{provide:XS,useClass:nz}];for(const e of t)i.push(...e.\u0275providers);return function Tm(t){return{\u0275providers:t}}(i)}const JS=new Ye("LEGACY_INTERCEPTOR_FN");function sz(){return function sa(t,i){return{\u0275kind:t,\u0275providers:i}}(xr.LegacyInterceptors,[{provide:JS,useFactory:WH},{provide:hu,useExisting:JS,multi:!0}])}let eE=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[oz(sz())]})}return t})();class tE{}class dz{}const js="*";function Oo(t,i){return{type:7,name:t,definitions:i,options:{}}}function On(t,i=null){return{type:4,styles:i,timings:t}}function nE(t,i=null){return{type:2,steps:t,options:i}}function en(t){return{type:6,styles:t,offset:null}}function Us(t,i,e){return{type:0,name:t,styles:i,options:e}}function Ln(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ml(t,i=null){return{type:8,animation:t,options:i}}function Eh(t,i=null){return{type:10,animation:t,options:i}}class fu{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class iE{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,o=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==s&&this._onFinish()}),r.onDestroy(()=>{++n==s&&this._onDestroy()}),r.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function oE(t){return new Ae(3e3,!1)}function Ar(t){switch(t.length){case 0:return new fu;case 1:return t[0];default:return new iE(t)}}function sE(t,i,e=new Map,n=new Map){const o=[],s=[];let r=-1,a=null;if(i.forEach(l=>{const c=l.get("offset"),u=c==r,p=u&&a||new Map;l.forEach((m,_)=>{let b=_,E=m;if("offset"!==_)switch(b=t.normalizePropertyName(b,o),E){case"!":E=e.get(_);break;case js:E=n.get(_);break;default:E=t.normalizeStyleValue(_,b,E,o)}p.set(b,E)}),u||s.push(p),a=p,r=c}),o.length)throw function Pz(t){return new Ae(3502,!1)}();return s}function dI(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&pI(e,"start",t)));break;case"done":t.onDone(()=>n(e&&pI(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&pI(e,"destroy",t)))}}function pI(t,i,e){const s=hI(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),r=t._data;return null!=r&&(s._data=r),s}function hI(t,i,e,n,o="",s=0,r){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:s,disabled:!!r}}function _o(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function rE(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}const Gz=(()=>typeof document>"u"?null:document.documentElement)();function fI(t){const i=t.parentNode||t.host||null;return i===Gz?null:i}let ra=null,aE=!1;function lE(t,i){for(;i;){if(i===t)return!0;i=fI(i)}return!1}function cE(t,i,e){if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]}let uE=(()=>{class t{validateStyleProperty(e){return function Wz(t){ra||(ra=function Qz(){return typeof document<"u"?document.body:null}()||{},aE=!!ra.style&&"WebkitAppearance"in ra.style);let i=!0;return ra.style&&!function qz(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in ra.style,!i&&aE&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in ra.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return lE(e,n)}getParentElement(e){return fI(e)}query(e,n,o){return cE(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,s,r,a=[],l){return new fu(o,s)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),gI=(()=>{class t{static#e=this.NOOP=new uE}return t})();const Zz=1e3,mI="ng-enter",Dh="ng-leave",kh="ng-trigger",Mh=".ng-trigger",pE="ng-animating",_I=".ng-animating";function $s(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:II(parseFloat(i[1]),i[2])}function II(t,i){return"s"===i?t*Zz:t}function Oh(t,i,e){return t.hasOwnProperty("duration")?t:function Xz(t,i,e){let o,s=0,r="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return i.push(oE()),{duration:0,delay:0,easing:""};o=II(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=II(parseFloat(l),a[4]));const c=a[5];c&&(r=c)}else o=t;if(!e){let a=!1,l=i.length;o<0&&(i.push(function pz(){return new Ae(3100,!1)}()),a=!0),s<0&&(i.push(function hz(){return new Ae(3101,!1)}()),a=!0),a&&i.splice(l,0,oE())}return{duration:o,delay:s,easing:r}}(t,i,e)}function gu(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function hE(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function wr(t,i=new Map,e){if(e)for(let[n,o]of e)i.set(n,o);for(let[n,o]of t)i.set(n,o);return i}function ps(t,i,e){i.forEach((n,o)=>{const s=vI(o);e&&!e.has(o)&&e.set(o,t.style[s]),t.style[s]=n})}function aa(t,i){i.forEach((e,n)=>{const o=vI(n);t.style[o]=""})}function mu(t){return Array.isArray(t)?1==t.length?t[0]:nE(t):t}const CI=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(t){let i=[];if("string"==typeof t){let e;for(;e=CI.exec(t);)i.push(e[1]);CI.lastIndex=0}return i}function _u(t,i,e){const n=t.toString(),o=n.replace(CI,(s,r)=>{let a=i[r];return null==a&&(e.push(function gz(t){return new Ae(3003,!1)}()),a=""),a.toString()});return o==n?t:o}function Lh(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const tj=/-+([a-z0-9])/g;function vI(t){return t.replace(tj,(...i)=>i[1].toUpperCase())}function Io(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function mz(t){return new Ae(3004,!1)}()}}function mE(t,i){return window.getComputedStyle(t)[i]}const Ph="*";function oj(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function sj(t,i,e){if(":"==t[0]){const l=function rj(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof l)return void i.push(l);t=l}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function Dz(t){return new Ae(3015,!1)}()),i;const o=n[1],s=n[2],r=n[3];i.push(_E(o,r));"<"==s[0]&&!(o==Ph&&r==Ph)&&i.push(_E(r,o))}(n,e,i)):e.push(t),e}const Fh=new Set(["true","1"]),Rh=new Set(["false","0"]);function _E(t,i){const e=Fh.has(t)||Rh.has(t),n=Fh.has(i)||Rh.has(i);return(o,s)=>{let r=t==Ph||t==o,a=i==Ph||i==s;return!r&&e&&"boolean"==typeof o&&(r=o?Fh.has(t):Rh.has(t)),!a&&n&&"boolean"==typeof s&&(a=s?Fh.has(i):Rh.has(i)),r&&a}}const aj=new RegExp("s*:selfs*,?","g");function bI(t,i,e,n){return new lj(t).build(i,e,n)}class lj{constructor(i){this._driver=i}build(i,e,n){const o=new dj(e);return this._resetContextStyleTimingState(o),Io(this,mu(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0;const s=[],r=[];return"@"==i.name.charAt(0)&&e.errors.push(function Iz(){return new Ae(3006,!1)}()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,o+=l.depCount,r.push(l)}else e.errors.push(function Cz(){return new Ae(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:r,queryCount:n,depCount:o,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{gE(l).forEach(c=>{r.hasOwnProperty(c)||s.add(c)})})}),s.size&&(Lh(s.values()),e.errors.push(function vz(t,i){return new Ae(3008,!1)}()))}return{type:0,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=Io(this,mu(i.animation),e);return{type:1,matchers:oj(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:la(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>Io(this,n,e)),options:la(i.options)}}visitGroup(i,e){const n=e.currentTime;let o=0;const s=i.steps.map(r=>{e.currentTime=n;const a=Io(this,r,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:s,options:la(i.options)}}visitAnimate(i,e){const n=function hj(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return yI(Oh(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=yI(0,0,"");return s.dynamic=!0,s.strValue=e,s}const o=Oh(e,i);return yI(o.duration,o.delay,o.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let o,s=i.styles?i.styles:en({});if(5==s.type)o=this.visitKeyframes(s,e);else{let r=i.styles,a=!1;if(!r){a=!0;const c={};n.easing&&(c.easing=n.easing),r=en(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(r,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of o)"string"==typeof a?a===js?n.push(a):e.errors.push(new Ae(3002,!1)):n.push(hE(a));let s=!1,r=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(r=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let o=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),i.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let p=!0;u&&(s!=o&&s>=u.startTime&&o<=u.endTime&&(e.errors.push(function yz(t,i,e,n,o){return new Ae(3010,!1)}()),p=!1),s=u.startTime),p&&c.set(l,{startTime:s,endTime:o}),e.options&&function ej(t,i,e){const n=i.params||{},o=gE(t);o.length&&o.forEach(s=>{n.hasOwnProperty(s)||e.push(function fz(t){return new Ae(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function xz(){return new Ae(3011,!1)}()),n;let s=0;const r=[];let a=!1,l=!1,c=0;const u=i.steps.map(W=>{const te=this._makeStyleAst(W,e);let fe=null!=te.offset?te.offset:function pj(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(te.styles),Ce=0;return null!=fe&&(s++,Ce=te.offset=fe),l=l||Ce<0||Ce>1,a=a||Ce0&&s{const fe=m>0?te==_?1:m*te:r[te],Ce=fe*P;e.currentTime=b+E.delay+Ce,E.duration=Ce,this._validateStyleAst(W,e),W.offset=fe,n.styles.push(W)}),n}visitReference(i,e){return{type:8,animation:Io(this,mu(i.animation),e),options:la(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:la(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:la(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;const[s,r]=function cj(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(aj,"")),t=t.replace(/@\*/g,Mh).replace(/@\w+/g,e=>Mh+"-"+e.slice(1)).replace(/:animating/g,_I),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+s:s,_o(e.collectedStyles,e.currentQuerySelector,new Map);const a=Io(this,mu(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:r,animation:a,originalSelector:i.selector,options:la(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Sz(){return new Ae(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Oh(i.timings,e.errors,!0);return{type:12,animation:Io(this,mu(i.animation),e),timings:n,options:null}}}class dj{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function la(t){return t?(t=gu(t)).params&&(t.params=function uj(t){return t?gu(t):null}(t.params)):t={},t}function yI(t,i,e){return{duration:t,delay:i,easing:e}}function xI(t,i,e,n,o,s,r=null,a=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:s,totalTime:o+s,easing:r,subTimeline:a}}class Nh{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const mj=new RegExp(":enter","g"),Ij=new RegExp(":leave","g");function AI(t,i,e,n,o,s=new Map,r=new Map,a,l,c=[]){return(new Cj).buildKeyframes(t,i,e,n,o,s,r,a,l,c)}class Cj{buildKeyframes(i,e,n,o,s,r,a,l,c,u=[]){c=c||new Nh;const p=new wI(i,e,c,o,s,u,[]);p.options=l;const m=l.delay?$s(l.delay):0;p.currentTimeline.delayNextStep(m),p.currentTimeline.setStyles([r],null,p.errors,l),Io(this,n,p);const _=p.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let E=_.length-1;E>=0;E--){const P=_[E];if(P.element===e){b=P;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,p.errors,l)}return _.length?_.map(b=>b.buildKeyframes()):[xI(e,[],[],[],0,m,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const o=e.createSubContext(i.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const o of i){const s=o?.delay;if(s){const r="number"==typeof s?s:$s(_u(s,o?.params??{},e.errors));n.delayNextStep(r)}}}_visitSubInstructions(i,e,n){let s=e.currentTimeline.currentTime;const r=null!=n.duration?$s(n.duration):null,a=null!=n.delay?$s(n.delay):null;return 0!==r&&i.forEach(l=>{const c=e.appendInstructionToTimeline(l,r,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(i,e){e.updateOptions(i.options,!0),Io(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let o=e;const s=i.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Vh);const r=$s(s.delay);o.delayNextStep(r)}i.steps.length&&(i.steps.forEach(r=>Io(this,r,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let o=e.currentTimeline.currentTime;const s=i.options&&i.options.delay?$s(i.options.delay):0;i.steps.forEach(r=>{const a=e.createSubContext(i.options);s&&a.delayNextStep(s),Io(this,r,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return Oh(e.params?_u(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();const s=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(s):n.setStyles(i.styles,s,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,o=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,i.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+s),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,o=i.options||{},s=o.delay?$s(o.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vh);let r=n;const a=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const p=e.createSubContext(i.options,c);s&&p.delayNextStep(s),c===e.element&&(l=p.currentTimeline),Io(this,i.animation,p),p.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,p.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,o=e.currentTimeline,s=i.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let l=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const p=u.currentTime;Io(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-p+(o.startTime-n.currentTimeline.startTime)}}const Vh={};class wI{constructor(i,e,n,o,s,r,a,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let o=this.options;null!=n.duration&&(o.duration=$s(n.duration)),null!=n.delay&&(o.delay=$s(n.delay));const s=n.params;if(s){let r=o.params;r||(r=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=_u(s[a],r,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){const o=e||this.element,s=new wI(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=Vh,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},s=new vj(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,s,r){let a=[];if(o&&a.push(this.element),i.length>0){i=(i=i.replace(mj,"."+this._enterClassName)).replace(Ij,"."+this._leaveClassName);let c=this._driver.query(this.element,i,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&0==a.length&&r.push(function Ez(t){return new Ae(3014,!1)}()),a}}class Bh{constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Bh(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||js),this._currentKeyframe.set(e,js);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},r=function bj(t,i){const e=new Map;let n;return t.forEach(o=>{if("*"===o){n=n||i.keys();for(let s of n)e.set(s,js)}else wr(o,e)}),e}(i,this._globalTimelineStyles);for(let[a,l]of r){const c=_u(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??js),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=wr(a,new Map,this._backFill);c.forEach((u,p)=>{"!"===u?i.add(p):u===js&&e.add(p)}),n||c.set("offset",l/this.duration),o.push(c)});const s=i.size?Lh(i.values()):[],r=e.size?Lh(e.values()):[];if(n){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return xI(this.element,o,s,r,this.duration,this.startTime,this.easing,!1)}}class vj extends Bh{constructor(i,e,n,o,s,r,a=!1){super(i,e,r.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,a=e/r,l=wr(i[0]);l.set("offset",0),s.push(l);const c=wr(i[0]);c.set("offset",vE(a)),s.push(c);const u=i.length-1;for(let p=1;p<=u;p++){let m=wr(i[p]);const _=m.get("offset");m.set("offset",vE((e+_*n)/r)),s.push(m)}n=r,e=0,o="",i=s}return xI(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}}function vE(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class TI{}const yj=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 xj extends TI{normalizePropertyName(i,e){return vI(i)}normalizeStyleValue(i,e,n,o){let s="";const r=n.toString().trim();if(yj.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function _z(t,i){return new Ae(3005,!1)}())}return r+s}}function bE(t,i,e,n,o,s,r,a,l,c,u,p,m){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:s,toState:n,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:m}}const SI={};class yE{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return function Aj(t,i,e,n,o){return t.some(s=>s(i,e,n,o))}(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return void 0!==i&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,s,r,a,l,c,u){const p=[],m=this.ast.options&&this.ast.options.params||SI,b=this.buildStyles(n,a&&a.params||SI,p),E=l&&l.params||SI,P=this.buildStyles(o,E,p),W=new Set,te=new Map,fe=new Map,Ce="void"===o,ve={params:wj(E,m),delay:this.ast.options?.delay},ke=u?[]:AI(i,e,this.ast.animation,s,r,b,P,ve,c,p);let Pe=0;if(ke.forEach(Ke=>{Pe=Math.max(Ke.duration+Ke.delay,Pe)}),p.length)return bE(e,this._triggerName,n,o,Ce,b,P,[],[],te,fe,Pe,p);ke.forEach(Ke=>{const pt=Ke.element,jt=_o(te,pt,new Set);Ke.preStyleProps.forEach(vn=>jt.add(vn));const Vt=_o(fe,pt,new Set);Ke.postStyleProps.forEach(vn=>Vt.add(vn)),pt!==e&&W.add(pt)});const $e=Lh(W.values());return bE(e,this._triggerName,n,o,Ce,b,P,ke,$e,te,fe,Pe)}}function wj(t,i){const e=gu(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class Tj{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,o=gu(this.defaultParams);return Object.keys(i).forEach(s=>{const r=i[s];null!==r&&(o[s]=r)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((r,a)=>{r&&(r=_u(r,o,e));const l=this.normalizer.normalizePropertyName(a,e);r=this.normalizer.normalizeStyleValue(a,l,r,e),n.set(a,r)})}),n}}class Ej{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new Tj(o.style,o.options&&o.options.params||{},n))}),xE(this.states,"true","1"),xE(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new yE(i,o,this.states))}),this.fallbackTransition=function Dj(t,i,e){return new yE(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,a)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(r=>r.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function xE(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const kj=new Nh;class Mj{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],s=bI(this._driver,e,n,[]);if(n.length)throw function Fz(t){return new Ae(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,e,n){const o=i.element,s=sE(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,s,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const o=[],s=this._animations.get(i);let r;const a=new Map;if(s?(r=AI(this._driver,e,s,mI,Dh,new Map,new Map,n,kj,o),r.forEach(u=>{const p=_o(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(o.push(function Rz(){return new Ae(3300,!1)}()),r=[]),o.length)throw function Nz(t){return new Ae(3504,!1)}();a.forEach((u,p)=>{u.forEach((m,_)=>{u.set(_,this._driver.computeStyle(p,_,js))})});const c=Ar(r.map(u=>{const p=a.get(u.element);return this._buildPlayer(u,new Map,p)}));return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function Vz(t){return new Ae(3301,!1)}();return e}listen(i,e,n,o){const s=hI(e,"","","");return dI(this._getPlayer(i),n,s,o),()=>{}}command(i,e,n,o){if("register"==n)return void this.register(i,o[0]);if("create"==n)return void this.create(i,e,o[0]||{});const s=this._getPlayer(i);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i)}}}const AE="ng-animate-queued",EI="ng-animate-disabled",Rj=[],wE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wo="__ng_removed";class DI{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function zj(t){return t??null}(n?i.value:i),n){const s=gu(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(o=>{null==n[o]&&(n[o]=e[o])})}}}const Iu="void",kI=new DI(Iu);class Vj{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Lo(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw function Bz(t,i){return new Ae(3302,!1)}();if(null==n||0==n.length)throw function Hz(t){return new Ae(3303,!1)}();if(!function jj(t){return"start"==t||"done"==t}(n))throw function zz(t,i){return new Ae(3400,!1)}();const s=_o(this._elementListeners,i,[]),r={name:e,phase:n,callback:o};s.push(r);const a=_o(this._engine.statesByElement,i,new Map);return a.has(e)||(Lo(i,kh),Lo(i,kh+"-"+e),a.set(e,kI)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(r);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function jz(t){return new Ae(3401,!1)}();return e}trigger(i,e,n,o=!0){const s=this._getTrigger(e),r=new MI(this.id,e,i);let a=this._engine.statesByElement.get(i);a||(Lo(i,kh),Lo(i,kh+"-"+e),this._engine.statesByElement.set(i,a=new Map));let l=a.get(e);const c=new DI(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=kI),c.value!==Iu&&l.value===c.value){if(!function Kj(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let o=0;o{aa(i,P),ps(i,W)})}return}const m=_o(this._engine.playersByElement,i,[]);m.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let _=s.matchTransition(l.value,c.value,i,c.params),b=!1;if(!_){if(!o)return;_=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:_,fromState:l,toState:c,player:r,isFallbackTransition:b}),b||(Lo(i,AE),r.onStart(()=>{Ol(i,AE)})),r.onDone(()=>{let E=this.players.indexOf(r);E>=0&&this.players.splice(E,1);const P=this._engine.playersByElement.get(i);if(P){let W=P.indexOf(r);W>=0&&P.splice(W,1)}}),this.players.push(r),m.push(r),r}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,Mh,!0);n.forEach(o=>{if(o[Wo])return;const s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(r=>r.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){const s=this._engine.statesByElement.get(i),r=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){const u=this.trigger(i,c,Iu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,r),n&&Ar(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const o=new Set;e.forEach(s=>{const r=s.name;if(o.has(r))return;o.add(r);const l=this._triggers.get(r).fallbackTransition,c=n.get(r)||kI,u=new DI(Iu),p=new MI(this.id,r,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:r,transition:l,fromState:c,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(i):[];if(s&&s.length)o=!0;else{let r=i;for(;r=r.parentNode;)if(n.statesByElement.get(r)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{const s=i[Wo];(!s||s===wE)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Lo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const o=n.player;if(o.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(a=>{if(a.name==n.triggerName){const l=hI(s,n.triggerName,n.fromState.value,n.toState.value);l._data=i,dI(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{const s=n.transition.ast.depCount,r=o.transition.ast.depCount;return 0==s||0==r?s-r:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class Bj{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Vj(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,i),r=!0;break}a=this.driver.getParentElement(a)}r||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);const o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let o of n.values())if(o.namespaceId){const s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}return e}trigger(i,e,n,o){if(Hh(e)){const s=this._fetchNamespace(i);if(s)return s.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Hh(e))return;const s=e[Wo];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(i){const r=this._fetchNamespace(i);r&&r.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Lo(i,EI)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Ol(i,EI))}removeNode(i,e,n){if(Hh(e)){const o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);const s=this.namespacesByHostElement.get(e);s&&s.id!==i&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,s){this.collectedLeaveElements.push(e),e[Wo]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,e,n,o,s){return Hh(e)?this._fetchNamespace(i).listen(e,n,o,s):()=>{}}_buildInstruction(i,e,n,o,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,s)}destroyInnerAnimations(i){let e=this.driver.query(i,Mh,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,_I,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Ar(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Wo];if(e&&e.setForRemoval){if(i[Wo]=wE,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(EI)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?Ar(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw function Uz(t){return new Ae(3402,!1)}()}_flushAnimations(i,e){const n=new Nh,o=[],s=new Map,r=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(We=>{u.add(We);const tt=this.driver.query(We,".ng-animate-queued",!0);for(let ct=0;ct{const ct=mI+E++;b.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))});const P=[],W=new Set,te=new Set;for(let We=0;WeW.add(Kt)):te.add(tt))}const fe=new Map,Ce=EE(m,Array.from(W));Ce.forEach((We,tt)=>{const ct=Dh+E++;fe.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))}),i.push(()=>{_.forEach((We,tt)=>{const ct=b.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),Ce.forEach((We,tt)=>{const ct=fe.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),P.forEach(We=>{this.processLeaveNode(We)})});const ve=[],ke=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ct=>{const Kt=ct.player,Pn=ct.element;if(ve.push(Kt),this.collectedEnterElements.length){const Fi=Pn[Wo];if(Fi&&Fi.setForMove){if(Fi.previousTriggersValues&&Fi.previousTriggersValues.has(ct.triggerName)){const wa=Fi.previousTriggersValues.get(ct.triggerName),Vo=this.statesByElement.get(ct.element);if(Vo&&Vo.has(ct.triggerName)){const ug=Vo.get(ct.triggerName);ug.value=wa,Vo.set(ct.triggerName,ug)}}return void Kt.destroy()}}const Zi=!p||!this.driver.containsElement(p,Pn),oi=fe.get(Pn),ro=b.get(Pn),wn=this._buildInstruction(ct,n,ro,oi,Zi);if(wn.errors&&wn.errors.length)return void ke.push(wn);if(Zi)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);if(ct.isFallbackTransition)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);const ec=[];wn.timelines.forEach(Fi=>{Fi.stretchStartingKeyframe=!0,this.disabledNodes.has(Fi.element)||ec.push(Fi)}),wn.timelines=ec,n.append(Pn,wn.timelines),r.push({instruction:wn,player:Kt,element:Pn}),wn.queriedElements.forEach(Fi=>_o(a,Fi,[]).push(Kt)),wn.preStyleProps.forEach((Fi,wa)=>{if(Fi.size){let Vo=l.get(wa);Vo||l.set(wa,Vo=new Set),Fi.forEach((ug,Nv)=>Vo.add(Nv))}}),wn.postStyleProps.forEach((Fi,wa)=>{let Vo=c.get(wa);Vo||c.set(wa,Vo=new Set),Fi.forEach((ug,Nv)=>Vo.add(Nv))})});if(ke.length){const We=[];ke.forEach(tt=>{We.push(function $z(t,i){return new Ae(3505,!1)}())}),ve.forEach(tt=>tt.destroy()),this.reportError(We)}const Pe=new Map,$e=new Map;r.forEach(We=>{const tt=We.element;n.has(tt)&&($e.set(tt,tt),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,Pe))}),o.forEach(We=>{const tt=We.element;this._getPreviousPlayers(tt,!1,We.namespaceId,We.triggerName,null).forEach(Kt=>{_o(Pe,tt,[]).push(Kt),Kt.destroy()})});const Ke=P.filter(We=>kE(We,l,c)),pt=new Map;SE(pt,this.driver,te,c,js).forEach(We=>{kE(We,l,c)&&Ke.push(We)});const Vt=new Map;_.forEach((We,tt)=>{SE(Vt,this.driver,new Set(We),l,"!")}),Ke.forEach(We=>{const tt=pt.get(We),ct=Vt.get(We);pt.set(We,new Map([...tt?.entries()??[],...ct?.entries()??[]]))});const vn=[],hi=[],wt={};r.forEach(We=>{const{element:tt,player:ct,instruction:Kt}=We;if(n.has(tt)){if(u.has(tt))return ct.onDestroy(()=>ps(tt,Kt.toStyles)),ct.disabled=!0,ct.overrideTotalTime(Kt.totalTime),void o.push(ct);let Pn=wt;if($e.size>1){let oi=tt;const ro=[];for(;oi=oi.parentNode;){const wn=$e.get(oi);if(wn){Pn=wn;break}ro.push(oi)}ro.forEach(wn=>$e.set(wn,Pn))}const Zi=this._buildAnimation(ct.namespaceId,Kt,Pe,s,Vt,pt);if(ct.setRealPlayer(Zi),Pn===wt)vn.push(ct);else{const oi=this.playersByElement.get(Pn);oi&&oi.length&&(ct.parentPlayer=Ar(oi)),o.push(ct)}}else aa(tt,Kt.fromStyles),ct.onDestroy(()=>ps(tt,Kt.toStyles)),hi.push(ct),u.has(tt)&&o.push(ct)}),hi.forEach(We=>{const tt=s.get(We.element);if(tt&&tt.length){const ct=Ar(tt);We.setRealPlayer(ct)}}),o.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!Zi.destroyed);Pn.length?Uj(this,tt,Pn):this.processLeaveNode(tt)}return P.length=0,vn.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const tt=this.players.indexOf(We);this.players.splice(tt,1)}),We.play()}),vn}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,s){let r=[];if(e){const a=this.playersByQueriedElement.get(i);a&&(r=a)}else{const a=this.playersByElement.get(i);if(a){const l=!s||s==Iu;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||r.push(c)})}}return(n||o)&&(r=r.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),r}_beforeAnimationBuild(i,e,n){const s=e.element,r=e.isRemovalTransition?void 0:i,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,p=_o(n,c,[]);this._getPreviousPlayers(c,u,r,a,e.toState).forEach(_=>{const b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),p.push(_)})}aa(s,e.fromStyles)}_buildAnimation(i,e,n,o,s,r){const a=e.triggerName,l=e.element,c=[],u=new Set,p=new Set,m=e.timelines.map(b=>{const E=b.element;u.add(E);const P=E[Wo];if(P&&P.removedBeforeQueried)return new fu(b.duration,b.delay);const W=E!==l,te=function $j(t){const i=[];return DE(t,i),i}((n.get(E)||Rj).map(Pe=>Pe.getRealPlayer())).filter(Pe=>!!Pe.element&&Pe.element===E),fe=s.get(E),Ce=r.get(E),ve=sE(this._normalizer,b.keyframes,fe,Ce),ke=this._buildPlayer(b,ve,te);if(b.subTimeline&&o&&p.add(E),W){const Pe=new MI(i,a,E);Pe.setRealPlayer(ke),c.push(Pe)}return ke});c.forEach(b=>{_o(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function Hj(t,i,e){let n=t.get(i);if(n){if(n.length){const o=n.indexOf(e);n.splice(o,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>Lo(b,pE));const _=Ar(m);return _.onDestroy(()=>{u.forEach(b=>Ol(b,pE)),ps(l,e.toStyles)}),p.forEach(b=>{_o(o,b,[]).push(_)}),_}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new fu(i.duration,i.delay)}}class MI{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new fu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>dI(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){_o(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Hh(t){return t&&1===t.nodeType}function TE(t,i){const e=t.style.display;return t.style.display=i??"none",e}function SE(t,i,e,n,o){const s=[];e.forEach(l=>s.push(TE(l)));const r=[];n.forEach((l,c)=>{const u=new Map;l.forEach(p=>{const m=i.computeStyle(c,p,o);u.set(p,m),(!m||0==m.length)&&(c[Wo]=Nj,r.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>TE(l,s[a++])),r}function EE(t,i){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==i.length)return e;const o=new Set(i),s=new Map;function r(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:r(c),s.set(a,l),l}return i.forEach(a=>{const l=r(a);1!==l&&e.get(l).push(a)}),e}function Lo(t,i){t.classList?.add(i)}function Ol(t,i){t.classList?.remove(i)}function Uj(t,i,e){Ar(e).onDone(()=>t.processLeaveNode(i))}function DE(t,i){for(let e=0;eo.add(s)):i.set(t,n),e.delete(t),!0}class zh{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Bj(i,e,n),this._timelineEngine=new Mj(i,e,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,n,o,s){const r=i+"-"+o;let a=this._triggerCache[r];if(!a){const l=[],u=bI(this._driver,s,l,[]);if(l.length)throw function Lz(t,i){return new Ae(3404,!1)}();a=function Sj(t,i,e){return new Ej(t,i,e)}(o,u,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,o,a)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if("@"==n.charAt(0)){const[s,r]=rE(n);this._timelineEngine.command(s,e,r,o)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,s){if("@"==n.charAt(0)){const[r,a]=rE(n);return this._timelineEngine.listen(r,e,a,s)}return this._transitionEngine.listen(i,e,n,o,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let qj=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ps(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ps(this._element,this._initialStyles),this._endStyles&&(ps(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(aa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(aa(this._element,this._endStyles),this._endStyles=null),ps(this._element,this._initialStyles),this._state=3)}}return t})();function OI(t){let i=null;return t.forEach((e,n)=>{(function Wj(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class ME{constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{"offset"!==o&&i.set(o,this._finished?n:mE(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Qj{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return lE(i,e)}getParentElement(i){return fI(i)}query(i,e,n){return cE(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,o,s,r=[]){const l={duration:n,delay:o,fill:0==o?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=r.filter(_=>_ instanceof ME);(function nj(t,i){return 0===t||0===i})(n,o)&&u.forEach(_=>{_.currentSnapshot.forEach((b,E)=>c.set(E,b))});let p=function Jz(t){return t.length?t[0]instanceof Map?t:t.map(i=>hE(i)):[]}(e).map(_=>wr(_));p=function ij(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((s,r)=>{n.has(r)||o.push(r),n.set(r,s)}),o.length)for(let s=1;sr.set(a,mE(t,a)))}}return i}(i,p,c);const m=function Gj(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=OI(i[0]),i.length>1&&(n=OI(i[i.length-1]))):i instanceof Map&&(e=OI(i)),e||n?new qj(t,e,n):null}(i,p);return new ME(i,p,l,m)}}let Zj=(()=>{class t extends tE{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:To.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?nE(e):e;return OE(this._renderer,null,n,"register",[o]),new Yj(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class Yj extends dz{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Xj(this._id,i,e||{},this._renderer)}}class Xj{constructor(i,e,n,o){this.id=i,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return OE(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function OE(t,i,e,n,o){return t.setProperty(i,`@@${e}:${n}`,o)}const LE="@.disabled";let Jj=(()=>{class t{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(s,r)=>{const a=r?.parentNode(s);a&&r.removeChild(a,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let u=this._rendererCache.get(s);return u||(u=new PE("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const r=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(r,a,e,u.name,u)};return n.data.animation.forEach(l),new eU(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){e>=0&&en(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[r,a]=s;r(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(zh),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class PE{constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==LE?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class eU extends PE{constructor(i,e,n,o,s){super(e,n,o,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const o=function tU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let s=e.slice(1),r="";return"@"!=s.charAt(0)&&([s,r]=function nU(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,o,s,r,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(i,e,n)}}const FE=[{provide:tE,useClass:Zj},{provide:TI,useFactory:function oU(){return new xj}},{provide:zh,useClass:(()=>{class t extends zh{constructor(e,n,o,s){super(e.body,n,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(gI),Ze(TI),Ze(ta))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})()},{provide:Pc,useFactory:function sU(t,i,e){return new Jj(t,i,e)},deps:[L0,zh,Tt]}],LI=[{provide:gI,useFactory:()=>new Qj},{provide:My,useValue:"BrowserAnimations"},...FE],RE=[{provide:gI,useClass:uE},{provide:My,useValue:"NoopAnimations"},...FE];let NE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?RE:LI}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:LI,imports:[R0]})}return t})();function Cu(...t){const i=ic(t),e=Yv(t),{args:n,keys:o}=OT(t);if(0===n.length)return ri([],i);const s=new ce(function aU(t,i,e=_e){return n=>{VE(i,()=>{const{length:o}=t,s=new Array(o);let r=o,a=o;for(let l=0;l{const c=ri(t[l],i);let u=!1;c.subscribe(Ue(n,p=>{s[l]=p,u||(u=!0,a--),a||n.next(e(s.slice()))},()=>{--r||n.complete()}))},n)},n)}}(n,i,o?r=>LT(o,r):_e));return e?s.pipe(V0(e)):s}function VE(t,i,e){t?ws(e,t,i):i()}const Uh=ae(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function PI(...t){return function lU(){return Ta(1)}()(ri(t,ic(t)))}function BE(t){return new ce(i=>{Ri(t()).subscribe(i)})}function Ll(t,i){const e=L(t)?t:()=>t,n=o=>o.error(e());return new ce(i?o=>i.schedule(n,0,o):n)}function FI(){return Me((t,i)=>{let e=null;t._refCount++;const n=Ue(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class HE extends ce{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Be(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new F;const e=this.getSubject();i.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=F.EMPTY)}return i}refCount(){return FI()(this)}}function Pl(t){return t<=0?()=>es:Me((i,e)=>{let n=0;i.subscribe(Ue(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function $h(t){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function zE(t=uU){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function uU(){return new Uh}function ca(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,Pl(1),e?$h(i):zE(()=>new Uh))}function Ei(t,i,e){const n=L(t)||i||e?{next:t,error:i,complete:e}:t;return n?Me((o,s)=>{var r;null===(r=n.subscribe)||void 0===r||r.call(n);let a=!0;o.subscribe(Ue(s,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),s.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),s.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),s.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):_e}function Ci(t){return Me((i,e)=>{let s,n=null,o=!1;n=i.subscribe(Ue(e,void 0,void 0,r=>{s=Ri(t(r,Ci(t)(i))),n?(n.unsubscribe(),n=null,s.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,s.subscribe(e))})}function RI(t){return t<=0?()=>es:Me((i,e)=>{let n=[];i.subscribe(Ue(e,o=>{n.push(o),t{for(const o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}const Ot="primary",vu=Symbol("RouteTitle");class mU{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Fl(t){return new mU(t)}function _U(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[s]===o)}return t===i}function UE(t){return t.length>0?t[t.length-1]:null}function Tr(t){return function rU(t){return!!t&&(t instanceof ce||L(t.lift)&&L(t.subscribe))}(t)?t:Kc(t)?ri(Promise.resolve(t)):ht(t)}const CU={exact:function GE(t,i,e){if(!ua(t.segments,i.segments)||!Kh(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!GE(t.children[n],i.children[n],e))return!1;return!0},subset:qE},$E={exact:function vU(t,i){return hs(t,i)},subset:function bU(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>jE(t[e],i[e]))},ignored:()=>!0};function KE(t,i,e){return CU[e.paths](t.root,i.root,e.matrixParams)&&$E[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function qE(t,i,e){return WE(t,i,i.segments,e)}function WE(t,i,e,n){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!ua(o,e)||i.hasChildren()||!Kh(o,e,n))}if(t.segments.length===e.length){if(!ua(t.segments,e)||!Kh(t.segments,e,n))return!1;for(const o in i.children)if(!t.children[o]||!qE(t.children[o],i.children[o],n))return!1;return!0}{const o=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(ua(t.segments,o)&&Kh(t.segments,o,n)&&t.children[Ot])&&WE(t.children[Ot],i,s,n)}}function Kh(t,i,e){return i.every((n,o)=>$E[e](t[o].parameters,n.parameters))}class Rl{constructor(i=new gn([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return AU.serialize(this)}}class gn{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gh(this)}}class bu{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Fl(this.parameters)),this._parameterMap}toString(){return YE(this)}}function ua(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let yu=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new NI},providedIn:"root"})}return t})();class NI{parse(i){const e=new FU(i);return new Rl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${xu(i.root,!0)}`,n=function SU(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(o=>`${qh(e)}=${qh(o)}`).join("&"):`${qh(e)}=${qh(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function wU(t){return encodeURI(t)}(i.fragment)}`:""}`}}const AU=new NI;function Gh(t){return t.segments.map(i=>YE(i)).join("/")}function xu(t,i){if(!t.hasChildren())return Gh(t);if(i){const e=t.children[Ot]?xu(t.children[Ot],!1):"",n=[];return Object.entries(t.children).forEach(([o,s])=>{o!==Ot&&n.push(`${o}:${xu(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function xU(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Ot&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Ot&&(e=e.concat(i(o,n)))}),e}(t,(n,o)=>o===Ot?[xu(t.children[Ot],!1)]:[`${o}:${xu(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ot]?`${Gh(t)}/${e[0]}`:`${Gh(t)}/(${e.join("//")})`}}function QE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qh(t){return QE(t).replace(/%3B/gi,";")}function VI(t){return QE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wh(t){return decodeURIComponent(t)}function ZE(t){return Wh(t.replace(/\+/g,"%20"))}function YE(t){return`${VI(t.path)}${function TU(t){return Object.keys(t).map(i=>`;${VI(i)}=${VI(t[i])}`).join("")}(t.parameters)}`}const EU=/^[^\/()?;#]+/;function BI(t){const i=t.match(EU);return i?i[0]:""}const DU=/^[^\/()?;=#]+/,MU=/^[^=?&#]+/,LU=/^[^&#]+/;class FU{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gn([],{}):new gn([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ot]=new gn(i,e)),n}parseSegment(){const i=BI(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new Ae(4009,!1);return this.capture(i),new bu(Wh(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=function kU(t){const i=t.match(DU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=BI(this.remaining);o&&(n=o,this.capture(n))}i[Wh(e)]=Wh(n)}parseQueryParam(i){const e=function OU(t){const i=t.match(MU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=function PU(t){const i=t.match(LU);return i?i[0]:""}(this.remaining);r&&(n=r,this.capture(n))}const o=ZE(e),s=ZE(n);if(i.hasOwnProperty(o)){let r=i[o];Array.isArray(r)||(r=[r],i[o]=r),r.push(s)}else i[o]=s}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=BI(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new Ae(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Ot);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[Ot]:new gn([],r),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new Ae(4011,!1)}}function XE(t){return t.segments.length>0?new gn([],{[Ot]:t}):t}function JE(t){const i={};for(const n of Object.keys(t.children)){const s=JE(t.children[n]);if(n===Ot&&0===s.segments.length&&s.hasChildren())for(const[r,a]of Object.entries(s.children))i[r]=a;else(s.segments.length>0||s.hasChildren())&&(i[n]=s)}return function RU(t){if(1===t.numberOfChildren&&t.children[Ot]){const i=t.children[Ot];return new gn(t.segments.concat(i.segments),i.children)}return t}(new gn(t.segments,i))}function da(t){return t instanceof Rl}function eD(t){let i;const o=XE(function e(s){const r={};for(const l of s.children){const c=e(l);r[l.outlet]=c}const a=new gn(s.url,r);return s===t&&(i=a),a}(t.root));return i??o}function tD(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(0===i.length)return HI(o,o,o,e,n);const s=function VU(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iD(!0,0,t);let i=0,e=!1;const n=t.reduce((o,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===r?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?i++:""!=a&&o.push(a))}),o):[...o,s]},[]);return new iD(e,i,n)}(i);if(s.toRoot())return HI(o,o,new gn([],{}),e,n);const r=function BU(t,i,e){if(t.isAbsolute)return new Zh(i,!0,0);if(!e)return new Zh(i,!1,NaN);if(null===e.parent)return new Zh(e,!0,0);const n=Qh(t.commands[0])?0:1;return function HU(t,i,e){let n=t,o=i,s=e;for(;s>o;){if(s-=o,n=n.parent,!n)throw new Ae(4005,!1);o=n.segments.length}return new Zh(n,!1,o-s)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(s,o,t),a=r.processChildren?wu(r.segmentGroup,r.index,s.commands):oD(r.segmentGroup,r.index,s.commands);return HI(o,r.segmentGroup,a,e,n)}function Qh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Au(t){return"object"==typeof t&&null!=t&&t.outlets}function HI(t,i,e,n,o){let r,s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),r=t===i?e:nD(t,i,e);const a=XE(JE(r));return new Rl(a,s,o)}function nD(t,i,e){const n={};return Object.entries(t.children).forEach(([o,s])=>{n[o]=s===i?e:nD(s,i,e)}),new gn(t.segments,n)}class iD{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Qh(n[0]))throw new Ae(4003,!1);const o=n.find(Au);if(o&&o!==UE(n))throw new Ae(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zh{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function oD(t,i,e){if(t||(t=new gn([],{})),0===t.segments.length&&t.hasChildren())return wu(t,i,e);const n=function jU(t,i,e){let n=0,o=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;const r=t.segments[o],a=e[n];if(Au(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!rD(l,c,r))return s;n+=2}else{if(!rD(l,{},r))return s;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexs!==Ot)&&t.children[Ot]&&1===t.numberOfChildren&&0===t.children[Ot].segments.length){const s=wu(t.children[Ot],i,e);return new gn(t.segments,s.children)}return Object.entries(n).forEach(([s,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=oD(t.children[s],i,r))}),Object.entries(t.children).forEach(([s,r])=>{void 0===n[s]&&(o[s]=r)}),new gn(t.segments,o)}}function zI(t,i,e){const n=t.segments.slice(0,i);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(i[e]=zI(new gn([],{}),0,n))}),i}function sD(t){const i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function rD(t,i,e){return t==e.path&&hs(i,e.parameters)}const Tu="imperative";class fs{constructor(i,e){this.id=i,this.url=e}}class Yh extends fs{constructor(i,e,n="imperative",o=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sr extends fs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Su extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nl extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=16}}class Xh extends fs{constructor(i,e,n,o){super(i,e),this.error=n,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aD extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $U extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KU extends fs{constructor(i,e,n,o,s){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class GU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WU{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QU{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ZU{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YU{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XU{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JU{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lD{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jI{}class UI{constructor(i){this.url=i}}class e${constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Eu,this.attachRef=null}}let Eu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new e$,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class cD{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=$I(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=$I(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=KI(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return KI(i,this._root).map(e=>e.value)}}function $I(t,i){if(t===i.value)return i;for(const e of i.children){const n=$I(t,e);if(n)return n}return null}function KI(t,i){if(t===i.value)return[i];for(const e of i.children){const n=KI(t,e);if(n.length)return n.unshift(i),n}return[]}class Ks{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vl(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class uD extends cD{constructor(i,e){super(i),this.snapshot=e,GI(this,i)}toString(){return this.snapshot.toString()}}function dD(t,i){const e=function t$(t,i){const r=new Jh([],{},{},"",{},Ot,i,null,{});return new hD("",new Ks(r,[]))}(0,i),n=new xo([new bu("",{})]),o=new xo({}),s=new xo({}),r=new xo({}),a=new xo(""),l=new Wi(n,o,r,a,s,Ot,i,e.root);return l.snapshot=e.root,new uD(new Ks(l,[]),e)}class Wi{constructor(i,e,n,o,s,r,a,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=s,this.outlet=r,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(at(c=>c[vu]))??ht(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(at(i=>Fl(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(at(i=>Fl(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pD(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const o=e[n],s=e[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(s.component)break;n--}}return function n$(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Jh{get title(){return this.data?.[vu]}constructor(i,e,n,o,s,r,a,l,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s,this.outlet=r,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Fl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hD extends cD{constructor(i,e){super(e),this.url=i,GI(this,e)}toString(){return fD(this._root)}}function GI(t,i){i.value._routerState=t,i.children.forEach(e=>GI(t,e))}function fD(t){const i=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${i}`}function qI(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),function IU(t,i){if(t.length!==i.length)return!1;for(let e=0;ehs(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||WI(t.parent,i.parent))}let QI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ot,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.parentContexts=et(Eu),this.location=et(go),this.changeDetector=et(Ft),this.environmentInjector=et(po),this.inputBinder=et(ef,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ae(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ae(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ae(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Ae(4013,!1);this._activatedRoute=e;const o=this.location,r=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new i$(e,a,o.injector);this.activated=o.createComponent(r,{index:o.length,injector:l,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]})}return t})();class i${constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Wi?this.route:i===Eu?this.childContexts:this.parent.get(i,e)}}const ef=new Ye("");let gD=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:n}=e,o=Cu([n.queryParams,n.params,n.data]).pipe(Ao(([s,r,a],l)=>(a={...s,...r,...a},0===l?ht(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const r=function f8(t){const i=Zt(t);if(!i)return null;const e=new Hc(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(n.component);if(r)for(const{templateName:a}of r.inputs)e.activatedComponentRef.setInput(a,s[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Du(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const o=function s$(t,i,e){return i.children.map(n=>{for(const o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Du(t,n,o);return Du(t,n)})}(t,i,e);return new Ks(n,o)}{if(t.shouldAttach(i.value)){const s=t.retrieve(i.value);if(null!==s){const r=s.route;return r.value._futureSnapshot=i.value,r.children=i.children.map(a=>Du(t,a)),r}}const n=function r$(t){return new Wi(new xo(t.url),new xo(t.params),new xo(t.queryParams),new xo(t.fragment),new xo(t.data),t.outlet,t.component,t)}(i.value),o=i.children.map(s=>Du(t,s));return new Ks(n,o)}}const ZI="ngNavigationCancelingError";function mD(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=da(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=_D(!1,0,i);return o.url=e,o.navigationBehaviorOptions=n,o}function _D(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[ZI]=!0,n.cancellationCode=i,e&&(n.url=e),n}function ID(t){return t&&t[ZI]}let CD=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Et],decls:1,vars:0,template:function(n,o){1&n&&le(0,"router-outlet")},dependencies:[QI],encapsulation:2})}return t})();function YI(t){const i=t.children&&t.children.map(YI),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ot&&(e.component=CD),e}function Qo(t){return t.outlet||Ot}function ku(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class f${constructor(i,e,n,o,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=s}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),qI(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{const r=s.value.outlet;this.deactivateRoutes(s,o[r],n),delete o[r]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(o===s)if(o.component){const r=n.getContext(o.outlet);r&&this.deactivateChildRoutes(i,e,r.children)}else this.deactivateChildRoutes(i,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);if(n&&n.outlet){const r=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:r,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],n),this.forwardEvent(new JU(s.value.snapshot))}),i.children.length&&this.forwardEvent(new YU(i.value.snapshot))}activateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(qI(o),o===s)if(o.component){const r=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,r.children)}else this.activateChildRoutes(i,e,n);else if(o.component){const r=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(a.contexts),r.attachRef=a.componentRef,r.route=a.route.value,r.outlet&&r.outlet.attach(a.componentRef,a.route.value),qI(a.route.value),this.activateChildRoutes(i,null,r.children)}else{const a=ku(o.snapshot);r.attachRef=null,r.route=o,r.injector=a,r.outlet&&r.outlet.activateWith(o,r.injector),this.activateChildRoutes(i,null,r.children)}}else this.activateChildRoutes(i,null,n)}}class vD{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class tf{constructor(i,e){this.component=i,this.route=e}}function g$(t,i,e){const n=t._root;return Mu(n,i?i._root:null,e,[n.value])}function Bl(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function R4(t){return null!==Cd(t)}(t)?i.get(t):t:n}function Mu(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Vl(i);return t.children.forEach(r=>{(function _$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,r=i?i.value:null,a=e?e.getContext(t.value.outlet):null;if(r&&s.routeConfig===r.routeConfig){const l=function I$(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!ua(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ua(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WI(t,i)||!hs(t.queryParams,i.queryParams);default:return!WI(t,i)}}(r,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vD(n)):(s.data=r.data,s._resolvedData=r._resolvedData),Mu(t,i,s.component?a?a.children:null:e,n,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new tf(a.outlet.component,r))}else r&&Ou(i,a,o),o.canActivateChecks.push(new vD(n)),Mu(t,null,s.component?a?a.children:null:e,n,o)})(r,s[r.value.outlet],e,n.concat([r.value]),o),delete s[r.value.outlet]}),Object.entries(s).forEach(([r,a])=>Ou(a,e.getContext(r),o)),o}function Ou(t,i,e){const n=Vl(t),o=t.value;Object.entries(n).forEach(([s,r])=>{Ou(r,o.component?i?i.children.getContext(s):null:i,e)}),e.canDeactivateChecks.push(new tf(o.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,o))}function Lu(t){return"function"==typeof t}function bD(t){return t instanceof Uh||"EmptyError"===t?.name}const nf=Symbol("INITIAL_VALUE");function Hl(){return Ao(t=>Cu(t.map(i=>i.pipe(Pl(1),function cU(...t){const i=ic(t);return Me((e,n)=>{(i?PI(t,e,i):PI(t,e)).subscribe(n)})}(nf)))).pipe(at(i=>{for(const e of i)if(!0!==e){if(e===nf)return nf;if(!1===e||e instanceof Rl)return e}return!0}),zs(i=>i!==nf),Pl(1)))}function yD(t){return function he(...t){return de(t)}(Ei(i=>{if(da(i))throw mD(0,i)}),at(i=>!0===i))}class sf{constructor(i){this.segmentGroup=i||null}}class xD{constructor(i){this.urlTree=i}}function zl(t){return Ll(new sf(t))}function AD(t){return Ll(new xD(t))}class V${constructor(i,e){this.urlSerializer=i,this.urlTree=e}noMatchError(i){return new Ae(4002,!1)}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return ht(n);if(o.numberOfChildren>1||!o.children[Ot])return Ll(new Ae(4e3,!1));o=o.children[Ot]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,o){const s=this.createSegmentGroup(i,e.root,n,o);return new Rl(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Object.entries(i).forEach(([o,s])=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);n[o]=e[a]}else n[o]=s}),n}createSegmentGroup(i,e,n,o){const s=this.createSegments(i,e.segments,n,o);let r={};return Object.entries(e.children).forEach(([a,l])=>{r[a]=this.createSegmentGroup(i,l,n,o)}),new gn(s,r)}createSegments(i,e,n,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,o):this.findOrReturn(s,n))}findPosParam(i,e,n){const o=n[e.path.substring(1)];if(!o)throw new Ae(4001,!1);return o}findOrReturn(i,e){let n=0;for(const o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}}const XI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B$(t,i,e,n,o){const s=JI(t,i,e);return s.matched?(n=function l$(t,i){return t.providers&&!t._injector&&(t._injector=O_(t.providers,i,`Route: ${t.path}`)),t._injector??i}(i,n),function F$(t,i,e,n){const o=i.canMatch;return o&&0!==o.length?ht(o.map(r=>{const a=Bl(r,t);return Tr(function A$(t){return t&&Lu(t.canMatch)}(a)?a.canMatch(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD()):ht(!0)}(n,i,e).pipe(at(r=>!0===r?s:{...XI}))):ht(s)}function JI(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...XI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(i.matcher||_U)(e,t,i);if(!o)return{...XI};const s={};Object.entries(o.posParams??{}).forEach(([a,l])=>{s[a]=l.path});const r=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:r,positionalParamSegments:o.posParams??{}}}function wD(t,i,e,n){return e.length>0&&function j$(t,i,e){return e.some(n=>rf(t,i,n)&&Qo(n)!==Ot)}(t,e,n)?{segmentGroup:new gn(i,z$(n,new gn(e,t.children))),slicedSegments:[]}:0===e.length&&function U$(t,i,e){return e.some(n=>rf(t,i,n))}(t,e,n)?{segmentGroup:new gn(t.segments,H$(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new gn(t.segments,t.children),slicedSegments:e}}function H$(t,i,e,n,o){const s={};for(const r of n)if(rf(t,e,r)&&!o[Qo(r)]){const a=new gn([],{});s[Qo(r)]=a}return{...o,...s}}function z$(t,i){const e={};e[Ot]=i;for(const n of t)if(""===n.path&&Qo(n)!==Ot){const o=new gn([],{});e[Qo(n)]=o}return e}function rf(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}class q${constructor(i,e,n,o,s,r,a){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=r,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new V$(this.urlSerializer,this.urlTree)}noMatchError(i){return new Ae(4002,!1)}recognize(){const i=wD(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Ot).pipe(Ci(e=>{if(e instanceof xD)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof sf?this.noMatchError(e):e}),at(e=>{const n=new Jh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ot,this.rootComponentType,null,{}),o=new Ks(n,e),s=new hD("",o),r=function NU(t,i,e=null,n=null){return tD(eD(t),i,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(s._root),{state:s,tree:r}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,Ot).pipe(Ci(n=>{throw n instanceof sf?this.noMatchError(n):n}))}inheritParamsAndData(i){const e=i.value,n=pD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(i,e,n,o){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,o,!0)}processChildren(i,e,n){const o=[];for(const s of Object.keys(n.children))"primary"===s?o.unshift(s):o.push(s);return ri(o).pipe(El(s=>{const r=n.children[s],a=function p$(t,i){const e=t.filter(n=>Qo(n)===i);return e.push(...t.filter(n=>Qo(n)!==i)),e}(e,s);return this.processSegmentGroup(i,a,r,s)}),function pU(t,i){return Me(function dU(t,i,e,n,o){return(s,r)=>{let a=e,l=i,c=0;s.subscribe(Ue(r,u=>{const p=c++;l=a?t(l,u,p):(a=!0,u),n&&r.next(l)},o&&(()=>{a&&r.next(l),r.complete()})))}}(t,i,arguments.length>=2,!0))}((s,r)=>(s.push(...r),s)),$h(null),function hU(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,RI(1),e?$h(i):zE(()=>new Uh))}(),si(s=>{if(null===s)return zl(n);const r=TD(s);return function W$(t){t.sort((i,e)=>i.value.outlet===Ot?-1:e.value.outlet===Ot?1:i.value.outlet.localeCompare(e.value.outlet))}(r),ht(r)}))}processSegment(i,e,n,o,s,r){return ri(e).pipe(El(a=>this.processSegmentAgainstRoute(a._injector??i,e,a,n,o,s,r).pipe(Ci(l=>{if(l instanceof sf)return ht(null);throw l}))),ca(a=>!!a),Ci(a=>{if(bD(a))return function K$(t,i,e){return 0===i.length&&!t.children[e]}(n,o,s)?ht([]):zl(n);throw a}))}processSegmentAgainstRoute(i,e,n,o,s,r,a){return function $$(t,i,e,n){return!!(Qo(t)===n||n!==Ot&&rf(i,e,t))&&("**"===t.path||JI(i,t,e).matched)}(n,o,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(i,o,n,s,r,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,s,r):zl(o):zl(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,o,r):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,o){const s=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?AD(s):this.applyRedirects.lineralizeSegments(n,s).pipe(si(r=>{const a=new gn(r,{});return this.processSegment(i,e,a,r,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=JI(e,o,s);if(!a)return zl(e);const p=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?AD(p):this.applyRedirects.lineralizeSegments(o,p).pipe(si(m=>this.processSegment(i,n,e,m.concat(c),r,!1)))}matchSegmentAgainstRoute(i,e,n,o,s,r){let a;if("**"===n.path){const l=o.length>0?UE(o).parameters:{};a=ht({snapshot:new Jh(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=B$(e,n,o,i).pipe(at(({matched:l,consumedSegments:c,remainingSegments:u,parameters:p})=>l?{snapshot:new Jh(c,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Ao(l=>null===l?zl(e):this.getChildConfig(i=n._injector??i,n,o).pipe(Ao(({routes:c})=>{const u=n._loadedInjector??i,{snapshot:p,consumedSegments:m,remainingSegments:_}=l,{segmentGroup:b,slicedSegments:E}=wD(e,m,_,c);if(0===E.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(at(W=>null===W?null:[new Ks(p,W)]));if(0===c.length&&0===E.length)return ht([new Ks(p,[])]);const P=Qo(n)===s;return this.processSegment(u,c,b,E,P?Ot:s,!0).pipe(at(W=>[new Ks(p,W)]))}))))}getChildConfig(i,e,n){return e.children?ht({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ht({routes:e._loadedRoutes,injector:e._loadedInjector}):function P$(t,i,e,n){const o=i.canLoad;return void 0===o||0===o.length?ht(!0):ht(o.map(r=>{const a=Bl(r,t);return Tr(function v$(t){return t&&Lu(t.canLoad)}(a)?a.canLoad(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD())}(i,e,n).pipe(si(o=>o?this.configLoader.loadChildren(i,e).pipe(Ei(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function N$(t){return Ll(_D(!1,3))}())):ht({routes:[],injector:i})}}function Q$(t){const i=t.value.routeConfig;return i&&""===i.path}function TD(t){const i=[],e=new Set;for(const n of t){if(!Q$(n)){i.push(n);continue}const o=i.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...n.children),e.add(o)):i.push(n)}for(const n of e){const o=TD(n.children);i.push(new Ks(n.value,o))}return i.filter(n=>!e.has(n))}function SD(t){return t.data||{}}function ED(t){return t.resolve||{}}function DD(t){return"string"==typeof t.title||null===t.title}function eC(t){return Ao(i=>{const e=t(i);return e?ri(e).pipe(at(()=>i)):ht(i)})}const jl=new Ye("ROUTES");let tC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=et(l2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ht(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Tr(e.loadComponent()).pipe(at(kD),Ei(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),du(()=>{this.componentLoaders.delete(e)})),o=new HE(n,()=>new re).pipe(FI());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ht({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const s=function nK(t,i,e,n){return Tr(t.loadChildren()).pipe(at(kD),si(o=>o instanceof mw||Array.isArray(o)?ht(o):ri(i.compileModuleAsync(o))),at(o=>{n&&n(t);let s,r,a=!1;return Array.isArray(o)?(r=o,!0):(s=o.create(e).injector,r=s.get(jl,[],{optional:!0,self:!0}).flat()),{routes:r.map(YI),injector:s}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(du(()=>{this.childrenLoaders.delete(n)})),r=new HE(s,()=>new re).pipe(FI());return this.childrenLoaders.set(n,r),r}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kD(t){return function iK(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let af=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=et(tC),this.environmentInjector=et(po),this.urlSerializer=et(yu),this.rootContexts=et(Eu),this.inputBindingEnabled=null!==et(ef,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ht(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new QU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new WU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,o){return this.transitions=new xo({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Tu,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(zs(s=>0!==s.id),at(s=>({...s,extractedUrl:e.urlHandlingStrategy.extract(s.rawUrl)})),Ao(s=>{this.currentTransition=s;let r=!1,a=!1;return ht(s).pipe(Ei(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Ao(l=>{const c=l.currentBrowserUrl.toString(),u=!e.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),es}if(e.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ht(l).pipe(Ao(m=>{const _=this.transitions?.getValue();return this.events.next(new Yh(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),_!==this.transitions?.getValue()?es:Promise.resolve(m)}),function Z$(t,i,e,n,o,s){return si(r=>function G$(t,i,e,n,o,s,r="emptyOnly"){return new q$(t,i,e,n,o,r,s).recognize()}(t,i,e,n,r.extractedUrl,o,s).pipe(at(({state:a,tree:l})=>({...r,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Ei(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const _=new aD(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(_)}));if(u&&e.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:_,source:b,restoredState:E,extras:P}=l,W=new Yh(m,this.urlSerializer.serialize(_),b,E);this.events.next(W);const te=dD(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:te,urlAfterRedirects:_,extras:{...P,skipLocationChange:!1,replaceUrl:!1}},ht(s)}{const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),es}}),Ei(l=>{const c=new $U(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),at(l=>(this.currentTransition=s={...l,guards:g$(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function T$(t,i){return si(e=>{const{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:r}}=e;return 0===r.length&&0===s.length?ht({...e,guardsResult:!0}):function S$(t,i,e,n){return ri(t).pipe(si(o=>function L$(t,i,e,n,o){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ht(s.map(a=>{const l=ku(i)??o,c=Bl(a,l);return Tr(function x$(t){return t&&Lu(t.canDeactivate)}(c)?c.canDeactivate(t,i,e,n):l.runInContext(()=>c(t,i,e,n))).pipe(ca())})).pipe(Hl()):ht(!0)}(o.component,o.route,e,i,n)),ca(o=>!0!==o,!0))}(r,n,o,t).pipe(si(a=>a&&function C$(t){return"boolean"==typeof t}(a)?function E$(t,i,e,n){return ri(i).pipe(El(o=>PI(function k$(t,i){return null!==t&&i&&i(new ZU(t)),ht(!0)}(o.route.parent,n),function D$(t,i){return null!==t&&i&&i(new XU(t)),ht(!0)}(o.route,n),function O$(t,i,e){const n=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(r=>function m$(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(r)).filter(r=>null!==r).map(r=>BE(()=>ht(r.guards.map(l=>{const c=ku(r.node)??e,u=Bl(l,c);return Tr(function y$(t){return t&&Lu(t.canActivateChild)}(u)?u.canActivateChild(n,t):c.runInContext(()=>u(n,t))).pipe(ca())})).pipe(Hl())));return ht(s).pipe(Hl())}(t,o.path,e),function M$(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ht(!0);const o=n.map(s=>BE(()=>{const r=ku(i)??e,a=Bl(s,r);return Tr(function b$(t){return t&&Lu(t.canActivate)}(a)?a.canActivate(i,t):r.runInContext(()=>a(i,t))).pipe(ca())}));return ht(o).pipe(Hl())}(t,o.route,e))),ca(o=>!0!==o,!0))}(n,s,t,i):ht(a)),at(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),Ei(l=>{if(s.guardsResult=l.guardsResult,da(l.guardsResult))throw mD(0,l.guardsResult);const c=new KU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),zs(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),eC(l=>{if(l.guards.canActivateChecks.length)return ht(l).pipe(Ei(c=>{const u=new GU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ao(c=>{let u=!1;return ht(c).pipe(function Y$(t,i){return si(e=>{const{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return ht(e);let s=0;return ri(o).pipe(El(r=>function X$(t,i,e,n){const o=t.routeConfig,s=t._resolve;return void 0!==o?.title&&!DD(o)&&(s[vu]=o.title),function J$(t,i,e,n){const o=function eK(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ht({});const s={};return ri(o).pipe(si(r=>function tK(t,i,e,n){const o=ku(i)??n,s=Bl(t,o);return Tr(s.resolve?s.resolve(i,e):o.runInContext(()=>s(i,e)))}(t[r],i,e,n).pipe(ca(),Ei(a=>{s[r]=a}))),RI(1),function fU(t){return at(()=>t)}(s),Ci(r=>bD(r)?es:Ll(r)))}(s,t,i,n).pipe(at(r=>(t._resolvedData=r,t.data=pD(t,e).resolve,o&&DD(o)&&(t.data[vu]=o.title),null)))}(r.route,n,t,i)),Ei(()=>s++),RI(1),si(r=>s===o.length?ht(e):es))})}(e.paramsInheritanceStrategy,this.environmentInjector),Ei({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),Ei(c=>{const u=new qU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),eC(l=>{const c=u=>{const p=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ei(m=>{u.component=m}),at(()=>{})));for(const m of u.children)p.push(...c(m));return p};return Cu(c(l.targetSnapshot.root)).pipe($h(),Pl(1))}),eC(()=>this.afterPreactivation()),at(l=>{const c=function o$(t,i,e){const n=Du(t,i._root,e?e._root:void 0);return new uD(n,i)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:c},s}),Ei(()=>{this.events.next(new jI)}),((t,i,e,n)=>at(o=>(new f$(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Pl(1),Ei({next:l=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Sr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),e.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{r=!0}}),function gU(t){return Me((i,e)=>{Ri(t).subscribe(Ue(e,()=>e.complete(),C)),!e.closed&&i.subscribe(e)})}(this.transitionAbortSubject.pipe(Ei(l=>{throw l}))),du(()=>{r||a||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Ci(l=>{if(a=!0,ID(l))this.events.next(new Su(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function a$(t){return ID(t)&&da(t.url)}(l)?this.events.next(new UI(l.url)):s.resolve(!1);else{this.events.next(new Xh(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(l))}catch(c){s.reject(c)}}return es}))}))}cancelNavigationTransition(e,n,o){const s=new Su(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(s),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MD(t){return t!==Tu}let OD=(()=>{class t{buildTitle(e){let n,o=e.root;for(;void 0!==o;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ot);return n}getResolvedTitleForRoute(e){return e.data[vu]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(oK)},providedIn:"root"})}return t})(),oK=(()=>{class t extends OD{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ET))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(aK)},providedIn:"root"})}return t})();class rK{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let aK=(()=>{class t extends rK{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lf=new Ye("",{providedIn:"root",factory:()=>({})});let lK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(cK)},providedIn:"root"})}return t})(),cK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pu=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Pu||{});function LD(t,i){t.events.pipe(zs(e=>e instanceof Sr||e instanceof Su||e instanceof Xh||e instanceof Nl),at(e=>e instanceof Sr||e instanceof Nl?Pu.COMPLETE:e instanceof Su&&(0===e.code||1===e.code)?Pu.REDIRECTING:Pu.FAILED),zs(e=>e!==Pu.REDIRECTING),Pl(1)).subscribe(()=>{i()})}function uK(t){throw t}function dK(t,i,e){return i.parse("/")}const pK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let io=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=et(a2),this.isNgZoneEnabled=!1,this._events=new re,this.options=et(lf,{optional:!0})||{},this.pendingTasks=et(Kp),this.errorHandler=this.options.errorHandler||uK,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dK,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=et(lK),this.routeReuseStrategy=et(sK),this.titleStrategy=et(OD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=et(jl,{optional:!0})?.flat()??[],this.navigationTransitions=et(af),this.urlSerializer=et(yu),this.location=et(d0),this.componentInputBindingEnabled=!!et(ef,{optional:!0}),this.eventsSubscription=new F,this.isNgZoneEnabled=et(Tt)instanceof Tt&&Tt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dD(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(PD(n)&&this._events.next(n));if(n instanceof Yh)MD(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(n instanceof Nl)this.rawUrlTree=o.rawUrl;else if(n instanceof aD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(n instanceof jI)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(n instanceof Su)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(o);else if(n instanceof UI){const s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),r={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||MD(o.source)};this.scheduleNavigation(s,Tu,null,r,{resolve:o.resolve,reject:o.reject,promise:o.promise})}n instanceof Xh&&this.restoreHistory(o,!0),n instanceof Sr&&(this.navigated=!0),PD(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Tu,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,o){const s={replaceUrl:!0},r=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,n,r,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(YI),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){const{relativeTo:o,queryParams:s,fragment:r,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:r;let p,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{p=eD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),p=this.currentUrlTree.root}return tD(p,e,u,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){const o=da(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Tu,null,n)}navigate(e,n={skipLocationChange:!1}){return function fK(t){for(let i=0;i{const s=e[o];return null!=s&&(n[o]=s),n},{})}scheduleNavigation(e,n,o,s,r){if(this.disposed)return Promise.resolve(!1);let a,l,c;r?(a=r.resolve,l=r.reject,c=r.promise):c=new Promise((p,m)=>{a=p,l=m});const u=this.pendingTasks.add();return LD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}setBrowserUrl(e,n){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){const r={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(o,"",r)}else{const s={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function PD(t){return!(t instanceof jI||t instanceof UI)}let pa=(()=>{class t{constructor(e,n,o,s,r,a){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=r,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=r.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Sr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,n,o,s,r){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||o||s||r||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function yy(t,i,e){return function H5(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?by:Ls}(i,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const o=this.renderer,s=this.el.nativeElement;null!==n?o.setAttribute(s,e,n):o.removeAttribute(s,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(Wi),function $d(t){return function rP(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let o=0;for(;o{class t{get isActive(){return this._isActive}constructor(e,n,o,s,r){this.router=e,this.element=n,this.renderer=o,this.cdr=s,this.link=r,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ge,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Sr&&this.update()})}ngAfterContentInit(){ht(this.links.changes,ht(null)).pipe(Ta()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=ri(e).pipe(Ta()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const n=function gK(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(bt),V(hn),V(Ft),V(pa,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(1&n&&Gt(s,pa,5),2&n){let r;Se(r=Ee())&&(o.links=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]})}return t})();class FD{}let mK=(()=>{class t{constructor(e,n,o,s,r){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(zs(e=>e instanceof Sr),El(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const o=[];for(const s of n){s.providers&&!s._injector&&(s._injector=O_(s.providers,e,`Route: ${s.path}`));const r=s._injector??e,a=s._loadedInjector??r;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(r,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(a,s.children??s._loadedRoutes))}return ri(o).pipe(Ta())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;o=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ht(null);const s=o.pipe(si(r=>null===r?ht(void 0):(n._loadedRoutes=r.routes,n._loadedInjector=r.injector,this.processRoutes(r.injector??e,r.routes))));return n.loadComponent&&!n._loadedComponent?ri([s,this.loader.loadComponent(n)]).pipe(Ta()):s})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(io),Ze(l2),Ze(po),Ze(FD),Ze(tC))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const nC=new Ye("");let RD=(()=>{class t{constructor(e,n,o,s,r={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Yh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Sr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Nl&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){!function cx(){throw new Error("invalid")}()};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Gs(t,i){return{\u0275kind:t,\u0275providers:i}}function VD(){const t=et(Ui);return i=>{const e=t.get(ta);if(i!==e.components[0])return;const n=t.get(io),o=t.get(BD);1===t.get(iC)&&n.initialNavigation(),t.get(HD,null,zt.Optional)?.setUpPreloading(),t.get(nC,null,zt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const BD=new Ye("",{factory:()=>new re}),iC=new Ye("",{providedIn:"root",factory:()=>1}),HD=new Ye("");function vK(t){return Gs(0,[{provide:HD,useExisting:mK},{provide:FD,useExisting:t}])}const zD=new Ye("ROUTER_FORROOT_GUARD"),yK=[d0,{provide:yu,useClass:NI},io,Eu,{provide:Wi,useFactory:function ND(t){return t.routerState.root},deps:[io]},tC,[]];function xK(){return new g2("Router",io)}let qn=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[yK,[],{provide:jl,multi:!0,useValue:e},{provide:zD,useFactory:SK,deps:[[io,new qd,new Wd]]},{provide:lf,useValue:n||{}},n?.useHash?{provide:Ir,useClass:G2}:{provide:Ir,useClass:K2},{provide:nC,useFactory:()=>{const t=et(LV),i=et(Tt),e=et(lf),n=et(af),o=et(yu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new RD(o,n,t,i,e)}},n?.preloadingStrategy?vK(n.preloadingStrategy).\u0275providers:[],{provide:g2,multi:!0,useFactory:xK},n?.initialNavigation?EK(n):[],n?.bindToComponentInputs?Gs(8,[gD,{provide:ef,useExisting:gD}]).\u0275providers:[],[{provide:jD,useFactory:VD},{provide:e0,multi:!0,useExisting:jD}]]}}static forChild(e){return{ngModule:t,providers:[{provide:jl,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(zD,8))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function SK(t){return"guarded"}function EK(t){return["disabled"===t.initialNavigation?Gs(3,[{provide:G_,multi:!0,useFactory:()=>{const i=et(io);return()=>{i.setUpLocationChangeListener()}}},{provide:iC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Gs(2,[{provide:iC,useValue:0},{provide:G_,multi:!0,deps:[Ui],useFactory:i=>{const e=i.get(_8,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const o=i.get(io),s=i.get(BD);LD(o,()=>{n(!0)}),i.get(af).afterPreactivation=()=>(n(!0),s.closed?ht(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const jD=new Ye("");class kK{}class MK{}var Lt=function(t){return t[t.Passed="Passed"]="Passed",t[t.Failed="Failed"]="Failed",t[t.FailIgnored="FailIgnored"]="FailIgnored",t[t.Blocked="Blocked"]="Blocked",t[t.Stopped="Stopped"]="Stopped",t[t.Pending="Pending"]="Pending",t[t.InProgress="In Progress"]="InProgress",t[t.Canceled="Canceled"]="Canceled",t[t.Queued="Queued"]="Queued",t[t.FailedToQueue="Failed To Queue"]="FailedToQueue",t[t.Others="Others"]="Others",t}(Lt||{}),Er=function(t){return t[t.BusinessFlowsActivities=0]="BusinessFlowsActivities",t[t.ActivitiesActions=1]="ActivitiesActions",t[t.OutputValidation=2]="OutputValidation",t}(Er||{});class UD{}class OK{}class $D{}class LK{}var oC=function(t){return t[t.html=0]="html",t[t.htm=1]="htm",t[t.xls=2]="xls",t[t.xlsx=3]="xlsx",t[t.csv=4]="csv",t[t.json=5]="json",t[t.ppt=6]="ppt",t[t.jpg=7]="jpg",t[t.jpeg=8]="jpeg",t[t.png=9]="png",t[t.bmp=10]="bmp",t[t.txt=11]="txt",t[t.doc=12]="doc",t[t.docx=13]="docx",t[t.xml=14]="xml",t[t.pdf=15]="pdf",t[t.gif=16]="gif",t}(oC||{});let Co=(()=>{class t{constructor(){}getByKey(e){return JSON.parse(sessionStorage.getItem(e))}isExist(e){return null!=sessionStorage.getItem(e)}setItem(e,n){this.getByKey(e)||this.reomveByKey(e),sessionStorage.setItem(e,JSON.stringify(n))}setItemCache(e){this.runset=e}getItemCache(){return this.runset}reomveByKey(e){this.getByKey(e)&&sessionStorage.removeItem(e)}clearSession(){sessionStorage.clear()}msToTime1(e){var n=e%1e3,o=(e=(e-n)/1e3)%60,s=(e=(e-o)/60)%60,r=(e-s)/60;return(0==r?"00":r.toString())+":"+(0==s?"00":s.toString())+":"+(0==o?"00":o.toString())+"."+n}pad(e,n=2){return("00"+e).slice(-n)}msToTime(e){"seconds"==this.getByKey("timeFormat")&&(e*=1e3);var o=e%1e3,s=(e=(e-o)/1e3)%60,r=(e=(e-s)/60)%60;return this.pad((e-r)/60)+":"+this.pad(r)+":"+this.pad(s)+"."+this.pad(o,3)}replaceUnicodeChar(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u0021/g,"!")).replace(/u0022/g,'"')).replace(/u0023/g,"#")).replace(/u0024/g,"$")).replace(/u0025/g,"%")).replace(/u0026/g,"&")).replace(/u0027/g,"'")).replace(/u0028/g,"(")).replace(/u0029/g,")")).replace(/u002A/g,"*")).replace(/u002B/g,"+")).replace(/u002C/g,",")).replace(/u002D/g,"-")).replace(/u002E/g,".")).replace(/u002F/g,"/")).replace(/u003A/g,":")).replace(/u003B/g,";")).replace(/u003C/g,"<")).replace(/u003D/g,"=")).replace(/u003E/g,">")).replace(/u003F/g,"?")).replace(/u0040/g,"@")).replace(/u005B/g,"[")).replace(/u005C/g,"\\")).replace(/u005D/g,"]")).replace(/u005E/g,"^")).replace(/u005F/g,"_")).replace(/u0060/g,"`")).replace(/u007B/g,"{")).replace(/u007C/g,"|")).replace(/u007D/g,"}")).replace(/u007E/g,"~")).replace(/!/g,"!")).replace(/"/g,'"')).replace(/#/g,"#")).replace(/$/g,"$")).replace(/%/g,"%")).replace(/&/g,"&")).replace(/'/g,"'")).replace(/(/g,"(")).replace(/)/g,")")).replace(/*/g,"*")).replace(/+/g,"+")).replace(/,/g,",")).replace(/-/g,"-")).replace(/./g,".")).replace(///g,"/")).replace(/:/g,":")).replace(/;/g,";")).replace(/</g,"<")).replace(/=/g,"=")).replace(/>/g,">")).replace(/?/g,"?")).replace(/@/g,"@")).replace(/[/g,"[")).replace(/\/g,"\\")).replace(/]/g,"]")).replace(/^/g,"^")).replace(/_/g,"_")).replace(/`/g,"`")).replace(/{/g,"{")).replace(/|/g,"|")).replace(/}/g,"}")).replace(/~/g,"~")).trimStart()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KD(t,i,e,n,o,s,r){try{var a=t[s](r),l=a.value}catch(c){return void e(c)}a.done?i(l):Promise.resolve(l).then(n,o)}function Fu(t){return function(){var i=this,e=arguments;return new Promise(function(n,o){var s=t.apply(i,e);function r(l){KD(s,n,o,r,a,"next",l)}function a(l){KD(s,n,o,r,a,"throw",l)}r(void 0)})}}class PK extends F{constructor(i,e){super()}schedule(i,e=0){return this}}const uf={setInterval(t,i,...e){const{delegate:n}=uf;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=uf;return(i?.clearInterval||clearInterval)(t)},delegate:void 0},sC={now:()=>(sC.delegate||Date).now(),delegate:void 0};class Ru{constructor(i,e=Ru.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Ru.now=sC.now;const GD=new class RK extends Ru{constructor(i,e=Ru.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}(class FK extends PK{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return uf.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&uf.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let o,n=!1;try{this.work(i)}catch(s){n=!0,o=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}),NK=GD;function gs(t=1/0){let i;i=t&&"object"==typeof t?t:{count:t};const{count:e=1/0,delay:n,resetOnSuccess:o=!1}=i;return e<=0?_e:Me((s,r)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(Ue(r,p=>{o&&(a=0),r.next(p)},void 0,p=>{if(a++{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=n){const _="number"==typeof n?function BK(t=0,i,e=NK){let n=-1;return null!=i&&(Zv(i)?e=i:n=i),new ce(o=>{let s=function VK(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let r=0;return e.schedule(function(){o.closed||(o.next(r++),0<=n?this.schedule(void 0,n):o.complete())},s)})}(n):Ri(n(p,a)),b=Ue(r,()=>{b.unsubscribe(),m()},()=>{r.complete()});_.subscribe(b)}else m()}else r.error(p)})),u&&(l.unsubscribe(),l=null,c())};c()})}let ms=(()=>{class t{constructor(){this.baseAppUrl="",this.accountId=1,this.topBarTitle="",this.hideRightPanel=!1,this.imagePath="assets/screenshots/",this.artifactPath="assets/artifacts/",this.isServerLoading=!1}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ha=(()=>{class t{constructor(e,n){this.httpClient=e,this.globalVarService=n,this.httpOptions={headers:new qo({"Content-Type":"application/json"}),params:{}}}GetAccountHtmlReport(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReport",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBriefCase(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBriefCase/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParent(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParentAwait(e){var n=this;return Fu(function*(){return yield n.httpClient.post(n.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActivityById(e){var n=this;return Fu(function*(){return yield n.httpClient.get(n.globalVarService.baseAppUrl+"HtmlReport/GetActivityById/"+e,n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActionById(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetActionById/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBrief(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBrief/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActionsStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActionsStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActivitiesStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActivitiesStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}DownloadRunsetImages(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/DownloadRunsetImages",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}handleError(e){let n="";return n=e.error instanceof ErrorEvent?e.error.message:`Error Code: ${e.status}\nMessage: ${e.message}`,Ll(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qs=(()=>{class t{initService(e=!1){e&&(this.runset=null,this.businessFlows=[],this.activities=[],this.actions=[]),this.runset=this.getRunset(),this.businessFlows=this.getAllBusinessFlows(),this.activities=this.getAllActivities(),this.actions=this.getAllActions()}constructor(e,n,o){this._userDataManagerService=e,this.restServiceObj=n,this.globalVarService=o}populateChartsData(e,n){e.push(["Passed",n[0]]),e.push(["Failed",n[1]]),e.push(["Blocked",n[2]]),e.push(["Stopped",n[3]]),e.push(["Pending",n[4]]),e.push(["In Progress",n[5]]),e.push(["Canceled",n[6]])}getRunset(){return this._userDataManagerService.getItemCache()}getAllBusinessFlows(){return(null==this.businessFlows||this.businessFlows.length<=0)&&(this.businessFlows=this.getBusinessFlows()),this.businessFlows}getBusinessFlows(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)e.push(o);return e}getActivities(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)e.push(s);return e}getAllActivities(){return(null==this.activities||this.activities.length<=0)&&(this.activities=this.getActivities()),this.activities}getActions(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)if(null!=s.ActionsColl)for(let r of s.ActionsColl)e.push(r);return e}getAllActions(){return(null==this.actions||this.actions.length<=0)&&(this.actions=this.getActions()),this.actions}getRateArray(e){let n=[],o=this.businessFlows.filter(r=>r.RunStatus==e).length,s=this.businessFlows.length-o;return n.push(o),n.push(s),n}getOthersRateArray(e){}getRunnerExecutionStatus(e){let n=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Passed).length,o=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Failed).length,s=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Stopped).length,r=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Blocked).length,a=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Pending).length,l=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.InProgress).length,c=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Canceled).length,u=e.BusinessFlowsColl.length;return s>0?Lt.Stopped:r>0?Lt.Blocked:o>0?Lt.Failed:n==u?Lt.Passed:a==u||a==u?Lt.Pending:l==u?Lt.InProgress:c==u?Lt.Canceled:null}getRunnersExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.runset.RunnersColl)this.populateArrayByRunStatus(e,n.RunStatus);return e}getAllBusinessFlowsExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.businessFlows)this.populateArrayByRunStatus(e,n.RunStatus);return e}getRunnerBusinessFlowsExecutionStatusArray(e){let n=[0,0,0,0,0,0,0];for(let o of e.BusinessFlowsColl)this.populateArrayByRunStatus(n,o.RunStatus);return n}getActionsExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(),this.runset.TotalActionsPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)if(null!=r.ActionsColl&&r.ActionsColl.length)for(let a of r.ActionsColl)this.populateArrayByRunStatus(e,a.RunStatus);return e}return null}getActionsCount(){let e=0;for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)null!=s.ActionsColl&&s.ActionsColl.length&&(e+=s.ActionsColl.length);return e}getActivitiesExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(),this.runset.TotalActivitesPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)this.populateArrayByRunStatus(e,r.RunStatus);return e}return null}getActivitiesCount(){let e=0;for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)null!=o.ActivitiesColl&&o.ActivitiesColl.length>0&&(e+=o.ActivitiesColl.length);return e}populateArrayByRunStatus(e,n){switch("In Progress"==n.toString()&&(n=Lt.InProgress),n){case Lt.Passed:e[0]++;break;case Lt.Stopped:e[3]++;break;case Lt.Failed:e[1]++;break;case Lt.Pending:e[4]++;break;case Lt.Blocked:e[2]++;break;case Lt.InProgress:e[5]++;break;case Lt.Canceled:e[6]++}}getStatusClass(e,n=!0){let o="";return"Passed"==e?(o="passed-color",n?"fa fa-check-circle-o "+o:o):"Failed"==e?(o="failed-color",n?"fa fa-times-circle-o "+o:o):"Blocked"==e?(o="blocked-color",n?"fa fa-ban "+o:o):"Stopped"==e?(o="stopped-color",n?"fa fa-stop-circle-o "+o:o):"Pending"==e?(o="pending-color",n?"fa fa-clock-o "+o:o):"Skipped"==e?(o="skipped-color",n?"fa fa-minus-circle "+o:o):"In Progress"==e?(o="inprogress-color",n?"fa fa-hourglass-half "+o:o):"Canceled"==e?(o="canceled-color",n?"fa fa-stop-circle-o "+o:o):"Other"==e?"other-color":void 0}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Co),Ze(ha),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qD=(()=>{class t{constructor(){}load(...e){const n=[];return e.forEach(o=>n.push(this.loadScript(o))),Promise.all(n)}loadScript(e){return new Promise((n,o)=>{let s=document.createElement("script");s.setAttribute("data-complete","completeCallback"),s.setAttribute("data-cancel","cancelCallback"),s.setAttribute("data-error","errorCallback"),s.type="text/javascript",s.src=e,s.readyState?s.onreadystatechange=()=>{("loaded"===s.readyState||"complete"===s.readyState)&&(s.onreadystatechange=null,n({script:e,loaded:!0,status:"Loaded"}))}:s.onload=()=>{n({script:e,loaded:!0,status:"Loaded"})},s.onerror=r=>n({script:e,loaded:!1,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(s)})}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HK=(()=>{class t{constructor(e,n,o,s){this._http=e,this._userDataManagerService=n,this.calculatedDataService=o,this.fileLoader=s}getRunsetFromJsonByHttpRequest(){return null==this.runset&&(this.runset=this._http.get("assets/Execution_Data/executiondata.json"),this.runset.subscribe(e=>{const n={...e};this._userDataManagerService.setItem("0",n),this.calculatedDataService.initService()})),this.runset}GetExecutionData(){return new Promise((e,n)=>{let o=null;const s="assets/Execution_Data/executiondata.js?t="+Math.random().toString();this.fileLoader.load(s).then(r=>{typeof window.runsetData<"u"?(o=window.runsetData,this._userDataManagerService.setItemCache(o),this.calculatedDataService.initService(),e(o)):e(null)}).catch(r=>console.log(r))})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(Co),Ze(qs),Ze(qD))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ws=(()=>{class t{constructor(){this.messageSource=new re,this.itemChangedSource=new re,this.refreshChangedSource=new re,this.bfActivitiesSourceChange=new re,this.loadbfActivities=new re,this.runnerStatLoad=new re,this.bfStatLoad=new re,this.activityStatLoad=new re,this.actionStatLoad=new re,this.messageSourceHasNewMessage=this.messageSource.asObservable(),this.onItemChangedMessage=this.itemChangedSource.asObservable(),this.onRefreshChangedMessage=this.refreshChangedSource.asObservable(),this.onBfActivitiesDataChange=this.bfActivitiesSourceChange.asObservable(),this.onloadbfActivities=this.loadbfActivities.asObservable(),this.onactivityStatLoad=this.activityStatLoad.asObservable(),this.onactionStatLoad=this.actionStatLoad.asObservable(),this.onrunnerStatLoad=this.runnerStatLoad.asObservable(),this.onbfStatLoad=this.bfStatLoad.asObservable()}newMessage(e){this.messageSource.next(e)}changeItem(e){this.itemChangedSource.next(e)}refreshScreen(e){this.refreshChangedSource.next(e)}bfActivitiesChange(e){this.bfActivitiesSourceChange.next(e)}loadbfActivitiesData(e){this.loadbfActivities.next(e)}loadactivityStat(e){this.activityStatLoad.next(e)}loadactionStat(e){this.actionStatLoad.next(e)}loadrunnerStat(e){this.runnerStatLoad.next(e)}loadbfStat(e){this.bfStatLoad.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),WD=(()=>{class t{constructor(){this.selectedRouteLink="",this.selectedGuid=""}GetMenuFromRunSet(e,n=null){const o=[],s={id:e.GUID,label:e.Name,routerLink:["/"],icon:"fa fa-play-circle",expanded:!0,title:e.Name,queryParams:n?{ExecutionId:n}:null};return this.CheckSelectedGuid(s.id,s.routerLink),this.SetRunners(e,s),o.push(s),o}SetRunners(e,n){return n.items=[],e.RunnersColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+o.Seq],icon:"fa fa-play-circle-o",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetBusinessFlow(o,r)}),n}SetBusinessFlow(e,n){e.BusinessFlowsColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+e.Seq+"/"+o.Seq],icon:"fa fa-sitemap",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetActivites(o,e,r)})}SetActivites(e,n,o){null!=e.ActivitiesColl&&e.ActivitiesColl.forEach(s=>{let r=this.getStatusIcon(s.RunStatus);const a={id:s.GUID,label:s.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/"+s.Seq],icon:"fa fa-bars",title:s.Name,styleClass:r};this.CheckSelectedGuid(a.id,a.routerLink),o.items.push(a),a.items=[],this.SetActions(s,a,n,e)})}SetActions(e,n,o,s){null!=e.ActionsColl&&e.ActionsColl.forEach(r=>{let a=this.getStatusIcon(r.RunStatus);const l={id:r.GUID,label:r.Name,routerLink:["/"+o.Seq+"/"+s.Seq+"/"+e.Seq+"/"+r.Seq],icon:"fa fa-bolt",title:r.Name,styleClass:a};this.CheckSelectedGuid(l.id,l.routerLink),n.items.push(l)})}SetActGroups(e,n,o){const s={id:"",label:"Activities Groups",icon:"activityGroup-menu-icon",items:[]};e.ActivitiesGroupsColl.forEach(r=>{const a={id:r.GUID,label:r.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/ag/ag/"+r.Name],icon:"fa fa-fw fa-exclamation-circle",title:r.Name};this.CheckSelectedGuid(a.id,a.routerLink),s.items.push(a)}),o.items.push(s)}GetShortName(e){return e.length>20?e.substring(0,20)+"...":e}CheckSelectedGuid(e,n){typeof this.selectedGuid<"u"&&this.selectedGuid&&""===this.selectedRouteLink&&this.selectedGuid===e&&(this.selectedRouteLink=n+"?Guid="+e)}getStatusIcon(e){let n=" "+e+"Status";return e==Lt.Failed||e==Lt.FailIgnored||e==Lt.Passed||e==Lt.Canceled?n:e==Lt.InProgress||n.search("Progress")?"InProgressStatus":e==Lt.Queued||e==Lt.Stopped?n:void 0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class be{static equals(i,e,n){return n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof i&&"object"==typeof e){var s,r,a,n=Array.isArray(i),o=Array.isArray(e);if(n&&o){if((r=i.length)!=e.length)return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[s],e[s]))return!1;return!0}if(n!=o)return!1;var l=this.isDate(i),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return i.getTime()==e.getTime();var u=i instanceof RegExp,p=e instanceof RegExp;if(u!=p)return!1;if(u&&p)return i.toString()==e.toString();var m=Object.keys(i);if((r=m.length)!==Object.keys(e).length)return!1;for(s=r;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,m[s]))return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[a=m[s]],e[a]))return!1;return!0}return i!=i&&e!=e}static resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),o=i;for(let s=0,r=n.length;s=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static insertIntoOrderedArray(i,e,n,o){if(n.length>0){let s=!1;for(let r=0;re){n.splice(r,0,i),s=!0;break}s||n.push(i)}else n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let o=0;o-1&&(i=i.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),i}static isDate(i){return"[object Date]"===Object.prototype.toString.call(i)}static isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!this.isDate(i)&&"object"==typeof i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}static compare(i,e,n,o=1){let s=-1;const r=this.isEmpty(i),a=this.isEmpty(e);return s=r&&a?0:r?o:a?-o:"string"==typeof i&&"string"==typeof e?i.localeCompare(e,n,{numeric:!0}):ie?1:0,s}static sort(i,e,n=1,o,s=1){return(1===s?n:s)*be.compare(i,e,o,n)}static merge(i,e){if(null!=i||null!=e)return null!=i&&"object"!=typeof i||null!=e&&"object"!=typeof e?null!=i&&"string"!=typeof i||null!=e&&"string"!=typeof e?e||i:[i||"",e||""].join(" "):{...i||{},...e||{}}}static isPrintableCharacter(i=""){return this.isNotEmpty(i)&&1===i.length&&i.match(/\S| /)}static getItemValue(i,...e){return this.isFunction(i)?i(...e):i}static findLastIndex(i,e){let n=-1;if(this.isNotEmpty(i))try{n=i.findLastIndex(e)}catch{n=i.lastIndexOf([...i].reverse().find(e))}return n}static findLast(i,e){let n;if(this.isNotEmpty(i))try{n=i.findLast(e)}catch{n=[...i].reverse().find(e)}return n}}var QD=0;function $t(t="pn_id_"){return`${t}${++QD}`}var Wn=function zK(){let t=[];const o=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:o,set:(s,r,a)=>{r&&(r.style.zIndex=String(((s,r)=>{let a=t.length>0?t[t.length-1]:{key:s,value:r},l=a.value+(a.key===s?0:r)+2;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(r=>r.value!==s)})(o(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const ZD=["*"];let vi=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),YD=(()=>class t{static AND="and";static OR="or"})(),df=(()=>{class t{filter(e,n,o,s,r){let a=[];if(e)for(let l of e)for(let c of n){let u=be.resolveFieldData(l,c);if(this.filters[s](u,o,r)){a.push(l);break}}return a}filters={startsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return be.removeAccents(e.toString()).toLocaleLowerCase(o).slice(0,s.length)===s},contains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1!==be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},notContains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1===be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},endsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o),r=be.removeAccents(e.toString()).toLocaleLowerCase(o);return-1!==r.indexOf(s,r.length-s.length)},equals:(e,n,o)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o)),notEquals:(e,n,o)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let o=0;onull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,o)=>this.filters.equals(e,n,o),isNot:(e,n,o)=>this.filters.notEquals(e,n,o),before:(e,n,o)=>this.filters.lt(e,n,o),after:(e,n,o)=>this.filters.gt(e,n,o),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dr=(()=>{class t{clickSource=new re;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Di=(()=>{class t{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[vi.STARTS_WITH,vi.CONTAINS,vi.NOT_CONTAINS,vi.ENDS_WITH,vi.EQUALS,vi.NOT_EQUALS],numeric:[vi.EQUALS,vi.NOT_EQUALS,vi.LESS_THAN,vi.LESS_THAN_OR_EQUAL_TO,vi.GREATER_THAN,vi.GREATER_THAN_OR_EQUAL_TO],date:[vi.DATE_IS,vi.DATE_IS_NOT,vi.DATE_BEFORE,vi.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new re;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-header"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),rC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-footer"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),sn=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(V($o))};static \u0275dir=ut({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),Qe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),di=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})(),j=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let o=n.trim().split(" ");for(let s=0;so.split(" ").forEach(s=>this.removeClass(e,s)))}static hasClass(e,n){return!(!e||!n)&&(e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return Array.from(e.querySelectorAll(n))}static findSingle(e,n){return this.isElement(e)?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,o=0;for(var s=0;s{if(W)return"relative"===getComputedStyle(W).getPropertyValue("position")?W:o(W.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=n.offsetHeight,a=n.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),m=o(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let _,b;a.top+r+s.height>u.height?(_=a.top-m.top-s.height,e.style.transformOrigin="bottom",a.top+_<0&&(_=-1*a.top)):(_=r+a.top-m.top,e.style.transformOrigin="top");const E=a.left+s.width-u.width;b=s.width>u.width?-1*(a.left-m.left):E>0?a.left-m.left-E:a.left-m.left,e.style.top=_+"px",e.style.left=b+"px"}static absolutePosition(e,n){const o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,r=o.width,a=n.offsetHeight,l=n.offsetWidth,c=n.getBoundingClientRect(),u=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),m=this.getViewport();let _,b;c.top+a+s>m.height?(_=c.top+u-s,e.style.transformOrigin="bottom",_<0&&(_=u)):(_=a+c.top+u,e.style.transformOrigin="top"),b=c.left+r>m.width?Math.max(0,c.left+p+l-r):c.left+p,e.style.top=_+"px",e.style.left=b+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let o=this.getParents(e);const s=/(auto|scroll)/,r=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let p=this.findSingle(a,u);p&&r(p)&&n.push(p)}}9!==a.nodeType&&r(a)&&n.push(a)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let o=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=o?parseFloat(o):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),a=r?parseFloat(r):0,l=e.getBoundingClientRect(),u=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,p=e.scrollTop,m=e.clientHeight,_=this.getOuterHeight(n);u<0?e.scrollTop=p+u:u+_>m&&(e.scrollTop=p+u-m+_)}static fadeIn(e,n){e.style.opacity=0;let o=+new Date,s=0,r=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-o)/n,e.style.opacity=s,o=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var o=1,a=50/n;let l=setInterval(()=>{(o-=a)<=0&&(o=0,clearInterval(l)),e.style.opacity=o},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,n){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let o=e.offsetWidth;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return o}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static width(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n}static getOuterHeight(e,n){let o=e.offsetHeight;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return o}static getHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),n}static getViewport(){let e=window,n=document,o=n.documentElement,s=n.getElementsByTagName("body")[0];return{width:e.innerWidth||o.clientWidth||s.clientWidth,height:e.innerHeight||o.clientHeight||s.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let o=e.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(n,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,n){if(this.isElement(n))n.appendChild(e);else{if(!(n&&n.el&&n.el.nativeElement))throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let o=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,o){e[n].apply(e,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableElements(e,n=""){let o=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),s=[];for(let r of o)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return s}static getFirstFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[0]:null}static getLastFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(e,n=!1){const o=t.getFocusableElements(e);let s=0;if(o&&o.length>0){const r=o.indexOf(o[0].ownerDocument.activeElement);n?s=-1==r||0===r?o.length-1:r-1:-1!=r&&r!==o.length-1&&(s=r+1)}return o[s]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:const o=typeof e;if("string"===o)return document.querySelector(e);if("object"===o&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const r=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return r&&9===r.nodeType||this.isExist(r)?r:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){const o=e.getAttribute(n);return isNaN(o)?"true"===o||"false"===o?"true"===o:o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})();class Vu{element;listener;scrollableParents;constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=j.getScrollableParents(this.element);for(let i=0;i{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=be.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[Et],ngContentSelectors:UK,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0})}return t})(),bi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Qi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function $K(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.collapseIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function KK(t,i){1&t&&le(0,"ChevronDownIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function GK(t,i){if(1&t&&(we(0),g(1,$K,1,4,"span",9),g(2,KK,1,2,"ChevronDownIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.collapseIcon),h(1),d("ngIf",!e.accordion.collapseIcon)}}function qK(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.expandIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function WK(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function QK(t,i){if(1&t&&(we(0),g(1,qK,1,4,"span",9),g(2,WK,1,2,"ChevronRightIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.expandIcon),h(1),d("ngIf",!e.accordion.expandIcon)}}function ZK(t,i){if(1&t&&(we(0),g(1,GK,3,2,"ng-container",3),g(2,QK,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.selected),h(1),d("ngIf",!e.selected)}}function YK(t,i){}function XK(t,i){1&t&&g(0,YK,0,0,"ng-template")}function JK(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.header," ")}}function eG(t,i){1&t&&ze(0)}function tG(t,i){1&t&&Kn(0,1,["*ngIf","hasHeaderFacet"])}function nG(t,i){1&t&&ze(0)}function iG(t,i){if(1&t&&(we(0),g(1,nG,1,0,"ng-container",6),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)}}const oG=["*",[["p-header"]]],sG=function(t){return{$implicit:t}},XD=function(t){return{transitionParams:t}},rG=function(t){return{value:"visible",params:t}},aG=function(t){return{value:"hidden",params:t}},lG=["*","p-header"],cG=["*"];let fa=(()=>{class t{el;changeDetector;id;header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}headerAriaLevel=2;selectedChange=new ge;headerFacet;templates;_selected=!1;get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}contentTemplate;headerTemplate;iconTemplate;loaded=!1;accordion;constructor(e,n,o){this.el=n,this.changeDetector=o,this.accordion=e,this.id=$t()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"icon":this.iconTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var o=0;o0}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ga)),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordionTab"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,4),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:"headerAriaLevel"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:lG,decls:12,vars:45,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],["role","heading",1,"p-accordion-header"],["role","button",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-accordion-header-text"]],template:function(n,o){1&n&&(Ti(oG),x(0,"div",0)(1,"div",1)(2,"a",2),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeydown(r)}),g(3,ZK,3,2,"ng-container",3),g(4,XK,1,0,null,4),g(5,JK,2,1,"span",5),g(6,eG,1,0,"ng-container",6),g(7,tG,1,0,"ng-content",3),A()(),x(8,"div",7)(9,"div",8),Kn(10),g(11,iG,2,1,"ng-container",3),A()()()),2&n&&(Ii("p-accordion-tab-active",o.selected),d("ngClass",o.tabStyleClass)("ngStyle",o.tabStyle),K("data-pc-name","accordiontab"),h(1),Ii("p-highlight",o.selected)("p-disabled",o.disabled),K("aria-level",o.headerAriaLevel)("data-p-disabled",o.disabled)("data-pc-section","header"),h(1),yn(o.headerStyle),d("ngClass",o.headerStyleClass),K("tabindex",o.disabled?null:0)("id",o.getTabHeaderActionId(o.id))("aria-controls",o.getTabContentId(o.id))("aria-expanded",o.selected)("aria-disabled",o.disabled)("data-pc-section","headeraction"),h(1),d("ngIf",!o.iconTemplate),h(1),d("ngTemplateOutlet",o.iconTemplate)("ngTemplateOutletContext",He(35,sG,o.selected)),h(1),d("ngIf",!o.hasHeaderFacet),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.hasHeaderFacet),h(1),d("@tabContent",o.selected?He(39,rG,He(37,XD,o.transitionOptions)):He(43,aG,He(41,XD,o.transitionOptions))),K("id",o.getTabContentId(o.id))("aria-hidden",!o.selected)("aria-labelledby",o.getTabHeaderActionId(o.id))("data-pc-section","toggleablecontent"),h(1),d("ngClass",o.contentStyleClass)("ngStyle",o.contentStyle),h(2),d("ngIf",o.contentTemplate&&(o.cache?o.loaded:o.selected)))},dependencies:function(){return[Ct,gt,on,Ht,Qi,bi]},styles:["@layer primeng{.p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}}\n"],encapsulation:2,data:{animation:[Oo("tabContent",[Us("hidden",en({height:"0",visibility:"hidden"})),Us("visible",en({height:"*",visibility:"visible"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),ga=(()=>{class t{el;changeDetector;multiple=!1;style;styleClass;expandIcon;collapseIcon;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}selectOnFocus=!1;get headerAriaLevel(){return this._headerAriaLevel}set headerAriaLevel(e){"number"==typeof e&&e>0?this._headerAriaLevel=e:2!==this._headerAriaLevel&&(this._headerAriaLevel=2)}onClose=new ge;onOpen=new ge;activeIndexChange=new ge;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,n){this.el=e,this.changeDetector=n}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e)}}onTabArrowDownKey(e){const n=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const n=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const n=this.findFirstHeaderAction();this.changeFocusedTab(n),e.preventDefault()}changeFocusedTab(e){e&&(j.focus(e),this.selectOnFocus&&this.tabs.forEach((n,o)=>{let s=this.multiple?this._activeIndex.includes(o):o===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),n.id==e.id&&(n.selected=!n.selected,this._activeIndex.includes(o)?this._activeIndex=this._activeIndex.filter(r=>r!==o):this._activeIndex.push(o))):n.id==e.id?(n.selected=!n.selected,this._activeIndex=o):n.selected=!1,n.selectedChange.emit(s),this.activeIndexChange.emit(this._activeIndex),n.changeDetector.markForCheck()}))}findNextHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){return this.findNextHeaderAction(this.el.nativeElement.firstElementChild.childNodes[0],!0)}findLastHeaderAction(){const e=this.el.nativeElement.firstElementChild.childNodes;return this.findPrevHeaderAction(e[e.length-1],!0)}onTabEndKey(e){const n=this.findLastHeaderAction();this.changeFocusedTab(n),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(n.selected){if(!this.multiple)return void(e=o);e.push(o)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordion"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,fa,5),2&n){let r;Se(r=Ee())&&(o.tabList=r)}},hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown",function(r){return o.onKeydown(r)})},inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex",selectOnFocus:"selectOnFocus",headerAriaLevel:"headerAriaLevel"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:cG,decls:2,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(n,o){1&n&&(Ti(),x(0,"div",0),Kn(1),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-accordion p-component")("ngStyle",o.style))},dependencies:[Ct,Ht],encapsulation:2,changeDetection:0})}return t})(),JD=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qi,bi,Qe]})}return t})();function uG(t,i){if(1&t&&(x(0,"div",8)(1,"span"),Le(2),A()()),2&t){const e=f(2).$implicit,n=f();h(1),Ve(n.getstatus(e.value)),h(1),dt(e.value)}}function dG(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit;h(1),dt(e.value)}}const pG=function(){return["Execution Status"]};function hG(t,i){if(1&t&&(x(0,"div",3),g(1,uG,3,4,"div",6),g(2,dG,2,1,"div",7),A()),2&t){const e=f().$implicit;h(1),d("ngSwitchCase",Jt(1,pG).includes(e.field)?e.field:"")}}function fG(t,i){1&t&&(x(0,"div",3),Le(1,"N/A"),A())}function gG(t,i){if(1&t&&(we(0,2),x(1,"div",3)(2,"strong"),Le(3),A()(),g(4,hG,3,2,"div",4),g(5,fG,2,0,"ng-template",null,5,In),Te()),2&t){const e=i.$implicit,n=Bt(6);d("ngSwitch",e.field),h(3),Pt(" ",e.field,": "),h(1),d("ngIf",e.value)("ngIfElse",n)}}let Ul=(()=>{class t{constructor(){}ngOnInit(){}getstatus(e){return"Passed"==e?"passed-color":"Failed"==e?"failed-color":"Blocked"==e?"blocked-color":"Stopped"==e?"stopped-color":"Pending"==e?"pending-color":"Skipped"==e?"skipped-color":"In Progress"==e?"inprogress-color":"Canceled"==e?"canceled-color":"Other"==e?"other-color":void 0}datepipe(e){e.includes("s")&&(e=e.replace("s",""));var n=new Date(0,0,0,0,0,0,0);return n.toLocaleString("HH:mm:ss.SSS"),n.setSeconds(e),n.setMilliseconds(e.split(".")[1]),n}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-general-details"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[1,"col-12","md:col-3","row"],["class","col-12 md:col-3 row",4,"ngIf","ngIfElse"],["elseBlock",""],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"numbers-style"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,gG,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.data))},dependencies:[Jn,gt,wl,ch,x0],styles:[".row[_ngcontent-%COMP%]{border:solid 1px #ffffff;background-color:#f5f5f6;padding:1rem}.row[_ngcontent-%COMP%]:nth-child(4n+1){background:#eaebeb!important}.row[_ngcontent-%COMP%]:nth-child(4n+3){background:#eaebeb!important}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}"]})}return t})();class ek extends re{constructor(i=1/0,e=1/0,n=sC){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:r}=this;e||(n.push(i),!o&&n.push(s.now()+r)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,s=o.slice();for(let r=0;ra=>t[r](i,a,e)):function CG(t){return L(t.addListener)&&L(t.removeListener)}(t)?mG.map(tk(t,i)):function vG(t){return L(t.on)&&L(t.off)}(t)?IG.map(tk(t,i)):[];if(!o&&dg(t))return si(r=>aC(r,i,e))(Ri(t));if(!o)throw new TypeError("Invalid event target");return new ce(r=>{const a=(...l)=>r.next(1s(a)})}function tk(t,i){return e=>n=>t[e](i,n)}function nk(t,i=GD){return Me((e,n)=>{let o=null,s=null,r=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=s;s=null,n.next(c)}};function l(){const c=r+t,u=i.now();if(u{s=c,r=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{s=o=null}))})}const yG=["*"];var An=function(t){return t.AnnotationChart="AnnotationChart",t.AreaChart="AreaChart",t.Bar="Bar",t.BarChart="BarChart",t.BubbleChart="BubbleChart",t.Calendar="Calendar",t.CandlestickChart="CandlestickChart",t.ColumnChart="ColumnChart",t.ComboChart="ComboChart",t.PieChart="PieChart",t.Gantt="Gantt",t.Gauge="Gauge",t.GeoChart="GeoChart",t.Histogram="Histogram",t.Line="Line",t.LineChart="LineChart",t.Map="Map",t.OrgChart="OrgChart",t.Sankey="Sankey",t.Scatter="Scatter",t.ScatterChart="ScatterChart",t.SteppedAreaChart="SteppedAreaChart",t.Table="Table",t.Timeline="Timeline",t.TreeMap="TreeMap",t.WordTree="wordtree",t}(An||{});const xG={[An.AnnotationChart]:"annotationchart",[An.AreaChart]:"corechart",[An.Bar]:"bar",[An.BarChart]:"corechart",[An.BubbleChart]:"corechart",[An.Calendar]:"calendar",[An.CandlestickChart]:"corechart",[An.ColumnChart]:"corechart",[An.ComboChart]:"corechart",[An.PieChart]:"corechart",[An.Gantt]:"gantt",[An.Gauge]:"gauge",[An.GeoChart]:"geochart",[An.Histogram]:"corechart",[An.Line]:"line",[An.LineChart]:"corechart",[An.Map]:"map",[An.OrgChart]:"orgchart",[An.Sankey]:"sankey",[An.Scatter]:"scatter",[An.ScatterChart]:"corechart",[An.SteppedAreaChart]:"corechart",[An.Table]:"table",[An.Timeline]:"timeline",[An.TreeMap]:"treemap",[An.WordTree]:"wordtree"},ok=new Ye("GOOGLE_CHARTS_CONFIG"),wG=new Ye("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>ht({version:"current",safeMode:!1,...et(ok,zt.Optional)||{}})});let pf=(()=>{class t{constructor(e,n,o){this.zone=e,this.localeId=n,this.config$=o,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new re}isGoogleChartsAvailable(){return!(typeof google>"u"||typeof google.charts>"u")}loadChartPackages(...e){return this.loadGoogleCharts().pipe(si(()=>this.config$),at(n=>({version:"current",safeMode:!1,...n||{}})),Ao(n=>new ce(o=>{google.charts.load(n.version,{packages:e,language:this.localeId,mapsApiKey:n.mapsApiKey,safeMode:n.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{o.next(),o.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return ht(void 0);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(n=>n.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(Ze(Tt),Ze(us),Ze(wG))},t.\u0275prov=nt({token:t,factory:t.\u0275fac}),t})(),sk=(()=>{class t{create(e,n,o){if(null==e)return;let s=!0;null!=n&&(s=!1);const r=google.visualization.arrayToDataTable(this.getDataAsTable(e,n),s);return o&&this.applyFormatters(r,o),r}getDataAsTable(e,n){return n?[n,...e]:e}applyFormatters(e,n){for(const o of n)o.formatter.format(e,o.colIndex)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),EG=(()=>{class t{constructor(e){this.loaderService=e,this.error=new ge,this.ready=new ge,this.stateChange=new ge,this.id=function TG(){return"_"+Math.random().toString(36).substr(2,9)}(),this.wrapperReadySubject=new ek(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(V(pf))},t.\u0275cmp=Oe({type:t,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,n){2&e&&x_("id",n.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[Hn],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),t})(),DG=(()=>{class t{constructor(e,n,o){this.element=e,this.loaderService=n,this.dataTableService=o,this.ready=new ge,this.error=new ge,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(o=>o.wrapperReady$),n=this.controlWrappers.map(o=>o.for).map(o=>Array.isArray(o)?Cu(o.map(s=>s.wrapperReady$)):o.wrapperReady$);Cu([...e,...n]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(n,o,s)=>{google.visualization.events.addListener(n,o,s)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",n=>this.error.emit(n))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const n=e.for.map(o=>o.chartWrapper);this.dashboard.bind(e.controlWrapper,n)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk))},t.\u0275cmp=Oe({type:t,selectors:[["dashboard"]],contentQueries:function(e,n,o){if(1&e&&Gt(o,EG,4),2&e){let s;Se(s=Ee())&&(n.controlWrappers=s)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[Hn],ngContentSelectors:yG,decls:1,vars:0,template:function(e,n){1&e&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0}),t})(),rk=(()=>{class t{constructor(e,n,o,s){this.element=e,this.scriptLoaderService=n,this.dataTableService=o,this.dashboard=s,this.options={},this.dynamicResize=!1,this.ready=new ge,this.error=new ge,this.select=new ge,this.mouseover=new ge,this.mouseleave=new ge,this.wrapperReadySubject=new ek(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){this.scriptLoaderService.loadChartPackages(function AG(t){return xG[t]}(this.type)).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let n=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),n=!0),e.type&&(this.wrapper.setChartType(this.type),n=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),n=!0),n&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,n){const o=this.registerChartEvent(this.chart,e,n);return this.eventListeners.set(o,{eventName:e,callback:n,handle:o}),o}removeEventListener(e){const n=this.eventListeners.get(e);n&&(google.visualization.events.removeListener(n.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=aC(window,"resize",{passive:!0}).pipe(nk(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return{title:this.title,width:this.width,height:this.height,...this.options}}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,n,o){return google.visualization.events.addListener(e,n,o)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk),V(DG,8))},t.\u0275cmp=Oe({type:t,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",options:"options",formatters:"formatters",dynamicResize:"dynamicResize"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[Hn],decls:0,vars:0,template:function(e,n){},styles:["[_nghost-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:block}"],changeDetection:0}),t})(),kG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:ok,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qe({type:t}),t.\u0275inj=Ge({providers:[pf]}),t})(),MG=(()=>{class t{constructor(e){this.communicatorService=e}ngOnInit(){this.InitGraph(),this.communicatorService.onactionStatLoad.subscribe(e=>{"Completed"==e&&"Actions"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Activities"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Runners"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Business Flows"==this.title&&this.InitGraph()})}InitGraph(){this.type="PieChart",this.title=this.chartTitle,this.data=this.executionData,this.columnNames=["Status","Percentage"],this.options={chartArea:{left:0,height:220,width:400},height:400,width:400,legend:{position:"labeled"},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"],is3D:!1,pieHole:.7,pieSliceText:"none",titleTextStyle:{fontFamily:"Arial",fontColor:"#000000",fontSize:12,bold:!0}},this.data=this.executionData}delay(e){return new Promise(n=>setTimeout(n,e))}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-chart"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function OG(t,i){if(1&t&&(x(0,"div")(1,"div",1),le(2,"app-google-chart",2)(3,"app-google-chart",2)(4,"app-google-chart",2)(5,"app-google-chart",2),A()()),2&t){const e=f();h(2),d("executionData",e.runnerData)("chartTitle",e.GingerRunnerTitle),h(1),d("executionData",e.businessFlowsData)("chartTitle",e.BusinessFlowsTitle),h(1),d("executionData",e.activitiesData)("chartTitle",e.ActivitiesTitle),h(1),d("executionData",e.actionsData)("chartTitle",e.ActionsTitle)}}let LG=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this._userDataManagerService=o,this.communicatorService=s,this.isStatisticsVisibleEvent=new ge,this.isStatisticsVisible=!1,this.lables=[Lt.Passed,Lt.Failed,Lt.Blocked,Lt.Stopped,Lt.Pending],this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.LoadActivityStat=!0,this.LoadActionStat=!0}ngOnInit(){}initComponents(){this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.RunsetJson=this._userDataManagerService.getItemCache(),this.LoadActivityStat=null==this._userDataManagerService.getByKey("LoadActivityStat")||this._userDataManagerService.getByKey("LoadActivityStat"),this.LoadActionStat=null==this._userDataManagerService.getByKey("LoadActionStat")||this._userDataManagerService.getByKey("LoadActionStat"),this.activitiesData=this._userDataManagerService.getByKey("ActivitiesStatistics"),this.actionsData=this._userDataManagerService.getByKey("ActionsStatistics"),this.executionDataGingerRunner=this.calculatedDataService.getRunnersExecutionStatusArray(),this.GingerRunnerTitle="Runners",this.calculatedDataService.populateChartsData(this.runnerData,this.executionDataGingerRunner),this.communicatorService.loadrunnerStat("Completed"),this.executionDataBusinessFlows=this.calculatedDataService.getAllBusinessFlowsExecutionStatusArray(),this.BusinessFlowsTitle="Business Flows",this.calculatedDataService.populateChartsData(this.businessFlowsData,this.executionDataBusinessFlows),this.communicatorService.loadbfStat("Completed"),this.ActivitiesTitle="Activities",this.ActionsTitle="Actions",(null==this.activitiesData||null==this.activitiesData||this.activitiesData.length<0||this.LoadActivityStat)&&(this.activitiesData=[],this.executionDataActivities=this.calculatedDataService.getActivitiesExecutionStatusArray(),null!=this.executionDataActivities?this.calculatedDataService.populateChartsData(this.activitiesData,this.executionDataActivities):this.restServiceObj.GetAllActivitiesStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.activitiesData,o),this._userDataManagerService.setItem("ActivitiesStatistics",this.activitiesData),this.communicatorService.loadactivityStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActivityStat","false")}})),(null==this.actionsData||null==this.actionsData||this.actionsData.length<0||this.LoadActivityStat)&&(this.actionsData=[],this.executionDataActions=this.calculatedDataService.getActionsExecutionStatusArray(),null!=this.executionDataActions?this.calculatedDataService.populateChartsData(this.actionsData,this.executionDataActions):this.restServiceObj.GetAllActionsStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.actionsData,o),this._userDataManagerService.setItem("ActionsStatistics",this.actionsData),this.communicatorService.loadactionStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActionStat","false")}})),null!=this.runnerData&&this.runnerData.length>0||this.businessFlowsData&&this.businessFlowsData.length>0||this.activitiesData&&this.activitiesData.length>0||this.actionsData&&this.actionsData.length>0?(this.isStatisticsVisibleEvent.emit(!0),this.isStatisticsVisible=!0):(this.isStatisticsVisibleEvent.emit(!1),this.isStatisticsVisible=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(Co),V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-execution-statistic"]],outputs:{isStatisticsVisibleEvent:"isStatisticsVisibleEvent"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex-container"],[3,"executionData","chartTitle"]],template:function(n,o){1&n&&g(0,OG,6,8,"div",0),2&n&&d("ngIf",o.isStatisticsVisible)},dependencies:[gt,MG],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:wrap}"]})}return t})(),_s=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oo=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){ei(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let n=this.getInk();if(!n||"none"===this.document.defaultView?.getComputedStyle(n,null).display)return;if(j.removeClass(n,"p-ink-active"),!j.getHeight(n)&&!j.getWidth(n)){let a=Math.max(j.getOuterWidth(this.el.nativeElement),j.getOuterHeight(this.el.nativeElement));n.style.height=a+"px",n.style.width=a+"px"}let o=j.getOffset(this.el.nativeElement),s=e.pageX-o.left+this.document.body.scrollTop-j.getWidth(n)/2,r=e.pageY-o.top+this.document.body.scrollLeft-j.getHeight(n)/2;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px"),j.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&j.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let hf=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(kr);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(e,n){this.el=e,this.document=n}ngAfterViewInit(){j.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[kr.button,kr.component];return this.icon&&!this.label&&be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly),this.loading&&(e.push(kr.disabled,kr.loading),!this.icon&&this.label&&e.push(kr.labelOnly),this.icon&&!this.label&&!be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(this.label){let e=this.document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=this.document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&j.addClass(e,n);let o=this.getIconClass();o&&j.addMultipleClasses(e,o),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=j.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=j.findSingle(this.htmlElement,".p-button-icon"),n=j.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?e.className=this.iconPos?"p-button-icon "+(n?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(n){return new(n||t)(V(bt),V(Wt))};static \u0275dir=ut({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,_s,Qe]})}return t})(),Mr=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ff=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mn=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ak=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const $G=["container"],KG=["inputfield"],GG=["contentWrapper"];function qG(t,i){if(1&t){const e=De();x(0,"TimesIcon",10),me("click",function(){return G(e),q(f(3).clear())}),A()}2&t&&d("styleClass","p-calendar-clear-icon")}function WG(t,i){}function QG(t,i){1&t&&g(0,WG,0,0,"ng-template")}function ZG(t,i){if(1&t){const e=De();x(0,"span",11),me("click",function(){return G(e),q(f(3).clear())}),g(1,QG,1,0,null,12),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function YG(t,i){if(1&t&&(we(0),g(1,qG,1,1,"TimesIcon",8),g(2,ZG,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function XG(t,i){1&t&&le(0,"span",15),2&t&&d("ngClass",f(3).icon)}function JG(t,i){1&t&&le(0,"CalendarIcon")}function eq(t,i){}function tq(t,i){1&t&&g(0,eq,0,0,"ng-template")}function nq(t,i){if(1&t&&(we(0),g(1,JG,1,0,"CalendarIcon",6),g(2,tq,1,0,null,12),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.triggerIconTemplate),h(1),d("ngTemplateOutlet",e.triggerIconTemplate)}}function iq(t,i){if(1&t){const e=De();x(0,"button",13),me("click",function(o){G(e),f();const s=Bt(1);return q(f().onButtonClick(o,s))}),g(1,XG,1,1,"span",14),g(2,nq,3,2,"ng-container",6),A()}if(2&t){const e=f(2);d("disabled",e.disabled),K("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId),h(1),d("ngIf",e.icon),h(1),d("ngIf",!e.icon)}}function oq(t,i){if(1&t){const e=De();x(0,"input",4,5),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("click",function(){return G(e),q(f().onInputClick())})("blur",function(o){return G(e),q(f().onInputBlur(o))})("input",function(o){return G(e),q(f().onUserInput(o))}),A(),g(2,YG,3,2,"ng-container",6),g(3,iq,3,6,"button",7)}if(2&t){const e=f();Ve(e.inputStyleClass),d("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),K("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),h(2),d("ngIf",e.showClear&&!e.disabled&&null!=e.value),h(1),d("ngIf",e.showIcon)}}function sq(t,i){1&t&&ze(0)}function rq(t,i){1&t&&le(0,"ChevronLeftIcon",37),2&t&&d("styleClass","p-datepicker-prev-icon")}function aq(t,i){}function lq(t,i){1&t&&g(0,aq,0,0,"ng-template")}function cq(t,i){if(1&t&&(x(0,"span",38),g(1,lq,1,0,null,12),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.previousIconTemplate)}}function uq(t,i){if(1&t){const e=De();x(0,"button",35),me("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(4).onPrevButtonClick(o))}),g(1,rq,1,1,"ChevronLeftIcon",32),g(2,cq,2,1,"span",36),A()}if(2&t){const e=f(4);K("aria-label",e.prevIconAriaLabel),h(1),d("ngIf",!e.previousIconTemplate),h(1),d("ngIf",e.previousIconTemplate)}}function dq(t,i){if(1&t){const e=De();x(0,"button",39),me("click",function(o){return G(e),q(f(4).switchToMonthView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseMonth")),h(1),Pt(" ",n.getMonthName(e.month)," ")}}function pq(t,i){if(1&t){const e=De();x(0,"button",40),me("click",function(o){return G(e),q(f(4).switchToYearView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseYear")),h(1),Pt(" ",n.getYear(e)," ")}}function hq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(5);h(1),Fp("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function fq(t,i){1&t&&ze(0)}const lC=function(t){return{$implicit:t}};function gq(t,i){if(1&t&&(x(0,"span",41),g(1,hq,2,2,"ng-container",6),g(2,fq,1,0,"ng-container",42),A()),2&t){const e=f(4);h(1),d("ngIf",!e.decadeTemplate),h(1),d("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",He(3,lC,e.yearPickerValues))}}function mq(t,i){1&t&&le(0,"ChevronRightIcon",37),2&t&&d("styleClass","p-datepicker-next-icon")}function _q(t,i){}function Iq(t,i){1&t&&g(0,_q,0,0,"ng-template")}function Cq(t,i){if(1&t&&(x(0,"span",43),g(1,Iq,1,0,null,12),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.nextIconTemplate)}}function vq(t,i){if(1&t&&(x(0,"th",49)(1,"span"),Le(2),A()()),2&t){const e=f(5);h(2),dt(e.getTranslation("weekHeader"))}}function bq(t,i){if(1&t&&(x(0,"th",50)(1,"span"),Le(2),A()()),2&t){const e=i.$implicit;h(2),dt(e)}}function yq(t,i){if(1&t&&(x(0,"td",53)(1,"span",54),Le(2),A()()),2&t){const e=f().index,n=f(2).$implicit;h(2),Pt(" ",n.weekNumbers[e]," ")}}function xq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2).$implicit;h(1),dt(e.day)}}function Aq(t,i){1&t&&ze(0)}function wq(t,i){if(1&t&&(we(0),g(1,Aq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Tq(t,i){1&t&&ze(0)}function Sq(t,i){if(1&t&&(we(0),g(1,Tq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.disabledDateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Eq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f(2).$implicit;h(1),Pt(" ",e.day," ")}}const cC=function(t,i){return{"p-highlight":t,"p-disabled":i}};function Dq(t,i){if(1&t){const e=De();we(0),x(1,"span",55),me("click",function(o){G(e);const s=f().$implicit;return q(f(6).onDateSelect(o,s))})("keydown",function(o){G(e);const s=f().$implicit,r=f(3).index;return q(f(3).onDateCellKeydown(o,s,r))}),g(2,xq,2,1,"ng-container",6),g(3,wq,2,4,"ng-container",6),g(4,Sq,2,4,"ng-container",6),A(),g(5,Eq,2,1,"div",56),Te()}if(2&t){const e=f().$implicit,n=f(6);h(1),d("ngClass",mt(5,cC,n.isSelected(e)&&e.selectable,!e.selectable)),h(1),d("ngIf",!n.dateTemplate&&(e.selectable||!n.disabledDateTemplate)),h(1),d("ngIf",e.selectable||!n.disabledDateTemplate),h(1),d("ngIf",!e.selectable),h(1),d("ngIf",n.isSelected(e))}}const kq=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function Mq(t,i){if(1&t&&(x(0,"td",15),g(1,Dq,6,8,"ng-container",6),A()),2&t){const e=i.$implicit,n=f(6);d("ngClass",mt(3,kq,e.otherMonth,e.today)),K("aria-label",e.day),h(1),d("ngIf",!e.otherMonth||n.showOtherMonths)}}function Oq(t,i){if(1&t&&(x(0,"tr"),g(1,yq,3,1,"td",51),g(2,Mq,2,6,"td",52),A()),2&t){const e=i.$implicit,n=f(5);h(1),d("ngIf",n.showWeek),h(1),d("ngForOf",e)}}function Lq(t,i){if(1&t&&(x(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),g(4,vq,3,1,"th",46),g(5,bq,3,1,"th",47),A()(),x(6,"tbody"),g(7,Oq,3,2,"tr",48),A()()()),2&t){const e=f().$implicit,n=f(3);h(4),d("ngIf",n.showWeek),h(1),d("ngForOf",n.weekDays),h(2),d("ngForOf",e.dates)}}function Pq(t,i){if(1&t){const e=De();x(0,"div",24)(1,"div",25),g(2,uq,3,3,"button",26),x(3,"div",27),g(4,dq,2,3,"button",28),g(5,pq,2,3,"button",29),g(6,gq,3,5,"span",30),A(),x(7,"button",31),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).onNextButtonClick(o))}),g(8,mq,1,1,"ChevronRightIcon",32),g(9,Cq,2,1,"span",33),A()(),g(10,Lq,8,3,"div",34),A()}if(2&t){const e=i.index,n=f(3);h(2),d("ngIf",0===e),h(2),d("ngIf","date"===n.currentView),h(1),d("ngIf","year"!==n.currentView),h(1),d("ngIf","year"===n.currentView),h(1),fo("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),K("aria-label",n.nextIconAriaLabel),h(1),d("ngIf",!n.nextIconTemplate),h(1),d("ngIf",n.nextIconTemplate),h(1),d("ngIf","date"===n.currentView)}}function Fq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Rq(t,i){if(1&t){const e=De();x(0,"span",60),me("click",function(o){const r=G(e).index;return q(f(4).onMonthSelect(o,r))})("keydown",function(o){const r=G(e).index;return q(f(4).onMonthCellKeydown(o,r))}),Le(1),g(2,Fq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(4);d("ngClass",mt(3,cC,o.isMonthSelected(n),o.isMonthDisabled(n))),h(1),Pt(" ",e," "),h(1),d("ngIf",o.isMonthSelected(n))}}function Nq(t,i){if(1&t&&(x(0,"div",58),g(1,Rq,3,6,"span",59),A()),2&t){const e=f(3);h(1),d("ngForOf",e.monthPickerValues())}}function Vq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Bq(t,i){if(1&t){const e=De();x(0,"span",63),me("click",function(o){const r=G(e).$implicit;return q(f(4).onYearSelect(o,r))})("keydown",function(o){const r=G(e).$implicit;return q(f(4).onYearCellKeydown(o,r))}),Le(1),g(2,Vq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=f(4);d("ngClass",mt(3,cC,n.isYearSelected(e),n.isYearDisabled(e))),h(1),Pt(" ",e," "),h(1),d("ngIf",n.isYearSelected(e))}}function Hq(t,i){if(1&t&&(x(0,"div",61),g(1,Bq,3,6,"span",62),A()),2&t){const e=f(3);h(1),d("ngForOf",e.yearPickerValues())}}function zq(t,i){if(1&t&&(we(0),x(1,"div",20),g(2,Pq,11,10,"div",21),A(),g(3,Nq,2,1,"div",22),g(4,Hq,2,1,"div",23),Te()),2&t){const e=f(2);h(2),d("ngForOf",e.months),h(1),d("ngIf","month"===e.currentView),h(1),d("ngIf","year"===e.currentView)}}function jq(t,i){1&t&&le(0,"ChevronUpIcon")}function Uq(t,i){}function $q(t,i){1&t&&g(0,Uq,0,0,"ng-template")}function Kq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Gq(t,i){1&t&&le(0,"ChevronDownIcon")}function qq(t,i){}function Wq(t,i){1&t&&g(0,qq,0,0,"ng-template")}function Qq(t,i){1&t&&le(0,"ChevronUpIcon")}function Zq(t,i){}function Yq(t,i){1&t&&g(0,Zq,0,0,"ng-template")}function Xq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Jq(t,i){1&t&&le(0,"ChevronDownIcon")}function eW(t,i){}function tW(t,i){1&t&&g(0,eW,0,0,"ng-template")}function nW(t,i){if(1&t&&(x(0,"div",67)(1,"span"),Le(2),A()()),2&t){const e=f(3);h(2),dt(e.timeSeparator)}}function iW(t,i){1&t&&le(0,"ChevronUpIcon")}function oW(t,i){}function sW(t,i){1&t&&g(0,oW,0,0,"ng-template")}function rW(t,i){1&t&&(we(0),Le(1,"0"),Te())}function aW(t,i){1&t&&le(0,"ChevronDownIcon")}function lW(t,i){}function cW(t,i){1&t&&g(0,lW,0,0,"ng-template")}function uW(t,i){if(1&t){const e=De();x(0,"div",72)(1,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).incrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).incrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(2,iW,1,0,"ChevronUpIcon",6),g(3,sW,1,0,null,12),A(),x(4,"span"),g(5,rW,2,0,"ng-container",6),Le(6),A(),x(7,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).decrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).decrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(8,aW,1,0,"ChevronDownIcon",6),g(9,cW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("nextSecond")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentSecond<10),h(1),dt(e.currentSecond),h(1),K("aria-label",e.getTranslation("prevSecond")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function dW(t,i){1&t&&le(0,"ChevronUpIcon")}function pW(t,i){}function hW(t,i){1&t&&g(0,pW,0,0,"ng-template")}function fW(t,i){1&t&&le(0,"ChevronDownIcon")}function gW(t,i){}function mW(t,i){1&t&&g(0,gW,0,0,"ng-template")}function _W(t,i){if(1&t){const e=De();x(0,"div",73)(1,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(2,dW,1,0,"ChevronUpIcon",6),g(3,hW,1,0,null,12),A(),x(4,"span"),Le(5),A(),x(6,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(7,fW,1,0,"ChevronDownIcon",6),g(8,mW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("am")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),dt(e.pm?"PM":"AM"),h(1),K("aria-label",e.getTranslation("pm")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function IW(t,i){if(1&t){const e=De();x(0,"div",64)(1,"div",65)(2,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).incrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(3,jq,1,0,"ChevronUpIcon",6),g(4,$q,1,0,null,12),A(),x(5,"span"),g(6,Kq,2,0,"ng-container",6),Le(7),A(),x(8,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).decrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(9,Gq,1,0,"ChevronDownIcon",6),g(10,Wq,1,0,null,12),A()(),x(11,"div",67)(12,"span"),Le(13),A()(),x(14,"div",68)(15,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).incrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(16,Qq,1,0,"ChevronUpIcon",6),g(17,Yq,1,0,null,12),A(),x(18,"span"),g(19,Xq,2,0,"ng-container",6),Le(20),A(),x(21,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).decrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(22,Jq,1,0,"ChevronDownIcon",6),g(23,tW,1,0,null,12),A()(),g(24,nW,3,1,"div",69),g(25,uW,10,8,"div",70),g(26,_W,9,7,"div",71),A()}if(2&t){const e=f(2);h(2),K("aria-label",e.getTranslation("nextHour")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentHour<10),h(1),dt(e.currentHour),h(1),K("aria-label",e.getTranslation("prevHour")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(3),dt(e.timeSeparator),h(2),K("aria-label",e.getTranslation("nextMinute")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentMinute<10),h(1),dt(e.currentMinute),h(1),K("aria-label",e.getTranslation("prevMinute")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf","12"==e.hourFormat)}}const lk=function(t){return[t]};function CW(t,i){if(1&t){const e=De();x(0,"div",75)(1,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onTodayButtonClick(o))}),A(),x(2,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onClearButtonClick(o))}),A()()}if(2&t){const e=f(2);h(1),d("label",e.getTranslation("today"))("ngClass",He(4,lk,e.todayButtonStyleClass)),h(1),d("label",e.getTranslation("clear"))("ngClass",He(6,lk,e.clearButtonStyleClass))}}function vW(t,i){1&t&&ze(0)}const bW=function(t,i,e,n,o,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":o,"p-datepicker-touch-ui":s}},ck=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},yW=function(t){return{value:"visibleTouchUI",params:t}},xW=function(t){return{value:"visible",params:t}};function AW(t,i){if(1&t){const e=De();x(0,"div",16,17),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationDone(o))})("click",function(o){return G(e),q(f().onOverlayClick(o))}),Kn(2),g(3,sq,1,0,"ng-container",12),g(4,zq,5,3,"ng-container",6),g(5,IW,27,20,"div",18),g(6,CW,3,8,"div",19),Kn(7,1),g(8,vW,1,0,"ng-container",12),A()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngStyle",e.panelStyle)("ngClass",ea(14,bW,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?He(24,yW,mt(21,ck,e.showTransitionOptions,e.hideTransitionOptions)):He(29,xW,mt(26,ck,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),h(3),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",!e.timeOnly),h(1),d("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),h(1),d("ngIf",e.showButtonBar),h(2),d("ngTemplateOutlet",e.footerTemplate)}}const wW=[[["p-header"]],[["p-footer"]]],TW=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},SW=["p-header","p-footer"],EW={provide:un,useExisting:ft(()=>DW),multi:!0};let DW=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const n=e.split(":"),o=parseInt(n[0]),s=parseInt(n[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new ge;onBlur=new ge;onClose=new ge;onSelect=new ge;onClear=new ge;onInput=new ge;onTodayClick=new ge;onClearClick=new ge;onMonthChange=new ge;onYearChange=new ge;onClickOutside=new ge;onShow=new ge;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.zone=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=$t(),this.panelId=this.attributeSelector+"_panel";const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=j.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let o=e;o<=n;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(di.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(n+o);return e}createMonths(e,n){this.months=this.months=[];for(let o=0;o11&&(s=s%11-1,r=n+1),this.months.push(this.createMonth(s,r))}}getWeekNumber(e){let n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1}createMonth(e,n){let o=[],s=this.getFirstDayOfMonthIndex(e,n),r=this.getDaysCountInMonth(e,n),a=this.getDaysCountInPrevMonth(e,n),l=1,c=new Date,u=[],p=Math.ceil((r+s)/7);for(let m=0;mr){let E=this.getNextMonthAndYear(e,n);_.push({day:l-r,month:E.month,year:E.year,otherMonth:!0,today:this.isToday(c,l-r,E.month,E.year),selectable:this.isSelectable(l-r,E.month,E.year,!0)})}else _.push({day:l,month:e,year:n,today:this.isToday(c,l,e,n),selectable:this.isSelectable(l,e,n,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(_[0].year,_[0].month,_[0].day))),o.push(_)}return{month:e,year:n,dates:o,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYeare[e.length-1]){let n=e[e.length-1]-e[0];this.populateYearOptions(e[0]+n,e[e.length-1]+n)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let n=new Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate=o.getTime()?s=n:(o=n,s=null),this.updateModel([o,s])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(n);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let o=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,n){let o,s;return 0===e?(o=11,s=n-1):(o=e-1,s=n),{month:o,year:s}}getNextMonthAndYear(e,n){let o,s;return 11===e?(o=0,s=n+1):(o=e+1,s=n),{month:o,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let o of this.value)if(n=this.isDateEquals(o,e),n)break;return n}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[n,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=n&&s<=(o??n)}return!1}isMonthDisabled(e){for(let n=1;n=r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,o,s){return e.getDate()===n&&e.getMonth()===o&&e.getFullYear()===s}isSelectable(e,n,o,s){let r=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(r=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(j.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,o){const s=e.currentTarget,r=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.nextElementSibling;l?j.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];j.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=r.previousElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")||j.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=r.nextElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")?this.navigateToMonth(!1,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+3:r-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+2:r-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let s=j.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r=s[s.length-1];r.tabIndex="0",r.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=j.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;n=j.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(e=n[n.length-1])}else e=j.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let n;if("month"===this.currentView){let o=j.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=j.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let o=j.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=j.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(n=j.findSingle(e,"span.p-highlight"),!n){let o=j.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");n=o||j.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||n.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=j.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==o||0===o)if(this.focusTrap)n[n.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else n[o-1].focus();else if(-1==o)if(this.timeOnly)n[0].focus();else{let s=0;for(let r=0;ra||this.minDate.getHours()===a&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?o-24:o:"12"==this.hourFormat&&(this.currentHour<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.validateTime(o,this.currentMinute,this.currentSecond,s)&&(this.currentHour=o,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,n,o){this.disabled||(this.repeat(e,null,n,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,o,s){let r=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,s),this.cd.markForCheck()},r),o){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let n=this.currentHour-this.stepHour,o=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),n=n<=0?12+n:n),this.validateTime(n,this.currentMinute,this.currentSecond,o)&&(this.currentHour=n,this.pm=o),e.preventDefault()}incrementMinute(e){let n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let o=this.parseValueFromString(n);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);n=[];for(let s of o)n.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");n=[];for(let s=0;s{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),j.blockBodyScroll())}disableModality(){this.mask&&(j.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let n,e=this.document.body.children;for(let o=0;o{const p=o+1{let _=""+p;if(s(u))for(;_.lengths(u)?_[p]:m[p];let l="",c=!1;if(e)for(o=0;o11&&12!=o&&(o-=12),n+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,n+=":",n+=s<10?"0"+s:s,this.showSeconds&&(n+=":",n+=r<10?"0"+r:r),"12"==this.hourFormat&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(n[0]),r=parseInt(n[1]),a=this.showSeconds?parseInt(n[2]):null;if(isNaN(s)||isNaN(r)||s>23||r>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:r,second:a}}parseDate(e,n){if(null==n||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let o,s,r,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,p=-1,m=-1,_=!1,E=fe=>{let Ce=o+1{let Ce=E(fe),ve="@"===fe?14:"!"===fe?20:"y"===fe&&Ce?4:"o"===fe?3:2,Pe=new RegExp("^\\d{"+("y"===fe?ve:1)+","+ve+"}"),$e=e.substring(a).match(Pe);if(!$e)throw"Missing number at position "+a;return a+=$e[0].length,parseInt($e[0],10)},W=(fe,Ce,ve)=>{let ke=-1,Pe=E(fe)?ve:Ce,$e=[];for(let Ke=0;Ke-(Ke[1].length-pt[1].length));for(let Ke=0;Ke<$e.length;Ke++){let pt=$e[Ke][1];if(e.substr(a,pt.length).toLowerCase()===pt.toLowerCase()){ke=$e[Ke][0],a+=pt.length;break}}if(-1!==ke)return ke+1;throw"Unknown name at position "+a},te=()=>{if(e.charAt(a)!==n.charAt(o))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(p=1),o=0;o-1)for(u=1,p=m;s=this.getDaysCountInMonth(c,u-1),!(p<=s);)u++,p-=s;if("year"===this.view&&(u=-1===u?1:u,p=-1===p?1:p),b=this.daylightSavingAdjust(new Date(c,u-1,p)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==p)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let n=new Date,o={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,o),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return j.hasClass(e.target,"p-datepicker-prev")||j.hasClass(e.target,"p-datepicker-prev-icon")||j.hasClass(e.target,"p-datepicker-next")||j.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(Tt),V(Di),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-calendar"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($G,5),je(KG,5),je(GG,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputfieldViewChild=s.first),Se(s=Ee())&&(o.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focus)("p-calendar-clearable",o.showClear&&!o.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[yt([EW])],ngContentSelectors:SW,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(n,o){1&n&&(Ti(wW),x(0,"span",0,1),g(2,oq,4,20,"ng-template",2),g(3,AW,9,31,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngClass",gr(6,TW,o.showIcon,o.timeOnly,o.disabled,o.focus||o.overlayVisible))("ngStyle",o.style),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:function(){return[Ct,Jn,gt,on,Ht,hf,oo,Mr,Qi,ff,bi,mn,ak]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Us("visibleTouchUI",en({transform:"translate(-50%,-50%)",opacity:1})),Ln("void => visible",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}",en({opacity:1,transform:"*"}))]),Ln("visible => void",[On("{{hideTransitionParams}}",en({opacity:0}))]),Ln("void => visibleTouchUI",[en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),On("{{showTransitionParams}}")]),Ln("visibleTouchUI => void",[On("{{hideTransitionParams}}",en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),uk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,ki,Qe,dn,Mr,Qi,ff,bi,mn,ak,ki,Qe]})}return t})(),uC=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=j.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),gf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kW=["overlay"],MW=["content"];function OW(t,i){1&t&&ze(0)}const LW=function(t,i,e){return{showTransitionParams:t,hideTransitionParams:i,transform:e}},PW=function(t){return{value:"visible",params:t}},FW=function(t){return{mode:t}},RW=function(t){return{$implicit:t}};function NW(t,i){if(1&t){const e=De();x(0,"div",1,3),me("click",function(o){return G(e),q(f(2).onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){return G(e),q(f(2).onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){return G(e),q(f(2).onOverlayContentAnimationDone(o))}),Kn(2),g(3,OW,1,0,"ng-container",4),A()}if(2&t){const e=f(2);Ve(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",He(11,PW,Rn(7,LW,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),h(3),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",He(15,RW,He(13,FW,e.overlayMode)))}}const VW=function(t,i,e,n,o,s,r,a,l,c,u,p,m,_){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":i,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":o,"p-overlay-bottom":s,"p-overlay-bottom-start":r,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":p,"p-overlay-right-start":m,"p-overlay-right-end":_}};function BW(t,i){if(1&t){const e=De();x(0,"div",1,2),me("click",function(){return G(e),q(f().onOverlayClick())}),g(2,NW,4,17,"div",0),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass",zp(5,VW,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),h(2),d("ngIf",e.visible)}}const HW=["*"],zW={provide:un,useExisting:ft(()=>mf),multi:!0},jW=Ml([en({transform:"{{transform}}",opacity:0}),On("{{showTransitionParams}}")]),UW=Ml([On("{{hideTransitionParams}}",en({transform:"{{transform}}",opacity:0}))]);let mf=(()=>{class t{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return be.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return be.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return be.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return be.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new ge;onBeforeShow=new ge;onShow=new ge;onBeforeHide=new ge;onHide=new ge;onAnimationStart=new ge;onAnimationDone=new ge;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(ei(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return j.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,n,o,s,r,a,l,c){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.config=r,this.overlayService=a,this.cd=l,this.zone=c,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,n=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.addClass(this.document?.body,"p-overflow-hidden")}hide(e,n=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&j.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Wn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),j.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&j.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const n=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(n,!0),this.bindListeners();break;case"void":this.hide(n,!0),this.unbindListeners(),j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(n),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",e)}handleEvents(e,n){this[e].emit(n),this.options&&this.options[e]&&this.options[e](n),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](n)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&o}):o)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===e.code&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Di),V(Dr),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-overlay"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(kW,5),je(MW,5)),2&n){let s;Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[yt([zW])],ngContentSelectors:HW,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(Ti(),g(0,BW,3,20,"div",0)),2&n&&d("ngIf",o.modalVisible)},dependencies:[Ct,gt,on,Ht],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[Oo("overlayContentAnimation",[Ln(":enter",[Eh(jW)]),Ln(":leave",[Eh(UW)])])]},changeDetection:0})}return t})(),$l=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Qe]})}return t})();const $W=["element"],KW=["content"];function GW(t,i){1&t&&ze(0)}const dC=function(t,i){return{$implicit:t,options:i}};function qW(t,i){if(1&t&&(we(0),g(1,GW,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(2,dC,e.loadedItems,e.getContentOptions()))}}function WW(t,i){1&t&&ze(0)}function QW(t,i){if(1&t&&(we(0),g(1,WW,1,0,"ng-container",7),Te()),2&t){const e=i.$implicit,n=i.index,o=f(3);h(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",mt(2,dC,e,o.getOptions(n)))}}const ZW=function(t){return{"p-scroller-loading":t}};function YW(t,i){if(1&t&&(x(0,"div",8,9),g(2,QW,2,5,"ng-container",10),A()),2&t){const e=f(2);d("ngClass",He(5,ZW,e.d_loading))("ngStyle",e.contentStyle),K("data-pc-section","content"),h(2),d("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function XW(t,i){1&t&&le(0,"div",11),2&t&&(d("ngStyle",f(2).spacerStyle),K("data-pc-section","spacer"))}function JW(t,i){1&t&&ze(0)}const eQ=function(t){return{numCols:t}},dk=function(t){return{options:t}};function tQ(t,i){if(1&t&&(we(0),g(1,JW,1,0,"ng-container",7),Te()),2&t){const e=i.index,n=f(4);h(1),d("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",He(4,dk,n.getLoaderOptions(e,n.both&&He(2,eQ,n._numItemsInViewport.cols))))}}function nQ(t,i){if(1&t&&(we(0),g(1,tQ,2,6,"ng-container",14),Te()),2&t){const e=f(3);h(1),d("ngForOf",e.loaderArr)}}function iQ(t,i){1&t&&ze(0)}const oQ=function(){return{styleClass:"p-scroller-loading-icon"}};function sQ(t,i){if(1&t&&(we(0),g(1,iQ,1,0,"ng-container",7),Te()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",He(3,dk,Jt(2,oQ)))}}function rQ(t,i){1&t&&le(0,"SpinnerIcon",16),2&t&&(d("styleClass","p-scroller-loading-icon"),K("data-pc-section","loadingIcon"))}function aQ(t,i){if(1&t&&(g(0,sQ,2,5,"ng-container",0),g(1,rQ,1,2,"ng-template",null,15,In)),2&t){const e=Bt(2);d("ngIf",f(3).loaderIconTemplate)("ngIfElse",e)}}const lQ=function(t){return{"p-component-overlay":t}};function cQ(t,i){if(1&t&&(x(0,"div",12),g(1,nQ,2,1,"ng-container",0),g(2,aQ,3,2,"ng-template",null,13,In),A()),2&t){const e=Bt(3),n=f(2);d("ngClass",He(4,lQ,!n.loaderTemplate)),K("data-pc-section","loader"),h(1),d("ngIf",n.loaderTemplate)("ngIfElse",e)}}const uQ=function(t,i,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":i,"p-horizontal-scroll":e}};function dQ(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("scroll",function(o){return G(e),q(f().onContainerScroll(o))}),g(3,qW,2,5,"ng-container",0),g(4,YW,3,7,"ng-template",null,4,In),g(6,XW,1,2,"div",5),g(7,cQ,4,6,"div",6),A(),Te()}if(2&t){const e=Bt(5),n=f();h(1),Ve(n._styleClass),d("ngStyle",n._style)("ngClass",Rn(12,uQ,n.inline,n.both,n.horizontal)),K("id",n._id)("tabindex",n.tabindex)("data-pc-name","scroller")("data-pc-section","root"),h(2),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngIf",n._showSpacer),h(1),d("ngIf",!n.loaderDisabled&&n._showLoader&&n.d_loading)}}function pQ(t,i){1&t&&ze(0)}const hQ=function(t,i){return{rows:t,columns:i}};function fQ(t,i){if(1&t&&(we(0),g(1,pQ,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(5,dC,e.items,mt(2,hQ,e._items,e.loadedColumns)))}}function gQ(t,i){if(1&t&&(Kn(0),g(1,fQ,2,8,"ng-container",17)),2&t){const e=f();h(1),d("ngIf",e.contentTemplate)}}const mQ=["*"];let Bu=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([n,o])=>this[`_${n}`]!==o&&(this[`_${n}`]=o))}onLazyLoad=new ge;onScroll=new ge;onScrollIndexChange=new ge;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.zone=r}ngOnInit(){this.setInitialState()}ngOnChanges(e){let n=!1;if(e.loading){const{previousValue:o,currentValue:s}=e.loading;this.lazy&&o!==s&&s!==this.d_loading&&(this.d_loading=s,n=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:o,currentValue:s}=e.numToleratedItems;o!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){const{previousValue:o,currentValue:s}=e.options;this.lazy&&o?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,n=!0),o?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!n&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){ei(this.platformId)&&j.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=j.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=j.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||j.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,n="auto"){const{numToleratedItems:o}=this.calculateNumItems(),s=this.getContentPosition(),r=(u=0,p)=>u<=p?0:u,a=(u,p,m)=>u*p+m,l=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:n});let c=0;this.both?(c={rows:r(e[0],o[0]),cols:r(e[1],o[1])},l(a(c.cols,this._itemSize[1],s.left),a(c.rows,this._itemSize[0],s.top))):(c=r(e,o),this.horizontal?l(a(c,this._itemSize,s.left),0):l(0,a(c,this._itemSize,s.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(e,n,o="auto"){if(n){const{first:s,viewport:r}=this.getRenderedRange(),a=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:o}),c="to-end"===n;if("to-start"===n){if(this.both)r.first.rows-s.rows>e[0]?a(r.first.cols*this._itemSize[1],(r.first.rows-1)*this._itemSize[0]):r.first.cols-s.cols>e[1]&&a((r.first.cols-1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.first-s>e){const u=(r.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)r.last.rows-s.rows<=e[0]+1?a(r.first.cols*this._itemSize[1],(r.first.rows+1)*this._itemSize[0]):r.last.cols-s.cols<=e[1]+1&&a((r.first.cols+1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.last-s<=e+1){const u=(r.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,o)}getRenderedRange(){const e=(s,r)=>Math.floor(s/(r||s));let n=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:s,scrollLeft:r}=this.elementViewChild.nativeElement;this.both?(n={rows:e(s,this._itemSize[0]),cols:e(r,this._itemSize[1])},o={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols}):(n=e(this.horizontal?r:s,this._itemSize),o=n+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:n,last:o}}}calculateNumItems(){const e=this.getContentPosition(),n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,o=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,s=(c,u)=>Math.ceil(c/(u||c)),r=c=>Math.ceil(c/2),a=this.both?{rows:s(o,this._itemSize[0]),cols:s(n,this._itemSize[1])}:s(this.horizontal?n:o,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[r(a.rows),r(a.cols)]:r(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:n}=this.calculateNumItems(),o=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,n]=[j.getWidth(this.contentEl),j.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),n!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,s]=[j.getWidth(this.elementViewChild.nativeElement),j.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=othis.elementViewChild.nativeElement.style[r]=a;this.both||this.horizontal?(s("height",o),s("width",n)):s("height",o)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),n=(o,s,r,a=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(s||[]).length*r+a+"px"};this.both?(n("height",this._items,this._itemSize[0],e.y),n("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?n("width",this._columns||this._items,this._itemSize,e.x):n("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const n=e?e.first:this.first,o=(r,a)=>r*a,s=(r=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${r}px, ${a}px, 0)`};if(this.both)s(o(n.cols,this._itemSize[1]),o(n.rows,this._itemSize[0]));else{const r=o(n,this._itemSize);this.horizontal?s(r,0):s(0,r)}}}onScrollPositionChange(e){const n=e.target,o=this.getContentPosition(),s=(P,W)=>P?P>W?P-W:P:0,r=(P,W)=>Math.floor(P/(W||P)),a=(P,W,te,fe,Ce,ve)=>P<=Ce?Ce:ve?te-fe-Ce:W+Ce-1,l=(P,W,te,fe,Ce,ve,ke)=>P<=ve?0:Math.max(0,ke?PW?te:P-2*ve),c=(P,W,te,fe,Ce,ve=!1)=>{let ke=W+fe+2*Ce;return P>=Ce&&(ke+=Ce+1),this.getLast(ke,ve)},u=s(n.scrollTop,o.top),p=s(n.scrollLeft,o.left);let m=this.both?{rows:0,cols:0}:0,_=this.last,b=!1,E=this.lastScrollPos;if(this.both){const P=this.lastScrollPos.top<=u,W=this.lastScrollPos.left<=p;if(!this._appendOnly||this._appendOnly&&(P||W)){const te={rows:r(u,this._itemSize[0]),cols:r(p,this._itemSize[1])},fe={rows:a(te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],P),cols:a(te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],W)};m={rows:l(te.rows,fe.rows,this.first.rows,0,0,this.d_numToleratedItems[0],P),cols:l(te.cols,fe.cols,this.first.cols,0,0,this.d_numToleratedItems[1],W)},_={rows:c(te.rows,m.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(te.cols,m.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||_.rows!==this.last.rows||m.cols!==this.first.cols||_.cols!==this.last.cols||this.isRangeChanged,E={top:u,left:p}}}else{const P=this.horizontal?p:u,W=this.lastScrollPos<=P;if(!this._appendOnly||this._appendOnly&&W){const te=r(P,this._itemSize);m=l(te,a(te,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,W),this.first,0,0,this.d_numToleratedItems,W),_=c(te,m,0,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||_!==this.last||this.isRangeChanged,E=P}}return{first:m,last:_,isRangeChanged:b,scrollPos:E}}onScrollChange(e){const{first:n,last:o,isRangeChanged:s,scrollPos:r}=this.onScrollPositionChange(e);if(s){const a={first:n,last:o};if(this.setContentPosition(a),this.first=n,this.last=o,this.lastScrollPos=r,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):n,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:n}=this.onScrollPositionChange(e);(n||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){ei(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,n=j.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,n,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(j.isVisible(this.elementViewChild?.nativeElement)){const[e,n]=[j.getWidth(this.elementViewChild?.nativeElement),j.getHeight(this.elementViewChild?.nativeElement)],[o,s]=[e!==this.defaultWidth,n!==this.defaultHeight];(this.both?o||s:this.horizontal?o:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=n,this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,n){return this.options&&this.options[e]?this.options[e](n):this[e].emit(n)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,n)=>this.getLoaderOptions(e,n),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const n=(this._items||[]).length,o=this.both?this.first.rows+e:this.first+e;return{index:o,count:n,first:0===o,last:o===n-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(e,n){const o=this.loaderArr.length;return{index:e,count:o,first:0===e,last:e===o-1,even:e%2==0,odd:e%2!=0,...n}}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-scroller"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($W,5),je(KW,5)),2&n){let s;Se(s=Ee())&&(o.elementViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Hn],ngContentSelectors:mQ,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(n,o){if(1&n&&(Ti(),g(0,dQ,8,16,"ng-container",0),g(1,gQ,2,1,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",!o._disabled)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,_s]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return t})(),Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,_s,Qe]})}return t})(),Kl=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:$t()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.config=s,this.renderer=r,this.viewContainer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(j.hasClass(e.relatedTarget,"p-tooltip")||j.hasClass(e.relatedTarget,"p-tooltip-text")||j.hasClass(e.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?j.appendChild(this.container,this.el.nativeElement):j.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",n=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),j.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Wn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Wn.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof $o){const n=this.viewContainer.createEmbeddedView(e);n.detectChanges(),n.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+j.getWindowScrollLeft(),top:e.top+j.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+j.getOuterWidth(this.el.nativeElement),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-j.getOuterWidth(this.container),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top-j.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top+j.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return j.hasClass(e,"p-inputwrapper")?j.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,o=e.left,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getViewport();return o+s>a.width||o<0||n<0||n+r>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):j.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Wn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(Di),V(hn),V(go))};static \u0275dir=ut({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.escape",function(r){return o.onPressEscape(r)},0,Qy)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Hn]})}return t})(),Nn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),Qs=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function _Q(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function IQ(t,i){1&t&&ze(0)}const Hu=function(t){return{height:t}},CQ=function(t,i,e){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},pC=function(t){return{$implicit:t}},vQ=["container"],bQ=["filter"],yQ=["focusInput"],xQ=["editableInput"],AQ=["items"],wQ=["scroller"],TQ=["overlay"],SQ=["firstHiddenFocusableEl"],EQ=["lastHiddenFocusableEl"];function DQ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.label())}}function kQ(t,i){1&t&&ze(0)}function MQ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(3);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.placeholder)}}function OQ(t,i){if(1&t&&g(0,MQ,2,1,"span",4),2&t){const e=f(2);d("ngIf",e.label()===e.placeholder||e.label()&&!e.placeholder)}}function LQ(t,i){if(1&t){const e=De();x(0,"span",10,11),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),g(2,DQ,2,1,"ng-container",12),g(3,kQ,1,0,"ng-container",13),g(4,OQ,1,1,"ng-template",null,14,In),A()}if(2&t){const e=Bt(5),n=f();d("ngClass",n.inputClass)("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("autofocus",n.autofocus),K("aria-disabled",n.disabled)("id",n.inputId)("aria-label",n.ariaLabel||("p-emptylabel"===n.label()?void 0:n.label()))("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible)("aria-controls",n.id+"_list")("tabindex",n.disabled?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0),h(2),d("ngIf",!n.selectedItemTemplate)("ngIfElse",e),h(1),d("ngTemplateOutlet",n.selectedItemTemplate)("ngTemplateOutletContext",He(19,pC,n.modelValue()))}}function PQ(t,i){if(1&t){const e=De();x(0,"input",15,16),me("input",function(o){return G(e),q(f().onEditableInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))}),A()}if(2&t){const e=f();d("ngClass",e.inputClass)("disabled",e.disabled),K("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function FQ(t,i){if(1&t){const e=De();x(0,"TimesIcon",19),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-dropdown-clear-icon"),K("data-pc-section","clearicon"))}function RQ(t,i){}function NQ(t,i){1&t&&g(0,RQ,0,0,"ng-template")}function VQ(t,i){if(1&t){const e=De();x(0,"span",20),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,NQ,1,0,null,21),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function BQ(t,i){if(1&t&&(we(0),g(1,FQ,1,2,"TimesIcon",17),g(2,VQ,2,2,"span",18),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function HQ(t,i){1&t&&le(0,"span",24),2&t&&d("ngClass",f(2).dropdownIcon)}function zQ(t,i){1&t&&le(0,"ChevronDownIcon",25),2&t&&d("styleClass","p-dropdown-trigger-icon")}function jQ(t,i){if(1&t&&(we(0),g(1,HQ,1,1,"span",22),g(2,zQ,1,1,"ChevronDownIcon",23),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function UQ(t,i){}function $Q(t,i){1&t&&g(0,UQ,0,0,"ng-template")}function KQ(t,i){if(1&t&&(x(0,"span",26),g(1,$Q,1,0,null,21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function GQ(t,i){1&t&&ze(0)}function qQ(t,i){1&t&&ze(0)}const pk=function(t){return{options:t}};function WQ(t,i){if(1&t&&(we(0),g(1,qQ,1,0,"ng-container",13),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,pk,e.filterOptions))}}function QQ(t,i){1&t&&le(0,"SearchIcon",25),2&t&&d("styleClass","p-dropdown-filter-icon")}function ZQ(t,i){}function YQ(t,i){1&t&&g(0,ZQ,0,0,"ng-template")}function XQ(t,i){if(1&t&&(x(0,"span",41),g(1,YQ,1,0,null,21),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function JQ(t,i){if(1&t){const e=De();x(0,"div",37)(1,"input",38,39),me("input",function(o){return G(e),q(f(3).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,QQ,1,1,"SearchIcon",23),g(4,XQ,2,1,"span",40),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||""),K("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function eZ(t,i){if(1&t&&(x(0,"div",35),me("click",function(n){return n.stopPropagation()}),g(1,WQ,2,4,"ng-container",12),g(2,JQ,5,7,"ng-template",null,36,In),A()),2&t){const e=Bt(3),n=f(2);h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function tZ(t,i){1&t&&ze(0)}const hk=function(t,i){return{$implicit:t,options:i}};function nZ(t,i){if(1&t&&g(0,tZ,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,hk,e,n))}}function iZ(t,i){1&t&&ze(0)}function oZ(t,i){if(1&t&&g(0,iZ,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,pk,e))}}function sZ(t,i){1&t&&(we(0),g(1,oZ,1,4,"ng-template",44),Te())}function rZ(t,i){if(1&t){const e=De();x(0,"p-scroller",42,43),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,nZ,1,5,"ng-template",9),g(3,sZ,2,0,"ng-container",4),A()}if(2&t){const e=f(2);yn(He(8,Hu,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function aZ(t,i){1&t&&ze(0)}const lZ=function(){return{}};function cZ(t,i){if(1&t&&(we(0),g(1,aZ,1,0,"ng-container",13),Te()),2&t){f();const e=Bt(9),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,hk,n.visibleOptions(),Jt(2,lZ)))}}function uZ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function dZ(t,i){1&t&&ze(0)}function pZ(t,i){if(1&t&&(we(0),x(1,"li",49),g(2,uZ,2,1,"span",4),g(3,dZ,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,Hu,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,pC,o.optionGroup))}}function hZ(t,i){if(1&t){const e=De();we(0),x(1,"p-dropdownItem",50),me("onClick",function(o){G(e);const s=f().$implicit;return q(f(3).onOptionSelect(o,s))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function fZ(t,i){if(1&t&&(g(0,pZ,4,9,"ng-container",4),g(1,hZ,2,9,"ng-container",4)),2&t){const e=i.$implicit;d("ngIf",e.group),h(1),d("ngIf",!e.group)}}function gZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function mZ(t,i){1&t&&ze(0,null,52)}function _Z(t,i){if(1&t&&(x(0,"li",51),g(1,gZ,2,1,"ng-container",12),g(2,mZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function IZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function CZ(t,i){1&t&&ze(0,null,53)}function vZ(t,i){if(1&t&&(x(0,"li",51),g(1,IZ,2,1,"ng-container",12),g(2,CZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function bZ(t,i){if(1&t&&(x(0,"ul",45,46),g(2,fZ,2,2,"ng-template",47),g(3,_Z,3,6,"li",48),g(4,vZ,3,6,"li",48),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",o.filterValue&&o.isEmpty()),h(1),d("ngIf",!o.filterValue&&o.isEmpty())}}function yZ(t,i){1&t&&ze(0)}function xZ(t,i){if(1&t){const e=De();x(0,"div",27)(1,"span",28,29),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,GQ,1,0,"ng-container",21),g(4,eZ,4,2,"div",30),x(5,"div",31),g(6,rZ,4,10,"p-scroller",32),g(7,cZ,2,6,"ng-container",4),g(8,bZ,5,7,"ng-template",null,33,In),A(),g(10,yZ,1,0,"ng-container",21),x(11,"span",28,34),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",e.filter),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngTemplateOutlet",e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const AZ={provide:un,useExisting:ft(()=>fk),multi:!0};let wZ=(()=>{class t{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new ge;onMouseEnter=new ge;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),g(1,_Q,2,1,"span",1),g(2,IQ,1,0,"ng-container",2),A()),2&n&&(d("id",o.id)("ngStyle",He(13,Hu,o.itemSize+"px"))("ngClass",Rn(15,CQ,o.selected,o.disabled,o.focused)),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(19,pC,o.option)))},dependencies:[Ct,gt,on,Ht,oo],encapsulation:2})}return t})(),fk=(()=>{class t{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get options(){return this._options()}set options(e){this._options.set(e)}onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onShow=new ge;onHide=new ge;onClear=new ge;onLazyLoad=new ge;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=bn(null);modelValue=bn(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=bn(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=bn(-1);labelId;listId;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&be.isNotEmpty(this.modelValue())&&""!==this.modelValue()&&this.showClear&&!this.disabled}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder&&e===this.placeholder,"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||e&&"p-emptylabel"!==e&&0!==e.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterBy||this.filterFields||this.optionValue?this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):this.options.filter(o=>-1!==o.toLowerCase().indexOf(this._filterValue().toLowerCase()));if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{const e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions()[e]):this.placeholder||"p-emptylabel"});constructor(e,n,o,s,r,a){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,a_(()=>{this.modelValue()&&this.editable&&this.updateEditableLabel()})}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&j.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&!this.modelValue()){const e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,o=!0,s=!1){const r=this.getOptionValue(n);this.updateModel(r,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o&&this.hide(!0),!1===s&&this.onChange.emit({originalEvent:e,value:r})}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder&&!this.modelValue()&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=void 0===this.getOptionLabel(this.modelValue())?this.editableInputViewChild.nativeElement.value:this.getOptionLabel(this.modelValue()))}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&void 0!==e?.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==e.target.tagName&&"clearicon"!==e.target.getAttribute("data-pc-section")&&!e.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.cd.detectChanges()))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}onEditableInput(e){const n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:n})}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n){if(!this.disabled&&!this.readonly)switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){const o=this.visibleOptions()[n];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(),e.preventDefault()}else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1)):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!n&&this.onEnterKey(e)}onEnterKey(e){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.hide()}else this.onArrowDownKey(e);e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild.el.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild.nativeElement;j.focus(n)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),this.cd.markForCheck()}applyFocus(){this.editable?j.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():j.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e)}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(Di))};static \u0275cmp=Oe({type:t,selectors:[["p-dropdown"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(vQ,5),je(bQ,5),je(yQ,5),je(xQ,5),je(AQ,5),je(wQ,5),je(TQ,5),je(SQ,5),je(EQ,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.editableInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[yt([AZ])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultPlaceholder",""],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,LQ,6,21,"span",2),g(3,PQ,2,5,"input",3),g(4,BQ,3,2,"ng-container",4),x(5,"div",5),g(6,jQ,3,2,"ng-container",4),g(7,KQ,2,1,"span",6),A(),x(8,"p-overlay",7,8),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(10,xZ,13,19,"ng-template",9),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),d("ngIf",!o.editable),h(1),d("ngIf",o.editable),h(1),d("ngIf",o.isVisibleClearIcon),h(1),K("aria-expanded",o.overlayVisible)("data-pc-section","trigger"),h(1),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,Bu,uC,mn,bi,Qs,wZ]},styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_f=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Mi,gf,mn,bi,Qs,$l,Qe,Mi]})}return t})(),Or=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),If=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),hC=(()=>{class t{el;ngModel;cd;filled;constructor(e,n,o){this.el=e,this.ngModel=n,this.cd=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(n){return new(n||t)(V(bt),V(xh,8),V(Ft))};static \u0275dir=ut({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(n,o){1&n&&me("input",function(r){return o.onInput(r)}),2&n&&Ii("p-filled",o.filled)}})}return t})(),Zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const TZ=["input"];function SZ(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("ngClass","p-inputnumber-clear-icon"),K("data-pc-section","clearIcon"))}function EZ(t,i){}function DZ(t,i){1&t&&g(0,EZ,0,0,"ng-template")}function kZ(t,i){if(1&t){const e=De();x(0,"span",9),me("click",function(){return G(e),q(f(2).clear())}),g(1,DZ,1,0,null,10),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function MZ(t,i){if(1&t&&(we(0),g(1,SZ,1,2,"TimesIcon",6),g(2,kZ,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function OZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function LZ(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function PZ(t,i){}function FZ(t,i){1&t&&g(0,PZ,0,0,"ng-template")}function RZ(t,i){if(1&t&&(we(0),g(1,LZ,1,1,"AngleUpIcon",3),g(2,FZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function NZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function VZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function BZ(t,i){}function HZ(t,i){1&t&&g(0,BZ,0,0,"ng-template")}function zZ(t,i){if(1&t&&(we(0),g(1,VZ,1,1,"AngleDownIcon",3),g(2,HZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const gk=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},mk=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function jZ(t,i){if(1&t){const e=De();x(0,"span",11)(1,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(2,OZ,1,2,"span",13),g(3,RZ,3,2,"ng-container",3),A(),x(4,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(5,NZ,1,2,"span",13),g(6,zZ,3,2,"ng-container",3),A()()}if(2&t){const e=f();K("data-pc-section","buttonGroup"),h(1),Ve(e.incrementButtonClass),d("ngClass",Jt(17,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon),h(1),Ve(e.decrementButtonClass),d("ngClass",Jt(18,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section",e.decrementbutton),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}function UZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function $Z(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function KZ(t,i){}function GZ(t,i){1&t&&g(0,KZ,0,0,"ng-template")}function qZ(t,i){if(1&t&&(we(0),g(1,$Z,1,1,"AngleUpIcon",3),g(2,GZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function WZ(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(1,UZ,1,2,"span",13),g(2,qZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.incrementButtonClass),d("ngClass",Jt(8,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon)}}function QZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function ZZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function YZ(t,i){}function XZ(t,i){1&t&&g(0,YZ,0,0,"ng-template")}function JZ(t,i){if(1&t&&(we(0),g(1,ZZ,1,1,"AngleDownIcon",3),g(2,XZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function eY(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(1,QZ,1,2,"span",13),g(2,JZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.decrementButtonClass),d("ngClass",Jt(8,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","decrementbutton"),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}const tY=function(t,i,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},nY={provide:un,useExisting:ft(()=>_k),multi:!0};let _k=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new ge;onFocus=new ge;onBlur=new ge;onKeyDown=new ge;onClear=new ge;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,n,o,s){this.document=e,this.el=n,this.cd=o,this.injector=s}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(o=>!!e[o])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template}})}ngOnInit(){this.ngControl=this.injector.get(ds,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(e.map((o,s)=>[o,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=o=>n.get(o)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let o=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(o=this.prefix+o),this.suffix&&(o+=this.suffix),o}return e.toString()}return""}parseValue(e){let n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if("-"===n)return n;let o=+n;return isNaN(o)?null:o}return null}repeat(e,n,o){if(this.readonly)return;let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let o=this.step*n,s=this.parseValue(this.input?.nativeElement.value)||0,r=this.validateValue(s+o);this.maxlength&&this.maxlength0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n-1)+s.slice(n)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Delete":if(e.preventDefault(),n===o){const a=s.charAt(n),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,r=s.slice(0,n)+s.slice(n+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(n+1,n+1):r=s.slice(0,n)+s.slice(n+1);else if(l>0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n)+s.slice(n+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault())}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let n=e.which||e.keyCode,o=String.fromCharCode(n);const s=this.isDecimalSign(o),r=this.isMinusSign(o);13!=n&&e.preventDefault();const a=this.parseValue(this.input.nativeElement.value+o),l=null!=a?a.toString():"";this.maxlength&&l.length>this.maxlength||(48<=n&&n<=57||r||s)&&this.insert(e,o,{isDecimalSign:s,isMinusSign:r})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(n){this.maxlength&&(n=n.toString().substring(0,this.maxlength));let o=this.parseValue(n);null!=o&&this.insert(e,o.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const n=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:o,suffixCharIndex:s,currencyCharIndex:r}}insert(e,n,o={isDecimalSign:!1,isMinusSign:!1}){const s=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let r=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:p,currencyCharIndex:m}=this.getCharIndexes(l);let _;if(o.isMinusSign)0===r&&(_=l,(-1===u||0!==a)&&(_=this.insertText(l,n,0,a)),this.updateValue(e,_,n,"insert"));else if(o.isDecimalSign)c>0&&r===c?this.updateValue(e,l,n,"insert"):(c>r&&c0&&r>c){if(r+n.length-(c+1)<=b){const P=m>=r?m-1:p>=r?p:l.length;_=l.slice(0,r)+n+l.slice(r+n.length,P)+l.slice(P),this.updateValue(e,_,n,E)}}else _=this.insertText(l,n,r,a),this.updateValue(e,_,n,E)}}insertText(e,n,o,s){if(2===("."===n?n:n.split(".")).length){const a=e.slice(o,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,o)+this.formatValue(n)+e.slice(s):e||this.formatValue(n)}return s-o===e.length?this.formatValue(n):0===o?n+e.slice(s):s===e.length?e.slice(0,o)+n:e.slice(0,o)+n+e.slice(s)}deleteRange(e,n,o){let s;return s=o-n===e.length?"":0===n?e.slice(o):o===e.length?e.slice(0,n):e.slice(0,n)+e.slice(o),s}initCursor(){let e=this.input?.nativeElement.selectionStart,n=this.input?.nativeElement.value,o=n.length,s=null,r=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=r;let a=n.charAt(e);if(this.isNumeralChar(a))return e+r;let l=e-1;for(;l>=0;){if(a=n.charAt(l),this.isNumeralChar(a)){s=l+r;break}l--}if(null!==s)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,n,o,s){n=n||"";let r=this.input?.nativeElement.value,a=this.formatValue(e),l=r.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft),V(Ui))};static \u0275cmp=Oe({type:t,selectors:[["p-inputNumber"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(TZ,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-inputnumber-clearable",o.showClear&&"vertical"!=o.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[yt([nY]),Hn],decls:7,vars:39,consts:[[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("input",function(r){return o.onUserInput(r)})("keydown",function(r){return o.onInputKeyDown(r)})("keypress",function(r){return o.onInputKeyPress(r)})("paste",function(r){return o.onPaste(r)})("click",function(){return o.onInputClick()})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A(),g(3,MZ,3,2,"ng-container",3),g(4,jZ,7,19,"span",4),g(5,WZ,3,9,"button",5),g(6,eY,3,9,"button",5),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(35,tY,o.showButtons&&"stacked"===o.buttonLayout,o.showButtons&&"horizontal"===o.buttonLayout,o.showButtons&&"vertical"===o.buttonLayout))("ngStyle",o.style),K("data-pc-name","inputnumber")("data-pc-section","root"),h(1),Ve(o.inputStyleClass),d("ngClass","p-inputnumber-input")("ngStyle",o.inputStyle)("value",o.formattedValue())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("aria-valuemin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("placeholder",o.placeholder)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("title",o.title)("size",o.size)("name",o.name)("autocomplete",o.autocomplete)("maxlength",o.maxlength)("tabindex",o.tabindex)("aria-required",o.ariaRequired)("required",o.required)("min",o.min)("max",o.max)("data-pc-section","input"),h(2),d("ngIf","vertical"!=o.buttonLayout&&o.showClear&&o.value),h(1),d("ngIf",o.showButtons&&"stacked"===o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout))},dependencies:function(){return[Ct,gt,on,Ht,hC,hf,mn,If,Or]},styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),fC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,ki,mn,If,Or,Qe]})}return t})(),gC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),_C=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Zo=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function iY(t,i){1&t&&ze(0)}const IC=function(t){return{$implicit:t}};function oY(t,i){if(1&t&&(x(0,"div",15),g(1,iY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","start"),h(1),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function sY(t,i){if(1&t&&(x(0,"span",17),Le(1),A()),2&t){const e=f(2);h(1),dt(e.currentPageReport)}}function rY(t,i){1&t&&le(0,"AngleDoubleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function aY(t,i){}function lY(t,i){1&t&&g(0,aY,0,0,"ng-template")}function cY(t,i){if(1&t&&(x(0,"span",20),g(1,lY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const Cf=function(t){return{"p-disabled":t}};function uY(t,i){if(1&t){const e=De();x(0,"button",18),me("click",function(o){return G(e),q(f(2).changePageToFirst(o))}),g(1,rY,1,1,"AngleDoubleLeftIcon",6),g(2,cY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isFirstPage()||e.empty())("ngClass",He(5,Cf,e.isFirstPage()||e.empty())),K("aria-label","firstPageLabel"),h(1),d("ngIf",!e.firstPageLinkIconTemplate),h(1),d("ngIf",e.firstPageLinkIconTemplate)}}function dY(t,i){1&t&&le(0,"AngleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function pY(t,i){}function hY(t,i){1&t&&g(0,pY,0,0,"ng-template")}function fY(t,i){if(1&t&&(x(0,"span",20),g(1,hY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const gY=function(t){return{"p-highlight":t}};function mY(t,i){if(1&t){const e=De();x(0,"button",24),me("click",function(o){const r=G(e).$implicit;return q(f(3).onPageLinkClick(o,r-1))}),Le(1),A()}if(2&t){const e=i.$implicit,n=f(3);d("ngClass",He(2,gY,e-1==n.getPage())),h(1),Pt(" ",n.getLocalization(e)," ")}}function _Y(t,i){if(1&t&&(x(0,"span",22),g(1,mY,2,4,"button",23),A()),2&t){const e=f(2);h(1),d("ngForOf",e.pageLinks)}}function IY(t,i){1&t&&Le(0),2&t&&dt(f(3).currentPageReport)}function CY(t,i){if(1&t){const e=De();x(0,"p-dropdown",25),me("onChange",function(o){return G(e),q(f(2).onPageDropdownChange(o))}),g(1,IY,1,1,"ng-template",26),A()}if(2&t){const e=f(2);d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),K("aria-label","jumpToPageDropdownLabel")}}function vY(t,i){1&t&&le(0,"AngleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function bY(t,i){}function yY(t,i){1&t&&g(0,bY,0,0,"ng-template")}function xY(t,i){if(1&t&&(x(0,"span",20),g(1,yY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function AY(t,i){1&t&&le(0,"AngleDoubleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function wY(t,i){}function TY(t,i){1&t&&g(0,wY,0,0,"ng-template")}function SY(t,i){if(1&t&&(x(0,"span",20),g(1,TY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function EY(t,i){if(1&t){const e=De();x(0,"button",27),me("click",function(o){return G(e),q(f(2).changePageToLast(o))}),g(1,AY,1,1,"AngleDoubleRightIcon",6),g(2,SY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isLastPage()||e.empty())("ngClass",He(4,Cf,e.isLastPage()||e.empty())),h(1),d("ngIf",!e.lastPageLinkIconTemplate),h(1),d("ngIf",e.lastPageLinkIconTemplate)}}function DY(t,i){if(1&t){const e=De();x(0,"p-inputNumber",28),me("ngModelChange",function(o){return G(e),q(f(2).changePage(o-1))}),A()}if(2&t){const e=f(2);d("ngModel",e.currentPage())("disabled",e.empty())}}function kY(t,i){1&t&&ze(0)}function MY(t,i){if(1&t&&g(0,kY,1,0,"ng-container",16),2&t){const e=i.$implicit;d("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",He(2,IC,e))}}function OY(t,i){1&t&&(we(0),g(1,MY,1,4,"ng-template",31),Te())}function LY(t,i){if(1&t){const e=De();x(0,"p-dropdown",29),me("ngModelChange",function(o){return G(e),q(f(2).rows=o)})("onChange",function(o){return G(e),q(f(2).onRppChange(o))}),g(1,OY,2,0,"ng-container",30),A()}if(2&t){const e=f(2);d("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),h(1),d("ngIf",e.dropdownItemTemplate)}}function PY(t,i){1&t&&ze(0)}function FY(t,i){if(1&t&&(x(0,"div",32),g(1,PY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","end"),h(1),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function RY(t,i){if(1&t){const e=De();x(0,"div",1),g(1,oY,2,5,"div",2),g(2,sY,2,1,"span",3),g(3,uY,3,7,"button",4),x(4,"button",5),me("click",function(o){return G(e),q(f().changePageToPrev(o))}),g(5,dY,1,1,"AngleLeftIcon",6),g(6,fY,2,1,"span",7),A(),g(7,_Y,2,1,"span",8),g(8,CY,2,6,"p-dropdown",9),x(9,"button",10),me("click",function(o){return G(e),q(f().changePageToNext(o))}),g(10,vY,1,1,"AngleRightIcon",6),g(11,xY,2,1,"span",7),A(),g(12,EY,3,6,"button",11),g(13,DY,1,2,"p-inputNumber",12),g(14,LY,2,6,"p-dropdown",13),g(15,FY,2,5,"div",14),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass","p-paginator p-component"),K("data-pc-section","paginator")("data-pc-section","root"),h(1),d("ngIf",e.templateLeft),h(1),d("ngIf",e.showCurrentPageReport),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("disabled",e.isFirstPage()||e.empty())("ngClass",He(25,Cf,e.isFirstPage()||e.empty())),K("aria-label","prevPageLabel"),h(1),d("ngIf",!e.previousPageLinkIconTemplate),h(1),d("ngIf",e.previousPageLinkIconTemplate),h(1),d("ngIf",e.showPageLinks),h(1),d("ngIf",e.showJumpToPageDropdown),h(1),d("disabled",e.isLastPage()||e.empty())("ngClass",He(27,Cf,e.isLastPage()||e.empty())),K("aria-label","lastPageLabel"),h(1),d("ngIf",!e.nextPageLinkIconTemplate),h(1),d("ngIf",e.nextPageLinkIconTemplate),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("ngIf",e.showJumpToPageInput),h(1),d("ngIf",e.rowsPerPageOptions),h(1),d("ngIf",e.templateRight)}}let NY=(()=>{class t{cd;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new ge;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const n=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(n.map((s,r)=>[r,s]));return e>9?String(e).split("").map(r=>o.get(Number(r))).join(""):o.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),n=Math.min(this.pageLinkSize,e),o=Math.max(0,Math.ceil(this.getPage()-n/2)),s=Math.min(e-1,o+n-1);return o=Math.max(0,o-(this.pageLinkSize-(s-o+1))),[o,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),o=e[1];for(let s=e[0];s<=o;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,n){this.changePage(n),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-paginator"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Hn],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(n,o){1&n&&g(0,RY,16,29,"div",0),2&n&&d("ngIf",!!o.alwaysShow||o.pageLinks&&o.pageLinks.length>1)},dependencies:function(){return[Ct,Jn,gt,on,Ht,fk,sn,_k,sS,xh,oo,gC,mC,_C,Zo]},styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),vf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,_f,fC,uu,Qe,dn,gC,mC,_C,Zo,_f,fC,uu,Qe]})}return t})();const VY=["container"];function BY(t,i){1&t&&le(0,"span",8),2&t&&(Ve(f(2).$implicit.icon),d("ngClass","p-button-icon p-button-icon-left"),K("data-pc-section","icon"))}function HY(t,i){if(1&t&&(we(0),g(1,BY,1,4,"span",6),x(2,"span",7),Le(3),A(),Te()),2&t){const e=f().$implicit,n=f();h(1),d("ngIf",e.icon),h(1),K("data-pc-section","label"),h(1),dt(n.getOptionLabel(e))}}function zY(t,i){1&t&&ze(0)}const jY=function(t,i){return{$implicit:t,index:i}};function UY(t,i){if(1&t&&g(0,zY,1,0,"ng-container",9),2&t){const e=f(),n=e.$implicit,o=e.index;d("ngTemplateOutlet",f().selectButtonTemplate)("ngTemplateOutletContext",mt(2,jY,n,o))}}const $Y=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function KY(t,i){if(1&t){const e=De();x(0,"div",3),me("click",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onOptionSelect(o,r,a))})("keydown",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onKeyDown(o,r,a))})("focus",function(o){const r=G(e).index;return q(f().onFocus(o,r))})("blur",function(){return G(e),q(f().onBlur())}),g(1,HY,4,3,"ng-container",4),g(2,UY,1,5,"ng-template",null,5,In),A()}if(2&t){const e=i.$implicit,n=i.index,o=Bt(3),s=f();Ve(e.styleClass),d("role",s.multiple?"checkbox":"radio")("ngClass",Rn(14,$Y,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),K("tabindex",n===s.focusedIndex?"0":"-1")("aria-label",e.label)("aria-checked",s.isSelected(e))("aria-disabled",s.optionDisabled)("aria-pressed",s.isSelected(e))("title",e.title)("aria-labelledby",s.getOptionLabel(e))("data-pc-section","button"),h(1),d("ngIf",!s.itemTemplate)("ngIfElse",o)}}const GY={provide:un,useExisting:ft(()=>qY),multi:!0};let qY=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new ge;onChange=new ge;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,n,o){if(this.disabled||this.isOptionDisabled(n))return;let s=this.isSelected(n);if(s&&this.unselectable)return;let a,r=this.getOptionValue(n);if(this.multiple)a=s?this.value.filter(l=>!be.equals(l,r,this.equalityKey)):this.value?[...this.value,r]:[r];else{if(s&&!this.allowEmpty)return;a=s?null:r}this.focusedIndex=o,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:n,index:o})}onKeyDown(e,n,o){switch(e.code){case"Space":this.onOptionSelect(e,n,o),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}}changeTabIndexes(e,n){let o,s;for(let r=0;r<=this.container.nativeElement.children.length-1;r++)"0"===this.container.nativeElement.children[r].getAttribute("tabindex")&&(o={elem:this.container.nativeElement.children[r],index:r});s="prev"===n?0===o.index?this.container.nativeElement.children.length-1:o.index-1:o.index===this.container.nativeElement.children.length-1?0:o.index+1,this.focusedIndex=s,this.container.nativeElement.children[s].focus()}onFocus(e,n){this.focusedIndex=n}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!be.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1;const o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let s of this.value)if(be.equals(s,o,this.dataKey)){n=!0;break}}else n=be.equals(this.getOptionValue(e),this.value,this.equalityKey);return n}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-selectButton"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,5),2&n){let r;Se(r=Ee())&&(o.itemTemplate=r.first)}},viewQuery:function(n,o){if(1&n&&je(VY,5),2&n){let s;Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:"unselectable",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[yt([GY])],decls:3,vars:8,consts:[["role","group",3,"ngClass","ngStyle"],["container",""],["pRipple","","class","p-button p-component",3,"role","class","ngClass","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","",1,"p-button","p-component",3,"role","ngClass","click","keydown","focus","blur"],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,KY,4,18,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",o.style),K("aria-labelledby",o.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),h(2),d("ngForOf",o.options))},dependencies:[Ct,Jn,gt,on,Ht,oo],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return t})(),Ik=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,Qe]})}return t})(),yi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function WY(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxTrueIcon),K("data-pc-section","checkIcon"))}function QY(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","checkIcon"))}function ZY(t,i){}function YY(t,i){1&t&&g(0,ZY,0,0,"ng-template")}function XY(t,i){if(1&t&&(x(0,"span",12),g(1,YY,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","checkIcon"),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function JY(t,i){if(1&t&&(we(0),g(1,QY,1,2,"CheckIcon",9),g(2,XY,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function eX(t,i){if(1&t&&(we(0),g(1,WY,1,2,"span",7),g(2,JY,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxTrueIcon),h(1),d("ngIf",!e.checkboxTrueIcon)}}function tX(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxFalseIcon),K("data-pc-section","uncheckIcon"))}function nX(t,i){1&t&&le(0,"TimesIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","uncheckIcon"))}function iX(t,i){}function oX(t,i){1&t&&g(0,iX,0,0,"ng-template")}function sX(t,i){if(1&t&&(x(0,"span",12),g(1,oX,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","uncheckIcon"),h(1),d("ngTemplateOutlet",e.uncheckIconTemplate)}}function rX(t,i){if(1&t&&(we(0),g(1,nX,1,2,"TimesIcon",9),g(2,sX,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.uncheckIconTemplate),h(1),d("ngIf",e.uncheckIconTemplate)}}function aX(t,i){if(1&t&&(we(0),g(1,tX,1,2,"span",7),g(2,rX,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxFalseIcon),h(1),d("ngIf",!e.checkboxFalseIcon)}}const lX=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function cX(t,i){if(1&t&&(x(0,"label",14),Le(1),A()),2&t){const e=f();d("ngClass",Rn(3,lX,null!=e.value,e.disabled,e.focused)),K("for",e.inputId),h(1),dt(e.label)}}const uX=function(t,i){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},dX=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},pX={provide:un,useExisting:ft(()=>hX),multi:!0};let hX=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabel;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new ge;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.focus())}onKeyDown(e){"Enter"===e.key&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[yt([pX])],decls:8,vars:26,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none",3,"name","readonly","disabled","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-tristatecheckbox-label",3,"ngClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-tristatecheckbox-label",3,"ngClass"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.onClick(a,l))}),x(1,"div",1)(2,"input",2,3),me("keydown",function(a){return o.onKeyDown(a)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,eX,3,2,"ng-container",5),g(6,aX,3,2,"ng-container",5),A()(),g(7,cX,2,7,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(19,uX,o.disabled,o.focused)),K("data-pc-name","tristatecheckbox")("data-pc-section","root"),h(2),d("name",o.name)("readonly",o.readonly)("disabled",o.disabled),K("id",o.inputId)("tabindex",o.tabindex)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(22,dX,null!=o.value,o.disabled,o.focused)),K("aria-checked",!0===o.value),h(1),d("ngIf",!0===o.value),h(1),d("ngIf",!1===o.value),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi,mn]},encapsulation:2,changeDetection:0})}return t})(),fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,yi,mn,Qe]})}return t})(),CC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),gX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Ck=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[st,Et],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),A(),x(6,"defs")(7,"clipPath",5),le(8,"rect",6),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(6),d("id",o.pathId))},encapsulation:2})}return t})(),vk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.59836 13.2009C2.44634 13.2009 2.29432 13.1449 2.1743 13.0248L0.174024 11.0246C-0.0580081 10.7925 -0.0580081 10.4085 0.174024 10.1764C0.406057 9.94441 0.79011 9.94441 1.02214 10.1764L2.59836 11.7527L4.17458 10.1764C4.40662 9.94441 4.79067 9.94441 5.0227 10.1764C5.25473 10.4085 5.25473 10.7925 5.0227 11.0246L3.02242 13.0248C2.90241 13.1449 2.75038 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),bk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.59864 3.99958C4.44662 3.99958 4.2946 3.94357 4.17458 3.82356L2.59836 2.24734L1.02214 3.82356C0.79011 4.05559 0.406057 4.05559 0.174024 3.82356C-0.0580081 3.59152 -0.0580081 3.20747 0.174024 2.97544L2.1743 0.97516C2.40634 0.743127 2.79039 0.743127 3.02242 0.97516L5.0227 2.97544C5.25473 3.20747 5.25473 3.59152 5.0227 3.82356C4.90268 3.94357 4.75066 3.99958 4.59864 3.99958Z","fill","currentColor"],["d","M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),mX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const _X=["container"],IX=["resizeHelper"],CX=["reorderIndicatorUp"],vX=["reorderIndicatorDown"],bX=["wrapper"],yX=["table"],xX=["thead"],AX=["tfoot"],wX=["scroller"];function TX(t,i){1&t&&le(0,"i"),2&t&&Ve("p-datatable-loading-icon "+f(2).loadingIcon)}function SX(t,i){1&t&&le(0,"SpinnerIcon",19),2&t&&d("spin",!0)("styleClass","p-datatable-loading-icon")}function EX(t,i){}function DX(t,i){1&t&&g(0,EX,0,0,"ng-template")}function kX(t,i){if(1&t&&(x(0,"span",20),g(1,DX,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function MX(t,i){if(1&t&&(we(0),g(1,SX,1,2,"SpinnerIcon",17),g(2,kX,2,1,"span",18),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function OX(t,i){if(1&t&&(x(0,"div",15),g(1,TX,1,2,"i",16),g(2,MX,3,2,"ng-container",8),A()),2&t){const e=f();h(1),d("ngIf",e.loadingIcon),h(1),d("ngIf",!e.loadingIcon)}}function LX(t,i){1&t&&ze(0)}function PX(t,i){if(1&t&&(x(0,"div",22),g(1,LX,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.captionTemplate)}}function FX(t,i){1&t&&ze(0)}function RX(t,i){1&t&&g(0,FX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function NX(t,i){1&t&&g(0,RX,1,1,"ng-template",24)}function VX(t,i){1&t&&ze(0)}function BX(t,i){1&t&&g(0,VX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function HX(t,i){1&t&&g(0,BX,1,1,"ng-template",25)}function zX(t,i){1&t&&ze(0)}function jX(t,i){1&t&&g(0,zX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function UX(t,i){1&t&&g(0,jX,1,1,"ng-template",26)}function $X(t,i){1&t&&ze(0)}function KX(t,i){1&t&&g(0,$X,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function GX(t,i){1&t&&g(0,KX,1,1,"ng-template",27)}function qX(t,i){if(1&t){const e=De();x(0,"p-paginator",23),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,NX,1,0,null,8),g(2,HX,1,0,null,8),g(3,UX,1,0,null,8),g(4,GX,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function WX(t,i){1&t&&ze(0)}const yk=function(t,i){return{$implicit:t,options:i}};function QX(t,i){if(1&t&&g(0,WX,1,0,"ng-container",31),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(10))("ngTemplateOutletContext",mt(2,yk,e,n))}}const ZX=function(t){return{height:t}};function YX(t,i){if(1&t){const e=De();x(0,"p-scroller",28,29),me("onLazyLoad",function(o){return G(e),q(f().onLazyItemLoad(o))}),g(2,QX,1,5,"ng-template",30),A()}if(2&t){const e=f();yn(He(15,ZX,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),d("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function XX(t,i){1&t&&ze(0)}const JX=function(t){return{columns:t}};function eJ(t,i){if(1&t&&(we(0),g(1,XX,1,0,"ng-container",31),Te()),2&t){const e=f(),n=Bt(10);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(4,yk,e.processedData,He(2,JX,e.columns)))}}function tJ(t,i){1&t&&ze(0)}function nJ(t,i){1&t&&ze(0)}function iJ(t,i){if(1&t&&le(0,"tbody",40),2&t){const e=f().options,n=f();d("value",n.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",n.frozenBodyTemplate)("frozen",!0)}}function oJ(t,i){if(1&t&&le(0,"tbody",41),2&t){const e=f().options;yn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function sJ(t,i){1&t&&ze(0)}const Lr=function(t){return{$implicit:t}};function rJ(t,i){if(1&t&&(x(0,"tfoot",42,43),g(2,sJ,1,0,"ng-container",31),A()),2&t){const e=f().options,n=f();h(2),d("ngTemplateOutlet",n.footerGroupedTemplate||n.footerTemplate)("ngTemplateOutletContext",He(2,Lr,e.columns))}}const aJ=function(t,i,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":i,"p-datatable-resizable-table-fit":e}};function lJ(t,i){if(1&t&&(x(0,"table",32,33),g(2,tJ,1,0,"ng-container",31),x(3,"thead",34,35),g(5,nJ,1,0,"ng-container",31),A(),g(6,iJ,1,5,"tbody",36),le(7,"tbody",37),g(8,oJ,1,2,"tbody",38),g(9,rJ,3,4,"tfoot",39),A()),2&t){const e=i.options,n=f();yn(n.tableStyle),Ve(n.tableStyleClass),d("ngClass",Rn(20,aJ,n.scrollable,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode)),K("id",n.id+"-table"),h(2),d("ngTemplateOutlet",n.colGroupTemplate)("ngTemplateOutletContext",He(24,Lr,e.columns)),h(3),d("ngTemplateOutlet",n.headerGroupedTemplate||n.headerTemplate)("ngTemplateOutletContext",He(26,Lr,e.columns)),h(1),d("ngIf",n.frozenValue||n.frozenBodyTemplate),h(1),yn(e.contentStyle),d("ngClass",e.contentStyleClass)("value",n.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",n.bodyTemplate)("scrollerOptions",e),h(1),d("ngIf",e.spacerStyle),h(1),d("ngIf",n.footerGroupedTemplate||n.footerTemplate)}}function cJ(t,i){1&t&&ze(0)}function uJ(t,i){1&t&&g(0,cJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function dJ(t,i){1&t&&g(0,uJ,1,1,"ng-template",24)}function pJ(t,i){1&t&&ze(0)}function hJ(t,i){1&t&&g(0,pJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function fJ(t,i){1&t&&g(0,hJ,1,1,"ng-template",25)}function gJ(t,i){1&t&&ze(0)}function mJ(t,i){1&t&&g(0,gJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function _J(t,i){1&t&&g(0,mJ,1,1,"ng-template",26)}function IJ(t,i){1&t&&ze(0)}function CJ(t,i){1&t&&g(0,IJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function vJ(t,i){1&t&&g(0,CJ,1,1,"ng-template",27)}function bJ(t,i){if(1&t){const e=De();x(0,"p-paginator",44),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,dJ,1,0,null,8),g(2,fJ,1,0,null,8),g(3,_J,1,0,null,8),g(4,vJ,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function yJ(t,i){1&t&&ze(0)}function xJ(t,i){if(1&t&&(x(0,"div",45),g(1,yJ,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.summaryTemplate)}}function AJ(t,i){1&t&&le(0,"div",46,47)}function wJ(t,i){1&t&&le(0,"ArrowDownIcon")}function TJ(t,i){}function SJ(t,i){1&t&&g(0,TJ,0,0,"ng-template")}function EJ(t,i){if(1&t&&(x(0,"span",48,49),g(2,wJ,1,0,"ArrowDownIcon",8),g(3,SJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorUpIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function DJ(t,i){1&t&&le(0,"ArrowUpIcon")}function kJ(t,i){}function MJ(t,i){1&t&&g(0,kJ,0,0,"ng-template")}function OJ(t,i){if(1&t&&(x(0,"span",50,51),g(2,DJ,1,0,"ArrowUpIcon",8),g(3,MJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorDownIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const LJ=function(t,i,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":i,"p-datatable-flex-scrollable":e}},PJ=function(t){return{maxHeight:t}},FJ=["pTableBody",""];function RJ(t,i){1&t&&ze(0)}const bC=function(t,i,e,n,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o}};function NJ(t,i){if(1&t&&(we(0,3),g(1,RJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function VJ(t,i){1&t&&ze(0)}function BJ(t,i){if(1&t&&(we(0),g(1,VJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function HJ(t,i){1&t&&ze(0)}const zJ=function(t,i,e,n,o,s,r){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o,rowgroup:s,rowspan:r}};function jJ(t,i){if(1&t&&(we(0),g(1,HJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",function Aw(t,i,e,n,o,s,r,a,l,c){const u=Hi()+t,p=Ne();let m=Do(p,u,e,n,o,s);return Dp(p,u+4,r,a,l)||m?ls(p,u+7,c?i.call(c,e,n,o,s,r,a,l):i(e,n,o,s,r,a,l)):zc(p,u+7)}(2,zJ,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen,s.shouldRenderRowspan(s.value,n,o),s.calculateRowGroupSize(s.value,n,o)))}}function UJ(t,i){1&t&&ze(0)}function $J(t,i){if(1&t&&(we(0,3),g(1,UJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function KJ(t,i){if(1&t&&(g(0,NJ,2,8,"ng-container",2),g(1,BJ,2,8,"ng-container",0),g(2,jJ,2,10,"ng-container",0),g(3,$J,2,8,"ng-container",2)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",o.dt.groupHeaderTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,n)),h(1),d("ngIf","rowspan"!==o.dt.rowGroupMode),h(1),d("ngIf","rowspan"===o.dt.rowGroupMode),h(1),d("ngIf",o.dt.groupFooterTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,e,n))}}function GJ(t,i){if(1&t&&(we(0),g(1,KJ,4,4,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function qJ(t,i){1&t&&ze(0)}const bf=function(t,i,e,n,o,s){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:o,frozen:s}};function WJ(t,i){if(1&t&&(we(0),g(1,qJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.template)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function QJ(t,i){1&t&&ze(0)}function ZJ(t,i){if(1&t&&(we(0,3),g(1,QJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function YJ(t,i){1&t&&ze(0)}function XJ(t,i){1&t&&ze(0)}function JJ(t,i){if(1&t&&(we(0,3),g(1,XJ,1,0,"ng-container",4),Te()),2&t){const e=f(2),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}const xk=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function eee(t,i){if(1&t&&(we(0),g(1,YJ,1,0,"ng-container",4),g(2,JJ,2,9,"ng-container",2),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",gr(3,xk,n,s.getRowIndex(o),s.columns,s.frozen)),h(1),d("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,n,s.getRowIndex(o)))}}function tee(t,i){if(1&t&&(g(0,WJ,2,9,"ng-container",0),g(1,ZJ,2,9,"ng-container",2),g(2,eee,3,8,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",!o.dt.groupHeaderTemplate),h(1),d("ngIf",o.dt.groupHeaderTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(n))),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function nee(t,i){if(1&t&&(we(0),g(1,tee,3,3,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function iee(t,i){1&t&&ze(0)}function oee(t,i){1&t&&ze(0)}function see(t,i){if(1&t&&(we(0),g(1,oee,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",gr(2,xk,n,s.getRowIndex(o),s.columns,s.frozen))}}function ree(t,i){if(1&t&&(g(0,iee,1,0,"ng-container",4),g(1,see,2,7,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ea(3,bf,e,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(e),"row"===o.dt.editMode&&o.dt.isRowEditing(e),o.frozen)),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function aee(t,i){if(1&t&&(we(0),g(1,ree,2,10,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function lee(t,i){1&t&&ze(0)}const Ak=function(t,i){return{$implicit:t,frozen:i}};function cee(t,i){if(1&t&&(we(0),g(1,lee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}function uee(t,i){1&t&&ze(0)}function dee(t,i){if(1&t&&(we(0),g(1,uee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}let yC=(()=>{class t{sortSource=new re;selectionSource=new re;contextMenuSource=new re;valueSource=new re;totalRecordsSource=new re;columnsSource=new re;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),xC=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new ge;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,n)=>n;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new ge;selectionChange=new ge;onRowSelect=new ge;onRowUnselect=new ge;onPage=new ge;onSort=new ge;onFilter=new ge;onLazyLoad=new ge;onRowExpand=new ge;onRowCollapse=new ge;onContextMenuSelect=new ge;onColResize=new ge;onColReorder=new ge;onRowReorder=new ge;onEditInit=new ge;onEditComplete=new ge;onEditCancel=new ge;onHeaderCheckboxToggle=new ge;sortFunction=new ge;firstChange=new ge;rowsChange=new ge;onStateSave=new ge;onStateRestore=new ge;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=$t();styleElement;responsiveStyleElement;window;constructor(e,n,o,s,r,a,l,c,u,p){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.config=p,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const n=e||this.processedData;if(n&&this.paginator){const o=this.lazy?0:this.first;return n.slice(o,o+this.rows)}return n}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(be.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(be.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let n=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let o=n.metaKey||n.ctrlKey,s=this.getSortMeta(e.field);s?o?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&n){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:n}):(this.value.sort((s,r)=>{let a=be.resolveFieldData(s,e),l=be.resolveFieldData(r,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):al?1:0,n*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let o={field:e,order:n};this.onSort.emit(o),this.tableService.onSort(o)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,o,s){const r=be.resolveFieldData(e,o[s].field),a=be.resolveFieldData(n,o[s].field);return 0===be.compare(r,a,this.filterLocale)?o.length-1>s?this.multisortField(e,n,o,s+1):0:this.compareValuesOnSort(r,a,o[s].order)}compareValuesOnSort(e,n,o){return be.sort(e,n,o,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let n=0;nb!=m),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row"})}else this.isSingleSelectionMode()?(this._selection=r,this.selectionChange.emit(r),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(p?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,r],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})):(this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let p=this.findIndexInSelection(r);this._selection=this.selection.filter((m,_)=>_!=p),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const n=e.rowData,o=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(n),r=this.dataKey?String(be.resolveFieldData(n,this.dataKey)):null;if(!s){if(!this.isRowSelectable(n,o))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),r&&(this.selectionKeys={},this.selectionKeys[r]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),r&&(this.selectionKeys[r]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let o,s;this.anchorRowIndex>n?(o=n,s=this.anchorRowIndex):this.anchorRowIndexr?(n=this.anchorRowIndex,o=this.rangeRowIndex):sm!=c);let u=this.dataKey?String(be.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[be.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length)for(let o=0;ol!=r),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const o=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let s=this.selectionPageOnly&&this._selection?this._selection.filter(r=>!o.some(a=>this.equals(r,a))):[];n&&(s=this.frozenValue?[...s,...this.frozenValue,...o]:[...s,...o],s=this.rowSelectable?s.filter((r,a)=>this.rowSelectable({data:r,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:be.equals(e,n,this.dataKey)}filter(e,n,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let n=0;nthis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let n of e)n.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let n,o="",s=this.columns;e&&e.selectionOnly?n=this.selection||[]:e&&e.allValues?n=this.value||[]:(n=this.filteredValue||this.value,this.frozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let l=0;l{o+="\n";for(let u=0;u{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(j.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===j.find(n,".ng-invalid.ng-dirty").length){let o=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[o]}}cancelRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let o=String(be.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[o]?(delete this.expandedRowKeys[o],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[o]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;j.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,o=this.resizeColumnElement.offsetWidth+e;if(o>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;o>15&&a>15&&this.resizeTableCells(o,a)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(o,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",j.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const n=j.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return j.find(n,"tr > th").forEach(s=>e.push(j.getOuterWidth(s))),e}onColumnDragStart(e,n){this.reorderIconWidth=j.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=j.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let o=j.getOffset(this.containerViewChild?.nativeElement),s=j.getOffset(n);if(this.draggedColumn!=n){j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),j.indexWithinGroup(n,"preorderablecolumn");let l=s.left-o.left,u=s.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-o.top+n.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,n){if(e.preventDefault(),this.draggedColumn){let o=j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=j.indexWithinGroup(n,"preorderablecolumn"),r=o!=s;if(r&&(s-o==1&&-1===this.dropPosition||o-s==1&&1===this.dropPosition)&&(r=!1),r&&so&&-1===this.dropPosition&&(s-=1),r&&(be.reorderArray(this.columns,o,s),this.onColReorder.emit({dragIndex:o,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement&&this.resizeColumnElement.isSameNode(this.draggedColumn)){let a="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();be.reorderArray(a,o+1,s+1),this.updateStyleElement(a,o,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,n){let o=j.index(this.resizeColumnElement),s="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(s,o,e,n)}updateStyleElement(e,n,o,s){this.destroyStyleElement(),this.createStyleElement();let r="";e.forEach((a,l)=>{let c=l===n?o:s&&l===n+1?s:a;r+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {\n width: ${c}px !important; max-width: ${c}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",r)}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,o){if(this.rowDragging&&this.draggedRowIndex!==n){let s=j.getOffset(o).top,r=e.pageY,a=s+j.getOuterHeight(o)/2,l=o.previousElementSibling;rthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;be.reorderArray(this.value,this.draggedRowIndex,o),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:o})}this.onRowDragLeave(e,n),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!ei(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const n=this.getStorage().getItem(this.stateKey),o=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let r=JSON.parse(n,function(r,a){return"string"==typeof a&&o.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=r.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=r.rows,this.rowsChange.emit(this.rows))),r.sortField&&(this.restoringSort=!0,this._sortField=r.sortField,this._sortOrder=r.sortOrder),r.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=r.multiSortMeta),r.filters&&(this.restoringFilter=!0,this.filters=r.filters),this.resizableColumns&&(this.columnWidthsState=r.columnWidths,this.tableWidthState=r.tableWidth),r.expandedRowKeys&&(this.expandedRowKeys=r.expandedRowKeys),r.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(r.selection)),this.stateRestored=!0,this.onStateRestore.emit(r)}}saveColumnWidths(e){let n=[];j.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(s=>n.push(j.getOuterWidth(s))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=j.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),be.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((o,s)=>{n+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {\n width: ${o}px !important; max-width: ${o}px !important\n }\n `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(o=>{n.push(o.field||o.key)}),e.columnOrder=n}}restoreColumnOrder(){const n=this.getStorage().getItem(this.stateKey);if(n){let s=JSON.parse(n).columnOrder;if(s){let r=[];s.map(a=>{let l=this.findColumnByKey(a);l&&r.push(l)}),this.columnOrderStateRestored=!0,this.columns=r}}}findColumnByKey(e){if(!this.columns)return null;for(let n of this.columns)if(n.key===e||n.field===e)return n}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){ei(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(bt),V(Tt),V(yC),V(Ft),V(df),V(Dr),V(Di))};static \u0275cmp=Oe({type:t,selectors:[["p-table"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(_X,5),je(IX,5),je(CX,5),je(vX,5),je(bX,5),je(yX,5),je(xX,5),je(AX,5),je(wX,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.resizeHelperViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorUpViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorDownViewChild=s.first),Se(s=Ee())&&(o.wrapperViewChild=s.first),Se(s=Ee())&&(o.tableViewChild=s.first),Se(s=Ee())&&(o.tableHeaderViewChild=s.first),Se(s=Ee())&&(o.tableFooterViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[yt([yC]),Hn],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],["role","rowgroup",1,"p-datatable-thead"],["thead",""],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,OX,3,2,"div",2),g(3,PX,2,1,"div",3),g(4,qX,5,23,"p-paginator",4),x(5,"div",5,6),g(7,YX,3,17,"p-scroller",7),g(8,eJ,2,7,"ng-container",8),g(9,lJ,10,28,"ng-template",null,9,In),A(),g(11,bJ,5,23,"p-paginator",10),g(12,xJ,2,1,"div",11),g(13,AJ,2,0,"div",12),g(14,EJ,4,2,"span",13),g(15,OJ,4,2,"span",14),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(16,LJ,o.rowHover||o.selectionMode,o.scrollable,o.scrollable&&"flex"===o.scrollHeight)),K("id",o.id),h(2),d("ngIf",o.loading&&o.showLoader),h(1),d("ngIf",o.captionTemplate),h(1),d("ngIf",o.paginator&&("top"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngStyle",He(20,PJ,o.virtualScroll?"":o.scrollHeight)),h(2),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.paginator&&("bottom"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngIf",o.summaryTemplate),h(1),d("ngIf",o.resizableColumns),h(1),d("ngIf",o.reorderableColumns),h(1),d("ngIf",o.reorderableColumns))},dependencies:function(){return[Ct,gt,on,Ht,NY,sn,Bu,CC,vC,_s,rte]},styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return t})(),rte=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,n,o,s){this.dt=e,this.tableService=n,this.cd=o,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o+1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}calculateRowGroupSize(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=s,a=0;for(;s===r;){a++;let l=e[++o];if(!l)break;r=be.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=j.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=j.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,n){return this.dt.virtualScroll&&(n=n||this.scrollerOptions)?n[e]:null}getRowIndex(e){const n=this.dt.paginator?this.dt.first+e:e,o=this.getScrollerOption("getItemOptions");return o?o(n).index:n}static \u0275fac=function(n){return new(n||t)(V(xC),V(yC),V(Ft),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:FJ,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(g(0,GJ,2,2,"ng-container",0),g(1,nee,2,2,"ng-container",0),g(2,aee,2,2,"ng-container",0),g(3,cee,2,5,"ng-container",0),g(4,dee,2,5,"ng-container",0)),2&n&&(d("ngIf",!o.dt.expandedRowTemplate),h(1),d("ngIf",o.dt.expandedRowTemplate&&!(o.frozen&&o.dt.frozenExpandedRowTemplate)),h(1),d("ngIf",o.dt.frozenExpandedRowTemplate&&o.frozen),h(1),d("ngIf",o.dt.loading),h(1),d("ngIf",o.dt.isEmpty()&&!o.dt.loading))},dependencies:[Jn,gt,on],encapsulation:2})}return t})(),ate=(()=>{class t{dt;data;pRowTogglerDisabled;constructor(e){this.dt=e}onClick(e){this.isEnabled()&&(this.dt.toggleRow(this.data,e),e.preventDefault())}isEnabled(){return!0!==this.pRowTogglerDisabled}static \u0275fac=function(n){return new(n||t)(V(xC))};static \u0275dir=ut({type:t,selectors:[["","pRowToggler",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("click",function(r){return o.onClick(r)})},inputs:{data:["pRowToggler","data"],pRowTogglerDisabled:"pRowTogglerDisabled"}})}return t})(),wk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,Zs,_f,uu,ki,Ik,uk,fC,fX,Mi,CC,vC,_s,Ck,bk,vk,yi,gX,mX,Qe,Mi]})}return t})(),Tk=(()=>{class t{el;pFocusTrapDisabled=!1;constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const n=j.getNextFocusableElement(this.el.nativeElement,e.shiftKey);n&&(n.focus(),n.select?.())}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.tab",function(r){return o.onkeydown(r)})("keydown.shift.tab",function(r){return o.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}})}return t})(),Sk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),AC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),wC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const lte=["titlebar"],cte=["content"],ute=["footer"];function dte(t,i){if(1&t){const e=De();x(0,"div",11),me("mousedown",function(o){return G(e),q(f(3).initResize(o))}),A()}}function pte(t,i){if(1&t&&(x(0,"span",18),Le(1),A()),2&t){const e=f(4);d("id",e.getAriaLabelledBy()),h(1),dt(e.header)}}function hte(t,i){1&t&&(x(0,"span",18),Kn(1,1),A()),2&t&&d("id",f(4).getAriaLabelledBy())}function fte(t,i){1&t&&ze(0)}function gte(t,i){if(1&t&&le(0,"span",22),2&t){const e=f(5);d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function mte(t,i){1&t&&le(0,"WindowMaximizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function _te(t,i){1&t&&le(0,"WindowMinimizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function Ite(t,i){if(1&t&&(we(0),g(1,mte,1,1,"WindowMaximizeIcon",23),g(2,_te,1,1,"WindowMinimizeIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.maximized&&!e.maximizeIconTemplate),h(1),d("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function Cte(t,i){}function vte(t,i){1&t&&g(0,Cte,0,0,"ng-template")}function bte(t,i){if(1&t&&(we(0),g(1,vte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.maximizeIconTemplate)}}function yte(t,i){}function xte(t,i){1&t&&g(0,yte,0,0,"ng-template")}function Ate(t,i){if(1&t&&(we(0),g(1,xte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.minimizeIconTemplate)}}const wte=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function Tte(t,i){if(1&t){const e=De();x(0,"button",19),me("click",function(){return G(e),q(f(4).maximize())})("keydown.enter",function(){return G(e),q(f(4).maximize())}),g(1,gte,1,1,"span",20),g(2,Ite,3,2,"ng-container",21),g(3,bte,2,1,"ng-container",21),g(4,Ate,2,1,"ng-container",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,wte)),h(1),d("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),h(1),d("ngIf",!e.maximizeIcon),h(1),d("ngIf",!e.maximized),h(1),d("ngIf",e.maximized)}}function Ste(t,i){1&t&&le(0,"span",27),2&t&&d("ngClass",f(6).closeIcon)}function Ete(t,i){1&t&&le(0,"TimesIcon",24),2&t&&d("styleClass","p-dialog-header-close-icon")}function Dte(t,i){if(1&t&&(we(0),g(1,Ste,1,1,"span",26),g(2,Ete,1,1,"TimesIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",e.closeIcon),h(1),d("ngIf",!e.closeIcon)}}function kte(t,i){}function Mte(t,i){1&t&&g(0,kte,0,0,"ng-template")}function Ote(t,i){if(1&t&&(x(0,"span"),g(1,Mte,1,0,null,9),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}const Lte=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function Pte(t,i){if(1&t){const e=De();x(0,"button",25),me("click",function(o){return G(e),q(f(4).close(o))})("keydown.enter",function(o){return G(e),q(f(4).close(o))}),g(1,Dte,3,2,"ng-container",21),g(2,Ote,2,1,"span",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,Lte)),K("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),h(1),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Fte(t,i){if(1&t){const e=De();x(0,"div",12,13),me("mousedown",function(o){return G(e),q(f(3).initDrag(o))}),g(2,pte,2,2,"span",14),g(3,hte,2,1,"span",14),g(4,fte,1,0,"ng-container",9),x(5,"div",15),g(6,Tte,5,6,"button",16),g(7,Pte,3,6,"button",17),A()()}if(2&t){const e=f(3);h(2),d("ngIf",!e.headerFacet&&!e.headerTemplate),h(1),d("ngIf",e.headerFacet),h(1),d("ngTemplateOutlet",e.headerTemplate),h(2),d("ngIf",e.maximizable),h(1),d("ngIf",e.closable)}}function Rte(t,i){1&t&&ze(0)}function Nte(t,i){1&t&&ze(0)}function Vte(t,i){if(1&t&&(x(0,"div",28,29),Kn(2,2),g(3,Nte,1,0,"ng-container",9),A()),2&t){const e=f(3);h(3),d("ngTemplateOutlet",e.footerTemplate)}}const Bte=function(t,i,e,n){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},Hte=function(t,i){return{transform:t,transition:i}},zte=function(t){return{value:"visible",params:t}};function jte(t,i){if(1&t){const e=De();x(0,"div",3,4),me("@animation.start",function(o){return G(e),q(f(2).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(2).onAnimationEnd(o))}),g(2,dte,1,0,"div",5),g(3,Fte,8,5,"div",6),x(4,"div",7,8),Kn(6),g(7,Rte,1,0,"ng-container",9),A(),g(8,Vte,4,1,"div",10),A()}if(2&t){const e=f(2);Ve(e.styleClass),d("ngClass",gr(16,Bte,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",He(24,zte,mt(21,Hte,e.transformOptions,e.transitionOptions))),K("aria-labelledby",e.ariaLabelledBy)("aria-modal",!0),h(2),d("ngIf",e.resizable),h(1),d("ngIf",e.showHeader),h(1),Ve(e.contentStyleClass),d("ngClass","p-dialog-content")("ngStyle",e.contentStyle),h(3),d("ngTemplateOutlet",e.contentTemplate),h(1),d("ngIf",e.footerFacet||e.footerTemplate)}}const Ute=function(t,i,e,n,o,s,r,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":o,"p-dialog-top-left":s,"p-dialog-top-right":r,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function $te(t,i){if(1&t&&(x(0,"div",1),g(1,jte,9,26,"div",2),A()),2&t){const e=f();Ve(e.maskStyleClass),d("ngClass",zp(4,Ute,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),h(1),d("ngIf",e.visible)}}const Kte=["*",[["p-header"]],[["p-footer"]]],Gte=["*","p-header","p-footer"],qte=Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}")]),Wte=Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Qte=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="-1";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onShow=new ge;onHide=new ge;visibleChange=new ge;onResizeInit=new ge;onResizeEnd=new ge;onDragEnd=new ge;onMaximize=new ge;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy;documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=$t();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.zone=r,this.cd=a,this.config=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return null!==this.header?$t()+"_header":null}focus(){let e=j.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&j.blockBodyScroll()}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&j.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?j.blockBodyScroll():j.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Wn.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(ei(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`\n @media screen and (max-width: ${n}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[n]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){j.hasClass(e.target,"p-dialog-header-icon")||j.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",j.addClass(this.document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let n=j.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==o||0===o?n[n.length-1].focus():n[o-1].focus():-1==o||o===n.length-1?n[0].focus():n[o+1].focus()}else n[0].focus()}}onDrag(e){if(this.dragging){const n=j.getOuterWidth(this.container),o=j.getOuterHeight(this.container),s=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=getComputedStyle(this.container),c=parseFloat(l.marginLeft),u=parseFloat(l.marginTop),p=a.left+s-c,m=a.top+r-u,_=j.getViewport();this.container.style.position="fixed",this.keepInViewport?(p>=this.minX&&p+n<_.width&&(this._style.left=`${p}px`,this.lastPageX=e.pageX,this.container.style.left=`${p}px`),m>=this.minY&&m+o<_.height&&(this._style.top=`${m}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${p}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,j.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getOuterHeight(this.contentViewChild?.nativeElement),l=s+n,c=r+o,u=this.container.style.minWidth,p=this.container.style.minHeight,m=this.container.getBoundingClientRect(),_=j.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=n,c+=o),(!u||l>parseInt(u))&&m.left+l<_.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!p||c>parseInt(p))&&m.top+c<_.height&&(this.contentViewChild.nativeElement.style.height=a+c-r+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",n=>{27==n.which&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):j.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&j.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&j.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(j.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&j.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft),V(Di))};static \u0275cmp=Oe({type:t,selectors:[["p-dialog"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(lte,5),je(cte,5),je(ute,5)),2&n){let s;Se(s=Ee())&&(o.headerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:Gte,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(n,o){1&n&&(Ti(Kte),g(0,$te,2,15,"div",0)),2&n&&d("ngIf",o.maskVisible)},dependencies:function(){return[Ct,gt,on,Ht,Tk,oo,mn,AC,wC]},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[Eh(qte)]),Ln("visible => void",[Eh(Wte)])])]},changeDetection:0})}return t})(),Ek=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Sk,dn,mn,AC,wC,Qe]})}return t})();function Zte(t,i){if(1&t&&(x(0,"div"),le(1,"app-activities-table",3),A()),2&t){const e=f();h(1),d("activities",e.activities)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("fieldsLinksArr",e.fieldsLinksArr)}}function Yte(t,i){if(1&t&&(x(0,"div"),le(1,"app-actions-table",4),A()),2&t){const e=f();h(1),d("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("activitySeq",e.activitySeq)}}function Xte(t,i){if(1&t&&(x(0,"div"),le(1,"app-table",5),A()),2&t){const e=f();h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)("statusFieldName","Status")}}function Jte(t,i){1&t&&(x(0,"div",6),le(1,"div",7),A())}let Dk=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this.globalVarService=o,this._userDataManagerService=s,this.tableExpenderType1=Er}ngOnInit(){if(this.tableExpenderType==Er.BusinessFlowsActivities)this.totalactivitiesCount=0,this.RunsetJson=this._userDataManagerService.getItemCache(),this.CollectBfActivitiesData(this.entity);else if(this.tableExpenderType==Er.ActivitiesActions){const e=this.entity.Seq;this.activitySeq=e,this.actions=this.entity.ActionsColl,this.routerLinkEntityPath=e+"/",this.fieldsLinksArr=[{field:"Name",link:this.routerLinkEntityPath,param:"Seq"}]}else this.tableExpenderType==Er.OutputValidation&&(this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}],this.outputValuesData=this.getOutputValues(this.entity.OutputValues))}checkIfLastRun(e){return e===this.totalactivitiesCount}CollectBfActivitiesData(e){this.hideRepoLoader=!0;let n=0;e.ActivitiesGroupsColl.forEach(s=>{this.totalactivitiesCount=this.totalactivitiesCount+s.ExecutedActivitiesGUID.length});const o=this.globalVarService.totalRecPerActivityPull;e.NumberOfActivities=0,e.ActivitiesGroupsColl.forEach(s=>{let r=0;e.ActivitiesColl=[];const a={};a.ExecutionId=this.RunsetJson.ExecutionId,a.ParentId=s.GUID,a.From=r*o,a.Take=o,a.IsLoadActions=!1,this.restServiceObj.GetActivitiesByParent(a).subscribe(l=>{r++;const c=JSON.parse(l.response),u=c.TotalRec;for(e.NumberOfActivities+=u,e.ActivitiesColl.push(...c.ResponseColl),n+=c.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1);r*o{if(m.isSuccsess){const _=JSON.parse(m.response);e.ActivitiesColl.push(..._.ResponseColl),n+=_.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1)}})}})})}orderActivites(){this.entity.ActivitiesColl=this.entity.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}InitActivitieData(){if(null!=this.entity&&null!=this.entity.ActivitiesColl){this.orderActivites();var e=this.entity;const n=e.Seq;this.activities=e.ActivitiesColl;for(let o of e.ActivitiesColl)o.NumberOfActions=o.ActionsColl.length;this.fieldsLinksArr=[{field:"Name",link:n+"/",param:"Seq"},{field:"ActivityGroupName",link:n+"/ag/ag/",param:"ActivityGroupName"}]}}getOutputValues(e){let n=[];for(let o of e){let s=o.split("_:_"),r=new $D;r.ParameterName=s[0],r.ActualValue=s[1],r.ExpectedValue=s[2],r.Status=s[3],n.push(r)}return n}getActivityGroupName(e){for(let n of this.entity.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table-expended-section"]],inputs:{tableExpenderType:"tableExpenderType",entity:"entity"},decls:5,vars:5,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[3,"activities","addExpender","tableExpenderType","fieldsLinksArr"],[3,"addExpender","tableExpenderType","actions","fieldsLinksArr","activitySeq"],[3,"cols","data","statusFieldName"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zte,2,4,"div",1),g(2,Yte,2,5,"div",1),g(3,Xte,2,3,"div",1),A(),g(4,Jte,2,0,"div",2)),2&n&&(d("ngSwitch",o.tableExpenderType),h(1),d("ngSwitchCase",o.tableExpenderType1.BusinessFlowsActivities),h(1),d("ngSwitchCase",o.tableExpenderType1.ActivitiesActions),h(1),d("ngSwitchCase",o.tableExpenderType1.OutputValidation),h(1),d("ngIf",o.hideRepoLoader))}})}return t})();const ene=["mask"],tne=["container"],nne=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ine=function(t){return{value:"visible",params:t}};function one(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",7),me("@animation.start",function(o){return G(e),q(f(3).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(3).onAnimationEnd(o))})("maskHide",function(){return G(e),q(f(3).onMaskHide())})("activeItemChange",function(o){return G(e),q(f(3).onActiveItemChange(o))}),A()}if(2&t){const e=f(3);d("@animation",He(8,ine,mt(5,nne,e.showTransitionOptions,e.hideTransitionOptions)))("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)("ngStyle",e.containerStyle)}}const sne=function(t){return{"p-galleria-mask p-component-overlay p-component-overlay-enter":!0,"p-galleria-visible":t}};function rne(t,i){if(1&t&&(x(0,"div",4,5),g(2,one,1,10,"p-galleriaContent",6),A()),2&t){const e=f(2);Ve(e.maskClass),d("ngClass",He(6,sne,e.visible)),K("role",e.fullScreen?"dialog":"region")("aria-modal",e.fullScreen?"true":void 0),h(2),d("ngIf",e.visible)}}function ane(t,i){if(1&t&&(x(0,"div",null,2),g(2,rne,3,8,"div",3),A()),2&t){const e=f();h(2),d("ngIf",e.maskVisible)}}function lne(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",8),me("activeItemChange",function(o){return G(e),q(f().onActiveItemChange(o))}),A()}if(2&t){const e=f();d("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)}}const cne=["closeButton"];function une(t,i){1&t&&le(0,"TimesIcon",11),2&t&&d("styleClass","p-galleria-close-icon")}function dne(t,i){}function pne(t,i){1&t&&g(0,dne,0,0,"ng-template")}function hne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(){return G(e),q(f(2).maskHide.emit())}),g(1,une,1,1,"TimesIcon",9),g(2,pne,1,0,null,10),A()}if(2&t){const e=f(2);K("aria-label",e.closeAriaLabel())("data-pc-section","closebutton"),h(1),d("ngIf",!e.galleria.closeIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.closeIconTemplate)}}function fne(t,i){if(1&t&&(x(0,"div",12),le(1,"p-galleriaItemSlot",13),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}function gne(t,i){if(1&t){const e=De();x(0,"p-galleriaThumbnails",14),me("onActiveIndexChange",function(o){return G(e),q(f(2).onActiveIndexChange(o))})("stopSlideShow",function(){return G(e),q(f(2).stopSlideShow())}),A()}if(2&t){const e=f(2);d("containerId",e.id)("value",e.value)("activeIndex",e.activeIndex)("templates",e.galleria.templates)("numVisible",e.numVisible)("responsiveOptions",e.galleria.responsiveOptions)("circular",e.galleria.circular)("isVertical",e.isVertical())("contentHeight",e.galleria.verticalThumbnailViewPortHeight)("showThumbnailNavigators",e.galleria.showThumbnailNavigators)("slideShowActive",e.slideShowActive)}}function mne(t,i){if(1&t&&(x(0,"div",15),le(1,"p-galleriaItemSlot",16),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}const _ne=function(t,i,e){return{"p-galleria p-component":!0,"p-galleria-fullscreen":t,"p-galleria-indicator-onitem":i,"p-galleria-item-nav-onhover":e}},Ine=function(){return{}};function Cne(t,i){if(1&t){const e=De();x(0,"div",1),g(1,hne,3,4,"button",2),g(2,fne,2,1,"div",3),x(3,"div",4)(4,"p-galleriaItem",5),me("onActiveIndexChange",function(o){return G(e),q(f().onActiveIndexChange(o))})("startSlideShow",function(){return G(e),q(f().startSlideShow())})("stopSlideShow",function(){return G(e),q(f().stopSlideShow())}),A(),g(5,gne,1,11,"p-galleriaThumbnails",6),A(),g(6,mne,2,1,"div",7),A()}if(2&t){const e=f();Ve(e.galleriaClass()),d("ngClass",Rn(22,_ne,e.galleria.fullScreen,e.galleria.showIndicatorsOnItem,e.galleria.showItemNavigatorsOnHover&&!e.galleria.fullScreen))("ngStyle",e.galleria.fullScreen?Jt(26,Ine):e.galleria.containerStyle),K("id",e.id),h(1),d("ngIf",e.galleria.fullScreen),h(1),d("ngIf",e.galleria.templates&&e.galleria.headerFacet),h(1),K("aria-live",e.galleria.autoPlay?"polite":"off"),h(1),d("id",e.id)("value",e.value)("activeIndex",e.activeIndex)("circular",e.galleria.circular)("templates",e.galleria.templates)("showIndicators",e.galleria.showIndicators)("changeItemOnIndicatorHover",e.galleria.changeItemOnIndicatorHover)("indicatorFacet",e.galleria.indicatorFacet)("captionFacet",e.galleria.captionFacet)("showItemNavigators",e.galleria.showItemNavigators)("autoPlay",e.galleria.autoPlay)("slideShowActive",e.slideShowActive),h(1),d("ngIf",e.galleria.showThumbnails),h(1),d("ngIf",e.galleria.templates&&e.galleria.footerFacet)}}function vne(t,i){1&t&&ze(0)}function bne(t,i){if(1&t&&(we(0),g(1,vne,1,0,"ng-container",1),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",e.context)}}function yne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-item-prev-icon")}function xne(t,i){}function Ane(t,i){1&t&&g(0,xne,0,0,"ng-template")}const wne=function(t){return{"p-galleria-item-prev p-galleria-item-nav p-link":!0,"p-disabled":t}};function Tne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,yne,1,1,"ChevronLeftIcon",9),g(2,Ane,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,wne,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),h(1),d("ngIf",!e.galleria.itemPreviousIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemPreviousIconTemplate)}}function Sne(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&d("styleClass","p-galleria-item-next-icon")}function Ene(t,i){}function Dne(t,i){1&t&&g(0,Ene,0,0,"ng-template")}const kne=function(t){return{"p-galleria-item-next p-galleria-item-nav p-link":!0,"p-disabled":t}};function Mne(t,i){if(1&t){const e=De();x(0,"button",12),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Sne,1,1,"ChevronRightIcon",9),g(2,Dne,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,kne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),h(1),d("ngIf",!e.galleria.itemNextIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemNextIconTemplate)}}function One(t,i){if(1&t&&(x(0,"div",13),le(1,"p-galleriaItemSlot",14),A()),2&t){const e=f();h(1),d("item",e.activeItem)("templates",e.templates)}}function Lne(t,i){1&t&&le(0,"button",20)}const Pne=function(t){return{"p-galleria-indicator":!0,"p-highlight":t}};function Fne(t,i){if(1&t){const e=De();x(0,"li",17),me("click",function(){const s=G(e).index;return q(f(2).onIndicatorClick(s))})("mouseenter",function(){const s=G(e).index;return q(f(2).onIndicatorMouseEnter(s))})("keydown",function(o){const r=G(e).index;return q(f(2).onIndicatorKeyDown(o,r))}),g(1,Lne,1,0,"button",18),le(2,"p-galleriaItemSlot",19),A()}if(2&t){const e=i.index,n=f(2);d("ngClass",He(7,Pne,n.isIndicatorItemActive(e))),K("aria-label",n.ariaPageLabel(e+1))("aria-selected",n.activeIndex===e)("aria-controls",n.id+"_item_"+e),h(1),d("ngIf",!n.indicatorFacet),h(1),d("index",e)("templates",n.templates)}}function Rne(t,i){if(1&t&&(x(0,"ul",15),g(1,Fne,3,9,"li",16),A()),2&t){const e=f();h(1),d("ngForOf",e.value)}}const Nne=["itemsContainer"];function Vne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Bne(t,i){1&t&&le(0,"ChevronUpIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Hne(t,i){if(1&t&&(we(0),g(1,Vne,1,1,"ChevronLeftIcon",10),g(2,Bne,1,1,"ChevronUpIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function zne(t,i){}function jne(t,i){1&t&&g(0,zne,0,0,"ng-template")}const Une=function(t){return{"p-galleria-thumbnail-prev p-link":!0,"p-disabled":t}};function $ne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,Hne,3,2,"ng-container",8),g(2,jne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Une,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),K("aria-label",e.ariaPrevButtonLabel()),h(1),d("ngIf",!e.galleria.previousThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.previousThumbnailIconTemplate)}}const Kne=function(t,i,e,n){return{"p-galleria-thumbnail-item":!0,"p-galleria-thumbnail-item-current":t,"p-galleria-thumbnail-item-active":i,"p-galleria-thumbnail-item-start":e,"p-galleria-thumbnail-item-end":n}};function Gne(t,i){if(1&t){const e=De();x(0,"div",12),me("keydown",function(o){const r=G(e).index;return q(f().onThumbnailKeydown(o,r))}),x(1,"div",13),me("click",function(){const s=G(e).index;return q(f().onItemClick(s))})("touchend",function(){const s=G(e).index;return q(f().onItemClick(s))})("keydown.enter",function(){const s=G(e).index;return q(f().onItemClick(s))}),le(2,"p-galleriaItemSlot",14),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",gr(10,Kne,o.activeIndex===n,o.isItemActive(n),o.firstItemAciveIndex()===n,o.lastItemActiveIndex()===n)),K("aria-selected",o.activeIndex===n)("aria-controls",o.containerId+"_item_"+n)("data-pc-section","thumbnailitem")("data-p-active",o.activeIndex===n),h(1),K("tabindex",o.activeIndex===n?0:-1)("aria-current",o.activeIndex===n?"page":void 0)("aria-label",o.ariaPageLabel(n+1)),h(1),d("item",e)("templates",o.templates)}}function qne(t,i){1&t&&le(0,"ChevronRightIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Wne(t,i){1&t&&le(0,"ChevronDownIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Qne(t,i){if(1&t&&(we(0),g(1,qne,1,1,"ChevronRightIcon",15),g(2,Wne,1,1,"ChevronDownIcon",15),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function Zne(t,i){}function Yne(t,i){1&t&&g(0,Zne,0,0,"ng-template")}const Xne=function(t){return{"p-galleria-thumbnail-next p-link":!0,"p-disabled":t}};function Jne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Qne,3,2,"ng-container",8),g(2,Yne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Xne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),K("aria-label",e.ariaNextButtonLabel()),h(1),d("ngIf",!e.galleria.nextThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.nextThumbnailIconTemplate)}}const eie=function(t){return{height:t}};let yf=(()=>{class t{document;platformId;element;cd;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}fullScreen=!1;id;value;numVisible=3;responsiveOptions;showItemNavigators=!1;showThumbnailNavigators=!0;showItemNavigatorsOnHover=!1;changeItemOnIndicatorHover=!1;circular=!1;autoPlay=!1;shouldStopAutoplayByClick=!0;transitionInterval=4e3;showThumbnails=!0;thumbnailsPosition="bottom";verticalThumbnailViewPortHeight="300px";showIndicators=!1;showIndicatorsOnItem=!1;indicatorsPosition="bottom";baseZIndex=0;maskClass;containerClass;containerStyle;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}activeIndexChange=new ge;visibleChange=new ge;mask;container;templates;_visible=!1;_activeIndex=0;headerFacet;footerFacet;indicatorFacet;captionFacet;closeIconTemplate;previousThumbnailIconTemplate;nextThumbnailIconTemplate;itemPreviousIconTemplate;itemNextIconTemplate;maskVisible=!1;constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.element=o,this.cd=s,this.config=r}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerFacet=e.template;break;case"footer":this.footerFacet=e.template;break;case"indicator":this.indicatorFacet=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"itemnexticon":this.itemNextIconTemplate=e.template;break;case"itempreviousicon":this.itemPreviousIconTemplate=e.template;break;case"previousthumbnailicon":this.previousThumbnailIconTemplate=e.template;break;case"nextthumbnailicon":this.nextThumbnailIconTemplate=e.template;break;case"caption":this.captionFacet=e.template}})}ngOnChanges(e){e.value&&e.value.currentValue?.length{j.focus(j.findSingle(this.container.nativeElement,'[data-pc-section="closebutton"]'))},25);break;case"void":j.addClass(this.mask?.nativeElement,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&this.disableModality()}enableModality(){j.blockBodyScroll(),this.cd.markForCheck(),this.mask&&Wn.set("modal",this.mask.nativeElement,this.baseZIndex||this.config.zIndex.modal)}disableModality(){j.unblockBodyScroll(),this.maskVisible=!1,this.cd.markForCheck(),this.mask&&Wn.clear(this.mask.nativeElement)}ngOnDestroy(){this.fullScreen&&j.removeClass(this.document.body,"p-overflow-hidden"),this.mask&&this.disableModality()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(Ft),V(Di))};static \u0275cmp=Oe({type:t,selectors:[["p-galleria"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ene,5),je(tne,5)),2&n){let s;Se(s=Ee())&&(o.mask=s.first),Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{activeIndex:"activeIndex",fullScreen:"fullScreen",id:"id",value:"value",numVisible:"numVisible",responsiveOptions:"responsiveOptions",showItemNavigators:"showItemNavigators",showThumbnailNavigators:"showThumbnailNavigators",showItemNavigatorsOnHover:"showItemNavigatorsOnHover",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",circular:"circular",autoPlay:"autoPlay",shouldStopAutoplayByClick:"shouldStopAutoplayByClick",transitionInterval:"transitionInterval",showThumbnails:"showThumbnails",thumbnailsPosition:"thumbnailsPosition",verticalThumbnailViewPortHeight:"verticalThumbnailViewPortHeight",showIndicators:"showIndicators",showIndicatorsOnItem:"showIndicatorsOnItem",indicatorsPosition:"indicatorsPosition",baseZIndex:"baseZIndex",maskClass:"maskClass",containerClass:"containerClass",containerStyle:"containerStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",visible:"visible"},outputs:{activeIndexChange:"activeIndexChange",visibleChange:"visibleChange"},features:[Hn],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["windowed",""],["container",""],[3,"ngClass","class",4,"ngIf"],[3,"ngClass"],["mask",""],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange",4,"ngIf"],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange"],[3,"value","activeIndex","numVisible","activeItemChange"]],template:function(n,o){if(1&n&&(g(0,ane,3,1,"div",0),g(1,lne,1,3,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",o.fullScreen)("ngIfElse",s)}},dependencies:function(){return[Ct,gt,Ht,tie]},styles:["@layer primeng{.p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[en({transform:"scale(0.7)",opacity:0}),On("{{showTransitionParams}}")]),Ln("visible => void",[On("{{hideTransitionParams}}",en({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),tie=(()=>{class t{galleria;cd;differs;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}value=[];numVisible;maskHide=new ge;activeItemChange=new ge;closeButton;id;_activeIndex=0;slideShowActive=!0;interval;styleClass;differ;constructor(e,n,o,s){this.galleria=e,this.cd=n,this.differs=o,this.config=s,this.id=this.galleria.id||$t(),this.differ=this.differs.find(this.galleria).create()}ngDoCheck(){const e=this.differ.diff(this.galleria);e&&e.forEachItem.length>0&&this.cd.markForCheck()}galleriaClass(){const e=this.galleria.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.galleria.thumbnailsPosition),n=this.galleria.showIndicators&&this.getPositionClass("p-galleria-indicators",this.galleria.indicatorsPosition);return(this.galleria.containerClass?this.galleria.containerClass+" ":"")+(e?e+" ":"")+(n?n+" ":"")}startSlideShow(){ei(this.galleria.platformId)&&(this.interval=setInterval(()=>{let e=this.galleria.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1;this.onActiveIndexChange(e),this.activeIndex=e},this.galleria.transitionInterval),this.slideShowActive=!0)}stopSlideShow(){this.galleria.autoPlay&&!this.galleria.shouldStopAutoplayByClick||(this.interval&&clearInterval(this.interval),this.slideShowActive=!1)}getPositionClass(e,n){const s=["top","left","bottom","right"].find(r=>r===n);return s?`${e}-${s}`:""}isVertical(){return"left"===this.galleria.thumbnailsPosition||"right"===this.galleria.thumbnailsPosition}onActiveIndexChange(e){this.activeIndex!==e&&(this.activeIndex=e,this.activeItemChange.emit(this.activeIndex))}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Ft),V(yl),V(Di))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaContent"]],viewQuery:function(n,o){if(1&n&&je(cne,5),2&n){let s;Se(s=Ee())&&(o.closeButton=s.first)}},inputs:{activeIndex:"activeIndex",value:"value",numVisible:"numVisible"},outputs:{maskHide:"maskHide",activeItemChange:"activeItemChange"},decls:1,vars:1,consts:[["pFocusTrap","",3,"ngClass","ngStyle","class",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle"],["type","button","class","p-galleria-close p-link","pRipple","",3,"click",4,"ngIf"],["class","p-galleria-header",4,"ngIf"],[1,"p-galleria-content"],[3,"id","value","activeIndex","circular","templates","showIndicators","changeItemOnIndicatorHover","indicatorFacet","captionFacet","showItemNavigators","autoPlay","slideShowActive","onActiveIndexChange","startSlideShow","stopSlideShow"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow",4,"ngIf"],["class","p-galleria-footer",4,"ngIf"],["type","button","pRipple","",1,"p-galleria-close","p-link",3,"click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-galleria-header"],["type","header",3,"templates"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow"],[1,"p-galleria-footer"],["type","footer",3,"templates"]],template:function(n,o){1&n&&g(0,Cne,7,27,"div",0),2&n&&d("ngIf",o.value&&o.value.length>0)},dependencies:function(){return[Ct,gt,on,Ht,oo,mn,Tk,TC,nie,iie]},encapsulation:2,changeDetection:0})}return t})(),TC=(()=>{class t{templates;index;get item(){return this._item}set item(e){this._item=e,this.templates&&this.templates.forEach(n=>{if(n.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=n.template}})}type;contentTemplate;context;_item;ngAfterContentInit(){this.templates?.forEach(e=>{if(e.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=e.template;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=e.template;break;default:this.context={},this.contentTemplate=e.template}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItemSlot"]],inputs:{templates:"templates",index:"index",item:"item",type:"type"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&g(0,bne,2,2,"ng-container",0),2&n&&d("ngIf",o.contentTemplate)},dependencies:[gt,on],encapsulation:2,changeDetection:0})}return t})(),nie=(()=>{class t{galleria;id;circular=!1;value;showItemNavigators=!1;showIndicators=!0;slideShowActive=!0;changeItemOnIndicatorHover=!0;autoPlay=!1;templates;indicatorFacet;captionFacet;startSlideShow=new ge;stopSlideShow=new ge;onActiveIndexChange=new ge;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}get activeItem(){return this.value&&this.value[this._activeIndex]}_activeIndex=0;constructor(e){this.galleria=e}ngOnChanges({autoPlay:e}){e?.currentValue&&this.startSlideShow.emit(),e&&!1===e.currentValue&&this.stopTheSlideShow()}next(){this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1)}prev(){this.onActiveIndexChange.emit(this.circular&&0===this.activeIndex?this.value.length-1:0!==this.activeIndex?this.activeIndex-1:0)}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}navForward(e){this.stopTheSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()}navBackward(e){this.stopTheSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()}onIndicatorClick(e){this.stopTheSlideShow(),this.onActiveIndexChange.emit(e)}onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopTheSlideShow(),this.onActiveIndexChange.emit(e))}onIndicatorKeyDown(e,n){switch(e.code){case"Enter":case"Space":this.stopTheSlideShow(),this.onActiveIndexChange.emit(n),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1}isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex}isIndicatorItemActive(e){return this.activeIndex===e}ariaSlideLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slide:void 0}ariaSlideNumber(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItem"]],inputs:{id:"id",circular:"circular",value:"value",showItemNavigators:"showItemNavigators",showIndicators:"showIndicators",slideShowActive:"slideShowActive",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",autoPlay:"autoPlay",templates:"templates",indicatorFacet:"indicatorFacet",captionFacet:"captionFacet",activeIndex:"activeIndex"},outputs:{startSlideShow:"startSlideShow",stopSlideShow:"stopSlideShow",onActiveIndexChange:"onActiveIndexChange"},features:[Hn],decls:8,vars:11,consts:[[1,"p-galleria-item-wrapper"],[1,"p-galleria-item-container"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],["role","group",3,"id"],["type","item",1,"p-galleria-item",3,"item","templates"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click",4,"ngIf"],["class","p-galleria-caption",4,"ngIf"],["class","p-galleria-indicators p-reset",4,"ngIf"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click"],[1,"p-galleria-caption"],["type","caption",3,"item","templates"],[1,"p-galleria-indicators","p-reset"],["tabindex","0",3,"ngClass","click","mouseenter","keydown",4,"ngFor","ngForOf"],["tabindex","0",3,"ngClass","click","mouseenter","keydown"],["type","button","tabIndex","-1","class","p-link",4,"ngIf"],["type","indicator",3,"index","templates"],["type","button","tabIndex","-1",1,"p-link"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,Tne,3,6,"button",2),x(3,"div",3),le(4,"p-galleriaItemSlot",4),A(),g(5,Mne,3,6,"button",5),g(6,One,2,2,"div",6),A(),g(7,Rne,2,1,"ul",7),A()),2&n&&(h(2),d("ngIf",o.showItemNavigators),h(1),fo("width","100%"),d("id",o.id+"_item_"+o.activeIndex),K("aria-label",o.ariaSlideNumber(o.activeIndex+1))("aria-roledescription",o.ariaSlideLabel()),h(1),d("item",o.activeItem)("templates",o.templates),h(1),d("ngIf",o.showItemNavigators),h(1),d("ngIf",o.captionFacet),h(1),d("ngIf",o.showIndicators))},dependencies:function(){return[Ct,Jn,gt,on,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),iie=(()=>{class t{galleria;document;platformId;renderer;cd;containerId;value;isVertical=!1;slideShowActive=!1;circular=!1;responsiveOptions;contentHeight="300px";showThumbnailNavigators=!0;templates;onActiveIndexChange=new ge;stopSlideShow=new ge;itemsContainer;get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e,this._oldNumVisible=this.d_numVisible,this.d_numVisible=e}get activeIndex(){return this._activeIndex}set activeIndex(e){this._oldactiveIndex=this._activeIndex,this._activeIndex=e}index;startPos=null;thumbnailsStyle=null;sortedResponsiveOptions=null;totalShiftedItems=0;page=0;documentResizeListener;_numVisible=0;d_numVisible=0;_oldNumVisible=0;_activeIndex=0;_oldactiveIndex=0;constructor(e,n,o,s,r){this.galleria=e,this.document=n,this.platformId=o,this.renderer=s,this.cd=r}ngOnInit(){this.createStyle(),this.responsiveOptions&&this.bindDocumentListeners()}ngAfterContentChecked(){let e=this.totalShiftedItems;(this._oldNumVisible!==this.d_numVisible||this._oldactiveIndex!==this._activeIndex)&&this.itemsContainer&&(e=this._activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex(){const s=n.breakpoint,r=o.breakpoint;let a=null;return a=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof s&&"string"==typeof r?s.localeCompare(r,void 0,{numeric:!0}):sr?1:0,-1*a});for(let n=0;n=e&&(n=s)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible,this.cd.markForCheck())}}getTabIndex(e){return this.isItemActive(e)?0:null}navForward(e){this.stopTheSlideShow();let n=this._activeIndex+1;n+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItemsthis.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1),this.onActiveIndexChange.emit(this.circular&&0===this._activeIndex?this.value.length-1:n),e.cancelable&&e.preventDefault()}onItemClick(e){this.stopTheSlideShow();let n=e;if(n!==this._activeIndex){const o=n+this.totalShiftedItems;let s=0;n0&&-1*this.totalShiftedItems!=0&&this.step(s)):(s=this.getMedianItemIndex()-o,s<0&&-1*this.totalShiftedItems!0===j.getAttribute(r,"data-p-active")),o=j.findSingle(this.itemsContainer.nativeElement,'[tabindex="0"]'),s=e.findIndex(r=>r===o.parentElement);e[s].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"}findFocusedIndicatorIndex(){const e=[...j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]')],n=j.findSingle(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(o=>o===n.parentElement)}changedFocusedIndicator(e,n){const o=j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]');o[e].children[0].tabIndex="-1",o[n].children[0].tabIndex="0",o[n].children[0].focus()}step(e){let n=this.totalShiftedItems+e;e<0&&-1*n+this.d_numVisible>this.value.length-1?n=this.d_numVisible-this.value.length:e>0&&n>0&&(n=0),this.circular&&(e<0&&this.value.length-1===this._activeIndex?n=0:e>0&&0===this._activeIndex&&(n=this.d_numVisible-this.value.length)),this.itemsContainer&&(j.removeClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${n*(100/this.d_numVisible)}%, 0)`:`translate3d(${n*(100/this.d_numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=n}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}changePageOnTouch(e,n){n<0?this.navForward(e):this.navBackward(e)}getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0}getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1}onTransitionEnd(){this.itemsContainer&&this.itemsContainer.nativeElement&&(j.addClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="")}onTouchEnd(e){let n=e.changedTouches[0];this.changePageOnTouch(e,this.isVertical?n.pageY-this.startPos.y:n.pageX-this.startPos.x)}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchStart(e){let n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}}isNavBackwardDisabled(){return!this.circular&&0===this._activeIndex||this.value.length<=this.d_numVisible}isNavForwardDisabled(){return!this.circular&&this._activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}firstItemAciveIndex(){return-1*this.totalShiftedItems}lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1}isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e}bindDocumentListeners(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView||"window","resize",()=>{this.calculatePosition()}))}unbindDocumentListeners(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle)}ariaPrevButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.prevPageLabel:void 0}ariaNextButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.nextPageLabel:void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Wt),V($n),V(hn),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaThumbnails"]],viewQuery:function(n,o){if(1&n&&je(Nne,5),2&n){let s;Se(s=Ee())&&(o.itemsContainer=s.first)}},inputs:{containerId:"containerId",value:"value",isVertical:"isVertical",slideShowActive:"slideShowActive",circular:"circular",responsiveOptions:"responsiveOptions",contentHeight:"contentHeight",showThumbnailNavigators:"showThumbnailNavigators",templates:"templates",numVisible:"numVisible",activeIndex:"activeIndex"},outputs:{onActiveIndexChange:"onActiveIndexChange",stopSlideShow:"stopSlideShow"},decls:8,vars:6,consts:[[1,"p-galleria-thumbnail-wrapper"],[1,"p-galleria-thumbnail-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-galleria-thumbnail-items-container",3,"ngStyle"],["role","tablist",1,"p-galleria-thumbnail-items",3,"transitionend","touchstart","touchmove"],["itemsContainer",""],[3,"ngClass","keydown",4,"ngFor","ngForOf"],["type","button","pRipple","",3,"ngClass","disabled","click"],[4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"ngClass","keydown"],[1,"p-galleria-thumbnail-item-content",3,"click","touchend","keydown.enter"],["type","thumbnail",3,"item","templates"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,$ne,3,7,"button",2),x(3,"div",3)(4,"div",4,5),me("transitionend",function(){return o.onTransitionEnd()})("touchstart",function(r){return o.onTouchStart(r)})("touchmove",function(r){return o.onTouchMove(r)}),g(6,Gne,3,15,"div",6),A()(),g(7,Jne,3,7,"button",2),A()()),2&n&&(h(2),d("ngIf",o.showThumbnailNavigators),h(1),d("ngStyle",He(4,eie,o.isVertical?o.contentHeight:"")),h(3),d("ngForOf",o.value),h(1),d("ngIf",o.showThumbnailNavigators))},dependencies:function(){return[Ct,Jn,gt,on,Ht,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),kk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,mn,Qi,Mr,AC,wC,Sk,Xe,Qe]})}return t})();const oie=["galleria"],sie=function(t){return{width:t}};function rie(t,i){if(1&t&&le(0,"img",7),2&t){const e=i.$implicit,n=f(2);d("src",e.itemImageSrc,Ls)("ngStyle",He(2,sie,n.fullscreen?"":"100%"))}}function aie(t,i){if(1&t&&(x(0,"div"),le(1,"img",8),A()),2&t){const e=i.$implicit;y_("grid grid-nogutter justify-content-center ",e.title,""),h(1),d("src",e.thumbnailImageSrc,Ls)}}function lie(t,i){if(1&t&&(x(0,"span",13)(1,"span"),Le(2),A(),x(3,"span"),Le(4),A(),le(5,"span"),A()),2&t){const e=f(4);h(2),Fp("",e.activeIndex+1,"/",e.images.length,""),h(2),dt(e.images[e.activeIndex].alt),h(1),y_("title ",e.getStatusWithIcon(e.images[e.activeIndex].title),"")}}function cie(t,i){if(1&t){const e=De();x(0,"div",10),g(1,lie,6,6,"span",11),x(2,"button",12),me("click",function(){return G(e),q(f(3).toggleFullScreen())}),A()()}if(2&t){const e=f(3);h(1),d("ngIf",e.images),h(1),Ve(e.fullScreenIcon())}}function uie(t,i){1&t&&g(0,cie,3,4,"ng-template",9)}const die=function(t,i){return{footerMargin:t,smallThumbnail:i}},pie=function(){return{"max-width":"100%"}};function hie(t,i){if(1&t){const e=De();x(0,"div",1)(1,"p-galleria",2,3),me("valueChange",function(o){return G(e),q(f().images=o)})("activeIndexChange",function(o){return G(e),q(f().activeIndex=o)}),g(3,rie,1,4,"ng-template",4),g(4,aie,2,4,"ng-template",5),g(5,uie,1,0,null,6),A()()}if(2&t){const e=f();d("ngClass",mt(14,die,e.showFooter,!e.showFooter)),h(1),d("value",e.images)("activeIndex",e.activeIndex)("numVisible",10)("showThumbnails",e.showThumbnails)("showItemNavigators",!1)("showItemNavigatorsOnHover",!1)("circular",!0)("autoPlay",!1)("transitionInterval",3e3)("containerStyle",Jt(17,pie))("containerClass",e.galleriaClass())("thumbnailsPosition",e.top),h(4),d("ngIf",e.showFooter)}}let SC=(()=>{class t{constructor(e,n,o,s,r,a){this.globalVarService=e,this._userDataManagerService=n,this.route=o,this.calculatedDataService=s,this.communicatorService=r,this.cd=a,this.isScreenshotVisibleEvent=new ge,this.showFooter=!0,this.autoplaychecked=!1,this.fullscreen=!1,this.activeIndex=0,this.position="left",this.responsiveOptions=[{breakpoint:"1024px",numVisible:5},{breakpoint:"768px",numVisible:3},{breakpoint:"560px",numVisible:1}]}ngOnInit(){this.showThumbnails=this._thumbnails,this.route.params.subscribe(e=>{this.paramChanged(),this.bindDocumentListeners()}),this.communicatorService.onBfActivitiesDataChange.subscribe(e=>{"Last Loading Data"===e&&(this.paramChanged(),this.bindDocumentListeners())})}handleChange(e){this.bindDocumentListeners()}setThumbnails(){}paramChanged(){"action"==this.EntityType?this.setScurrentAction():("businessflow"==this.EntityType||"activity"==this.EntityType)&&this.setAllActions(),this.images=[];for(const e of this.actions)for(const n of e.ScreenShots)this.images.push({itemImageSrc:this.globalVarService.imagePath+n,thumbnailImageSrc:this.globalVarService.imagePath+n,alt:e.Path,title:e.RunStatus.toString()});this.isScreenshotVisibleEvent.emit(null!=this.images&&this.images.length>0)}getStatusWithIcon(e){return this.calculatedDataService.getStatusClass(e)}onThumbnailButtonClick(){this.showThumbnails=!this.showThumbnails}toggleFullScreen(){this.fullscreen?this.closePreviewFullScreen():this.openPreviewFullScreen(),this.cd.detach()}openPreviewFullScreen(){let e=this.galleria?.element.nativeElement.querySelector(".p-galleria");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}onFullScreenChange(){this.fullscreen=!this.fullscreen,this.cd.detectChanges(),this.cd.reattach()}closePreviewFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}bindDocumentListeners(){this.onFullScreenListener=this.onFullScreenChange.bind(this),document.addEventListener("fullscreenchange",this.onFullScreenListener),document.addEventListener("mozfullscreenchange",this.onFullScreenListener),document.addEventListener("webkitfullscreenchange",this.onFullScreenListener),document.addEventListener("msfullscreenchange",this.onFullScreenListener)}unbindDocumentListeners(){document.removeEventListener("fullscreenchange",this.onFullScreenListener),document.removeEventListener("mozfullscreenchange",this.onFullScreenListener),document.removeEventListener("webkitfullscreenchange",this.onFullScreenListener),document.removeEventListener("msfullscreenchange",this.onFullScreenListener),this.onFullScreenListener=null}ngOnDestroy(){this.unbindDocumentListeners()}galleriaClass(){return"custom-galleria "+(this.fullscreen?"fullscreen":"")}fullScreenIcon(){return"pi "+(this.fullscreen?"fullscreen-button pi-window-minimize":"fullscreen-button pi-window-maximize")}setAllActions(){const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");if(this.actions=[],e&&n&&o){const r=e.RunnersColl.filter(a=>a.Seq===n)[0].BusinessFlowsColl.filter(a=>a.Seq===o)[0];for(const a of r.ActivitiesColl)for(const l of a.ActionsColl)l.Path=a.ActivityGroupName+" / "+a.Name,this.actions.push(l)}}setScurrentAction(){this.actions=[];const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");var s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");if(null!=r&&0==r&&(r=this.Action_seq),null!=s&&0==s&&(s=this.Activity_seq),e&&n&&o&&s&&r){const c=e.RunnersColl.filter(u=>u.Seq===n)[0].BusinessFlowsColl.filter(u=>u.Seq===o)[0].ActivitiesColl.filter(u=>u.Seq===s)[0];this.actions.push(c.ActionsColl.filter(u=>u.Seq===r)[0])}}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V(Co),V(Wi),V(qs),V(Ws),V(Ft))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["screenshot-carousel"]],viewQuery:function(n,o){if(1&n&&je(oie,5),2&n){let s;Se(s=Ee())&&(o.galleria=s.first)}},inputs:{_height:"_height",_thumbnails:"_thumbnails",autoplay:"autoplay",EntityType:"EntityType",Action_seq:"Action_seq",Activity_seq:"Activity_seq",showFooter:"showFooter"},outputs:{isScreenshotVisibleEvent:"isScreenshotVisibleEvent"},decls:1,vars:1,consts:[["class","screenshot-carousel",3,"ngClass",4,"ngIf"],[1,"screenshot-carousel",3,"ngClass"],[3,"value","activeIndex","numVisible","showThumbnails","showItemNavigators","showItemNavigatorsOnHover","circular","autoPlay","transitionInterval","containerStyle","containerClass","thumbnailsPosition","valueChange","activeIndexChange"],["galleria",""],["pTemplate","item"],["pTemplate","thumbnail"],[4,"ngIf"],[3,"src","ngStyle"],[2,"width","100px",3,"src"],["pTemplate","footer"],[1,"custom-galleria-footer"],["class","title-container",4,"ngIf"],["type","button",3,"click"],[1,"title-container"]],template:function(n,o){1&n&&g(0,hie,6,18,"div",0),2&n&&d("ngIf",null!=o.images&&o.images.length>0)},dependencies:[Ct,gt,Ht,sn,yf],styles:[".screenshot-carousel .passed-color{color:#109717;text-align:center} .screenshot-carousel .failed-color{color:#dc3812;text-align:center} .screenshot-carousel .blocked-color{color:#a21025;text-align:center} .screenshot-carousel .stopped-color{color:#ed5588;text-align:center} .screenshot-carousel .pending-color{color:#f90;text-align:center} .screenshot-carousel .skipped-color{color:#737373;text-align:center} .screenshot-carousel .inprogress-color{color:#eab330;text-align:center} .screenshot-carousel .canceled-color{color:#ca0088;text-align:center} p-galleriaitemslot .Passed{border-top:5px solid #109717!important} p-galleriaitemslot .Failed{border-top:5px solid #DC3812!important} p-galleriaitemslot .Blocked{border-top:5px solid #A21025!important} p-galleriaitemslot .Stopped{border-top:5px solid #ED5588!important} p-galleriaitemslot .Pending{border-top:5px solid #FF9900!important} p-galleriaitemslot .Skipped{border-top:5px solid #737373!important} p-galleriaitemslot .InProgress{border-top:5px solid #EAB330!important} p-galleriaitemslot .Canceled{border-top:5px solid #CA0088!important} .footerMargin .p-galleria-item-wrapper{margin-bottom:90px!important} .smallThumbnail .p-galleria-item-wrapper{width:100px!important}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen{display:flex;flex-direction:column}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen .p-galleria-content{flex-grow:1;justify-content:center}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-content{position:relative}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-wrapper{position:absolute;bottom:0;left:0;width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-items-container{width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer{display:flex;align-items:center;background-color:#fff;color:#000;border:1px solid;padding:5px}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button{background-color:transparent;color:#000;border:0 none;border-radius:0;margin:.2rem 0}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button.fullscreen-button{margin-left:auto}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button:hover{background-color:#ffffff1a}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span{font-size:1.2rem;padding-left:.829rem}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span.title{font-weight:700;font-size:1.5rem}"]})}return t})();function fie(t,i){1&t&&le(0,"div")}function gie(t,i){1&t&&le(0,"th",9)}function mie(t,i){if(1&t&&(x(0,"th"),Le(1),A()),2&t){const e=i.$implicit;h(1),Pt(" ",e.header," ")}}function _ie(t,i){if(1&t&&(x(0,"tr"),g(1,fie,1,0,"div",6),g(2,gie,1,0,"ng-template",null,7,In),g(4,mie,2,1,"th",8),A()),2&t){const e=i.$implicit,n=Bt(3),o=f();h(1),d("ngIf",o.addExpender)("ngIfThen",n),h(3),d("ngForOf",e)}}function Iie(t,i){1&t&&le(0,"div")}function Cie(t,i){if(1&t&&(x(0,"td")(1,"a",12),le(2,"i",13),A()()),2&t){const e=f(),n=e.$implicit,o=e.expanded;h(1),d("pRowToggler",n),h(1),d("ngClass",o?"pi pi-chevron-down":"pi pi-chevron-right")}}const vie=function(t){return{Guid:t}};function bie(t,i){if(1&t&&(x(0,"div")(1,"b")(2,"a",21),Le(3),A()()()),2&t){const e=f().$implicit,n=f(2).$implicit,o=f();h(2),__("routerLink","",e.link,"",o.getParamsURL(n,e),""),d("queryParams",He(4,vie,n.GUID)),h(1),Pt(" ",n[e.field]," ")}}function yie(t,i){if(1&t&&(x(0,"div"),g(1,bie,4,6,"div",16),A()),2&t){const e=i.$implicit;h(1),d("ngSwitchCase",e.field)}}function xie(t,i){if(1&t&&(x(0,"div"),Le(1),Il(2,"date"),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",Cl(2,1,n[e.field],"short")," ")}}function Aie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.msToTime(n[e.field])," ")}}function wie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}const Tie=function(t,i,e,n,o,s,r,a,l){return{"passed-color":t,"failed-color":i,"blocked-color":e,"stopped-color":n,"pending-color":o,"skipped-color":s,"inprogress-color":r,"canceled-color":a,"other-color":l}};function Sie(t,i){if(1&t&&(x(0,"div")(1,"div",13),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(1),d("ngClass",zp(2,Tie,["Passed"===e[n.statusFieldName],"Failed"===e[n.statusFieldName],"Blocked"===e[n.statusFieldName],"Stopped"===e[n.statusFieldName],"Pending"===e[n.statusFieldName],"Skipped"===e[n.statusFieldName],"In Progress"===e[n.statusFieldName],"Canceled"===e[n.statusFieldName],"Other"===e[n.statusFieldName]])),h(1),Pt(" ",e[n.statusFieldName]," ")}}function Eie(t,i){if(1&t&&(x(0,"div"),g(1,Sie,3,12,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.statusFieldName)}}function Die(t,i){if(1&t&&(x(0,"div")(1,"div",23),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(2),Pt(" ",e[n.errorFieldName]," ")}}function kie(t,i){if(1&t&&(x(0,"div"),g(1,Die,3,1,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.errorFieldName)}}function Mie(t,i){if(1&t&&(x(0,"div")(1,"div",24),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}function Oie(t,i){if(1&t&&(x(0,"div"),g(1,Mie,3,1,"div",16),A()),2&t){const e=f().$implicit,n=f(2);h(1),d("ngSwitchCase",n.boldAndCenterFields.includes(e.field)?e.field:"")}}function Lie(t,i){if(1&t){const e=De();x(0,"div")(1,"screenshot-carousel",25),me("isScreenshotVisibleEvent",function(o){return G(e),q(f(4).setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f(3).$implicit,n=f();h(1),d("showFooter",!1)("Activity_seq",n.activitySeq)("Action_seq",e.Seq)("EntityType",n.EntityType)("_height",100)("_thumbnails",!1)}}function Pie(t,i){1&t&&(x(0,"div"),g(1,Lie,2,6,"div",16),A()),2&t&&(h(1),d("ngSwitchCase","Screenshots"))}function Fie(t,i){if(1&t&&(x(0,"div",24),Le(1),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"% ")}}function Rie(t,i){if(1&t&&(x(0,"div")(1,"pre",29),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.getXML(n[e.field]),"\n ")}}function Nie(t,i){if(1&t&&(x(0,"div",30),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field]," ")}}function Vie(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"")}}function Bie(t,i){if(1&t&&(x(0,"div"),g(1,Rie,3,1,"div",26),g(2,Nie,2,1,"div",27),g(3,Vie,2,1,"ng-template",null,28,In),A()),2&t){const e=Bt(4),n=f().$implicit,o=f().$implicit,s=f();h(1),d("ngIf",o[n.field].includes("{class t{constructor(e,n,o){this.communicatorService=e,this.globalVarService=n,this._userDataManagerService=o,this.addExpender=!1,this.ShouldImagePop=!1,this.imagePopSrc="",this.imagePopName="",this.showScreenshotPanel=!0,this.EntityType="action"}ngOnInit(){}printf(e){console.log(e)}msToTime(e){return this._userDataManagerService.msToTime(e)}getParamsURL(e,n){var o="";if(!n.params)return e[n.param];for(let s of n.params)o=o+e[s]+"/";return o}onRouterCLick(e){console.log(e)}showImage(e){this.ShouldImagePop=!0,this.imagePopSrc=this.globalVarService.imagePath+e,this.imagePopName=e}getXML(e){let n;return n="\n"+e,n}isJson(e){try{JSON.parse(e)}catch{return console.log("not json"),!1}return console.log("is json"),!0}getJson(e){try{return JSON.parse(e)}catch{console.log("not json")}}trackByFunction(e,n){return n?n.field:null}setScreenshotVisiblity(e){this.showScreenshotPanel=e}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table"]],inputs:{cols:"cols",data:"data",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",errorFieldName:"errorFieldName",statusFieldName:"statusFieldName",boldAndCenterFields:"boldAndCenterFields",activitySeq:"activitySeq"},decls:6,vars:9,consts:[["dataKey","Seq",3,"columns","value"],["pTemplate","header"],["pTemplate","body"],["pTemplate","rowexpansion"],[3,"header","visible","responsive","visibleChange"],[2,"height","40vw",3,"src"],[4,"ngIf","ngIfThen"],["addExpenderBlock",""],[4,"ngFor","ngForOf"],[2,"width","3em"],["addExpenderBlock1",""],["class","row",3,"ngSwitch",4,"ngFor","ngForOf"],["href","#",3,"pRowToggler"],[3,"ngClass"],[1,"row",3,"ngSwitch"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngIf"],["class","bold-and-center",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["data","rowData",3,"routerLink","queryParams"],[1,"numbers-style"],[1,"failed-color"],[1,"bold-and-center"],[3,"showFooter","Activity_seq","Action_seq","EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],[4,"ngIf","ngIfElse"],["style"," display: inline-block;width: 180px;white-space: nowrap;overflow: hidden !important;text-overflow: ellipsis;",4,"ngIf","ngIfElse"],["elseBlock1",""],["lang","xml"],[2,"display","inline-block","width","180px","white-space","nowrap","overflow","hidden !important","text-overflow","ellipsis"],[1,"p-fluid",2,"font-size","16px","padding","20px"],[3,"tableExpenderType","entity"]],template:function(n,o){1&n&&(x(0,"p-table",0),g(1,_ie,5,3,"ng-template",1),g(2,Gie,5,3,"ng-template",2),g(3,qie,4,3,"ng-template",3),A(),x(4,"p-dialog",4),me("visibleChange",function(r){return o.ShouldImagePop=r}),le(5,"img",5),A()),2&n&&(d("columns",o.cols)("value",o.data),h(4),yn(Jt(8,Wie)),d("header",o.imagePopName)("visible",o.ShouldImagePop)("responsive",!0),h(1),d("src",o.imagePopSrc,Ls))},dependencies:[Ct,Jn,gt,wl,ch,x0,sn,xC,ate,pa,Qte,Dk,SC,Hs],styles:[".bold-and-center[_ngcontent-%COMP%]{font-weight:700;text-align:center}.alignCenter[_ngcontent-%COMP%]{text-align:center}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}.row[_ngcontent-%COMP%]{text-align:center}.item1[_ngcontent-%COMP%]{width:90%;text-align:left;margin-bottom:10px}"],data:{animation:[Oo("rowExpansionTrigger",[Us("void",en({transform:"translateX(-10%)",opacity:0})),Us("active",en({transform:"translateX(0)",opacity:1})),Ln("* <=> *",On("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}})}return t})();const Qie=["exeStatistics"];function Zie(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Run set Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),Pt(" ",e.RunsetJson.Name,"")}}function Yie(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runsetDetails)}}function Xie(t,i){if(1&t){const e=De();x(0,"p-accordionTab",13)(1,"app-execution-statistic",14,15),me("isStatisticsVisibleEvent",function(o){return G(e),q(f().setStatisticsVisiblity(o))}),A()()}2&t&&d("selected",!0)}const Jie=function(){return["BusinessFlowSeq"]};function eoe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.runnersCols)("data",e.runnersData)("fieldsLinksArr",e.fieldsLinksArr)("statusFieldName","BusinessFlowExecutionStaus")("boldAndCenterFields",Jt(6,Jie))}}function toe(t,i){1&t&&(x(0,"div",18),le(1,"div",19),A())}function noe(t,i){if(1&t&&(x(0,"p"),Le(1),A()),2&t){const e=f();h(1),dt(e.ErrorMessage)}}const ioe=function(t,i){return{hideDiv:t,showDiv:i}};let ooe=(()=>{class t{constructor(e,n,o,s,r,a,l,c,u,p,m,_){this.executionDataService=e,this.datePipe=n,this.communicatorService=o,this.reportHelperService=s,this.activeRoute=r,this.router=a,this.fileLoader=l,this.globalVarService=u,this.restServiceObj=p,this.userDataManagerService=m,this.calculatedDataService=_,this.runnersData=[],this.ErrorMessage="",this.showStatisticsPanel=!0,this.globalVarService.baseAppUrl=c.baseUrl,this.globalVarService.totalRecPerActivityPull=c.totalRecPerActivityPull,this.globalVarService.topBarTitle=c.topBarTitle}ngAfterViewInit(){null!=this.executionStatisticComponent&&null!=this.RunsetJson&&this.executionStatisticComponent.initComponents()}ngOnInit(){this.communicatorService.onRefreshChangedMessage.subscribe(e=>{"RefreshData"===e&&this.showRunset(!0)}),this.reportHelperService.selectedGuid="",this.reportHelperService.selectedRouteLink="",this.activeRoute.queryParams.subscribe(e=>{const n=e.Routed_Guid;console.log("found selected guid "+n),this.reportHelperService.selectedGuid=typeof n<"u"&&n?n:""}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"BusinessFlowName",link:"",params:["Seq","BusinessFlowSeq"]}],null==this.RunsetJson&&this.showRunset(),this.runnersCols=[{field:"Seq",header:"Runner Number"},{field:"Name",header:"Ginger Runner Name"},{field:"Environment",header:"Ginger Runner Environment Name"},{field:"BusinessFlowSeq",header:"Business Flow Execution Sequence"},{field:"BusinessFlowName",header:"Business Flow Name"},{field:"BusinessFlowDescription",header:"Business Flow Description"},{field:"BusinessFlowRunDescription",header:"Business Flow Run Description"},{field:"BusinessFlowExecutionStaus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Passed Rate"}]}showRunset(e=!1){this.hideRepoLoader=!0,this.showReport=!1;var n=this.activeRoute.snapshot.queryParamMap.get("ExecutionId");const o=this.activeRoute.snapshot.paramMap.get("BusinessFlowId"),s=this.activeRoute.snapshot.paramMap.get("ExecutionId");null!=s&&(n=s),null==n?n=localStorage.getItem("executionId"):localStorage.setItem("executionId",n),console.log("run set query guid is :"+n),n?(this.globalVarService.imagePath="images/",this.globalVarService.isServerLoading=!0,this.globalVarService.executionServerId=n,this.RunsetJson=this.userDataManagerService.getItemCache(),null==this.RunsetJson||this.RunsetJson.GUID!=n?this.restServiceObj.GetAccountHtmlReportBriefCase(n).subscribe(r=>{if(r.isSuccsess){if(this.showReport=!0,console.log(r.response),this.RunsetJson=JSON.parse(r.response),this.RunsetJson.Name=this.userDataManagerService.replaceUnicodeChar(this.RunsetJson.Name),this.RunsetJson.RunnersColl.length<=0)return void console.log("error on loading report");this.userDataManagerService.setItemCache(this.RunsetJson),this.RunsetJson.RunStatus==Lt.InProgress&&(this.userDataManagerService.setItem("LoadActivityStat","true"),this.userDataManagerService.setItem("LoadActionStat","true")),this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController(),null!=o&&this.RunsetJson.RunnersColl.forEach(a=>{a.BusinessFlowsColl.forEach(l=>{l.InstanceGUID==o&&this.router.navigateByUrl(a.Seq+"/"+l.Seq)})}),e&&null!=this.RunsetJson&&this.router.navigateByUrl("/?ExecutionId="+this.RunsetJson.ExecutionId)}else null==r.response||"NotFound"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="No record found"):"0"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Account Report Service is down"):"DatabaseDown"==r.response&&(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Postgres Database is down")}):(this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController())):(this.userDataManagerService.setItem("timeFormat","seconds"),this.globalVarService.imagePath="assets/screenshots/",this.executionDataService.GetExecutionData().then(r=>{this.hideRepoLoader=!1,null!=r?(this.showReport=!0,this.RunsetJson={...r},this.initController()):this.showReport=!1}))}GetFirstActivitesReponse(e){return this.restServiceObj.GetActivitiesByParentAwait(e)}downloadImages(e){this.restServiceObj.DownloadRunsetImages(e).subscribe(n=>{console.log(n.isSuccsess)})}initController(e=null){const n=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,e);this.communicatorService.newMessage(n),this.populateRunnerDetails(),null!=this.executionStatisticComponent&&this.executionStatisticComponent.initComponents(),this.runsetDetails=[{field:"Name",value:this.RunsetJson.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.RunsetJson.StartTimeStamp,"short")},{field:"RunSet Description",value:this.RunsetJson.Description},{field:"Execution End Time",value:this.datePipe.transform(this.RunsetJson.EndTimeStamp,"short")},{field:"RunSet Run Description",value:this.RunsetJson.RunDescription},{field:"Executed by User",value:this.RunsetJson.ExecutedbyUser},{field:"Execution Duration",value:this.userDataManagerService.msToTime(this.RunsetJson.Elapsed)},{field:"Execution Status",value:this.RunsetJson.RunStatus},{field:"Executed on Machine",value:this.RunsetJson.MachineName},{field:"Run Set Execution Rate",value:this.RunsetJson.ExecutionRate+"%"},{field:"Run Set Execution Pass Rate",value:this.RunsetJson.PassRate+"%"},{field:"Environment Name",value:this.RunsetJson.Environment},{field:"Ginger Version",value:this.RunsetJson.GingerVersion}],""!==this.reportHelperService.selectedRouteLink&&(console.log("route to guid :"+this.reportHelperService.selectedRouteLink),setTimeout(()=>{this.router.navigateByUrl(this.reportHelperService.selectedRouteLink)},5e3))}setStatisticsVisiblity(e){this.showStatisticsPanel=e}populateRunnerDetails(){this.runnersData=[];for(const e of this.RunsetJson.RunnersColl){let n=new MK;for(const o of e.BusinessFlowsColl)n={Name:e.Name,Environment:e.Environment,Seq:e.Seq,GUID:e.GUID,BusinessFlowSeq:o.Seq,BusinessFlowName:o.Name,BusinessFlowDescription:o.Description,PassRate:o.PassRate,BusinessFlowExecutionStaus:o.RunStatus,BusinessFlowRunDescription:o.RunDescription,ExecutionRate:o.ExecutionRate},this.runnersData.push(n)}}getStatus(e=!0){if(null!=this.RunsetJson&&null!=this.RunsetJson.RunStatus)return this.calculatedDataService.getStatusClass(this.RunsetJson.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(HK),V(Hs),V(Ws),V(WD),V(Wi),V(io),V(qD),V("environmentObj"),V(ms),V(ha),V(Co),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["runset-report"]],viewQuery:function(n,o){if(1&n&&je(Qie,5),2&n){let s;Se(s=Ee())&&(o.executionStatisticComponent=s.first)}},decls:8,vars:11,consts:[[3,"ngClass"],["class","entityName",4,"ngIf"],[3,"multiple"],["header","EXECUTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle"],[2,"font-weight","bold"],["header","EXECUTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected"],[3,"isStatisticsVisibleEvent"],["exeStatistics",""],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data","fieldsLinksArr","statusFieldName","boldAndCenterFields"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zie,5,4,"h4",1),x(2,"p-accordion",2),g(3,Yie,2,2,"p-accordionTab",3),g(4,Xie,3,1,"p-accordionTab",4),g(5,eoe,2,7,"p-accordionTab",5),A()(),g(6,toe,2,0,"div",6),g(7,noe,2,1,"p",7)),2&n&&(d("ngClass",mt(8,ioe,!1===o.showReport,!0===o.showReport)),h(1),d("ngIf",o.RunsetJson),h(1),d("multiple",!0),h(1),d("ngIf",null!=o.runsetDetails&&o.runsetDetails.length>0),h(1),d("ngIf",1==o.showStatisticsPanel),h(1),d("ngIf",o.runnersData.length>0),h(1),d("ngIf",o.hideRepoLoader),h(1),d("ngIf",0==o.showReport&&0==o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,LG,Is],styles:[".lables[_ngcontent-%COMP%]{font-weight:700}.loader[_ngcontent-%COMP%]{position:absolute;top:40%;left:40%;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #0066b2;width:40px;height:40px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return t})(),Mk=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"dashboard"],[1,"ui-m"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),le(2,"runset-report"),A()())},dependencies:[ooe],encapsulation:2})}return t})();const soe=function(){return["NumberOfActions"]};let EC=(()=>{class t{constructor(){}ngOnInit(){this.activitiesCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group Name"},{field:"Name",header:"Activity Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"RunStatus",header:"Execution Status"},{field:"NumberOfActions",header:"Number Of Actions"},{field:"ExecutionRate",header:"Actions Execution Rate"},{field:"PassRate",header:"Actions Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activities-table"]],inputs:{activities:"activities",activitiesGroups:"activitiesGroups",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.activitiesCols)("data",o.activities)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,soe))},dependencies:[Is]})}return t})();const roe=function(){return["CurrentRetryIteration","NumberOfActions"]};let Ok=(()=>{class t{constructor(){}ngOnInit(){this.actionsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Action Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"ActionType",header:"Action Type"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"CurrentRetryIteration",header:"Current Retry Iteration"},{field:"RunStatus",header:"Execution Status"},{field:"Error",header:"Error Details"},{field:"ExInfo",header:"Extra Details"},{field:"Screenshots",header:"Screenshot"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-actions-table"]],inputs:{actions:"actions",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",activitySeq:"activitySeq"},decls:1,vars:9,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields","activitySeq"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.actionsCols)("data",o.actions)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(8,roe))("activitySeq",o.activitySeq)},dependencies:[Is]})}return t})();function Ys(){}const aoe=function(){let t=0;return function(){return t++}}();function tn(t){return null===t||typeof t>"u"}function kn(t){if(Array.isArray&&Array.isArray(t))return!0;const i=Object.prototype.toString.call(t);return"[object"===i.slice(0,7)&&"Array]"===i.slice(-6)}function qt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Po(t,i){return ti(t)?t:i}function Nt(t,i){return typeof t>"u"?i:t}const Lk=(t,i)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*i:+t;function Mn(t,i,e){if(t&&"function"==typeof t.call)return t.apply(e,i)}function _n(t,i,e,n){let o,s,r;if(kn(t))if(s=t.length,n)for(o=s-1;o>=0;o--)i.call(e,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function Pr(t,i){return(Fk[i]||(Fk[i]=function doe(t){const i=function poe(t){const i=t.split("."),e=[];let n="";for(const o of i)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}(t);return e=>{for(const n of i){if(""===n)break;e=e&&e[n]}return e}}(i)))(t)}function DC(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Fo=t=>typeof t<"u",Fr=t=>"function"==typeof t,Rk=(t,i)=>{if(t.size!==i.size)return!1;for(const e of t)if(!i.has(e))return!1;return!0},Vn=Math.PI,Cn=2*Vn,foe=Cn+Vn,wf=Number.POSITIVE_INFINITY,goe=Vn/180,Qn=Vn/2,Uu=Vn/4,Nk=2*Vn/3,Ro=Math.log10,Cs=Math.sign;function Vk(t){const i=Math.round(t);t=$u(t,i,t/1e3)?i:t;const e=Math.pow(10,Math.floor(Ro(t))),n=t/e;return(n<=1?1:n<=2?2:n<=5?5:10)*e}function Gl(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $u(t,i,e){return Math.abs(t-i)l&&c=Math.min(i,e)-n&&t<=Math.max(i,e)+n}function OC(t,i,e){e=e||(r=>t[r]1;)s=o+n>>1,e(s)?o=s:n=s;return{lo:o,hi:n}}const Js=(t,i,e,n)=>OC(t,e,n?o=>t[o][i]<=e:o=>t[o][i]OC(t,e,n=>t[n][i]>=e),jk=["push","pop","shift","splice","unshift"];function Uk(t,i){const e=t._chartjs;if(!e)return;const n=e.listeners,o=n.indexOf(i);-1!==o&&n.splice(o,1),!(n.length>0)&&(jk.forEach(s=>{delete t[s]}),delete t._chartjs)}function $k(t){const i=new Set;let e,n;for(e=0,n=t.length;e"u"?function(t){return t()}:window.requestAnimationFrame;function Gk(t,i,e){const n=e||(r=>Array.prototype.slice.call(r));let o=!1,s=[];return function(...r){s=n(r),o||(o=!0,Kk.call(window,()=>{o=!1,t.apply(i,s)}))}}const LC=t=>"start"===t?"left":"end"===t?"right":"center",Oi=(t,i,e)=>"start"===t?i:"end"===t?e:(i+e)/2;function qk(t,i,e){const n=i.length;let o=0,s=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:u,minDefined:p,maxDefined:m}=r.getUserBounds();p&&(o=pi(Math.min(Js(a,r.axis,c).lo,e?n:Js(i,l,r.getPixelForValue(c)).lo),0,n-1)),s=m?pi(Math.max(Js(a,r.axis,u,!0).hi+1,e?0:Js(i,l,r.getPixelForValue(u),!0).hi+1),o,n)-o:n-o}return{start:o,count:s}}function Wk(t){const{xScale:i,yScale:e,_scaleRanges:n}=t,o={xmin:i.min,xmax:i.max,ymin:e.min,ymax:e.max};if(!n)return t._scaleRanges=o,!0;const s=n.xmin!==i.min||n.xmax!==i.max||n.ymin!==e.min||n.ymax!==e.max;return Object.assign(n,o),s}const Tf=t=>0===t||1===t,Qk=(t,i,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-i)*Cn/e),Zk=(t,i,e)=>Math.pow(2,-10*t)*Math.sin((t-i)*Cn/e)+1,Gu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Qn),easeOutSine:t=>Math.sin(t*Qn),easeInOutSine:t=>-.5*(Math.cos(Vn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Tf(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Tf(t)?t:Qk(t,.075,.3),easeOutElastic:t=>Tf(t)?t:Zk(t,.075,.3),easeInOutElastic:t=>Tf(t)?t:t<.5?.5*Qk(2*t,.1125,.45):.5+.5*Zk(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let i=1.70158;return(t/=.5)<1?t*t*((1+(i*=1.525))*t-i)*.5:.5*((t-=2)*t*((1+(i*=1.525))*t+i)+2)},easeInBounce:t=>1-Gu.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*Gu.easeInBounce(2*t):.5*Gu.easeOutBounce(2*t-1)+.5};function qu(t){return t+.5|0}const Rr=(t,i,e)=>Math.max(Math.min(t,e),i);function Wu(t){return Rr(qu(2.55*t),0,255)}function Nr(t){return Rr(qu(255*t),0,255)}function er(t){return Rr(qu(t/2.55)/100,0,1)}function Yk(t){return Rr(qu(100*t),0,100)}const No={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},PC=[..."0123456789ABCDEF"],woe=t=>PC[15&t],Toe=t=>PC[(240&t)>>4]+PC[15&t],Sf=t=>(240&t)>>4==(15&t);const Moe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Xk(t,i,e){const n=i*Math.min(e,1-e),o=(s,r=(s+t/30)%12)=>e-n*Math.max(Math.min(r-3,9-r,1),-1);return[o(0),o(8),o(4)]}function Ooe(t,i,e){const n=(o,s=(o+t/60)%6)=>e-e*i*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Loe(t,i,e){const n=Xk(t,1,.5);let o;for(i+e>1&&(o=1/(i+e),i*=o,e*=o),o=0;o<3;o++)n[o]*=1-i-e,n[o]+=i;return n}function FC(t){const e=t.r/255,n=t.g/255,o=t.b/255,s=Math.max(e,n,o),r=Math.min(e,n,o),a=(s+r)/2;let l,c,u;return s!==r&&(u=s-r,c=a>.5?u/(2-s-r):u/(s+r),l=function Poe(t,i,e,n,o){return t===o?(i-e)/n+(it<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,ql=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Df(t,i,e){if(t){let n=FC(t);n[i]=Math.max(0,Math.min(n[i]+n[i]*e,0===i?360:1)),n=NC(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function n3(t,i){return t&&Object.assign(i||{},t)}function o3(t){var i={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(i={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(i.a=Nr(t[3]))):(i=n3(t,{r:0,g:0,b:0,a:1})).a=Nr(i.a),i}function Goe(t){return"r"===t.charAt(0)?function Uoe(t){const i=joe.exec(t);let n,o,s,e=255;if(i){if(i[7]!==n){const r=+i[7];e=i[8]?Wu(r):Rr(255*r,0,255)}return n=+i[1],o=+i[3],s=+i[5],n=255&(i[2]?Wu(n):Rr(n,0,255)),o=255&(i[4]?Wu(o):Rr(o,0,255)),s=255&(i[6]?Wu(s):Rr(s,0,255)),{r:n,g:o,b:s,a:e}}}(t):function Noe(t){const i=Moe.exec(t);let n,e=255;if(!i)return;i[5]!==n&&(e=i[6]?Wu(+i[5]):Nr(+i[5]));const o=Jk(+i[2]),s=+i[3]/100,r=+i[4]/100;return n="hwb"===i[1]?function Foe(t,i,e){return RC(Loe,t,i,e)}(o,s,r):"hsv"===i[1]?function Roe(t,i,e){return RC(Ooe,t,i,e)}(o,s,r):NC(o,s,r),{r:n[0],g:n[1],b:n[2],a:e}}(t)}class kf{constructor(i){if(i instanceof kf)return i;const e=typeof i;let n;"object"===e?n=o3(i):"string"===e&&(n=function Eoe(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*No[t[1]],g:255&17*No[t[2]],b:255&17*No[t[3]],a:5===i?17*No[t[4]]:255}:(7===i||9===i)&&(e={r:No[t[1]]<<4|No[t[2]],g:No[t[3]]<<4|No[t[4]],b:No[t[5]]<<4|No[t[6]],a:9===i?No[t[7]]<<4|No[t[8]]:255})),e}(i)||function zoe(t){Ef||(Ef=function Hoe(){const t={},i=Object.keys(t3),e=Object.keys(e3);let n,o,s,r,a;for(n=0;n>16&255,s>>8&255,255&s]}return t}(),Ef.transparent=[0,0,0,0]);const i=Ef[t.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255}}(i)||Goe(i)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var i=n3(this._rgb);return i&&(i.a=er(i.a)),i}set rgb(i){this._rgb=o3(i)}rgbString(){return this._valid?function $oe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${er(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function koe(t){var i=(t=>Sf(t.r)&&Sf(t.g)&&Sf(t.b)&&Sf(t.a))(t)?woe:Toe;return t?"#"+i(t.r)+i(t.g)+i(t.b)+((t,i)=>t<255?i(t):"")(t.a,i):void 0}(this._rgb):void 0}hslString(){return this._valid?function Boe(t){if(!t)return;const i=FC(t),e=i[0],n=Yk(i[1]),o=Yk(i[2]);return t.a<255?`hsla(${e}, ${n}%, ${o}%, ${er(t.a)})`:`hsl(${e}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(i,e){if(i){const n=this.rgb,o=i.rgb;let s;const r=e===s?.5:e,a=2*r-1,l=n.a-o.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,n.r=255&c*n.r+s*o.r+.5,n.g=255&c*n.g+s*o.g+.5,n.b=255&c*n.b+s*o.b+.5,n.a=r*n.a+(1-r)*o.a,this.rgb=n}return this}interpolate(i,e){return i&&(this._rgb=function Koe(t,i,e){const n=ql(er(t.r)),o=ql(er(t.g)),s=ql(er(t.b));return{r:Nr(VC(n+e*(ql(er(i.r))-n))),g:Nr(VC(o+e*(ql(er(i.g))-o))),b:Nr(VC(s+e*(ql(er(i.b))-s))),a:t.a+e*(i.a-t.a)}}(this._rgb,i._rgb,e)),this}clone(){return new kf(this.rgb)}alpha(i){return this._rgb.a=Nr(i),this}clearer(i){return this._rgb.a*=1-i,this}greyscale(){const i=this._rgb,e=qu(.3*i.r+.59*i.g+.11*i.b);return i.r=i.g=i.b=e,this}opaquer(i){return this._rgb.a*=1+i,this}negate(){const i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Df(this._rgb,2,i),this}darken(i){return Df(this._rgb,2,-i),this}saturate(i){return Df(this._rgb,1,i),this}desaturate(i){return Df(this._rgb,1,-i),this}rotate(i){return function Voe(t,i){var e=FC(t);e[0]=Jk(e[0]+i),e=NC(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,i),this}}function s3(t){return new kf(t)}function r3(t){if(t&&"object"==typeof t){const i=t.toString();return"[object CanvasPattern]"===i||"[object CanvasGradient]"===i}return!1}function a3(t){return r3(t)?t:s3(t)}function BC(t){return r3(t)?t:s3(t).saturate(.5).darken(.1).hexString()}const ma=Object.create(null),HC=Object.create(null);function Qu(t,i){if(!i)return t;const e=i.split(".");for(let n=0,o=e.length;ne.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,n)=>BC(n.backgroundColor),this.hoverBorderColor=(e,n)=>BC(n.borderColor),this.hoverColor=(e,n)=>BC(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i)}set(i,e){return zC(this,i,e)}get(i){return Qu(this,i)}describe(i,e){return zC(HC,i,e)}override(i,e){return zC(ma,i,e)}route(i,e,n,o){const s=Qu(this,i),r=Qu(this,n),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[o];return qt(l)?Object.assign({},c,l):Nt(l,c)},set(l){this[a]=l}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Mf(t,i,e,n,o){let s=i[o];return s||(s=i[o]=t.measureText(o).width,e.push(o)),s>n&&(n=s),n}function Qoe(t,i,e,n){let o=(n=n||{}).data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==i&&(o=n.data={},s=n.garbageCollect=[],n.font=i),t.save(),t.font=i;let r=0;const a=e.length;let l,c,u,p,m;for(l=0;le.length){for(l=0;l<_;l++)delete o[s[l]];s.splice(0,_)}return r}function _a(t,i,e){const n=t.currentDevicePixelRatio,o=0!==e?Math.max(e/2,.5):0;return Math.round((i-o)*n)/n+o}function l3(t,i){(i=i||t.getContext("2d")).save(),i.resetTransform(),i.clearRect(0,0,t.width,t.height),i.restore()}function jC(t,i,e,n){c3(t,i,e,n,null)}function c3(t,i,e,n,o){let s,r,a,l,c,u;const p=i.pointStyle,m=i.rotation,_=i.radius;let b=(m||0)*goe;if(p&&"object"==typeof p&&(s=p.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(e,n),t.rotate(b),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(_)||_<=0)){switch(t.beginPath(),p){default:o?t.ellipse(e,n,o/2,_,0,0,Cn):t.arc(e,n,_,0,Cn),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),t.closePath();break;case"rectRounded":c=.516*_,l=_-c,r=Math.cos(b+Uu)*l,a=Math.sin(b+Uu)*l,t.arc(e-r,n-a,c,b-Vn,b-Qn),t.arc(e+a,n-r,c,b-Qn,b),t.arc(e+r,n+a,c,b,b+Qn),t.arc(e-a,n+r,c,b+Qn,b+Vn),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*_,u=o?o/2:l,t.rect(e-u,n-l,2*u,2*l);break}b+=Uu;case"rectRot":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+a,n-r),t.lineTo(e+r,n+a),t.lineTo(e-a,n+r),t.closePath();break;case"crossRot":b+=Uu;case"cross":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"star":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r),b+=Uu,r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"line":r=o?o/2:Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(b)*_,n+Math.sin(b)*_)}t.fill(),i.borderWidth>0&&t.stroke()}}function Zu(t,i,e){return e=e||.5,!i||t&&t.x>i.left-e&&t.xi.top-e&&t.y0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=o.string,function Xoe(t,i){i.translation&&t.translate(i.translation[0],i.translation[1]),tn(i.rotation)||t.rotate(i.rotation),i.color&&(t.fillStyle=i.color),i.textAlign&&(t.textAlign=i.textAlign),i.textBaseline&&(t.textBaseline=i.textBaseline)}(t,s),l=0;l+t||0;function UC(t,i){const e={},n=qt(i),o=n?Object.keys(i):i,s=qt(t)?n?r=>Nt(t[r],t[i[r]]):r=>t[r]:()=>t;for(const r of o)e[r]=ise(s(r));return e}function u3(t){return UC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ca(t){return UC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Li(t){const i=u3(t);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ui(t,i){let e=Nt((t=t||{}).size,(i=i||Qt.font).size);"string"==typeof e&&(e=parseInt(e,10));let n=Nt(t.style,i.style);n&&!(""+n).match(tse)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const o={family:Nt(t.family,i.family),lineHeight:nse(Nt(t.lineHeight,i.lineHeight),e),size:e,style:n,weight:Nt(t.weight,i.weight),string:""};return o.string=function Woe(t){return!t||tn(t.size)||tn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Xu(t,i,e,n){let s,r,a,o=!0;for(s=0,r=t.length;st[0])){Fo(n)||(n=g3("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:e,_fallback:n,_getTarget:o,override:r=>$C([r,...t],i,e,n)};return new Proxy(s,{deleteProperty:(r,a)=>(delete r[a],delete r._keys,delete t[0][a],!0),get:(r,a)=>p3(r,a,()=>function pse(t,i,e,n){let o;for(const s of i)if(o=g3(sse(s,t),e),Fo(o))return KC(t,o)?GC(e,n,t,o):o}(a,i,t,r)),getOwnPropertyDescriptor:(r,a)=>Reflect.getOwnPropertyDescriptor(r._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(r,a)=>m3(r).includes(a),ownKeys:r=>m3(r),set(r,a,l){const c=r._storage||(r._storage=o());return r[a]=c[a]=l,delete r._keys,!0}})}function Wl(t,i,e,n){const o={_cacheable:!1,_proxy:t,_context:i,_subProxy:e,_stack:new Set,_descriptors:d3(t,n),setContext:s=>Wl(t,s,e,n),override:s=>Wl(t.override(s),i,e,n)};return new Proxy(o,{deleteProperty:(s,r)=>(delete s[r],delete t[r],!0),get:(s,r,a)=>p3(s,r,()=>function rse(t,i,e){const{_proxy:n,_context:o,_subProxy:s,_descriptors:r}=t;let a=n[i];return Fr(a)&&r.isScriptable(i)&&(a=function ase(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_stack:a}=e;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),i=i(s,r||n),a.delete(t),KC(t,i)&&(i=GC(o._scopes,o,t,i)),i}(i,a,t,e)),kn(a)&&a.length&&(a=function lse(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_descriptors:a}=e;if(Fo(s.index)&&n(t))i=i[s.index%i.length];else if(qt(i[0])){const l=i,c=o._scopes.filter(u=>u!==l);i=[];for(const u of l){const p=GC(c,o,t,u);i.push(Wl(p,s,r&&r[t],a))}}return i}(i,a,t,r.isIndexable)),KC(i,a)&&(a=Wl(a,o,s&&s[i],r)),a}(s,r,a)),getOwnPropertyDescriptor:(s,r)=>s._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(s,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(s,r,a)=>(t[r]=a,delete s[r],!0)})}function d3(t,i={scriptable:!0,indexable:!0}){const{_scriptable:e=i.scriptable,_indexable:n=i.indexable,_allKeys:o=i.allKeys}=t;return{allKeys:o,scriptable:e,indexable:n,isScriptable:Fr(e)?e:()=>e,isIndexable:Fr(n)?n:()=>n}}const sse=(t,i)=>t?t+DC(i):i,KC=(t,i)=>qt(i)&&"adapters"!==t&&(null===Object.getPrototypeOf(i)||i.constructor===Object);function p3(t,i,e){if(Object.prototype.hasOwnProperty.call(t,i))return t[i];const n=e();return t[i]=n,n}function h3(t,i,e){return Fr(t)?t(i,e):t}const cse=(t,i)=>!0===t?i:"string"==typeof t?Pr(i,t):void 0;function use(t,i,e,n,o){for(const s of i){const r=cse(e,s);if(r){t.add(r);const a=h3(r._fallback,e,o);if(Fo(a)&&a!==e&&a!==n)return a}else if(!1===r&&Fo(n)&&e!==n)return null}return!1}function GC(t,i,e,n){const o=i._rootScopes,s=h3(i._fallback,e,n),r=[...t,...o],a=new Set;a.add(n);let l=f3(a,r,e,s||e,n);return!(null===l||Fo(s)&&s!==e&&(l=f3(a,r,s,l,n),null===l))&&$C(Array.from(a),[""],o,s,()=>function dse(t,i,e){const n=t._getTarget();i in n||(n[i]={});const o=n[i];return kn(o)&&qt(e)?e:o}(i,e,n))}function f3(t,i,e,n,o){for(;e;)e=use(t,i,e,n,o);return e}function g3(t,i){for(const e of i){if(!e)continue;const n=e[t];if(Fo(n))return n}}function m3(t){let i=t._keys;return i||(i=t._keys=function hse(t){const i=new Set;for(const e of t)for(const n of Object.keys(e).filter(o=>!o.startsWith("_")))i.add(n);return Array.from(i)}(t._scopes)),i}function _3(t,i,e,n){const{iScale:o}=t,{key:s="r"}=this._parsing,r=new Array(n);let a,l,c,u;for(a=0,l=n;ai"x"===t?"y":"x";function gse(t,i,e,n){const o=t.skip?i:t,s=i,r=e.skip?i:e,a=MC(s,o),l=MC(r,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const p=n*c,m=n*u;return{previous:{x:s.x-p*(r.x-o.x),y:s.y-p*(r.y-o.y)},next:{x:s.x+m*(r.x-o.x),y:s.y+m*(r.y-o.y)}}}function Pf(t,i,e){return Math.max(Math.min(t,e),i)}function vse(t,i,e,n,o){let s,r,a,l;if(i.spanGaps&&(t=t.filter(c=>!c.skip)),"monotone"===i.cubicInterpolationMode)!function Ise(t,i="x"){const e=I3(i),n=t.length,o=Array(n).fill(0),s=Array(n);let r,a,l,c=Ql(t,0);for(r=0;rwindow.getComputedStyle(t,null),yse=["top","right","bottom","left"];function va(t,i,e){const n={};e=e?"-"+e:"";for(let o=0;o<4;o++){const s=yse[o];n[s]=parseFloat(t[i+"-"+s+e])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const xse=(t,i,e)=>(t>0||i>0)&&(!e||!e.shadowRoot);function ba(t,i){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:n}=i,o=Rf(e),s="border-box"===o.boxSizing,r=va(o,"padding"),a=va(o,"border","width"),{x:l,y:c,box:u}=function Ase(t,i){const e=t.touches,n=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=n;let a,l,r=!1;if(xse(o,s,t.target))a=o,l=s;else{const c=i.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,r=!0}return{x:a,y:l,box:r}}(t,e),p=r.left+(u&&a.left),m=r.top+(u&&a.top);let{width:_,height:b}=i;return s&&(_-=r.width+a.width,b-=r.height+a.height),{x:Math.round((l-p)/_*e.width/n),y:Math.round((c-m)/b*e.height/n)}}const WC=t=>Math.round(10*t)/10;function v3(t,i,e){const n=i||1,o=Math.floor(t.height*n),s=Math.floor(t.width*n);t.height=o/n,t.width=s/n;const r=t.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==o||r.width!==s)&&(t.currentDevicePixelRatio=n,r.height=o,r.width=s,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Sse=function(){let t=!1;try{const i={get passive(){return t=!0,!1}};window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return t}();function b3(t,i){const e=function bse(t,i){return Rf(t).getPropertyValue(i)}(t,i),n=e&&e.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ya(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:t.y+e*(i.y-t.y)}}function Ese(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:"middle"===n?e<.5?t.y:i.y:"after"===n?e<1?t.y:i.y:e>0?i.y:t.y}}function Dse(t,i,e,n){const o={x:t.cp2x,y:t.cp2y},s={x:i.cp1x,y:i.cp1y},r=ya(t,o,e),a=ya(o,s,e),l=ya(s,i,e),c=ya(r,a,e),u=ya(a,l,e);return ya(c,u,e)}const y3=new Map;function Ju(t,i,e){return function kse(t,i){i=i||{};const e=t+JSON.stringify(i);let n=y3.get(e);return n||(n=new Intl.NumberFormat(t,i),y3.set(e,n)),n}(i,e).format(t)}function Zl(t,i,e){return t?function(t,i){return{x:e=>t+t+i-e,setWidth(e){i=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(i,e):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,i)=>t+i,leftForLtr:(t,i)=>t}}function x3(t,i){let e,n;("ltr"===i||"rtl"===i)&&(e=t.canvas.style,n=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",i,"important"),t.prevTextDirection=n)}function A3(t,i){void 0!==i&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",i[0],i[1]))}function w3(t){return"angle"===t?{between:Ku,compare:Ioe,normalize:vo}:{between:Xs,compare:(i,e)=>i-e,normalize:i=>i}}function T3({start:t,end:i,count:e,loop:n,style:o}){return{start:t%e,end:i%e,loop:n&&(i-t+1)%e==0,style:o}}function S3(t,i,e){if(!e)return[t];const{property:n,start:o,end:s}=e,r=i.length,{compare:a,between:l,normalize:c}=w3(n),{start:u,end:p,loop:m,style:_}=function Lse(t,i,e){const{property:n,start:o,end:s}=e,{between:r,normalize:a}=w3(n),l=i.length;let m,_,{start:c,end:u,loop:p}=t;if(p){for(c+=l,u+=l,m=0,_=l;m<_&&r(a(i[c%l][n]),o,s);++m)c--,u--;c%=l,u%=l}return ua({chart:i,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Kk.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let e=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const s=n.items;let l,r=s.length-1,a=!1;for(;r>=0;--r)l=s[r],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(i),a=!0):(s[r]=s[s.length-1],s.pop());a&&(o.draw(),this._notify(o,n,i,"progress")),s.length||(n.running=!1,this._notify(o,n,i,"complete"),n.initial=!1),e+=s.length}),this._lastDate=i,0===e&&(this._running=!1)}_getAnims(i){const e=this._charts;let n=e.get(i);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(i,n)),n}listen(i,e,n){this._getAnims(i).listeners[e].push(n)}add(i,e){!e||!e.length||this._getAnims(i).items.push(...e)}has(i){return this._getAnims(i).items.length>0}start(i){const e=this._charts.get(i);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(i){if(!this._running)return!1;const e=this._charts.get(i);return!(!e||!e.running||!e.items.length)}stop(i){const e=this._charts.get(i);if(!e||!e.items.length)return;const n=e.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();e.items=[],this._notify(i,e,Date.now(),"complete")}remove(i){return this._charts.delete(i)}};const M3="transparent",Hse={boolean:(t,i,e)=>e>.5?i:t,color(t,i,e){const n=a3(t||M3),o=n.valid&&a3(i||M3);return o&&o.valid?o.mix(n,e).hexString():i},number:(t,i,e)=>t+(i-t)*e};class zse{constructor(i,e,n,o){const s=e[n];o=Xu([i.to,o,s,i.from]);const r=Xu([i.from,s,o]);this._active=!0,this._fn=i.fn||Hse[i.type||typeof r],this._easing=Gu[i.easing]||Gu.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=e,this._prop=n,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(i,e,n){if(this._active){this._notify(!1);const o=this._target[this._prop],s=n-this._start,r=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=s,this._loop=!!i.loop,this._to=Xu([i.to,e,o,i.from]),this._from=Xu([i.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){const e=i-this._start,n=this._duration,o=this._prop,s=this._from,r=this._loop,a=this._to;let l;if(this._active=s!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,a,l))}wait(){const i=this._promises||(this._promises=[]);return new Promise((e,n)=>{i.push({res:e,rej:n})})}_notify(i){const e=i?"res":"rej",n=this._promises||[];for(let o=0;o"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Qt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Qt.describe("animations",{_fallback:"animation"}),Qt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class O3{constructor(i,e){this._chart=i,this._properties=new Map,this.configure(e)}configure(i){if(!qt(i))return;const e=this._properties;Object.getOwnPropertyNames(i).forEach(n=>{const o=i[n];if(!qt(o))return;const s={};for(const r of $se)s[r]=o[r];(kn(o.properties)&&o.properties||[n]).forEach(r=>{(r===n||!e.has(r))&&e.set(r,s)})})}_animateOptions(i,e){const n=e.options,o=function Gse(t,i){if(!i)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=i}(i,n);if(!o)return[];const s=this._createAnimations(o,n);return n.$shared&&function Kse(t,i){const e=[],n=Object.keys(i);for(let o=0;o{i.options=n},()=>{}),s}_createAnimations(i,e){const n=this._properties,o=[],s=i.$animations||(i.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(i,e));continue}const u=e[c];let p=s[c];const m=n.get(c);if(p){if(m&&p.active()){p.update(m,u,a);continue}p.cancel()}m&&m.duration?(s[c]=p=new zse(m,i,c,u),o.push(p)):i[c]=u}return o}update(i,e){if(0===this._properties.size)return void Object.assign(i,e);const n=this._createAnimations(i,e);return n.length?(tr.add(this._chart,n),!0):void 0}}function L3(t,i){const e=t&&t.options||{},n=e.reverse,o=void 0===e.min?i:0,s=void 0===e.max?i:0;return{start:n?s:o,end:n?o:s}}function P3(t,i){const e=[],n=t._getSortedDatasetMetas(i);let o,s;for(o=0,s=n.length;o0||!e&&s<0)return o.index}return null}function V3(t,i){const{chart:e,_cachedMeta:n}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:r,index:a}=n,l=s.axis,c=r.axis,u=function Zse(t,i,e){return`${t.id}.${i.id}.${e.stack||e.type}`}(s,r,n),p=i.length;let m;for(let _=0;_e[n].axis===i).shift()}function ed(t,i){const e=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){i=i||t._parsed;for(const o of i){const s=o._stacks;if(!s||void 0===s[n]||void 0===s[n][e])return;delete s[n][e]}}}const ZC=t=>"reset"===t||"none"===t,B3=(t,i)=>i?t:Object.assign({},t);let vs=(()=>{class t{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=R3(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&ed(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),s=(m,_,b,E)=>"x"===m?_:"r"===m?E:b,r=n.xAxisID=Nt(o.xAxisID,QC(e,"x")),a=n.yAxisID=Nt(o.yAxisID,QC(e,"y")),l=n.rAxisID=Nt(o.rAxisID,QC(e,"r")),c=n.indexAxis,u=n.iAxisID=s(c,r,a,l),p=n.vAxisID=s(c,a,r,l);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Uk(this._data,this),e._stacked&&ed(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(qt(n))this._data=function Qse(t){const i=Object.keys(t),e=new Array(i.length);let n,o,s;for(n=0,o=i.length;n{const n="_onData"+DC(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){const r=o.apply(this,s);return t._chartjs.listeners.forEach(a=>{"function"==typeof a[n]&&a[n](...s)}),r}})}))}(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=R3(n.vScale,n),n.stack!==o.stack&&(s=!0,ed(n),n.stack=o.stack),this._resyncElements(e),(s||r!==n._stacked)&&V3(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:s}=this,{iScale:r,_stacked:a}=o,l=r.axis;let p,m,_,c=0===e&&n===s.length||o._sorted,u=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=s,o._sorted=!0,_=s;else{_=kn(s[e])?this.parseArrayData(o,s,e,n):qt(s[e])?this.parseObjectData(o,s,e,n):this.parsePrimitiveData(o,s,e,n);const b=()=>null===m[l]||u&&m[l]t&&!i.hidden&&i._stacked&&{keys:P3(this.chart,!0),values:null})(n,o),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:m}=function Yse(t){const{min:i,max:e,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?i:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}(l);let _,b;function E(){b=s[_];const P=b[l.axis];return!ti(b[e.axis])||p>P||m=0;--_)if(!E()){this.updateRangeFromParsed(u,e,b,c);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let s,r,a;for(s=0,r=n.length;s=0&&ethis.getContext(o,s),m);return P.$shared&&(P.$shared=c,r[a]=Object.freeze(B3(P,c))),P}_resolveAnimations(e,n,o){const s=this.chart,r=this._cachedDataOpts,a=`animation-${n}`,l=r[a];if(l)return l;let c;if(!1!==s.options.animation){const p=this.chart.config,m=p.datasetAnimationScopeKeys(this._type,n),_=p.getOptionScopes(this.getDataset(),m);c=p.createResolver(_,this.getContext(e,o,n))}const u=new O3(s,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||ZC(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(o),a=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,o),{sharedOptions:r,includeOptions:a}}updateElement(e,n,o,s){ZC(s)?Object.assign(e,o):this._resolveAnimations(n,s).update(e,o)}updateSharedOptions(e,n,o){e&&!ZC(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,o,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const s=o.length,r=n.length,a=Math.min(r,s);a&&this.parse(0,a),r>s?this._insertElements(s,r-s,e):r{for(u.length+=n,l=u.length-1;l>=a;l--)u[l]=u[l-n]};for(c(r),l=e;lo-s))}return t._cache.$bar}(i,t.type);let o,s,r,a,n=i._length;const l=()=>{32767===r||-32768===r||(Fo(a)&&(n=Math.min(n,Math.abs(r-a)||n)),a=r)};for(o=0,s=e.length;oMath.abs(a)&&(l=a,c=r),i[e.axis]=c,i._custom={barStart:l,barEnd:c,start:o,end:s,min:r,max:a}}(t,i,e,n):i[e.axis]=e.parse(t,n),i}function z3(t,i,e,n){const o=t.iScale,s=t.vScale,r=o.getLabels(),a=o===s,l=[];let c,u,p,m;for(c=e,u=e+n;ct.x,e="left",n="right"):(i=t.base{class t extends vs{parsePrimitiveData(e,n,o,s){return z3(e,n,o,s)}parseArrayData(e,n,o,s){return z3(e,n,o,s)}parseObjectData(e,n,o,s){const{iScale:r,vScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u="x"===r.axis?l:c,p="x"===a.axis?l:c,m=[];let _,b,E,P;for(_=o,b=o+s;_c.controller.options.grouped),r=o.options.stacked,a=[],l=c=>{const u=c.controller.getParsed(n),p=u&&u[c.vScale.axis];if(tn(p)||isNaN(p))return!0};for(const c of s)if((void 0===n||!l(c))&&((!1===r||-1===a.indexOf(c.stack)||void 0===r&&void 0===c.stack)&&a.push(c.stack),c.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,o){const s=this._getStacks(e,o),r=void 0!==n?s.indexOf(n):-1;return-1===r?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,s=[];let r,a;for(r=0,a=n.data.length;r=e?1:-1)}(E,n,a)*r,p===a&&(W-=E/2);const te=n.getPixelForDecimal(0),fe=n.getPixelForDecimal(1),Ce=Math.min(te,fe),ve=Math.max(te,fe);W=Math.max(Math.min(W,ve),Ce),b=W+E}if(W===n.getPixelForValue(a)){const te=Cs(E)*n.getLineWidthForValue(a)/2;W+=te,E-=te}return{size:E,base:W,head:b,center:b+E/2}}_calculateBarIndexPixels(e,n){const o=n.scale,s=this.options,r=s.skipNull,a=Nt(s.maxBarThickness,1/0);let l,c;if(n.grouped){const u=r?this._getStackCount(e):n.stackCount,p="flex"===s.barThickness?function sre(t,i,e,n){const o=i.pixels,s=o[t];let r=t>0?o[t-1]:null,a=t{class t extends vs{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,o,s){const r=super.parsePrimitiveData(e,n,o,s);for(let a=0;a=0;--o)n=Math.max(n,e[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:o,yScale:s}=n,r=this.getParsed(e),a=o.getLabelForValue(r.x),l=s.getLabelForValue(r.y),c=r._custom;return{label:n.label,value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,s),p=a.axis,m=l.axis;for(let _=n;_""}}}},t})(),$3=(()=>{class t extends vs{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=o;else{let a,l,r=c=>+o[c];if(qt(o[e])){const{key:c="value"}=this._parsing;r=u=>+Pr(o[u],c)}for(a=e,l=e+n;a"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/i)(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:p,rotation:m}=this._getRotationExtents(),{ratioX:_,ratioY:b,offsetX:E,offsetY:P}=function fre(t,i,e){let n=1,o=1,s=0,r=0;if(iKu(fe,a,l,!0)?1:Math.max(Ce,Ce*e,ve,ve*e),b=(fe,Ce,ve)=>Ku(fe,a,l,!0)?-1:Math.min(Ce,Ce*e,ve,ve*e),E=_(0,c,p),P=_(Qn,u,m),W=b(Vn,c,p),te=b(Vn+Qn,u,m);n=(E-W)/2,o=(P-te)/2,s=-(E+W)/2,r=-(P+te)/2}return{ratioX:n,ratioY:o,offsetX:s,offsetY:r}}(m,p,c),fe=Math.max(Math.min((o.width-a)/_,(o.height-a)/b)/2,0),Ce=Lk(this.options.radius,fe),ke=(Ce-Math.max(Ce*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=E*Ce,this.offsetY=P*Ce,s.total=this.calculateTotal(),this.outerRadius=Ce-ke*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-ke*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const o=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||null===s._parsed[e]||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Cn)}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,l=a.chartArea,p=(l.left+l.right)/2,m=(l.top+l.bottom)/2,_=r&&a.options.animation.animateScale,b=_?0:this.innerRadius,E=_?0:this.outerRadius,{sharedOptions:P,includeOptions:W}=this._getSharedOptions(n,s);let fe,te=this._getRotation();for(fe=0;fe0&&!isNaN(e)?Cn*(Math.abs(e)/n):0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e],o.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const o=this.chart;let s,r,a,l,c;if(!e)for(s=0,r=o.data.datasets.length;s"spacing"!==i,_indexable:i=>"spacing"!==i},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(i){let e=i.label;const n=": "+i.formattedValue;return kn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}},t})(),gre=(()=>{class t extends vs{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:s=[],_dataset:r}=n,a=this.chart._animationsDisabled;let{start:l,count:c}=qk(n,s,a);this._drawStart=l,this._drawCount=c,Wk(n)&&(l=0,c=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=s;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!a,options:u},e),this.updateElements(s,l,c,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,s),_=a.axis,b=l.axis,{spanGaps:E,segment:P}=this.options,W=Gl(E)?E:Number.POSITIVE_INFINITY,te=this.chart._animationsDisabled||r||"none"===s;let fe=n>0&&this.getParsed(n-1);for(let Ce=n;Ce0&&Math.abs(ke[_]-fe[_])>W,P&&(Pe.parsed=ke,Pe.raw=u.data[Ce]),m&&(Pe.options=p||this.resolveDataElementOptions(Ce,ve.active?"active":s)),te||this.updateElement(ve,Ce,Pe,s),fe=ke}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return o;const r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t.id="line",t.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},t.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},t})(),mre=(()=>{class t extends vs{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e].r,o.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((o,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(rn.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,o=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),l=(r-Math.max(o.cutoutPercentage?r/100*o.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,c=a.options.animation,u=this._cachedMeta.rScale,p=u.xCenter,m=u.yCenter,_=u.getIndexAngle(0)-.5*Vn;let E,b=_;const P=360/this.countVisibleElements();for(E=0;E{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,o){return this.chart.getDataVisibility(e)?Yo(this.resolveDataElementOptions(e,n).angle||o):0}}return t.id="polarArea",t.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:i=>i.chart.data.labels[i.dataIndex]+": "+i.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},t})(),_re=(()=>{class t extends $3{}return t.id="pie",t.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},t})(),Ire=(()=>{class t extends vs{getLabelAndValue(e){const n=this._cachedMeta.vScale,o=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta,o=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(o.points=s,"resize"!==e){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0),this.updateElement(o,void 0,{_loop:!0,_fullLoop:r.length===s.length,options:a},e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,o,s){const r=this._cachedMeta.rScale,a="reset"===s;for(let l=n;l{o[s]=n[s]&&n[s].active()?n[s]._to:this[s]}),o}}Xo.defaults={},Xo.defaultRoutes=void 0;const K3={values:t=>kn(t)?t:""+t,numeric(t,i,e){if(0===t)return"0";const n=this.chart.options.locale;let o,s=t;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=function Cre(t,i){let e=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const r=Ro(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ju(t,n,l)},logarithmic(t,i,e){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(Ro(t)));return 1===n||2===n||5===n?K3.numeric.call(this,t,i,e):""}};var Nf={formatters:K3};function Vf(t,i,e,n,o){const s=Nt(n,0),r=Math.min(Nt(o,t.length),t.length);let l,c,u,a=0;for(e=Math.ceil(e),o&&(l=o-n,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);ci.lineWidth,tickColor:(t,i)=>i.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Nf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Qt.route("scale.ticks","color","","color"),Qt.route("scale.grid","color","","borderColor"),Qt.route("scale.grid","borderColor","","borderColor"),Qt.route("scale.title","color","","color"),Qt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Qt.describe("scales",{_fallback:"scale"}),Qt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const G3=(t,i,e)=>"top"===i||"left"===i?t[i]+e:t[i]-e;function q3(t,i){const e=[],n=t.length/i,o=t.length;let s=0;for(;sr+a)))return l}function td(t){return t.drawTicks?t.tickLength:0}function W3(t,i){if(!t.display)return 0;const e=ui(t.font,i),n=Li(t.padding);return(kn(t.text)?t.text.length:1)*e.lineHeight+n.height}function Mre(t,i,e){let n=LC(t);return(e&&"right"!==i||!e&&"right"===i)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class xa extends Xo{constructor(i){super(),this.id=i.id,this.type=i.type,this.options=void 0,this.ctx=i.ctx,this.chart=i.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(i){this.options=i.setContext(this.getContext()),this.axis=i.axis,this._userMin=this.parse(i.min),this._userMax=this.parse(i.max),this._suggestedMin=this.parse(i.suggestedMin),this._suggestedMax=this.parse(i.suggestedMax)}parse(i,e){return i}getUserBounds(){let{_userMin:i,_userMax:e,_suggestedMin:n,_suggestedMax:o}=this;return i=Po(i,Number.POSITIVE_INFINITY),e=Po(e,Number.NEGATIVE_INFINITY),n=Po(n,Number.POSITIVE_INFINITY),o=Po(o,Number.NEGATIVE_INFINITY),{min:Po(i,n),max:Po(e,o),minDefined:ti(i),maxDefined:ti(e)}}getMinMax(i){let r,{min:e,max:n,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:e,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;ln?n:e,n=o&&e>n?e:n,{min:Po(e,Po(n,e)),max:Po(n,Po(e,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mn(this.options.beforeUpdate,[this])}update(i,e,n){const{beginAtZero:o,grace:s,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function ose(t,i,e){const{min:n,max:o}=t,s=Lk(i,(o-n)/2),r=(a,l)=>e&&0===a?0:a+l;return{min:r(n,-Math.abs(s)),max:r(o,s)}}(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=an)return function Are(t,i,e,n){let r,o=0,s=e[0];for(n=Math.ceil(n),r=0;ro-s).pop(),i}(n);for(let r=0,a=s.length-1;ro)return l}return Math.max(o,1)}(o,i,n);if(s>0){let u,p;const m=s>1?Math.round((a-r)/(s-1)):null;for(Vf(i,l,c,tn(m)?0:r-m,r),u=0,p=s-1;u=s||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const u=this._getLabelSizes(),p=u.widest.width,m=u.highest.height,_=pi(this.chart.width-p,0,this.maxWidth);a=i.offset?this.maxWidth/n:_/(n-1),p+6>a&&(a=_/(n-(i.offset?.5:1)),l=this.maxHeight-td(i.grid)-e.padding-W3(i.title,this.chart.options.font),c=Math.sqrt(p*p+m*m),r=kC(Math.min(Math.asin(pi((u.highest.height+6)/a,-1,1)),Math.asin(pi(l/c,-1,1))-Math.asin(pi(m/c,-1,1)))),r=Math.max(o,Math.min(s,r))),this.labelRotation=r}afterCalculateLabelRotation(){Mn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mn(this.options.beforeFit,[this])}fit(){const i={width:0,height:0},{chart:e,options:{ticks:n,title:o,grid:s}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=W3(o,e.options.font);if(a?(i.width=this.maxWidth,i.height=td(s)+l):(i.height=this.maxHeight,i.width=td(s)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:p,highest:m}=this._getLabelSizes(),_=2*n.padding,b=Yo(this.labelRotation),E=Math.cos(b),P=Math.sin(b);a?i.height=Math.min(this.maxHeight,i.height+(n.mirror?0:P*p.width+E*m.height)+_):i.width=Math.min(this.maxWidth,i.width+(n.mirror?0:E*p.width+P*m.height)+_),this._calculatePadding(c,u,P,E)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,e,n,o){const{ticks:{align:s,padding:r},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,_=0;l?c?(m=o*i.width,_=n*e.height):(m=n*i.height,_=o*e.width):"start"===s?_=e.width:"end"===s?m=i.width:"inner"!==s&&(m=i.width/2,_=e.width/2),this.paddingLeft=Math.max((m-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((_-p+r)*this.width/(this.width-p),0)}else{let u=e.height/2,p=i.height/2;"start"===s?(u=0,p=i.height):"end"===s&&(u=e.height,p=0),this.paddingTop=u+r,this.paddingBottom=p+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mn(this.options.afterFit,[this])}isHorizontal(){const{axis:i,position:e}=this.options;return"top"===e||"bottom"===e||"x"===i}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(i),e=0,n=i.length;e{const n=e.gc,o=n.length/2;let s;if(o>i){for(s=0;s({width:s[Pe]||0,height:r[Pe]||0});return{first:ke(0),last:ke(e-1),widest:ke(Ce),highest:ke(ve),widths:s,heights:r}}getLabelForValue(i){return i}getPixelForValue(i,e){return NaN}getValueForPixel(i){}getPixelForTick(i){const e=this.ticks;return i<0||i>e.length-1?null:this.getPixelForValue(e[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);const e=this._startPixel+i*this._length;return function Coe(t){return pi(t,-32768,32767)}(this._alignToPixels?_a(this.chart,e,0):e)}getDecimalForPixel(i){const e=(i-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:i,max:e}=this;return i<0&&e<0?e:i>0&&e>0?i:0}getContext(i){const e=this.ticks||[];if(i>=0&&ia*o?a/n:l/o:l*o0}_computeGridLineItems(i){const e=this.axis,n=this.chart,o=this.options,{grid:s,position:r}=o,a=s.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),p=td(s),m=[],_=s.setContext(this.getContext()),b=_.drawBorder?_.borderWidth:0,E=b/2,P=function(wt){return _a(n,wt,b)};let W,te,fe,Ce,ve,ke,Pe,$e,Ke,pt,jt,Vt;if("top"===r)W=P(this.bottom),ke=this.bottom-p,$e=W-E,pt=P(i.top)+E,Vt=i.bottom;else if("bottom"===r)W=P(this.top),pt=i.top,Vt=P(i.bottom)-E,ke=W+E,$e=this.top+p;else if("left"===r)W=P(this.right),ve=this.right-p,Pe=W-E,Ke=P(i.left)+E,jt=i.right;else if("right"===r)W=P(this.left),Ke=i.left,jt=P(i.right)-E,ve=W+E,Pe=this.left+p;else if("x"===e){if("center"===r)W=P((i.top+i.bottom)/2+.5);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}pt=i.top,Vt=i.bottom,ke=W+E,$e=ke+p}else if("y"===e){if("center"===r)W=P((i.left+i.right)/2);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}ve=W-E,Pe=ve-p,Ke=i.left,jt=i.right}const vn=Nt(o.ticks.maxTicksLimit,u),hi=Math.max(1,Math.ceil(u/vn));for(te=0;tes.value===i);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(i){const e=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i));let s,r;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(e.display)for(s=0,r=o.length;s{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]:[{z:e,draw:o=>{this.draw(o)}}]}getMatchingVisibleMetas(i){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let s,r;for(s=0,r=e.length;s{const n=e.split("."),o=n.pop(),s=[t].concat(n).join("."),r=i[e].split("."),a=r.pop(),l=r.join(".");Qt.route(s,o,l,a)})}(i,t.defaultRoutes),t.descriptors&&Qt.describe(i,t.descriptors)}(i,r,n),this.override&&Qt.override(i.id,i.overrides)),r}get(i){return this.items[i]}unregister(i){const e=this.items,n=i.id,o=this.scope;n in e&&delete e[n],o&&n in Qt[o]&&(delete Qt[o][n],this.override&&delete ma[n])}}var bs=new class Rre{constructor(){this.controllers=new Bf(vs,"datasets",!0),this.elements=new Bf(Xo,"elements"),this.plugins=new Bf(Object,"plugins"),this.scales=new Bf(xa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,e,n){[...e].forEach(o=>{const s=n||this._getRegistryForType(o);n||s.isForType(o)||s===this.plugins&&o.id?this._exec(i,s,o):_n(o,r=>{const a=n||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,e,n){const o=DC(i);Mn(n["before"+o],[],n),e[i](n),Mn(n["after"+o],[],n)}_getRegistryForType(i){for(let e=0;e{class t extends vs{update(e){const n=this._cachedMeta,{data:o=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:a}=qk(n,o,s);if(this._drawStart=r,this._drawCount=a,Wk(n)&&(r=0,a=o.length),this.options.showLine){const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:u},e)}this.updateElements(o,r,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=bs.getElement("line")),super.addElements()}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,p=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(p),_=this.includeOptions(s,m),b=a.axis,E=l.axis,{spanGaps:P,segment:W}=this.options,te=Gl(P)?P:Number.POSITIVE_INFINITY,fe=this.chart._animationsDisabled||r||"none"===s;let Ce=n>0&&this.getParsed(n-1);for(let ve=n;ve0&&Math.abs(Pe[b]-Ce[b])>te,W&&($e.parsed=Pe,$e.raw=u.data[ve]),_&&($e.options=m||this.resolveDataElementOptions(ve,ke.active?"active":s)),fe||this.updateElement(ke,ve,$e,s),Ce=Pe}this.updateSharedOptions(m,s,p)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,a)/2}}return t.id="scatter",t.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},t.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:i=>"("+i.label+", "+i.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},t})()});function Aa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Vre={_date:(()=>{class t{constructor(e){this.options=e||{}}init(e){}formats(){return Aa()}parse(e,n){return Aa()}format(e,n){return Aa()}add(e,n,o){return Aa()}diff(e,n,o){return Aa()}startOf(e,n,o){return Aa()}endOf(e,n){return Aa()}}return t.override=function(i){Object.assign(t.prototype,i)},t})()};function Bre(t,i,e,n){const{controller:o,data:s,_sorted:r}=t,a=o._cachedMeta.iScale;if(a&&i===a.axis&&"r"!==i&&r&&s.length){const l=a._reversePixels?voe:Js;if(!n)return l(s,i,e);if(o._sharedOptions){const c=s[0],u="function"==typeof c.getRange&&c.getRange(i);if(u){const p=l(s,i,e-u),m=l(s,i,e+u);return{lo:p.lo,hi:m.hi}}}}return{lo:0,hi:s.length-1}}function nd(t,i,e,n,o){const s=t.getSortedVisibleDatasetMetas(),r=e[i];for(let a=0,l=s.length;a{l[r](i[e],o)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(i.x,i.y,o))}),n&&!a?[]:s}var Ure={evaluateInteractionItems:nd,modes:{index(t,i,e,n){const o=ba(i,t),s=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,p=c.data[u];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:u})}),l):[]},dataset(t,i,e,n){const o=ba(i,t),s=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uXC(t,ba(i,t),e.axis||"xy",n,e.includeInvisible||!1),nearest:(t,i,e,n)=>JC(t,ba(i,t),e.axis||"xy",e.intersect,n,e.includeInvisible||!1),x:(t,i,e,n)=>Q3(t,ba(i,t),"x",e.intersect,n),y:(t,i,e,n)=>Q3(t,ba(i,t),"y",e.intersect,n)}};const Z3=["left","top","right","bottom"];function id(t,i){return t.filter(e=>e.pos===i)}function Y3(t,i){return t.filter(e=>-1===Z3.indexOf(e.pos)&&e.box.axis===i)}function od(t,i){return t.sort((e,n)=>{const o=i?n:e,s=i?e:n;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function X3(t,i,e,n){return Math.max(t[e],i[e])+Math.max(t[n],i[n])}function J3(t,i){t.top=Math.max(t.top,i.top),t.left=Math.max(t.left,i.left),t.bottom=Math.max(t.bottom,i.bottom),t.right=Math.max(t.right,i.right)}function Wre(t,i,e,n){const{pos:o,box:s}=e,r=t.maxPadding;if(!qt(o)){e.size&&(t[o]-=e.size);const p=n[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?s.height:s.width),e.size=p.size/p.count,t[o]+=e.size}s.getPadding&&J3(r,s.getPadding());const a=Math.max(0,i.outerWidth-X3(r,t,"left","right")),l=Math.max(0,i.outerHeight-X3(r,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function Zre(t,i){const e=i.maxPadding;return function n(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(r=>{s[r]=Math.max(i[r],e[r])}),s}(t?["left","right"]:["top","bottom"])}function sd(t,i,e,n){const o=[];let s,r,a,l,c,u;for(s=0,r=t.length,c=0;sc.box.fullSize),!0),n=od(id(i,"left"),!0),o=od(id(i,"right")),s=od(id(i,"top"),!0),r=od(id(i,"bottom")),a=Y3(i,"x"),l=Y3(i,"y");return{fullSize:e,leftAndTop:n.concat(s),rightAndBottom:o.concat(l).concat(r).concat(a),chartArea:id(i,"chartArea"),vertical:n.concat(o).concat(l),horizontal:s.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;_n(t.boxes,E=>{"function"==typeof E.beforeLayout&&E.beforeLayout()});const u=l.reduce((E,P)=>P.box.options&&!1===P.box.options.display?E:E+1,0)||1,p=Object.freeze({outerWidth:i,outerHeight:e,padding:o,availableWidth:s,availableHeight:r,vBoxMaxWidth:s/2/u,hBoxMaxHeight:r/2}),m=Object.assign({},o);J3(m,Li(n));const _=Object.assign({maxPadding:m,w:s,h:r,x:o.left,y:o.top},o),b=function Gre(t,i){const e=function Kre(t){const i={};for(const e of t){const{stack:n,pos:o,stackWeight:s}=e;if(!n||!Z3.includes(o))continue;const r=i[n]||(i[n]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=s}return i}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=i;let s,r,a;for(s=0,r=t.length;s{const P=E.box;Object.assign(P,t.chartArea),P.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class tM{acquireContext(i,e){}releaseContext(i){return!1}addEventListener(i,e,n){}removeEventListener(i,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(i,e,n,o){return e=Math.max(0,e||i.width),n=n||i.height,{width:e,height:Math.max(0,o?Math.floor(e/o):n)}}isAttached(i){return!0}updateConfig(i){}}class Yre extends tM{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}}const zf="$chartjs",Xre={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nM=t=>null===t||""===t,iM=!!Sse&&{passive:!0};function tae(t,i,e){t.canvas.removeEventListener(i,e,iM)}function jf(t,i){for(const e of t)if(e===i||e.contains(i))return!0}function iae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.addedNodes,n),r=r&&!jf(a.removedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function oae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.removedNodes,n),r=r&&!jf(a.addedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}const rd=new Map;let oM=0;function sM(){const t=window.devicePixelRatio;t!==oM&&(oM=t,rd.forEach((i,e)=>{e.currentDevicePixelRatio!==t&&i()}))}function aae(t,i,e){const n=t.canvas,o=n&&qC(n);if(!o)return;const s=Gk((a,l)=>{const c=o.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;0===c&&0===u||s(c,u)});return r.observe(o),function sae(t,i){rd.size||window.addEventListener("resize",sM),rd.set(t,i)}(t,s),r}function ev(t,i,e){e&&e.disconnect(),"resize"===i&&function rae(t){rd.delete(t),rd.size||window.removeEventListener("resize",sM)}(t)}function lae(t,i,e){const n=t.canvas,o=Gk(s=>{null!==t.ctx&&e(function nae(t,i){const e=Xre[t.type]||t.type,{x:n,y:o}=ba(t,i);return{type:e,chart:i,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(s,t))},t,s=>{const r=s[0];return[r,r.offsetX,r.offsetY]});return function eae(t,i,e){t.addEventListener(i,e,iM)}(n,i,o),o}class cae extends tM{acquireContext(i,e){const n=i&&i.getContext&&i.getContext("2d");return n&&n.canvas===i?(function Jre(t,i){const e=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[zf]={initial:{height:n,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",nM(o)){const s=b3(t,"width");void 0!==s&&(t.width=s)}if(nM(n))if(""===t.style.height)t.height=t.width/(i||2);else{const s=b3(t,"height");void 0!==s&&(t.height=s)}}(i,e),n):null}releaseContext(i){const e=i.canvas;if(!e[zf])return!1;const n=e[zf].initial;["height","width"].forEach(s=>{const r=n[s];tn(r)?e.removeAttribute(s):e.setAttribute(s,r)});const o=n.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[zf],!0}addEventListener(i,e,n){this.removeEventListener(i,e),(i.$proxies||(i.$proxies={}))[e]=({attach:iae,detach:oae,resize:aae}[e]||lae)(i,e,n)}removeEventListener(i,e){const n=i.$proxies||(i.$proxies={}),o=n[e];o&&(({attach:ev,detach:ev,resize:ev}[e]||tae)(i,e,o),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,e,n,o){return function Tse(t,i,e,n){const o=Rf(t),s=va(o,"margin"),r=Ff(o.maxWidth,t,"clientWidth")||wf,a=Ff(o.maxHeight,t,"clientHeight")||wf,l=function wse(t,i,e){let n,o;if(void 0===i||void 0===e){const s=qC(t);if(s){const r=s.getBoundingClientRect(),a=Rf(s),l=va(a,"border","width"),c=va(a,"padding");i=r.width-c.width-l.width,e=r.height-c.height-l.height,n=Ff(a.maxWidth,s,"clientWidth"),o=Ff(a.maxHeight,s,"clientHeight")}else i=t.clientWidth,e=t.clientHeight}return{width:i,height:e,maxWidth:n||wf,maxHeight:o||wf}}(t,i,e);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const p=va(o,"border","width"),m=va(o,"padding");c-=m.width+p.width,u-=m.height+p.height}return c=Math.max(0,c-s.width),u=Math.max(0,n?Math.floor(c/n):u-s.height),c=WC(Math.min(c,r,l.maxWidth)),u=WC(Math.min(u,a,l.maxHeight)),c&&!u&&(u=WC(c/2)),{width:c,height:u}}(i,e,n,o)}isAttached(i){const e=qC(i);return!(!e||!e.isConnected)}}class dae{constructor(){this._init=[]}notify(i,e,n,o){"beforeInit"===e&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install"));const s=o?this._descriptors(i).filter(o):this._descriptors(i),r=this._notify(s,i,e,n);return"afterDestroy"===e&&(this._notify(s,i,"stop"),this._notify(this._init,i,"uninstall")),r}_notify(i,e,n,o){o=o||{};for(const s of i){const r=s.plugin;if(!1===Mn(r[n],[e,o,s.options],r)&&o.cancelable)return!1}return!0}invalidate(){tn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),e}_createDescriptors(i,e){const n=i&&i.config,o=Nt(n.options&&n.options.plugins,{}),s=function pae(t){const i={},e=[],n=Object.keys(bs.plugins.items);for(let s=0;ss.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(o(e,n),i,"stop"),this._notify(o(n,e),i,"start")}}function hae(t,i){return i||!1!==t?!0===t?{}:t:null}function gae(t,{plugin:i,local:e},n,o){const s=t.pluginScopeKeys(i),r=t.getOptionScopes(n,s);return e&&i.defaults&&r.push(i.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function tv(t,i){return((i.datasets||{})[t]||{}).indexAxis||i.indexAxis||(Qt.datasets[t]||{}).indexAxis||"x"}function nv(t,i){return"x"===t||"y"===t?t:i.axis||function Iae(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(i.position)||t.charAt(0).toLowerCase()}function rM(t){const i=t.options||(t.options={});i.plugins=Nt(i.plugins,{}),i.scales=function Cae(t,i){const e=ma[t.type]||{scales:{}},n=i.scales||{},o=tv(t.type,i),s=Object.create(null),r=Object.create(null);return Object.keys(n).forEach(a=>{const l=n[a];if(!qt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=nv(a,l),u=function _ae(t,i){return t===i?"_index_":"_value_"}(c,o),p=e.scales||{};s[c]=s[c]||a,r[a]=ju(Object.create(null),[{axis:c},l,p[c],p[u]])}),t.data.datasets.forEach(a=>{const l=a.type||t.type,c=a.indexAxis||tv(l,i),p=(ma[l]||{}).scales||{};Object.keys(p).forEach(m=>{const _=function mae(t,i){let e=t;return"_index_"===t?e=i:"_value_"===t&&(e="x"===i?"y":"x"),e}(m,c),b=a[_+"AxisID"]||s[_]||_;r[b]=r[b]||Object.create(null),ju(r[b],[{axis:_},n[b],p[m]])})}),Object.keys(r).forEach(a=>{const l=r[a];ju(l,[Qt.scales[l.type],Qt.scale])}),r}(t,i)}function aM(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lM=new Map,cM=new Set;function Uf(t,i){let e=lM.get(t);return e||(e=i(),lM.set(t,e),cM.add(e)),e}const ad=(t,i,e)=>{const n=Pr(i,e);void 0!==n&&t.add(n)};class bae{constructor(i){this._config=function vae(t){return(t=t||{}).data=aM(t.data),rM(t),t}(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=aM(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){const i=this._config;this.clearCache(),rM(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Uf(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,e){return Uf(`${i}.transition.${e}`,()=>[[`datasets.${i}.transitions.${e}`,`transitions.${e}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,e){return Uf(`${i}-${e}`,()=>[[`datasets.${i}.elements.${e}`,`datasets.${i}`,`elements.${e}`,""]])}pluginScopeKeys(i){const e=i.id;return Uf(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,e){const n=this._scopeCache;let o=n.get(i);return(!o||e)&&(o=new Map,n.set(i,o)),o}getOptionScopes(i,e,n){const{options:o,type:s}=this,r=this._cachedScopes(i,n),a=r.get(e);if(a)return a;const l=new Set;e.forEach(u=>{i&&(l.add(i),u.forEach(p=>ad(l,i,p))),u.forEach(p=>ad(l,o,p)),u.forEach(p=>ad(l,ma[s]||{},p)),u.forEach(p=>ad(l,Qt,p)),u.forEach(p=>ad(l,HC,p))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),cM.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:i,type:e}=this;return[i,ma[e]||{},Qt.datasets[e]||{},{type:e},Qt,HC]}resolveNamedOptions(i,e,n,o=[""]){const s={$shared:!0},{resolver:r,subPrefixes:a}=uM(this._resolverCache,i,o);let l=r;(function xae(t,i){const{isScriptable:e,isIndexable:n}=d3(t);for(const o of i){const s=e(o),r=n(o),a=(r||s)&&t[o];if(s&&(Fr(a)||yae(a))||r&&kn(a))return!0}return!1})(r,e)&&(s.$shared=!1,l=Wl(r,n=Fr(n)?n():n,this.createResolver(i,n,a)));for(const c of e)s[c]=l[c];return s}createResolver(i,e,n=[""],o){const{resolver:s}=uM(this._resolverCache,i,n);return qt(e)?Wl(s,e,void 0,o):s}}function uM(t,i,e){let n=t.get(i);n||(n=new Map,t.set(i,n));const o=e.join();let s=n.get(o);return s||(s={resolver:$C(i,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,s)),s}const yae=t=>qt(t)&&Object.getOwnPropertyNames(t).reduce((i,e)=>i||Fr(t[e]),!1),wae=["top","bottom","left","right","chartArea"];function dM(t,i){return"top"===t||"bottom"===t||-1===wae.indexOf(t)&&"x"===i}function pM(t,i){return function(e,n){return e[t]===n[t]?e[i]-n[i]:e[t]-n[t]}}function hM(t){const i=t.chart,e=i.options.animation;i.notifyPlugins("afterRender"),Mn(e&&e.onComplete,[t],i)}function Tae(t){const i=t.chart,e=i.options.animation;Mn(e&&e.onProgress,[t],i)}function fM(t){return C3()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const $f={},gM=t=>{const i=fM(t);return Object.values($f).filter(e=>e.canvas===i).pop()};function Sae(t,i,e){const n=Object.keys(t);for(const o of n){const s=+o;if(s>=i){const r=t[o];delete t[o],(e>0||s>i)&&(t[s+e]=r)}}}class iv{constructor(i,e){const n=this.config=new bae(e),o=fM(i),s=gM(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function uae(t){return!C3()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Yre:cae}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=aoe(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function xoe(t,i){let e;return function(...n){return i?(clearTimeout(e),e=setTimeout(t,i,n)):t.apply(this,n),i}}(p=>this.update(p),r.resizeDelay||0),this._dataChanges=[],$f[this.id]=this,a&&l?(tr.listen(this,"complete",hM),tr.listen(this,"progress",Tae),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:i,maintainAspectRatio:e},width:n,height:o,_aspectRatio:s}=this;return tn(i)?e&&s?s:o?n/o:null:i}get data(){return this.config.data}set data(i){this.config.data=i}get options(){return this._options}set options(i){this.config.options=i}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():v3(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return l3(this.canvas,this.ctx),this}stop(){return tr.stop(this),this}resize(i,e){tr.running(this)?this._resizeBeforeDraw={width:i,height:e}:this._resize(i,e)}_resize(i,e){const n=this.options,r=this.platform.getMaximumSize(this.canvas,i,e,n.maintainAspectRatio&&this.aspectRatio),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,v3(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Mn(n.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){_n(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const i=this.options,e=i.scales,n=this.scales,o=Object.keys(n).reduce((r,a)=>(r[a]=!1,r),{});let s=[];e&&(s=s.concat(Object.keys(e).map(r=>{const a=e[r],l=nv(r,a),c="r"===l,u="x"===l;return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),_n(s,r=>{const a=r.options,l=a.id,c=nv(l,a),u=Nt(a.type,r.dtype);(void 0===a.position||dM(a.position,c)!==dM(r.dposition))&&(a.position=r.dposition),o[l]=!0;let p=null;l in n&&n[l].type===u?p=n[l]:(p=new(bs.getScale(u))({id:l,type:u,ctx:this.ctx,chart:this}),n[p.id]=p),p.init(a,i)}),_n(o,(r,a)=>{r||delete n[a]}),_n(n,r=>{Pi.configure(this,r,r.options),Pi.addBox(this,r)})}_updateMetasets(){const i=this._metasets,e=this.data.datasets.length,n=i.length;if(i.sort((o,s)=>o.index-s.index),n>e){for(let o=e;oe.length&&delete this._stacks,i.forEach((n,o)=>{0===e.filter(s=>s===n._dataset).length&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const i=[],e=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=e.length;n{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(i){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:i,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(i),this.notifyPlugins("afterUpdate",{mode:i}),this._layers.sort(pM("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_n(this.scales,i=>{Pi.removeBox(this,i)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const i=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(i.events);(!Rk(e,n)||!!this._responsiveListeners!==i.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:i}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:s}of e)Sae(i,o,"_removeElements"===n?-s:s)}_getUniformDataChanges(){const i=this._dataChanges;if(!i||!i.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=s=>new Set(i.filter(r=>r[0]===s).map((r,a)=>a+","+r.splice(1).join(","))),o=n(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(i){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Pi.update(this,this.width,this.height,i);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],_n(this.boxes,o=>{n&&"chartArea"===o.position||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(i){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:i,cancelable:!0})){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(i[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(i){const e=this.ctx,n=i._clip,o=!n.disabled,s=this.chartArea,r={meta:i,index:i.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(o&&Of(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),i.controller.draw(),o&&Lf(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(i){return Zu(i,this.chartArea,this._minPadding)}getElementsAtEventForMode(i,e,n,o){const s=Ure.modes[e];return"function"==typeof s?s(this,i,n,o):[]}getDatasetMeta(i){const e=this.data.datasets[i],n=this._metasets;let o=n.filter(s=>s&&s._dataset===e).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:i,_dataset:e,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(i){const e=this.data.datasets[i];if(!e)return!1;const n=this.getDatasetMeta(i);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(i,e){this.getDatasetMeta(i).hidden=!e}toggleDataVisibility(i){this._hiddenIndices[i]=!this._hiddenIndices[i]}getDataVisibility(i){return!this._hiddenIndices[i]}_updateVisibility(i,e,n){const o=n?"show":"hide",s=this.getDatasetMeta(i),r=s.controller._resolveAnimations(void 0,o);Fo(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(i,n),r.update(s,{visible:n}),this.update(a=>a.datasetIndex===i?o:void 0))}hide(i,e){this._updateVisibility(i,e,!1)}show(i,e){this._updateVisibility(i,e,!0)}_destroyDatasetMeta(i){const e=this._metasets[i];e&&e.controller&&e.controller._destroy(),delete this._metasets[i]}_stop(){let i,e;for(this.stop(),tr.remove(this),i=0,e=this.data.datasets.length;i{e.addEventListener(this,s,r),i[s]=r},o=(s,r,a)=>{s.offsetX=r,s.offsetY=a,this._eventHandler(s)};_n(this.options.events,s=>n(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const i=this._responsiveListeners,e=this.platform,n=(l,c)=>{e.addEventListener(this,l,c),i[l]=c},o=(l,c)=>{i[l]&&(e.removeEventListener(this,l,c),delete i[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",s),n("detach",r)};r=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){_n(this._listeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._listeners={},_n(this._responsiveListeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._responsiveListeners=void 0}updateHoverStyle(i,e,n){const o=n?"set":"remove";let s,r,a,l;for("dataset"===e&&(s=this.getDatasetMeta(i[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=i.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[r],index:r}});!xf(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(i,e,n){return this._plugins.notify(this,i,e,n)}_updateHoverStyles(i,e,n){const o=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),r=s(e,i),a=n?i:s(i,e);r.length&&this.updateHoverStyle(r,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(i,e){const n={event:i,replay:e,cancelable:!0,inChartArea:this.isPointInArea(i)},o=r=>(r.options.events||this.options.events).includes(i.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const s=this._handleEvent(i,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(s||n.changed)&&this.render(),this}_handleEvent(i,e,n){const{_active:o=[],options:s}=this,a=this._getActiveElements(i,o,n,e),l=function hoe(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(i),c=function Eae(t,i,e,n){return e&&"mouseout"!==t.type?n?i:t:null}(i,this._lastEvent,n,l);n&&(this._lastEvent=null,Mn(s.onHover,[i,a,this],this),l&&Mn(s.onClick,[i,a,this],this));const u=!xf(a,o);return(u||e)&&(this._active=a,this._updateHoverStyles(a,o,e)),this._lastEvent=c,u}_getActiveElements(i,e,n,o){if("mouseout"===i.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(i,s.mode,s,o)}}const mM=()=>_n(iv.instances,t=>t._plugins.invalidate()),Br=!0;function _M(t,i,e){const{startAngle:n,pixelMargin:o,x:s,y:r,outerRadius:a,innerRadius:l}=i;let c=o/a;t.beginPath(),t.arc(s,r,a,n-c,e+c),l>o?(c=o/l,t.arc(s,r,l,e+c,n-c,!0)):t.arc(s,r,o,e+Qn,n-Qn),t.closePath(),t.clip()}function Yl(t,i,e,n){return{x:e+t*Math.cos(i),y:n+t*Math.sin(i)}}function ov(t,i,e,n,o,s){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=i,p=Math.max(i.outerRadius+n+e-c,0),m=u>0?u+n+e+c:0;let _=0;const b=o-l;if(n){const tt=((u>0?u-n:0)+(p>0?p-n:0))/2;_=(b-(0!==tt?b*tt/(tt+n):b))/2}const P=(b-Math.max(.001,b*p-e/Vn)/p)/2,W=l+P+_,te=o-P-_,{outerStart:fe,outerEnd:Ce,innerStart:ve,innerEnd:ke}=function kae(t,i,e,n){const o=function Dae(t){return UC(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),s=(e-i)/2,r=Math.min(s,n*i/2),a=l=>{const c=(e-Math.min(s,l))*n/2;return pi(l,0,Math.min(s,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:pi(o.innerStart,0,r),innerEnd:pi(o.innerEnd,0,r)}}(i,m,p,te-W),Pe=p-fe,$e=p-Ce,Ke=W+fe/Pe,pt=te-Ce/$e,jt=m+ve,Vt=m+ke,vn=W+ve/jt,hi=te-ke/Vt;if(t.beginPath(),s){if(t.arc(r,a,p,Ke,pt),Ce>0){const tt=Yl($e,pt,r,a);t.arc(tt.x,tt.y,Ce,pt,te+Qn)}const wt=Yl(Vt,te,r,a);if(t.lineTo(wt.x,wt.y),ke>0){const tt=Yl(Vt,hi,r,a);t.arc(tt.x,tt.y,ke,te+Qn,hi+Math.PI)}if(t.arc(r,a,m,te-ke/m,W+ve/m,!0),ve>0){const tt=Yl(jt,vn,r,a);t.arc(tt.x,tt.y,ve,vn+Math.PI,W-Qn)}const We=Yl(Pe,W,r,a);if(t.lineTo(We.x,We.y),fe>0){const tt=Yl(Pe,Ke,r,a);t.arc(tt.x,tt.y,fe,W-Qn,Ke)}}else{t.moveTo(r,a);const wt=Math.cos(Ke)*p+r,We=Math.sin(Ke)*p+a;t.lineTo(wt,We);const tt=Math.cos(pt)*p+r,ct=Math.sin(pt)*p+a;t.lineTo(tt,ct)}t.closePath()}Object.defineProperties(iv,{defaults:{enumerable:Br,value:Qt},instances:{enumerable:Br,value:$f},overrides:{enumerable:Br,value:ma},registry:{enumerable:Br,value:bs},version:{enumerable:Br,value:"3.9.1"},getChart:{enumerable:Br,value:gM},register:{enumerable:Br,value:(...t)=>{bs.add(...t),mM()}},unregister:{enumerable:Br,value:(...t)=>{bs.remove(...t),mM()}}});class Kf extends Xo{constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,e,n){const o=this.getProps(["x","y"],n),{angle:s,distance:r}=zk(o,{x:i,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),m=this.options.spacing/2,b=Nt(p,l-a)>=Cn||Ku(s,a,l),E=Xs(r,c+m,u+m);return b&&E}getCenterPoint(i){const{x:e,y:n,startAngle:o,endAngle:s,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],i),{offset:l,spacing:c}=this.options,u=(o+s)/2,p=(r+a+c+l)/2;return{x:e+Math.cos(u)*p,y:n+Math.sin(u)*p}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:e,circumference:n}=this,o=(e.offset||0)/2,s=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Cn?Math.floor(n/Cn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=0;if(o){a=o/2;const c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=Vn&&(a=o)}i.fillStyle=e.backgroundColor,i.strokeStyle=e.borderColor;const l=function Mae(t,i,e,n,o){const{fullCircles:s,startAngle:r,circumference:a}=i;let l=i.endAngle;if(s){ov(t,i,e,n,r+Cn,o);for(let c=0;ca&&s>a)?n+c-l:c-l}}function Rae(t,i,e,n){const{points:o,options:s}=i,{count:r,start:a,loop:l,ilen:c}=CM(o,e,n),u=function Fae(t){return t.stepped?Zoe:t.tension||"monotone"===t.cubicInterpolationMode?Yoe:Pae}(s);let _,b,E,{move:p=!0,reverse:m}=n||{};for(_=0;_<=c;++_)b=o[(a+(m?c-_:_))%r],!b.skip&&(p?(t.moveTo(b.x,b.y),p=!1):u(t,E,b,m,s.stepped),E=b);return l&&(b=o[(a+(m?c:0))%r],u(t,E,b,m,s.stepped)),!!l}function Nae(t,i,e,n){const o=i.points,{count:s,start:r,ilen:a}=CM(o,e,n),{move:l=!0,reverse:c}=n||{};let m,_,b,E,P,W,u=0,p=0;const te=Ce=>(r+(c?a-Ce:Ce))%s,fe=()=>{E!==P&&(t.lineTo(u,P),t.lineTo(u,E),t.lineTo(u,W))};for(l&&(_=o[te(0)],t.moveTo(_.x,_.y)),m=0;m<=a;++m){if(_=o[te(m)],_.skip)continue;const Ce=_.x,ve=_.y,ke=0|Ce;ke===b?(veP&&(P=ve),u=(p*u+Ce)/++p):(fe(),t.lineTo(Ce,ve),b=ke,p=0,E=P=ve),W=ve}fe()}function sv(t){const i=t.options;return t._decimated||t._loop||i.tension||"monotone"===i.cubicInterpolationMode||i.stepped||i.borderDash&&i.borderDash.length?Rae:Nae}Kf.id="arc",Kf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Kf.defaultRoutes={backgroundColor:"backgroundColor"};const zae="function"==typeof Path2D;let Gf=(()=>{class t extends Xo{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;!o.tension&&"monotone"!==o.cubicInterpolationMode||o.stepped||this._pointsUpdated||(vse(this._points,o,e,o.spanGaps?this._loop:this._fullLoop,n),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Rse(t,i){const e=t.points,n=t.options.spanGaps,o=e.length;if(!o)return[];const s=!!t._loop,{start:r,end:a}=function Pse(t,i,e,n){let o=0,s=i-1;if(e&&!n)for(;oo&&t[s%i].skip;)s--;return s%=i,{start:o,end:s}}(e,o,s,n);return function D3(t,i,e,n){return n&&n.setContext&&e?function Nse(t,i,e,n){const o=t._chart.getContext(),s=k3(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=e.length,c=[];let u=s,p=i[0].start,m=p;function _(b,E,P,W){const te=a?-1:1;if(b!==E){for(b+=l;e[b%l].skip;)b-=te;for(;e[E%l].skip;)E+=te;b%l!=E%l&&(c.push({start:b%l,end:E%l,loop:P,style:W}),u=W,p=E%l)}}for(const b of i){p=a?p:b.start;let P,E=e[p%l];for(m=p+1;m<=b.end;m++){const W=e[m%l];P=k3(n.setContext(Vr(o,{type:"segment",p0:E,p1:W,p0DataIndex:(m-1)%l,p1DataIndex:m%l,datasetIndex:r}))),Vse(P,u)&&_(p,m-1,b.loop,u),E=W,u=P}p"borderDash"!==i&&"fill"!==i},t})();function vM(t,i,e,n){const o=t.options,{[e]:s}=t.getProps([e],n);return Math.abs(i-s){class t extends Xo{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,o){const s=this.options,{x:r,y:a}=this.getProps(["x","y"],o);return Math.pow(e-r,2)+Math.pow(n-a,2){yM(i)})}var Jae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,i,e)=>{if(!e.enabled)return void xM(t);const n=t.width;t.data.datasets.forEach((o,s)=>{const{_data:r,indexAxis:a}=o,l=t.getDatasetMeta(s),c=r||o.data;if("y"===Xu([a,t.options.indexAxis])||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type||t.options.parsing)return;let b,{start:p,count:m}=function Xae(t,i){const e=i.length;let o,n=0;const{iScale:s}=t,{min:r,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(n=pi(Js(i,s.axis,r).lo,0,e-1)),o=c?pi(Js(i,s.axis,a).hi+1,n,e)-n:e-n,{start:n,count:o}}(l,c);if(m<=(e.threshold||4*n))yM(o);else{switch(tn(r)&&(o._data=c,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(E){this._data=E}})),e.algorithm){case"lttb":b=function Zae(t,i,e,n,o){const s=o.samples||n;if(s>=e)return t.slice(i,i+e);const r=[],a=(e-2)/(s-2);let l=0;const c=i+e-1;let p,m,_,b,E,u=i;for(r[l++]=t[u],p=0;p_&&(_=b,m=t[te],E=te);r[l++]=m,u=E}return r[l++]=t[c],r}(c,p,m,n,e);break;case"min-max":b=function Yae(t,i,e,n){let r,a,l,c,u,p,m,_,b,E,o=0,s=0;const P=[],te=t[i].x,Ce=t[i+e-1].x-te;for(r=i;rE&&(E=c,m=r),o=(s*o+a.x)/++s;else{const ke=r-1;if(!tn(p)&&!tn(m)){const Pe=Math.min(p,m),$e=Math.max(p,m);Pe!==_&&Pe!==ke&&P.push({...t[Pe],x:o}),$e!==_&&$e!==ke&&P.push({...t[$e],x:o})}r>0&&ke!==_&&P.push(t[ke]),P.push(a),u=ve,s=0,b=E=c,p=m=_=r}}return P}(c,p,m,n);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=b}})},destroy(t){xM(t)}};function lv(t,i,e,n){if(n)return;let o=i[t],s=e[t];return"angle"===t&&(o=vo(o),s=vo(s)),{property:t,start:o,end:s}}function cv(t,i,e){for(;i>t;i--){const n=e[i];if(!isNaN(n.x)&&!isNaN(n.y))break}return i}function AM(t,i,e,n){return t&&i?n(t[e],i[e]):t?t[e]:i?i[e]:0}function wM(t,i){let e=[],n=!1;return kn(t)?(n=!0,e=t):e=function tle(t,i){const{x:e=null,y:n=null}=t||{},o=i.points,s=[];return i.segments.forEach(({start:r,end:a})=>{a=cv(r,a,o);const l=o[r],c=o[a];null!==n?(s.push({x:l.x,y:n}),s.push({x:c.x,y:n})):null!==e&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}(t,i),e.length?new Gf({points:e,options:{tension:0},_loop:n,_fullLoop:n}):null}function TM(t){return t&&!1!==t.fill}function nle(t,i,e){let o=t[i].fill;const s=[i];let r;if(!e)return o;for(;!1!==o&&-1===s.indexOf(o);){if(!ti(o))return o;if(r=t[o],!r)return!1;if(r.visible)return o;s.push(o),o=r.fill}return!1}function ile(t,i,e){const n=function ale(t){const i=t.options,e=i.fill;let n=Nt(e&&e.target,e);return void 0===n&&(n=!!i.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(qt(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return ti(o)&&Math.floor(o)===o?function ole(t,i,e,n){return("-"===t||"+"===t)&&(e=i+e),!(e===i||e<0||e>=n)&&e}(n[0],i,o,e):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function ule(t,i,e){const n=[];for(let o=0;o=0;--r){const a=o[r].$filler;a&&(a.line.updateControlPoints(s,a.axis),n&&a.fill&&uv(t.ctx,a,s))}},beforeDatasetsDraw(t,i,e){if("beforeDatasetsDraw"!==e.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const s=n[o].$filler;TM(s)&&uv(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,i,e){const n=i.meta.$filler;!TM(n)||"beforeDatasetDraw"!==e.drawTime||uv(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const MM=(t,i)=>{let{boxHeight:e=i,boxWidth:n=i}=t;return t.usePointStyle&&(e=Math.min(e,i),n=t.pointStyleWidth||Math.min(n,i)),{boxWidth:n,boxHeight:e,itemHeight:Math.max(i,e)}};class OM extends Xo{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e,n){this.maxWidth=i,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const i=this.options.labels||{};let e=Mn(i.generateLabels,[this.chart],this)||[];i.filter&&(e=e.filter(n=>i.filter(n,this.chart.data))),i.sort&&(e=e.sort((n,o)=>i.sort(n,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:i,ctx:e}=this;if(!i.display)return void(this.width=this.height=0);const n=i.labels,o=ui(n.font),s=o.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=MM(n,s);let c,u;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(u,i.maxHeight||this.maxHeight)}_fitRows(i,e,n,o){const{ctx:s,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let p=i;s.textAlign="left",s.textBaseline="middle";let m=-1,_=-u;return this.legendItems.forEach((b,E)=>{const P=n+e/2+s.measureText(b.text).width;(0===E||c[c.length-1]+P+2*a>r)&&(p+=u,c[c.length-(E>0?0:1)]=0,_+=u,m++),l[E]={left:0,top:_,row:m,width:P,height:o},c[c.length-1]+=P+a}),p}_fitCols(i,e,n,o){const{ctx:s,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-i;let p=a,m=0,_=0,b=0,E=0;return this.legendItems.forEach((P,W)=>{const te=n+e/2+s.measureText(P.text).width;W>0&&_+o+2*a>u&&(p+=m+a,c.push({width:m,height:_}),b+=m+a,E++,m=_=0),l[W]={left:b,top:_,col:E,width:te,height:o},m=Math.max(m,te),_+=o+a}),p+=m,c.push({width:m,height:_}),p}adjustHitBoxes(){if(!this.options.display)return;const i=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:o},rtl:s}}=this,r=Zl(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Oi(n,this.left+o,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=Oi(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+i+o,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+o}else{let a=0,l=Oi(n,this.top+i+o,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=Oi(n,this.top+i+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const i=this.ctx;Of(i,this),this._draw(),Lf(i)}}_draw(){const{options:i,columnSizes:e,lineWidths:n,ctx:o}=this,{align:s,labels:r}=i,a=Qt.color,l=Zl(i.rtl,this.left,this.width),c=ui(r.font),{color:u,padding:p}=r,m=c.size,_=m/2;let b;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:E,boxHeight:P,itemHeight:W}=MM(r,m),Ce=this.isHorizontal(),ve=this._computeTitleHeight();b=Ce?{x:Oi(s,this.left+p,this.right-n[0]),y:this.top+p+ve,line:0}:{x:this.left+p,y:Oi(s,this.top+ve+p,this.bottom-e[0].height),line:0},x3(this.ctx,i.textDirection);const ke=W+p;this.legendItems.forEach((Pe,$e)=>{o.strokeStyle=Pe.fontColor||u,o.fillStyle=Pe.fontColor||u;const Ke=o.measureText(Pe.text).width,pt=l.textAlign(Pe.textAlign||(Pe.textAlign=r.textAlign)),jt=E+_+Ke;let Vt=b.x,vn=b.y;l.setWidth(this.width),Ce?$e>0&&Vt+jt+p>this.right&&(vn=b.y+=ke,b.line++,Vt=b.x=Oi(s,this.left+p,this.right-n[b.line])):$e>0&&vn+ke>this.bottom&&(Vt=b.x=Vt+e[b.line].width+p,b.line++,vn=b.y=Oi(s,this.top+ve+p,this.bottom-e[b.line].height)),function(Pe,$e,Ke){if(isNaN(E)||E<=0||isNaN(P)||P<0)return;o.save();const pt=Nt(Ke.lineWidth,1);if(o.fillStyle=Nt(Ke.fillStyle,a),o.lineCap=Nt(Ke.lineCap,"butt"),o.lineDashOffset=Nt(Ke.lineDashOffset,0),o.lineJoin=Nt(Ke.lineJoin,"miter"),o.lineWidth=pt,o.strokeStyle=Nt(Ke.strokeStyle,a),o.setLineDash(Nt(Ke.lineDash,[])),r.usePointStyle){const jt={radius:P*Math.SQRT2/2,pointStyle:Ke.pointStyle,rotation:Ke.rotation,borderWidth:pt},Vt=l.xPlus(Pe,E/2);c3(o,jt,Vt,$e+_,r.pointStyleWidth&&E)}else{const jt=$e+Math.max((m-P)/2,0),Vt=l.leftForLtr(Pe,E),vn=Ca(Ke.borderRadius);o.beginPath(),Object.values(vn).some(hi=>0!==hi)?Yu(o,{x:Vt,y:jt,w:E,h:P,radius:vn}):o.rect(Vt,jt,E,P),o.fill(),0!==pt&&o.stroke()}o.restore()}(l.x(Vt),vn,Pe),Vt=((t,i,e,n)=>t===(n?"left":"right")?e:"center"===t?(i+e)/2:i)(pt,Vt+E+_,Ce?Vt+jt:this.right,i.rtl),function(Pe,$e,Ke){Ia(o,Ke.text,Pe,$e+W/2,c,{strikethrough:Ke.hidden,textAlign:l.textAlign(Ke.textAlign)})}(l.x(Vt),vn,Pe),Ce?b.x+=jt+p:b.y+=ke}),A3(this.ctx,i.textDirection)}drawTitle(){const i=this.options,e=i.title,n=ui(e.font),o=Li(e.padding);if(!e.display)return;const s=Zl(i.rtl,this.left,this.width),r=this.ctx,a=e.position,c=o.top+n.size/2;let u,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),u=this.top+c,p=Oi(i.align,p,this.right-m);else{const b=this.columnSizes.reduce((E,P)=>Math.max(E,P.height),0);u=c+Oi(i.align,this.top,this.bottom-b-i.labels.padding-this._computeTitleHeight())}const _=Oi(a,p,p+m);r.textAlign=s.textAlign(LC(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,Ia(r,e.text,_,u,n)}_computeTitleHeight(){const i=this.options.title,e=ui(i.font),n=Li(i.padding);return i.display?e.lineHeight+n.height:0}_getLegendItemAt(i,e){let n,o,s;if(Xs(i,this.left,this.right)&&Xs(e,this.top,this.bottom))for(s=this.legendHitBoxes,n=0;nnull!==t&&null!==i&&t.datasetIndex===i.datasetIndex&&t.index===i.index)(o,n);o&&!s&&Mn(e.onLeave,[i,o,this],this),this._hoveredItem=n,n&&!s&&Mn(e.onHover,[i,n,this],this)}else n&&Mn(e.onClick,[i,n,this],this)}}var yle={id:"legend",_element:OM,start(t,i,e){const n=t.legend=new OM({ctx:t.ctx,options:e,chart:t});Pi.configure(t,n,e),Pi.addBox(t,n)},stop(t){Pi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,i,e){const n=t.legend;Pi.configure(t,n,e),n.options=e},afterUpdate(t){const i=t.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(t,i){i.replay||t.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,i,e){const n=i.datasetIndex,o=e.chart;o.isDatasetVisible(n)?(o.hide(n),i.hidden=!0):(o.show(n),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const i=t.data.datasets,{labels:{usePointStyle:e,pointStyle:n,textAlign:o,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map(r=>{const a=r.controller.getStyle(e?0:void 0),l=Li(a.borderWidth);return{text:i[r.index].label,fillStyle:a.backgroundColor,fontColor:s,hidden:!r.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:n||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:r.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dv extends Xo{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=i,this.height=this.bottom=e;const o=kn(n.text)?n.text.length:1;this._padding=Li(n.padding);const s=o*ui(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const i=this.options.position;return"top"===i||"bottom"===i}_drawArgs(i){const{top:e,left:n,bottom:o,right:s,options:r}=this,a=r.align;let c,u,p,l=0;return this.isHorizontal()?(u=Oi(a,n,s),p=e+i,c=s-n):("left"===r.position?(u=n+i,p=Oi(a,o,e),l=-.5*Vn):(u=s-i,p=Oi(a,e,o),l=.5*Vn),c=o-e),{titleX:u,titleY:p,maxWidth:c,rotation:l}}draw(){const i=this.ctx,e=this.options;if(!e.display)return;const n=ui(e.font),s=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Ia(i,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:c,textAlign:LC(e.align),textBaseline:"middle",translation:[r,a]})}}var Ale={id:"title",_element:dv,start(t,i,e){!function xle(t,i){const e=new dv({ctx:t.ctx,options:i,chart:t});Pi.configure(t,e,i),Pi.addBox(t,e),t.titleBlock=e}(t,e)},stop(t){Pi.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,i,e){const n=t.titleBlock;Pi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Wf=new WeakMap;var wle={id:"subtitle",start(t,i,e){const n=new dv({ctx:t.ctx,options:e,chart:t});Pi.configure(t,n,e),Pi.addBox(t,n),Wf.set(t,n)},stop(t){Pi.removeBox(t,Wf.get(t)),Wf.delete(t)},beforeUpdate(t,i,e){const n=Wf.get(t);Pi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ld={average(t){if(!t.length)return!1;let i,e,n=0,o=0,s=0;for(i=0,e=t.length;i-1?t.split("\n"):t}function Tle(t,i){const{element:e,datasetIndex:n,index:o}=i,s=t.getDatasetMeta(n).controller,{label:r,value:a}=s.getLabelAndValue(o);return{chart:t,label:r,parsed:s.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:s.getDataset(),dataIndex:o,datasetIndex:n,element:e}}function LM(t,i){const e=t.chart.ctx,{body:n,footer:o,title:s}=t,{boxWidth:r,boxHeight:a}=i,l=ui(i.bodyFont),c=ui(i.titleFont),u=ui(i.footerFont),p=s.length,m=o.length,_=n.length,b=Li(i.padding);let E=b.height,P=0,W=n.reduce((Ce,ve)=>Ce+ve.before.length+ve.lines.length+ve.after.length,0);W+=t.beforeBody.length+t.afterBody.length,p&&(E+=p*c.lineHeight+(p-1)*i.titleSpacing+i.titleMarginBottom),W&&(E+=_*(i.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(W-_)*l.lineHeight+(W-1)*i.bodySpacing),m&&(E+=i.footerMarginTop+m*u.lineHeight+(m-1)*i.footerSpacing);let te=0;const fe=function(Ce){P=Math.max(P,e.measureText(Ce).width+te)};return e.save(),e.font=c.string,_n(t.title,fe),e.font=l.string,_n(t.beforeBody.concat(t.afterBody),fe),te=i.displayColors?r+2+i.boxPadding:0,_n(n,Ce=>{_n(Ce.before,fe),_n(Ce.lines,fe),_n(Ce.after,fe)}),te=0,e.font=u.string,_n(t.footer,fe),e.restore(),P+=b.width,{width:P,height:E}}function Dle(t,i,e,n){const{x:o,width:s}=e,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=o<=(a+l)/2?"left":"right":o<=s/2?c="left":o>=r-s/2&&(c="right"),function Ele(t,i,e,n){const{x:o,width:s}=n,r=e.caretSize+e.caretPadding;if("left"===t&&o+s+r>i.width||"right"===t&&o-s-r<0)return!0}(c,t,i,e)&&(c="center"),c}function PM(t,i,e){const n=e.yAlign||i.yAlign||function Sle(t,i){const{y:e,height:n}=i;return et.height-n/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||i.xAlign||Dle(t,i,e,n),yAlign:n}}function FM(t,i,e,n){const{caretSize:o,caretPadding:s,cornerRadius:r}=t,{xAlign:a,yAlign:l}=e,c=o+s,{topLeft:u,topRight:p,bottomLeft:m,bottomRight:_}=Ca(r);let b=function kle(t,i){let{x:e,width:n}=t;return"right"===i?e-=n:"center"===i&&(e-=n/2),e}(i,a);const E=function Mle(t,i,e){let{y:n,height:o}=t;return"top"===i?n+=e:n-="bottom"===i?o+e:o/2,n}(i,l,c);return"center"===l?"left"===a?b+=c:"right"===a&&(b-=c):"left"===a?b-=Math.max(u,m)+o:"right"===a&&(b+=Math.max(p,_)+o),{x:pi(b,0,n.width-i.width),y:pi(E,0,n.height-i.height)}}function Qf(t,i,e){const n=Li(e.padding);return"center"===i?t.x+t.width/2:"right"===i?t.x+t.width-n.right:t.x+n.left}function RM(t){return ys([],nr(t))}function NM(t,i){const e=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return e?t.override(e):t}let VM=(()=>{class t extends Xo{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&n.options.animation&&o.animations,r=new O3(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=function Ole(t,i,e){return Vr(t,{tooltip:i,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,s=o.beforeTitle.apply(this,[e]),r=o.title.apply(this,[e]),a=o.afterTitle.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}getBeforeBody(e,n){return RM(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:o}=n,s=[];return _n(e,r=>{const a={before:[],lines:[],after:[]},l=NM(o,r);ys(a.before,nr(l.beforeLabel.call(this,r))),ys(a.lines,l.label.call(this,r)),ys(a.after,nr(l.afterLabel.call(this,r))),s.push(a)}),s}getAfterBody(e,n){return RM(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:o}=n,s=o.beforeFooter.apply(this,[e]),r=o.footer.apply(this,[e]),a=o.afterFooter.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}_createItems(e){const n=this._active,o=this.chart.data,s=[],r=[],a=[];let c,u,l=[];for(c=0,u=n.length;ce.filter(p,m,_,o))),e.itemSort&&(l=l.sort((p,m)=>e.itemSort(p,m,o))),_n(l,p=>{const m=NM(e.callbacks,p);s.push(m.labelColor.call(this,p)),r.push(m.labelPointStyle.call(this,p)),a.push(m.labelTextColor.call(this,p))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(e,n){const o=this.options.setContext(this.getContext()),s=this._active;let r,a=[];if(s.length){const l=ld[o.position].call(this,s,this._eventPosition);a=this._createItems(o),this.title=this.getTitle(a,o),this.beforeBody=this.getBeforeBody(a,o),this.body=this.getBody(a,o),this.afterBody=this.getAfterBody(a,o),this.footer=this.getFooter(a,o);const c=this._size=LM(this,o),u=Object.assign({},l,c),p=PM(this.chart,o,u),m=FM(o,u,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,r={opacity:1,x:m.x,y:m.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,s){const r=this.getCaretPosition(e,o,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,o){const{xAlign:s,yAlign:r}=this,{caretSize:a,cornerRadius:l}=o,{topLeft:c,topRight:u,bottomLeft:p,bottomRight:m}=Ca(l),{x:_,y:b}=e,{width:E,height:P}=n;let W,te,fe,Ce,ve,ke;return"center"===r?(ve=b+P/2,"left"===s?(W=_,te=W-a,Ce=ve+a,ke=ve-a):(W=_+E,te=W+a,Ce=ve-a,ke=ve+a),fe=W):(te="left"===s?_+Math.max(c,p)+a:"right"===s?_+E-Math.max(u,m)-a:this.caretX,"top"===r?(Ce=b,ve=Ce-a,W=te-a,fe=te+a):(Ce=b+P,ve=Ce+a,W=te+a,fe=te-a),ke=Ce),{x1:W,x2:te,x3:fe,y1:Ce,y2:ve,y3:ke}}drawTitle(e,n,o){const s=this.title,r=s.length;let a,l,c;if(r){const u=Zl(o.rtl,this.x,this.width);for(e.x=Qf(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",a=ui(o.titleFont),l=o.titleSpacing,n.fillStyle=o.titleColor,n.font=a.string,c=0;c0!==Ce)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Yu(e,{x:W,y:P,w:u,h:c,radius:fe}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Yu(e,{x:te,y:P+1,w:u-2,h:c-2,radius:fe}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(W,P,u,c),e.strokeRect(W,P,u,c),e.fillStyle=a.backgroundColor,e.fillRect(te,P+1,u-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:s}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:p}=o,m=ui(o.bodyFont);let _=m.lineHeight,b=0;const E=Zl(o.rtl,this.x,this.width),P=function(Ke){n.fillText(Ke,E.x(e.x+b),e.y+_/2),e.y+=_+r},W=E.textAlign(a);let te,fe,Ce,ve,ke,Pe,$e;for(n.textAlign=a,n.textBaseline="middle",n.font=m.string,e.x=Qf(this,W,o),n.fillStyle=o.bodyColor,_n(this.beforeBody,P),b=l&&"right"!==W?"center"===a?u/2+p:u+2+p:0,ve=0,Pe=s.length;ve0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,s=o&&o.x,r=o&&o.y;if(s||r){const a=ld[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=LM(this,e),c=Object.assign({},a,this._size),u=PM(n,e,c),p=FM(e,c,u,n);(s._to!==p.x||r._to!==p.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const a=Li(n.padding);n.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=o,this.drawBackground(r,e,s,n),x3(e,n.textDirection),r.y+=a.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),A3(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,s=e.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),r=!xf(o,s),a=this._positionChanged(s,n);(r||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],a=this._getActiveElements(e,r,n,o),l=this._positionChanged(a,e),c=n||!xf(a,r)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,o,s){const r=this.options;if("mouseout"===e.type)return[];if(!s)return n;const a=this.chart.getElementsAtEventForMode(e,r.mode,r,o);return r.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:o,caretY:s,options:r}=this,a=ld[r.position].call(this,e,n);return!1!==a&&(o!==a.x||s!==a.y)}}return t.positioners=ld,t})();var Ple=Object.freeze({__proto__:null,Decimation:Jae,Filler:Cle,Legend:yle,SubTitle:wle,Title:Ale,Tooltip:{id:"tooltip",_element:VM,positioners:ld,afterInit(t,i,e){e&&(t.tooltip=new VM({chart:t,options:e}))},beforeUpdate(t,i,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,i,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const i=t.tooltip;if(i&&i._willRender()){const e={tooltip:i};if(!1===t.notifyPlugins("beforeTooltipDraw",e))return;i.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,i){t.tooltip&&t.tooltip.handleEvent(i.event,i.replay,i.inChartArea)&&(i.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,i)=>i.bodyFont.size,boxWidth:(t,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ys,title(t){if(t.length>0){const i=t[0],e=i.chart.data.labels,n=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return i.dataset.label||"";if(i.label)return i.label;if(n>0&&i.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Zf extends xa{constructor(i){super(i),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(i){const e=this._addedLabels;if(e.length){const n=this.getLabels();for(const{index:o,label:s}of e)n[o]===s&&n.splice(o,1);this._addedLabels=[]}super.init(i)}parse(i,e){if(tn(i))return null;const n=this.getLabels();return((t,i)=>null===t?null:pi(Math.round(t),0,i))(e=isFinite(e)&&n[e]===i?e:function Rle(t,i,e,n){const o=t.indexOf(i);return-1===o?((t,i,e,n)=>("string"==typeof i?(e=t.push(i)-1,n.unshift({index:e,label:i})):isNaN(i)&&(e=null),e))(t,i,e,n):o!==t.lastIndexOf(i)?e:o}(n,i,Nt(e,i),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(i||(n=0),e||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const i=this.min,e=this.max,n=this.options.offset,o=[];let s=this.getLabels();s=0===i&&e===s.length-1?s:s.slice(i,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let r=i;r<=e;r++)o.push({value:r});return o}getLabelForValue(i){const e=this.getLabels();return i>=0&&ie.length-1?null:this.getPixelForValue(e[i].value)}getValueForPixel(i){return Math.round(this._startValue+this.getDecimalForPixel(i)*this._valueRange)}getBasePixel(){return this.bottom}}function BM(t,i,{horizontal:e,minRotation:n}){const o=Yo(n),s=(e?Math.sin(o):Math.cos(o))||.001;return Math.min(i/s,.75*i*(""+t).length)}Zf.id="category",Zf.defaults={ticks:{callback:Zf.prototype.getLabelForValue}};class Yf extends xa{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,e){return tn(i)||("number"==typeof i||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){const{beginAtZero:i}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:s}=this;const r=l=>o=e?o:l,a=l=>s=n?s:l;if(i){const l=Cs(o),c=Cs(s);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(o===s){let l=1;(s>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(.05*s)),a(s+l),i||r(o-l)}this.min=o,this.max=s}getTickLimit(){const i=this.options.ticks;let o,{maxTicksLimit:e,stepSize:n}=i;return n?(o=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const i=this.options,e=i.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function Vle(t,i){const e=[],{bounds:o,step:s,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:p,includeBounds:m}=t,_=s||1,b=u-1,{min:E,max:P}=i,W=!tn(r),te=!tn(a),fe=!tn(c),Ce=(P-E)/(p+1);let ke,Pe,$e,Ke,ve=Vk((P-E)/b/_)*_;if(ve<1e-14&&!W&&!te)return[{value:E},{value:P}];Ke=Math.ceil(P/ve)-Math.floor(E/ve),Ke>b&&(ve=Vk(Ke*ve/b/_)*_),tn(l)||(ke=Math.pow(10,l),ve=Math.ceil(ve*ke)/ke),"ticks"===o?(Pe=Math.floor(E/ve)*ve,$e=Math.ceil(P/ve)*ve):(Pe=E,$e=P),W&&te&&s&&function _oe(t,i){const e=Math.round(t);return e-i<=t&&e+i>=t}((a-r)/s,ve/1e3)?(Ke=Math.round(Math.min((a-r)/ve,u)),ve=(a-r)/Ke,Pe=r,$e=a):fe?(Pe=W?r:Pe,$e=te?a:$e,Ke=c-1,ve=($e-Pe)/Ke):(Ke=($e-Pe)/ve,Ke=$u(Ke,Math.round(Ke),ve/1e3)?Math.round(Ke):Math.ceil(Ke));const pt=Math.max(Hk(ve),Hk(Pe));ke=Math.pow(10,tn(l)?pt:l),Pe=Math.round(Pe*ke)/ke,$e=Math.round($e*ke)/ke;let jt=0;for(W&&(m&&Pe!==r?(e.push({value:r}),Pe0?n:null;this._zero=!0}determineDataLimits(){const{min:i,max:e}=this.getMinMax(!0);this.min=ti(i)?Math.max(0,i):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let n=this.min,o=this.max;const s=l=>n=i?n:l,r=l=>o=e?o:l,a=(l,c)=>Math.pow(10,Math.floor(Ro(l))+c);n===o&&(n<=0?(s(1),r(10)):(s(a(n,-1)),r(a(o,1)))),n<=0&&s(a(o,-1)),o<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&s(a(n,-1)),this.min=n,this.max=o}buildTicks(){const i=this.options,n=function Ble(t,i){const e=Math.floor(Ro(i.max)),n=Math.ceil(i.max/Math.pow(10,e)),o=[];let s=Po(t.min,Math.pow(10,Math.floor(Ro(i.min)))),r=Math.floor(Ro(s)),a=Math.floor(s/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:s,major:HM(s)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),s=Math.round(a*Math.pow(10,r)*l)/l}while(ro?{start:i-e,end:i}:{start:i,end:i+e}}function jle(t,i,e,n,o){const s=Math.abs(Math.sin(e)),r=Math.abs(Math.cos(e));let a=0,l=0;n.starti.r&&(a=(n.end-i.r)/s,t.r=Math.max(t.r,i.r+a)),o.starti.b&&(l=(o.end-i.b)/r,t.b=Math.max(t.b,i.b+l))}function $le(t){return 0===t||180===t?"center":t<180?"left":"right"}function Kle(t,i,e){return"right"===e?t-=i:"center"===e&&(t-=i/2),t}function Gle(t,i,e){return 90===e||270===e?t-=i/2:(e>270||e<90)&&(t-=i),t}function jM(t,i,e,n){const{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,i,0,Cn);else{let s=t.getPointPosition(0,i);o.moveTo(s.x,s.y);for(let r=1;r{const o=Mn(this.options.pointLabels.callback,[e,n],this);return o||0===o?o:""}).filter((e,n)=>this.chart.getDataVisibility(n))}fit(){const i=this.options;i.display&&i.pointLabels.display?function zle(t){const i={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},i),n=[],o=[],s=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?Vn/s:0;for(let l=0;l=0&&i=0;o--){const s=n.setContext(t.getPointLabelContext(o)),r=ui(s.font),{x:a,y:l,textAlign:c,left:u,top:p,right:m,bottom:_}=t._pointLabelItems[o],{backdropColor:b}=s;if(!tn(b)){const E=Ca(s.borderRadius),P=Li(s.backdropPadding);e.fillStyle=b;const W=u-P.left,te=p-P.top,fe=m-u+P.width,Ce=_-p+P.height;Object.values(E).some(ve=>0!==ve)?(e.beginPath(),Yu(e,{x:W,y:te,w:fe,h:Ce,radius:E}),e.fill()):e.fillRect(W,te,fe,Ce)}Ia(e,t._pointLabels[o],a,l+r.lineHeight/2,r,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),o.display&&this.ticks.forEach((c,u)=>{0!==u&&(a=this.getDistanceFromCenterForValue(c.value),function Wle(t,i,e,n){const o=t.ctx,s=i.circular,{color:r,lineWidth:a}=i;!s&&!n||!r||!a||e<0||(o.save(),o.strokeStyle=r,o.lineWidth=a,o.setLineDash(i.borderDash),o.lineDashOffset=i.borderDashOffset,o.beginPath(),jM(t,e,s,n),o.closePath(),o.stroke(),o.restore())}(this,o.setContext(this.getContext(u-1)),a,s))}),n.display){for(i.save(),r=s-1;r>=0;r--){const c=n.setContext(this.getPointLabelContext(r)),{color:u,lineWidth:p}=c;!p||!u||(i.lineWidth=p,i.strokeStyle=u,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(l.x,l.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){const i=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let s,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(o),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const c=n.setContext(this.getContext(l)),u=ui(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=u.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;const p=Li(c.backdropPadding);i.fillRect(-r/2-p.left,-s-u.size/2-p.top,r+p.width,u.size+p.height)}Ia(i,a.label,0,-s,u,{color:c.color})}),i.restore()}drawTitle(){}}cd.id="radialLinear",cd.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},cd.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},cd.descriptors={angleLines:{_fallback:"grid"}};const Xf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},so=Object.keys(Xf);function Zle(t,i){return t-i}function UM(t,i){if(tn(i))return null;const e=t._adapter,{parser:n,round:o,isoWeekday:s}=t._parseOpts;let r=i;return"function"==typeof n&&(r=n(r)),ti(r)||(r="string"==typeof n?e.parse(r,n):e.parse(r)),null===r?null:(o&&(r="week"!==o||!Gl(s)&&!0!==s?e.startOf(r,o):e.startOf(r,"isoWeek",s)),+r)}function $M(t,i,e,n){const o=so.length;for(let s=so.indexOf(t);s=i?e[n]:e[o]]=!0}}else t[i]=!0}function GM(t,i,e){const n=[],o={},s=i.length;let r,a;for(r=0;r=0&&(i[l].major=!0);return i}(t,n,o,e):n}let gv=(()=>{class t extends xa{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const o=e.time||(e.time={}),s=this._adapter=new Vre._date(e.adapters.date);s.init(n),ju(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:UM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:s,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!l&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!a||!l)&&(c(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&c(this.getMinMax(!1))),s=ti(s)&&!isNaN(s)?s:+n.startOf(Date.now(),o),r=ti(r)&&!isNaN(r)?r:+n.endOf(Date.now(),o)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,s="labels"===o.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,l=function boe(t,i,e){let n=0,o=t.length;for(;nn&&t[o-1]>e;)o--;return n>0||o=so.indexOf(e);s--){const r=so[s];if(Xf[r].common&&t._adapter.diff(o,n,r)>=i-1)return r}return so[e?so.indexOf(e):0]}(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=o.major.enabled&&"year"!==this._unit?function Xle(t){for(let i=so.indexOf(t)+1,e=so.length;i+e.value))}initOffsets(e){let s,r,n=0,o=0;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),n=1===e.length?1-s:(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),o=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=pi(n,0,a),o=pi(o,0,a),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,s=this.options,r=s.time,a=r.unit||$M(r.minUnit,n,o,this._getLabelCapacity(n)),l=Nt(r.stepSize,1),c="week"===a&&r.isoWeekday,u=Gl(c)||!0===c,p={};let _,b,m=n;if(u&&(m=+e.startOf(m,"isoWeek",c)),m=+e.startOf(m,u?"day":a),e.diff(o,n,a)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+a);const E="data"===s.ticks.source&&this.getDataTimestamps();for(_=m,b=0;_P-W).map(P=>+P)}getLabelForValue(e){const o=this.options.time;return this._adapter.format(e,o.tooltipFormat?o.tooltipFormat:o.displayFormats.datetime)}_tickFormatFunction(e,n,o,s){const r=this.options,a=r.time.displayFormats,l=this._unit,c=this._majorUnit,p=c&&a[c],m=o[n],b=this._adapter.format(e,s||(c&&p&&m&&m.major?p:l&&a[l])),E=r.ticks.callback;return E?Mn(E,[b,n,o],this):b}generateTickLabels(e){let n,o,s;for(n=0,o=e.length;n0?l:1}getDataTimestamps(){let n,o,e=this._cache.data||[];if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,o=s.length;n=t[n].pos&&i<=t[o].pos&&({lo:n,hi:o}=Js(t,"pos",i)),({pos:s,time:a}=t[n]),({pos:r,time:l}=t[o])):(i>=t[n].time&&i<=t[o].time&&({lo:n,hi:o}=Js(t,"time",i)),({time:s,pos:a}=t[n]),({time:r,pos:l}=t[o]));const c=r-s;return c?a+(l-a)*(i-s)/c:a}class mv extends gv{constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const i=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(i);this._minPos=Jf(e,this.min),this._tableRange=Jf(e,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){const{min:e,max:n}=this,o=[],s=[];let r,a,l,c,u;for(r=0,a=i.length;r=e&&c<=n&&o.push(c);if(o.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=o.length;r{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const nce=["list"];function ice(t,i){1&t&&le(0,"li",5)}function oce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function sce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function rce(t,i){if(1&t&&(we(0),g(1,oce,1,2,"AngleDownIcon",19),g(2,sce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function ace(t,i){}function lce(t,i){1&t&&g(0,ace,0,0,"ng-template")}function cce(t,i){if(1&t&&(we(0),g(1,rce,3,2,"ng-container",8),g(2,lce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function uce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function dce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function pce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function hce(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit;d("ngClass",e.badgeStyleClass),h(1),dt(e.badge)}}const WM=function(t){return{"p-disabled":t}};function fce(t,i){if(1&t&&(x(0,"a",13),g(1,cce,3,2,"ng-container",8),g(2,uce,1,2,"span",14),g(3,dce,2,1,"span",15),g(4,pce,1,1,"ng-template",null,16,In),g(6,hce,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("ngClass",He(10,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==(null==n.item?null:n.item.escape))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function gce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function mce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function _ce(t,i){if(1&t&&(we(0),g(1,gce,1,2,"AngleDownIcon",19),g(2,mce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Ice(t,i){}function Cce(t,i){1&t&&g(0,Ice,0,0,"ng-template")}function vce(t,i){if(1&t&&(we(0),g(1,_ce,3,2,"ng-container",8),g(2,Cce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function bce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function yce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function xce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Ace(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}const QM=function(){return{exact:!1}};function wce(t,i){if(1&t&&(x(0,"a",25),g(1,vce,3,2,"ng-container",8),g(2,bce,1,2,"span",14),g(3,yce,2,1,"span",15),g(4,xce,1,1,"ng-template",null,26,In),g(6,Ace,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(20,QM))("ngClass",He(21,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("title",o.getItemProp(n,"title"))("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function Tce(t,i){if(1&t&&(we(0),g(1,fce,7,12,"a",11),g(2,wce,7,23,"a",12),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function Sce(t,i){}function Ece(t,i){1&t&&g(0,Sce,0,0,"ng-template")}const Dce=function(t){return{$implicit:t}};function kce(t,i){if(1&t&&(we(0),g(1,Ece,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,Dce,e.item))}}function Mce(t,i){if(1&t){const e=De();x(0,"p-panelMenuSub",28),me("itemToggle",function(o){return G(e),q(f(3).onItemToggle(o))}),A()}if(2&t){const e=f(2).$implicit,n=f();d("id",n.getItemId(e)+"_list")("panelId",n.panelId)("items",e.items)("itemTemplate",n.itemTemplate)("transitionOptions",n.transitionOptions)("focusedItemId",n.focusedItemId)("activeItemPath",n.activeItemPath)("level",n.level+1)("parentExpanded",!!n.parentExpanded&&n.isItemExpanded(e))}}function Oce(t,i){if(1&t){const e=De();x(0,"li",6)(1,"div",7),me("click",function(o){G(e);const s=f().$implicit;return q(f().onItemClick(o,s))}),g(2,Tce,3,2,"ng-container",8),g(3,kce,2,4,"ng-container",8),A(),x(4,"div",9),g(5,Mce,1,9,"p-panelMenuSub",10),A()()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();Ve(s.getItemProp(n,"styleClass")),Ii("p-hidden",!1===n.visible)("p-focus",s.isItemFocused(n)&&!s.isItemDisabled(n)),d("ngClass",s.getItemClass(n))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("aria-label",s.getItemProp(n,"label"))("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o))("data-p-disabled",s.isItemDisabled(n)),h(2),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("@submenu",s.getAnimation(n)),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Lce(t,i){if(1&t&&(g(0,ice,1,0,"li",3),g(1,Oce,6,21,"li",4)),2&t){const e=i.$implicit,n=f();d("ngIf",e.separator),h(1),d("ngIf",!e.separator&&n.isItemVisible(e))}}const Pce=function(t){return{"p-submenu-list":!0,"p-panelmenu-root-list":t}},Fce=["submenu"],Rce=["container"];function Nce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Vce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Bce(t,i){if(1&t&&(we(0),g(1,Nce,1,1,"ChevronDownIcon",17),g(2,Vce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Hce(t,i){}function zce(t,i){1&t&&g(0,Hce,0,0,"ng-template")}function jce(t,i){if(1&t&&(we(0),g(1,Bce,3,2,"ng-container",11),g(2,zce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function Uce(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function $ce(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function Kce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Gce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function qce(t,i){if(1&t&&(x(0,"a",10),g(1,jce,3,2,"ng-container",11),g(2,Uce,1,2,"span",12),g(3,$ce,2,1,"span",13),g(4,Kce,1,1,"ng-template",null,14,In),g(6,Gce,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("tabindex",-1)("title",o.getItemProp(n,"title"))("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}function Wce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Qce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Zce(t,i){if(1&t&&(we(0),g(1,Wce,1,1,"ChevronDownIcon",17),g(2,Qce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Yce(t,i){}function Xce(t,i){1&t&&g(0,Yce,0,0,"ng-template")}function Jce(t,i){if(1&t&&(we(0),g(1,Zce,3,2,"ng-container",11),g(2,Xce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function eue(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function tue(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function nue(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function iue(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function oue(t,i){if(1&t&&(x(0,"a",23),g(1,Jce,3,2,"ng-container",11),g(2,eue,1,2,"span",12),g(3,tue,2,1,"span",13),g(4,nue,1,1,"ng-template",null,24,In),g(6,iue,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(18,QM))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("tabindex",-1)("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}const sue=function(t){return{"p-panelmenu-expanded":t}};function rue(t,i){if(1&t){const e=De();x(0,"div",25),me("@rootItem.done",function(){return G(e),q(f(3).onToggleDone())}),x(1,"div",26)(2,"p-panelMenuList",27),me("headerFocus",function(o){return G(e),q(f(3).updateFocusedHeader(o))}),A()()()}if(2&t){const e=f(2),n=e.$implicit,o=e.index,s=f();d("ngClass",He(14,sue,s.isItemActive(n)))("@rootItem",s.getAnimation(n)),K("id",s.getContentId(n,o))("aria-labelledby",s.getHeaderId(n,o))("data-pc-section","toggleablecontent"),h(1),K("data-pc-section","menucontent"),h(1),d("panelId",s.getPanelId(o,n))("items",s.getItemProp(n,"items"))("itemTemplate",s.itemTemplate)("transitionOptions",s.transitionOptions)("root",!0)("activeItem",s.activeItem())("tabindex",s.tabindex)("parentExpanded",s.isItemActive(n))}}const aue=function(t,i){return{"p-component p-panelmenu-header":!0,"p-highlight":t,"p-disabled":i}};function lue(t,i){if(1&t){const e=De();x(0,"div",4)(1,"div",5),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderClick(o,r,a))})("keydown",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderKeyDown(o,r,a))}),x(2,"div",6),g(3,qce,7,10,"a",7),g(4,oue,7,19,"a",8),A()(),g(5,rue,3,16,"div",9),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();d("ngClass",s.getItemProp(n,"headerClass"))("ngStyle",s.getItemProp(n,"style")),K("data-pc-section","panel"),h(1),Ve(s.getItemProp(n,"styleClass")),d("ngClass",mt(21,aue,s.isItemActive(n),s.isItemDisabled(n)))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tabindex",0)("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getHeaderId(n,o))("aria-expanded",s.isItemActive(n))("aria-label",s.getItemProp(n,"label"))("aria-controls",s.getContentId(n,o))("aria-disabled",s.isItemDisabled(n))("data-p-highlight",s.isItemActive(n))("data-p-disabled",s.isItemDisabled(n))("data-pc-section","header"),h(2),d("ngIf",!s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.isItemGroup(n))}}function cue(t,i){if(1&t&&(we(0),g(1,lue,6,24,"div",3),Te()),2&t){const e=i.$implicit,n=f();h(1),d("ngIf",n.isItemVisible(e))}}let due=(()=>{class t{panelMenu;el;panelId;focusedItemId;items;itemTemplate;level=0;activeItemPath;root;tabindex;transitionOptions;parentExpanded;itemToggle=new ge;menuFocus=new ge;menuBlur=new ge;menuKeyDown=new ge;listViewChild;constructor(e,n){this.panelMenu=e,this.el=n}getItemId(e){return e.item?.id??`${this.panelId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{"p-menuitem":!0,"p-disabled":this.isItemDisabled(e)}}getItemProp(e,n,o){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemExpanded(e){return e.expanded}isItemActive(e){return this.isItemExpanded(e)||this.activeItemPath.some(n=>n&&n.key===e.key)}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}getAnimation(e){return this.isItemActive(e)?{value:"visible",params:{transitionParams:this.transitionOptions,height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}onItemClick(e,n){this.isItemDisabled(n)||(this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemToggle.emit({processedItem:n,expanded:!this.isItemActive(n)}))}onItemToggle(e){this.itemToggle.emit(e)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ZM)),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuSub"]],viewQuery:function(n,o){if(1&n&&je(nce,5),2&n){let s;Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",focusedItemId:"focusedItemId",items:"items",itemTemplate:"itemTemplate",level:"level",activeItemPath:"activeItemPath",root:"root",tabindex:"tabindex",transitionOptions:"transitionOptions",parentExpanded:"parentExpanded"},outputs:{itemToggle:"itemToggle",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeyDown:"menuKeyDown"},decls:3,vars:8,consts:[["role","tree",3,"ngClass","tabindex","focusin","focusout","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",4,"ngIf"],["role","treeitem",3,"ngClass","class","p-hidden","p-focus","ngStyle","pTooltip","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator"],["role","treeitem",3,"ngClass","ngStyle","pTooltip","tooltipOptions"],[1,"p-menuitem-content",3,"click"],[4,"ngIf"],[1,"p-toggleable-content"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle",4,"ngIf"],["class","p-menuitem-link",3,"ngClass","target",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],[1,"p-menuitem-link",3,"ngClass","target"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle"]],template:function(n,o){1&n&&(x(0,"ul",0,1),me("focusin",function(r){return o.menuFocus.emit(r)})("focusout",function(r){return o.menuBlur.emit(r)})("keydown",function(r){return o.menuKeyDown.emit(r)}),g(2,Lce,2,2,"ng-template",2),A()),2&n&&(d("ngClass",He(6,Pce,o.root))("tabindex",-1),K("aria-activedescendant",o.focusedItemId)("data-pc-section","menu")("aria-hidden",!o.parentExpanded),h(2),d("ngForOf",o.items))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,Or,Zo,t]},encapsulation:2,data:{animation:[Oo("submenu",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]}})}return t})(),pue=(()=>{class t{panelId;id;items;itemTemplate;parentExpanded;expanded;transitionOptions;root;tabindex;activeItem;itemToggle=new ge;headerFocus=new ge;subMenuViewChild;searchTimeout;searchValue;focused;focusedItem=bn(null);activeItemPath=bn([]);processedItems=bn([]);visibleItems=Ds(()=>{const e=this.processedItems();return this.flatItems(e)});get focusedItemId(){const e=this.focusedItem();return e&&e.item?.id?e.item.id:be.isNotEmpty(this.focusedItem())?`${this.panelId}_${this.focusedItem().key}`:void 0}ngOnChanges(e){e&&e.items&&e.items.currentValue&&this.processedItems.set(this.createProcessedItems(e.items.currentValue||[]))}getItemProp(e,n){return e&&e.item?be.getItemValue(e.item[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemActive(e){return this.activeItemPath().some(n=>n.key===e.parentKey)}isItemGroup(e){return be.isNotEmpty(e.items)}isElementInPanel(e,n){const o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)}isItemMatched(e){return this.isValidItem(e)&&this.getItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isVisibleItem(e){return!!e&&(0===e.level||this.isItemActive(e))&&this.isItemVisible(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e)&&!e.separator}findFirstItem(){return this.visibleItems().find(e=>this.isValidItem(e))}findLastItem(){return be.findLast(this.visibleItems(),e=>this.isValidItem(e))}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={icon:a.icon,expanded:a.expanded,separator:a.separator,item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}findProcessedItemByItemKey(e,n,o=0){if((n=n||this.processedItems())&&n.length)for(let s=0;s{this.isVisibleItem(o)&&(n.push(o),this.flatItems(o.items,n))}),n}changeFocusedItem(e){const{originalEvent:n,processedItem:o,focusOnNext:s,selfCheck:r,allowHeaderFocus:a=!0}=e;be.isNotEmpty(this.focusedItem())&&this.focusedItem().key!==o.key?(this.focusedItem.set(o),this.scrollInView()):a&&this.headerFocus.emit({originalEvent:n,focusOnNext:s,selfCheck:r})}scrollInView(){const e=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`);e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"nearest"})}onFocus(e){this.focused=!0;const n=this.focusedItem()||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem());null!==e.relatedTarget&&this.focusedItem.set(n)}onBlur(e){this.focused=!1,this.focusedItem.set(null),this.searchValue=""}onItemToggle(e){const{processedItem:n,expanded:o}=e;n.expanded=!n.expanded;const s=this.activeItemPath().filter(r=>r.parentKey!==n.parentKey);o&&s.push(n),this.activeItemPath.set(s),this.processedItems.mutate(r=>r.map(a=>a===n?n:a)),this.focusedItem.set(n)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findNextItem(this.focusedItem()):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()}onArrowUpKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findPrevItem(this.focusedItem()):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()}onArrowLeftKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.activeItemPath().some(o=>o.key===this.focusedItem().key)){const o=this.activeItemPath().filter(s=>s.key!==this.focusedItem().key);this.activeItemPath.set(o)}else{const o=be.isNotEmpty(this.focusedItem().parent)?this.focusedItem().parent:this.focusedItem();this.focusedItem.set(o)}e.preventDefault()}}onArrowRightKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.isItemGroup(this.focusedItem()))if(this.activeItemPath().some(s=>s.key===this.focusedItem().key))this.onArrowDownKey(e);else{const s=this.activeItemPath().filter(r=>r.parentKey!==this.focusedItem().parentKey);s.push(this.focusedItem()),this.activeItemPath.set(s)}e.preventDefault()}}onHomeKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()}onEndKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()}onEnterKey(e){if(be.isNotEmpty(this.focusedItem())){const n=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&(j.findSingle(n,'[data-pc-section="action"]')||j.findSingle(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(nthis.isValidItem(s)):void 0)||e}findPrevItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(n>0?be.findLast(this.visibleItems().slice(0,n),s=>this.isValidItem(s)):void 0)||e}searchItems(e,n){this.searchValue=(this.searchValue||"")+n;let o=null,s=!1;if(be.isNotEmpty(this.focusedItem())){const r=this.visibleItems().findIndex(a=>a.key===this.focusedItem().key);o=this.visibleItems().slice(r).find(a=>this.isItemMatched(a)),o=be.isEmpty(o)?this.visibleItems().slice(0,r).find(a=>this.isItemMatched(a)):o}else o=this.visibleItems().find(r=>this.isItemMatched(r));return be.isNotEmpty(o)&&(s=!0),be.isEmpty(o)&&be.isEmpty(this.focusedItem())&&(o=this.findFirstItem()),be.isNotEmpty(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuList"]],viewQuery:function(n,o){if(1&n&&je(Fce,5),2&n){let s;Se(s=Ee())&&(o.subMenuViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",id:"id",items:"items",itemTemplate:"itemTemplate",parentExpanded:"parentExpanded",expanded:"expanded",transitionOptions:"transitionOptions",root:"root",tabindex:"tabindex",activeItem:"activeItem"},outputs:{itemToggle:"itemToggle",headerFocus:"headerFocus"},features:[Hn],decls:2,vars:10,consts:[[3,"root","id","panelId","tabindex","itemTemplate","focusedItemId","activeItemPath","transitionOptions","items","parentExpanded","itemToggle","keydown","menuFocus","menuBlur"],["submenu",""]],template:function(n,o){1&n&&(x(0,"p-panelMenuSub",0,1),me("itemToggle",function(r){return o.onItemToggle(r)})("keydown",function(r){return o.onKeyDown(r)})("menuFocus",function(r){return o.onFocus(r)})("menuBlur",function(r){return o.onBlur(r)}),A()),2&n&&d("root",!0)("id",o.panelId+"_list")("panelId",o.panelId)("tabindex",o.tabindex)("itemTemplate",o.itemTemplate)("focusedItemId",o.focused?o.focusedItemId:void 0)("activeItemPath",o.activeItemPath())("transitionOptions",o.transitionOptions)("items",o.processedItems())("parentExpanded",o.parentExpanded)},dependencies:[due],styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,changeDetection:0})}return t})(),ZM=(()=>{class t{cd;model;style;styleClass;multiple=!1;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";id;tabindex=0;templates;containerViewChild;submenuIconTemplate;itemTemplate;animating;activeItem=bn(null);ngOnInit(){this.id=this.id||$t()}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}constructor(e){this.cd=e}collapseAll(){for(let e of this.model)e.expanded&&(e.expanded=!1);this.cd.detectChanges()}onToggleDone(){this.animating=!1}changeActiveItem(e,n,o,s=!1){if(!this.isItemDisabled(n)){const r=s?n:this.activeItem&&be.equals(n,this.activeItem)?null:n;this.activeItem.set(r)}}getAnimation(e){return e.expanded?{value:"visible",params:{transitionParams:this.animating?this.transitionOptions:"0ms",height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemActive(e){return e.expanded}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemGroup(e){return be.isNotEmpty(e.items)}getPanelId(e,n){return n&&n.id?n.id:`${this.id}_${e}`}getHeaderId(e,n){return e.id?e.id+"_header":`${this.getPanelId(n)}_header`}getContentId(e,n){return e.id?e.id+"_content":`${this.getPanelId(n)}_content`}updateFocusedHeader(e){const{originalEvent:n,focusOnNext:o,selfCheck:s}=e,r=n.currentTarget.closest('[data-pc-section="panel"]'),a=s?j.findSingle(r,'[data-pc-section="header"]'):o?this.findNextHeader(r):this.findPrevHeader(r);a?this.changeFocusedHeader(n,a):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)}changeFocusedHeader(e,n){n&&j.focus(n)}findNextHeader(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeader(s.parentElement):s:null}findPrevHeader(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeader(s.parentElement):s:null}findFirstHeader(){return this.findNextHeader(this.containerViewChild.nativeElement.firstElementChild,!0)}findLastHeader(){return this.findPrevHeader(this.containerViewChild.nativeElement.lastElementChild,!0)}onHeaderClick(e,n,o){if(this.isItemDisabled(n))e.preventDefault();else{if(n.command&&n.command({originalEvent:e,item:n}),!this.multiple)for(let s of this.model)n!==s&&s.expanded&&(s.expanded=!1);n.expanded=!n.expanded,this.changeActiveItem(e,n,o),this.animating=!0,j.focus(e.currentTarget)}}onHeaderKeyDown(e,n,o){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"Space":this.onHeaderEnterKey(e,n,o)}}onHeaderArrowDownKey(e){const n=!0===j.getAttribute(e.currentTarget,"data-p-highlight")?j.findSingle(e.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;n?j.focus(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()}onHeaderArrowUpKey(e){const n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=!0===j.getAttribute(n,"data-p-highlight")?j.findSingle(n.nextElementSibling,'[data-pc-section="menu"]'):null;o?j.focus(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()}onHeaderHomeKey(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()}onHeaderEndKey(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()}onHeaderEnterKey(e,n,o){const s=j.findSingle(e.currentTarget,'[data-pc-section="headeraction"]');s?s.click():this.onHeaderClick(e,n,o),e.preventDefault()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Rce,5),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",multiple:"multiple",transitionOptions:"transitionOptions",id:"id",tabindex:"tabindex"},decls:3,vars:5,consts:[[3,"ngStyle","ngClass"],["container",""],[4,"ngFor","ngForOf"],["class","p-panelmenu-panel",3,"ngClass","ngStyle",4,"ngIf"],[1,"p-panelmenu-panel",3,"ngClass","ngStyle"],["role","button",3,"ngClass","ngStyle","pTooltip","tabindex","tooltipOptions","click","keydown"],[1,"p-panelmenu-header-content"],["class","p-panelmenu-header-action",3,"target",4,"ngIf"],["class","p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["class","p-toggleable-content","role","region",3,"ngClass",4,"ngIf"],[1,"p-panelmenu-header-action",3,"target"],[4,"ngIf"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],["role","region",1,"p-toggleable-content",3,"ngClass"],[1,"p-panelmenu-content"],[3,"panelId","items","itemTemplate","transitionOptions","root","activeItem","tabindex","parentExpanded","headerFocus"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,cue,2,1,"ng-container",2),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass","p-panelmenu p-component"),h(2),d("ngForOf",o.model))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,bi,Qi,pue]},styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,data:{animation:[Oo("rootItem",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),YM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qe,Or,Zo,bi,Qi,qn,Nn,Qe]})}return t})(),eg=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["MinusIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},dependencies:[Xe],encapsulation:2})}return t})(),JM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,dn,Mi,_s,CC,vC,Ck,bk,vk,yi,eg,bi,Qi,Qe,Mi]})}return t})();const Hde=["input"],zde=function(t,i,e){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":t,"p-disabled":i,"p-focus":e}},jde={provide:un,useExisting:ft(()=>Ude),multi:!0};let Ude=(()=>{class t{cd;style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;onChange=new ge;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),e.preventDefault(),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-inputSwitch"]],viewQuery:function(n,o){if(1&n&&je(Hde,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[yt([jde])],decls:5,vars:22,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","focus","blur"],["input",""],[1,"p-inputswitch-slider"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),le(4,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(18,zde,o.checked(),o.disabled,o.focused))("ngStyle",o.style),K("data-pc-name","inputswitch")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("checked",o.checked())("disabled",o.disabled),K("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),h(2),K("data-pc-section","slider"))},dependencies:[Ct,Ht],styles:['@layer primeng{.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}}\n'],encapsulation:2,changeDetection:0})}return t})(),_v=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const $de=["sublist"];function Kde(t,i){if(1&t&&le(0,"li",6),2&t){const e=f().$implicit,n=f(2);yn(n.getItemProp(e,"style")),d("ngClass",n.getSeparatorItemClass(e)),K("id",n.getItemId(e))("data-pc-section","separator")}}function Gde(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function qde(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function Wde(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function Qde(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function Zde(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function Yde(t,i){}function Xde(t,i){1&t&&g(0,Yde,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function Jde(t,i){if(1&t&&(we(0),g(1,Zde,1,3,"AngleRightIcon",23),g(2,Xde,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const eO=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function epe(t,i){if(1&t&&(x(0,"a",14),g(1,Gde,1,5,"span",15),g(2,qde,2,2,"span",16),g(3,Wde,1,2,"ng-template",null,17,In),g(5,Qde,2,2,"span",18),g(6,Jde,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("target",o.getItemProp(n,"target"))("ngClass",He(12,eO,o.getItemProp(n,"disabled"))),K("href",o.getItemProp(n,"url"),Ls)("aria-hidden",!0)("data-automationid",o.getItemProp(n,"automationId"))("data-pc-section","action")("tabindex",-1),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function tpe(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function npe(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function ipe(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function ope(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function spe(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function rpe(t,i){}function ape(t,i){1&t&&g(0,rpe,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function lpe(t,i){if(1&t&&(we(0),g(1,spe,1,3,"AngleRightIcon",23),g(2,ape,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const cpe=function(){return{exact:!1}};function upe(t,i){if(1&t&&(x(0,"a",26),g(1,tpe,1,5,"span",15),g(2,npe,2,2,"span",16),g(3,ipe,1,2,"ng-template",null,17,In),g(5,ope,2,2,"span",18),g(6,lpe,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(21,cpe))("target",o.getItemProp(n,"target"))("ngClass",He(22,eO,o.getItemProp(n,"disabled")))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("data-automationid",o.getItemProp(n,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function dpe(t,i){if(1&t&&(we(0),g(1,epe,7,14,"a",12),g(2,upe,7,24,"a",13),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function ppe(t,i){}function hpe(t,i){1&t&&g(0,ppe,0,0,"ng-template")}const fpe=function(t){return{$implicit:t}};function gpe(t,i){if(1&t&&(we(0),g(1,hpe,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,fpe,e.item))}}function mpe(t,i){if(1&t){const e=De();x(0,"p-contextMenuSub",28),me("itemClick",function(o){return G(e),q(f(4).itemClick.emit(o))})("itemMouseEnter",function(o){return G(e),q(f(4).onItemMouseEnter(o))}),A()}if(2&t){const e=f(2).$implicit,n=f(2);d("items",e.items)("itemTemplate",n.itemTemplate)("menuId",n.menuId)("visible",n.isItemActive(e)&&n.isItemGroup(e))("activeItemPath",n.activeItemPath)("focusedItemId",n.focusedItemId)("level",n.level+1)}}function _pe(t,i){if(1&t){const e=De();x(0,"li",7,8)(2,"div",9),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onItemClick(o,s))})("mouseenter",function(o){G(e);const s=f().$implicit;return q(f(2).onItemMouseEnter({$event:o,processedItem:s}))}),g(3,dpe,3,2,"ng-container",10),g(4,gpe,2,4,"ng-container",10),A(),g(5,mpe,1,7,"p-contextMenuSub",11),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);Ve(s.getItemProp(n,"styleClass")),d("ngStyle",s.getItemProp(n,"style"))("ngClass",s.getItemClass(n))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("data-pc-section","menuitem")("data-p-highlight",s.isItemActive(n))("data-p-focused",s.isItemFocused(n))("data-p-disabled",s.isItemDisabled(n))("aria-label",s.getItemLabel(n))("aria-disabled",s.isItemDisabled(n)||void 0)("aria-haspopup",s.isItemGroup(n)&&!s.getItemProp(n,"to")?"menu":void 0)("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o)),h(2),K("data-pc-section","content"),h(1),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Ipe(t,i){if(1&t&&(g(0,Kde,1,5,"li",4),g(1,_pe,6,21,"li",5)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isItemVisible(e)&&n.getItemProp(e,"separator")),h(1),d("ngIf",n.isItemVisible(e)&&!n.getItemProp(e,"separator"))}}const Cpe=function(t,i){return{"p-submenu-list":t,"p-contextmenu-root-list":i}};function vpe(t,i){if(1&t){const e=De();x(0,"ul",1,2),me("@overlayAnimation.start",function(o){G(e);const s=Bt(1);return q(f().onEnter(o,s))})("keydown",function(o){return G(e),q(f().menuKeydown.emit(o))})("focus",function(o){return G(e),q(f().menuFocus.emit(o))})("blur",function(o){return G(e),q(f().menuBlur.emit(o))}),g(2,Ipe,2,2,"ng-template",3),A()}if(2&t){const e=f();d("ngClass",mt(10,Cpe,!e.root,e.root))("@overlayAnimation",e.visible)("tabindex",e.tabindex),K("id",e.menuId+"_list")("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy)("aria-activedescendant",e.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),h(2),d("ngForOf",e.items)}}const bpe=["rootmenu"],ype=["container"],xpe=function(){return{"p-contextmenu p-component":!0,"p-contextmenu-overlay":!0}},Ape=function(){return{value:"visible"}};function wpe(t,i){if(1&t){const e=De();x(0,"div",1,2),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(2,"p-contextMenuSub",3,4),me("itemClick",function(o){return G(e),q(f().onItemClick(o))})("menuFocus",function(o){return G(e),q(f().onMenuFocus(o))})("menuBlur",function(o){return G(e),q(f().onMenuBlur(o))})("menuKeydown",function(o){return G(e),q(f().onKeyDown(o))})("itemMouseEnter",function(o){return G(e),q(f().onItemMouseEnter(o))}),A()()}if(2&t){const e=f();Ve(e.styleClass),d("ngClass",Jt(20,xpe))("ngStyle",e.style)("@overlayAnimation",Jt(21,Ape)),K("data-pc-section","root")("data-pc-name","contextmenu")("id",e.id),h(2),d("root",!0)("items",e.processedItems)("itemTemplate",e.itemTemplate)("menuId",e.id)("tabindex",e.disabled?-1:e.tabindex)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("visible",e.submenuVisible())("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())}}let Tpe=(()=>{class t{document;el;renderer;cd;contextMenu;ref;visible=!1;items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;tabindex=0;itemClick=new ge;itemMouseEnter=new ge;menuFocus=new ge;menuBlur=new ge;menuKeydown=new ge;sublistViewChild;constructor(e,n,o,s,r,a){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.contextMenu=r,this.ref=a}getItemProp(e,n,o=null){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(e),"p-menuitem-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)}}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(n=>n.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}onItemMouseEnter(e){const{event:n,processedItem:o}=e;this.itemMouseEnter.emit({originalEvent:n,processedItem:o})}onItemClick(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemClick.emit({originalEvent:e,processedItem:n,isFocus:!0})}onEnter(e,n){"void"===e.fromState&&e.toState&&this.position(e.element)}position(e){const n=e.parentElement.parentElement,o=j.getOffset(e.parentElement.parentElement),s=j.getViewport(),r=e.offsetParent?e.offsetWidth:j.getHiddenElementOuterWidth(e),a=j.getOuterWidth(n.children[0]);e.style.top="0px",e.style.left=parseInt(o.left,10)+a+r>s.width-j.calculateScrollbarWidth()?-1*r+"px":a+"px"}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ft(()=>tO)),V(go))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenuSub"]],viewQuery:function(n,o){if(1&n&&je($de,5),2&n){let s;Se(s=Ee())&&(o.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",items:"items",itemTemplate:"itemTemplate",root:"root",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",popup:"popup",menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:"level",focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",tabindex:"tabindex"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},decls:1,vars:1,consts:[["role","menu",3,"ngClass","tabindex","keydown","focus","blur",4,"ngIf"],["role","menu",3,"ngClass","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter"]],template:function(n,o){1&n&&g(0,vpe,3,13,"ul",0),2&n&&d("ngIf",!!o.root||o.visible)},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,oo,Kl,Zo,t]},encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0})]),Ln(":leave",[en({opacity:0})])])]}})}return t})(),tO=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}triggerEvent="contextmenu";target;global;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;id;ariaLabel;ariaLabelledBy;onShow=new ge;onHide=new ge;templates;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;container;outsideClickListener;resizeListener;triggerEventListener;documentClickListener;documentTriggerListener;pageX;pageY;visible=bn(!1);relativeAlign;window;focused=!1;activeItemPath=bn([]);focusedItemInfo=bn({index:-1,level:0,parentKey:"",item:null});submenuVisible=bn(!1);searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){const e=this.activeItemPath().find(n=>n.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:-1!==e.index?`${this.id}${be.isNotEmpty(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView,a_(()=>{const c=this.activeItemPath();be.isNotEmpty(c)?this.bindGlobalListeners():this.visible()||this.unbindGlobalListeners()})}ngOnInit(){this.id=this.id||$t(),this.bindTriggerEventListener()}bindTriggerEventListener(){ei(this.platformId)&&(this.triggerEventListener||(this.global?this.triggerEventListener=this.renderer.listen(this.document,this.triggerEvent,e=>{this.show(e)}):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,e=>{this.show(e)}))))}bindGlobalListeners(){if(ei(this.platformId)){if(!this.documentClickListener){const e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&!n.ctrlKey&&2!==n.button&&"click"!==this.triggerEvent&&this.hide()}),this.documentTriggerListener=this.renderer.listen(e,this.triggerEvent,n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&this.hide()})}this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()}))}}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&be.isNotEmpty(e.items)}isSelected(e){return this.activeItemPath().some(n=>n.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&be.isNotEmpty(e.items)}onItemClick(e){const{processedItem:n}=e,o=this.isProcessedItemGroup(n);if(this.isSelected(n)){const{index:r,key:a,level:l,parentKey:c,item:u}=n;this.activeItemPath.set(this.activeItemPath().filter(p=>a!==p.key&&a.startsWith(p.key))),this.focusedItemInfo.set({index:r,level:l,parentKey:c,item:u}),j.focus(this.rootmenu.sublistViewChild.nativeElement)}else o?this.onItemChange(e):this.hide()}onItemMouseEnter(e){this.onItemChange(e)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}onArrowRightKey(e){const n=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(n)&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide(),e.preventDefault()}else{const n=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}}onArrowLeftKey(e){const n=this.visibleItems[this.focusedItemInfo().index],o=this.activeItemPath().find(a=>a.key===n.parentKey);be.isEmpty(n.parent)||(this.focusedItemInfo.set({index:-1,parentKey:o?o.parentKey:"",item:n.item}),this.searchValue="",this.onArrowDownKey(e));const r=this.activeItemPath().filter(a=>a.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(r),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide();const n=this.findVisibleItem(this.findFirstFocusedItemIndex());this.focusedItemInfo.mutate(o=>{o.index=this.findFirstFocusedItemIndex(),o.item=n.item}),e.preventDefault()}onTabKey(e){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()}onEnterKey(e){if(-1!==this.focusedItemInfo().index){const n=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&j.findSingle(n,'a[data-pc-section="action"]');o?o.click():n&&n.click();const s=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(s)||this.focusedItemInfo.mutate(a=>{a.index=this.findFirstFocusedItemIndex()})}e.preventDefault()}onItemChange(e){const{processedItem:n,isFocus:o}=e;if(be.isEmpty(n))return;const{index:s,key:r,level:a,parentKey:l,items:c}=n,u=be.isNotEmpty(c),p=this.activeItemPath().filter(m=>m.parentKey!==l&&m.parentKey!==r);u&&(p.push(n),this.submenuVisible.set(!0)),this.focusedItemInfo.set({index:s,level:a,parentKey:l,item:n.item}),this.activeItemPath.set(p),o&&j.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;const n=-1!==this.focusedItemInfo().index?this.focusedItemInfo():{index:-1,level:0,parentKey:"",item:null};this.focusedItemInfo.set(n)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue=""}onOverlayAnimationStart(e){"visible"===e.toState&&(this.container=e.element,this.position(),this.moveOnTop(),this.appendOverlay(),this.bindGlobalListeners(),this.onShow.emit(),j.focus(this.rootmenu.sublistViewChild.nativeElement))}onOverlayAnimationEnd(e){"void"===e.toState&&this.onOverlayHide()}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.containerViewChild.nativeElement):j.appendChild(this.containerViewChild.nativeElement,this.appendTo))}moveOnTop(){this.autoZIndex&&this.containerViewChild&&Wn.set("menu",this.containerViewChild.nativeElement,this.baseZIndex+this.config.zIndex.menu)}onOverlayHide(){this.unbindGlobalListeners(),this.cd.destroyed||(this.target=null),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.onHide.emit()}hide(){this.visible.set(!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null})}toggle(e){this.visible()?this.hide():this.show(e)}show(e){this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.pageX=e.pageX,this.pageY=e.pageY,this.visible()?this.position():this.visible.set(!0),e.stopPropagation(),e.preventDefault()}position(){let e=this.pageX+1,n=this.pageY+1,o=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetWidth:j.getHiddenElementOuterWidth(this.containerViewChild.nativeElement),s=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetHeight:j.getHiddenElementOuterHeight(this.containerViewChild.nativeElement),r=j.getViewport();e+o-this.document.scrollingElement.scrollLeft>r.width&&(e-=o),n+s-this.document.scrollingElement.scrollTop>r.height&&(n-=s),ethis.isItemMatched(r)),o=-1===o?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(r=>this.isItemMatched(r)):o+this.focusedItemInfo().index):o=this.visibleItems.findIndex(r=>this.isItemMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedItemInfo().index&&(o=this.findFirstFocusedItemIndex()),-1!==o&&this.changeFocusedItemIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}findVisibleItem(e){return be.isNotEmpty(this.visibleItems)?this.visibleItems[e]:null}findLastFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return be.findLastIndex(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){const n=e>0?be.findLastIndex(this.visibleItems.slice(0,e),o=>this.isValidItem(o)):-1;return n>-1?n:e}findNextItemIndex(e){const n=ethis.isValidItem(o)):-1;return n>-1?n+e+1:e}findFirstFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,n){const o=this.findVisibleItem(n);this.focusedItemInfo().index!==n&&(this.focusedItemInfo.mutate(s=>{s.index=n,s.item=o.item}),this.scrollInView())}scrollInView(e=-1){const o=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedItemId}"]`);o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"})}bindResizeListener(){ei(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()})))}isOutsideClicked(e){return!(this.containerViewChild.nativeElement.isSameNode(e.target)||this.containerViewChild.nativeElement.contains(e.target))}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindTriggerEventListener(){this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null)}removeAppendedElements(){this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.containerViewChild.nativeElement):j.removeChild(this.containerViewChild.nativeElement,this.appendTo))}ngOnDestroy(){this.unbindGlobalListeners(),this.unbindTriggerEventListener(),this.removeAppendedElements()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(Di),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(bpe,5),je(ype,5)),2&n){let s;Se(s=Ee())&&(o.rootmenu=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",triggerEvent:"triggerEvent",target:"target",global:"global",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],["container",""],[3,"root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","visible","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function(n,o){1&n&&g(0,wpe,4,22,"div",0),2&n&&d("ngIf",o.visible())},dependencies:[Ct,gt,Ht,Tpe],styles:["@layer primeng{.p-contextmenu{position:absolute}.p-contextmenu ul{margin:0;padding:0;list-style:none}.p-contextmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1}.p-contextmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-contextmenu .p-menuitem-text{line-height:1}.p-contextmenu .p-menuitem{position:relative}.p-contextmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-contextmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0}),On("250ms")]),Ln(":leave",[On(".1s linear",en({opacity:0}))])])]},changeDetection:0})}return t})(),nO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),Spe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[Hs],imports:[R0,JD,NE,JM,wk,qM,qn,kG,YM,Ek,_v,kk,nO]})}return t})();Dg(Dk,[gt,wl,ch,Is,EC,Ok],[]);const Epe=function(){return["NumberOfActivities"]};let Dpe=(()=>{class t{constructor(){}ngOnInit(){for(let e of this.businessFlows)null!=e.ActivitiesColl&&(e.NumberOfActivities=e.ActivitiesColl.length);this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}],this.businessFlowGeneralDetailsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Business Flow Name"},{field:"Description",header:"Business Flow Description"},{field:"Description",header:"Business Flow Run Description"},{field:"Environment",header:"Environment Used"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"NumberOfActivities",header:"Number Of Activities"},{field:"RunStatus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow-table"]],inputs:{businessFlows:"businessFlows",tableExpenderType:"tableExpenderType"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.businessFlowGeneralDetailsCols)("data",o.businessFlows)("addExpender",!0)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,Epe))},dependencies:[Is]})}return t})(),kpe=(()=>{class t{constructor(){}ngOnInit(){this.title=this.chartTitle,this.data=this.executionData,this.type="PieChart",this.columnNames=["Browser","Percentage"],this.options={pieHole:.7,legend:{position:"labeled"},chartArea:{left:0,height:220,width:400},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"]},this.width=400,this.height=400}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-doughnut"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function Mpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Runner Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.runner.Name)}}function Ope(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runnerDetails)}}function Lpe(t,i){if(1&t&&(x(0,"p-accordionTab",10)(1,"div",11),le(2,"app-google-doughnut",12),A(),le(3,"app-business-flow-table",13),A()),2&t){const e=f();d("selected",!0),h(2),d("executionData",e.runnerData),h(1),d("businessFlows",e.businessFlows)("tableExpenderType",e.tableExpenderType)}}function Ppe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.gingerRunnerAgentMappingCols)("data",e.agentMappings)}}let Fpe=(()=>{class t{constructor(e,n,o,s,r){this.route=e,this.calculatedDataService=n,this._userDataManagerService=o,this.communicatorService=s,this.datePipe=r,this.runnerData=[],this.tableExpenderType=Er.BusinessFlowsActivities,this.gingerRunnerGeneralDetailsData=[],this.agentMappings=[]}ngOnInit(){this.getRunner(),this.businessFlows=this.runner.BusinessFlowsColl;let e=this.calculatedDataService.getRunnerBusinessFlowsExecutionStatusArray(this.runner);this.calculatedDataService.populateChartsData(this.runnerData,e),this.getAgentMapping(),this.gingerRunnerAgentMappingCols=[{field:"TargetApplication",header:"Target Application"},{field:"AgentName",header:"Agents Mapping"}],this.runnerDetails=[{field:"Business Flow Execution Sequence",value:this.runner.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.runner.StartTimeStamp,"short")},{field:"Ginger Runner Name",value:this.runner.Name},{field:"Execution End Time",value:this.datePipe.transform(this.runner.EndTimeStamp,"short")},{field:"Runner Description",value:this.runner.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.runner.Elapsed)},{field:"Ginger Runner Environment Name",value:this.runner.Environment},{field:"Execution Status",value:this.runner.RunStatus},{field:"Number Of Business Flows",value:this.runner.BusinessFlowsColl.length},{field:"Business Flows Execution Rate",value:this.runner.ExecutionRate+"%"},{field:"Business Flows Pass Rate",value:this.runner.PassRate+"%"}]}getAgentMapping(){for(let n of this.runner.ApplicationAgentsMappingList){var e=n.split("_:_");let o=new kK;o.AgentName=e[0],o.TargetApplication=e[1],this.agentMappings.push(o)}}getRunner(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner");this.runner=e.RunnersColl.filter(o=>o.Seq==n)[0]}getStatus(e=!0){if(null!=this.runner&&null!=this.runner.RunStatus)return this.calculatedDataService.getStatusClass(this.runner.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi),V(qs),V(Co),V(Ws),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-runner-report"]],inputs:{runner:"runner"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected",4,"ngIf"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle-o"],[2,"font-weight","bold"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected"],[3,"data"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],["id","chart_div","align","center"],[3,"executionData"],[3,"businessFlows","tableExpenderType"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,Mpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Ope,2,2,"p-accordionTab",2),g(3,Lpe,4,4,"p-accordionTab",3),g(4,Ppe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.runner),h(1),d("multiple",!0),h(1),d("ngIf",o.runnerDetails.length>0),h(1),d("ngIf",o.runnerData.length>0||o.businessFlows.length>0),h(1),d("ngIf",o.agentMappings.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Dpe,kpe]})}return t})();const Rpe=function(){return["NumberOfActions"]};function Npe(t,i){if(1&t&&le(0,"app-table",1),2&t){const e=f();d("cols",e.outputValidationCols)("data",e.outputValidations)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(6,Rpe))}}let Vpe=(()=>{class t{constructor(){}ngOnInit(){this.outputValidationCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group"},{field:"ActivityName",header:"Activity Name"},{field:"ActionName",header:"Action"},{field:"StartTimeStamp",header:"Start Time"},{field:"EndTimeStamp",header:"End Time"},{field:"Elapsed",header:"Duration"},{field:"RunStatus",header:"Status"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["output-validation"]],inputs:{outputValidations:"outputValidations",tableExpenderType:"tableExpenderType",addExpender:"addExpender"},decls:1,vars:1,consts:[[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields",4,"ngIf"],[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&g(0,Npe,1,7,"app-table",0),2&n&&d("ngIf",o.outputValidations.length>0)},dependencies:[gt,Is]})}return t})();function Bpe(t,i){if(1&t&&(x(0,"h4",9),le(1,"span",10),Le(2," Business Flow Report: "),x(3,"span",11),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.businessFlow.Name)}}function Hpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-general-details",13),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.businessFlowDetails)}}function zpe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-activities-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)("tableExpenderType",e.tableExpenderType)("addExpender",!0)}}function jpe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}function Upe(t,i){if(1&t&&(x(0,"p-accordionTab",18),le(1,"output-validation",19),A()),2&t){const e=f();d("selected",!0),h(1),d("outputValidations",e.outputValidations)("tableExpenderType",e.outputValidationtableExpenderType)("addExpender",!0)}}function $pe(t,i){1&t&&(x(0,"div",20),le(1,"div",21),A())}const Kpe=function(t,i){return{hideDiv:t,showDiv:i,"accordion-header":!0}};let Gpe=(()=>{class t{constructor(e,n,o,s,r,a,l,c){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.restServiceObj=s,this.globalVarService=r,this.communicatorService=a,this.reportHelperService=l,this.calculatedDataService=c,this.showScreenshotPanel=!0,this.EntityType="businessflow",this.actions=[],this.outputValidations=new Array,this.tableExpenderType=Er.ActivitiesActions,this.outputValidationtableExpenderType=Er.OutputValidation}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}setScreenshotVisiblity(e){this.showScreenshotPanel=e}paramChanged(){let e;this.getBusinessFlow(),this.totalactivitiesCount=0,this.actions=[],this.outputValidations=[],this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"ActivityGroupName",link:"ag/ag/",param:"ActivityGroupName"}],null!=this.businessFlow.ExternalID&&""!=this.businessFlow.ExternalID&&(e=this.businessFlow.ExternalID),null!=this.businessFlow.ExternalID2&&""!=this.businessFlow.ExternalID&&(e=null!=e?e+" / "+this.businessFlow.ExternalID2:this.businessFlow.ExternalID2),this.businessFlowDetails=[],this.businessFlowDetails=[{field:"Execution Sequence",value:this.businessFlow.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.businessFlow.StartTimeStamp,"short")},{field:"Business Flow Name",value:this.businessFlow.Name},{field:"Execution End Time",value:this.datePipe.transform(this.businessFlow.EndTimeStamp,"short")},{field:"Business Flow Description",value:this.businessFlow.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.businessFlow.Elapsed)},{field:"Business Flow Run Description",value:this.businessFlow.RunDescription},{field:"Execution Status",value:this.businessFlow.RunStatus},{field:"Environment Name",value:this.businessFlow.Environment},{field:"Business Flow Activities Pass Rate",value:this.businessFlow.PassRate+"%"},{field:"Business Flow Activities Execution Rate",value:this.businessFlow.ExecutionRate+"%"}],null!=e&&this.businessFlowDetails.push({field:"Mapped ALM Entity ID",value:e}),null==this.businessFlow.ActivitiesColl||0==this.businessFlow.ActivitiesColl.length?(this.CollectBfActivitiesData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.totalactivitiesCount})):(this.InitActivitieData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.businessFlow.ActivitiesColl.length})),this.communicatorService.onBfActivitiesDataChange.subscribe(n=>{"Last Loading Data"===n&&(this.AddBusinessFlowToRunsetJson(),this.InitActivitieData(),this.hideRepoLoader=!1)}),this.variablesData=this.getVariables()}orderActivites(){this.businessFlow.ActivitiesColl=this.businessFlow.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}AddBusinessFlowToRunsetJson(){this.orderActivites(),this.RunsetJson.RunnersColl.forEach(e=>{e.BusinessFlowsColl.forEach(n=>{n.GUID==this.businessFlow.GUID&&(n.ActivitiesColl=this.businessFlow.ActivitiesColl)})}),this._userDataManagerService.setItemCache(this.RunsetJson)}InitActivitieData(){this.count=1;for(const n of this.businessFlow.ActivitiesColl)n.NumberOfActions=n.ActionsColl.length,n.ActionsColl.forEach(o=>{this.globalVarService.isServerLoading?this.getActionFromServer(o.GUID,n):this.getOutputValidations(o,n)});this.activities=this.businessFlow.ActivitiesColl;const e=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,this.RunsetJson.ExecutionId);this.communicatorService.newMessage(e),e.forEach(n=>{n.items.forEach(o=>{o.items.forEach(s=>{s.id==this.businessFlow.GUID&&(o.expanded=!0,s.expanded=!0)})})})}CollectBfActivitiesData(){this.hideRepoLoader=!0;let e=0;this.businessFlow.ActivitiesGroupsColl.forEach(o=>{this.totalactivitiesCount=this.totalactivitiesCount+o.ExecutedActivitiesGUID.length});const n=this.globalVarService.totalRecPerActivityPull;this.businessFlow.NumberOfActivities=0,this.businessFlow.ActivitiesGroupsColl.forEach(o=>{let s=0;this.businessFlow.ActivitiesColl=[];const r={};r.ExecutionId=this.RunsetJson.ExecutionId,r.ParentId=o.GUID,r.From=s*n,r.Take=n,r.IsLoadActions=!0,this.restServiceObj.GetActivitiesByParent(r).subscribe(a=>{s++;const l=JSON.parse(a.response),c=l.TotalRec;for(this.businessFlow.NumberOfActivities+=c,this.businessFlow.ActivitiesColl.push(...l.ResponseColl),e+=l.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data");s*n{if(p.isSuccsess){const m=JSON.parse(p.response);this.businessFlow.ActivitiesColl.push(...m.ResponseColl),e+=m.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data")}})}})})}checkIfLastRun(e){return e===this.totalactivitiesCount}getActionFromServer(e,n){this.restServiceObj.GetActionById(e).subscribe(s=>{const r=JSON.parse(s.response);this.getOutputValidations(r,n)})}getOutputValidations(e,n){if((e.RunStatus==Lt.Passed||e.RunStatus==Lt.Failed||e.RunStatus==Lt.FailIgnored)&&e.OutputValues&&e.OutputValues.length>0&&e.OutputValues.some(s=>!s.endsWith("NA"))){var o=new LK;o.Seq=this.count++,o.ActionName=e.Name,o.ActivityGroupName=n.ActivityGroupName,o.ActivityName=n.Name,o.StartTimeStamp=e.StartTimeStamp,o.EndTimeStamp=e.EndTimeStamp,o.Elapsed=e.Elapsed,o.RunStatus=e.RunStatus,o.OutputValues=e.OutputValues.filter(s=>!s.endsWith("NA")),this.outputValidations.push(o)}}getActivityGroupName(e){for(const n of this.businessFlow.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}getBusinessFlow(){const e=+this.route.snapshot.paramMap.get("Runner"),n=+this.route.snapshot.paramMap.get("BusinessFlow");this.RunsetJson=this._userDataManagerService.getItemCache();const o=this.RunsetJson.RunnersColl.filter(s=>s.Seq==e)[0];this.businessFlow=o.BusinessFlowsColl.filter(s=>s.Seq==n)[0]}getVariables(){let e=[];if(this.businessFlow.VariablesBeforeExec)for(var n=0;n0&&(s.EndValue=this.businessFlow.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getStatus(e=!0){if(null!=this.businessFlow&&null!=this.businessFlow.RunStatus)return this.calculatedDataService.getStatusClass(this.businessFlow.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi),V(Co),V(Hs),V(ha),V(ms),V(Ws),V(WD),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow"]],inputs:{businessFlow:"businessFlow"},decls:9,vars:15,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIONS SCREENSHOTS",3,"selected","ngClass"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[1,"entityName"],[1,"fa","fa-sitemap"],[2,"font-weight","bold"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected"],[3,"data"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr","tableExpenderType","addExpender"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected"],[3,"outputValidations","tableExpenderType","addExpender"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(g(0,Bpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Hpe,2,2,"p-accordionTab",2),g(3,zpe,2,5,"p-accordionTab",3),x(4,"p-accordionTab",4)(5,"screenshot-carousel",5),me("isScreenshotVisibleEvent",function(r){return o.setScreenshotVisiblity(r)}),A()(),g(6,jpe,2,3,"p-accordionTab",6),g(7,Upe,2,4,"p-accordionTab",7),A(),g(8,$pe,2,0,"div",8)),2&n&&(d("ngIf",o.businessFlow),h(1),d("multiple",!0),h(1),d("ngIf",o.businessFlowDetails.length>0),h(1),d("ngIf",null!=o.activities&&o.activities.length>0),h(1),d("selected",!0)("ngClass",mt(12,Kpe,!1===o.showScreenshotPanel,!0===o.showScreenshotPanel)),h(1),d("EntityType",o.EntityType)("_height",1e3)("_thumbnails",!0),h(1),d("ngIf",o.variablesData.length>0),h(1),d("ngIf",o.outputValidations.length>0),h(1),d("ngIf",o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,Is,EC,Vpe,SC]})}return t})();function qpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Activity Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.activity.Name)}}function Wpe(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityDetails)}}function Qpe(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-actions-table",11),A()),2&t){const e=f();d("selected",!0),h(1),d("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("addExpender",!1)}}function Zpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}let Ype=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a}runAsyncLogic(e){var n=this;return Fu(function*(){const o=yield n.getActivityDataFromServer(e),s=JSON.parse(o.response);n.activity.VariablesAfterExec=s.VariablesAfterExec,n.activity.VariablesBeforeExec=s.VariablesBeforeExec,n.variablesData=n.getVariables()})()}getActivityDataFromServer(e){var n=this;return Fu(function*(){return yield n.restServiceObj.GetActivityById(e)})()}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}paramChanged(){let e;this.getActivity(),null!=this.activity.ExternalID&&""!=this.activity.ExternalID&&(e=this.activity.ExternalID),null!=this.activity.ExternalID2&&""!=this.activity.ExternalID&&(e=null!=e?e+" / "+this.activity.ExternalID2:this.activity.ExternalID2),this.actions=this.activity.ActionsColl,this.variablesData=this.getVariables(),this.activityDetails=[{field:"Execution Sequence",value:this.activity.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.activity.StartTimeStamp,"short")},{field:"Activity Group Name",value:this.activity.ActivityGroupName},{field:"Execution End Time",value:this.datePipe.transform(this.activity.EndTimeStamp,"short")},{field:"Description",value:this.activity.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activity.Elapsed)},{field:"Activity Name",value:this.activity.Name},{field:"Execution Status",value:this.activity.RunStatus},{field:"Actions Pass Rate",value:this.activity.PassRate+"%"},{field:"Actions Execution Rate",value:this.activity.ExecutionRate+"%"},{field:"Number Of Actions",value:this.activity.ActionsColl.length}],null!=e&&this.activityDetails.push({field:"Mapped ALM Entity ID",value:e}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}]}getVariables(){let e=[];if(this.activity.VariablesBeforeExec&&this.activity.VariablesBeforeExec.length>0)for(var n=0;n0&&(s.EndValue=this.activity.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getActivity(){var e=this;return Fu(function*(){const n=+e.route.snapshot.paramMap.get("Runner"),o=+e.route.snapshot.paramMap.get("BusinessFlow"),s=+e.route.snapshot.paramMap.get("Activity"),l=e._userDataManagerService.getItemCache().RunnersColl.filter(c=>c.Seq==n)[0].BusinessFlowsColl.filter(c=>c.Seq==o)[0];e.activity=l.ActivitiesColl.filter(c=>c.Seq==s)[0],e.globalVarService.isServerLoading&&(yield e.runAsyncLogic(e.activity.GUID))})()}getStatus(e=!0){if(null!=this.activity&&null!=this.activity.RunStatus)return this.calculatedDataService.getStatusClass(this.activity.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-report"]],inputs:{activity:"activity"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTIVITY GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bars"],[2,"font-weight","bold"],["header","ACTIVITY GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"actions","fieldsLinksArr","addExpender"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,qpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Wpe,2,2,"p-accordionTab",2),g(3,Qpe,2,4,"p-accordionTab",3),g(4,Zpe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.activity),h(1),d("multiple",!0),h(1),d("ngIf",o.activityDetails.length>0),h(1),d("ngIf",o.actions.length>0),h(1),d("ngIf",o.variablesData.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Ok]})}return t})();function Xpe(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("contextmenu",function(o){const r=G(e).$implicit;return q(f().onContextMenu(o,r.Value,r.Key))})("dblclick",function(){const s=G(e).$implicit;return q(f().DownLoad(s.Value,s.Key))}),le(3,"span",4),x(4,"p",5),Le(5),A()(),le(6,"p-contextMenu",6),Te()}if(2&t){const e=i.$implicit,n=Bt(2),o=f();h(3),d("innerHtml",o.getIcon(e.Value),hr),h(2),dt(e.Key),h(1),d("target",n)("model",o.contextMenuItems)}}let Jpe=(()=>{class t{constructor(e,n){this.globalVarService=e,this.globalVarService.artifactPath="artifacts/"}ngOnInit(){}onContextMenu(e,n,o){this.contextMenuItems=[],this.contextMenuItems.push({label:"Download",icon:"fas fa-external-link-alt",command:()=>this.DownLoad(n,o)})}ViewContent(){}getIcon(e){const o=e.split(".").pop();return oC[o]===oC.json?"":""}DownLoad(e,n){let o=document.createElement("a");o.setAttribute("type","hidden"),o.href=this.globalVarService.artifactPath+e,o.download=e,document.body.appendChild(o),o.click(),o.remove()}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V("environmentObj"))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["artifacts"]],inputs:{action:"action"},decls:2,vars:1,consts:[[1,"grid"],[4,"ngFor","ngForOf"],[1,"col-12","md:col-3","xl:col-2",3,"contextmenu","dblclick"],["art",""],[1,"fileicon",3,"innerHtml"],[1,"text-900","text-lg","font-medium","hideTxt",2,"padding-top","10px"],[3,"target","model"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Xpe,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.action.Artifacts))},dependencies:[Jn,tO],styles:[".hideTxt[_ngcontent-%COMP%]{display:inline-block;width:220px;white-space:pre-line;overflow:hidden!important;text-overflow:ellipsis;line-height:1rem} .fileicon img{font-size:3rem;width:60px} .fileicon i{font-size:6rem}"]})}return t})();function ehe(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Action Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.action.Name)}}function the(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.actionDetails)}}function nhe(t,i){if(1&t&&(x(0,"p-accordionTab",13),le(1,"app-table",14),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.inputValuesCols)("data",e.inputValuesData)}}function ihe(t,i){if(1&t&&(x(0,"p-accordionTab",15),le(1,"app-table",14),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)}}function ohe(t,i){if(1&t){const e=De();x(0,"p-accordionTab",16)(1,"screenshot-carousel",17),me("isScreenshotVisibleEvent",function(o){return G(e),q(f().setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f();d("selected",!0),h(1),d("EntityType",e.EntityType)("_height",1e3)("_thumbnails",!0)}}let she=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a,this.EntityType="action",this.showScreenshotPanel=!0}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.inputValuesCols=[{field:"Name",header:"Name"},{field:"Value",header:"Value"},{field:"CalculatedValue",header:"Calculated Value"}],this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}]}paramChanged(){this.getAction(),this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues(),this.actionDetails=[{field:"Execution Sequence",value:this.action.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.action.StartTimeStamp,"short")},{field:"Action Name",value:this.action.Name},{field:"Execution End Time",value:this.datePipe.transform(this.action.EndTimeStamp,"short")},{field:"Description",value:this.action.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.action.Elapsed)},{field:"Run Description",value:this.action.RunDescription},{field:"Execution Status",value:this.action.RunStatus},{field:"Action Type",value:this.action.ActionType},{field:"Current Retry Iteration",value:this.action.CurrentRetryIteration},{field:"Error Details",value:this.action.Error},{field:"Additional information",value:this.action.ExInfo},{field:"Screenshots",value:this.action.ScreenShots.length}]}getInputValues(){let e=[];for(let n of this.action.InputValues){let o=n.split("_:_"),s=new OK;s.Name=o[0],s.Value=this._userDataManagerService.replaceUnicodeChar(o[1]),s.CalculatedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),e.push(s)}return e}getOutputValues(){let e=[];for(let n of this.action.OutputValues){let o=n.split("_:_"),s=new $D;s.ParameterName=o[0],s.ActualValue=this._userDataManagerService.replaceUnicodeChar(o[1]),s.ExpectedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),s.Status=o[3],e.push(s)}return e}setScreenshotVisiblity(e){this.showScreenshotPanel=e}getAction(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow"),s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");let c=e.RunnersColl.filter(u=>u.Seq==n)[0].BusinessFlowsColl.filter(u=>u.Seq==o)[0].ActivitiesColl.filter(u=>u.Seq==s)[0];this.action=c.ActionsColl.filter(u=>u.Seq==r)[0],this.globalVarService.isServerLoading&&this.getActionFromServer(this.action.GUID)}getActionFromServer(e){this.restServiceObj.GetActionById(e).subscribe(n=>{const o=JSON.parse(n.response);this.action.InputValues=o.InputValues,this.action.OutputValues=o.OutputValues,this.action.FlowControls=o.FlowControls,this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues()})}getStatus(e=!0){if(null!=this.action&&null!=this.action.RunStatus)return this.calculatedDataService.getStatusClass(this.action.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-action-report"]],inputs:{action:"action"},decls:8,vars:8,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected"],[3,"action"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bolt"],[2,"font-weight","bold"],["header","ACTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"]],template:function(n,o){1&n&&(g(0,ehe,5,4,"h4",0),x(1,"p-accordion",1),g(2,the,2,2,"p-accordionTab",2),g(3,nhe,2,3,"p-accordionTab",3),g(4,ihe,2,3,"p-accordionTab",4),x(5,"p-accordionTab",5),le(6,"artifacts",6),A(),g(7,ohe,2,4,"p-accordionTab",7),A()),2&n&&(d("ngIf",o.action),h(1),d("multiple",!0),h(1),d("ngIf",o.actionDetails.length>0),h(1),d("ngIf",!!o.action.InputValues&&o.action.InputValues.length),h(1),d("ngIf",!!o.action.OutputValues&&o.action.OutputValues.length),h(1),d("selected",!0),h(1),d("action",o.action),h(1),d("ngIf",!!o.action.ScreenShots&&o.action.ScreenShots.length))},dependencies:[Ct,gt,ga,fa,Ul,Is,SC,Jpe]})}return t})();function rhe(t,i){if(1&t&&(x(0,"p-accordionTab",4),le(1,"app-general-details",5),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityGroupDetails)}}function ahe(t,i){if(1&t&&(x(0,"p-accordionTab",6),le(1,"app-activities-table",7),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)}}const uhe=qn.forRoot([{path:"",component:Mk},{path:"BusinessFlow/:ExecutionId/:BusinessFlowId",component:Mk},{path:":Runner",component:Fpe},{path:":Runner/:BusinessFlow",component:Gpe},{path:":Runner/:BusinessFlow/ag/ag/:ActivityGroupName",component:(()=>{class t{constructor(e,n,o){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.activities=[]}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()})}paramChanged(){let e;this.getActivityGroupByName(),null!=this.activityGroup.ExternalID&&""!=this.activityGroup.ExternalID&&(e=this.activityGroup.ExternalID),null!=this.activityGroup.ExternalID2&&""!=this.activityGroup.ExternalID&&(e=null!=e?e+" / "+this.activityGroup.ExternalID2:this.activityGroup.ExternalID2),this.activityGroupDetails=[{field:"Activity Group Name",value:this.activityGroup.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.activityGroup.StartTimeStamp,"short")},{field:"Description",value:this.activityGroup.Description},{field:"Execution End Time",value:this.datePipe.transform(this.activityGroup.EndTimeStamp,"short")},{field:"Automation Percentage",value:this.activityGroup.AutomationPercentage},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activityGroup.Elapsed)},{field:"Execution Status",value:this.activityGroup.RunStatus}],null!=e&&this.activityGroupDetails.push({field:"Mapped ALM Entity ID",value:e});for(let n of this.businessFlow.ActivitiesGroupsColl)if(n.Name==this.activityGroupName)for(let o of this.businessFlow.ActivitiesColl)n.ExecutedActivitiesGUID.includes(o.GUID)&&(o.ActivityGroupName=n.Name,o.NumberOfActions=o.ActionsColl.length,this.activities.push(o));this.fieldsLinksArr=[{field:"Name",link:"../../../",param:"Seq"}]}getActivityGroupByName(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");this.activityGroupName=this.route.snapshot.paramMap.get("ActivityGroupName");let s=e.RunnersColl.filter(r=>r.Seq==n)[0];this.businessFlow=s.BusinessFlowsColl.filter(r=>r.Seq==o)[0],this.activityGroup=this.businessFlow.ActivitiesGroupsColl.filter(r=>r.Name==this.activityGroupName)[0]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi),V(Co),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-group-report"]],decls:6,vars:3,consts:[[1,"fa","fa-fw","fa-exclamation-circle"],[3,"multiple"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr"]],template:function(n,o){1&n&&(x(0,"h4"),le(1,"span",0),Le(2," Activity Group Report"),A(),x(3,"p-accordion",1),g(4,rhe,2,2,"p-accordionTab",2),g(5,ahe,2,3,"p-accordionTab",3),A()),2&n&&(h(3),d("multiple",!0),h(1),d("ngIf",o.activityGroupDetails.length>0),h(1),d("ngIf",o.activities.length>0))},dependencies:[Ct,gt,ga,fa,Ul,EC]})}return t})()},{path:":Runner/:BusinessFlow/:Activity",component:Ype},{path:":Runner/:BusinessFlow/:Activity/:Action",component:she}],{scrollPositionRestoration:"enabled"});let ir=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const dhe=["container"],phe=["focusInput"],hhe=["multiIn"],fhe=["multiContainer"],ghe=["ddBtn"],mhe=["items"],_he=["scroller"],Ihe=["overlay"];function Che(t,i){if(1&t){const e=De();x(0,"input",12,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()}if(2&t){const e=f();Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("type",e.type)("autocomplete",e.autocomplete)("required",e.required)("name",e.name)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("value",e.inputValue())("id",e.inputId)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function vhe(t,i){if(1&t){const e=De();x(0,"TimesIcon",16),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-autocomplete-clear-icon"),K("aria-hidden",!0))}function bhe(t,i){}function yhe(t,i){1&t&&g(0,bhe,0,0,"ng-template")}function xhe(t,i){if(1&t){const e=De();x(0,"span",17),me("click",function(){return G(e),q(f(2).clear())}),g(1,yhe,1,0,null,9),A()}if(2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function Ahe(t,i){if(1&t&&(we(0),g(1,vhe,1,2,"TimesIcon",14),g(2,xhe,2,2,"span",15),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function whe(t,i){1&t&&ze(0)}function The(t,i){if(1&t&&(x(0,"span",30),Le(1),A()),2&t){const e=f().$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function She(t,i){1&t&&le(0,"TimesCircleIcon",31),2&t&&(d("styleClass","p-autocomplete-token-icon"),K("aria-hidden",!0))}function Ehe(t,i){}function Dhe(t,i){1&t&&g(0,Ehe,0,0,"ng-template")}function khe(t,i){if(1&t&&(x(0,"span",32),g(1,Dhe,1,0,null,9),A()),2&t){const e=f(3);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeIconTemplate)}}const Mhe=function(t){return{"p-autocomplete-token":!0,"p-focus":t}},Iv=function(t){return{$implicit:t}};function Ohe(t,i){if(1&t){const e=De();x(0,"li",23,24),g(2,whe,1,0,"ng-container",25),g(3,The,2,1,"span",26),x(4,"span",27),me("click",function(o){const r=G(e).index;return q(f(2).removeOption(o,r))}),g(5,She,1,2,"TimesCircleIcon",28),g(6,khe,2,2,"span",29),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",He(11,Mhe,o.focusedMultipleOptionIndex()===n)),K("id",o.id+"_multiple_option_"+n)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",n+1)("aria-selected",!0),h(2),d("ngTemplateOutlet",o.selectedItemTemplate)("ngTemplateOutletContext",He(13,Iv,e)),h(1),d("ngIf",!o.selectedItemTemplate),h(2),d("ngIf",!o.removeIconTemplate),h(1),d("ngIf",o.removeIconTemplate)}}function Lhe(t,i){if(1&t){const e=De();x(0,"ul",18,19),me("focus",function(o){return G(e),q(f().onMultipleContainerFocus(o))})("blur",function(o){return G(e),q(f().onMultipleContainerBlur(o))})("keydown",function(o){return G(e),q(f().onMultipleContainerKeyDown(o))}),g(2,Ohe,7,15,"li",20),x(3,"li",21)(4,"input",22,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()()()}if(2&t){const e=f();Ve(e.multiContainerClass),d("tabindex",-1),K("aria-orientation","horizontal")("aria-activedescendant",e.focused?e.focusedMultipleOptionId:void 0),h(2),d("ngForOf",e.modelValue()),h(2),Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("autocomplete",e.autocomplete)("required",e.required)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("type",e.type)("id",e.inputId)("name",e.name)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function Phe(t,i){1&t&&le(0,"SpinnerIcon",35),2&t&&(d("styleClass","p-autocomplete-loader")("spin",!0),K("aria-hidden",!0))}function Fhe(t,i){}function Rhe(t,i){1&t&&g(0,Fhe,0,0,"ng-template")}function Nhe(t,i){if(1&t&&(x(0,"span",36),g(1,Rhe,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function Vhe(t,i){if(1&t&&(we(0),g(1,Phe,1,3,"SpinnerIcon",33),g(2,Nhe,2,2,"span",34),Te()),2&t){const e=f();h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function Bhe(t,i){1&t&&le(0,"span",40),2&t&&(d("ngClass",f(2).dropdownIcon),K("aria-hidden",!0))}function Hhe(t,i){1&t&&le(0,"ChevronDownIcon")}function zhe(t,i){}function jhe(t,i){1&t&&g(0,zhe,0,0,"ng-template")}function Uhe(t,i){if(1&t&&(we(0),g(1,Hhe,1,0,"ChevronDownIcon",3),g(2,jhe,1,0,null,9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.dropdownIconTemplate),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function $he(t,i){if(1&t){const e=De();x(0,"button",37,38),me("click",function(o){return G(e),q(f().handleDropdownClick(o))}),g(2,Bhe,1,2,"span",39),g(3,Uhe,3,2,"ng-container",3),A()}if(2&t){const e=f();d("disabled",e.disabled),K("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),h(2),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Khe(t,i){1&t&&ze(0)}function Ghe(t,i){1&t&&ze(0)}const iO=function(t,i){return{$implicit:t,options:i}};function qhe(t,i){if(1&t&&g(0,Ghe,1,0,"ng-container",25),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(14))("ngTemplateOutletContext",mt(2,iO,e,n))}}function Whe(t,i){1&t&&ze(0)}const Qhe=function(t){return{options:t}};function Zhe(t,i){if(1&t&&g(0,Whe,1,0,"ng-container",25),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,Qhe,e))}}function Yhe(t,i){1&t&&(we(0),g(1,Zhe,1,4,"ng-template",44),Te())}const tg=function(t){return{height:t}};function Xhe(t,i){if(1&t){const e=De();x(0,"p-scroller",41,42),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,qhe,1,5,"ng-template",43),g(3,Yhe,2,0,"ng-container",3),A()}if(2&t){const e=f();yn(He(8,tg,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function Jhe(t,i){1&t&&ze(0)}const efe=function(){return{}};function tfe(t,i){if(1&t&&(we(0),g(1,Jhe,1,0,"ng-container",25),Te()),2&t){const e=f(),n=Bt(14);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,iO,e.visibleOptions(),Jt(2,efe)))}}function nfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function ife(t,i){1&t&&ze(0)}function ofe(t,i){if(1&t&&(we(0),x(1,"li",50),g(2,nfe,2,1,"span",3),g(3,ife,1,0,"ng-container",25),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,tg,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Iv,o.optionGroup))}}function sfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function rfe(t,i){1&t&&ze(0)}const afe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},lfe=function(t,i){return{$implicit:t,index:i}};function cfe(t,i){if(1&t){const e=De();we(0),x(1,"li",51),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionSelect(o,s))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),g(2,sfe,2,1,"span",3),g(3,rfe,1,0,"ng-container",25),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,tg,s.itemSize+"px"))("ngClass",Rn(14,afe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("data-p-focused",r.focusedOptionIndex()===r.getOptionIndex(o,s))("aria-setsize",r.ariaSetSize)("aria-posinset",r.getAriaPosInset(r.getOptionIndex(o,s))),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,lfe,n,s.getOptions?s.getOptions(o):o))}}function ufe(t,i){if(1&t&&(g(0,ofe,4,9,"ng-container",3),g(1,cfe,4,21,"ng-container",3)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function dfe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.searchResultMessageText," ")}}function pfe(t,i){1&t&&ze(0,null,54)}function hfe(t,i){if(1&t&&(x(0,"li",52),g(1,dfe,2,1,"ng-container",53),g(2,pfe,2,0,"ng-container",9),A()),2&t){const e=f().options,n=f();d("ngStyle",He(4,tg,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function ffe(t,i){1&t&&ze(0)}function gfe(t,i){if(1&t&&(x(0,"ul",45,46),g(2,ufe,2,2,"ng-template",47),g(3,hfe,3,6,"li",48),A(),g(4,ffe,1,0,"ng-container",25),x(5,"span",49),Le(6),A()),2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",!e||e&&0===e.length&&o.showEmptyMessage),h(1),d("ngTemplateOutlet",o.footerTemplate)("ngTemplateOutletContext",He(9,Iv,e)),h(2),Pt(" ",o.selectedMessageText," ")}}const mfe={provide:un,useExisting:ft(()=>_fe),multi:!0};let _fe=(()=>{class t{document;el;renderer;cd;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;optionDisabled;focusOnHover;completeMethod=new ge;onSelect=new ge;onUnselect=new ge;onFocus=new ge;onBlur=new ge;onDropdownClick=new ge;onClear=new ge;onKeyUp=new ge;onShow=new ge;onHide=new ge;onLazyLoad=new ge;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions=bn(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;filled;loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=bn(null);focusedMultipleOptionIndex=bn(-1);focusedOptionIndex=bn(-1);visibleOptions=Ds(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=Ds(()=>{const e=this.modelValue();return this.filled=be.isNotEmpty(this.modelValue()),e?"object"==typeof e?this.getOptionLabel(e)??e:e:""});get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue()||be.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return"p-autocomplete-multiple-container p-component p-inputtext"}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return be.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.config=r,this.overlayService=a,this.zone=l}ngOnInit(){this.id=this.id||$t()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"removetokenicon":this.removeIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}handleSuggestionsChange(){if(this.loading){this._suggestions()||this.emptyTemplate?this.show():this.hide();const e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){return be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,n){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===n.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return this.multiple?e.target===this.multiContainerEL.nativeElement||this.multiContainerEL.nativeElement.contains(e.target):e.target===this.inputEL.nativeElement}isDropdownClicked(e){return!!this.dropdownButton?.nativeElement&&(e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target))}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&j.focus(this.inputEL.nativeElement)}handleDropdownClick(e){let n;this.overlayVisible?this.hide(!0):(j.focus(this.inputEL.nativeElement),n=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,n,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:n})}onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let n=e.target.value;this.multiple||this.updateModel(n),0!==n.length||this.multiple?n.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,n,"input")},this.delay)):this.hide():(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2))}onInputChange(e){if(this.forceSelection){let n=!1;if(this.visibleOptions()){const o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));void 0!==o&&(n=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}n||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}}onArrowDownKey(e){if(!this.overlayVisible)return;const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){const n=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(be.isEmpty(n.value)&&this.hasSelectedOption()?(j.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){const{currentTarget:n}=e;n.setSelectionRange(0,e.shiftKey?n.value.length:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){const{currentTarget:n}=e,o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(be.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){const n=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:n})}e.stopPropagation()}}onArrowLeftKeyOnMultiple(e){const n=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(n)}onArrowRightKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex();n++,this.focusedMultipleOptionIndex.set(n),n>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),j.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,n,o=!0){const s=this.getOptionValue(n);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(n)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:n}),o&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}search(e,n,o){null!=n&&("input"===o&&0===n.trim().length||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:n})))}removeOption(e,n){const o=this.modelValue()[n],s=this.modelValue().filter((r,a)=>a!==n).map(r=>this.getOptionValue(r));this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),j.focus(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.value&&this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=this.multiple?"":this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions()[n],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.inputEL.nativeElement),e&&j.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){const n=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&j.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{n()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.filled=!(!this.value||!this.value.length),this.updateModel(e),this.cd.markForCheck()}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?be.resolveFieldData(e,this.field||this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState&&(this.itemsWrapper=j.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(Di),V(Dr),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-autoComplete"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(dhe,5),je(phe,5),je(hhe,5),je(fhe,5),je(ghe,5),je(mhe,5),je(_he,5),je(Ihe,5)),2&n){let s;Se(s=Ee())&&(o.containerEL=s.first),Se(s=Ee())&&(o.inputEL=s.first),Se(s=Ee())&&(o.multiInputEl=s.first),Se(s=Ee())&&(o.multiContainerEL=s.first),Se(s=Ee())&&(o.dropdownButton=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused&&!o.disabled||o.autofocus||o.overlayVisible)("p-autocomplete-clearable",o.showClear&&!o.disabled)},inputs:{minLength:"minLength",delay:"delay",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:"readonly",disabled:"disabled",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",maxlength:"maxlength",name:"name",required:"required",size:"size",appendTo:"appendTo",autoHighlight:"autoHighlight",forceSelection:"forceSelection",type:"type",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:"unique",group:"group",completeOnFocus:"completeOnFocus",showClear:"showClear",field:"field",dropdown:"dropdown",showEmptyMessage:"showEmptyMessage",dropdownMode:"dropdownMode",multiple:"multiple",tabindex:"tabindex",dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:"autofocus",autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",optionDisabled:"optionDisabled",focusOnHover:"focusOnHover"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[yt([mfe])],decls:15,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["focusInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"tabindex","focus","blur","keydown"],["multiContainer",""],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"autofocus","ngClass","ngStyle","autocomplete","required","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["role","option",3,"ngClass"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"disabled","click"],["ddBtn",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"ngStyle","ngClass","click","mouseenter"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,Che,2,23,"input",2),g(3,Ahe,3,2,"ng-container",3),g(4,Lhe,6,28,"ul",4),g(5,Vhe,3,2,"ng-container",3),g(6,$he,4,5,"button",5),x(7,"p-overlay",6,7),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),x(9,"div",8),g(10,Khe,1,0,"ng-container",9),g(11,Xhe,4,10,"p-scroller",10),g(12,tfe,2,6,"ng-container",3),g(13,gfe,7,11,"ng-template",null,11,In),A()()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),h(2),d("ngIf",!o.multiple),h(1),d("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),h(1),d("ngIf",o.multiple),h(1),d("ngIf",o.loading),h(1),d("ngIf",o.dropdown),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions),h(2),Ve(o.panelStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight),d("ngClass",o.panelClass)("ngStyle",o.panelStyle),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,hf,oo,Bu,uC,ir,_s,mn,bi]},styles:["@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:-moz-fit-content;width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Ife=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Zs,ki,Qe,dn,Mi,gf,ir,_s,mn,bi,$l,Qe,Mi,gf]})}return t})(),oO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["HomeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4175 6.79971C13.2874 6.80029 13.1608 6.75807 13.057 6.67955L12.4162 6.19913V12.6073C12.4141 12.7659 12.3502 12.9176 12.2379 13.0298C12.1257 13.142 11.9741 13.206 11.8154 13.208H8.61206C8.61179 13.208 8.61151 13.208 8.61123 13.2081C8.61095 13.208 8.61068 13.208 8.6104 13.208H5.41076C5.40952 13.208 5.40829 13.2081 5.40705 13.2081C5.40581 13.2081 5.40458 13.208 5.40334 13.208H2.20287C2.04418 13.206 1.89257 13.142 1.78035 13.0298C1.66813 12.9176 1.60416 12.7659 1.60209 12.6073V6.19914L0.961256 6.67955C0.833786 6.77515 0.673559 6.8162 0.515823 6.79367C0.358086 6.77114 0.215762 6.68686 0.120159 6.55939C0.0245566 6.43192 -0.0164931 6.2717 0.00604063 6.11396C0.0285744 5.95622 0.112846 5.8139 0.240316 5.7183L1.83796 4.52007L1.84689 4.51337L6.64868 0.912027C6.75267 0.834032 6.87915 0.79187 7.00915 0.79187C7.13914 0.79187 7.26562 0.834032 7.36962 0.912027L12.1719 4.51372L12.1799 4.51971L13.778 5.7183C13.8943 5.81278 13.9711 5.94732 13.9934 6.09553C14.0156 6.24373 13.9816 6.39489 13.8981 6.51934C13.8471 6.60184 13.7766 6.67054 13.6928 6.71942C13.609 6.76831 13.5144 6.79587 13.4175 6.79971ZM6.00783 12.0065H8.01045V7.60074H6.00783V12.0065ZM9.21201 12.0065V6.99995C9.20994 6.84126 9.14598 6.68965 9.03375 6.57743C8.92153 6.46521 8.76992 6.40124 8.61123 6.39917H5.40705C5.24836 6.40124 5.09675 6.46521 4.98453 6.57743C4.8723 6.68965 4.80834 6.84126 4.80627 6.99995V12.0065H2.80366V5.29836L7.00915 2.14564L11.2146 5.29836V12.0065H9.21201Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qi,oO,Qe,qn,Nn,Qe]})}return t})(),cge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),Oge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Qi,Mr,bi,ff,Xe,Qe]})}return t})();const Lge=["input"];function Pge(t,i){1&t&&le(0,"span",10),2&t&&(d("ngClass",f(3).checkboxIcon),K("data-pc-section","icon"))}function Fge(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","icon"))}function Rge(t,i){if(1&t&&(we(0),g(1,Pge,1,2,"span",8),g(2,Fge,1,2,"CheckIcon",9),Te()),2&t){const e=f(2);h(1),d("ngIf",e.checkboxIcon),h(1),d("ngIf",!e.checkboxIcon)}}function Nge(t,i){}function Vge(t,i){1&t&&g(0,Nge,0,0,"ng-template")}function Bge(t,i){if(1&t&&(x(0,"span",12),g(1,Vge,1,0,null,13),A()),2&t){const e=f(2);K("data-pc-section","icon"),h(1),d("ngTemplateOutlet",e.checkboxIconTemplate)}}function Hge(t,i){if(1&t&&(we(0),g(1,Rge,3,2,"ng-container",5),g(2,Bge,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkboxIconTemplate),h(1),d("ngIf",e.checkboxIconTemplate)}}const zge=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function jge(t,i){if(1&t){const e=De();x(0,"label",14),me("click",function(o){return G(e),q(f().onClick(o))}),Le(1),A()}if(2&t){const e=f();Ve(e.labelStyleClass),d("ngClass",Rn(6,zge,e.checked(),e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),Pt(" ",e.label,"")}}const Uge=function(t,i,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},$ge=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},Kge={provide:un,useExisting:ft(()=>Gge),multi:!0};let Gge=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new ge;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()&&(this.checkboxIconTemplate=e.template)})}onClick(e){if(!this.disabled&&!this.readonly){let n;this.inputViewChild.nativeElement.focus(),this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(o=>!be.equals(o,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:be.contains(this.value,this.model)}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-checkbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Lge,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([Kge])],decls:7,vars:35,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"value","checked","disabled","readonly","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,Hge,3,2,"ng-container",5),A()(),g(6,jge,2,10,"label",6)),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(27,Uge,o.checked(),o.disabled,o.focused)),K("data-pc-name","checkbox")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("value",o.value)("checked",o.checked())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("name",o.name)("tabindex",o.tabindex)("required",o.required)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-checked",o.checked())("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(31,$ge,o.checked(),o.disabled,o.focused)),K("data-p-highlight",o.checked())("data-p-disabled",o.disabled)("data-p-focused",o.focused)("data-pc-section","input"),h(1),d("ngIf",o.checked()),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return t})(),qge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,Qe]})}return t})();const Wge=["inputtext"],Qge=["container"];function Zge(t,i){1&t&&ze(0)}function Yge(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f().$implicit,n=f();K("data-pc-section","label"),h(1),dt(n.field?n.resolveFieldData(e,n.field):e)}}function Xge(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",15),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),A()}2&t&&(d("styleClass","p-chips-token-icon"),K("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function Jge(t,i){}function eme(t,i){1&t&&g(0,Jge,0,0,"ng-template")}function tme(t,i){if(1&t){const e=De();x(0,"span",16),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),g(1,eme,1,0,null,17),A()}if(2&t){const e=f(3);K("data-pc-section","removeTokenIcon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function nme(t,i){if(1&t&&(we(0),g(1,Xge,1,3,"TimesCircleIcon",13),g(2,tme,2,3,"span",14),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}const ime=function(t){return{"p-chips-token":!0,"p-focus":t}},ome=function(t){return{$implicit:t}};function sme(t,i){if(1&t){const e=De();x(0,"li",8,9),me("click",function(o){const r=G(e).$implicit;return q(f().onItemClick(o,r))}),g(2,Zge,1,0,"ng-container",10),g(3,Yge,2,2,"span",11),g(4,nme,3,2,"ng-container",7),A()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",He(12,ime,o.focusedIndex===n)),K("id",o.id+"_chips_item_"+n)("ariaLabel",e)("aria-selected",!0)("aria-setsize",o.value.length)("aria-pointset",n+1)("data-p-focused",o.focusedIndex===n)("data-pc-section","token"),h(2),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",He(14,ome,e)),h(1),d("ngIf",!o.itemTemplate),h(1),d("ngIf",!o.disabled)}}function rme(t,i){if(1&t){const e=De();x(0,"TimesIcon",15),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&d("styleClass","p-chips-clear-icon")}function ame(t,i){}function lme(t,i){1&t&&g(0,ame,0,0,"ng-template")}function cme(t,i){if(1&t){const e=De();x(0,"span",19),me("click",function(){return G(e),q(f(2).clear())}),g(1,lme,1,0,null,17),A()}if(2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function ume(t,i){if(1&t&&(x(0,"li"),g(1,rme,1,1,"TimesIcon",13),g(2,cme,2,1,"span",18),A()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const dme=function(t,i,e,n){return{"p-chips p-component p-input-wrapper":!0,"p-disabled":t,"p-focus":i,"p-inputwrapper-filled":e,"p-inputwrapper-focus":n}},pme=function(){return{"p-inputtext p-chips-multiple-container":!0}},hme=function(t){return{"p-chips-clearable":t}},fme={provide:un,useExisting:ft(()=>gme),multi:!0};let gme=(()=>{class t{document;el;cd;style;styleClass;disabled;field;placeholder;max;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;onAdd=new ge;onRemove=new ge;onFocus=new ge;onBlur=new ge;onChipClick=new ge;onClear=new ge;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=$t();focused;focusedIndex;filled;get focusedOptionId(){return null!==this.focusedIndex?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(e,n,o){this.document=e,this.el=n,this.cd=o}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template}}),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(e)}}onArrowLeftKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex=null===this.focusedIndex?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(e){null!==this.focusedIndex&&this.removeItem(e,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(e){this.disabled||(this.separator&&((e.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(o=>{this.addItem(e,o,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){this.filled=!(!this.value||0===this.value.length)||this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(e,n){this.onChipClick.emit({originalEvent:e,value:n})}writeValue(e){this.value=e,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}resolveFieldData(e,n){if(e&&n){if(-1==n.indexOf("."))return e[n];{let r=n.split("."),a=e;for(var o=0,s=r.length;or!=n),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:e,value:o}),this.updateFilledState(),this.updateMaxedOut()}addItem(e,n,o){this.value=this.value||[],n&&n.trim().length&&(this.allowDuplicate||-1===this.value.indexOf(n))&&!this.isMaxedOut&&(this.value=[...this.value,n],this.onModelChange(this.value),this.onAdd.emit({originalEvent:e,value:n})),this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",o&&e.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(e){const n=e.target.value;switch(e.code){case"Backspace":0===n.length&&this.value&&this.value.length>0&&this.removeItem(e,null!==this.focusedIndex?this.focusedIndex:this.value.length-1);break;case"Enter":n&&n.trim().length&&!this.isMaxedOut&&this.addItem(e,n,!0);break;case"ArrowLeft":0===n.length&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":e.stopPropagation();break;default:this.separator&&(this.separator===e.key||e.key.match(this.separator))&&this.addItem(e,n,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-chips"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(Wge,5),je(Qge,5)),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-chips-clearable",o.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[yt([fme])],decls:8,vars:31,consts:[[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"ngClass","click","focus","blur","keydown"],["container",""],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text",3,"disabled","ngStyle","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],["role","option",3,"ngClass","click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"ul",1,2),me("click",function(){return o.onWrapperClick()})("focus",function(){return o.onContainerFocus()})("blur",function(){return o.onContainerBlur()})("keydown",function(r){return o.onContainerKeyDown(r)}),g(3,sme,5,16,"li",3),x(4,"li",4)(5,"input",5,6),me("keydown",function(r){return o.onKeyDown(r)})("input",function(){return o.onInput()})("paste",function(r){return o.onPaste(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A()(),g(7,ume,3,2,"li",7),A()()),2&n&&(Ve(o.styleClass),d("ngClass",gr(23,dme,o.disabled,o.focused,o.value&&o.value.length||(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value)&&(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value.length),o.focused))("ngStyle",o.style),K("data-pc-name","chips")("data-pc-section","root"),h(1),d("ngClass",Jt(28,pme)),K("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),h(2),d("ngForOf",o.value),h(1),d("ngClass",He(29,hme,o.showClear&&!o.disabled)),K("data-pc-section","inputToken"),h(1),Ve(o.inputStyleClass),d("disabled",o.disabled||o.isMaxedOut)("ngStyle",o.inputStyle),K("id",o.inputId)("placeholder",o.value&&o.value.length?null:o.placeholder)("tabindex",o.tabindex),h(2),d("ngIf",null!=o.value&&o.filled&&!o.disabled&&o.showClear))},dependencies:function(){return[Ct,Jn,gt,on,Ht,ir,mn]},styles:["@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),mme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Qe,ir,mn,Zs,Qe]})}return t})();Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}",en({transform:"none",opacity:1}))]),Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Xme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,ki,dn,mn,yi,ki,Qe]})}return t})();const Jme=["container"],e_e=["input"],t_e=["colorSelector"],n_e=["colorHandle"],i_e=["hue"],o_e=["hueHandle"],s_e=function(t){return{"p-disabled":t}};function r_e(t,i){if(1&t){const e=De();x(0,"input",4,5),me("click",function(){return G(e),q(f().onInputClick())})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("focus",function(){return G(e),q(f().onInputFocus())}),A()}if(2&t){const e=f();fo("background-color",e.inputBgColor),d("ngClass",He(7,s_e,e.disabled))("disabled",e.disabled),K("tabindex",e.tabindex)("id",e.inputId)("data-pc-section","input")}}const a_e=function(t,i){return{"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":t,"p-disabled":i}},l_e=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},c_e=function(t){return{value:"visible",params:t}};function u_e(t,i){if(1&t){const e=De();x(0,"div",6),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(1,"div",7)(2,"div",8,9),me("touchstart",function(o){return G(e),q(f().onColorDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())})("mousedown",function(o){return G(e),q(f().onColorMousedown(o))}),x(4,"div",10),le(5,"div",11,12),A()(),x(7,"div",13,14),me("mousedown",function(o){return G(e),q(f().onHueMousedown(o))})("touchstart",function(o){return G(e),q(f().onHueDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())}),le(9,"div",15,16),A()()()}if(2&t){const e=f();d("ngClass",mt(10,a_e,!e.inline,e.disabled))("@overlayAnimation",He(16,c_e,mt(13,l_e,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("data-pc-section","panel"),h(1),K("data-pc-section","content"),h(1),K("data-pc-section","selector"),h(2),K("data-pc-section","color"),h(1),K("data-pc-section","colorHandle"),h(2),K("data-pc-section","hue"),h(2),K("data-pc-section","hueHandle")}}const d_e=function(t,i){return{"p-colorpicker p-component":!0,"p-colorpicker-overlay":t,"p-colorpicker-dragging":i}},p_e={provide:un,useExisting:ft(()=>h_e),multi:!0};let h_e=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;style;styleClass;inline;format="hex";appendTo;disabled;tabindex;inputId;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onChange=new ge;onShow=new ge;onHide=new ge;containerViewChild;inputViewChild;value={h:0,s:100,b:100};inputBgColor;shown;overlayVisible;defaultColor="ff0000";onModelChange=()=>{};onModelTouched=()=>{};documentClickListener;documentResizeListener;documentMousemoveListener;documentMouseupListener;documentHueMoveListener;scrollHandler;selfClick;colorDragging;hueDragging;overlay;colorSelectorViewChild;colorHandleViewChild;hueViewChild;hueHandleViewChild;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueDragStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorDragStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,n){let o=n?n.pageY:e.pageY,s=this.hueViewChild?.nativeElement.getBoundingClientRect().top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,o-s)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onDrag(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,n){let o=n?n.pageX:e.pageX,s=n?n.pageY:e.pageY,r=this.colorSelectorViewChild?.nativeElement.getBoundingClientRect(),a=r.top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0),c=Math.floor(100*Math.max(0,Math.min(150,o-(r.left+this.document.body.scrollLeft)))/150),u=Math.floor(100*(150-Math.max(0,Math.min(150,s-a)))/150);this.value=this.validateHSB({h:this.value.h,s:c,b:u}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){const e={s:100,b:100};e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild?.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inline||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&Wn.clear(e.element),this.onHide.emit({})}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):j.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.overlay)}alignOverlay(){this.appendTo?j.absolutePosition(this.overlay,this.inputViewChild?.nativeElement):j.relativePosition(this.overlay,this.inputViewChild?.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.code){case"Space":this.togglePanel(),e.preventDefault();break;case"Escape":case"Tab":this.hide()}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){this.documentMousemoveListener||(this.documentMousemoveListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousemove",n=>{this.colorDragging&&this.pickColor(n),this.hueDragging&&this.pickHue(n)}))}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){this.documentMouseupListener||(this.documentMouseupListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}))}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var n=6-e.length;if(n>0){for(var o=[],s=0;s-1?e.substring(1):e,16);return{r:n>>16,g:(65280&n)>>8,b:255&n}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var n={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),s=Math.max(e.r,e.g,e.b),r=s-o;return n.b=s,n.s=0!=s?255*r/s:0,n.h=0!=n.s?e.r==s?(e.g-e.b)/r:e.g==s?2+(e.b-e.r)/r:4+(e.r-e.g)/r:-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n}HSBtoRGB(e){var n={r:0,g:0,b:0};let o=e.h,s=255*e.s/100,r=255*e.b/100;if(0==s)n={r,g:r,b:r};else{let a=r,l=(255-s)*r/255,c=o%60*(a-l)/60;360==o&&(o=0),o<60?(n.r=a,n.b=l,n.g=l+c):o<120?(n.g=a,n.b=l,n.r=a-c):o<180?(n.g=a,n.r=l,n.b=l+c):o<240?(n.b=a,n.r=l,n.g=a-c):o<300?(n.b=a,n.g=l,n.r=l+c):o<360?(n.r=a,n.g=l,n.b=a-c):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}RGBtoHEX(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var o in n)1==n[o].length&&(n[o]="0"+n[o]);return n.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(Di),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-colorPicker"]],viewQuery:function(n,o){if(1&n&&(je(Jme,5),je(e_e,5),je(t_e,5),je(n_e,5),je(i_e,5),je(o_e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.colorSelector=s.first),Se(s=Ee())&&(o.colorHandle=s.first),Se(s=Ee())&&(o.hue=s.first),Se(s=Ee())&&(o.hueHandle=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",inline:"inline",format:"format",appendTo:"appendTo",disabled:"disabled",tabindex:"tabindex",inputId:"inputId",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[yt([p_e])],decls:4,vars:11,consts:[[3,"ngStyle","ngClass"],["container",""],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly",3,"ngClass","disabled","backgroundColor","click","keydown","focus",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview","p-inputtext",3,"ngClass","disabled","click","keydown","focus"],["input",""],[3,"ngClass","click"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],["colorSelector",""],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],["colorHandle",""],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],["hue",""],[1,"p-colorpicker-hue-handle"],["hueHandle",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,r_e,2,9,"input",2),g(3,u_e,11,18,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(8,d_e,!o.inline,o.colorDragging||o.hueDragging)),K("data-pc-name","colorpicker")("data-pc-section","root"),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{position:relative;width:193px;height:166px}.p-colorpicker-overlay-panel{position:absolute;top:0;left:0}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{width:150px;height:150px;top:8px;left:8px;position:absolute}.p-colorpicker-panel .p-colorpicker-color{width:150px;height:150px}.p-colorpicker-panel .p-colorpicker-color-handle{position:absolute;top:0;left:150px;border-radius:100%;width:10px;height:10px;border-width:1px;border-style:solid;margin:-5px 0 0 -5px;cursor:pointer;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue{width:17px;height:150px;top:8px;left:167px;position:absolute;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue-handle{position:absolute;top:150px;left:0;width:21px;margin-left:-2px;margin-top:-5px;height:10px;border-width:2px;border-style:solid;opacity:.85;cursor:pointer}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),f_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),g_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ThLargeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.90909 6.36364H4.45455C4.96087 6.36364 5.44645 6.1625 5.80448 5.80448C6.1625 5.44645 6.36364 4.96087 6.36364 4.45455V1.90909C6.36364 1.40277 6.1625 0.917184 5.80448 0.55916C5.44645 0.201136 4.96087 0 4.45455 0H1.90909C1.40277 0 0.917184 0.201136 0.55916 0.55916C0.201136 0.917184 0 1.40277 0 1.90909V4.45455C0 4.96087 0.201136 5.44645 0.55916 5.80448C0.917184 6.1625 1.40277 6.36364 1.90909 6.36364ZM1.46154 1.46154C1.58041 1.34268 1.741 1.27492 1.90909 1.27273H4.45455C4.62264 1.27492 4.78322 1.34268 4.90209 1.46154C5.02096 1.58041 5.08871 1.741 5.09091 1.90909V4.45455C5.08871 4.62264 5.02096 4.78322 4.90209 4.90209C4.78322 5.02096 4.62264 5.08871 4.45455 5.09091H1.90909C1.741 5.08871 1.58041 5.02096 1.46154 4.90209C1.34268 4.78322 1.27492 4.62264 1.27273 4.45455V1.90909C1.27492 1.741 1.34268 1.58041 1.46154 1.46154ZM1.90909 14H4.45455C4.96087 14 5.44645 13.7989 5.80448 13.4408C6.1625 13.0828 6.36364 12.5972 6.36364 12.0909V9.54544C6.36364 9.03912 6.1625 8.55354 5.80448 8.19551C5.44645 7.83749 4.96087 7.63635 4.45455 7.63635H1.90909C1.40277 7.63635 0.917184 7.83749 0.55916 8.19551C0.201136 8.55354 0 9.03912 0 9.54544V12.0909C0 12.5972 0.201136 13.0828 0.55916 13.4408C0.917184 13.7989 1.40277 14 1.90909 14ZM1.46154 9.0979C1.58041 8.97903 1.741 8.91128 1.90909 8.90908H4.45455C4.62264 8.91128 4.78322 8.97903 4.90209 9.0979C5.02096 9.21677 5.08871 9.37735 5.09091 9.54544V12.0909C5.08871 12.259 5.02096 12.4196 4.90209 12.5384C4.78322 12.6573 4.62264 12.7251 4.45455 12.7273H1.90909C1.741 12.7251 1.58041 12.6573 1.46154 12.5384C1.34268 12.4196 1.27492 12.259 1.27273 12.0909V9.54544C1.27492 9.37735 1.34268 9.21677 1.46154 9.0979ZM12.0909 6.36364H9.54544C9.03912 6.36364 8.55354 6.1625 8.19551 5.80448C7.83749 5.44645 7.63635 4.96087 7.63635 4.45455V1.90909C7.63635 1.40277 7.83749 0.917184 8.19551 0.55916C8.55354 0.201136 9.03912 0 9.54544 0H12.0909C12.5972 0 13.0828 0.201136 13.4408 0.55916C13.7989 0.917184 14 1.40277 14 1.90909V4.45455C14 4.96087 13.7989 5.44645 13.4408 5.80448C13.0828 6.1625 12.5972 6.36364 12.0909 6.36364ZM9.54544 1.27273C9.37735 1.27492 9.21677 1.34268 9.0979 1.46154C8.97903 1.58041 8.91128 1.741 8.90908 1.90909V4.45455C8.91128 4.62264 8.97903 4.78322 9.0979 4.90209C9.21677 5.02096 9.37735 5.08871 9.54544 5.09091H12.0909C12.259 5.08871 12.4196 5.02096 12.5384 4.90209C12.6573 4.78322 12.7251 4.62264 12.7273 4.45455V1.90909C12.7251 1.741 12.6573 1.58041 12.5384 1.46154C12.4196 1.34268 12.259 1.27492 12.0909 1.27273H9.54544ZM9.54544 14H12.0909C12.5972 14 13.0828 13.7989 13.4408 13.4408C13.7989 13.0828 14 12.5972 14 12.0909V9.54544C14 9.03912 13.7989 8.55354 13.4408 8.19551C13.0828 7.83749 12.5972 7.63635 12.0909 7.63635H9.54544C9.03912 7.63635 8.55354 7.83749 8.19551 8.19551C7.83749 8.55354 7.63635 9.03912 7.63635 9.54544V12.0909C7.63635 12.5972 7.83749 13.0828 8.19551 13.4408C8.55354 13.7989 9.03912 14 9.54544 14ZM9.0979 9.0979C9.21677 8.97903 9.37735 8.91128 9.54544 8.90908H12.0909C12.259 8.91128 12.4196 8.97903 12.5384 9.0979C12.6573 9.21677 12.7251 9.37735 12.7273 9.54544V12.0909C12.7251 12.259 12.6573 12.4196 12.5384 12.5384C12.4196 12.6573 12.259 12.7251 12.0909 12.7273H9.54544C9.37735 12.7251 9.21677 12.6573 9.0979 12.5384C8.97903 12.4196 8.91128 12.259 8.90908 12.0909V9.54544C8.91128 9.37735 8.97903 9.21677 9.0979 9.0979Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),lO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BarsIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),D_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,vf,_s,lO,g_e,Qe]})}return t})();var k_e=z(7536);function M_e(t,i){1&t&&ze(0)}function O_e(t,i){if(1&t&&(x(0,"div",3),Kn(1),g(2,M_e,1,0,"ng-container",4),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)}}function L_e(t,i){1&t&&(x(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),Le(4,"Heading"),A(),x(5,"option",8),Le(6,"Subheading"),A(),x(7,"option",9),Le(8,"Normal"),A()(),x(9,"select",10)(10,"option",9),Le(11,"Sans Serif"),A(),x(12,"option",11),Le(13,"Serif"),A(),x(14,"option",12),Le(15,"Monospace"),A()()(),x(16,"span",5),le(17,"button",13)(18,"button",14)(19,"button",15),A(),x(20,"span",5),le(21,"select",16)(22,"select",17),A(),x(23,"span",5),le(24,"button",18)(25,"button",19),x(26,"select",20),le(27,"option",9),x(28,"option",21),Le(29,"center"),A(),x(30,"option",22),Le(31,"right"),A(),x(32,"option",23),Le(33,"justify"),A()()(),x(34,"span",5),le(35,"button",24)(36,"button",25)(37,"button",26),A(),x(38,"span",5),le(39,"button",27),A()())}const P_e=[[["p-header"]]],F_e=["p-header"],R_e={provide:un,useExisting:ft(()=>N_e),multi:!0};let N_e=(()=>{class t{el;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new ge;onTextChange=new ge;onSelectionChange=new ge;templates;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;constructor(e){this.el=e}ngAfterViewInit(){this.initQuillElements(),this.isAttachedQuillEditorToDOM&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.isAttachedQuillEditorToDOM&&this.initQuillEditor(),this.delayedCommand&&this.isAttachedQuillEditorToDOM&&(this.delayedCommand(),this.delayedCommand=null)}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()&&(this.headerTemplate=e.template)})}writeValue(e){if(this.value=e,this.quill)if(e){const n=()=>{this.quill.setContents(this.quill.clipboard.convert(this.value))};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}else{const n=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}initQuillEditor(){this.initQuillElements();const{toolbarElement:e,editorElement:n}=this.quillElements;let o={toolbar:e},s=this.modules?{...o,...this.modules}:o;this.quill=new k_e(n,{modules:s,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(r,a,l)=>{if("user"===l){let c=j.findSingle(n,".ql-editor").innerHTML,u=this.quill.getText().trim();"


"===c&&(c=null),this.onTextChange.emit({htmlValue:c,textValue:u,delta:r,source:l}),this.onModelChange(c),this.onModelTouched()}}),this.quill.on("selection-change",(r,a,l)=>{this.onSelectionChange.emit({range:r,oldRange:a,source:l})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:j.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:j.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-editor"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.toolbar=r.first),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[yt([R_e])],ngContentSelectors:F_e,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(n,o){1&n&&(Ti(P_e),x(0,"div",0),g(1,O_e,3,1,"div",1),g(2,L_e,40,0,"div",1),le(3,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-editor-container"),h(1),d("ngIf",o.toolbar||o.headerTemplate),h(1),d("ngIf",!o.toolbar&&!o.headerTemplate),h(1),d("ngStyle",o.style))},dependencies:[Ct,gt,on,Ht],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0})}return t})(),V_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),ng=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Q_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,eg,ng,Qe]})}return t})(),Z_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["UploadIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[st,Et],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3),A(),x(5,"defs")(6,"clipPath",4),le(7,"rect",5),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(5),d("id",o.pathId))},encapsulation:2})}return t})(),bv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),yv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn]})}return t})(),xv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),pIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,eE,Qe,ki,xv,yv,dn,ng,Z_e,mn,Qe,ki,xv,yv]})}return t})(),yIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,ki,Qe,mn,ki,Qe]})}return t})();const xIe=["input"];function AIe(t,i){if(1&t){const e=De();x(0,"TimesIcon",5),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-inputmask-clear-icon"),K("data-pc-section","clearIcon"))}function wIe(t,i){}function TIe(t,i){1&t&&g(0,wIe,0,0,"ng-template")}function SIe(t,i){if(1&t){const e=De();x(0,"span",6),me("click",function(){return G(e),q(f(2).clear())}),g(1,TIe,1,0,null,7),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function EIe(t,i){if(1&t&&(we(0),g(1,AIe,1,2,"TimesIcon",3),g(2,SIe,2,2,"span",4),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const DIe={provide:un,useExisting:ft(()=>kIe),multi:!0};let kIe=(()=>{class t{document;platformId;el;cd;type="text";slotChar="_";autoClear=!0;showClear=!1;style;inputId;styleClass;placeholder;size;maxlength;tabindex;title;ariaLabel;ariaLabelledBy;ariaRequired;disabled;readonly;unmask;name;required;characterPattern="[A-Za-z]";autoFocus;autocomplete;keepBuffer=!1;get mask(){return this._mask}set mask(e){this._mask=e,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}onComplete=new ge;onFocus=new ge;onBlur=new ge;onInput=new ge;onKeydown=new ge;onClear=new ge;inputViewChild;templates;clearIconTemplate;value;_mask;onModelChange=()=>{};onModelTouched=()=>{};input;filled;defs;tests;partialPosition;firstNonMaskPos;lastRequiredNonMaskPos;len;oldVal;buffer;defaultBuffer;focusText;caretTimeoutId;androidChrome=!0;focused;constructor(e,n,o,s){this.document=e,this.platformId=n,this.el=o,this.cd=s}ngOnInit(){if(ei(this.platformId)){let e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e)}this.initMask()}ngAfterContentInit(){this.templates.forEach(e=>{"clearicon"===e.getType()&&(this.clearIconTemplate=e.template)})}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let e=this.mask.split("");for(let n=0;n=0&&!this.tests[e];);return e}shiftL(e,n){let o,s;if(!(e<0)){for(o=e,s=this.seekNext(n);on.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}else{for(this.checkVal(!0);o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}}onInputBlur(e){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(e),this.inputViewChild?.nativeElement.value!=this.focusText||this.inputViewChild?.nativeElement.value!=this.value){this.updateModel(e);let n=this.document.createEvent("HTMLEvents");n.initEvent("change",!0,!1),this.inputViewChild?.nativeElement.dispatchEvent(n)}}onInputKeydown(e){if(this.readonly)return;let o,s,r,a,n=e.which||e.keyCode;ei(this.platformId)&&(a=/iphone/i.test(j.getUserAgent())),this.oldVal=this.inputViewChild?.nativeElement.value,this.onKeydown.emit(e),8===n||46===n||a&&127===n?(o=this.caret(),s=o.begin,r=o.end,r-s==0&&(s=46!==n?this.seekPrev(s):r=this.seekNext(s-1),r=46===n?this.seekNext(r):r),this.clearBuffer(s,r),this.shiftL(s,this.keepBuffer?r-2:r-1),this.updateModel(e),this.onInput.emit(e),e.preventDefault()):13===n?(this.onInputBlur(e),this.updateModel(e)):27===n&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}onKeyPress(e){if(!this.readonly){var s,r,a,l,n=e.which||e.keyCode,o=this.caret();e.ctrlKey||e.altKey||e.metaKey||n<32||n>34&&n<41||(n&&13!==n&&(o.end-o.begin!=0&&(this.clearBuffer(o.begin,o.end),this.shiftL(o.begin,o.end-1)),(s=this.seekNext(o.begin-1)){this.caret(a)},0):this.caret(a),o.begin<=this.lastRequiredNonMaskPos&&(l=this.isCompleted()),this.onInput.emit(e))),e.preventDefault()),this.updateModel(e),this.updateFilledState(),l&&this.onComplete.emit())}}clearBuffer(e,n){if(!this.keepBuffer){let o;for(o=e;on.length){this.clearBuffer(s+1,this.len);break}}else this.buffer[s]===n.charAt(a)&&a++,s{this.inputViewChild?.nativeElement===this.inputViewChild?.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),n==this.mask?.replace("?","").length?this.caret(0,n):this.caret(n))},10),this.onFocus.emit(e)}onInputChange(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.onInput.emit(e)}handleInputChange(e){this.readonly||setTimeout(()=>{var n=this.checkVal(!0);this.caret(n),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}getUnmaskedValue(){let e=[];for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,gf,mn,Qe]})}return t})(),OIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const LIe=["headerchkbox"],PIe=["filter"],FIe=["lastHiddenFocusableElement"],RIe=["firstHiddenFocusableElement"],NIe=["scroller"],VIe=["list"];function BIe(t,i){1&t&&ze(0)}const ig=function(t,i){return{$implicit:t,options:i}};function HIe(t,i){if(1&t&&(x(0,"div",12),Kn(1),g(2,BIe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function zIe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function jIe(t,i){}function UIe(t,i){1&t&&g(0,jIe,0,0,"ng-template")}function $Ie(t,i){if(1&t&&(x(0,"span",25),g(1,UIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function KIe(t,i){if(1&t&&(we(0),g(1,zIe,1,2,"CheckIcon",22),g(2,$Ie,2,2,"span",23),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const cO=function(t){return{"p-checkbox-disabled":t}},GIe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function qIe(t,i){if(1&t){const e=De();x(0,"div",17),me("click",function(o){return G(e),q(f(2).onToggleAll(o))})("keydown",function(o){return G(e),q(f(2).onHeaderCheckboxKeyDown(o))}),x(1,"div",18)(2,"input",19,20),me("focus",function(o){return G(e),q(f(2).onHeaderCheckboxFocus(o))})("blur",function(o){return G(e),q(f(2).onHeaderCheckboxBlur(o))}),A()(),x(4,"div",21),g(5,KIe,3,2,"ng-container",6),A()()}if(2&t){const e=f(2);d("ngClass",He(8,cO,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(10,GIe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function WIe(t,i){1&t&&ze(0)}const uO=function(t){return{options:t}};function QIe(t,i){if(1&t&&(we(0),g(1,WIe,1,0,"ng-container",13),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,uO,e.filterOptions))}}function ZIe(t,i){1&t&&le(0,"SearchIcon",24),2&t&&(d("styleClass","p-listbox-filter-icon"),K("aria-hidden",!0))}function YIe(t,i){}function XIe(t,i){1&t&&g(0,YIe,0,0,"ng-template")}function JIe(t,i){if(1&t&&(x(0,"span",33),g(1,XIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function eCe(t,i){if(1&t){const e=De();x(0,"div",29)(1,"input",30,31),me("input",function(o){return G(e),q(f(3).onFilterChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,ZIe,1,2,"SearchIcon",22),g(4,JIe,2,2,"span",32),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||"")("disabled",e.disabled)("tabindex",e.disabled||e.focused?-1:e.tabindex),K("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function tCe(t,i){if(1&t&&(g(0,eCe,5,9,"div",27),x(1,"span",28),Le(2),A()),2&t){const e=f(2);d("ngIf",e.filter),h(1),K("data-p-hidden-accessible",!0),h(1),Pt(" ",e.filterResultMessageText," ")}}function nCe(t,i){if(1&t&&(x(0,"div",12),g(1,qIe,6,14,"div",14),g(2,QIe,2,4,"ng-container",15),g(3,tCe,3,3,"ng-template",null,16,In),A()),2&t){const e=Bt(4),n=f();h(1),d("ngIf",n.checkbox&&n.multiple&&n.showToggleAll),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function iCe(t,i){1&t&&ze(0)}function oCe(t,i){if(1&t&&g(0,iCe,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,ig,e,n))}}function sCe(t,i){1&t&&ze(0)}function rCe(t,i){if(1&t&&g(0,sCe,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,uO,e))}}function aCe(t,i){1&t&&(we(0),g(1,rCe,1,4,"ng-template",37),Te())}const Av=function(t){return{height:t}};function lCe(t,i){if(1&t){const e=De();x(0,"p-scroller",34,35),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,oCe,1,5,"ng-template",36),g(3,aCe,2,0,"ng-container",6),A()}if(2&t){const e=f();yn(He(9,Av,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function cCe(t,i){1&t&&ze(0)}const uCe=function(){return{}};function dCe(t,i){if(1&t&&(we(0),g(1,cCe,1,0,"ng-container",13),Te()),2&t){const e=f(),n=Bt(9);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,ig,e.visibleOptions(),Jt(2,uCe)))}}function pCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function hCe(t,i){1&t&&ze(0)}const fCe=function(t){return{$implicit:t}};function gCe(t,i){if(1&t&&(we(0),x(1,"li",42),g(2,pCe,2,1,"span",6),g(3,hCe,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,Av,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,fCe,o.optionGroup))}}function mCe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function _Ce(t,i){}function ICe(t,i){1&t&&g(0,_Ce,0,0,"ng-template")}function CCe(t,i){if(1&t&&(x(0,"span",25),g(1,ICe,1,0,null,26),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function vCe(t,i){if(1&t&&(we(0),g(1,mCe,1,2,"CheckIcon",22),g(2,CCe,2,2,"span",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const bCe=function(t){return{"p-highlight":t}};function yCe(t,i){if(1&t&&(x(0,"div",45)(1,"div",46),g(2,vCe,3,2,"ng-container",6),A()()),2&t){const e=f(2).$implicit,n=f(2);d("ngClass",He(3,cO,n.disabled||n.isOptionDisabled(e))),h(1),d("ngClass",He(5,bCe,n.isSelected(e))),h(1),d("ngIf",n.isSelected(e))}}function xCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function ACe(t,i){1&t&&ze(0)}const wCe=function(t,i,e){return{"p-listbox-item":!0,"p-highlight":t,"p-focus":i,"p-disabled":e}},TCe=function(t,i){return{$implicit:t,index:i}};function SCe(t,i){if(1&t){const e=De();we(0),x(1,"li",43),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index,l=f().options,c=f();return q(c.onOptionSelect(o,r,c.getOptionIndex(a,l)))})("dblclick",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionDoubleClick(o,s))})("mousedown",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseDown(o,a.getOptionIndex(s,r)))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))})("touchend",function(){return G(e),q(f(3).onOptionTouchEnd())}),g(2,yCe,3,7,"div",44),g(3,xCe,2,1,"span",6),g(4,ACe,1,0,"ng-container",13),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,Av,s.itemSize+"px"))("ngClass",Rn(14,wCe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n)))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(o,s))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("aria-setsize",r.ariaSetSize),h(1),d("ngIf",r.checkbox&&r.multiple),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,TCe,n,r.getOptionIndex(o,s)))}}function ECe(t,i){if(1&t&&(g(0,gCe,4,9,"ng-container",6),g(1,SCe,5,21,"ng-container",6)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function DCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyFilterMessageText," ")}}function kCe(t,i){1&t&&ze(0,null,48)}function MCe(t,i){if(1&t&&(x(0,"li",47),g(1,DCe,2,1,"ng-container",15),g(2,kCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),h(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function OCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyMessageText," ")}}function LCe(t,i){1&t&&ze(0,null,49)}function PCe(t,i){if(1&t&&(x(0,"li",47),g(1,OCe,2,1,"ng-container",15),g(2,LCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),h(1),d("ngTemplateOutlet",e.emptyTemplate)}}function FCe(t,i){if(1&t){const e=De();x(0,"ul",38,39),me("focus",function(o){return G(e),q(f().onListFocus(o))})("blur",function(o){return G(e),q(f().onListBlur(o))})("keydown",function(o){return G(e),q(f().onListKeyDown(o))}),g(2,ECe,2,2,"ng-template",40),g(3,MCe,3,3,"li",41),g(4,PCe,3,3,"li",41),A()}if(2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("tabindex",-1)("ngClass",n.contentStyleClass),K("aria-multiselectable",!0)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-label",o.ariaLabel)("aria-multiselectable",o.multiple)("aria-disabled",o.disabled),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function RCe(t,i){1&t&&ze(0)}function NCe(t,i){if(1&t&&(x(0,"div",50),Kn(1,1),g(2,RCe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function VCe(t,i){if(1&t&&(x(0,"span",10),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.emptyMessageText," ")}}const BCe=[[["p-header"]],[["p-footer"]]],HCe=["p-header","p-footer"],zCe={provide:un,useExisting:ft(()=>jCe),multi:!0};let jCe=(()=>{class t{el;cd;filterService;config;renderer;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;focusOnHover;filterMessage;filterFields;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;scrollHeight="200px";tabindex=0;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!1;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel="label";optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}onChange=new ge;onClick=new ge;onDblClick=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onSelectAllChange=new ge;headerCheckboxViewChild;filterViewChild;lastHiddenFocusableElement;firstHiddenFocusableElement;scroller;listViewChild;headerFacet;footerFacet;templates;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;_filterValue=bn(null);_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;focused;get containerClass(){return{"p-listbox p-component":!0,"p-focus":this.focused,"p-disabled":this.disabled}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get filterResultMessageText(){return be.isNotEmpty(this.visibleOptions())?this.filterMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptyFilterMessageText}get filterMessageText(){return this.filterMessage||this.config.translation.searchMessage||""}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptyFilterMessageText(){return this.emptyFilterMessage||this.config.translation.emptySearchMessage||this.config.translation.emptyFilterMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}get searchFields(){return this.filterFields||[this.optionLabel]}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}searchValue;searchTimeout;_selectAll=null;_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);modelValue=bn(null);visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this._options()):this._options()||[];return this._filterValue()?this.filterService.filter(e,this.searchFields,this._filterValue(),this.filterMatchMode,this.filterLocale):e});constructor(e,n,o,s,r){this.el=e,this.cd=n,this.filterService=o,this.config=s,this.renderer=r}ngOnInit(){this.id=this.id||$t(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template}})}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&!this.multiple){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()])}}updateModel(e,n){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.onChange.emit({originalEvent:n,value:this.value})}removeOption(e){return this.modelValue().filter(n=>!be.equals(n,this.getOptionValue(e),this.equalityKey()))}onOptionSelect(e,n,o=-1){this.disabled||this.isOptionDisabled(n)||(e&&this.onClick.emit({originalEvent:e,value:n}),this.multiple?this.onOptionSelectMultiple(e,n):this.onOptionSelectSingle(e,n),this.optionTouched=!1,-1!==o&&this.focusedOptionIndex.set(o))}onOptionSelectMultiple(e,n){let o=this.isSelected(n),s=null;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;o?s=a?this.removeOption(n):[this.getOptionValue(n)]:(s=a&&this.modelValue()||[],s=[...s,this.getOptionValue(n)])}else s=o?this.removeOption(n):[...this.modelValue()||[],this.getOptionValue(n)];this.updateModel(s,e)}onOptionSelectSingle(e,n){let o=this.isSelected(n),s=!1,r=null;!this.optionTouched&&this.metaKeySelection?o?(e.metaKey||e.ctrlKey)&&(r=null,s=!0):(r=this.getOptionValue(n),s=!0):(r=o?null:this.getOptionValue(n),s=!0),s&&this.updateModel(r,e)}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}onToggleAll(e){if(!this.disabled&&!this.readonly){if(j.focus(this.headerCheckboxViewChild.nativeElement),null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:this.value})}e.preventDefault()}}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}onOptionTouchEnd(){this.disabled||(this.optionTouched=!0)}onOptionMouseDown(e,n){this.changeFocusedOptionIndex(e,n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onOptionDoubleClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onFirstHiddenFocus(e){j.focus(this.listViewChild.nativeElement);const n=j.getFirstFocusableElement(this.el.nativeElement,':not([data-p-hidden-focusable="true"])');this.lastHiddenFocusableElement.nativeElement.tabIndex=be.isEmpty(n)?"-1":void 0,this.firstHiddenFocusableElement.nativeElement.tabIndex=-1}onLastHiddenFocus(e){if(e.relatedTarget===this.listViewChild.nativeElement){const o=j.getFirstFocusableElement(this.el.nativeElement,":not(.p-hidden-focusable)");j.focus(o),this.firstHiddenFocusableElement.nativeElement.tabIndex=void 0}else j.focus(this.firstHiddenFocusableElement.nativeElement);this.lastHiddenFocusableElement.nativeElement.tabIndex=-1}onFocusout(e){!this.el.nativeElement.contains(e.relatedTarget)&&this.lastHiddenFocusableElement&&this.firstHiddenFocusableElement&&(this.firstHiddenFocusableElement.nativeElement.tabIndex=this.lastHiddenFocusableElement.nativeElement.tabIndex=void 0)}onListFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.onFocus.emit(e)}onListBlur(e){this.focused=!1,this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.searchValue=""}onHeaderCheckboxFocus(e){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e);break;case"Tab":this.onHeaderCheckboxTabKeyDown(e)}}onHeaderCheckboxTabKeyDown(e){j.focus(this.listViewChild.nativeElement),e.preventDefault()}onFilterChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onFilterBlur(e){this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1)}onListKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onSpaceKey(e);break;case"Tab":break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(this.multiple&&"KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey()}}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowUpKey(e){const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onHomeKey(e,n=!1){if(n)e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1);else{let o=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findLastOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onPageDownKey(e){this.scrollInView(0),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onEnterKey(e){-1!==this.focusedOptionIndex()&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()])),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onShiftKey(){const e=this.focusedOptionIndex();this.startRangeIndex.set(e)}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions()[n]))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}scrollInView(e=-1){const o=j.findSingle(this.listViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroll&&this.scroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex())}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}equalityKey(){return this.optionValue?null:this.dataKey}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){const n=this.getOptionValue(e);return this.multiple?(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey())):be.equals(this.modelValue(),n,this.equalityKey())}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue.set(null)}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft),V(df),V(Di),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-listbox"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(LIe,5),je(PIe,5),je(FIe,5),je(RIe,5),je(NIe,5),je(VIe,5)),2&n){let s;Se(s=Ee())&&(o.headerCheckboxViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElement=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElement=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",focusOnHover:"focusOnHover",filterMessage:"filterMessage",filterFields:"filterFields",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",scrollHeight:"scrollHeight",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue",selectAll:"selectAll"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onSelectAllChange:"onSelectAllChange"},features:[yt([zCe])],ngContentSelectors:HCe,decls:16,vars:24,consts:[[3,"ngClass","ngStyle","focusout"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"tabindex","focus"],["firstHiddenFocusableElement",""],["class","p-listbox-header",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInItems",""],["class","p-listbox-footer",4,"ngIf"],["role","status","aria-live","polite","class","p-hidden-accessible",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["lastHiddenFocusableElement",""],[1,"p-listbox-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"disabled","focus","blur"],["headerchkbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],["class","p-listbox-filter-container",4,"ngIf"],["role","status","attr.aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-filter-container"],["type","text","role","searchbox",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","tabindex","input","keydown","blur"],["filterInput",""],["class","p-listbox-filter-icon",4,"ngIf"],[1,"p-listbox-filter-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-listbox-list",3,"tabindex","ngClass","focus","blur","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-listbox-empty-message","role","option",4,"ngIf"],["role","option",1,"p-listbox-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-listbox-item",3,"ngStyle","ngClass","ariaPosInset","click","dblclick","mousedown","mouseenter","touchend"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-checkbox-box",3,"ngClass"],["role","option",1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(n,o){1&n&&(Ti(BCe),x(0,"div",0),me("focusout",function(r){return o.onFocusout(r)}),x(1,"span",1,2),me("focus",function(r){return o.onFirstHiddenFocus(r)}),A(),g(3,HIe,3,5,"div",3),g(4,nCe,5,3,"div",3),x(5,"div",4),g(6,lCe,4,11,"p-scroller",5),g(7,dCe,2,6,"ng-container",6),g(8,FCe,5,12,"ng-template",null,7,In),A(),g(10,NCe,3,5,"div",8),g(11,VCe,2,1,"span",9),x(12,"span",10),Le(13),A(),x(14,"span",1,11),me("focus",function(r){return o.onLastHiddenFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",o.headerFacet||o.headerTemplate),h(1),d("ngIf",o.checkbox&&o.multiple&&o.showToggleAll||o.filter),h(1),Ve(o.listStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight||"auto"),d("ngClass","p-listbox-list-wrapper")("ngStyle",o.listStyle),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.footerFacet||o.footerTemplate),h(1),d("ngIf",o.isEmpty()),h(2),Pt(" ",o.selectedMessageText," "),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0))},dependencies:function(){return[Ct,Jn,gt,on,Ht,sn,oo,Bu,Qs,yi]},styles:["@layer primeng{.p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),UCe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Mi,Qs,yi,Qe,Mi]})}return t})(),wve=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,Or,Zo,qn,Nn,Qe]})}return t})(),o1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,qn,Nn]})}return t})(),z1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,lO,Or,Zo,qn,Nn,Qe]})}return t})(),$1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,bv,ir,vv]})}return t})();function K1e(t,i){1&t&&le(0,"CheckIcon",7),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function G1e(t,i){}function q1e(t,i){1&t&&g(0,G1e,0,0,"ng-template")}function W1e(t,i){if(1&t&&(x(0,"span",8),g(1,q1e,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function Q1e(t,i){if(1&t&&(we(0),g(1,K1e,1,2,"CheckIcon",5),g(2,W1e,2,2,"span",6),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function Z1e(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function Y1e(t,i){1&t&&ze(0)}const ud=function(t){return{height:t}},X1e=function(t,i,e){return{"p-multiselect-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},J1e=function(t){return{"p-highlight":t}},Sv=function(t){return{$implicit:t}},ebe=["container"],tbe=["overlay"],nbe=["filterInput"],ibe=["focusInput"],obe=["items"],sbe=["scroller"],rbe=["lastHiddenFocusableEl"],abe=["firstHiddenFocusableEl"],lbe=["headerCheckbox"];function cbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt(e.label()||"empty")}}function ube(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",20),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),A()}2&t&&(d("styleClass","p-multiselect-token-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function dbe(t,i){1&t&&ze(0)}function pbe(t,i){if(1&t){const e=De();x(0,"span",21),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),g(1,dbe,1,0,"ng-container",22),A()}if(2&t){const e=f(5);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function hbe(t,i){if(1&t&&(we(0),g(1,ube,1,3,"TimesCircleIcon",18),g(2,pbe,2,3,"span",19),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}function fbe(t,i){if(1&t&&(x(0,"div",15,16)(2,"span",17),Le(3),A(),g(4,hbe,3,2,"ng-container",7),A()),2&t){const e=i.$implicit,n=f(3);h(3),dt(n.getLabelByValue(e)),h(1),d("ngIf",!n.disabled)}}function gbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),dt(e.placeholder||e.defaultLabel||"empty")}}function mbe(t,i){if(1&t&&(we(0),g(1,fbe,5,2,"div",14),g(2,gbe,2,1,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngForOf",e.chipSelectedItems()),h(1),d("ngIf",!e.modelValue()||0===e.modelValue().length)}}function _be(t,i){if(1&t&&(we(0),g(1,cbe,2,1,"ng-container",7),g(2,mbe,3,2,"ng-container",7),Te()),2&t){const e=f();h(1),d("ngIf","comma"===e.display),h(1),d("ngIf","chip"===e.display)}}function Ibe(t,i){1&t&&ze(0)}function Cbe(t,i){if(1&t){const e=De();x(0,"TimesIcon",20),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-multiselect-clear-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function vbe(t,i){}function bbe(t,i){1&t&&g(0,vbe,0,0,"ng-template")}function ybe(t,i){if(1&t){const e=De();x(0,"span",24),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,bbe,1,0,null,22),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function xbe(t,i){if(1&t&&(we(0),g(1,Cbe,1,3,"TimesIcon",18),g(2,ybe,2,3,"span",23),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function Abe(t,i){1&t&&le(0,"span",27),2&t&&(d("ngClass",f(2).dropdownIcon),K("data-pc-section","triggericon")("aria-hidden",!0))}function wbe(t,i){1&t&&le(0,"ChevronDownIcon",28),2&t&&(d("styleClass","p-multiselect-trigger-icon"),K("data-pc-section","triggericon")("aria-hidden",!0))}function Tbe(t,i){if(1&t&&(we(0),g(1,Abe,1,3,"span",25),g(2,wbe,1,3,"ChevronDownIcon",26),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Sbe(t,i){}function Ebe(t,i){1&t&&g(0,Sbe,0,0,"ng-template")}function Dbe(t,i){if(1&t&&(x(0,"span",29),g(1,Ebe,1,0,null,22),A()),2&t){const e=f();K("data-pc-section","triggericon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function kbe(t,i){1&t&&ze(0)}function Mbe(t,i){1&t&&ze(0)}const gO=function(t){return{options:t}};function Obe(t,i){if(1&t&&(we(0),g(1,Mbe,1,0,"ng-container",8),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,gO,e.filterOptions))}}function Lbe(t,i){1&t&&le(0,"CheckIcon",28),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function Pbe(t,i){}function Fbe(t,i){1&t&&g(0,Pbe,0,0,"ng-template")}function Rbe(t,i){if(1&t&&(x(0,"span",51),g(1,Fbe,1,0,null,8),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)("ngTemplateOutletContext",He(3,Sv,e.allSelected()))}}function Nbe(t,i){if(1&t&&(we(0),g(1,Lbe,1,2,"CheckIcon",26),g(2,Rbe,2,5,"span",50),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const Vbe=function(t){return{"p-checkbox-disabled":t}},Bbe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function Hbe(t,i){if(1&t){const e=De();x(0,"div",46),me("click",function(o){return G(e),q(f(4).onToggleAll(o))})("keydown",function(o){return G(e),q(f(4).onHeaderCheckboxKeyDown(o))}),x(1,"div",2)(2,"input",47,48),me("focus",function(){return G(e),q(f(4).onHeaderCheckboxFocus())})("blur",function(){return G(e),q(f(4).onHeaderCheckboxBlur())}),A()(),x(4,"div",49),g(5,Nbe,3,2,"ng-container",7),A()()}if(2&t){const e=f(4);d("ngClass",He(9,Vbe,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("readonly",e.readonly)("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(11,Bbe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function zbe(t,i){1&t&&le(0,"SearchIcon",28),2&t&&d("styleClass","p-multiselect-filter-icon")}function jbe(t,i){}function Ube(t,i){1&t&&g(0,jbe,0,0,"ng-template")}function $be(t,i){if(1&t&&(x(0,"span",56),g(1,Ube,1,0,null,22),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function Kbe(t,i){if(1&t){const e=De();x(0,"div",52)(1,"input",53,54),me("input",function(o){return G(e),q(f(4).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(4).onFilterKeyDown(o))})("click",function(o){return G(e),q(f(4).onInputClick(o))})("blur",function(o){return G(e),q(f(4).onFilterBlur(o))}),A(),g(3,zbe,1,1,"SearchIcon",26),g(4,$be,2,1,"span",55),A()}if(2&t){const e=f(4);h(1),d("value",e._filterValue()||"")("disabled",e.disabled),K("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function Gbe(t,i){1&t&&le(0,"TimesIcon",28),2&t&&d("styleClass","p-multiselect-close-icon")}function qbe(t,i){}function Wbe(t,i){1&t&&g(0,qbe,0,0,"ng-template")}function Qbe(t,i){if(1&t&&(x(0,"span",57),g(1,Wbe,1,0,null,22),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}function Zbe(t,i){if(1&t){const e=De();g(0,Hbe,6,15,"div",42),g(1,Kbe,5,10,"div",43),x(2,"button",44),me("click",function(o){return G(e),q(f(3).close(o))}),g(3,Gbe,1,1,"TimesIcon",26),g(4,Qbe,2,1,"span",45),A()}if(2&t){const e=f(3);d("ngIf",e.showToggleAll&&!e.selectionLimit),h(1),d("ngIf",e.filter),h(2),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Ybe(t,i){if(1&t&&(x(0,"div",39),Kn(1),g(2,kbe,1,0,"ng-container",22),g(3,Obe,2,4,"ng-container",40),g(4,Zbe,5,4,"ng-template",null,41,In),A()),2&t){const e=Bt(5),n=f(2);h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function Xbe(t,i){1&t&&ze(0)}const mO=function(t,i){return{$implicit:t,options:i}};function Jbe(t,i){if(1&t&&g(0,Xbe,1,0,"ng-container",8),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(8))("ngTemplateOutletContext",mt(2,mO,e,n))}}function eye(t,i){1&t&&ze(0)}function tye(t,i){if(1&t&&g(0,eye,1,0,"ng-container",8),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,gO,e))}}function nye(t,i){1&t&&(we(0),g(1,tye,1,4,"ng-template",60),Te())}function iye(t,i){if(1&t){const e=De();x(0,"p-scroller",58,59),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,Jbe,1,5,"ng-template",13),g(3,nye,2,0,"ng-container",7),A()}if(2&t){const e=f(2);yn(He(9,ud,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function oye(t,i){1&t&&ze(0)}const sye=function(){return{}};function rye(t,i){if(1&t&&(we(0),g(1,oye,1,0,"ng-container",8),Te()),2&t){f();const e=Bt(8),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,mO,n.visibleOptions(),Jt(2,sye)))}}function aye(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function lye(t,i){1&t&&ze(0)}function cye(t,i){if(1&t&&(we(0),x(1,"li",65),g(2,aye,2,1,"span",7),g(3,lye,1,0,"ng-container",8),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,ud,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Sv,o.optionGroup))}}function uye(t,i){if(1&t){const e=De();we(0),x(1,"p-multiSelectItem",66),me("onClick",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionSelect(o,!1,a.getOptionIndex(s,r)))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("checkIconTemplate",r.checkIconTemplate)("itemSize",s.itemSize)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function dye(t,i){if(1&t&&(g(0,cye,4,9,"ng-container",7),g(1,uye,2,11,"ng-container",7)),2&t){const e=i.$implicit,n=f(3);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function pye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function hye(t,i){1&t&&ze(0,null,68)}function fye(t,i){if(1&t&&(x(0,"li",67),g(1,pye,2,1,"ng-container",40),g(2,hye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function gye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function mye(t,i){1&t&&ze(0,null,69)}function _ye(t,i){if(1&t&&(x(0,"li",67),g(1,gye,2,1,"ng-container",40),g(2,mye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function Iye(t,i){if(1&t&&(x(0,"ul",61,62),g(2,dye,2,2,"ng-template",63),g(3,fye,3,6,"li",64),g(4,_ye,3,6,"li",64),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function Cye(t,i){1&t&&ze(0)}function vye(t,i){if(1&t&&(x(0,"div",70),Kn(1,1),g(2,Cye,1,0,"ng-container",22),A()),2&t){const e=f(2);h(2),d("ngTemplateOutlet",e.footerTemplate)}}function bye(t,i){if(1&t){const e=De();x(0,"div",30)(1,"span",31,32),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,Ybe,6,3,"div",33),x(4,"div",34),g(5,iye,4,11,"p-scroller",35),g(6,rye,2,6,"ng-container",7),g(7,Iye,5,6,"ng-template",null,36,In),A(),g(9,vye,3,1,"div",37),x(10,"span",31,38),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-multiselect-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden","true")("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",e.showHeader),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngIf",e.footerFacet||e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const yye=[[["p-header"]],[["p-footer"]]],xye=function(t,i){return{$implicit:t,removeChip:i}},Aye=["p-header","p-footer"],wye={provide:un,useExisting:ft(()=>Sye),multi:!0};let Tye=(()=>{class t{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;template;checkIconTemplate;onClick=new ge;onMouseEnter=new ge;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected})}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",focused:"focused",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkIconTemplate:"checkIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:6,vars:26,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","id","click","mouseenter"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),x(1,"div",1)(2,"div",2),g(3,Q1e,3,2,"ng-container",3),A()(),g(4,Z1e,2,1,"span",3),g(5,Y1e,1,0,"ng-container",4),A()),2&n&&(d("ngStyle",He(16,ud,o.itemSize+"px"))("ngClass",Rn(18,X1e,o.selected,o.disabled,o.focused))("id",o.id),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(2),d("ngClass",He(22,J1e,o.selected)),K("aria-checked",o.selected),h(1),d("ngIf",o.selected),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(24,Sv,o.option)))},dependencies:function(){return[Ct,gt,on,Ht,oo,yi]},encapsulation:2})}return t})(),Sye=(()=>{class t{el;renderer;cd;zone;filterService;config;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel="{0} items selected";showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="off";showClear=!1;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.warn("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder=e}get placeholder(){return this._placeholder}get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!1;filterFields;selectOnFocus=!1;autoOptionFocus=!0;onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onClear=new ge;onPanelShow=new ge;onPanelHide=new ge;onLazyLoad=new ge;onRemove=new ge;onSelectAllChange=new ge;containerViewChild;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;templates;searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder;_itemSize;_selectionLimit;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;headerCheckboxFocus;filterOptions;maxSelectionLimitReached;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=bn(null);_filterValue=bn(null);_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);get containerClass(){return{"p-multiselect p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-multiselect-clearable":this.showClear&&!this.disabled,"p-multiselect-chip":"chip"===this.display,"p-focus":this.focused,"p-inputwrapper-filled":be.isNotEmpty(this.modelValue()),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){return{"p-multiselect-label p-inputtext":!0,"p-placeholder":(this.placeholder||this.defaultLabel)&&(this.label()===this.placeholder||this.label()===this.defaultLabel),"p-multiselect-label-empty":!this.selectedItemsTemplate&&("p-emptylabel"===this.label()||0===this.label().length)}}get panelClass(){return{"p-multiselect-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get labelClass(){return{"p-multiselect-label":!0,"p-placeholder":this.label()===this.placeholder||this.label()===this.defaultLabel,"p-multiselect-label-empty":!(this.placeholder||this.defaultLabel||this.modelValue()&&0!==this.modelValue().length)}}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&""!==this.modelValue()&&be.isNotEmpty(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale);if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{let e;const n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(be.isNotEmpty(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let o=0;obe.isNotEmpty(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,o,s,r,a,l){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,this.overlayService=l}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());const e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,o=-1){const{originalEvent:s,option:r}=e;if(this.disabled||this.isOptionDisabled(r))return;let l=null;l=this.isSelected(r)?this.modelValue().filter(c=>!be.equals(c,this.getOptionValue(r),this.equalityKey())):[...this.modelValue()||[],this.getOptionValue(r)],this.updateModel(l,s),-1!==o&&this.focusedOptionIndex.set(o),n&&j.focus(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:l,itemValue:r})}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}searchFields(){return this.filterFields||[this.optionLabel]}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return(this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}isSelected(e){const n=this.getOptionValue(e);return(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){const o=(this.group?this.flatOptions(this._options()):this._options()||[]).find(s=>!this.isOptionGroup(s)&&be.equals(this.getOptionValue(s),e,this.equalityKey()));return o?this.getOptionLabel(o):null}getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue().length+""):this.selectedItemsLabel}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled)return void e.preventDefault();const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if("KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){const{currentTarget:o}=e;if(n)o.setSelectionRange(0,e.shiftKey?o.value.length:0),this.focusedOptionIndex.set(-1);else{let s=e.metaKey||e.ctrlKey,r=this.findFirstOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,r,this.startRangeIndex()),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){const{currentTarget:o}=e;if(n){const s=o.value.length;o.setSelectionRange(e.shiftKey?0:s,s),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,r=this.findLastFocusedOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,this.startRangeIndex(),r),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?-1!==this.focusedOptionIndex()&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(-1!==this.focusedOptionIndex()&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if("INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]'))return void e.preventDefault();(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onInputFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!this.disabled&&!this.readonly){if(null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e)}j.focus(this.headerCheckboxViewChild.nativeElement),this.headerCheckboxFocus=!0,e.preventDefault(),e.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}writeValue(e){this.value=e,this.modelValue.set(this.value),this.checkSelectionLimit(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){const n=be.isNotEmpty(this.modelValue())?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-multiselect-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched()}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.checkSelectionLimit(),this.updateModel(null,e),this.onClear.emit(),e.stopPropagation()}removeOption(e,n){let o=this.modelValue().filter(s=>!be.equals(s,e,this.equalityKey()));this.updateModel(o,n),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}activateFilter(){if(this.hasFilter()&&this._options){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let n=[];for(let o of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(o),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&n.push({...o,[this.optionGroupChildren]:s})}this._filteredOptions=n}else this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(Di),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelect"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,rC,5),Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ebe,5),je(tbe,5),je(nbe,5),je(ibe,5),je(obe,5),je(sbe,5),je(rbe,5),je(abe,5),je(lbe,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.filterInputChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.headerCheckboxViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:"focusOnHover",filterFields:"filterFields",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[yt([wye])],ngContentSelectors:Aye,decls:16,vars:41,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["role","combobox",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","focus","blur","keydown"],["focusInput",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-multiselect-trigger"],["class","p-multiselect-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],["lastHiddenFocusableEl",""],[1,"p-multiselect-header"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],["type","checkbox",3,"readonly","disabled","focus","blur"],["headerCheckbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","searchbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input","keydown","click","blur"],["filterInput",""],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","checkIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function(n,o){1&n&&(Ti(yye),x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),x(2,"div",2)(3,"input",3,4),me("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keydown",function(r){return o.onKeyDown(r)}),A()(),x(5,"div",5)(6,"div",6),g(7,_be,3,2,"ng-container",7),g(8,Ibe,1,0,"ng-container",8),A(),g(9,xbe,3,2,"ng-container",7),A(),x(10,"div",9),g(11,Tbe,3,2,"ng-container",7),g(12,Dbe,2,3,"span",10),A(),x(13,"p-overlay",11,12),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(15,bye,12,18,"ng-template",13),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),K("data-p-hidden-accessible",!0),h(1),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),K("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",o.overlayVisible)("aria-controls",o.id+"_list")("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0),h(2),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),h(1),d("ngClass",o.labelClass),h(1),d("ngIf",!o.selectedItemsTemplate),h(1),d("ngTemplateOutlet",o.selectedItemsTemplate)("ngTemplateOutletContext",mt(38,xye,o.modelValue(),o.removeOption.bind(o))),h(1),d("ngIf",o.isVisibleClearIcon),h(2),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,oo,Bu,yi,Qs,ir,mn,bi,Tye]},styles:["@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Eye=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Mi,yi,Qs,ir,mn,bi,yi,$l,Qe,Mi]})}return t})();const Dye=typeof Intl<"u"&&Intl.v8BreakIterator;class Ev{constructor(i){this._platformId=i,this.isBrowser=this._platformId?ei(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Dye)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}let dd;function Dv(t){return function kye(){if(null==dd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dd=!0}))}finally{dd=dd||!1}return dd}()?t:!!t.capture}Ev.ngInjectableDef=o1({factory:function(){return new Ev(et($n,8))},token:Ev,providedIn:"root"});const xs={NORMAL:0,NEGATED:1,INVERTED:2};xs[xs.NORMAL]="NORMAL",xs[xs.NEGATED]="NEGATED",xs[xs.INVERTED]="INVERTED";const sg=Dv({passive:!1,capture:!0});class kv{constructor(i,e){this._ngZone=i,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new re,this.pointerUp=new re,this._preventScrollListener=n=>{this._activeDragInstances.size&&n.preventDefault()},this._document=e}registerDropContainer(i){if(!this._dropInstances.has(i)){if(this.getDropContainer(i.id))throw Error(`Drop instance with id "${i.id}" has already been registered.`);this._dropInstances.add(i)}}registerDragItem(i){this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventScrollListener,sg)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventScrollListener,sg)}startDragging(i,e){if(this._activeDragInstances.add(i),1===this._activeDragInstances.size){const n=e.type.startsWith("touch"),s=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:r=>this.pointerMove.next(r),options:sg}).set(s,{handler:r=>this.pointerUp.next(r),options:!0}),n||this._globalListeners.set("wheel",{handler:this._preventScrollListener,options:sg}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(i){this._activeDragInstances.delete(i),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances.has(i)}getDropContainer(i){return Array.from(this._dropInstances).find(e=>e.id===i)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,e)=>{this._document.removeEventListener(e,i.handler,i.options)}),this._globalListeners.clear()}}kv.ngInjectableDef=o1({factory:function(){return new kv(et(Tt),et(Wt))},token:kv,providedIn:"root"});const Oye=new Ye("CDK_DRAG_CONFIG",{providedIn:"root",factory:function Lye(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}});class rg{}let TO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.70786 6.59831C6.80043 6.63674 6.89974 6.65629 6.99997 6.65581C7.19621 6.64081 7.37877 6.54953 7.50853 6.40153L11.0685 2.8416C11.1364 2.69925 11.1586 2.53932 11.132 2.38384C11.1053 2.22837 11.0311 2.08498 10.9195 1.97343C10.808 1.86188 10.6646 1.78766 10.5091 1.76099C10.3536 1.73431 10.1937 1.75649 10.0513 1.82448L6.99997 4.87585L3.9486 1.82448C3.80625 1.75649 3.64632 1.73431 3.49084 1.76099C3.33536 1.78766 3.19197 1.86188 3.08043 1.97343C2.96888 2.08498 2.89466 2.22837 2.86798 2.38384C2.84131 2.53932 2.86349 2.69925 2.93147 2.8416L6.46089 6.43205C6.53132 6.50336 6.61528 6.55989 6.70786 6.59831ZM6.70786 12.1925C6.80043 12.2309 6.89974 12.2505 6.99997 12.25C7.10241 12.2465 7.20306 12.2222 7.29575 12.1785C7.38845 12.1348 7.47124 12.0726 7.53905 11.9957L11.0685 8.46629C11.1614 8.32292 11.2036 8.15249 11.1881 7.98233C11.1727 7.81216 11.1005 7.6521 10.9833 7.52781C10.866 7.40353 10.7104 7.3222 10.5415 7.29688C10.3725 7.27155 10.1999 7.30369 10.0513 7.38814L6.99997 10.4395L3.9486 7.38814C3.80006 7.30369 3.62747 7.27155 3.45849 7.29688C3.28951 7.3222 3.13393 7.40353 3.01667 7.52781C2.89942 7.6521 2.82729 7.81216 2.81184 7.98233C2.79639 8.15249 2.83852 8.32292 2.93148 8.46629L6.4609 12.0262C6.53133 12.0975 6.61529 12.1541 6.70786 12.1925Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),SO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.1504 6.67719C10.2417 6.71508 10.3396 6.73436 10.4385 6.73389C10.6338 6.74289 10.8249 6.67441 10.97 6.54334C11.1109 6.4023 11.19 6.21112 11.19 6.01178C11.19 5.81245 11.1109 5.62127 10.97 5.48023L7.45977 1.96998C7.31873 1.82912 7.12755 1.75 6.92821 1.75C6.72888 1.75 6.5377 1.82912 6.39666 1.96998L2.9165 5.45014C2.83353 5.58905 2.79755 5.751 2.81392 5.91196C2.83028 6.07293 2.89811 6.22433 3.00734 6.34369C3.11656 6.46306 3.26137 6.54402 3.42025 6.57456C3.57914 6.60511 3.74364 6.5836 3.88934 6.51325L6.89813 3.50446L9.90691 6.51325C9.97636 6.58357 10.0592 6.6393 10.1504 6.67719ZM9.93702 11.9993C10.065 12.1452 10.245 12.2352 10.4385 12.25C10.632 12.2352 10.812 12.1452 10.9399 11.9993C11.0633 11.8614 11.1315 11.6828 11.1315 11.4978C11.1315 11.3128 11.0633 11.1342 10.9399 10.9963L7.48987 7.48609C7.34883 7.34523 7.15765 7.26611 6.95832 7.26611C6.75899 7.26611 6.5678 7.34523 6.42677 7.48609L2.91652 10.9963C2.84948 11.1367 2.82761 11.2944 2.85391 11.4477C2.88022 11.601 2.9534 11.7424 3.06339 11.8524C3.17338 11.9624 3.31477 12.0356 3.46808 12.0619C3.62139 12.0882 3.77908 12.0663 3.91945 11.9993L6.92823 8.99048L9.93702 11.9993Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),sxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,ki,Qe,dn,rg,TO,SO,If,Or,Qs,Qe,rg]})}return t})(),bxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,bi,ff,Qe,Qe]})}return t})(),kxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,mn,Qe]})}return t})(),Wxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,ng,eg,Qe]})}return t})(),kO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),MO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const Qxe=["input"];function Zxe(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-password-clear-icon"),K("data-pc-section","clearIcon"))}function Yxe(t,i){}function Xxe(t,i){1&t&&g(0,Yxe,0,0,"ng-template")}function Jxe(t,i){if(1&t){const e=De();we(0),g(1,Zxe,1,2,"TimesIcon",5),x(2,"span",6),me("click",function(){return G(e),q(f().clear())}),g(3,Xxe,1,0,null,7),A(),Te()}if(2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function eAe(t,i){if(1&t){const e=De();x(0,"EyeSlashIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","hideIcon")}function tAe(t,i){}function nAe(t,i){1&t&&g(0,tAe,0,0,"ng-template")}function iAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,nAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.hideIconTemplate)}}function oAe(t,i){if(1&t&&(we(0),g(1,eAe,1,1,"EyeSlashIcon",9),g(2,iAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.hideIconTemplate),h(1),d("ngIf",e.hideIconTemplate)}}function sAe(t,i){if(1&t){const e=De();x(0,"EyeIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","showIcon")}function rAe(t,i){}function aAe(t,i){1&t&&g(0,rAe,0,0,"ng-template")}function lAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,aAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.showIconTemplate)}}function cAe(t,i){if(1&t&&(we(0),g(1,sAe,1,1,"EyeIcon",9),g(2,lAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.showIconTemplate),h(1),d("ngIf",e.showIconTemplate)}}function uAe(t,i){if(1&t&&(we(0),g(1,oAe,3,2,"ng-container",3),g(2,cAe,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.unmasked),h(1),d("ngIf",!e.unmasked)}}function dAe(t,i){1&t&&ze(0)}function pAe(t,i){1&t&&ze(0)}function hAe(t,i){if(1&t&&(we(0),g(1,pAe,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)}}const fAe=function(t){return{width:t}};function gAe(t,i){if(1&t&&(x(0,"div",15),le(1,"div",0),Il(2,"mapper"),A(),x(3,"div",16),Le(4),A()),2&t){const e=f(2);K("data-pc-section","meter"),h(1),d("ngClass",Cl(2,6,e.meter,e.strengthClass))("ngStyle",He(9,fAe,e.meter?e.meter.width:"")),K("data-pc-section","meterLabel"),h(2),K("data-pc-section","info"),h(1),dt(e.infoText)}}function mAe(t,i){1&t&&ze(0)}const _Ae=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},IAe=function(t){return{value:"visible",params:t}};function CAe(t,i){if(1&t){const e=De();x(0,"div",11,12),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onAnimationEnd(o))}),g(2,dAe,1,0,"ng-container",7),g(3,hAe,2,1,"ng-container",13),g(4,gAe,5,11,"ng-template",null,14,In),g(6,mAe,1,0,"ng-container",7),A()}if(2&t){const e=Bt(5),n=f();d("ngClass","p-password-panel p-component")("@overlayAnimation",He(10,IAe,mt(7,_Ae,n.showTransitionOptions,n.hideTransitionOptions))),K("data-pc-section","panel"),h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngTemplateOutlet",n.footerTemplate)}}let vAe=(()=>{class t{transform(e,n,...o){return n(e,...o)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Ni({name:"mapper",type:t,pure:!0})}return t})();const bAe={provide:un,useExisting:ft(()=>yAe),multi:!0};let yAe=(()=>{class t{document;platformId;renderer;cd;config;el;overlayService;ariaLabel;ariaLabelledBy;label;disabled;promptLabel;mediumRegex="^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})";strongRegex="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})";weakLabel;mediumLabel;maxLength;strongLabel;inputId;feedback=!0;appendTo;toggleMask;inputStyleClass;styleClass;style;inputStyle;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autocomplete;placeholder;showClear=!1;onFocus=new ge;onBlur=new ge;onClear=new ge;input;contentTemplate;footerTemplate;headerTemplate;clearIconTemplate;hideIconTemplate;showIconTemplate;templates;overlayVisible=!1;meter;infoText;focused=!1;unmasked=!1;mediumCheckRegExp;strongCheckRegExp;resizeListener;scrollHandler;overlay;value=null;onModelChange=()=>{};onModelTouched=()=>{};translationSubscription;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.config=r,this.el=a,this.overlayService=l}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"hideicon":this.hideIconTemplate=e.template;break;case"showicon":this.showIconTemplate=e.template}})}ngOnInit(){this.infoText=this.promptText(),this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.updateUI(this.value||"")})}onAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.appendContainer(),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener();break;case"void":this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null}}onAnimationEnd(e){"void"===e.toState&&Wn.clear(e.element)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).appendChild(this.overlay))}alignOverlay(){this.appendTo?(this.overlay.style.minWidth=j.getOuterWidth(this.input.nativeElement)+"px",j.absolutePosition(this.overlay,this.input.nativeElement)):j.relativePosition(this.overlay,this.input.nativeElement)}onInput(e){this.value=e.target.value,this.onModelChange(this.value)}onInputFocus(e){this.focused=!0,this.feedback&&(this.overlayVisible=!0),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.onModelTouched(),this.onBlur.emit(e)}onKeyUp(e){if(this.feedback){if(this.updateUI(e.target.value),"Escape"===e.code)return void(this.overlayVisible&&(this.overlayVisible=!1));this.overlayVisible||(this.overlayVisible=!0)}}updateUI(e){let n=null,o=null;switch(this.testStrength(e)){case 1:n=this.weakText(),o={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText(),o={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText(),o={strength:"strong",width:"100%"};break;default:n=this.promptText(),o=null}this.meter=o,this.infoText=n}onMaskToggle(){this.unmasked=!this.unmasked}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}testStrength(e){let n=0;return this.strongCheckRegExp.test(e)?n=3:this.mediumCheckRegExp.test(e)?n=2:e.length&&(n=1),n}writeValue(e){this.value=void 0===e?null:e,this.feedback&&this.updateUI(this.value||""),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindScrollListener(){ei(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new Vu(this.input.nativeElement,()=>{this.overlayVisible&&(this.overlayVisible=!1)})),this.scrollHandler.bindScrollListener())}bindResizeListener(){ei(this.platformId)&&!this.resizeListener&&(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",()=>{this.overlayVisible&&!j.isTouchDevice()&&(this.overlayVisible=!1)}))}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}containerClass(e){return{"p-password p-component p-inputwrapper":!0,"p-input-icon-right":e}}inputFieldClass(e){return{"p-password-input":!0,"p-disabled":e}}strengthClass(e){return`p-password-strength ${e?e.strength:""}`}filled(){return null!=this.value&&this.value.toString().length>0}promptText(){return this.promptLabel||this.getTranslation(di.PASSWORD_PROMPT)}weakText(){return this.weakLabel||this.getTranslation(di.WEAK)}mediumText(){return this.mediumLabel||this.getTranslation(di.MEDIUM)}strongText(){return this.strongLabel||this.getTranslation(di.STRONG)}restoreAppend(){this.overlay&&this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).removeChild(this.overlay))}inputType(e){return e?"text":"password"}getTranslation(e){return this.config.getTranslation(e)}clear(){this.value=null,this.onModelChange(this.value),this.writeValue(this.value),this.onClear.emit()}ngOnDestroy(){this.overlay&&(Wn.clear(this.overlay),this.overlay=null),this.restoreAppend(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(Di),V(bt),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-password"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Qxe,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:8,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled())("p-inputwrapper-focus",o.focused)("p-password-clearable",o.showClear)("p-password-mask",o.toggleMask)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",label:"label",disabled:"disabled",promptLabel:"promptLabel",mediumRegex:"mediumRegex",strongRegex:"strongRegex",weakLabel:"weakLabel",mediumLabel:"mediumLabel",maxLength:"maxLength",strongLabel:"strongLabel",inputId:"inputId",feedback:"feedback",appendTo:"appendTo",toggleMask:"toggleMask",inputStyleClass:"inputStyleClass",styleClass:"styleClass",style:"style",inputStyle:"inputStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autocomplete:"autocomplete",placeholder:"placeholder",showClear:"showClear"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClear:"onClear"},features:[yt([bAe])],decls:9,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","",3,"ngClass","ngStyle","value","input","focus","blur","keyup"],["input",""],[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],[1,"p-password-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass","click"],[3,"click",4,"ngIf"],[3,"click"],[3,"ngClass","click"],["overlay",""],[4,"ngIf","ngIfElse"],["content",""],[1,"p-password-meter"],["className","p-password-info"]],template:function(n,o){1&n&&(x(0,"div",0),Il(1,"mapper"),x(2,"input",1,2),me("input",function(r){return o.onInput(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keyup",function(r){return o.onKeyUp(r)}),Il(4,"mapper"),Il(5,"mapper"),A(),g(6,Jxe,4,3,"ng-container",3),g(7,uAe,3,2,"ng-container",3),g(8,CAe,7,12,"div",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Cl(1,23,o.toggleMask,o.containerClass))("ngStyle",o.style),K("data-pc-name","password")("data-pc-section","root"),h(2),Ve(o.inputStyleClass),d("ngClass",Cl(4,26,o.disabled,o.inputFieldClass))("ngStyle",o.inputStyle)("value",o.value),K("label",o.label)("aria-label",o.ariaLabel)("aria-labelledBy",o.ariaLabelledBy)("id",o.inputId)("type",Cl(5,29,o.unmasked,o.inputType))("placeholder",o.placeholder)("autocomplete",o.autocomplete)("maxlength",o.maxLength)("data-pc-section","input"),h(4),d("ngIf",o.showClear&&null!=o.value),h(1),d("ngIf",o.toggleMask),h(1),d("ngIf",o.overlayVisible))},dependencies:function(){return[Ct,gt,on,Ht,hC,mn,MO,kO,vAe]},styles:["@layer primeng{.p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}.p-password-input::-ms-reveal,.p-password-input::-ms-clear{display:none}.p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-password-clearable.p-password-mask .p-password-clear-icon{margin-top:unset}.p-password-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),xAe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,mn,MO,kO,Qe]})}return t})();const Rwe={zIndex:1200};let Nwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({providers:[{provide:Oye,useValue:Rwe}],imports:[Xe,ki,Qe,dn,rg,TO,gC,mC,SO,Or,_C,Zo,If,Qs,oO,Qe,rg]})}return t})();const Vwe=["input"],Bwe=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function Hwe(t,i){if(1&t){const e=De();x(0,"label",7),me("click",function(o){return G(e),q(f().select(o))}),Le(1),A()}if(2&t){const e=f(),n=Bt(3);Ve(e.labelStyleClass),d("ngClass",Rn(6,Bwe,n.checked,e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),dt(e.label)}}const zwe=function(t,i,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},jwe=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},Uwe={provide:un,useExisting:ft(()=>Kwe),multi:!0};let $we=(()=>{class t{accessors=[];add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kwe=(()=>{class t{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new ge;onFocus=new ge;onBlur=new ge;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(e,n,o){this.cd=e,this.injector=n,this.registry=o}ngOnInit(){this.control=this.injector.get(ds),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,o){e.preventDefault(),!this.disabled&&(this.select(e),o&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(n){return new(n||t)(V(Ft),V(Ui),V($we))};static \u0275cmp=Oe({type:t,selectors:[["p-radioButton"]],viewQuery:function(n,o){if(1&n&&je(Vwe,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([Uwe])],decls:7,vars:29,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","value","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.handleClick(a,l,!0))}),x(1,"div",1)(2,"input",2,3),me("focus",function(a){return o.onInputFocus(a)})("blur",function(a){return o.onInputBlur(a)}),A()(),x(4,"div",4),le(5,"span",5),A()(),g(6,Hwe,2,10,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(21,zwe,o.checked,o.disabled,o.focused)),K("data-pc-name","radiobutton")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper"),h(1),d("checked",o.checked)("disabled",o.disabled)("value",o.value),K("id",o.inputId)("name",o.name)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("tabindex",o.tabindex)("aria-checked",o.checked)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(25,jwe,o.checked,o.disabled,o.focused)),K("data-pc-section","input"),h(1),K("data-pc-section","icon"),h(1),d("ngIf",o.label))},dependencies:[Ct,gt,Ht],encapsulation:2,changeDetection:0})}return t})(),Gwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),FO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BanIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7 0C5.61553 0 4.26215 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.00303296 5.6003 -0.13559 7.00776 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C14 5.14348 13.2625 3.36301 11.9497 2.05025C10.637 0.737498 8.85652 0 7 0ZM1.16667 7C1.16549 5.65478 1.63303 4.35118 2.48889 3.31333L10.6867 11.5111C9.83309 12.2112 8.79816 12.6544 7.70243 12.789C6.60669 12.9236 5.49527 12.744 4.49764 12.2713C3.50001 11.7986 2.65724 11.0521 2.06751 10.1188C1.47778 9.18558 1.16537 8.10397 1.16667 7ZM11.5111 10.6867L3.31334 2.48889C4.43144 1.57388 5.84966 1.10701 7.29265 1.1789C8.73565 1.2508 10.1004 1.85633 11.1221 2.87795C12.1437 3.89956 12.7492 5.26435 12.8211 6.70735C12.893 8.15034 12.4261 9.56856 11.5111 10.6867Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),RO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.9741 13.6721C10.8806 13.6719 10.7886 13.6483 10.7066 13.6033L7.00002 11.6545L3.29345 13.6033C3.19926 13.6539 3.09281 13.6771 2.98612 13.6703C2.87943 13.6636 2.77676 13.6271 2.6897 13.5651C2.60277 13.5014 2.53529 13.4147 2.4948 13.3148C2.45431 13.215 2.44241 13.1058 2.46042 12.9995L3.17881 8.87264L0.167699 5.95324C0.0922333 5.8777 0.039368 5.78258 0.0150625 5.67861C-0.00924303 5.57463 -0.00402231 5.46594 0.030136 5.36477C0.0621323 5.26323 0.122141 5.17278 0.203259 5.10383C0.284377 5.03488 0.383311 4.99023 0.488681 4.97501L4.63087 4.37126L6.48797 0.618832C6.54083 0.530159 6.61581 0.456732 6.70556 0.405741C6.79532 0.35475 6.89678 0.327942 7.00002 0.327942C7.10325 0.327942 7.20471 0.35475 7.29447 0.405741C7.38422 0.456732 7.4592 0.530159 7.51206 0.618832L9.36916 4.37126L13.5114 4.97501C13.6167 4.99023 13.7157 5.03488 13.7968 5.10383C13.8779 5.17278 13.9379 5.26323 13.9699 5.36477C14.0041 5.46594 14.0093 5.57463 13.985 5.67861C13.9607 5.78258 13.9078 5.8777 13.8323 5.95324L10.8212 8.87264L11.532 12.9995C11.55 13.1058 11.5381 13.215 11.4976 13.3148C11.4571 13.4147 11.3896 13.5014 11.3027 13.5651C11.2059 13.632 11.0917 13.6692 10.9741 13.6721ZM7.00002 10.4393C7.09251 10.4404 7.18371 10.4613 7.2675 10.5005L10.2098 12.029L9.65193 8.75036C9.6368 8.6584 9.64343 8.56418 9.6713 8.47526C9.69918 8.38633 9.74751 8.30518 9.81242 8.23832L12.1969 5.94559L8.90298 5.45648C8.81188 5.44198 8.72555 5.406 8.65113 5.35152C8.57671 5.29703 8.51633 5.2256 8.475 5.14314L7.00002 2.1626L5.52503 5.15078C5.4837 5.23324 5.42332 5.30467 5.3489 5.35916C5.27448 5.41365 5.18815 5.44963 5.09705 5.46412L1.80318 5.94559L4.18761 8.23832C4.25252 8.30518 4.30085 8.38633 4.32873 8.47526C4.3566 8.56418 4.36323 8.6584 4.3481 8.75036L3.7902 12.0519L6.73253 10.5234C6.81451 10.4762 6.9058 10.4475 7.00002 10.4393Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),NO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarFillIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.9718 5.36453C13.9398 5.26298 13.8798 5.17252 13.7986 5.10356C13.7175 5.0346 13.6186 4.98994 13.5132 4.97472L9.37043 4.37088L7.51307 0.617955C7.46021 0.529271 7.38522 0.455834 7.29545 0.404836C7.20568 0.353838 7.1042 0.327026 7.00096 0.327026C6.89771 0.327026 6.79624 0.353838 6.70647 0.404836C6.6167 0.455834 6.54171 0.529271 6.48885 0.617955L4.63149 4.37088L0.488746 4.97472C0.383363 4.98994 0.284416 5.0346 0.203286 5.10356C0.122157 5.17252 0.0621407 5.26298 0.03014 5.36453C-0.00402286 5.46571 -0.00924428 5.57442 0.0150645 5.67841C0.0393733 5.7824 0.0922457 5.87753 0.167722 5.95308L3.17924 8.87287L2.4684 13.0003C2.45038 13.1066 2.46229 13.2158 2.50278 13.3157C2.54328 13.4156 2.61077 13.5022 2.6977 13.5659C2.78477 13.628 2.88746 13.6644 2.99416 13.6712C3.10087 13.678 3.20733 13.6547 3.30153 13.6042L7.00096 11.6551L10.708 13.6042C10.79 13.6491 10.882 13.6728 10.9755 13.673C11.0958 13.6716 11.2129 13.6343 11.3119 13.5659C11.3988 13.5022 11.4663 13.4156 11.5068 13.3157C11.5473 13.2158 11.5592 13.1066 11.5412 13.0003L10.8227 8.87287L13.8266 5.95308C13.9033 5.87835 13.9577 5.7836 13.9833 5.67957C14.009 5.57554 14.005 5.4664 13.9718 5.36453Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function qwe(t,i){if(1&t&&le(0,"span",10),2&t){const e=f(3);d("ngClass",e.iconCancelClass)("ngStyle",e.iconCancelStyle)}}function Wwe(t,i){if(1&t&&le(0,"BanIcon",11),2&t){const e=f(3);d("styleClass","p-rating-icon p-rating-cancel")("ngStyle",e.iconCancelStyle),K("data-pc-section","cancelIcon")}}const Qwe=function(t){return{"p-focus":t}};function Zwe(t,i){if(1&t){const e=De();x(0,"div",5),me("click",function(o){return G(e),q(f(2).onOptionClick(o,0))}),x(1,"span",6)(2,"input",7),me("focus",function(o){return G(e),q(f(2).onInputFocus(o,0))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){return G(e),q(f(2).onChange(o,0))}),A()(),g(3,qwe,1,2,"span",8),g(4,Wwe,1,3,"BanIcon",9),A()}if(2&t){const e=f(2);d("ngClass",He(10,Qwe,0===e.focusedOptionIndex()&&e.isFocusVisible)),K("data-pc-section","cancelItem"),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",e.name)("checked",0===e.value)("disabled",e.disabled)("readonly",e.readonly),K("aria-label",e.cancelAriaLabel()),h(1),d("ngIf",e.iconCancelClass),h(1),d("ngIf",!e.iconCancelClass)}}function Ywe(t,i){if(1&t&&le(0,"span",16),2&t){const e=f(4);d("ngStyle",e.iconOffStyle)("ngClass",e.iconOffClass),K("data-pc-section","offIcon")}}function Xwe(t,i){1&t&&le(0,"StarIcon",17),2&t&&(d("ngStyle",f(4).iconOffStyle)("styleClass","p-rating-icon"),K("data-pc-section","offIcon"))}function Jwe(t,i){if(1&t&&(we(0),g(1,Ywe,1,3,"span",14),g(2,Xwe,1,3,"StarIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOffClass),h(1),d("ngIf",!e.iconOffClass)}}function e2e(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4);d("ngStyle",e.iconOnStyle)("ngClass",e.iconOnClass),K("data-pc-section","onIcon")}}function t2e(t,i){1&t&&le(0,"StarFillIcon",17),2&t&&(d("ngStyle",f(4).iconOnStyle)("styleClass","p-rating-icon p-rating-icon-active"),K("data-pc-section","onIcon"))}function n2e(t,i){if(1&t&&(we(0),g(1,e2e,1,3,"span",18),g(2,t2e,1,3,"StarFillIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOnClass),h(1),d("ngIf",!e.iconOnClass)}}const i2e=function(t,i){return{"p-rating-item-active":t,"p-focus":i}};function o2e(t,i){if(1&t){const e=De();x(0,"div",12),me("click",function(o){const r=G(e).$implicit;return q(f(2).onOptionClick(o,r+1))}),x(1,"span",6)(2,"input",7),me("focus",function(o){const r=G(e).$implicit;return q(f(2).onInputFocus(o,r+1))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){const r=G(e).$implicit;return q(f(2).onChange(o,r+1))}),A()(),g(3,Jwe,3,2,"ng-container",13),g(4,n2e,3,2,"ng-container",13),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",mt(9,i2e,e+1<=o.value,e+1===o.focusedOptionIndex()&&o.isFocusVisible)),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",o.name)("checked",0===o.value)("disabled",o.disabled)("readonly",o.readonly),K("aria-label",o.starAriaLabel(e+1)),h(1),d("ngIf",!o.value||n>=o.value),h(1),d("ngIf",o.value&&nh2e),multi:!0};let h2e=(()=>{class t{cd;config;disabled;readonly;stars=5;cancel=!0;iconOnClass;iconOnStyle;iconOffClass;iconOffStyle;iconCancelClass;iconCancelStyle;onRate=new ge;onCancel=new ge;onFocus=new ge;onBlur=new ge;templates;onIconTemplate;offIconTemplate;cancelIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};starsArray;isFocusVisibleItem=!0;focusedOptionIndex=bn(-1);name;constructor(e,n){this.cd=e,this.config=n}ngOnInit(){this.name=this.name||$t(),this.starsArray=[];for(let e=0;e{switch(e.getType()){case"onicon":this.onIconTemplate=e.template;break;case"officon":this.offIconTemplate=e.template;break;case"cancelicon":this.cancelIconTemplate=e.template}})}onOptionClick(e,n){if(!this.readonly&&!this.disabled){this.onOptionSelect(e,n),this.isFocusVisibleItem=!1;const o=j.getFirstFocusableElement(e.currentTarget,"");o&&j.focus(o)}}onOptionSelect(e,n){this.focusedOptionIndex.set(n),this.updateModel(e,n||null)}onChange(e,n){this.onOptionSelect(e,n),this.isFocusVisibleItem=!0}onInputBlur(e){this.focusedOptionIndex.set(-1),this.onBlur.emit(e)}onInputFocus(e,n){this.focusedOptionIndex.set(n),this.onFocus.emit(e)}updateModel(e,n){this.value=n,this.onModelChange(this.value),this.onModelTouched(),n?this.onRate.emit({originalEvent:e,value:n}):this.onCancel.emit()}cancelAriaLabel(){return this.config.translation.clear}starAriaLabel(e){return 1===e?this.config.translation.aria.star:this.config.translation.aria.stars.replace(/{star}/g,e)}getIconTemplate(e){return!this.value||e>=this.value?this.offIconTemplate:this.onIconTemplate}writeValue(e){this.value=e,this.cd.detectChanges()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get isCustomIcon(){return this.templates&&this.templates.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft),V(Di))};static \u0275cmp=Oe({type:t,selectors:[["p-rating"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",readonly:"readonly",stars:"stars",cancel:"cancel",iconOnClass:"iconOnClass",iconOnStyle:"iconOnStyle",iconOffClass:"iconOffClass",iconOffStyle:"iconOffStyle",iconCancelClass:"iconCancelClass",iconCancelStyle:"iconCancelStyle"},outputs:{onRate:"onRate",onCancel:"onCancel",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([p2e])],decls:4,vars:8,consts:[[1,"p-rating",3,"ngClass"],[4,"ngIf","ngIfElse"],["customTemplate",""],["class","p-rating-item p-rating-cancel-item",3,"ngClass","click",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-rating-item","p-rating-cancel-item",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","radio","value","0",3,"name","checked","disabled","readonly","focus","blur","change"],["class","p-rating-icon p-rating-cancel",3,"ngClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle",4,"ngIf"],[1,"p-rating-icon","p-rating-cancel",3,"ngClass","ngStyle"],[3,"styleClass","ngStyle"],[1,"p-rating-item",3,"ngClass","click"],[4,"ngIf"],["class","p-rating-icon",3,"ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","styleClass",4,"ngIf"],[1,"p-rating-icon",3,"ngStyle","ngClass"],[3,"ngStyle","styleClass"],["class","p-rating-icon p-rating-icon-active",3,"ngStyle","ngClass",4,"ngIf"],[1,"p-rating-icon","p-rating-icon-active",3,"ngStyle","ngClass"],["class","p-rating-icon p-rating-cancel",3,"ngStyle","click",4,"ngIf"],["class","p-rating-icon",3,"click",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngStyle","click"],[4,"ngTemplateOutlet"],[1,"p-rating-icon",3,"click"]],template:function(n,o){if(1&n&&(x(0,"div",0),g(1,s2e,3,2,"ng-container",1),g(2,u2e,2,2,"ng-template",null,2,In),A()),2&n){const s=Bt(3);d("ngClass",mt(5,d2e,o.readonly,o.disabled)),K("data-pc-name","rating")("data-pc-section","root"),h(1),d("ngIf",!o.isCustomIcon)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,NO,RO,FO]},styles:["@layer primeng{.p-rating{display:inline-flex}.p-rating-icon{cursor:pointer}.p-rating.p-rating-readonly .p-rating-icon{cursor:default}}\n"],encapsulation:2,changeDetection:0})}return t})(),f2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,NO,RO,FO,Qe]})}return t})();const g2e=["container"],m2e=["content"],_2e=["xBar"],I2e=["yBar"];function C2e(t,i){1&t&&ze(0)}const v2e=["*"];let b2e=(()=>{class t{platformId;el;zone;cd;document;renderer;style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;templates;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;contentTemplate;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.cd=s,this.document=r,this.renderer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement;const s=this.document.defaultView;let r=s.getComputedStyle(e),a=s.getComputedStyle(o),l=j.getHeight(e)-parseInt(a.height,10);"none"!=r["max-height"]&&0==l&&(e.style.height=n.offsetHeight+parseInt(a.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement,s=n.scrollWidth,r=n.clientWidth,a=-1*(e.clientHeight-o.clientHeight);this.scrollXRatio=r/s;let l=this.yBarViewChild.nativeElement,c=n.scrollHeight,u=n.clientHeight,p=-1*(e.clientWidth-l.clientWidth);this.scrollYRatio=u/c,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)o.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(o,"p-scrollpanel-hidden");else{o.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(o,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollXRatio,10);o.style.cssText="width:"+m+"%; left:"+n.scrollLeft*(100-m)/(s-r)+"%;bottom:"+a+"px;"}if(this.scrollYRatio>=1)l.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(l,"p-scrollpanel-hidden");else{l.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(l,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollYRatio,10);l.style.cssText="height:"+m+"%; top: calc("+n.scrollTop*(100-m)/(c-u)+"% - "+o.clientHeight+"px);right:"+p+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){"horizontal"===this.orientation&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(Ft),V(Wt),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(g2e,5),je(m2e,5),je(_2e,5),je(I2e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.xBarViewChild=s.first),Se(s=Ee())&&(o.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",step:"step"},ngContentSelectors:v2e,decls:11,vars:14,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],["content",""],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["xBar",""],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"],["yBar",""]],template:function(n,o){1&n&&(Ti(),x(0,"div",0,1)(2,"div",2)(3,"div",3,4),me("mouseenter",function(){return o.moveBar()})("scroll",function(r){return o.onScroll(r)}),Kn(5),g(6,C2e,1,0,"ng-container",5),A()(),x(7,"div",6,7),me("mousedown",function(r){return o.onXBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)})("blur",function(){return o.onBlur()}),A(),x(9,"div",8,9),me("mousedown",function(r){return o.onYBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass","p-scrollpanel p-component")("ngStyle",o.style),K("data-pc-name","scrollpanel"),h(2),K("data-pc-section","wrapper"),h(1),K("data-pc-section","content"),h(3),d("ngTemplateOutlet",o.contentTemplate),h(1),K("aria-orientation","horizontal")("aria-valuenow",o.lastScrollLeft)("data-pc-section","barx"),h(2),K("aria-orientation","vertical")("aria-valuenow",o.lastScrollTop)("data-pc-section","bary"))},dependencies:[Ct,on,Ht],styles:["@layer primeng{.p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}}\n"],encapsulation:2,changeDetection:0})}return t})(),y2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),x2e=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CaretLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.5553 13C10.411 13.0006 10.2704 12.9538 10.1554 12.8667L3.04473 7.53369C2.96193 7.4716 2.89474 7.39108 2.84845 7.29852C2.80217 7.20595 2.77808 7.10388 2.77808 7.00039C2.77808 6.8969 2.80217 6.79484 2.84845 6.70227C2.89474 6.60971 2.96193 6.52919 3.04473 6.4671L10.1554 1.13412C10.2549 1.05916 10.3734 1.0136 10.4976 1.0026C10.6217 0.991605 10.7464 1.01561 10.8575 1.0719C10.9668 1.12856 11.0584 1.21398 11.1226 1.31893C11.1869 1.42388 11.2212 1.54438 11.222 1.66742V12.3334C11.2212 12.4564 11.1869 12.5769 11.1226 12.6819C11.0584 12.7868 10.9668 12.8722 10.8575 12.9289C10.7629 12.9735 10.6599 12.9977 10.5553 13ZM4.55574 7.00039L9.88871 11.0001V3.00066L4.55574 7.00039Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),J2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,x2e,qn,Nn,Qe]})}return t})();const eTe=["sliderHandle"],tTe=["sliderHandleStart"],nTe=["sliderHandleEnd"],iTe=function(t,i){return{left:t,width:i}};function oTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,iTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const sTe=function(t,i){return{bottom:t,height:i}};function rTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,sTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const aTe=function(t){return{height:t}};function lTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,aTe,e.handleValue+"%")),K("data-pc-section","range")}}const cTe=function(t){return{width:t}};function uTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,cTe,e.handleValue+"%")),K("data-pc-section","range")}}const Pv=function(t,i){return{left:t,bottom:i}};function dTe(t,i){if(1&t){const e=De();x(0,"span",6,7),me("touchstart",function(o){return G(e),q(f().onDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(o){return G(e),q(f().onDragEnd(o))})("mousedown",function(o){return G(e),q(f().onMouseDown(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(11,Pv,"horizontal"==e.orientation?e.handleValue+"%":null,"vertical"==e.orientation?e.handleValue+"%":null)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","handle")}}const BO=function(t){return{"p-slider-handle-active":t}};function pTe(t,i){if(1&t){const e=De();x(0,"span",8,9),me("keydown",function(o){return G(e),q(f().onKeyDown(o,0))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,0))})("touchstart",function(o){return G(e),q(f().onDragStart(o,0))})("touchmove",function(o){return G(e),q(f().onDrag(o,0))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeStartLeft,e.rangeStartBottom))("ngClass",He(15,BO,0==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[0]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","startHandler")}}function hTe(t,i){if(1&t){const e=De();x(0,"span",10,11),me("keydown",function(o){return G(e),q(f().onKeyDown(o,1))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,1))})("touchstart",function(o){return G(e),q(f().onDragStart(o,1))})("touchmove",function(o){return G(e),q(f().onDrag(o,1))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeEndLeft,e.rangeEndBottom))("ngClass",He(15,BO,1==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[1]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","endHandler")}}const fTe=function(t,i,e,n){return{"p-slider p-component":!0,"p-disabled":t,"p-slider-horizontal":i,"p-slider-vertical":e,"p-slider-animate":n}},gTe={provide:un,useExisting:ft(()=>mTe),multi:!0};let mTe=(()=>{class t{document;platformId;el;renderer;ngZone;cd;animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;onChange=new ge;onSlideEnd=new ge;sliderHandle;sliderHandleStart;sliderHandleEnd;value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.ngZone=r,this.cd=a}onMouseDown(e,n){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,this.bindDragListeners(),e.target.focus(),e.preventDefault(),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(e,n){if(!this.disabled){var o=e.changedTouches[0];this.startHandleValue=this.range?this.handleValues[n]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,"horizontal"===this.orientation?(this.startx=parseInt(o.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(o.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault()}}onDrag(e){if(!this.disabled){var o,n=e.changedTouches[0];o="horizontal"===this.orientation?Math.floor(100*(parseInt(n.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(n.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(e,o),e.preventDefault()}}onDragEnd(e){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault())}onBarClick(e){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(e),this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(e,n){switch(this.handleIndex=n,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,n),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,n),e.preventDefault();break;case"PageDown":this.decrementValue(e,n,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,n,!0),e.preventDefault();break;case"Home":this.updateValue(this.min,e),e.preventDefault();break;case"End":this.updateValue(this.max,e),e.preventDefault()}}decrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]-this.step:this.values[n]-1:this.step?this.value-this.step:!this.step&&o?this.value-10:this.value-1,this.updateValue(s,e),e.preventDefault()}incrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]+this.step:this.values[n]+1:this.step?this.value+this.step:!this.step&&o?this.value+10:this.value+1,this.updateValue(s,e),e.preventDefault()}handleChange(e){let n=this.calculateHandleValue(e);this.setValueFromHandle(e,n)}bindDragListeners(){ei(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const e=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(e,"mousemove",n=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(n)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(e,"mouseup",n=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:n,values:this.values}:{originalEvent:n,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(e,n){let o=this.getValueFromHandle(n);this.range?this.step?this.handleStepChange(o,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=n,this.updateValue(o,e)):this.step?this.handleStepChange(o,this.value):(this.handleValue=n,this.updateValue(o,e)),this.cd.markForCheck()}handleStepChange(e,n){let o=e-n,s=n,r=this.step;o<0?s=n+Math.ceil(e/r-n/r)*r:o>0&&(s=n+Math.floor(e/r-n/r)*r),this.updateValue(s),this.updateHandleValue()}writeValue(e){this.range?this.values=e||[0,0]:this.value=e||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let e=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=e.left+j.getWindowScrollLeft(),this.initY=e.top+j.getWindowScrollTop(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(e){return"horizontal"===this.orientation?100*(e.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-e.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.valuethis.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(e,n){if(this.range){let o=e;0==this.handleIndex?(othis.values[1]&&o>this.max&&(o=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(o>this.max?(o=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):othis.max&&(e=this.max,this.handleValue=100),this.value=this.getNormalizedValue(e),this.onModelChange(this.value),this.onChange.emit({event:n,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(e){return e/100*(this.max-this.min)+this.min}getDecimalsCount(e){return e&&Math.floor(e)!==e&&e.toString().split(".")[1].length||0}getNormalizedValue(e){let n=this.getDecimalsCount(this.step);return n>0?+parseFloat(e.toString()).toFixed(n):Math.floor(e)}ngOnDestroy(){this.unbindDragListeners()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-slider"]],viewQuery:function(n,o){if(1&n&&(je(eTe,5),je(tTe,5),je(nTe,5)),2&n){let s;Se(s=Ee())&&(o.sliderHandle=s.first),Se(s=Ee())&&(o.sliderHandleStart=s.first),Se(s=Ee())&&(o.sliderHandleEnd=s.first)}},hostAttrs:[1,"p-element"],inputs:{animate:"animate",disabled:"disabled",min:"min",max:"max",orientation:"orientation",step:"step",range:"range",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex"},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[yt([gTe])],decls:8,vars:18,consts:[[3,"ngStyle","ngClass","click"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"ngStyle","touchstart","touchmove","touchend","mousedown","keydown"],["sliderHandle",""],["role","slider",1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleStart",""],[1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleEnd",""]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onBarClick(r)}),g(1,oTe,1,5,"span",1),g(2,rTe,1,5,"span",1),g(3,lTe,1,4,"span",1),g(4,uTe,1,4,"span",1),g(5,dTe,2,14,"span",2),g(6,pTe,2,17,"span",3),g(7,hTe,2,17,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",gr(13,fTe,o.disabled,"horizontal"==o.orientation,"vertical"==o.orientation,o.animate)),K("data-pc-name","slider")("data-pc-section","root"),h(1),d("ngIf",o.range&&"horizontal"==o.orientation),h(1),d("ngIf",o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"horizontal"==o.orientation),h(1),d("ngIf",!o.range),h(1),d("ngIf",o.range),h(1),d("ngIf",o.range))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-slider{position:relative}.p-slider .p-slider-handle{position:absolute;cursor:grab;touch-action:none;display:block}.p-slider-range{position:absolute;display:block}.p-slider-horizontal .p-slider-range{top:0;left:0;height:100%}.p-slider-horizontal .p-slider-handle{top:50%}.p-slider-vertical{height:100px}.p-slider-vertical .p-slider-handle{left:50%}.p-slider-vertical .p-slider-range{bottom:0;left:0;width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_Te=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const ITe=["inputfield"],CTe=function(t){return{"ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},vTe=function(t){return{"ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},bTe={provide:un,useExisting:ft(()=>yTe),multi:!0};let yTe=(()=>{class t{el;cd;onChange=new ge;onFocus=new ge;onBlur=new ge;min;max;maxlength;size;placeholder;inputId;disabled;readonly;tabindex;required;name;ariaLabelledBy;inputStyle;inputStyleClass;formatInput;decimalSeparator;thousandSeparator;precision;value;_step=1;formattedValue;onModelChange=()=>{};onModelTouched=()=>{};keyPattern=/[0-9\+\-]/;timer;focus;filled;negativeSeparator="-";localeDecimalSeparator;localeThousandSeparator;thousandRegExp;calculatedPrecision;inputfieldViewChild;get step(){return this._step}set step(e){if(this._step=e,null!=this._step){let n=this.step.toString().split(/[,]|[.]/);this.calculatedPrecision=n[1]?n[1].length:void 0}}constructor(e,n){this.el=e,this.cd=n}ngOnInit(){this.formatInput&&(this.localeDecimalSeparator=1.1.toLocaleString().substring(1,2),this.localeThousandSeparator=1e3.toLocaleString().substring(1,2),this.thousandRegExp=new RegExp(`[${this.thousandSeparator||this.localeThousandSeparator}]`,"gim"),this.decimalSeparator&&this.thousandSeparator&&this.decimalSeparator===this.thousandSeparator&&console.warn("thousandSeparator and decimalSeparator cannot have the same value."))}repeat(e,n,o){let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let s,o=this.step*n,r=this.getPrecision();s=this.value?"string"==typeof this.value?this.parseValue(this.value):this.value:0,this.value=r?parseFloat(this.toFixed(s+o,r)):s+o,void 0!==this.maxlength&&this.value.toString().length>this.maxlength&&(this.value=s),void 0!==this.min&&this.valuethis.max&&(this.value=this.max),this.formatValue(),this.onModelChange(this.value),this.onChange.emit(e)}getPrecision(){return void 0===this.precision?this.calculatedPrecision:this.precision}toFixed(e,n){let o=Math.pow(10,n||0);return String(Math.round(e*o)/o)}onUpButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,1),this.updateFilledState(),e.preventDefault())}onUpButtonMouseup(e){this.disabled||this.clearTimer()}onUpButtonMouseleave(e){this.disabled||this.clearTimer()}onDownButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,-1),this.updateFilledState(),e.preventDefault())}onDownButtonMouseup(e){this.disabled||this.clearTimer()}onDownButtonMouseleave(e){this.disabled||this.clearTimer()}onInputKeydown(e){38==e.which?(this.spin(e,1),e.preventDefault()):40==e.which&&(this.spin(e,-1),e.preventDefault())}onInputChange(e){this.onChange.emit(e)}onInput(e){this.value=this.parseValue(e.target.value),this.onModelChange(this.value),this.updateFilledState()}onInputBlur(e){this.focus=!1,this.formatValue(),this.onModelTouched(),this.onBlur.emit(e)}onInputFocus(e){this.focus=!0,this.onFocus.emit(e)}parseValue(e){let n,o=this.getPrecision();return""===e.trim()?n=null:(this.formatInput&&(e=e.replace(this.thousandRegExp,"")),o?(e=e.replace(this.formatInput?this.decimalSeparator||this.localeDecimalSeparator:",","."),n=parseFloat(e)):n=parseInt(e,10),isNaN(n)?n=null:(null!==this.max&&n>this.max&&(n=this.max),null!==this.min&&n3&&(e[0]=e[0].replace(new RegExp(`[${this.localeThousandSeparator}]`,"gim"),this.thousandSeparator)),e=e.join(""))),this.formattedValue=e.toString()):this.formattedValue=null,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.formattedValue)}clearTimer(){this.timer&&clearInterval(this.timer)}writeValue(e){this.value=e,this.formatValue(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}updateFilledState(){this.filled=void 0!==this.value&&null!=this.value}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-spinner"]],viewQuery:function(n,o){if(1&n&&je(ITe,5),2&n){let s;Se(s=Ee())&&(o.inputfieldViewChild=s.first)}},hostAttrs:[1,"p-element"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("ui-inputwrapper-filled",o.filled)("ui-inputwrapper-focus",o.focus)},inputs:{min:"min",max:"max",maxlength:"maxlength",size:"size",placeholder:"placeholder",inputId:"inputId",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",required:"required",name:"name",ariaLabelledBy:"ariaLabelledBy",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",formatInput:"formatInput",decimalSeparator:"decimalSeparator",thousandSeparator:"thousandSeparator",precision:"precision",step:"step"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([bTe])],decls:7,vars:28,consts:[[1,"ui-spinner","ui-widget","ui-corner-all"],["type","text",3,"value","disabled","readonly","ngStyle","ngClass","keydown","blur","input","change","focus"],["inputfield",""],["type","button","tabindex","-1",3,"ngClass","disabled","mouseleave","mousedown","mouseup"],[1,"ui-spinner-button-icon","pi","pi-caret-up","ui-clickable"],[1,"ui-spinner-button-icon","pi","pi-caret-down","ui-clickable"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("keydown",function(r){return o.onInputKeydown(r)})("blur",function(r){return o.onInputBlur(r)})("input",function(r){return o.onInput(r)})("change",function(r){return o.onInputChange(r)})("focus",function(r){return o.onInputFocus(r)}),A(),x(3,"button",3),me("mouseleave",function(r){return o.onUpButtonMouseleave(r)})("mousedown",function(r){return o.onUpButtonMousedown(r)})("mouseup",function(r){return o.onUpButtonMouseup(r)}),le(4,"span",4),A(),x(5,"button",3),me("mouseleave",function(r){return o.onDownButtonMouseleave(r)})("mousedown",function(r){return o.onDownButtonMousedown(r)})("mouseup",function(r){return o.onDownButtonMouseup(r)}),le(6,"span",5),A()()),2&n&&(h(1),Ve(o.inputStyleClass),d("value",o.formattedValue||null)("disabled",o.disabled)("readonly",o.readonly)("ngStyle",o.inputStyle)("ngClass","ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all"),K("id",o.inputId)("name",o.name)("aria-valumin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("aria-labelledby",o.ariaLabelledBy)("size",o.size)("maxlength",o.maxlength)("tabindex",o.tabindex)("placeholder",o.placeholder)("required",o.required),h(2),d("ngClass",He(24,CTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly),h(2),d("ngClass",He(26,vTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly))},dependencies:[Ct,Ht],styles:["@layer primeng{.ui-spinner{display:inline-block;overflow:visible;padding:0;position:relative;vertical-align:middle}.ui-spinner-input{vertical-align:middle;padding-right:1.5em}.ui-spinner-button{cursor:default;display:block;height:50%;margin:0;overflow:hidden;padding:0;position:absolute;right:0;text-align:center;vertical-align:middle;width:1.5em}.ui-spinner .ui-spinner-button-icon{position:absolute;top:50%;left:50%;margin-top:-.5em;margin-left:-.5em;width:1em}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-fluid .ui-spinner{width:100%}.ui-fluid .ui-spinner .ui-spinner-input{padding-right:2em;width:100%}.ui-fluid .ui-spinner .ui-spinner-button{width:1.5em}.ui-fluid .ui-spinner .ui-spinner-button .ui-spinner-button-icon{left:.7em}}\n"],encapsulation:2,changeDetection:0})}return t})(),xTe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs]})}return t})(),Fv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),nSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,ki,Fv,bi,ki,Fv]})}return t})(),dSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,qn,Nn]})}return t})(),OSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Qe,dn,Nn,Mr,Qi,qn,Qe,Nn]})}return t})(),oEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Nn,dn,mn,Mr,Qi,Qe]})}return t})(),sEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,uu]})}return t})(),fEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn,Qe]})}return t})();const gEe=function(t,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i}};function mEe(t,i){if(1&t&&le(0,"span",3),2&t){const e=f();Ve(e.checked?e.onIcon:e.offIcon),d("ngClass",mt(4,gEe,"left"===e.iconPos,"right"===e.iconPos)),K("data-pc-section","icon")}}function _Ee(t,i){if(1&t&&(x(0,"span",4),Le(1),A()),2&t){const e=f();K("data-pc-section","label"),h(1),dt(e.checked?e.hasOnLabel?e.onLabel:"":e.hasOffLabel?e.offLabel:"")}}const IEe=function(t,i,e){return{"p-button p-togglebutton p-component":!0,"p-button-icon-only":t,"p-highlight":i,"p-disabled":e}},CEe={provide:un,useExisting:ft(()=>vEe),multi:!0};let vEe=(()=>{class t{cd;onLabel;offLabel;onIcon;offIcon;ariaLabel;ariaLabelledBy;disabled;style;styleClass;inputId;tabindex;iconPos="left";onChange=new ge;checked=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}toggle(e){this.disabled||(this.checked=!this.checked,this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onKeyDown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}onBlur(){this.onModelTouched()}writeValue(e){this.checked=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.onLabel&&this.onLabel.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-toggleButton"]],hostAttrs:[1,"p-element"],inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",style:"style",styleClass:"styleClass",inputId:"inputId",tabindex:"tabindex",iconPos:"iconPos"},outputs:{onChange:"onChange"},features:[yt([CEe])],decls:3,vars:16,consts:[["role","switch","pRipple","",3,"ngClass","ngStyle","click","keydown"],[3,"class","ngClass",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeyDown(r)}),g(1,mEe,1,7,"span",1),g(2,_Ee,2,2,"span",2),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(12,IEe,o.onIcon&&o.offIcon&&!o.hasOnLabel&&!o.hasOffLabel,o.checked,o.disabled))("ngStyle",o.style),K("tabindex",o.disabled?null:"0")("aria-checked",o.checked)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-name","togglebutton")("data-pc-section","root"),h(1),d("ngIf",o.onIcon||o.offIcon),h(1),d("ngIf",o.onLabel||o.offLabel))},dependencies:[Ct,gt,Ht,oo],styles:['@layer primeng{.p-button[_ngcontent-%COMP%]{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label[_ngcontent-%COMP%]{flex:1 1 auto}.p-button-icon-right[_ngcontent-%COMP%]{order:1}.p-button[_ngcontent-%COMP%]:disabled{cursor:default;pointer-events:none}.p-button-icon-only[_ngcontent-%COMP%]{justify-content:center}.p-button-icon-only[_ngcontent-%COMP%]:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical[_ngcontent-%COMP%]{flex-direction:column}.p-button-icon-bottom[_ngcontent-%COMP%]{order:2}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]{margin:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:last-child){border-right:0 none}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:focus{position:relative;z-index:1}p-button[iconpos=right][_ngcontent-%COMP%] spinnericon[_ngcontent-%COMP%]{order:1}}'],changeDetection:0})}return t})(),bEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn]})}return t})(),wEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),oke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Mi,yi,bi,Qi,eg,Qs,_s,ng,Qe,Mi]})}return t})(),uke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Mi,Qe,Mi]})}return t})();const dke=["split"],pke=["area1"],hke=["area2"],fke=["layoutMenuScroller"],gke=function(t,i,e,n,o,s){return{"layout-wrapper-overlay-sidebar":t,"layout-wrapper-slim-sidebar":i,"layout-wrapper-horizontal-sidebar":e,"layout-wrapper-overlay-sidebar-active":n,"layout-wrapper-sidebar-inactive":o,"layout-wrapper-sidebar-mobile-active":s}},mke=function(){return{height:"100%"}};let Rv=(()=>{class t{constructor(e){this.renderer=e,this.direction="horizontal",this.sizes={percent:{area1:12,area2:88},pixel:{area1:120,area2:"*",area3:160},useTransition:!0,av1:!0,av2:!0},this.action={area1:12,area2:88,useTransition:!1,av1:!0,av2:!0},this.layoutMode="static",this.megaMenuMode="dark",this.menuMode="light",this.profileMode="inline"}dragEnd(e,{sizes:n}){"percent"===e?(this.action.area1=n[0],this.action.area2=n[1]):"pixel"===e&&(this.sizes.pixel.area1=n[0],this.sizes.pixel.area2=n[1],this.sizes.pixel.area3=n[2])}ngAfterViewInit(){setTimeout(()=>{this.layoutMenuScrollerViewChild.moveBar()},100)}onLayoutClick(){this.topbarItemClick||(this.activeTopbarItem=null,this.topbarMenuActive=!1),this.rightPanelClick||(this.rightPanelActive=!1),this.megaMenuClick||(this.megaMenuActive=!1),!this.usermenuClick&&this.isSlim()&&(this.usermenuActive=!1,this.activeProfileItem=null),this.menuClick||((this.isHorizontal()||this.isSlim())&&(this.resetMenu=!0),(this.overlayMenuActive||this.staticMenuMobileActive)&&this.hideOverlayMenu(),this.menuHoverActive=!1),this.topbarItemClick=!1,this.menuClick=!1,this.rightPanelClick=!1,this.megaMenuClick=!1,this.usermenuClick=!1}onMenuButtonClick(e){this.menuClick=!0,this.topbarMenuActive=!1,"overlay"===this.layoutMode?this.overlayMenuActive=!this.overlayMenuActive:this.isDesktop()?(this.staticMenuDesktopInactive=!this.staticMenuDesktopInactive,88==this.action.area2&&12==this.action.area1?(this.action.area2=100,this.action.area1=0):100==this.action.area2&&0==this.action.area1&&(this.action.area2=88,this.action.area1=12)):this.staticMenuMobileActive=!this.staticMenuMobileActive,e.preventDefault()}onMenuClick(e){this.menuClick=!0,this.resetMenu=!1}onTopbarMenuButtonClick(e){this.topbarItemClick=!0,this.topbarMenuActive=!this.topbarMenuActive,this.hideOverlayMenu(),e.preventDefault()}onTopbarItemClick(e,n){this.topbarItemClick=!0,this.activeTopbarItem=this.activeTopbarItem===n?null:n,e.preventDefault()}onTopbarSubItemClick(e){e.preventDefault()}onRightPanelButtonClick(e){this.rightPanelClick=!0,this.rightPanelActive=!this.rightPanelActive,e.preventDefault()}onRightPanelClick(){this.rightPanelClick=!0}onMegaMenuButtonClick(e){this.megaMenuClick=!0,this.megaMenuActive=!this.megaMenuActive,e.preventDefault()}onMegaMenuClick(){this.megaMenuClick=!0}hideOverlayMenu(){this.overlayMenuActive=!1,this.staticMenuMobileActive=!1}isTablet(){const e=window.innerWidth;return e<=1024&&e>640}isDesktop(){return window.innerWidth>1024}isMobile(){return window.innerWidth<=640}isHorizontal(){return"horizontal"===this.layoutMode}isSlim(){return"slim"===this.layoutMode}isOverlay(){return"overlay"===this.layoutMode}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-root"]],viewQuery:function(n,o){if(1&n&&(je(dke,5),je(pke,5),je(hke,5),je(fke,7)),2&n){let s;Se(s=Ee())&&(o.split=s.first),Se(s=Ee())&&(o.area1=s.first),Se(s=Ee())&&(o.area2=s.first),Se(s=Ee())&&(o.layoutMenuScrollerViewChild=s.first)}},decls:17,vars:17,consts:[[1,"layout-wrapper",3,"ngClass","click"],[1,"ui-g-12","ui-md-12","reportSection",2,"padding-left","0px"],["unit","percent",3,"direction","useTransition","dragEnd"],["split","asSplit"],[1,"area1",2,"overflow","auto","width","auto","height","auto","margin-top","38px",3,"size","visible"],["area1","asSplitArea"],[1,"layout-sidebar",3,"click"],["layoutMenuScroller",""],[1,"sidebar-scroll-content"],[2,"overflow","auto","height","auto","width","auto",3,"size","visible"],["area2","asSplitArea"],[1,"layout-main"],[1,"layout-main-content"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(){return o.onLayoutClick()}),le(1,"app-topbar"),x(2,"div",1)(3,"as-split",2,3),me("dragEnd",function(r){return o.dragEnd("percent",r)}),x(5,"as-split-area",4,5)(7,"div",6),me("click",function(r){return o.onMenuClick(r)}),x(8,"p-scrollPanel",null,7)(10,"div",8),le(11,"ginger-report-menu"),A()()()(),x(12,"as-split-area",9,10)(14,"div",11)(15,"div",12),le(16,"router-outlet"),A()()()()()()),2&n&&(d("ngClass",ea(9,gke,o.isOverlay(),o.isSlim(),o.isHorizontal(),o.overlayMenuActive,o.staticMenuDesktopInactive,o.staticMenuMobileActive)),h(3),d("direction",o.direction)("useTransition",o.action.useTransition),h(2),d("size",o.action.area1)("visible",o.action.av1),h(3),yn(Jt(16,mke)),h(4),d("size",o.action.area2)("visible",o.action.av2))},styles:[".reportSection .as-horizontal>.as-split-gutter>.as-split-gutter-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAB3SURBVChT3ZGxDcAgDASfNAzADiwA+2/AAJRUDMAADo8lZIkmUbpcgV+2dYVBSklijEJCCAJArvmgtcYC7z2X4LixOoa1eWCdzLOlzt47y+a509EzxkCtFTlnMB9O5v85yboj2fecQUeGl390OEspOjV8derIAtxNg4Qs31DpLQAAAABJRU5ErkJggg==)} .reportSection .as-horizontal>.as-split-gutter{height:auto!important;margin-top:0} .reportSection .layout-main{margin-left:0!important} .reportSection .layout-sidebar{position:relative!important;width:auto;top:25px;border-right:unset;height:99%} .reportSection .ui-panelmenu-content .ui-widget-content{height:1000px!important} .reportSection .layout-sidebar .ui-scrollpanel .sidebar-scroll-content{width:auto;padding-right:0} .reportSection .ui-panelmenu .ui-menuitem-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important} .reportSection a.p-menuitem-link-active{font-weight:700!important}"]})}return t})(),_ke=(()=>{class t{constructor(e,n,o,s,r){this.app=e,this.router=n,this.activeRoute=o,this.communicatorService=s,this.userDataManagerService=r,this.logoLink="#3423"}ngOnInit(){this.activeRoute.queryParams.subscribe(e=>{const n=e.ExecutionId;typeof n<"u"&&n&&(this.logoLink=`#/?ExecutionId=${n}`)})}refreshReport(){this.userDataManagerService.setItemCache(null),this.communicatorService.refreshScreen("RefreshData")}static#e=this.\u0275fac=function(n){return new(n||t)(V(Rv),V(io),V(Wi),V(Ws),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-topbar"]],decls:7,vars:1,consts:[[1,"layout-topbar",2,"border-bottom","4px solid transparent","border-image","linear-gradient(to right, #ec008c, #f77341 63%, #fdb515)","border-image-slice","1","z-index","9999"],[1,"logo",3,"href"],["src","assets/layout/images/amdocs_icon.png","alt","Amdocs-logo","height","30",1,"amdocs_icon"],["src","assets/layout/images/amdocs.png","alt","Amdocs-logo"],["id","menu-button","href","#",3,"click"],[1,"fa","fa-align-left"],["type","button","pButton","","icon","pi pi-refresh","pTooltip","Refresh report data","tooltipPosition","right",1,"p-button","refreshBtn",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"a",1),le(2,"img",2)(3,"img",3),A(),x(4,"a",4),me("click",function(r){return o.app.onMenuButtonClick(r)}),le(5,"i",5),A(),x(6,"button",6),me("click",function(){return o.refreshReport()}),A()()),2&n&&(h(1),g_("href",o.logoLink,Ls))},dependencies:[Kl,hf],styles:[".refreshBtn[_ngcontent-%COMP%]{border-radius:40px;height:40px;width:40px!important;font-size:2em;position:absolute;right:10px;top:8px;background-color:#ffbf3f;color:#000;border:#FFBF3F}.p-button[_ngcontent-%COMP%]:enabled:hover{background-color:#f8e08e;color:#000}"]})}return t})();const $O={production:!0},Ike=["gutterEls"];function Cke(t,i){if(1&t){const e=De();x(0,"div",2,3),me("keydown",function(o){G(e);const s=f().index;return q(f().startKeyboardDrag(o,2*s+1,s+1))})("mousedown",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("touchstart",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("mouseup",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))})("touchend",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))}),le(2,"div",4),A()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f();fo("flex-basis",s.gutterSize,"px")("order",2*n+1),K("aria-label",s.gutterAriaLabel)("aria-orientation",s.direction)("aria-valuemin",o.minSize)("aria-valuemax",o.maxSize)("aria-valuenow",o.size)("aria-valuetext",s.getAriaAreaSizeText(o.size))}}function vke(t,i){1&t&&g(0,Cke,3,10,"div",1),2&t&&d("ngIf",!1===i.last)}const bke=["*"];function fd(t){if(void 0!==t.changedTouches&&t.changedTouches.length>0)return{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(void 0!==t.clientX&&void 0!==t.clientY)return{x:t.clientX,y:t.clientY};if(void 0!==t.currentTarget){const i=t.currentTarget;return{x:i.offsetLeft,y:i.offsetTop}}return null}function KO(t,i,e){return Math.abs(t.x-i.x)<=e&&Math.abs(t.y-i.y)<=e}function GO(t,i){const e=t.nativeElement.getBoundingClientRect();return"horizontal"===i?e.width:e.height}function gd(t){return"boolean"==typeof t?t:"false"!==t}function jr(t,i){return null==t?i:(t=Number(t),!isNaN(t)&&t>=0?t:i)}function qO(t,i){if("percent"===t){const e=i.reduce((n,o)=>null!==o?n+o:n,0);return i.every(n=>null!==n)&&e>99.9&&e<100.1}if("pixel"===t)return 1===i.filter(e=>null===e).length}function lg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.minSize?null:t.component.minSize>t.size?t.size:t.component.minSize}function cg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.maxSize?null:t.component.maxSize{const r=function xke(t,i,e,n){return 0===e?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:i.sizePercentAtStart,pixelRemain:0}:0===i.sizePixelAtStart&&e<0?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:e}:"percent"===t?function Ake(t,i,e){const o=(t.sizePixelAtStart+i)/e*100;if(i>0){if(null!==t.area.maxSize&&o>t.area.maxSize){const s=t.area.maxSize/100*e;return{areaSnapshot:t,pixelAbsorb:s,percentAfterAbsorption:t.area.maxSize,pixelRemain:t.sizePixelAtStart+i-s}}return{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:o>100?100:o,pixelRemain:0}}if(i<0){if(null!==t.area.minSize&&o0?null!==t.area.maxSize&&n>t.area.maxSize?{areaSnapshot:t,pixelAbsorb:t.area.maxSize-t.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:n-t.area.maxSize}:{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:-1,pixelRemain:0}:i<0?null!==t.area.minSize&&n{class t{set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=jr(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=jr(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=gd(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=gd(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=gd(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=jr(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new ce(e=>this.transitionEndSubscriber=e).pipe(nk(20))}constructor(e,n,o,s,r){this.ngZone=e,this.elRef=n,this.cdRef=o,this.renderer=s,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new ge(!1),this.dragEnd=new ge(!1),this.gutterClick=new ge(!1),this.gutterDblClick=new ge(!1),this.dragProgressSubject=new re,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=r?Object.assign(this._config,r):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const n={component:e,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===e.visible?(this.displayedAreas.push(n),this.build(!0,!0)):this.hiddenAreas.push(n)}removeArea(e){if(this.displayedAreas.some(n=>n.component===e)){const n=this.displayedAreas.find(o=>o.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(n),1),this.build(!0,!0)}else if(this.hiddenAreas.some(n=>n.component===e)){const n=this.hiddenAreas.find(o=>o.component===e);this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1)}}updateArea(e,n,o){!0===e.visible&&this.build(n,o)}showArea(e){const n=this.hiddenAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1);this.displayedAreas.push(...o),this.build(!0,!0)}hideArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.displayedAreas.splice(this.displayedAreas.indexOf(n),1);o.forEach(s=>{s.order=0,s.size=0}),this.hiddenAreas.push(...o),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const n=e.map(s=>jr(s,null));return!1!==qO(this.unit,n)&&(this.displayedAreas.forEach((s,r)=>s.component._size=n[r]),this.build(!1,!0),!0)}build(e,n){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(o=>null!==o.component.order)&&this.displayedAreas.sort((o,s)=>o.component.order-s.component.order),this.displayedAreas.forEach((o,s)=>{o.order=2*s,o.component.setStyleOrder(o.order)})),!0===n){const o=qO(this.unit,this.displayedAreas.map(s=>s.component.size));switch(this.unit){case"percent":{const s=100/this.displayedAreas.length;this.displayedAreas.forEach(r=>{r.size=o?r.component.size:s,r.minSize=lg(r),r.maxSize=cg(r)});break}case"pixel":if(o)this.displayedAreas.forEach(s=>{s.size=s.component.size,s.minSize=lg(s),s.maxSize=cg(s)});else{const s=this.displayedAreas.filter(r=>null===r.component.size);if(0===s.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((r,a)=>{r.size=0===a?null:r.component.size,r.minSize=0===a?null:lg(r),r.maxSize=0===a?null:cg(r)});else if(s.length>1){let r=!1;this.displayedAreas.forEach(a=>{null===a.component.size?!1===r?(a.size=null,a.minSize=null,a.maxSize=null,r=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=lg(a),a.maxSize=cg(a))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(n=>{n.component.setStyleFlex(0,0,`calc( ${n.size}% - ${n.size/100*e}px )`,null!==n.minSize&&n.minSize===n.size,null!==n.maxSize&&n.maxSize===n.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,n){const o=fd(e);this.startPoint&&KO(this.startPoint,o,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",n),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",n),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(e,n,o){if(!0===this.disabled||!0===this.isWaitingClear)return;const s=function yke(t,i){if("horizontal"===i)switch(t.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===i)switch(t.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const e=t.currentTarget,n="PageUp"===t.key||"PageDown"===t.key?500:50;let o=e.offsetLeft,s=e.offsetTop;switch(t.key){case"ArrowLeft":o-=n;break;case"ArrowRight":o+=n;break;case"ArrowUp":s-=n;break;case"ArrowDown":s+=n;break;case"PageUp":"vertical"===i?s-=n:o+=n;break;case"PageDown":"vertical"===i?s+=n:o-=n;break;default:return null}return{x:o,y:s}}(e,this.direction);null!==s&&(this.endPoint=s,this.startPoint=fd(e),e.preventDefault(),e.stopPropagation(),this.setupForDragEvent(n,o),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(e,n,o){e.preventDefault(),e.stopPropagation(),this.startPoint=fd(e),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(n,o),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(e,n){this.snapshot={gutterNum:n,lastSteppedOffset:0,allAreasSizePixel:GO(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(o=>{const s={area:o,sizePixelAtStart:GO(o.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?o.size:-1};o.ordere&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[s]):this.snapshot.areasAfterGutter.push(s))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((o,s)=>o+s.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(e){e.preventDefault(),e.stopPropagation();const n=fd(e);null!==this._clickTimeout&&!KO(this.startPoint,n,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=fd(e),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let e="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(e=-e);const n=Math.round(e/this.gutterStep)*this.gutterStep;if(n===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=n;let o=Jl(this.unit,this.snapshot.areasBeforeGutter,-n,this.snapshot.allAreasSizePixel),s=Jl(this.unit,this.snapshot.areasAfterGutter,n,this.snapshot.allAreasSizePixel);if(0!==o.remain&&0!==s.remain?Math.abs(o.remain)===Math.abs(s.remain)||(Math.abs(o.remain)>Math.abs(s.remain)?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)):0!==o.remain?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):0!==s.remain&&(o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const r=[...o.list,...s.list],a=r.find(l=>0!==l.percentAfterAbsorption&&l.percentAfterAbsorption!==l.areaSnapshot.area.minSize&&l.percentAfterAbsorption!==l.areaSnapshot.area.maxSize);a&&(a.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-r.filter(l=>l!==a).reduce((l,c)=>l+c.percentAfterAbsorption,0))}o.list.forEach(r=>WO(this.unit,r)),s.list.forEach(r=>WO(this.unit,r)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(n=>n.component.unlockEvents());this.dragListeners.length>0;){const n=this.dragListeners.pop();n&&n()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(e,n){const o=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:n,sizes:o}):"end"===e?this.dragEnd.emit({gutterNum:n,sizes:o}):"click"===e?this.gutterClick.emit({gutterNum:n,sizes:o}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:n,sizes:o}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(o)):"progress"===e&&this.dragProgressSubject.next({gutterNum:n,sizes:o})}ngOnDestroy(){this.stopDragging()}collapseArea(e,n,o){const s=this.displayedAreas.find(l=>l.component===e);if(void 0===s)return;const r="right"===o?1:-1;s.sizeBeforeCollapse||(s.sizeBeforeCollapse=s.size,s.gutterBeforeCollapse=r),s.size=n;const a=this.gutterEls.find(l=>l.nativeElement.style.order===`${s.order+r}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}expandArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n||!n.sizeBeforeCollapse)return;n.size=n.sizeBeforeCollapse,n.sizeBeforeCollapse=null;const o=this.gutterEls.find(s=>s.nativeElement.style.order===`${n.order+n.gutterBeforeCollapse}`);o&&this.renderer.removeClass(o.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}getAriaAreaSizeText(e){return null===e?null:e.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(Ft),V(hn),V(Tke,8))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["as-split"]],viewQuery:function(n,o){if(1&n&&je(Ike,5),2&n){let s;Se(s=Ee())&&(o.gutterEls=s)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:bke,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(n,o){1&n&&(Ti(),Kn(0),g(1,vke,1,1,"ng-template",0)),2&n&&(h(1),d("ngForOf",o.displayedAreas))},dependencies:[Jn,gt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return t})(),Ske=(()=>{class t{set order(e){this._order=jr(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=jr(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=jr(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=jr(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=gd(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=gd(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(e,n,o,s){this.ngZone=e,this.elRef=n,this.renderer=o,this.split=s,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",n=>{"flex-basis"===n.propertyName&&this.split.notify("transitionEnd",-1)})});const e=this.renderer.createElement("div");this.renderer.addClass(e,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,e)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,e)})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,n,o,s,r){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",n),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",o),!0===s?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===r?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(e=0,n="right"){this.split.collapseArea(this,e,n)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(hn),V(QO))};static#t=this.\u0275dir=ut({type:t,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return t})(),Eke=(()=>{class t{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[Xe]})}return t})();const Dke=function(){return{width:"auto"}};let kke=(()=>{class t{constructor(e,n){this.communicatorService=e,this.route=n,this.guid="",this.executionGeneralDetailsData=[]}ngOnInit(){this.communicatorService.messageSourceHasNewMessage.subscribe(e=>{console.log("messge arrived to menu"),console.log(e),this.items=e}),this.route.queryParams.subscribe(e=>{this.guid="",this.guid=e.Guid,typeof this.guid<"u"&&this.guid&&this.searchForSelectedRecNode(this.items)})}searchForSelectedRecNode(e){let n=!1;if(null==e)n=!1;else for(const o of e){if(o.id===this.guid){n=!0;break}if(typeof o.items<"u"&&null!=o.items&&this.searchForSelectedRecNode(o.items)){o.expanded=!0,n=!0;break}}return n}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(Wi))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ginger-report-menu"]],decls:1,vars:5,consts:[[3,"model","multiple"]],template:function(n,o){1&n&&le(0,"p-panelMenu",0),2&n&&(yn(Jt(4,Dke)),d("model",o.items)("multiple",!1))},dependencies:[ZM],styles:[".p-panelmenu .p-panelmenu-header-action .p-menuitem-icon{margin-left:.2rem!important;margin-right:.5rem!important} .p-panelmenu .p-component{padding-top:10px}"]})}return t})(),Mke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t,bootstrap:[Rv]});static#n=this.\u0275inj=Ge({providers:[{provide:"environmentObj",useValue:$O},{provide:Ir,useClass:G2}],imports:[R0,uu,uhe,eE,NE,JD,Ife,oge,ki,uk,cge,Oge,qM,qge,mme,Xme,f_e,nO,D_e,Ek,_f,V_e,Q_e,pIe,kk,yIe,MIe,_v,Zs,OIe,UCe,wve,o1e,z1e,$1e,yv,Eye,sxe,bxe,kxe,vf,Wxe,YM,xAe,Nwe,xv,Gwe,f2e,y2e,Ik,J2e,_Te,xTe,nSe,dSe,wk,OSe,oEe,sEe,Fv,fEe,bEe,wEe,Nn,oke,JM,uke,Spe,_v,Xe,Eke.forRoot()]})}return t})();Dg(Rv,function(){return[Ct,QI,b2e,kke,QO,Ske,_ke]},[]),AB().bootstrapModule(Mke).catch(t=>console.error(t))},7536:function(tc){tc.exports=function(xe){var z={};function L(ae){if(z[ae])return z[ae].exports;var H=z[ae]={exports:{},id:ae,loaded:!1};return xe[ae].call(H.exports,H,H.exports,L),H.loaded=!0,H.exports}return L.m=xe,L.c=z,L.p="",L(0)}([function(xe,z,L){xe.exports=L(53)},function(xe,z,L){"use strict";var H=ue(L(2)),F=ue(L(18)),N=L(29),O=ue(N),I=ue(L(30)),T=ue(L(42)),k=ue(L(34)),D=ue(L(31)),M=ue(L(32)),ee=ue(L(43)),ne=ue(L(33)),Q=ue(L(44)),se=ue(L(51)),U=ue(L(52));function ue(pe){return pe&&pe.__esModule?pe:{default:pe}}F.default.register({"blots/block":O.default,"blots/block/embed":N.BlockEmbed,"blots/break":I.default,"blots/container":T.default,"blots/cursor":k.default,"blots/embed":D.default,"blots/inline":M.default,"blots/scroll":ee.default,"blots/text":ne.default,"modules/clipboard":Q.default,"modules/history":se.default,"modules/keyboard":U.default}),H.default.register(O.default,I.default,k.default,M.default,ee.default,ne.default),xe.exports=F.default},function(xe,z,L){"use strict";var ae=L(3),H=L(7),Z=L(12),F=L(13),N=L(14),O=L(15),S=L(16),I=L(17),v=L(8),T=L(10),C=L(11),k=L(9),y=L(6),D={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:ae.default,Format:H.default,Leaf:Z.default,Embed:S.default,Scroll:F.default,Block:O.default,Inline:N.default,Text:I.default,Attributor:{Attribute:v.default,Class:T.default,Style:C.default,Store:k.default}};Object.defineProperty(z,"__esModule",{value:!0}),z.default=D},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(4),Z=L(5),F=L(6),N=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.prototype.appendChild=function(v){this.insertBefore(v)},I.prototype.attach=function(){var v=this;S.prototype.attach.call(this),this.children=new H.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(T){try{var C=O(T);v.insertBefore(C,v.children.head)}catch(k){if(k instanceof F.ParchmentError)return;throw k}})},I.prototype.deleteAt=function(v,T){if(0===v&&T===this.length())return this.remove();this.children.forEachAt(v,T,function(C,k,y){C.deleteAt(k,y)})},I.prototype.descendant=function(v,T){var C=this.children.find(T),k=C[0],y=C[1];return null==v.blotName&&v(k)||null!=v.blotName&&k instanceof v?[k,y]:k instanceof I?k.descendant(v,y):[null,-1]},I.prototype.descendants=function(v,T,C){void 0===T&&(T=0),void 0===C&&(C=Number.MAX_VALUE);var k=[],y=C;return this.children.forEachAt(T,C,function(D,w,M){(null==v.blotName&&v(D)||null!=v.blotName&&D instanceof v)&&k.push(D),D instanceof I&&(k=k.concat(D.descendants(v,w,y))),y-=M}),k},I.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),S.prototype.detach.call(this)},I.prototype.formatAt=function(v,T,C,k){this.children.forEachAt(v,T,function(y,D,w){y.formatAt(D,w,C,k)})},I.prototype.insertAt=function(v,T,C){var k=this.children.find(v),y=k[0];if(y)y.insertAt(k[1],T,C);else{var w=null==C?F.create("text",T):F.create(T,C);this.appendChild(w)}},I.prototype.insertBefore=function(v,T){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(C){return v instanceof C}))throw new F.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,T)},I.prototype.length=function(){return this.children.reduce(function(v,T){return v+T.length()},0)},I.prototype.moveChildren=function(v,T){this.children.forEach(function(C){v.insertBefore(C,T)})},I.prototype.optimize=function(){if(S.prototype.optimize.call(this),0===this.children.length)if(null!=this.statics.defaultChild){var v=F.create(this.statics.defaultChild);this.appendChild(v),v.optimize()}else this.remove()},I.prototype.path=function(v,T){void 0===T&&(T=!1);var C=this.children.find(v,T),k=C[0],y=C[1],D=[[this,v]];return k instanceof I?D.concat(k.path(y,T)):(null!=k&&D.push([k,y]),D)},I.prototype.removeChild=function(v){this.children.remove(v)},I.prototype.replace=function(v){v instanceof I&&v.moveChildren(this),S.prototype.replace.call(this,v)},I.prototype.split=function(v,T){if(void 0===T&&(T=!1),!T){if(0===v)return this;if(v===this.length())return this.next}var C=this.clone();return this.parent.insertBefore(C,this.next),this.children.forEachAt(v,this.length(),function(k,y,D){k=k.split(y,T),C.appendChild(k)}),C},I.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},I.prototype.update=function(v){var T=this,C=[],k=[];v.forEach(function(y){y.target===T.domNode&&"childList"===y.type&&(C.push.apply(C,y.addedNodes),k.push.apply(k,y.removedNodes))}),k.forEach(function(y){if(!(null!=y.parentNode&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var D=F.find(y);null!=D&&(null==D.domNode.parentNode||D.domNode.parentNode===T.domNode)&&D.detach()}}),C.filter(function(y){return y.parentNode==T.domNode}).sort(function(y,D){return y===D?0:y.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var D=null;null!=y.nextSibling&&(D=F.find(y.nextSibling));var w=O(y);(w.next!=D||null==w.next)&&(null!=w.parent&&w.parent.removeChild(T),T.insertBefore(w,D))})},I}(Z.default);function O(S){var I=F.find(S);if(null==I)try{I=F.create(S)}catch{I=F.create(F.Scope.INLINE),[].slice.call(S.childNodes).forEach(function(T){I.domNode.appendChild(T)}),S.parentNode.replaceChild(I.domNode,S),I.attach()}return I}Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z){"use strict";var L=function(){function ae(){this.head=this.tail=void 0,this.length=0}return ae.prototype.append=function(){for(var H=[],Z=0;Z1&&this.append.apply(this,H.slice(1))},ae.prototype.contains=function(H){for(var Z,F=this.iterator();Z=F();)if(Z===H)return!0;return!1},ae.prototype.insertBefore=function(H,Z){H.next=Z,null!=Z?(H.prev=Z.prev,null!=Z.prev&&(Z.prev.next=H),Z.prev=H,Z===this.head&&(this.head=H)):null!=this.tail?(this.tail.next=H,H.prev=this.tail,this.tail=H):(H.prev=void 0,this.head=this.tail=H),this.length+=1},ae.prototype.offset=function(H){for(var Z=0,F=this.head;null!=F;){if(F===H)return Z;Z+=F.length(),F=F.next}return-1},ae.prototype.remove=function(H){this.contains(H)&&(null!=H.prev&&(H.prev.next=H.next),null!=H.next&&(H.next.prev=H.prev),H===this.head&&(this.head=H.next),H===this.tail&&(this.tail=H.prev),this.length-=1)},ae.prototype.iterator=function(H){return void 0===H&&(H=this.head),function(){var Z=H;return null!=H&&(H=H.next),Z}},ae.prototype.find=function(H,Z){void 0===Z&&(Z=!1);for(var F,N=this.iterator();F=N();){var O=F.length();if(Hv?F(I,H-v,Math.min(Z,v+C-H)):F(I,0,Math.min(C,H+Z-v)),v+=C}},ae.prototype.map=function(H){return this.reduce(function(Z,F){return Z.push(H(F)),Z},[])},ae.prototype.reduce=function(H,Z){for(var F,N=this.iterator();F=N();)Z=H(Z,F);return Z},ae}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=L},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F){this.domNode=F,this.attach()}return Object.defineProperty(Z.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),Z.create=function(F){if(null==this.tagName)throw new ae.ParchmentError("Blot definition missing tagName");var N;return Array.isArray(this.tagName)?("string"==typeof F&&(F=F.toUpperCase(),parseInt(F).toString()===F&&(F=parseInt(F))),N="number"==typeof F?document.createElement(this.tagName[F-1]):this.tagName.indexOf(F)>-1?document.createElement(F):document.createElement(this.tagName[0])):N=document.createElement(this.tagName),this.className&&N.classList.add(this.className),N},Z.prototype.attach=function(){this.domNode[ae.DATA_KEY]={blot:this}},Z.prototype.clone=function(){var F=this.domNode.cloneNode();return ae.create(F)},Z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[ae.DATA_KEY]},Z.prototype.deleteAt=function(F,N){this.isolate(F,N).remove()},Z.prototype.formatAt=function(F,N,O,S){var I=this.isolate(F,N);if(null!=ae.query(O,ae.Scope.BLOT)&&S)I.wrap(O,S);else if(null!=ae.query(O,ae.Scope.ATTRIBUTE)){var v=ae.create(this.statics.scope);I.wrap(v),v.format(O,S)}},Z.prototype.insertAt=function(F,N,O){var S=null==O?ae.create("text",N):ae.create(N,O),I=this.split(F);this.parent.insertBefore(S,I)},Z.prototype.insertInto=function(F,N){if(null!=this.parent&&this.parent.children.remove(this),F.children.insertBefore(this,N),null!=N)var O=N.domNode;(null==this.next||this.domNode.nextSibling!=O)&&F.domNode.insertBefore(this.domNode,typeof O<"u"?O:null),this.parent=F},Z.prototype.isolate=function(F,N){var O=this.split(F);return O.split(N),O},Z.prototype.length=function(){return 1},Z.prototype.offset=function(F){return void 0===F&&(F=this.parent),null==this.parent||this==F?0:this.parent.children.offset(this)+this.parent.offset(F)},Z.prototype.optimize=function(){null!=this.domNode[ae.DATA_KEY]&&delete this.domNode[ae.DATA_KEY].mutations},Z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},Z.prototype.replace=function(F){null!=F.parent&&(F.parent.insertBefore(this,F.next),F.remove())},Z.prototype.replaceWith=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return O.replace(this),O},Z.prototype.split=function(F,N){return 0===F?this:this.next},Z.prototype.update=function(F){void 0===F&&(F=[])},Z.prototype.wrap=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return null!=this.parent&&this.parent.insertBefore(O,this.next),O.appendChild(this),O},Z}();H.blotName="abstract",Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z){"use strict";var L=this&&this.__extends||function(C,k){for(var y in k)k.hasOwnProperty(y)&&(C[y]=k[y]);function D(){this.constructor=C}C.prototype=null===k?Object.create(k):(D.prototype=k.prototype,new D)},ae=function(C){function k(y){var D;return(D=C.call(this,y="[Parchment] "+y)||this).message=y,D.name=D.constructor.name,D}return L(k,C),k}(Error);z.ParchmentError=ae;var O,C,H={},Z={},F={},N={};function v(C,k){var y;if(void 0===k&&(k=O.ANY),"string"==typeof C)y=N[C]||H[C];else if(C instanceof Text)y=N.text;else if("number"==typeof C)C&O.LEVEL&O.BLOCK?y=N.block:C&O.LEVEL&O.INLINE&&(y=N.inline);else if(C instanceof HTMLElement){var D=(C.getAttribute("class")||"").split(/\s+/);for(var w in D)if(y=Z[D[w]])break;y=y||F[C.tagName]}return null==y?null:k&O.LEVEL&y.scope&&k&O.TYPE&y.scope?y:null}z.DATA_KEY="__blot",(C=O=z.Scope||(z.Scope={}))[C.TYPE=3]="TYPE",C[C.LEVEL=12]="LEVEL",C[C.ATTRIBUTE=13]="ATTRIBUTE",C[C.BLOT=14]="BLOT",C[C.INLINE=7]="INLINE",C[C.BLOCK=11]="BLOCK",C[C.BLOCK_BLOT=10]="BLOCK_BLOT",C[C.INLINE_BLOT=6]="INLINE_BLOT",C[C.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",C[C.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",C[C.ANY=15]="ANY",z.create=function S(C,k){var y=v(C);if(null==y)throw new ae("Unable to create "+C+" blot");var D=y,w=C instanceof Node?C:D.create(k);return new D(w,k)},z.find=function I(C,k){return void 0===k&&(k=!1),null==C?null:null!=C[z.DATA_KEY]?C[z.DATA_KEY].blot:k?I(C.parentNode,k):null},z.query=v,z.register=function T(){for(var C=[],k=0;k1)return C.map(function(w){return T(w)});var y=C[0];if("string"!=typeof y.blotName&&"string"!=typeof y.attrName)throw new ae("Invalid definition");if("abstract"===y.blotName)throw new ae("Cannot register abstract class");return N[y.blotName||y.attrName]=y,"string"==typeof y.keyName?H[y.keyName]=y:(null!=y.className&&(Z[y.className]=y),null!=y.tagName&&(y.tagName=Array.isArray(y.tagName)?y.tagName.map(function(w){return w.toUpperCase()}):y.tagName.toUpperCase(),(Array.isArray(y.tagName)?y.tagName:[y.tagName]).forEach(function(w){(null==F[w]||null==y.className)&&(F[w]=y)}))),y}},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(8),Z=L(9),F=L(3),N=L(6),O=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.formats=function(v){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?v.tagName.toLowerCase():void 0)},I.prototype.attach=function(){S.prototype.attach.call(this),this.attributes=new Z.default(this.domNode)},I.prototype.format=function(v,T){var C=N.query(v);C instanceof H.default?this.attributes.attribute(C,T):T&&null!=C&&(v!==this.statics.blotName||this.formats()[v]!==T)&&this.replaceWith(v,T)},I.prototype.formats=function(){var v=this.attributes.values(),T=this.statics.formats(this.domNode);return null!=T&&(v[this.statics.blotName]=T),v},I.prototype.replaceWith=function(v,T){var C=S.prototype.replaceWith.call(this,v,T);return this.attributes.copy(C),C},I.prototype.update=function(v){var T=this;S.prototype.update.call(this,v),v.some(function(C){return C.target===T.domNode&&"attributes"===C.type})&&this.attributes.build()},I.prototype.wrap=function(v,T){var C=S.prototype.wrap.call(this,v,T);return C instanceof I&&C.statics.scope===this.statics.scope&&this.attributes.move(C),C},I}(F.default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F,N,O){void 0===O&&(O={}),this.attrName=F,this.keyName=N,this.scope=null!=O.scope?O.scope&ae.Scope.LEVEL|ae.Scope.TYPE&ae.Scope.ATTRIBUTE:ae.Scope.ATTRIBUTE,null!=O.whitelist&&(this.whitelist=O.whitelist)}return Z.keys=function(F){return[].map.call(F.attributes,function(N){return N.name})},Z.prototype.add=function(F,N){return!!this.canAdd(F,N)&&(F.setAttribute(this.keyName,N),!0)},Z.prototype.canAdd=function(F,N){return null!=ae.query(F,ae.Scope.BLOT&(this.scope|ae.Scope.TYPE))&&(null==this.whitelist||this.whitelist.indexOf(N)>-1)},Z.prototype.remove=function(F){F.removeAttribute(this.keyName)},Z.prototype.value=function(F){var N=F.getAttribute(this.keyName);return this.canAdd(F,N)?N:""},Z}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z,L){"use strict";var ae=L(8),H=L(10),Z=L(11),F=L(6),N=function(){function O(S){this.attributes={},this.domNode=S,this.build()}return O.prototype.attribute=function(S,I){I?S.add(this.domNode,I)&&(null!=S.value(this.domNode)?this.attributes[S.attrName]=S:delete this.attributes[S.attrName]):(S.remove(this.domNode),delete this.attributes[S.attrName])},O.prototype.build=function(){var S=this;this.attributes={};var I=ae.default.keys(this.domNode),v=H.default.keys(this.domNode),T=Z.default.keys(this.domNode);I.concat(v).concat(T).forEach(function(C){var k=F.query(C,F.Scope.ATTRIBUTE);k instanceof ae.default&&(S.attributes[k.attrName]=k)})},O.prototype.copy=function(S){var I=this;Object.keys(this.attributes).forEach(function(v){var T=I.attributes[v].value(I.domNode);S.format(v,T)})},O.prototype.move=function(S){var I=this;this.copy(S),Object.keys(this.attributes).forEach(function(v){I.attributes[v].remove(I.domNode)}),this.attributes={}},O.prototype.values=function(){var S=this;return Object.keys(this.attributes).reduce(function(I,v){return I[v]=S.attributes[v].value(S.domNode),I},{})},O}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N,O){return(N.getAttribute("class")||"").split(/\s+/).filter(function(I){return 0===I.indexOf(O+"-")})}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("class")||"").split(/\s+/).map(function(I){return I.split("-").slice(0,-1).join("-")})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(this.remove(S),S.classList.add(this.keyName+"-"+I),!0)},O.prototype.remove=function(S){Z(S,this.keyName).forEach(function(v){S.classList.remove(v)}),0===S.classList.length&&S.removeAttribute("class")},O.prototype.value=function(S){var v=(Z(S,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(S,v)?v:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N){var O=N.split("-"),S=O.slice(1).map(function(I){return I[0].toUpperCase()+I.slice(1)}).join("");return O[0]+S}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("style")||"").split(";").map(function(I){return I.split(":")[0].trim()})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(S.style[Z(this.keyName)]=I,!0)},O.prototype.remove=function(S){S.style[Z(this.keyName)]="",S.getAttribute("style")||S.removeAttribute("style")},O.prototype.value=function(S){var I=S.style[Z(this.keyName)];return this.canAdd(S,I)?I:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(5),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.value=function(S){return!0},O.prototype.index=function(S,I){return S!==this.domNode?-1:Math.min(I,1)},O.prototype.position=function(S,I){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return S>0&&(v+=1),[this.parent.domNode,v]},O.prototype.value=function(){return(S={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,S;var S},O}(H.default);F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(3),Z=L(6),F={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},O=function(S){function I(v){var T=S.call(this,v)||this;return T.parent=null,T.observer=new MutationObserver(function(C){T.update(C)}),T.observer.observe(T.domNode,F),T}return ae(I,S),I.prototype.detach=function(){S.prototype.detach.call(this),this.observer.disconnect()},I.prototype.deleteAt=function(v,T){this.update(),0===v&&T===this.length()?this.children.forEach(function(C){C.remove()}):S.prototype.deleteAt.call(this,v,T)},I.prototype.formatAt=function(v,T,C,k){this.update(),S.prototype.formatAt.call(this,v,T,C,k)},I.prototype.insertAt=function(v,T,C){this.update(),S.prototype.insertAt.call(this,v,T,C)},I.prototype.optimize=function(v){var T=this;void 0===v&&(v=[]),S.prototype.optimize.call(this);for(var C=[].slice.call(this.observer.takeRecords());C.length>0;)v.push(C.pop());for(var k=function(M,$){void 0===$&&($=!0),null!=M&&M!==T&&null!=M.domNode.parentNode&&(null==M.domNode[Z.DATA_KEY].mutations&&(M.domNode[Z.DATA_KEY].mutations=[]),$&&k(M.parent))},y=function(M){null==M.domNode[Z.DATA_KEY]||null==M.domNode[Z.DATA_KEY].mutations||(M instanceof H.default&&M.children.forEach(y),M.optimize())},D=v,w=0;D.length>0;w+=1){if(w>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(D.forEach(function(M){var $=Z.find(M.target,!0);null!=$&&($.domNode===M.target&&("childList"===M.type?(k(Z.find(M.previousSibling,!1)),[].forEach.call(M.addedNodes,function(ee){var B=Z.find(ee,!1);k(B,!1),B instanceof H.default&&B.children.forEach(function(ne){k(ne,!1)})})):"attributes"===M.type&&k($.prev)),k($))}),this.children.forEach(y),C=(D=[].slice.call(this.observer.takeRecords())).slice();C.length>0;)v.push(C.pop())}},I.prototype.update=function(v){var T=this;(v=v||this.observer.takeRecords()).map(function(C){var k=Z.find(C.target,!0);if(null!=k)return null==k.domNode[Z.DATA_KEY].mutations?(k.domNode[Z.DATA_KEY].mutations=[C],k):(k.domNode[Z.DATA_KEY].mutations.push(C),null)}).forEach(function(C){null==C||C===T||null==C.domNode[Z.DATA_KEY]||C.update(C.domNode[Z.DATA_KEY].mutations||[])}),null!=this.domNode[Z.DATA_KEY].mutations&&S.prototype.update.call(this,this.domNode[Z.DATA_KEY].mutations),this.optimize(v)},I}(H.default);O.blotName="scroll",O.defaultChild="block",O.scope=Z.Scope.BLOCK_BLOT,O.tagName="DIV",Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(O,S){for(var I in S)S.hasOwnProperty(I)&&(O[I]=S[I]);function v(){this.constructor=O}O.prototype=null===S?Object.create(S):(v.prototype=S.prototype,new v)},H=L(7),Z=L(6);var N=function(O){function S(){return O.apply(this,arguments)||this}return ae(S,O),S.formats=function(I){if(I.tagName!==S.tagName)return O.formats.call(this,I)},S.prototype.format=function(I,v){var T=this;I!==this.statics.blotName||v?O.prototype.format.call(this,I,v):(this.children.forEach(function(C){C instanceof H.default||(C=C.wrap(S.blotName,!0)),T.attributes.copy(C)}),this.unwrap())},S.prototype.formatAt=function(I,v,T,C){null!=this.formats()[T]||Z.query(T,Z.Scope.ATTRIBUTE)?this.isolate(I,v).format(T,C):O.prototype.formatAt.call(this,I,v,T,C)},S.prototype.optimize=function(){O.prototype.optimize.call(this);var I=this.formats();if(0===Object.keys(I).length)return this.unwrap();var v=this.next;v instanceof S&&v.prev===this&&function F(O,S){if(Object.keys(O).length!==Object.keys(S).length)return!1;for(var I in O)if(O[I]!==S[I])return!1;return!0}(I,v.formats())&&(v.moveChildren(this),v.remove())},S}(H.default);N.blotName="inline",N.scope=Z.Scope.INLINE_BLOT,N.tagName="SPAN",Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(7),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.formats=function(S){var I=Z.query(O.blotName).tagName;if(S.tagName!==I)return N.formats.call(this,S)},O.prototype.format=function(S,I){null!=Z.query(S,Z.Scope.BLOCK)&&(S!==this.statics.blotName||I?N.prototype.format.call(this,S,I):this.replaceWith(O.blotName))},O.prototype.formatAt=function(S,I,v,T){null!=Z.query(v,Z.Scope.BLOCK)?this.format(v,T):N.prototype.formatAt.call(this,S,I,v,T)},O.prototype.insertAt=function(S,I,v){if(null==v||null!=Z.query(I,Z.Scope.INLINE))N.prototype.insertAt.call(this,S,I,v);else{var T=this.split(S),C=Z.create(I,v);T.parent.insertBefore(C,T)}},O}(H.default);F.blotName="block",F.scope=Z.Scope.BLOCK_BLOT,F.tagName="P",Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(F,N){for(var O in N)N.hasOwnProperty(O)&&(F[O]=N[O]);function S(){this.constructor=F}F.prototype=null===N?Object.create(N):(S.prototype=N.prototype,new S)},Z=function(F){function N(){return F.apply(this,arguments)||this}return ae(N,F),N.formats=function(O){},N.prototype.format=function(O,S){F.prototype.formatAt.call(this,0,this.length(),O,S)},N.prototype.formatAt=function(O,S,I,v){0===O&&S===this.length()?this.format(I,v):F.prototype.formatAt.call(this,O,S,I,v)},N.prototype.formats=function(){return this.statics.formats(this.domNode)},N}(L(12).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=Z},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(12),Z=L(6),F=function(N){function O(S){var I=N.call(this,S)||this;return I.text=I.statics.value(I.domNode),I}return ae(O,N),O.create=function(S){return document.createTextNode(S)},O.value=function(S){return S.data},O.prototype.deleteAt=function(S,I){this.domNode.data=this.text=this.text.slice(0,S)+this.text.slice(S+I)},O.prototype.index=function(S,I){return this.domNode===S?I:-1},O.prototype.insertAt=function(S,I,v){null==v?(this.text=this.text.slice(0,S)+I+this.text.slice(S),this.domNode.data=this.text):N.prototype.insertAt.call(this,S,I,v)},O.prototype.length=function(){return this.text.length},O.prototype.optimize=function(){N.prototype.optimize.call(this),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof O&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},O.prototype.position=function(S,I){return void 0===I&&(I=!1),[this.domNode,S]},O.prototype.split=function(S,I){if(void 0===I&&(I=!1),!I){if(0===S)return this;if(S===this.length())return this.next}var v=Z.create(this.domNode.splitText(S));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},O.prototype.update=function(S){var I=this;S.some(function(v){return"characterData"===v.type&&v.target===I.domNode})&&(this.text=this.statics.value(this.domNode))},O.prototype.value=function(){return this.text},O}(H.default);F.blotName="text",F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.overload=z.expandConfig=void 0;var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},H=function(ce,ie){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return function de(ce,ie){var J=[],oe=!0,Ie=!1,re=void 0;try{for(var Be,ye=ce[Symbol.iterator]();!(oe=(Be=ye.next()).done)&&(J.push(Be.value),!ie||J.length!==ie);oe=!0);}catch(Me){Ie=!0,re=Me}finally{try{!oe&&ye.return&&ye.return()}finally{if(Ie)throw re}}return J}(ce,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function de(ce,ie){for(var J=0;J1&&void 0!==arguments[1]?arguments[1]:{};if(function se(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,de),this.options=ue(ce,J),this.container=this.options.container,this.scrollingContainer=this.options.scrollingContainer||document.body,null==this.container)return X.error("Invalid Quill container",ce);this.options.debug&&de.debug(this.options.debug);var oe=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new v.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new S.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(re){re===v.default.events.TEXT_CHANGE&&ie.root.classList.toggle("ql-blank",ie.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(re,ye){var Be=ie.selection.lastRange,Me=Be&&0===Be.length?Be.index:void 0;pe.call(ie,function(){return ie.editor.update(null,ye,Me)},re)});var Ie=this.clipboard.convert("
"+oe+"


");this.setContents(Ie),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return Z(de,null,[{key:"debug",value:function(ie){!0===ie&&(ie="log"),B.default.level(ie)}},{key:"import",value:function(ie){return null==this.imports[ie]&&X.error("Cannot import "+ie+". Are you sure it was registered?"),this.imports[ie]}},{key:"register",value:function(ie,J){var oe=this,Ie=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof ie){var re=ie.attrName||ie.blotName;"string"==typeof re?this.register("formats/"+re,ie,J):Object.keys(ie).forEach(function(ye){oe.register(ye,ie[ye],J)})}else null!=this.imports[ie]&&!Ie&&X.warn("Overwriting "+ie+" with",J),this.imports[ie]=J,(ie.startsWith("blots/")||ie.startsWith("formats/"))&&"abstract"!==J.blotName&&y.default.register(J)}}]),Z(de,[{key:"addContainer",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof ie){var oe=ie;(ie=document.createElement("div")).classList.add(oe)}return this.container.insertBefore(ie,J),ie}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return pe.call(this,function(){return Ie.editor.deleteText(ie,J)},oe=ye[3],ie=ye[0],-1*(J=ye[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ie=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(ie),this.container.classList.toggle("ql-disabled",!ie),ie||this.blur()}},{key:"focus",value:function(){var ie=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ie,this.selection.scrollIntoView()}},{key:"format",value:function(ie,J){var oe=this;return pe.call(this,function(){var re=oe.getSelection(!0),ye=new N.default;if(null==re)return ye;if(y.default.query(ie,y.default.Scope.BLOCK))ye=oe.editor.formatLine(re.index,re.length,R({},ie,J));else{if(0===re.length)return oe.selection.format(ie,J),ye;ye=oe.editor.formatText(re.index,re.length,R({},ie,J))}return oe.setSelection(re,v.default.sources.SILENT),ye},arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API)}},{key:"formatLine",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatLine(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"formatText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatText(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"getBounds",value:function(ie){return"number"==typeof ie?this.selection.getBounds(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(ie.index,ie.length)}},{key:"getContents",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getContents(ie=Ie[0],J=Ie[1])}},{key:"getFormat",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection();return"number"==typeof ie?this.editor.getFormat(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(ie.index,ie.length)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getModule",value:function(ie){return this.theme.modules[ie]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getText(ie=Ie[0],J=Ie[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ie,J,oe){var Ie=this;return pe.call(this,function(){return Ie.editor.insertEmbed(ie,J,oe)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:de.sources.API,ie)}},{key:"insertText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,0,oe,Ie,re),Ue=H(Me,4);return Be=Ue[2],pe.call(this,function(){return ye.editor.insertText(ie,J,Be)},re=Ue[3],ie=Ue[0],J.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(ie,J,oe){this.clipboard.dangerouslyPasteHTML(ie,J,oe)}},{key:"removeFormat",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return J=ye[1],pe.call(this,function(){return Ie.editor.removeFormat(ie,J)},oe=ye[3],ie=ye[0])}},{key:"setContents",value:function(ie){var J=this;return pe.call(this,function(){ie=new N.default(ie);var Ie=J.getLength(),re=J.editor.deleteText(0,Ie),ye=J.editor.applyDelta(ie),Be=ye.ops[ye.ops.length-1];return null!=Be&&"string"==typeof Be.insert&&"\n"===Be.insert[Be.insert.length-1]&&(J.editor.deleteText(J.getLength()-1,1),ye.delete(1)),re.compose(ye)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API)}},{key:"setSelection",value:function(ie,J,oe){if(null==ie)this.selection.setRange(null,J||de.sources.API);else{var Ie=_e(ie,J,oe),re=H(Ie,4);oe=re[3],this.selection.setRange(new D.Range(ie=re[0],J=re[1]),oe)}this.selection.scrollIntoView()}},{key:"setText",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API,oe=(new N.default).insert(ie);return this.setContents(oe,J)}},{key:"update",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,J=this.scroll.update(ie);return this.selection.update(ie),J}},{key:"updateContents",value:function(ie){var J=this,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API;return pe.call(this,function(){return ie=new N.default(ie),J.editor.applyDelta(ie,oe)},oe,!0)}}]),de}();function ue(de,ce){if((ce=(0,$.default)(!0,{container:de,modules:{clipboard:!0,keyboard:!0,history:!0}},ce)).theme&&ce.theme!==U.DEFAULTS.theme){if(ce.theme=U.import("themes/"+ce.theme),null==ce.theme)throw new Error("Invalid theme "+ce.theme+". Did you register it?")}else ce.theme=Y.default;var ie=(0,$.default)(!0,{},ce.theme.DEFAULTS);[ie,ce].forEach(function(Ie){Ie.modules=Ie.modules||{},Object.keys(Ie.modules).forEach(function(re){!0===Ie.modules[re]&&(Ie.modules[re]={})})});var oe=Object.keys(ie.modules).concat(Object.keys(ce.modules)).reduce(function(Ie,re){var ye=U.import("modules/"+re);return null==ye?X.error("Cannot load "+re+" module. Are you sure you registered it?"):Ie[re]=ye.DEFAULTS||{},Ie},{});return null!=ce.modules&&ce.modules.toolbar&&ce.modules.toolbar.constructor!==Object&&(ce.modules.toolbar={container:ce.modules.toolbar}),ce=(0,$.default)(!0,{},U.DEFAULTS,{modules:oe},ie,ce),["bounds","container","scrollingContainer"].forEach(function(Ie){"string"==typeof ce[Ie]&&(ce[Ie]=document.querySelector(ce[Ie]))}),ce.modules=Object.keys(ce.modules).reduce(function(Ie,re){return ce.modules[re]&&(Ie[re]=ce.modules[re]),Ie},{}),ce}function pe(de,ce,ie,J){if(this.options.strict&&!this.isEnabled()&&ce===v.default.sources.USER)return new N.default;var oe=null==ie?null:this.getSelection(),Ie=this.editor.delta,re=de();if(null!=oe&&ce===v.default.sources.USER&&(!0===ie&&(ie=oe.index),null==J?oe=he(oe,re,ce):0!==J&&(oe=he(oe,ie,J,ce)),this.setSelection(oe,v.default.sources.SILENT)),re.length()>0){var ye,Me,Be=[v.default.events.TEXT_CHANGE,re,Ie,ce];(ye=this.emitter).emit.apply(ye,[v.default.events.EDITOR_CHANGE].concat(Be)),ce!==v.default.sources.SILENT&&(Me=this.emitter).emit.apply(Me,Be)}return re}function _e(de,ce,ie,J,oe){var Ie={};return"number"==typeof de.index&&"number"==typeof de.length?"number"!=typeof ce?(oe=J,J=ie,ie=ce,ce=de.length,de=de.index):(ce=de.length,de=de.index):"number"!=typeof ce&&(oe=J,J=ie,ie=ce,ce=0),"object"===(typeof ie>"u"?"undefined":ae(ie))?(Ie=ie,oe=J):"string"==typeof ie&&(null!=J?Ie[ie]=J:oe=ie),[de,ce,Ie,oe=oe||v.default.sources.API]}function he(de,ce,ie,J){if(null==de)return null;var oe=void 0,Ie=void 0;if(ce instanceof N.default){var re=[de.index,de.index+de.length].map(function(Ue){return ce.transformPosition(Ue,J===v.default.sources.USER)}),ye=H(re,2);oe=ye[0],Ie=ye[1]}else{var Be=[de.index,de.index+de.length].map(function(Ue){return Ue=0?Ue+ie:Math.max(ce,Ue+ie)}),Me=H(Be,2);oe=Me[0],Ie=Me[1]}return new D.Range(oe,Ie-oe)}U.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},U.events=v.default.events,U.sources=v.default.sources,U.version="1.1.8",U.imports={delta:N.default,parchment:y.default,"core/module":C.default,"core/theme":Y.default},z.expandConfig=ue,z.overload=_e,z.default=U},function(xe,z){"use strict";var ae,L=document.createElement("div");L.classList.toggle("test-class",!1),L.classList.contains("test-class")&&(ae=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(H,Z){return arguments.length>1&&!this.contains(H)==!Z?Z:ae.call(this,H)}),String.prototype.startsWith||(String.prototype.startsWith=function(ae,H){return this.substr(H=H||0,ae.length)===ae}),String.prototype.endsWith||(String.prototype.endsWith=function(ae,H){var Z=this.toString();("number"!=typeof H||!isFinite(H)||Math.floor(H)!==H||H>Z.length)&&(H=Z.length);var F=Z.indexOf(ae,H-=ae.length);return-1!==F&&F===H}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(H){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof H)throw new TypeError("predicate must be a function");for(var O,Z=Object(this),F=Z.length>>>0,N=arguments[1],S=0;S0&&(v.attributes=I),this.push(v))},O.prototype.delete=function(S){return S<=0?this:this.push({delete:S})},O.prototype.retain=function(S,I){if(S<=0)return this;var v={retain:S};return null!=I&&"object"==typeof I&&Object.keys(I).length>0&&(v.attributes=I),this.push(v)},O.prototype.push=function(S){var I=this.ops.length,v=this.ops[I-1];if(S=Z(!0,{},S),"object"==typeof v){if("number"==typeof S.delete&&"number"==typeof v.delete)return this.ops[I-1]={delete:v.delete+S.delete},this;if("number"==typeof v.delete&&null!=S.insert&&"object"!=typeof(v=this.ops[(I-=1)-1]))return this.ops.unshift(S),this;if(H(S.attributes,v.attributes)){if("string"==typeof S.insert&&"string"==typeof v.insert)return this.ops[I-1]={insert:v.insert+S.insert},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this;if("number"==typeof S.retain&&"number"==typeof v.retain)return this.ops[I-1]={retain:v.retain+S.retain},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this}}return I===this.ops.length?this.ops.push(S):this.ops.splice(I,0,S),this},O.prototype.filter=function(S){return this.ops.filter(S)},O.prototype.forEach=function(S){this.ops.forEach(S)},O.prototype.map=function(S){return this.ops.map(S)},O.prototype.partition=function(S){var I=[],v=[];return this.forEach(function(T){(S(T)?I:v).push(T)}),[I,v]},O.prototype.reduce=function(S,I){return this.ops.reduce(S,I)},O.prototype.chop=function(){var S=this.ops[this.ops.length-1];return S&&S.retain&&!S.attributes&&this.ops.pop(),this},O.prototype.length=function(){return this.reduce(function(S,I){return S+F.length(I)},0)},O.prototype.slice=function(S,I){S=S||0,"number"!=typeof I&&(I=1/0);for(var v=[],T=F.iterator(this.ops),C=0;C0&&(I.push(S.ops[0]),I.ops=I.ops.concat(S.ops.slice(1))),I},O.prototype.diff=function(S,I){if(this.ops===S.ops)return new O;var v=[this,S].map(function(D){return D.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:N;var M=ops===S.ops?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")}),T=new O,C=ae(v[0],v[1],I),k=F.iterator(this.ops),y=F.iterator(S.ops);return C.forEach(function(D){for(var w=D[1].length;w>0;){var M=0;switch(D[0]){case ae.INSERT:M=Math.min(y.peekLength(),w),T.push(y.next(M));break;case ae.DELETE:M=Math.min(w,k.peekLength()),k.next(M),T.delete(M);break;case ae.EQUAL:M=Math.min(k.peekLength(),y.peekLength(),w);var $=k.next(M),ee=y.next(M);H($.insert,ee.insert)?T.retain(M,F.attributes.diff($.attributes,ee.attributes)):T.push(ee).delete(M)}w-=M}}),T.chop()},O.prototype.eachLine=function(S,I){I=I||"\n";for(var v=F.iterator(this.ops),T=new O;v.hasNext();){if("insert"!==v.peekType())return;var C=v.peek(),k=F.length(C)-v.peekLength(),y="string"==typeof C.insert?C.insert.indexOf(I,k)-k:-1;y<0?T.push(v.next()):y>0?T.push(v.next(y)):(S(T,v.next(1).attributes||{}),T=new O)}T.length()>0&&S(T,{})},O.prototype.transform=function(S,I){if(I=!!I,"number"==typeof S)return this.transformPosition(S,I);for(var v=F.iterator(this.ops),T=F.iterator(S.ops),C=new O;v.hasNext()||T.hasNext();)if("insert"!==v.peekType()||!I&&"insert"===T.peekType())if("insert"===T.peekType())C.push(T.next());else{var k=Math.min(v.peekLength(),T.peekLength()),y=v.next(k),D=T.next(k);if(y.delete)continue;D.delete?C.push(D):C.retain(k,F.attributes.transform(y.attributes,D.attributes,I))}else C.retain(F.length(v.next()));return C.chop()},O.prototype.transformPosition=function(S,I){I=!!I;for(var v=F.iterator(this.ops),T=0;v.hasNext()&&T<=S;){var C=v.peekLength(),k=v.peekType();v.next(),"delete"!==k?("insert"===k&&(TM.length?w:M,B=w.length>M.length?M:w,ne=ee.indexOf(B);if(-1!=ne)return $=[[ae,ee.substring(0,ne)],[H,B],[ae,ee.substring(ne+B.length)]],w.length>M.length&&($[0][0]=$[2][0]=L),$;if(1==B.length)return[[L,w],[ae,M]];var Y=function v(w,M){var $=w.length>M.length?w:M,ee=w.length>M.length?M:w;if($.length<4||2*ee.length<$.length)return null;function B(pe,_e,he){for(var J,oe,Ie,re,de=pe.substring(he,he+Math.floor(pe.length/4)),ce=-1,ie="";-1!=(ce=_e.indexOf(de,ce+1));){var ye=S(pe.substring(he),_e.substring(ce)),Be=I(pe.substring(0,he),_e.substring(0,ce));ie.length=pe.length?[J,oe,Ie,re,ie]:null}var Q,R,se,X,U,ne=B($,ee,Math.ceil($.length/4)),Y=B($,ee,Math.ceil($.length/2));return ne||Y?(Q=Y?ne&&ne[4].length>Y[4].length?ne:Y:ne,w.length>M.length?(R=Q[0],se=Q[1],X=Q[2],U=Q[3]):(X=Q[0],U=Q[1],R=Q[2],se=Q[3]),[R,se,X,U,Q[4]]):null}(w,M);if(Y){var R=Y[1],X=Y[3],U=Y[4],ue=Z(Y[0],Y[2]),pe=Z(R,X);return ue.concat([[H,U]],pe)}return function N(w,M){for(var $=w.length,ee=M.length,B=Math.ceil(($+ee)/2),ne=B,Y=2*B,Q=new Array(Y),R=new Array(Y),se=0;se$)pe+=2;else if(oe>ee)ue+=2;else if(U&&(Ie=ne+X-ce)>=0&&Ie=(re=$-R[Ie]))return O(w,M,J,oe)}for(var ye=-de+_e;ye<=de-he;ye+=2){for(var re,Ie=ne+ye,Be=(re=ye==-de||ye!=de&&R[Ie-1]$)he+=2;else if(Be>ee)_e+=2;else if(!U){var J;if((ie=ne+X-ye)>=0&&ie=(re=$-re)))return O(w,M,J,oe)}}}return[[L,w],[ae,M]]}(w,M)}(w=w.substring(0,w.length-ee),M=M.substring(0,M.length-ee));return B&&Y.unshift([H,B]),ne&&Y.push([H,ne]),T(Y),null!=$&&(Y=function y(w,M){var $=function k(w,M){if(0===M)return[H,w];for(var $=0,ee=0;ee0&&ee.splice(B+2,0,[Y[0],Q]),D(ee,B,3)}return w}(Y,$)),Y}function O(w,M,$,ee){var B=w.substring(0,$),ne=M.substring(0,ee),Y=w.substring($),Q=M.substring(ee),R=Z(B,ne),se=Z(Y,Q);return R.concat(se)}function S(w,M){if(!w||!M||w.charAt(0)!=M.charAt(0))return 0;for(var $=0,ee=Math.min(w.length,M.length),B=ee,ne=0;$1?(0!==$&&0!==ee&&(0!==(Y=S(ne,B))&&(M-$-ee>0&&w[M-$-ee-1][0]==H?w[M-$-ee-1][1]+=ne.substring(0,Y):(w.splice(0,0,[H,ne.substring(0,Y)]),M++),ne=ne.substring(Y),B=B.substring(Y)),0!==(Y=I(ne,B))&&(w[M][1]=ne.substring(ne.length-Y)+w[M][1],ne=ne.substring(0,ne.length-Y),B=B.substring(0,B.length-Y))),0===$?w.splice(M-ee,$+ee,[ae,ne]):0===ee?w.splice(M-$,$+ee,[L,B]):w.splice(M-$-ee,$+ee,[L,B],[ae,ne]),M=M-$-ee+($?1:0)+(ee?1:0)+1):0!==M&&w[M-1][0]==H?(w[M-1][1]+=w[M][1],w.splice(M,1)):M++,ee=0,$=0,B="",ne=""}""===w[w.length-1][1]&&w.pop();var Q=!1;for(M=1;M=0&&ee>=M-1;ee--)if(ee+1=0;C--)if(y[C]!=D[C])return!1;for(C=y.length-1;C>=0;C--)if(!F(I[k=y[C]],v[k],T))return!1;return typeof I==typeof v}(I,v,T))};function N(I){return null==I}function O(I){return!(!I||"object"!=typeof I||"number"!=typeof I.length||"function"!=typeof I.copy||"function"!=typeof I.slice||I.length>0&&"number"!=typeof I[0])}},function(xe,z){function L(ae){var H=[];for(var Z in ae)H.push(Z);return H}(xe.exports="function"==typeof Object.keys?Object.keys:L).shim=L},function(xe,z){var L="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function ae(Z){return"[object Arguments]"==Object.prototype.toString.call(Z)}function H(Z){return Z&&"object"==typeof Z&&"number"==typeof Z.length&&Object.prototype.hasOwnProperty.call(Z,"callee")&&!Object.prototype.propertyIsEnumerable.call(Z,"callee")||!1}(z=xe.exports=L?ae:H).supported=ae,z.unsupported=H},function(xe,z){"use strict";var L=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,H=function(N){return"function"==typeof Array.isArray?Array.isArray(N):"[object Array]"===ae.call(N)},Z=function(N){if(!N||"[object Object]"!==ae.call(N))return!1;var I,O=L.call(N,"constructor"),S=N.constructor&&N.constructor.prototype&&L.call(N.constructor.prototype,"isPrototypeOf");if(N.constructor&&!O&&!S)return!1;for(I in N);return typeof I>"u"||L.call(N,I)};xe.exports=function F(){var N,O,S,I,v,T,C=arguments[0],k=1,y=arguments.length,D=!1;for("boolean"==typeof C?(D=C,C=arguments[1]||{},k=2):("object"!=typeof C&&"function"!=typeof C||null==C)&&(C={});k0?I:void 0},diff:function(N,O){"object"!=typeof N&&(N={}),"object"!=typeof O&&(O={});var S=Object.keys(N).concat(Object.keys(O)).reduce(function(I,v){return ae(N[v],O[v])||(I[v]=void 0===O[v]?null:O[v]),I},{});return Object.keys(S).length>0?S:void 0},transform:function(N,O,S){if("object"!=typeof N)return O;if("object"==typeof O){if(!S)return O;var I=Object.keys(O).reduce(function(v,T){return void 0===N[T]&&(v[T]=O[T]),v},{});return Object.keys(I).length>0?I:void 0}}},iterator:function(N){return new F(N)},length:function(N){return"number"==typeof N.delete?N.delete:"number"==typeof N.retain?N.retain:"string"==typeof N.insert?N.insert.length:1}};function F(N){this.ops=N,this.index=0,this.offset=0}F.prototype.hasNext=function(){return this.peekLength()<1/0},F.prototype.next=function(N){N||(N=1/0);var O=this.ops[this.index];if(O){var S=this.offset,I=Z.length(O);if(N>=I-S?(N=I-S,this.index+=1,this.offset=0):this.offset+=N,"number"==typeof O.delete)return{delete:N};var v={};return O.attributes&&(v.attributes=O.attributes),"number"==typeof O.retain?v.retain=N:v.insert="string"==typeof O.insert?O.insert.substr(S,N):O.insert,v}return{retain:1/0}},F.prototype.peek=function(){return this.ops[this.index]},F.prototype.peekLength=function(){return this.ops[this.index]?Z.length(this.ops[this.index])-this.offset:1/0},F.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},xe.exports=Z},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pe){return typeof pe}:function(pe){return pe&&"function"==typeof Symbol&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},H=function(_e,he){if(Array.isArray(_e))return _e;if(Symbol.iterator in Object(_e))return function pe(_e,he){var de=[],ce=!0,ie=!1,J=void 0;try{for(var Ie,oe=_e[Symbol.iterator]();!(ce=(Ie=oe.next()).done)&&(de.push(Ie.value),!he||de.length!==he);ce=!0);}catch(re){ie=!0,J=re}finally{try{!ce&&oe.return&&oe.return()}finally{if(ie)throw J}}return de}(_e,he);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function pe(_e,he){for(var de=0;de=ie&&!ye.endsWith("\n")&&(ce=!0),de.scroll.insertAt(J,ye);var Be=de.scroll.line(J),Me=H(Be,2),Ue=Me[0],Bn=Me[1],at=(0,Y.default)({},(0,D.bubbleFormats)(Ue));if(Ue instanceof w.default){var Fe=Ue.descendant(v.default.Leaf,Bn),Re=H(Fe,1);at=(0,Y.default)(at,(0,D.bubbleFormats)(Re[0]))}re=S.default.attributes.diff(at,re)||{}}else if("object"===ae(oe.insert)){var rt=Object.keys(oe.insert)[0];if(null==rt)return J;de.scroll.insertAt(J,rt,oe.insert[rt])}ie+=Ie}return Object.keys(re).forEach(function(ot){de.scroll.formatAt(J,Ie,ot,re[ot])}),J+Ie},0),he.reduce(function(J,oe){return"number"==typeof oe.delete?(de.scroll.deleteAt(J,oe.delete),J):J+(oe.retain||oe.insert.length||1)},0),this.scroll.batch=!1,this.scroll.optimize(),this.update(he)}},{key:"deleteText",value:function(he,de){return this.scroll.deleteAt(he,de),this.update((new N.default).retain(he).delete(de))}},{key:"formatLine",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(ie).forEach(function(J){var oe=ce.scroll.lines(he,Math.max(de,1)),Ie=de;oe.forEach(function(re){var ye=re.length();if(re instanceof C.default){var Be=he-re.offset(ce.scroll),Me=re.newlineIndex(Be+Ie)-Be+1;re.formatAt(Be,Me,J,ie[J])}else re.format(J,ie[J]);Ie-=ye})}),this.scroll.optimize(),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"formatText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de,J,ie[J])}),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"getContents",value:function(he,de){return this.delta.slice(he,he+de)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(he,de){return he.concat(de.delta())},new N.default)}},{key:"getFormat",value:function(he){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ce=[],ie=[];0===de?this.scroll.path(he).forEach(function(oe){var re=H(oe,1)[0];re instanceof w.default?ce.push(re):re instanceof v.default.Leaf&&ie.push(re)}):(ce=this.scroll.lines(he,de),ie=this.scroll.descendants(v.default.Leaf,he,de));var J=[ce,ie].map(function(oe){if(0===oe.length)return{};for(var Ie=(0,D.bubbleFormats)(oe.shift());Object.keys(Ie).length>0;){var re=oe.shift();if(null==re)return Ie;Ie=U((0,D.bubbleFormats)(re),Ie)}return Ie});return Y.default.apply(Y.default,J)}},{key:"getText",value:function(he,de){return this.getContents(he,de).filter(function(ce){return"string"==typeof ce.insert}).map(function(ce){return ce.insert}).join("")}},{key:"insertEmbed",value:function(he,de,ce){return this.scroll.insertAt(he,de,ce),this.update((new N.default).retain(he).insert(function R(pe,_e,he){return _e in pe?Object.defineProperty(pe,_e,{value:he,enumerable:!0,configurable:!0,writable:!0}):pe[_e]=he,pe}({},de,ce)))}},{key:"insertText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return de=de.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(he,de),Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de.length,J,ie[J])}),this.update((new N.default).retain(he).insert(de,(0,$.default)(ie)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var he=this.scroll.children.head;return he.length()<=1&&0==Object.keys(he.formats()).length}},{key:"removeFormat",value:function(he,de){var ce=this.getText(he,de),ie=this.scroll.line(he+de),J=H(ie,2),oe=J[0],Ie=J[1],re=0,ye=new N.default;null!=oe&&(re=oe instanceof C.default?oe.newlineIndex(Ie)-Ie+1:oe.length()-Ie,ye=oe.delta().slice(Ie,Ie+re-1).insert("\n"));var Me=this.getContents(he,de+re).diff((new N.default).insert(ce).concat(ye)),Ue=(new N.default).retain(he).concat(Me);return this.applyDelta(Ue)}},{key:"update",value:function(he){var oe,Ie,re,ye,Be,Me,ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,J=this.delta;return 1===ce.length&&"characterData"===ce[0].type&&v.default.find(ce[0].target)?(oe=v.default.find(ce[0].target),Ie=(0,D.bubbleFormats)(oe),re=oe.offset(this.scroll),ye=ce[0].oldValue.replace(y.default.CONTENTS,""),Be=(new N.default).insert(ye),Me=(new N.default).insert(oe.value()),he=(new N.default).retain(re).concat(Be.diff(Me,ie)).reduce(function(Bn,at){return at.insert?Bn.insert(at.insert,Ie):Bn.push(at)},new N.default),this.delta=J.compose(he)):(this.delta=this.getDelta(),(!he||!(0,B.default)(J.compose(he),this.delta))&&(he=J.diff(this.delta,ie))),he}}]),pe}();function U(pe,_e){return Object.keys(_e).reduce(function(he,de){return null==pe[de]||(_e[de]===pe[de]?he[de]=_e[de]:Array.isArray(_e[de])?_e[de].indexOf(pe[de])<0&&(he[de]=_e[de].concat([pe[de]])):he[de]=[_e[de],pe[de]]),he},{})}z.default=X},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Code=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R=R+se)){var pe=this.newlineIndex(R,!0)+1,_e=ue-pe+1,he=this.isolate(pe,_e),de=he.next;he.format(X,U),de instanceof Y&&de.formatAt(0,R-pe+se-_e,X,U)}}}},{key:"insertAt",value:function(R,se,X){if(null==X){var U=this.descendant(y.default,R),ue=ae(U,2);ue[0].insertAt(ue[1],se)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?R:R+1}},{key:"newlineIndex",value:function(R){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,R).lastIndexOf("\n");var X=this.domNode.textContent.slice(R).indexOf("\n");return X>-1?R+X:-1}},{key:"optimize",value:function(){this.domNode.textContent.endsWith("\n")||this.appendChild(S.default.create("text","\n")),Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"optimize",this).call(this);var R=this.next;null!=R&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(),R.moveChildren(this),R.remove())}},{key:"replace",value:function(R){Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(se){var X=S.default.find(se);null==X?se.parentNode.removeChild(se):X instanceof S.default.Embed?X.remove():X.unwrap()})}}],[{key:"create",value:function(R){var se=Z(Y.__proto__||Object.getPrototypeOf(Y),"create",this).call(this,R);return se.setAttribute("spellcheck",!1),se}},{key:"formats",value:function(){return!0}}]),Y}(v.default);B.blotName="code-block",B.tagName="PRE",B.TAB=" ",z.Code=ee,z.default=B},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BlockEmbed=z.bubbleFormats=void 0;var ae=function(){function X(U,ue){for(var pe=0;pe0&&(pe1&&void 0!==arguments[1]&&arguments[1];if(_e&&(0===pe||pe>=this.length()-1)){var he=this.clone();return 0===pe?(this.parent.insertBefore(he,this),this):(this.parent.insertBefore(he,this.next),he)}var de=H(U.prototype.__proto__||Object.getPrototypeOf(U.prototype),"split",this).call(this,pe,_e);return this.cache={},de}}]),U}(I.default.Block);function se(X){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==X||("function"==typeof X.formats&&(U=(0,F.default)(U,X.formats())),null==X.parent||"scroll"==X.parent.blotName||X.parent.statics.scope!==X.statics.scope)?U:se(X.parent,U)}R.blotName="block",R.tagName="P",R.defaultChild="break",R.allowedChildren=[D.default,k.default,M.default],z.bubbleFormats=se,z.BlockEmbed=Q,z.default=R},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y0){var $=this.parent.isolate(this.offset(),this.length());this.moveChildren($),$.wrap(this)}}}],[{key:"compare",value:function($,ee){var B=w.order.indexOf($),ne=w.order.indexOf(ee);return B>=0||ne>=0?B-ne:$===ee?0:$1?N-1:0),S=1;S"u"&&(C=!0),typeof k>"u"&&(k=1/0),function ee(B,ne){if(null===B)return null;if(0===ne)return B;var Y,Q;if("object"!=typeof B)return B;if(B instanceof ae)Y=new ae;else if(B instanceof H)Y=new H;else if(B instanceof Z)Y=new Z(function(re,ye){B.then(function(Be){re(ee(Be,ne-1))},function(Be){ye(ee(Be,ne-1))})});else if(F.__isArray(B))Y=[];else if(F.__isRegExp(B))Y=new RegExp(B.source,v(B)),B.lastIndex&&(Y.lastIndex=B.lastIndex);else if(F.__isDate(B))Y=new Date(B.getTime());else{if($&&Buffer.isBuffer(B))return Y=new Buffer(B.length),B.copy(Y),Y;B instanceof Error?Y=Object.create(B):typeof y>"u"?(Q=Object.getPrototypeOf(B),Y=Object.create(Q)):(Y=Object.create(y),Q=y)}if(C){var R=w.indexOf(B);if(-1!=R)return M[R];w.push(B),M.push(Y)}if(B instanceof ae)for(var se=B.keys();!(X=se.next()).done;){var U=ee(X.value,ne-1),ue=ee(B.get(X.value),ne-1);Y.set(U,ue)}if(B instanceof H)for(var pe=B.keys();;){var X;if((X=pe.next()).done)break;var _e=ee(X.value,ne-1);Y.add(_e)}for(var he in B){var de;Q&&(de=Object.getOwnPropertyDescriptor(Q,he)),(!de||null!=de.set)&&(Y[he]=ee(B[he],ne-1))}if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(B);for(he=0;he1&&void 0!==arguments[1]?arguments[1]:{};(function L(H,Z){if(!(H instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,H),this.quill=Z,this.options=F};ae.DEFAULTS={},z.default=ae},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Range=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R1&&void 0!==arguments[1]?arguments[1]:0;w(this,ne),this.index=Y,this.length=Q},ee=function(){function ne(Y,Q){var R=this;w(this,ne),this.emitter=Q,this.scroll=Y,this.composing=!1,this.root=this.scroll.domNode,this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){R.composing=!1}),this.cursor=F.default.create("cursor",this),this.lastRange=this.savedRange=new $(0,0),["keyup","mouseup","mouseleave","touchend","touchleave","focus","blur"].forEach(function(se){R.root.addEventListener(se,function(){setTimeout(R.update.bind(R,T.default.sources.USER),100)})}),this.emitter.on(T.default.events.EDITOR_CHANGE,function(se,X){se===T.default.events.TEXT_CHANGE&&X.length()>0&&R.update(T.default.sources.SILENT)}),this.emitter.on(T.default.events.SCROLL_BEFORE_UPDATE,function(){var se=R.getNativeRange();null!=se&&se.start.node!==R.cursor.textNode&&R.emitter.once(T.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(se.start.node,se.start.offset,se.end.node,se.end.offset)}catch{}})}),this.update(T.default.sources.SILENT)}return H(ne,[{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Q,R){if(null==this.scroll.whitelist||this.scroll.whitelist[Q]){this.scroll.update();var se=this.getNativeRange();if(null!=se&&se.native.collapsed&&!F.default.query(Q,F.default.Scope.BLOCK)){if(se.start.node!==this.cursor.textNode){var X=F.default.find(se.start.node,!1);if(null==X)return;if(X instanceof F.default.Leaf){var U=X.split(se.start.offset);X.parent.insertBefore(this.cursor,U)}else X.insertBefore(this.cursor,se.start.node);this.cursor.attach()}this.cursor.format(Q,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Q){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,se=this.scroll.length();Q=Math.min(Q,se-1),R=Math.min(Q+R,se-1)-Q;var X=void 0,U=void 0,ue=this.scroll.leaf(Q),pe=ae(ue,2),_e=pe[0],he=pe[1];if(null==_e)return null;var de=_e.position(he,!0),ce=ae(de,2);U=ce[0],he=ce[1];var ie=document.createRange();if(R>0){ie.setStart(U,he);var J=this.scroll.leaf(Q+R),oe=ae(J,2);if(null==(_e=oe[0]))return null;var Ie=_e.position(he=oe[1],!0),re=ae(Ie,2);ie.setEnd(U=re[0],he=re[1]),X=ie.getBoundingClientRect()}else{var ye="left",Be=void 0;U instanceof Text?(he0&&(ye="right")),X={height:Be.height,left:Be[ye],width:0,top:Be.top}}var Me=this.root.parentNode.getBoundingClientRect();return{left:X.left-Me.left,right:X.left+X.width-Me.left,top:X.top-Me.top,bottom:X.top+X.height-Me.top,height:X.height,width:X.width}}},{key:"getNativeRange",value:function(){var Q=document.getSelection();if(null==Q||Q.rangeCount<=0)return null;var R=Q.getRangeAt(0);if(null==R||!B(this.root,R.startContainer)||!R.collapsed&&!B(this.root,R.endContainer))return null;var se={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[se.start,se.end].forEach(function(X){for(var U=X.node,ue=X.offset;!(U instanceof Text)&&U.childNodes.length>0;)if(U.childNodes.length>ue)U=U.childNodes[ue],ue=0;else{if(U.childNodes.length!==ue)break;ue=(U=U.lastChild)instanceof Text?U.data.length:U.childNodes.length+1}X.node=U,X.offset=ue}),M.info("getNativeRange",se),se}},{key:"getRange",value:function(){var Q=this,R=this.getNativeRange();if(null==R)return[null,null];var se=[[R.start.node,R.start.offset]];R.native.collapsed||se.push([R.end.node,R.end.offset]);var X=se.map(function(pe){var _e=ae(pe,2),he=_e[0],de=_e[1],ce=F.default.find(he,!0),ie=ce.offset(Q.scroll);return 0===de?ie:ce instanceof F.default.Container?ie+ce.length():ie+ce.index(he,de)}),U=Math.min.apply(Math,D(X)),ue=Math.max.apply(Math,D(X));return ue=Math.min(ue,this.scroll.length()-1),[new $(U,ue-U),R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"scrollIntoView",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastRange;if(null!=Q){var R=this.getBounds(Q.index,Q.length);if(null!=R)if(this.root.offsetHeight2&&void 0!==arguments[2]?arguments[2]:Q,X=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,U=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(M.info("setNativeRange",Q,R,se,X),null==Q||null!=this.root.parentNode&&null!=Q.parentNode&&null!=se.parentNode){var ue=document.getSelection();if(null!=ue)if(null!=Q){this.hasFocus()||this.root.focus();var pe=(this.getNativeRange()||{}).native;if(null==pe||U||Q!==pe.startContainer||R!==pe.startOffset||se!==pe.endContainer||X!==pe.endOffset){var _e=document.createRange();_e.setStart(Q,R),_e.setEnd(se,X),ue.removeAllRanges(),ue.addRange(_e)}}else ue.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Q){var U,ue,pe,R=this,se=arguments.length>1&&void 0!==arguments[1]&&arguments[1],X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.default.sources.API;"string"==typeof se&&(X=se,se=!1),M.info("setRange",Q),null!=Q?(U=Q.collapsed?[Q.index]:[Q.index,Q.index+Q.length],ue=[],pe=R.scroll.length(),U.forEach(function(_e,he){_e=Math.min(pe-1,_e);var ce=R.scroll.leaf(_e),ie=ae(ce,2),oe=ie[1],Ie=ie[0].position(oe,0!==he),re=ae(Ie,2);ue.push(re[0],oe=re[1])}),ue.length<2&&(ue=ue.concat(ue)),R.setNativeRange.apply(R,D(ue).concat([se]))):this.setNativeRange(null),this.update(X)}},{key:"update",value:function(){var R,Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.default.sources.USER,se=this.lastRange,X=this.getRange(),U=ae(X,2);if(this.lastRange=U[0],R=U[1],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,I.default)(se,this.lastRange)){var ue;!this.composing&&null!=R&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var _e,pe=[T.default.events.SELECTION_CHANGE,(0,O.default)(this.lastRange),(0,O.default)(se),Q];(ue=this.emitter).emit.apply(ue,[T.default.events.EDITOR_CHANGE].concat(pe)),Q!==T.default.sources.SILENT&&(_e=this.emitter).emit.apply(_e,pe)}}}]),ne}();function B(ne,Y){return Y instanceof Text&&(Y=Y.parentNode),ne.contains(Y)}z.Range=$,z.default=ee},function(xe,z){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var L=function(){function Z(F,N){for(var O=0;O0)||_e instanceof I.BlockEmbed||ie instanceof I.BlockEmbed||(ie instanceof w.default&&ie.deleteAt(ie.length()-1,1),_e.moveChildren(ie,ie.children.head instanceof C.default?null:ie.children.head),_e.remove()),this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(X,U,ue,pe){null!=this.whitelist&&!this.whitelist[ue]||(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,X,U,ue,pe),this.optimize())}},{key:"insertAt",value:function(X,U,ue){if(null==ue||null==this.whitelist||this.whitelist[U]){if(X>=this.length())if(null==ue||null==N.default.query(U,N.default.Scope.BLOCK)){var pe=N.default.create(this.statics.defaultChild);this.appendChild(pe),null==ue&&U.endsWith("\n")&&(U=U.slice(0,-1)),pe.insertAt(0,U,ue)}else{var _e=N.default.create(U,ue);this.appendChild(_e)}else Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,X,U,ue);this.optimize()}}},{key:"insertBefore",value:function(X,U){if(X.statics.scope===N.default.Scope.INLINE_BLOT){var ue=N.default.create(this.statics.defaultChild);ue.appendChild(X),X=ue}Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,X,U)}},{key:"leaf",value:function(X){return this.path(X).pop()||[null,-1]}},{key:"line",value:function(X){return X===this.length()?this.line(X-1):this.descendant(ne,X)}},{key:"lines",value:function(){return function pe(_e,he,de){var ce=[],ie=de;return _e.children.forEachAt(he,de,function(J,oe,Ie){ne(J)?ce.push(J):J instanceof N.default.Container&&(ce=ce.concat(pe(J,oe,ie))),ie-=Ie}),ce}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!0!==this.batch&&(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,X),X.length>0&&this.emitter.emit(S.default.events.SCROLL_OPTIMIZE,X))}},{key:"path",value:function(X){return Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,X).slice(1)}},{key:"update",value:function(X){if(!0!==this.batch){var U=S.default.sources.USER;"string"==typeof X&&(U=X),Array.isArray(X)||(X=this.observer.takeRecords()),X.length>0&&this.emitter.emit(S.default.events.SCROLL_BEFORE_UPDATE,U,X),Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,X.concat([])),X.length>0&&this.emitter.emit(S.default.events.SCROLL_UPDATE,U,X)}}}]),R}(N.default.Scroll);Y.blotName="scroll",Y.className="ql-editor",Y.tagName="DIV",Y.defaultChild="block",Y.allowedChildren=[v.default,I.BlockEmbed,y.default],z.default=Y},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.matchText=z.matchSpacing=z.matchNewline=z.matchBlot=z.matchAttributor=z.default=void 0;var ae=function(Re,Je){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return function Fe(Re,Je){var rt=[],ot=!0,Dt=!1,Xt=void 0;try{for(var ni,rn=Re[Symbol.iterator]();!(ot=(ni=rn.next()).done)&&(rt.push(ni.value),!Je||rt.length!==Je);ot=!0);}catch(Jo){Dt=!0,Xt=Jo}finally{try{!ot&&rn.return&&rn.return()}finally{if(Dt)throw Xt}}return rt}(Re,Je);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function Fe(Re,Je){for(var rt=0;rt0&&(Re=Re.compose((new F.default).retain(Re.length(),Je))),parseFloat(rt.textIndent||0)>0&&(Re=(new F.default).insert("\t").concat(Re)),Re}],["b",oe.bind(oe,"bold")],["i",oe.bind(oe,"italic")],["style",function Be(){return new F.default}]],pe=[y.AlignAttribute,M.DirectionAttribute].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),_e=[y.AlignStyle,D.BackgroundStyle,w.ColorStyle,M.DirectionStyle,$.FontStyle,ee.SizeStyle].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),he=function(Fe){function Re(Je,rt){!function Q(Fe,Re){if(!(Fe instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Re);var ot=function R(Fe,Re){if(!Fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Re||"object"!=typeof Re&&"function"!=typeof Re?Fe:Re}(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Je,rt));return ot.quill.root.addEventListener("paste",ot.onPaste.bind(ot)),ot.container=ot.quill.addContainer("ql-clipboard"),ot.container.setAttribute("contenteditable",!0),ot.container.setAttribute("tabindex",-1),ot.matchers=[],ue.concat(ot.options.matchers).forEach(function(Dt){ot.addMatcher.apply(ot,function Y(Fe){if(Array.isArray(Fe)){for(var Re=0,Je=Array(Fe.length);Re2&&void 0!==arguments[2]?arguments[2]:I.default.sources.API;if("string"==typeof rt)return this.quill.setContents(this.convert(rt),ot);var Xt=this.convert(ot);return this.quill.updateContents((new F.default).retain(rt).concat(Xt),Dt)}},{key:"onPaste",value:function(rt){var ot=this;if(!rt.defaultPrevented&&this.quill.isEnabled()){var Dt=this.quill.getSelection(),Xt=(new F.default).retain(Dt.index),rn=this.quill.scrollingContainer.scrollTop;this.container.focus(),setTimeout(function(){ot.quill.selection.update(I.default.sources.SILENT),Xt=Xt.concat(ot.convert()).delete(Dt.length),ot.quill.updateContents(Xt,I.default.sources.USER),ot.quill.setSelection(Xt.length()-Dt.length,I.default.sources.SILENT),ot.quill.scrollingContainer.scrollTop=rn,ot.quill.selection.scrollIntoView()},1)}}},{key:"prepareMatching",value:function(){var rt=this,ot=[],Dt=[];return this.matchers.forEach(function(Xt){var rn=ae(Xt,2),ni=rn[0],Jo=rn[1];switch(ni){case Node.TEXT_NODE:Dt.push(Jo);break;case Node.ELEMENT_NODE:ot.push(Jo);break;default:[].forEach.call(rt.container.querySelectorAll(ni),function(an){an[U]=an[U]||[],an[U].push(Jo)})}}),[ot,Dt]}}]),Re}(k.default);function de(Fe){if(Fe.nodeType!==Node.ELEMENT_NODE)return{};var Re="__ql-computed-style";return Fe[Re]||(Fe[Re]=window.getComputedStyle(Fe))}function ce(Fe,Re){for(var Je="",rt=Fe.ops.length-1;rt>=0&&Je.length-1}function J(Fe,Re,Je){return Fe.nodeType===Fe.TEXT_NODE?Je.reduce(function(rt,ot){return ot(Fe,rt)},new F.default):Fe.nodeType===Fe.ELEMENT_NODE?[].reduce.call(Fe.childNodes||[],function(rt,ot){var Dt=J(ot,Re,Je);return ot.nodeType===Fe.ELEMENT_NODE&&(Dt=Re.reduce(function(Xt,rn){return rn(ot,Xt)},Dt),Dt=(ot[U]||[]).reduce(function(Xt,rn){return rn(ot,Xt)},Dt)),rt.concat(Dt)},new F.default):new F.default}function oe(Fe,Re,Je){return Je.compose((new F.default).retain(Je.length(),ne({},Fe,!0)))}function Ie(Fe,Re){var Je=O.default.Attributor.Attribute.keys(Fe),rt=O.default.Attributor.Class.keys(Fe),ot=O.default.Attributor.Style.keys(Fe),Dt={};return Je.concat(rt).concat(ot).forEach(function(Xt){var rn=O.default.query(Xt,O.default.Scope.ATTRIBUTE);null!=rn&&(Dt[rn.attrName]=rn.value(Fe),Dt[rn.attrName])||(null!=pe[Xt]&&(Dt[(rn=pe[Xt]).attrName]=rn.value(Fe)),null!=_e[Xt]&&(Dt[(rn=_e[Xt]).attrName]=rn.value(Fe)))}),Object.keys(Dt).length>0&&(Re=Re.compose((new F.default).retain(Re.length(),Dt))),Re}function re(Fe,Re){var Je=O.default.query(Fe);if(null==Je)return Re;if(Je.prototype instanceof O.default.Embed){var rt={},ot=Je.value(Fe);null!=ot&&(rt[Je.blotName]=ot,Re=(new F.default).insert(rt,Je.formats(Fe)))}else if("function"==typeof Je.formats){var Dt=ne({},Je.blotName,Je.formats(Fe));Re=Re.compose((new F.default).retain(Re.length(),Dt))}return Re}function Me(Fe,Re){return ie(Fe)&&!ce(Re,"\n")&&Re.insert("\n"),Re}function Ue(Fe,Re){if(ie(Fe)&&null!=Fe.nextElementSibling&&!ce(Re,"\n\n")){var Je=Fe.offsetHeight+parseFloat(de(Fe).marginTop)+parseFloat(de(Fe).marginBottom);Fe.nextElementSibling.offsetTop>Fe.offsetTop+1.5*Je&&Re.insert("\n")}return Re}function at(Fe,Re){var Je=Fe.data;if("O:P"===Fe.parentNode.tagName)return Re.insert(Je.trim());if(!de(Fe.parentNode).whiteSpace.startsWith("pre")){var rt=function(Dt,Xt){return(Xt=Xt.replace(/[^\u00a0]/g,"")).length<1&&Dt?" ":Xt};Je=(Je=Je.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,rt.bind(rt,!0)),(null==Fe.previousSibling&&ie(Fe.parentNode)||null!=Fe.previousSibling&&ie(Fe.previousSibling))&&(Je=Je.replace(/^\s+/,rt.bind(rt,!1))),(null==Fe.nextSibling&&ie(Fe.parentNode)||null!=Fe.nextSibling&&ie(Fe.nextSibling))&&(Je=Je.replace(/\s+$/,rt.bind(rt,!1)))}return Re.insert(Je)}he.DEFAULTS={matchers:[]},z.default=he,z.matchAttributor=Ie,z.matchBlot=re,z.matchNewline=Me,z.matchSpacing=Ue,z.matchText=at},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.AlignStyle=z.AlignClass=z.AlignAttribute=void 0;var H=function Z(I){return I&&I.__esModule?I:{default:I}}(L(2));var F={scope:H.default.Scope.BLOCK,whitelist:["right","center","justify"]},N=new H.default.Attributor.Attribute("align","align",F),O=new H.default.Attributor.Class("align","ql-align",F),S=new H.default.Attributor.Style("align","text-align",F);z.AlignAttribute=N,z.AlignClass=O,z.AlignStyle=S},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.BackgroundStyle=z.BackgroundClass=void 0;var H=function F(S){return S&&S.__esModule?S:{default:S}}(L(2)),Z=L(47);var N=new H.default.Attributor.Class("background","ql-bg",{scope:H.default.Scope.INLINE}),O=new Z.ColorAttributor("background","background-color",{scope:H.default.Scope.INLINE});z.BackgroundClass=N,z.BackgroundStyle=O},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.ColorStyle=z.ColorClass=z.ColorAttributor=void 0;var ae=function(){function k(y,D){for(var w=0;wY&&this.stack.undo.length>0){var Q=this.stack.undo.pop();ne=ne.compose(Q.undo),ee=Q.redo.compose(ee)}else this.lastRecorded=Y;this.stack.undo.push({redo:ee,undo:ne}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ee){this.stack.undo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)}),this.stack.redo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),M}(I(L(39)).default);function D(w){var M=w.reduce(function(ee,B){return ee+(B.delete||0)},0),$=w.length()-M;return function y(w){var M=w.ops[w.ops.length-1];return null!=M&&(null!=M.insert?"string"==typeof M.insert&&M.insert.endsWith("\n"):null!=M.attributes&&Object.keys(M.attributes).some(function($){return null!=Z.default.query($,Z.default.Scope.BLOCK)}))}(w)&&($-=1),$}k.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},z.default=k,z.getLastChangeIndex=D},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},H=function(oe,Ie){if(Array.isArray(oe))return oe;if(Symbol.iterator in Object(oe))return function J(oe,Ie){var re=[],ye=!0,Be=!1,Me=void 0;try{for(var Bn,Ue=oe[Symbol.iterator]();!(ye=(Bn=Ue.next()).done)&&(re.push(Bn.value),!Ie||re.length!==Ie);ye=!0);}catch(at){Be=!0,Me=at}finally{try{!ye&&Ue.return&&Ue.return()}finally{if(Be)throw Me}}return re}(oe,Ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function J(oe,Ie){for(var re=0;re1&&void 0!==arguments[1]?arguments[1]:{},Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Me=ie(re);if(null==Me||null==Me.key)return se.warn("Attempted to add invalid keyboard binding",Me);"function"==typeof ye&&(ye={handler:ye}),"function"==typeof Be&&(Be={handler:Be}),Me=(0,v.default)(Me,ye,Be),this.bindings[Me.key]=this.bindings[Me.key]||[],this.bindings[Me.key].push(Me)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(ye){if(!ye.defaultPrevented){var Me=(re.bindings[ye.which||ye.keyCode]||[]).filter(function(jn){return oe.match(ye,jn)});if(0!==Me.length){var Ue=re.quill.getSelection();if(null!=Ue&&re.quill.hasFocus()){var Bn=re.quill.scroll.line(Ue.index),at=H(Bn,2),Fe=at[0],Re=at[1],Je=re.quill.scroll.leaf(Ue.index),rt=H(Je,2),ot=rt[0],Dt=rt[1],Xt=0===Ue.length?[ot,Dt]:re.quill.scroll.leaf(Ue.index+Ue.length),rn=H(Xt,2),ni=rn[0],Jo=rn[1],an=ot instanceof y.default.Text?ot.value().slice(0,Dt):"",As=ni instanceof y.default.Text?ni.value().slice(Jo):"",bo={collapsed:0===Ue.length,empty:0===Ue.length&&Fe.length()<=1,format:re.quill.getFormat(Ue),offset:Re,prefix:an,suffix:As};Me.some(function(jn){if(null!=jn.collapsed&&jn.collapsed!==bo.collapsed||null!=jn.empty&&jn.empty!==bo.empty||null!=jn.offset&&jn.offset!==bo.offset)return!1;if(Array.isArray(jn.format)){if(jn.format.every(function(yo){return null==bo.format[yo]}))return!1}else if("object"===ae(jn.format)&&!Object.keys(jn.format).every(function(yo){return!0===jn.format[yo]?null!=bo.format[yo]:!1===jn.format[yo]?null==bo.format[yo]:(0,S.default)(jn.format[yo],bo.format[yo])}))return!1;return!(null!=jn.prefix&&!jn.prefix.test(bo.prefix)||null!=jn.suffix&&!jn.suffix.test(bo.suffix))&&!0!==jn.handler.call(re,Ue,bo)})&&ye.preventDefault()}}}})}}]),oe}(B.default);function ue(J,oe){if(0!==J.index){var Ie=this.quill.scroll.line(J.index),re=H(Ie,1),Be={};if(0===oe.offset){var Me=re[0].formats(),Ue=this.quill.getFormat(J.index-1,1);Be=C.default.attributes.diff(Me,Ue)||{}}this.quill.deleteText(J.index-1,1,w.default.sources.USER),Object.keys(Be).length>0&&this.quill.formatLine(J.index-1,1,Be,w.default.sources.USER),this.quill.selection.scrollIntoView()}}function pe(J){J.index>=this.quill.getLength()-1||this.quill.deleteText(J.index,1,w.default.sources.USER)}function _e(J){this.quill.deleteText(J,w.default.sources.USER),this.quill.setSelection(J.index,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}function he(J,oe){var Ie=this;J.length>0&&this.quill.scroll.deleteAt(J.index,J.length);var re=Object.keys(oe.format).reduce(function(ye,Be){return y.default.query(Be,y.default.Scope.BLOCK)&&!Array.isArray(oe.format[Be])&&(ye[Be]=oe.format[Be]),ye},{});this.quill.insertText(J.index,"\n",re,w.default.sources.USER),this.quill.selection.scrollIntoView(),Object.keys(oe.format).forEach(function(ye){null==re[ye]&&(Array.isArray(oe.format[ye])||"link"!==ye&&Ie.quill.format(ye,oe.format[ye],w.default.sources.USER))})}function de(J){return{key:U.keys.TAB,shiftKey:!J,format:{"code-block":!0},handler:function(Ie){var re=y.default.query("code-block"),ye=Ie.index,Be=Ie.length,Me=this.quill.scroll.descendant(re,ye),Ue=H(Me,2),Bn=Ue[0],at=Ue[1];if(null!=Bn){var Fe=this.quill.scroll.offset(Bn),Re=Bn.newlineIndex(at,!0)+1,Je=Bn.newlineIndex(Fe+at+Be),rt=Bn.domNode.textContent.slice(Re,Je).split("\n");at=0,rt.forEach(function(ot,Dt){J?(Bn.insertAt(Re+at,re.TAB),at+=re.TAB.length,0===Dt?ye+=re.TAB.length:Be+=re.TAB.length):ot.startsWith(re.TAB)&&(Bn.deleteAt(Re+at,re.TAB.length),at-=re.TAB.length,0===Dt?ye-=re.TAB.length:Be-=re.TAB.length),at+=ot.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(ye,Be,w.default.sources.SILENT)}}}}function ce(J){return{key:J[0].toUpperCase(),shortKey:!0,handler:function(Ie,re){this.quill.format(J,!re.format[J],w.default.sources.USER)}}}function ie(J){if("string"==typeof J||"number"==typeof J)return ie({key:J});if("object"===(typeof J>"u"?"undefined":ae(J))&&(J=(0,N.default)(J,!1)),"string"==typeof J.key)if(null!=U.keys[J.key.toUpperCase()])J.key=U.keys[J.key.toUpperCase()];else{if(1!==J.key.length)return null;J.key=J.key.toUpperCase().charCodeAt(0)}return J}U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:ce("bold"),italic:ce("italic"),underline:ce("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,format:["blockquote","indent","list"],offset:0,handler:function(oe,Ie){null!=Ie.format.indent?this.quill.format("indent","-1",w.default.sources.USER):null!=Ie.format.blockquote?this.quill.format("blockquote",!1,w.default.sources.USER):null!=Ie.format.list&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(oe){this.quill.deleteText(oe.index-1,1,w.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(oe,Ie){Ie.collapsed||this.quill.scroll.deleteAt(oe.index,oe.length),this.quill.insertText(oe.index,"\t",w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(oe,Ie){this.quill.format("list",!1,w.default.sources.USER),Ie.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n");var Ie=this.quill.scroll.line(oe.index+1);H(Ie,1)[0].format("list","unchecked"),this.quill.update(w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n"),this.quill.formatText(oe.index+1,1,"header",!1,w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^(1\.|-)$/,handler:function(oe,Ie){var re=Ie.prefix.length;this.quill.scroll.deleteAt(oe.index-re,re),this.quill.formatLine(oe.index-re,1,"list",1===re?"bullet":"ordered",w.default.sources.USER),this.quill.setSelection(oe.index-re,w.default.sources.SILENT)}}}},z.default=U},function(xe,z,L){"use strict";var H=an(L(1)),Z=L(45),F=L(48),N=L(54),S=an(L(55)),v=an(L(56)),T=L(57),C=an(T),k=L(46),y=L(47),D=L(49),w=L(50),$=an(L(58)),B=an(L(59)),Y=an(L(60)),R=an(L(61)),X=an(L(62)),ue=an(L(63)),_e=an(L(64)),de=an(L(65)),ce=L(28),ie=an(ce),oe=an(L(66)),re=an(L(67)),Be=an(L(68)),Ue=an(L(69)),at=an(L(102)),Re=an(L(104)),rt=an(L(105)),Dt=an(L(106)),rn=an(L(107)),Jo=an(L(109));function an(As){return As&&As.__esModule?As:{default:As}}H.default.register({"attributors/attribute/direction":F.DirectionAttribute,"attributors/class/align":Z.AlignClass,"attributors/class/background":k.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":F.DirectionClass,"attributors/class/font":D.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":Z.AlignStyle,"attributors/style/background":k.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":F.DirectionStyle,"attributors/style/font":D.FontStyle,"attributors/style/size":w.SizeStyle},!0),H.default.register({"formats/align":Z.AlignClass,"formats/direction":F.DirectionClass,"formats/indent":N.IndentClass,"formats/background":k.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":D.FontClass,"formats/size":w.SizeClass,"formats/blockquote":S.default,"formats/code-block":ie.default,"formats/header":v.default,"formats/list":C.default,"formats/bold":$.default,"formats/code":ce.Code,"formats/italic":B.default,"formats/link":Y.default,"formats/script":R.default,"formats/strike":X.default,"formats/underline":ue.default,"formats/image":_e.default,"formats/video":de.default,"formats/list/item":T.ListItem,"modules/formula":oe.default,"modules/syntax":re.default,"modules/toolbar":Be.default,"themes/bubble":rn.default,"themes/snow":Jo.default,"ui/icons":Ue.default,"ui/picker":at.default,"ui/icon-picker":rt.default,"ui/color-picker":Re.default,"ui/tooltip":Dt.default},!0),xe.exports=H.default},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.IndentClass=void 0;var ae=function(){function C(k,y){for(var D=0;D0&&this.children.tail.format(B,ne)}},{key:"formats",value:function(){return function T(M,$,ee){return $ in M?Object.defineProperty(M,$,{value:ee,enumerable:!0,configurable:!0,writable:!0}):M[$]=ee,M}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(B,ne){if(B instanceof D)H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"insertBefore",this).call(this,B,ne);else{var Y=null==ne?this.length():ne.offset(this),Q=this.split(Y);Q.parent.insertBefore(B,Q)}}},{key:"optimize",value:function(){H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this);var B=this.next;null!=B&&B.prev===this&&B.statics.blotName===this.statics.blotName&&B.domNode.tagName===this.domNode.tagName&&B.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(B.moveChildren(this),B.remove())}},{key:"replace",value:function(B){if(B.statics.blotName!==this.statics.blotName){var ne=F.default.create(this.statics.defaultChild);B.moveChildren(ne),this.appendChild(ne)}H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"replace",this).call(this,B)}}],[{key:"create",value:function(B){var ne="ordered"===B?"OL":"UL",Y=H($.__proto__||Object.getPrototypeOf($),"create",this).call(this,ne);return("checked"===B||"unchecked"===B)&&Y.setAttribute("data-checked","checked"===B),Y}},{key:"formats",value:function(B){return"OL"===B.tagName?"ordered":"UL"===B.tagName?B.hasAttribute("data-checked")?"true"===B.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),$}(I.default);w.blotName="list",w.scope=F.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[D],z.ListItem=D,z.default=w},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1}v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",z.default=v,z.sanitize=T},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return"string"==typeof w&&M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,N.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(F.default);C.blotName="image",C.tagName="IMG",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function k(y,D){for(var w=0;w-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return M.setAttribute("frameborder","0"),M.setAttribute("allowfullscreen",!0),M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"sanitize",value:function(w){return N.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(Z.BlockEmbed);C.blotName="video",C.className="ql-video",C.tagName="IFRAME",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.FormulaBlot=void 0;var ae=function(){function y(D,w){for(var M=0;M0||null==this.cachedHTML)&&(this.domNode.innerHTML=Y(Q),this.attach()),this.cachedHTML=this.domNode.innerHTML}}}]),B}(C(L(28)).default);w.className="ql-syntax";var M=new F.default.Attributor.Class("token","hljs",{scope:F.default.Scope.INLINE}),$=function(ee){function B(ne,Y){k(this,B);var Q=y(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,ne,Y));if("function"!=typeof Q.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");O.default.register(M,!0),O.default.register(w,!0);var R=null;return Q.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){null==R&&(R=setTimeout(function(){Q.highlight(),R=null},100))}),Q.highlight(),Q}return D(B,ee),ae(B,[{key:"highlight",value:function(){var Y=this;if(!this.quill.selection.composing){var Q=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(R){R.highlight(Y.options.highlight)}),this.quill.update(O.default.sources.SILENT),null!=Q&&this.quill.setSelection(Q,O.default.sources.SILENT)}}}]),B}(I.default);$.DEFAULTS={highlight:null==window.hljs?null:function(ee){return window.hljs.highlightAuto(ee).value}},z.CodeBlock=w,z.CodeToken=M,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.addControls=z.default=void 0;var ae=function(se,X){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return function R(se,X){var U=[],ue=!0,pe=!1,_e=void 0;try{for(var de,he=se[Symbol.iterator]();!(ue=(de=he.next()).done)&&(U.push(de.value),!X||U.length!==X);ue=!0);}catch(ce){pe=!0,_e=ce}finally{try{!ue&&he.return&&he.return()}finally{if(pe)throw _e}}return U}(se,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function R(se,X){for(var U=0;U '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},H=function(){function I(v,T){for(var C=0;C1&&void 0!==arguments[1]&&arguments[1],k=this.container.querySelector(".ql-selected");if(T!==k&&(k?.classList.remove("ql-selected"),null!=T&&(T.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(T.parentNode.children,T),T.hasAttribute("data-value")?this.label.setAttribute("data-value",T.getAttribute("data-value")):this.label.removeAttribute("data-value"),T.hasAttribute("data-label")?this.label.setAttribute("data-label",T.getAttribute("data-label")):this.label.removeAttribute("data-label"),C))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":ae(Event))){var y=document.createEvent("Event");y.initEvent("change",!0,!0),this.select.dispatchEvent(y)}this.close()}}},{key:"update",value:function(){var T=void 0;if(this.select.selectedIndex>-1){var C=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];T=this.select.options[this.select.selectedIndex],this.selectItem(C)}else this.selectItem(null);var k=null!=T&&T!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),I}();z.default=S},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y=this.quill.root.offsetHeight)}},{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(N){var O=N.left+N.width/2-this.root.offsetWidth/2,S=N.bottom+this.quill.root.scrollTop;this.root.style.left=O+"px",this.root.style.top=S+"px";var I=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),T=0;return v.right>I.right&&(this.root.style.left=O+(T=I.right-v.right)+"px"),v.left0){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var U=R.quill.scroll.lines(X.index,X.length);if(1===U.length)R.position(R.quill.getBounds(X));else{var ue=U[U.length-1],pe=ue.offset(R.quill.scroll),_e=Math.min(ue.length()-1,X.index+X.length-pe),he=R.quill.getBounds(new v.Range(pe,_e));R.position(he)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return w(ne,B),H(ne,[{key:"listen",value:function(){var Q=this;ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Q.root.classList.remove("ql-editing")}),this.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Q.root.classList.contains("ql-hidden")){var R=Q.quill.getSelection();null!=R&&Q.position(Q.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Q){var R=ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"position",this).call(this,Q),se=this.root.querySelector(".ql-tooltip-arrow");if(se.style.marginLeft="",0===R)return R;se.style.marginLeft=-1*R-se.offsetWidth/2+"px"}}]),ne}(S.BaseTooltip);ee.TEMPLATE=['','
','','',"
"].join(""),z.BubbleTooltip=ee,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BaseTooltip=void 0;var ae=function(){function ie(J,oe){for(var Ie=0;Ie0&&void 0!==arguments[0]?arguments[0]:"link",re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=re?this.textbox.value=re:Ie!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Ie)||""),this.root.setAttribute("data-mode",Ie)}},{key:"restoreFocus",value:function(){var Ie=this.quill.root.scrollTop;this.quill.focus(),this.quill.root.scrollTop=Ie}},{key:"save",value:function(){var Ie=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var re=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ie,I.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ie,I.default.sources.USER)),this.quill.root.scrollTop=re;break;case"video":var ye=Ie.match(/^(https?):\/\/(www\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ie.match(/^(https?):\/\/(www\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);ye?Ie=ye[1]+"://www.youtube.com/embed/"+ye[3]+"?showinfo=0":(ye=Ie.match(/^(https?):\/\/(www\.)?vimeo\.com\/(\d+)/))&&(Ie=ye[1]+"://player.vimeo.com/video/"+ye[3]+"/");case"formula":var Be=this.quill.getSelection(!0),Me=Be.index+Be.length;null!=Be&&(this.quill.insertEmbed(Me,this.root.getAttribute("data-mode"),Ie,I.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Me+1," ",I.default.sources.USER),this.quill.setSelection(Me+2,I.default.sources.USER))}this.textbox.value="",this.hide()}}]),J}(ne.default);function ce(ie,J){var oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];J.forEach(function(Ie){var re=document.createElement("option");Ie===oe?re.setAttribute("selected","selected"):re.setAttribute("value",Ie),ie.appendChild(re)})}z.BaseTooltip=de,z.default=he},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(R,se){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function Q(R,se){var X=[],U=!0,ue=!1,pe=void 0;try{for(var he,_e=R[Symbol.iterator]();!(U=(he=_e.next()).done)&&(X.push(he.value),!se||X.length!==se);U=!0);}catch(de){ue=!0,pe=de}finally{try{!U&&_e.return&&_e.return()}finally{if(ue)throw pe}}return X}(R,se);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function Q(R,se,X){null===R&&(R=Function.prototype);var U=Object.getOwnPropertyDescriptor(R,se);if(void 0===U){var ue=Object.getPrototypeOf(R);return null===ue?void 0:Q(ue,se,X)}if("value"in U)return U.value;var pe=U.get;return void 0===pe?void 0:pe.call(X)},Z=function(){function Q(R,se){for(var X=0;X','','',''].join(""),z.default=ne}])}},tc=>{tc(tc.s=5544)}]); \ No newline at end of file diff --git a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.38bb56b87fd01368.js b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.38bb56b87fd01368.js deleted file mode 100644 index 1d25b78c4c..0000000000 --- a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.38bb56b87fd01368.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkGinger_HtmlReport_Web_App=self.webpackChunkGinger_HtmlReport_Web_App||[]).push([[179],{5544:(tc,xe,z)=>{"use strict";function L(t){return"function"==typeof t}function ae(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const H=ae(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Z(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class F{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(L(n))try{n()}catch(s){i=s instanceof H?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{S(s)}catch(r){i=i??[],r instanceof H?i=[...i,...r.errors]:i.push(r)}}if(i)throw new H(i)}}add(i){var e;if(i&&i!==this)if(this.closed)S(i);else{if(i instanceof F){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Z(e,i)}remove(i){const{_finalizers:e}=this;e&&Z(e,i),i instanceof F&&i._removeParent(this)}}F.EMPTY=(()=>{const t=new F;return t.closed=!0,t})();const N=F.EMPTY;function O(t){return t instanceof F||t&&"closed"in t&&L(t.remove)&&L(t.add)&&L(t.unsubscribe)}function S(t){L(t)?t():t.unsubscribe()}const I={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},v={setTimeout(t,i,...e){const{delegate:n}=v;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=v;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function T(t){v.setTimeout(()=>{const{onUnhandledError:i}=I;if(!i)throw t;i(t)})}function C(){}const k=w("C",void 0,void 0);function w(t,i,e){return{kind:t,value:i,error:e}}let M=null;function $(t){if(I.useDeprecatedSynchronousErrorHandling){const i=!M;if(i&&(M={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=M;if(M=null,e)throw n}}else t()}class B extends F{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,O(i)&&i.add(this)):this.destination=ue}static create(i,e,n){return new R(i,e,n)}next(i){this.isStopped?U(function D(t){return w("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?U(function y(t){return w("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?U(k,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function Y(t,i){return ne.call(t,i)}class Q{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){se(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){se(n)}else se(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){se(e)}}}class R extends B{constructor(i,e,n){let o;if(super(),L(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let s;this&&I.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&Y(i.next,s),error:i.error&&Y(i.error,s),complete:i.complete&&Y(i.complete,s)}):o=i}this.destination=new Q(o)}}function se(t){I.useDeprecatedSynchronousErrorHandling?function ee(t){I.useDeprecatedSynchronousErrorHandling&&M&&(M.errorThrown=!0,M.error=t)}(t):T(t)}function U(t,i){const{onStoppedNotification:e}=I;e&&v.setTimeout(()=>e(t,i))}const ue={closed:!0,next:C,error:function X(t){throw t},complete:C},pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function _e(t){return t}function de(t){return 0===t.length?_e:1===t.length?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}let ce=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){const s=function oe(t){return t&&t instanceof B||function J(t){return t&&L(t.next)&&L(t.error)&&L(t.complete)}(t)&&O(t)}(e)?e:new R(e,n,o);return $(()=>{const{operator:r,source:a}=this;s.add(r?r.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=ie(n))((o,s)=>{const r=new R({next:a=>{try{e(a)}catch(l){s(l),r.unsubscribe()}},error:s,complete:o});this.subscribe(r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[pe](){return this}pipe(...e){return de(e)(this)}toPromise(e){return new(e=ie(e))((n,o)=>{let s;this.subscribe(r=>s=r,r=>o(r),()=>n(s))})}}return t.create=i=>new t(i),t})();function ie(t){var i;return null!==(i=t??I.Promise)&&void 0!==i?i:Promise}const Ie=ae(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class t extends ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new ye(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ie}next(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:o,observers:s}=this;return n||o?N:(this.currentObservers=null,s.push(e),new F(()=>{this.currentObservers=null,Z(s,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:o,isStopped:s}=this;n?e.error(o):s&&e.complete()}asObservable(){const e=new ce;return e.source=this,e}}return t.create=(i,e)=>new ye(i,e),t})();class ye extends re{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:N}}function Be(t){return L(t?.lift)}function Me(t){return i=>{if(Be(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,i,e,n,o){return new Bn(t,i,e,n,o)}class Bn extends B{constructor(i,e,n,o,s,r){super(i),this.onFinalize=s,this.shouldUnsubscribe=r,this._next=e?function(a){try{e(a)}catch(l){i.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function at(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>{n.next(t.call(i,s,o++))}))})}function or(t){return this instanceof or?(this.v=t,this):new or(t)}function Hv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function yo(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=t[s]&&function(r){return new Promise(function(a,l){!function o(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}(a,l,(r=t[s](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const dg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function zv(t){return L(t?.then)}function jv(t){return L(t[pe])}function Uv(t){return Symbol.asyncIterator&&L(t?.[Symbol.asyncIterator])}function $v(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Kv=function d4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Gv(t){return L(t?.[Kv])}function qv(t){return function Bv(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=e.apply(t,i||[]),s=[];return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;function r(m){n[m]&&(o[m]=function(_){return new Promise(function(b,E){s.push([m,_,b,E])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof or?Promise.resolve(m.value.v).then(c,u):p(s[0][2],m)}(n[m](_))}catch(b){p(s[0][3],b)}}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,_){m(_),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:o}=yield or(e.read());if(o)return yield or(void 0);yield yield or(n)}}finally{e.releaseLock()}})}function Wv(t){return L(t?.getReader)}function Ni(t){if(t instanceof ce)return t;if(null!=t){if(jv(t))return function p4(t){return new ce(i=>{const e=t[pe]();if(L(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(dg(t))return function h4(t){return new ce(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,T)})}(t);if(Uv(t))return Qv(t);if(Gv(t))return function g4(t){return new ce(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(Wv(t))return function m4(t){return Qv(qv(t))}(t)}throw $v(t)}function Qv(t){return new ce(i=>{(function _4(t,i){var e,n,o,s;return function As(t,i,e,n){return new(e||(e=Promise))(function(s,r){function a(u){try{c(n.next(u))}catch(p){r(p)}}function l(u){try{c(n.throw(u))}catch(p){r(p)}}function c(u){u.done?s(u.value):function o(s){return s instanceof e?s:new e(function(r){r(s)})}(u.value).then(a,l)}c((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Hv(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(r){o={error:r}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(o)throw o.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function ws(t,i,e,n=0,o=!1){const s=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}function si(t,i,e=1/0){return L(i)?si((n,o)=>at((s,r)=>i(n,s,o,r))(Ni(t(n,o))),e):("number"==typeof i&&(e=i),Me((n,o)=>function I4(t,i,e,n,o,s,r,a){const l=[];let c=0,u=0,p=!1;const m=()=>{p&&!l.length&&!c&&i.complete()},_=E=>c{s&&i.next(E),c++;let P=!1;Ni(e(E,u++)).subscribe(Ue(i,W=>{o?.(W),s?_(W):i.next(W)},()=>{P=!0},void 0,()=>{if(P)try{for(c--;l.length&&cb(W)):b(W)}m()}catch(W){i.error(W)}}))};return t.subscribe(Ue(i,_,()=>{p=!0,m()})),()=>{a?.()}}(n,o,t,e)))}function Ta(t=1/0){return si(_e,t)}const es=new ce(t=>t.complete());function Zv(t){return t&&L(t.schedule)}function pg(t){return t[t.length-1]}function Yv(t){return L(pg(t))?t.pop():void 0}function ic(t){return Zv(pg(t))?t.pop():void 0}function Xv(t,i=0){return Me((e,n)=>{e.subscribe(Ue(n,o=>ws(n,t,()=>n.next(o),i),()=>ws(n,t,()=>n.complete(),i),o=>ws(n,t,()=>n.error(o),i)))})}function Jv(t,i=0){return Me((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function e1(t,i){if(!t)throw new Error("Iterable cannot be null");return new ce(e=>{ws(e,i,()=>{const n=t[Symbol.asyncIterator]();ws(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ri(t,i){return i?function T4(t,i){if(null!=t){if(jv(t))return function b4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(dg(t))return function x4(t,i){return new ce(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(zv(t))return function y4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(Uv(t))return e1(t,i);if(Gv(t))return function A4(t,i){return new ce(e=>{let n;return ws(e,i,()=>{n=t[Kv](),ws(e,i,()=>{let o,s;try{({value:o,done:s}=n.next())}catch(r){return void e.error(r)}s?e.complete():e.next(o)},0,!0)}),()=>L(n?.return)&&n.return()})}(t,i);if(Wv(t))return function w4(t,i){return e1(qv(t),i)}(t,i)}throw $v(t)}(t,i):Ni(t)}class xo extends re{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}function ht(...t){return ri(t,ic(t))}function t1(t={}){const{connector:i=(()=>new re),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return s=>{let r,a,l,c=0,u=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),r=l=void 0,u=p=!1},b=()=>{const E=r;_(),E?.unsubscribe()};return Me((E,P)=>{c++,!p&&!u&&m();const W=l=l??i();P.add(()=>{c--,0===c&&!p&&!u&&(a=hg(b,o))}),W.subscribe(P),!r&&c>0&&(r=new R({next:te=>W.next(te),error:te=>{p=!0,m(),a=hg(_,e,te),W.error(te)},complete:()=>{u=!0,m(),a=hg(_,n),W.complete()}}),Ni(E).subscribe(r))})(s)}}function hg(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new R({next:()=>{n.unsubscribe(),t()}});return Ni(i(...e)).subscribe(n)}function Ao(t,i){return Me((e,n)=>{let o=null,s=0,r=!1;const a=()=>r&&!o&&n.complete();e.subscribe(Ue(n,l=>{o?.unsubscribe();let c=0;const u=s++;Ni(t(l,u)).subscribe(o=Ue(n,p=>n.next(i?i(l,p,u,c++):p),()=>{o=null,a()}))},()=>{r=!0,a()}))})}function D4(t,i){return t===i}function fn(t){for(let i in t)if(t[i]===fn)return i;throw Error("Could not find renamed property on target object.")}function _d(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ai(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ai).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function fg(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const k4=fn({__forward_ref__:fn});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return ai(this())},t}function vt(t){return gg(t)?t():t}function gg(t){return"function"==typeof t&&t.hasOwnProperty(k4)&&t.__forward_ref__===ft}function mg(t){return t&&!!t.\u0275providers}const n1="https://g.co/ng/security#xss";class Ae extends Error{constructor(i,e){super(function Id(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function xt(t){return"string"==typeof t?t:null==t?"":String(t)}function _g(t,i){throw new Ae(-201,!1)}function wo(t,i){null==t&&function _t(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function nt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const o1=nt;function Ge(t){return{providers:t.providers||[],imports:t.imports||[]}}function Cd(t){return s1(t,bd)||s1(t,r1)}function s1(t,i){return t.hasOwnProperty(i)?t[i]:null}function vd(t){return t&&(t.hasOwnProperty(Ig)||t.hasOwnProperty(V4))?t[Ig]:null}const bd=fn({\u0275prov:fn}),Ig=fn({\u0275inj:fn}),r1=fn({ngInjectableDef:fn}),V4=fn({ngInjectorDef:fn});var zt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(zt||{});let Cg;function a1(){return Cg}function Yi(t){const i=Cg;return Cg=t,i}function l1(t,i,e){const n=Cd(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&zt.Optional?null:void 0!==i?i:void _g(ai(t))}const Tn=globalThis;class Ye{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=nt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const oc={},Ag="__NG_DI_FLAG__",yd="ngTempTokenPath",z4=/\n/gm,u1="__source";let Sa;function sr(t){const i=Sa;return Sa=t,i}function $4(t,i=zt.Default){if(void 0===Sa)throw new Ae(-203,!1);return null===Sa?l1(t,void 0,i):Sa.get(t,i&zt.Optional?null:void 0,i)}function Ze(t,i=zt.Default){return(a1()||$4)(vt(t),i)}function et(t,i=zt.Default){return Ze(t,xd(i))}function xd(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function wg(t){const i=[];for(let e=0;ei){r=s-1;break}}}for(;ss?"":o[p+1].toLowerCase();const _=8&n?m:null;if(_&&-1!==f1(_,c,0)||2&n&&c!==m){if(Bo(n))return!1;r=!0}}}}else{if(!r&&!Bo(n)&&!Bo(l))return!1;if(r&&Bo(l))continue;r=!1,n=l|1&n}}return Bo(n)||r}function Bo(t){return 0==(1&t)}function Y4(t,i,e,n){if(null===i)return-1;let o=0;if(n||!e){let s=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?o+="."+r:4&n&&(o+=" "+r);else""!==o&&!Bo(r)&&(i+=b1(s,o),o=""),n=r,s=s||!Bo(n);e++}return""!==o&&(i+=b1(s,o)),i}function Oe(t){return Ts(()=>{const i=x1(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ad.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||To.Emulated,styles:t.styles||nn,_:null,schemas:t.schemas||null,tView:null,id:""};A1(e);const n=t.dependencies;return e.directiveDefs=Td(n,!1),e.pipeDefs=Td(n,!0),e.id=function cL(t){let i=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(e),e})}function Dg(t,i,e){const n=t.\u0275cmp;n.directiveDefs=Td(i,!1),n.pipeDefs=Td(e,!0)}function sL(t){return Zt(t)||fi(t)}function rL(t){return null!==t}function qe(t){return Ts(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function y1(t,i){if(null==t)return ts;const e={};for(const n in t)if(t.hasOwnProperty(n)){let o=t[n],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),e[o]=n,i&&(i[o]=s)}return e}function ut(t){return Ts(()=>{const i=x1(t);return A1(i),i})}function Vi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[wd]||null}function fi(t){return t[Tg]||null}function Bi(t){return t[Sg]||null}function lo(t,i){const e=t[p1]||null;if(!e&&!0===i)throw new Error(`Type ${ai(t)} does not have '\u0275mod' property.`);return e}function x1(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||ts,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:y1(t.inputs,i),outputs:y1(t.outputs)}}function A1(t){t.features?.forEach(i=>i(t))}function Td(t,i){if(!t)return null;const e=i?Bi:sL;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(rL)}const Un=0,it=1,kt=2,Fn=3,Ho=4,lc=5,xi=6,Da=7,Zn=8,rr=9,ka=10,At=11,cc=12,w1=13,Ma=14,Yn=15,uc=16,Oa=17,ns=18,dc=19,T1=20,ar=21,Es=22,pc=23,hc=24,Ut=25,kg=1,S1=2,is=7,La=9,gi=11;function Xi(t){return Array.isArray(t)&&"object"==typeof t[kg]}function Hi(t){return Array.isArray(t)&&!0===t[kg]}function Mg(t){return 0!=(4&t.flags)}function $r(t){return t.componentOffset>-1}function Ed(t){return 1==(1&t.flags)}function zo(t){return!!t.template}function Og(t){return 0!=(512&t[kt])}function Kr(t,i){return t.hasOwnProperty(Ss)?t[Ss]:null}const lr=Symbol("SIGNAL");function k1(t,i){return(null===t||"object"!=typeof t)&&Object.is(t,i)}let mi=null,Dd=!1;function So(t){const i=mi;return mi=t,i}const kd={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function M1(t){if(Dd)throw new Error("");if(null===mi)return;const i=mi.nextProducerIndex++;Pa(mi),it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function F1(t){Pa(t);for(let i=0;i0}function Pa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function V1(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ds(t,i){const e=Object.create(fL);e.computation=t,i?.equal&&(e.equal=i.equal);const n=()=>{if(O1(e),M1(e),e.value===Pd)throw e.error;return e.value};return n[lr]=e,n}const Pg=Symbol("UNSET"),Fg=Symbol("COMPUTING"),Pd=Symbol("ERRORED"),fL=(()=>({...kd,value:Pg,dirty:!0,error:null,equal:k1,producerMustRecompute:t=>t.value===Pg||t.value===Fg,producerRecomputeValue(t){if(t.value===Fg)throw new Error("Detected cycle in computations.");const i=t.value;t.value=Fg;const e=Md(t);let n;try{n=t.computation()}catch(o){n=Pd,t.error=o}finally{Od(t,e)}i!==Pg&&i!==Pd&&n!==Pd&&t.equal(i,n)?t.value=i:(t.value=n,t.version++)}}))();let B1=function gL(){throw new Error};function Rg(){B1()}let Ng=null;function bn(t,i){const e=Object.create(_L);function n(){return M1(e),e.value}return e.value=t,i?.equal&&(e.equal=i.equal),n.set=z1,n.update=IL,n.mutate=CL,n.asReadonly=vL,n[lr]=e,n}const _L=(()=>({...kd,equal:k1,readonlyFn:void 0}))();function H1(t){t.version++,L1(t),Ng?.()}function z1(t){const i=this[lr];Lg()||Rg(),i.equal(i.value,t)||(i.value=t,H1(i))}function IL(t){Lg()||Rg(),z1.call(this,t(this[lr].value))}function CL(t){const i=this[lr];Lg()||Rg(),t(i.value),H1(i)}function vL(){const t=this[lr];if(void 0===t.readonlyFn){const i=()=>this();i[lr]=t,t.readonlyFn=i}return t.readonlyFn}const U1=()=>{},yL=(()=>({...kd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:U1}))();class xL{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Hn(){return $1}function $1(t){return t.type.prototype.ngOnChanges&&(t.setInput=wL),AL}function AL(){const t=G1(this),i=t?.current;if(i){const e=t.previous;if(e===ts)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function wL(t,i,e,n){const o=this.declaredInputs[e],s=G1(t)||function TL(t,i){return t[K1]=i}(t,{previous:ts,current:null}),r=s.current||(s.current={}),a=s.previous,l=a[o];r[o]=new xL(l&&l.currentValue,i,a===ts),t[n]=i}Hn.ngInherit=!0;const K1="__ngSimpleChanges__";function G1(t){return t[K1]||null}const os=function(t,i,e){};function Sn(t){for(;Array.isArray(t);)t=t[Un];return t}function Fd(t,i){return Sn(i[t])}function Ji(t,i){return Sn(i[t.index])}function Q1(t,i){return t.data[i]}function Fa(t,i){return t[i]}function co(t,i){const e=i[t];return Xi(e)?e:e[Un]}function cr(t,i){return null==i?null:t[i]}function Z1(t){t[Oa]=0}function OL(t){1024&t[kt]||(t[kt]|=1024,X1(t,1))}function Y1(t){1024&t[kt]&&(t[kt]&=-1025,X1(t,-1))}function X1(t,i){let e=t[Fn];if(null===e)return;e[lc]+=i;let n=e;for(e=e[Fn];null!==e&&(1===i&&1===n[lc]||-1===i&&0===n[lc]);)e[lc]+=i,n=e,e=e[Fn]}function J1(t,i){if(256==(256&t[kt]))throw new Ae(911,!1);null===t[ar]&&(t[ar]=[]),t[ar].push(i)}const It={lFrame:cb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function tb(){return It.bindingsEnabled}function Ra(){return null!==It.skipHydrationRootTNode}function Ne(){return It.lFrame.lView}function Yt(){return It.lFrame.tView}function G(t){return It.lFrame.contextLView=t,t[Zn]}function q(t){return It.lFrame.contextLView=null,t}function _i(){let t=nb();for(;null!==t&&64===t.type;)t=t.parent;return t}function nb(){return It.lFrame.currentTNode}function ss(t,i){const e=It.lFrame;e.currentTNode=t,e.isParent=i}function Hg(){return It.lFrame.isParent}function zg(){It.lFrame.isParent=!1}function zi(){const t=It.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Na(){return It.lFrame.bindingIndex++}function Ms(t){const i=It.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function $L(t,i){const e=It.lFrame;e.bindingIndex=e.bindingRootIndex=t,jg(i)}function jg(t){It.lFrame.currentDirectiveIndex=t}function rb(){return It.lFrame.currentQueryIndex}function $g(t){It.lFrame.currentQueryIndex=t}function GL(t){const i=t[it];return 2===i.type?i.declTNode:1===i.type?t[xi]:null}function ab(t,i,e){if(e&zt.SkipSelf){let o=i,s=t;for(;!(o=o.parent,null!==o||e&zt.Host||(o=GL(s),null===o||(s=s[Ma],10&o.type))););if(null===o)return!1;i=o,t=s}const n=It.lFrame=lb();return n.currentTNode=i,n.lView=t,!0}function Kg(t){const i=lb(),e=t[it];It.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function lb(){const t=It.lFrame,i=null===t?null:t.child;return null===i?cb(t):i}function cb(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function ub(){const t=It.lFrame;return It.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const db=ub;function Gg(){const t=ub();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ji(){return It.lFrame.selectedIndex}function Gr(t){It.lFrame.selectedIndex=t}function zn(){const t=It.lFrame;return Q1(t.tView,t.selectedIndex)}function Mt(){It.lFrame.currentNamespace="svg"}let hb=!0;function Rd(){return hb}function ur(t){hb=t}function Nd(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Oa]+=65536),(a>13>16&&(3&t[kt])===i&&(t[kt]+=8192,gb(a,s)):gb(a,s)}const Va=-1;class _c{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Qg(t){return t!==Va}function Ic(t){return 32767&t}function Cc(t,i){let e=function iP(t){return t>>16}(t),n=i;for(;e>0;)n=n[Ma],e--;return n}let Zg=!0;function Hd(t){const i=Zg;return Zg=t,i}const mb=255,_b=5;let oP=0;const rs={};function zd(t,i){const e=Ib(t,i);if(-1!==e)return e;const n=i[it];n.firstCreatePass&&(t.injectorIndex=i.length,Yg(n.data,t),Yg(i,null),Yg(n.blueprint,null));const o=jd(t,i),s=t.injectorIndex;if(Qg(o)){const r=Ic(o),a=Cc(o,i),l=a[it].data;for(let c=0;c<8;c++)i[s+c]=a[r+c]|l[r+c]}return i[s+8]=o,s}function Yg(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Ib(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function jd(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;null!==o;){if(n=wb(o),null===n)return Va;if(e++,o=o[Ma],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Va}function Xg(t,i,e){!function sP(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(rc)&&(n=e[rc]),null==n&&(n=e[rc]=oP++);const o=n&mb;i.data[t+(o>>_b)]|=1<=0?i&mb:uP:i}(e);if("function"==typeof s){if(!ab(i,t,n))return n&zt.Host?Cb(o,0,n):vb(i,e,n,o);try{let r;if(r=s(n),null!=r||n&zt.Optional)return r;_g()}finally{db()}}else if("number"==typeof s){let r=null,a=Ib(t,i),l=Va,c=n&zt.Host?i[Yn][xi]:null;for((-1===a||n&zt.SkipSelf)&&(l=-1===a?jd(t,i):i[a+8],l!==Va&&Ab(n,!1)?(r=i[it],a=Ic(l),i=Cc(l,i)):a=-1);-1!==a;){const u=i[it];if(xb(s,a,u.data)){const p=aP(a,i,e,r,n,c);if(p!==rs)return p}l=i[a+8],l!==Va&&Ab(n,i[it].data[a+8]===c)&&xb(s,a,i)?(r=u,a=Ic(l),i=Cc(l,i)):a=-1}}return o}function aP(t,i,e,n,o,s){const r=i[it],a=r.data[t+8],u=Ud(a,r,e,null==n?$r(a)&&Zg:n!=r&&0!=(3&a.type),o&zt.Host&&s===a);return null!==u?qr(i,r,u,a):rs}function Ud(t,i,e,n,o){const s=t.providerIndexes,r=i.data,a=1048575&s,l=t.directiveStart,u=s>>20,m=o?a+u:t.directiveEnd;for(let _=n?a:a+u;_=l&&b.type===e)return _}if(o){const _=r[l];if(_&&zo(_)&&_.type===e)return l}return null}function qr(t,i,e,n){let o=t[e];const s=i.data;if(function eP(t){return t instanceof _c}(o)){const r=o;r.resolving&&function M4(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Ae(-200,`Circular dependency in DI detected for ${t}${e}`)}(function pn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():xt(t)}(s[e]));const a=Hd(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?Yi(r.injectImpl):null;ab(t,n,zt.Default);try{o=t[e]=r.factory(void 0,s,t,n),i.firstCreatePass&&e>=n.directiveStart&&function XL(t,i,e){const{ngOnChanges:n,ngOnInit:o,ngDoCheck:s}=i.type.prototype;if(n){const r=$1(i);(e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r)}o&&(e.preOrderHooks??=[]).push(0-t,o),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}(e,s[e],i)}finally{null!==c&&Yi(c),Hd(a),r.resolving=!1,db()}}return o}function xb(t,i,e){return!!(e[i+(t>>_b)]&1<{const i=t.prototype.constructor,e=i[Ss]||Jg(i),n=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){const s=o[Ss]||Jg(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Jg(t){return gg(t)?()=>{const i=Jg(vt(t));return i&&i()}:Kr(t)}function wb(t){const i=t[it],e=i.type;return 2===e?i.declTNode:1===e?t[xi]:null}const Ha="__parameters__";function ja(t,i,e){return Ts(()=>{const n=function em(t){return function(...e){if(t){const n=t(...e);for(const o in n)this[o]=n[o]}}}(i);function o(...s){if(this instanceof o)return n.apply(this,s),this;const r=new o(...s);return a.annotation=r,a;function a(l,c,u){const p=l.hasOwnProperty(Ha)?l[Ha]:Object.defineProperty(l,Ha,{value:[]})[Ha];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(r),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $a(t,i){t.forEach(e=>Array.isArray(e)?$a(e,i):i(e))}function Sb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Kd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function yc(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function IP(t,i,e,n){let o=t.length;if(o==i)t.push(e,n);else if(1===o)t.push(n,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>i;)t[o]=t[o-2],o--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function tm(t,i){const e=Ka(t,i);if(e>=0)return t[1|e]}function Ka(t,i){return function Eb(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){const s=n+(o-n>>1),r=t[s<i?o=s:n=s+1}return~(o<|^->||--!>|)/g,zP="\u200b$1\u200b";const rm=new Map;let jP=0;const lm="__ngContext__";function Ai(t,i){Xi(i)?(t[lm]=i[dc],function $P(t){rm.set(t[dc],t)}(i)):t[lm]=i}let cm;function um(t,i){return cm(t,i)}function wc(t){const i=t[Fn];return Hi(i)?i[Fn]:i}function Wb(t){return Zb(t[cc])}function Qb(t){return Zb(t[Ho])}function Zb(t){for(;null!==t&&!Hi(t);)t=t[Ho];return t}function Wa(t,i,e,n,o){if(null!=n){let s,r=!1;Hi(n)?s=n:Xi(n)&&(r=!0,n=n[Un]);const a=Sn(n);0===t&&null!==e?null==o?ey(i,e,a):Wr(i,e,a,o||null,!0):1===t&&null!==e?Wr(i,e,a,o||null,!0):2===t?function rp(t,i,e){const n=op(t,i);n&&function u5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,a,r):3===t&&i.destroyNode(a),null!=s&&function h5(t,i,e,n,o){const s=e[is];s!==Sn(e)&&Wa(i,t,n,s,o);for(let a=gi;ai.replace(HP,zP))}(i))}function np(t,i,e){return t.createElement(i,e)}function Xb(t,i){const e=t[La],n=e.indexOf(i);Y1(i),e.splice(n,1)}function ip(t,i){if(t.length<=gi)return;const e=gi+i,n=t[e];if(n){const o=n[uc];null!==o&&o!==t&&Xb(o,n),i>0&&(t[e-1][Ho]=n[Ho]);const s=Kd(t,gi+i);!function t5(t,i){Sc(t,i,i[At],2,null,null),i[Un]=null,i[xi]=null}(n[it],n);const r=s[ns];null!==r&&r.detachView(s[it]),n[Fn]=null,n[Ho]=null,n[kt]&=-129}return n}function pm(t,i){if(!(256&i[kt])){const e=i[At];i[pc]&&R1(i[pc]),i[hc]&&R1(i[hc]),e.destroyNode&&Sc(t,i,e,3,null,null),function s5(t){let i=t[cc];if(!i)return hm(t[it],t);for(;i;){let e=null;if(Xi(i))e=i[cc];else{const n=i[gi];n&&(e=n)}if(!e){for(;i&&!i[Ho]&&i!==t;)Xi(i)&&hm(i[it],i),i=i[Fn];null===i&&(i=t),Xi(i)&&hm(i[it],i),e=i&&i[Ho]}i=e}}(i)}}function hm(t,i){if(!(256&i[kt])){i[kt]&=-129,i[kt]|=256,function c5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r]():n[-r].unsubscribe(),s+=2}else e[s].call(n[e[s+1]]);null!==n&&(i[Da]=null);const o=i[ar];if(null!==o){i[ar]=null;for(let s=0;s-1){const{encapsulation:s}=t.data[n.directiveStart+o];if(s===To.None||s===To.Emulated)return null}return Ji(n,e)}}(t,i.parent,e)}function Wr(t,i,e,n,o){t.insertBefore(i,e,n,o)}function ey(t,i,e){t.appendChild(i,e)}function ty(t,i,e,n,o){null!==n?Wr(t,i,e,n,o):ey(t,i,e)}function op(t,i){return t.parentNode(i)}function ny(t,i,e){return oy(t,i,e)}let gm,ap,Cm,lp,oy=function iy(t,i,e){return 40&t.type?Ji(t,e):null};function sp(t,i,e,n){const o=fm(t,n,i),s=i[At],a=ny(n.parent||i[xi],n,i);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return ap}()?.createHTML(t)||t}function Za(){if(void 0!==Cm)return Cm;if(typeof document<"u")return document;throw new Ae(210,!1)}function vm(){if(void 0===lp&&(lp=null,Tn.trustedTypes))try{lp=Tn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lp}function dy(t){return vm()?.createHTML(t)||t}function hy(t){return vm()?.createScriptURL(t)||t}class fy{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${n1})`}}function pr(t){return t instanceof fy?t.changingThisBreaksApplicationSecurity:t}function Ec(t,i){const e=function w5(t){return t instanceof fy&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${n1})`)}return e===i}class T5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(Qa(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class S5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Qa(i),e}}const D5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bm(t){return(t=String(t)).match(D5)?t:"unsafe:"+t}function Os(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Dc(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const my=Os("area,br,col,hr,img,wbr"),_y=Os("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Iy=Os("rp,rt"),ym=Dc(my,Dc(_y,Os("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dc(Iy,Os("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Dc(Iy,_y)),xm=Os("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cy=Dc(xm,Os("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Os("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),k5=Os("script,style,template");class M5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!ym.hasOwnProperty(e))return this.sanitizedSomething=!0,!k5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let o=0;o"),!0}endElement(i){const e=i.nodeName.toLowerCase();ym.hasOwnProperty(e)&&!my.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(vy(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const O5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L5=/([^\#-~ |!])/g;function vy(t){return t.replace(/&/g,"&").replace(O5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(L5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let cp;function Am(t){return"content"in t&&function F5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ya=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ya||{});function hr(t){const i=kc();return i?dy(i.sanitize(Ya.HTML,t)||""):Ec(t,"HTML")?dy(pr(t)):function P5(t,i){let e=null;try{cp=cp||function gy(t){const i=new S5(t);return function E5(){try{return!!(new window.DOMParser).parseFromString(Qa(""),"text/html")}catch{return!1}}()?new T5(i):i}(t);let n=i?String(i):"";e=cp.getInertBodyElement(n);let o=5,s=n;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,n=s,s=e.innerHTML,e=cp.getInertBodyElement(n)}while(n!==s);return Qa((new M5).sanitizeChildren(Am(e)||e))}finally{if(e){const n=Am(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Za(),xt(t))}function Ls(t){const i=kc();return i?i.sanitize(Ya.URL,t)||"":Ec(t,"URL")?pr(t):bm(xt(t))}function by(t){const i=kc();if(i)return hy(i.sanitize(Ya.RESOURCE_URL,t)||"");if(Ec(t,"ResourceURL"))return hy(pr(t));throw new Ae(904,!1)}function kc(){const t=Ne();return t&&t[ka].sanitizer}const Mc=new Ye("ENVIRONMENT_INITIALIZER"),xy=new Ye("INJECTOR",-1),Ay=new Ye("INJECTOR_DEF_TYPES");class wm{get(i,e=oc){if(e===oc){const n=new Error(`NullInjectorError: No provider for ${ai(i)}!`);throw n.name="NullInjectorError",n}return e}}function z5(...t){return{\u0275providers:wy(0,t),\u0275fromNgModule:!0}}function wy(t,...i){const e=[],n=new Set;let o;const s=r=>{e.push(r)};return $a(i,r=>{const a=r;up(a,s,[],n)&&(o||=[],o.push(a))}),void 0!==o&&Ty(o,s),e}function Ty(t,i){for(let e=0;e{i(s,n)})}}function up(t,i,e,n){if(!(t=vt(t)))return!1;let o=null,s=vd(t);const r=!s&&Zt(t);if(s||r){if(r&&!r.standalone)return!1;o=t}else{const l=t.ngModule;if(s=vd(l),!s)return!1;o=l}const a=n.has(o);if(r){if(a)return!1;if(n.add(o),r.dependencies){const l="function"==typeof r.dependencies?r.dependencies():r.dependencies;for(const c of l)up(c,i,e,n)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;n.add(o);try{$a(s.imports,u=>{up(u,i,e,n)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Ty(c,i)}if(!a){const c=Kr(o)||(()=>new o);i({provide:o,useFactory:c,deps:nn},o),i({provide:Ay,useValue:o,multi:!0},o),i({provide:Mc,useValue:()=>Ze(o),multi:!0},o)}const l=s.providers;if(null!=l&&!a){const c=t;Sm(l,u=>{i(u,c)})}}}return o!==t&&void 0!==t.providers}function Sm(t,i){for(let e of t)mg(e)&&(e=e.\u0275providers),Array.isArray(e)?Sm(e,i):i(e)}const j5=fn({provide:String,useValue:fn});function Em(t){return null!==t&&"object"==typeof t&&j5 in t}function Qr(t){return"function"==typeof t}const Dm=new Ye("Set Injector scope."),dp={},$5={};let km;function pp(){return void 0===km&&(km=new wm),km}class po{}class Xa extends po{get destroyed(){return this._destroyed}constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Om(i,r=>this.processProvider(r)),this.records.set(xy,Ja(void 0,this)),o.has("environment")&&this.records.set(po,Ja(void 0,this));const s=this.records.get(Dm);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ay.multi,nn,zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of i)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const e=sr(this),n=Yi(void 0);try{return i()}finally{sr(e),Yi(n)}}get(i,e=oc,n=zt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(h1))return i[h1](this);n=xd(n);const s=sr(this),r=Yi(void 0);try{if(!(n&zt.SkipSelf)){let l=this.records.get(i);if(void 0===l){const c=function Q5(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ye}(i)&&Cd(i);l=c&&this.injectableDefInScope(c)?Ja(Mm(i),dp):null,this.records.set(i,l)}if(null!=l)return this.hydrate(i,l)}return(n&zt.Self?pp():this.parent).get(i,e=n&zt.Optional&&e===oc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[yd]=a[yd]||[]).unshift(ai(i)),s)throw a;return function G4(t,i,e,n){const o=t[yd];throw i[u1]&&o.unshift(i[u1]),t.message=function q4(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=ai(i);if(Array.isArray(i))o=i.map(ai).join(" -> ");else if("object"==typeof i){let s=[];for(let r in i)if(i.hasOwnProperty(r)){let a=i[r];s.push(r+":"+("string"==typeof a?JSON.stringify(a):ai(a)))}o=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(z4,"\n ")}`}("\n"+t.message,o,e,n),t.ngTokenPath=o,t[yd]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{Yi(r),sr(s)}}resolveInjectorInitializers(){const i=sr(this),e=Yi(void 0);try{const o=this.get(Mc.multi,nn,zt.Self);for(const s of o)s()}finally{sr(i),Yi(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(ai(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ae(205,!1)}processProvider(i){let e=Qr(i=vt(i))?i:vt(i&&i.provide);const n=function G5(t){return Em(t)?Ja(void 0,t.useValue):Ja(Dy(t),dp)}(i);if(Qr(i)||!0!==i.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=Ja(void 0,dp,!0),o.factory=()=>wg(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===dp&&(e.value=$5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=vt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){const e=this._onDestroyHooks.indexOf(i);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Mm(t){const i=Cd(t),e=null!==i?i.factory:Kr(t);if(null!==e)return e;if(t instanceof Ye)throw new Ae(204,!1);if(t instanceof Function)return function K5(t){const i=t.length;if(i>0)throw yc(i,"?"),new Ae(204,!1);const e=function N4(t){return t&&(t[bd]||t[r1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ae(204,!1)}function Dy(t,i,e){let n;if(Qr(t)){const o=vt(t);return Kr(o)||Mm(o)}if(Em(t))n=()=>vt(t.useValue);else if(function Ey(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...wg(t.deps||[]));else if(function Sy(t){return!(!t||!t.useExisting)}(t))n=()=>Ze(vt(t.useExisting));else{const o=vt(t&&(t.useClass||t.provide));if(!function q5(t){return!!t.deps}(t))return Kr(o)||Mm(o);n=()=>new o(...wg(t.deps))}return n}function Ja(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Om(t,i){for(const e of t)Array.isArray(e)?Om(e,i):e&&mg(e)?Om(e.\u0275providers,i):i(e)}const hp=new Ye("AppId",{providedIn:"root",factory:()=>Z5}),Z5="ng",ky=new Ye("Platform Initializer"),$n=new Ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),My=new Ye("AnimationModuleType"),Oy=new Ye("CSP nonce",{providedIn:"root",factory:()=>Za().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ly=(t,i,e)=>null;function Hm(t,i,e=!1){return Ly(t,i,e)}class rF{}class Ry{}class lF{resolveComponentFactory(i){throw function aF(t){const i=Error(`No component factory found for ${ai(t)}.`);return i.ngComponent=t,i}(i)}}let Cp=(()=>{class t{static#e=this.NULL=new lF}return t})();function cF(){return nl(_i(),Ne())}function nl(t,i){return new bt(Ji(t,i))}let bt=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=cF}return t})();function uF(t){return t instanceof bt?t.nativeElement:t}class Pc{}let hn=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function dF(){const t=Ne(),e=co(_i().index,t);return(Xi(e)?e:t)[At]}()}return t})(),pF=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>null})}return t})();class Fc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const hF=new Fc("16.2.12"),Um={};function zy(t,i=null,e=null,n){const o=jy(t,i,e,n);return o.resolveInjectorInitializers(),o}function jy(t,i=null,e=null,n,o=new Set){const s=[e||nn,z5(t)];return n=n||("object"==typeof t?void 0:ai(t)),new Xa(s,i||pp(),n||null,o)}let $i=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=oc;static#t=this.NULL=new wm;static create(e,n){if(Array.isArray(e))return zy({name:""},n,e,"");{const o=e.name??"";return zy({name:o},e.parent,e.providers,o)}}static#n=this.\u0275prov=nt({token:t,providedIn:"any",factory:()=>Ze(xy)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Km(t){return t.ngOriginalError}class Ps{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Km(i);for(;e&&Km(e);)e=Km(e);return e||null}}let vp=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=vF;static#t=this.__NG_ENV_ID__=e=>e}return t})();class CF extends vp{constructor(i){super(),this._lView=i}onDestroy(i){return J1(this._lView,i),()=>function LL(t,i){if(null===t[ar])return;const e=t[ar].indexOf(i);-1!==e&&t[ar].splice(e,1)}(this._lView,i)}}function vF(){return new CF(Ne())}function Gm(t){return i=>{setTimeout(t,void 0,i)}}const ge=class bF extends re{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let o=i,s=e||(()=>null),r=n;if(i&&"object"==typeof i){const l=i;o=l.next?.bind(l),s=l.error?.bind(l),r=l.complete?.bind(l)}this.__isAsync&&(s=Gm(s),o&&(o=Gm(o)),r&&(r=Gm(r)));const a=super.subscribe({next:o,error:s,complete:r});return i instanceof F&&i.add(a),a}};function $y(...t){}class Tt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),typeof Zone>"u")throw new Ae(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&e,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function yF(){const t="function"==typeof Tn.requestAnimationFrame;let i=Tn[t?"requestAnimationFrame":"setTimeout"],e=Tn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function wF(t){const i=()=>{!function AF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Wm(t),t.isCheckStableRunning=!0,qm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Wm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,o,s,r,a)=>{if(function SF(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(o,s,r,a);try{return Ky(t),e.invokeTask(o,s,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&i(),Gy(t)}},onInvoke:(e,n,o,s,r,a,l)=>{try{return Ky(t),e.invoke(o,s,r,a,l)}finally{t.shouldCoalesceRunChangeDetection&&i(),Gy(t)}},onHasTask:(e,n,o,s)=>{e.hasTask(o,s),n===o&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Wm(t),qm(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,o,s)=>(e.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tt.isInAngularZone())throw new Ae(909,!1)}static assertNotInAngularZone(){if(Tt.isInAngularZone())throw new Ae(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+o,i,xF,$y,$y);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const xF={};function qm(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Wm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ky(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gy(t){t._nesting--,qm(t)}class TF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ge,this.onMicrotaskEmpty=new ge,this.onStable=new ge,this.onError=new ge}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}}const qy=new Ye("",{providedIn:"root",factory:Wy});function Wy(){const t=et(Tt);let i=!0;return function S4(...t){const i=ic(t),e=function v4(t,i){return"number"==typeof pg(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Ni(n[0]):Ta(e)(ri(n,i)):es}(new ce(o=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(i),o.complete()})}),new ce(o=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,o.next(!0))})})});const r=t.onUnstable.subscribe(()=>{Tt.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),r.unsubscribe()}}).pipe(t1()))}function Qy(t){return t.ownerDocument}function Fs(t){return t instanceof Function?t():t}let Qm=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function Rc(t){for(;t;){t[kt]|=64;const i=wc(t);if(Og(t)&&!i)return t;t=i}return null}const ex=new Ye("",{providedIn:"root",factory:()=>!1});let yp=null;function ox(t,i){return t[i]??ax()}function sx(t,i){const e=ax();e.producerNode?.length&&(t[i]=yp,e.lView=t,yp=rx())}const RF={...kd,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Rc(t.lView)},lView:null};function rx(){return Object.create(RF)}function ax(){return yp??=rx(),yp}const St={};function h(t){lx(Yt(),Ne(),ji()+t,!1)}function lx(t,i,e,n){if(!n)if(3==(3&i[kt])){const s=t.preOrderCheckHooks;null!==s&&Vd(i,s,e)}else{const s=t.preOrderHooks;null!==s&&Bd(i,s,0,e)}Gr(e)}function V(t,i=zt.Default){const e=Ne();return null===e?Ze(t,i):bb(_i(),e,vt(t),i)}function xp(t,i,e,n,o,s,r,a,l,c,u){const p=i.blueprint.slice();return p[Un]=o,p[kt]=140|n,(null!==c||t&&2048&t[kt])&&(p[kt]|=2048),Z1(p),p[Fn]=p[Ma]=t,p[Zn]=e,p[ka]=r||t&&t[ka],p[At]=a||t&&t[At],p[rr]=l||t&&t[rr]||null,p[xi]=s,p[dc]=function UP(){return jP++}(),p[Es]=u,p[T1]=c,p[Yn]=2==i.type?t[Yn]:p,p}function sl(t,i,e,n,o){let s=t.data[i];if(null===s)s=function Zm(t,i,e,n,o){const s=nb(),r=Hg(),l=t.data[i]=function $F(t,i,e,n,o,s){let r=i?i.injectorIndex:-1,a=0;return Ra()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?s:s&&s.parent,e,i,n,o);return null===t.firstChild&&(t.firstChild=l),null!==s&&(r?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(t,i,e,n,o),function UL(){return It.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=n,s.attrs=o;const r=function mc(){const t=It.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();s.injectorIndex=null===r?-1:r.injectorIndex}return ss(s,!0),s}function Nc(t,i,e,n){if(0===e)return-1;const o=i.length;for(let s=0;sUt&&lx(t,i,Ut,!1),os(a?2:0,o);const c=a?s:null,u=Md(c);try{null!==c&&(c.dirty=!1),e(n,o)}finally{Od(c,u)}}finally{a&&null===i[pc]&&sx(i,pc),Gr(r),os(a?3:1,o)}}function Ym(t,i,e){if(Mg(i)){const n=So(null);try{const s=i.directiveEnd;for(let r=i.directiveStart;rnull;function hx(t,i,e,n){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const s=t[o];null===n?fx(e,i,o,s):n.hasOwnProperty(o)&&fx(e,i,n[o],s)}return e}function fx(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function ho(t,i,e,n,o,s,r,a){const l=Ji(i,e);let u,c=i.inputs;!a&&null!=c&&(u=c[n])?(s_(t,e,u,n,o),$r(i)&&function qF(t,i){const e=co(i,t);16&e[kt]||(e[kt]|=64)}(e,i.index)):3&i.type&&(n=function GF(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),o=null!=r?r(o,i.value||"",n):o,s.setProperty(l,n,o))}function t_(t,i,e,n){if(tb()){const o=null===n?null:{"":-1},s=function JF(t,i){const e=t.directiveRegistry;let n=null,o=null;if(e)for(let s=0;s0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(r)!=a&&r.push(a),r.push(e,n,s)}}(t,i,n,Nc(t,e,o.hostVars,St),o)}function as(t,i,e,n,o,s){const r=Ji(t,i);!function i_(t,i,e,n,o,s,r){if(null==s)t.removeAttribute(i,o,e);else{const a=null==r?xt(s):r(s,n||"",o);t.setAttribute(i,o,a,e)}}(i[At],r,s,t.value,e,n,o)}function sR(t,i,e,n,o,s){const r=s[i];if(null!==r)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,o){const s=typeof Zone>"u"?null:Zone.current,r=function bL(t,i,e){const n=Object.create(yL);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;const o=r=>{n.cleanupFn=r};return n.ref={notify:()=>P1(n),run:()=>{if(n.dirty=!1,n.hasRun&&!F1(n))return;n.hasRun=!0;const r=Md(n);try{n.cleanupFn(),n.cleanupFn=U1,n.fn(o)}finally{Od(n,r)}},cleanup:()=>n.cleanupFn()},n.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,s)},o);let a;this.all.add(r),r.notify();const l=()=>{r.cleanup(),a?.(),this.all.delete(r),this.queue.delete(r)};return a=n?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function a_(t,i){!i?.injector&&function $m(t){if(!a1()&&!function U4(){return Sa}())throw new Ae(-203,!1)}();const e=i?.injector??et($i),n=e.get(Ax),o=!0!==i?.manualCleanup?e.get(vp):null;return n.create(t,o,!!i?.allowSignalWrites)}function wp(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,s=0;if(null!==i)for(let r=0;r0){Sx(t,1);const o=e.components;null!==o&&Dx(t,o,1)}}function Dx(t,i,e){for(let n=0;n-1&&(ip(i,n),Kd(e,n))}this._attachedToViewContainer=!1}pm(this._lView[it],this._lView)}onDestroy(i){J1(this._lView,i)}markForCheck(){Rc(this._cdRefInjectingView||this._lView)}detach(){this._lView[kt]&=-129}reattach(){this._lView[kt]|=128}detectChanges(){Tp(this._lView[it],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function o5(t,i){Sc(t,i,i[At],2,null,null)}(this._lView[it],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ae(902,!1);this._appRef=i}}class hR extends Bc{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Tp(i[it],i,i[Zn],!1)}checkNoChanges(){}get context(){return null}}class kx extends Cp{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Zt(i);return new Hc(e,this.ngModule)}}function Mx(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class gR{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=xd(n);const o=this.injector.get(i,Um,n);return o!==Um||e===Um?o:this.parentInjector.get(i,e,n)}}class Hc extends Ry{get inputs(){const i=this.componentDef,e=i.inputTransforms,n=Mx(i.inputs);if(null!==e)for(const o of n)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return n}get outputs(){return Mx(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function iL(t){return t.map(nL).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,o){let s=(o=o||this.ngModule)instanceof po?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const r=s?new gR(i,s):i,a=r.get(Pc,null);if(null===a)throw new Ae(407,!1);const p={rendererFactory:a,sanitizer:r.get(pF,null),effectManager:r.get(Ax,null),afterRenderEventManager:r.get(Qm,null)},m=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=n?function BF(t,i,e,n){const s=n.get(ex,!1)||e===To.ShadowDom,r=t.selectRootElement(i,s);return function HF(t){px(t)}(r),r}(m,n,this.componentDef.encapsulation,r):np(m,_,function fR(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(_)),W=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let te=null;null!==b&&(te=Hm(b,r,!0));const fe=e_(0,null,null,1,0,null,null,null,null,null,null),Ce=xp(null,fe,null,W,null,null,p,m,r,null,te);let ve,ke;Kg(Ce);try{const Pe=this.componentDef;let $e,Ke=null;Pe.findHostDirectiveDefs?($e=[],Ke=new Map,Pe.findHostDirectiveDefs(Pe,$e,Ke),$e.push(Pe)):$e=[Pe];const pt=function _R(t,i){const e=t[it],n=Ut;return t[n]=i,sl(e,n,2,"#host",null)}(Ce,b),jt=function IR(t,i,e,n,o,s,r){const a=o[it];!function CR(t,i,e,n){for(const o of t)i.mergedAttrs=ac(i.mergedAttrs,o.hostAttrs);null!==i.mergedAttrs&&(wp(i,i.mergedAttrs,!0),null!==e&&uy(n,e,i))}(n,t,i,r);let l=null;null!==i&&(l=Hm(i,o[rr]));const c=s.rendererFactory.createRenderer(i,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const p=xp(o,dx(e),null,u,o[t.index],t,s,c,null,null,l);return a.firstCreatePass&&n_(a,t,n.length-1),Ap(o,p),o[t.index]=p}(pt,b,Pe,$e,Ce,p,m);ke=Q1(fe,Ut),b&&function bR(t,i,e,n){if(n)Eg(t,e,["ng-version",hF.full]);else{const{attrs:o,classes:s}=function oL(t){const i=[],e=[];let n=1,o=2;for(;n0&&cy(t,e,s.join(" "))}}(m,Pe,b,n),void 0!==e&&function yR(t,i,e){const n=t.projection=[];for(let o=0;o=0;n--){const o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=ac(o.hostAttrs,e=ac(e,o.hostAttrs))}}(n)}function Sp(t){return t===ts?{}:t===nn?[]:t}function wR(t,i){const e=t.viewQuery;t.viewQuery=e?(n,o)=>{i(n,o),e(n,o)}:i}function TR(t,i){const e=t.contentQueries;t.contentQueries=e?(n,o,s)=>{i(n,o,s),e(n,o,s)}:i}function SR(t,i){const e=t.hostBindings;t.hostBindings=e?(n,o)=>{i(n,o),e(n,o)}:i}function Rx(t){const i=t.inputConfig,e={};for(const n in i)if(i.hasOwnProperty(n)){const o=i[n];Array.isArray(o)&&o[2]&&(e[n]=o[2])}t.inputTransforms=e}function Ep(t){return!!l_(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function l_(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ls(t,i,e){return t[i]=e}function zc(t,i){return t[i]}function wi(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Zr(t,i,e,n){const o=wi(t,i,e);return wi(t,i+1,n)||o}function Dp(t,i,e,n,o){const s=Zr(t,i,e,n);return wi(t,i+2,o)||s}function Do(t,i,e,n,o,s){const r=Zr(t,i,e,n);return Zr(t,i+2,o,s)||r}function K(t,i,e,n){const o=Ne();return wi(o,Na(),i)&&(Yt(),as(zn(),o,t,i,e,n)),K}function al(t,i,e,n){return wi(t,Na(),e)?i+xt(e)+n:St}function ll(t,i,e,n,o,s){const a=Zr(t,function ks(){return It.lFrame.bindingIndex}(),e,o);return Ms(2),a?i+xt(e)+n+xt(o)+s:St}function g(t,i,e,n,o,s,r,a){const l=Ne(),c=Yt(),u=t+Ut,p=c.firstCreatePass?function XR(t,i,e,n,o,s,r,a,l){const c=i.consts,u=sl(i,t,4,r||null,cr(c,a));t_(i,e,u,cr(c,l)),Nd(i,u);const p=u.tView=e_(2,u,n,o,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return null!==i.queries&&(i.queries.template(i,u),p.queries=i.queries.embeddedTView(u)),u}(u,c,l,i,e,n,o,s,r):c.data[u];ss(p,!1);const m=Qx(c,l,p,t);Rd()&&sp(c,l,m,p),Ai(m,l),Ap(l,l[u]=Ix(m,l,m,p)),Ed(p)&&Xm(c,l,p),null!=r&&Jm(l,p,a)}let Qx=function Zx(t,i,e,n){return ur(!0),i[At].createComment("")};function Bt(t){return Fa(function jL(){return It.lFrame.contextLView}(),Ut+t)}function d(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!1),d}function f_(t,i,e,n,o){const r=o?"class":"style";s_(t,e,i.inputs[r],r,n)}function x(t,i,e,n){const o=Ne(),s=Yt(),r=Ut+t,a=o[At],l=s.firstCreatePass?function n6(t,i,e,n,o,s){const r=i.consts,l=sl(i,t,2,n,cr(r,o));return t_(i,e,l,cr(r,s)),null!==l.attrs&&wp(l,l.attrs,!1),null!==l.mergedAttrs&&wp(l,l.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,l),l}(r,s,o,i,e,n):s.data[r],c=Yx(s,o,l,a,i,t);o[r]=c;const u=Ed(l);return ss(l,!0),uy(a,c,l),32!=(32&l.flags)&&Rd()&&sp(s,o,c,l),0===function PL(){return It.lFrame.elementDepthCount}()&&Ai(c,o),function FL(){It.lFrame.elementDepthCount++}(),u&&(Xm(s,o,l),Ym(s,l,o)),null!==n&&Jm(o,l),x}function A(){let t=_i();Hg()?zg():(t=t.parent,ss(t,!1));const i=t;(function NL(t){return It.skipHydrationRootTNode===t})(i)&&function zL(){It.skipHydrationRootTNode=null}(),function RL(){It.lFrame.elementDepthCount--}();const e=Yt();return e.firstCreatePass&&(Nd(e,t),Mg(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function tP(t){return 0!=(8&t.flags)}(i)&&f_(e,i,Ne(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function nP(t){return 0!=(16&t.flags)}(i)&&f_(e,i,Ne(),i.stylesWithoutHost,!1),A}function le(t,i,e,n){return x(t,i,e,n),A(),le}let Yx=(t,i,e,n,o,s)=>(ur(!0),np(n,o,function pb(){return It.lFrame.currentNamespace}()));function we(t,i,e){const n=Ne(),o=Yt(),s=t+Ut,r=o.firstCreatePass?function r6(t,i,e,n,o){const s=i.consts,r=cr(s,n),a=sl(i,t,8,"ng-container",r);return null!==r&&wp(a,r,!0),t_(i,e,a,cr(s,o)),null!==i.queries&&i.queries.elementStart(i,a),a}(s,o,n,i,e):o.data[s];ss(r,!0);const a=Xx(o,n,r,t);return n[s]=a,Rd()&&sp(o,n,a,r),Ai(a,n),Ed(r)&&(Xm(o,n,r),Ym(o,r,n)),null!=e&&Jm(n,r),we}function Te(){let t=_i();const i=Yt();return Hg()?zg():(t=t.parent,ss(t,!1)),i.firstCreatePass&&(Nd(i,t),Mg(t)&&i.queries.elementEnd(t)),Te}function ze(t,i,e){return we(t,i,e),Te(),ze}let Xx=(t,i,e,n)=>(ur(!0),dm(i[At],""));function De(){return Ne()}function Kc(t){return!!t&&"function"==typeof t.then}function Jx(t){return!!t&&"function"==typeof t.subscribe}function me(t,i,e,n){const o=Ne(),s=Yt(),r=_i();return function tA(t,i,e,n,o,s,r){const a=Ed(n),c=t.firstCreatePass&&bx(t),u=i[Zn],p=vx(i);let m=!0;if(3&n.type||r){const E=Ji(n,i),P=r?r(E):E,W=p.length,te=r?Ce=>r(Sn(Ce[n.index])):n.index;let fe=null;if(!r&&a&&(fe=function c6(t,i,e,n){const o=t.cleanup;if(null!=o)for(let s=0;sl?a[l]:null}"string"==typeof r&&(s+=2)}return null}(t,i,o,n.index)),null!==fe)(fe.__ngLastListenerFn__||fe).__ngNextListenerFn__=s,fe.__ngLastListenerFn__=s,m=!1;else{s=iA(n,i,u,s,!1);const Ce=e.listen(P,o,s);p.push(s,Ce),c&&c.push(o,te,W,W+1)}}else s=iA(n,i,u,s,!1);const _=n.outputs;let b;if(m&&null!==_&&(b=_[o])){const E=b.length;if(E)for(let P=0;P-1?co(t.index,i):i);let l=nA(i,e,n,r),c=s.__ngNextListenerFn__;for(;c;)l=nA(i,e,c,r)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&r.preventDefault(),l}}function f(t=1){return function qL(t){return(It.lFrame.contextLView=function WL(t,i){for(;t>0;)i=i[Ma],t--;return i}(t,It.lFrame.contextLView))[Zn]}(t)}function u6(t,i){let e=null;const n=function X4(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let o=0;o>17&32767}function I_(t){return 2|t}function Yr(t){return(131068&t)>>2}function C_(t,i){return-131069&t|i<<2}function v_(t){return 1|t}function dA(t,i,e,n,o){const s=t[e+1],r=null===i;let a=n?fr(s):Yr(s),l=!1;for(;0!==a&&(!1===l||r);){const u=t[a+1];m6(t[a],i)&&(l=!0,t[a+1]=n?v_(u):I_(u)),a=n?fr(u):Yr(u)}l&&(t[e+1]=n?I_(s):v_(s))}function m6(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Ka(t,i)>=0}const ci={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pA(t){return t.substring(ci.key,ci.keyEnd)}function _6(t){return t.substring(ci.value,ci.valueEnd)}function hA(t,i){const e=ci.textEnd;return e===i?-1:(i=ci.keyEnd=function v6(t,i,e){for(;i32;)i++;return i}(t,ci.key=i,e),gl(t,i,e))}function fA(t,i){const e=ci.textEnd;let n=ci.key=gl(t,i,e);return e===n?-1:(n=ci.keyEnd=function b6(t,i,e){let n;for(;i=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=mA(t,n,e),n=ci.value=gl(t,n,e),n=ci.valueEnd=function y6(t,i,e){let n=-1,o=-1,s=-1,r=i,a=r;for(;r32&&(a=r),s=o,o=n,n=-33&l}return a}(t,n,e),mA(t,n,e))}function gA(t){ci.key=0,ci.keyEnd=0,ci.value=0,ci.valueEnd=0,ci.textEnd=t.length}function gl(t,i,e){for(;i=0;e=fA(i,e))vA(t,pA(i),_6(i))}function Ve(t){Uo(D6,cs,t,!0)}function cs(t,i){for(let e=function I6(t){return gA(t),hA(t,gl(t,0,ci.textEnd))}(i);e>=0;e=hA(i,e))uo(t,pA(i),!0)}function jo(t,i,e,n){const o=Ne(),s=Yt(),r=Ms(2);s.firstUpdatePass&&CA(s,t,r,n),i!==St&&wi(o,r,i)&&bA(s,s.data[ji()],o,o[At],t,o[r+1]=function M6(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ai(pr(t)))),t}(i,e),n,r)}function Uo(t,i,e,n){const o=Yt(),s=Ms(2);o.firstUpdatePass&&CA(o,null,s,n);const r=Ne();if(e!==St&&wi(r,s,e)){const a=o.data[ji()];if(xA(a,n)&&!IA(o,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=fg(l,e||"")),f_(o,a,r,e,n)}else!function k6(t,i,e,n,o,s,r,a){o===St&&(o=nn);let l=0,c=0,u=0=t.expandoStartIndex}function CA(t,i,e,n){const o=t.data;if(null===o[e+1]){const s=o[ji()],r=IA(t,e);xA(s,n)&&null===i&&!r&&(i=!1),i=function A6(t,i,e,n){const o=function Ug(t){const i=It.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let s=n?i.residualClasses:i.residualStyles;if(null===o)0===(n?i.classBindings:i.styleBindings)&&(e=Gc(e=b_(null,t,i,e,n),i.attrs,n),s=null);else{const r=i.directiveStylingLast;if(-1===r||t[r]!==o)if(e=b_(o,t,i,e,n),null===s){let l=function w6(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Yr(n))return t[fr(n)]}(t,i,n);void 0!==l&&Array.isArray(l)&&(l=b_(null,t,i,l[1],n),l=Gc(l,i.attrs,n),function T6(t,i,e,n){t[fr(e?i.classBindings:i.styleBindings)]=n}(t,i,n,l))}else s=function S6(t,i,e){let n;const o=i.directiveEnd;for(let s=1+i.directiveStylingLast;s0)&&(c=!0)):u=e,o)if(0!==l){const m=fr(t[a+1]);t[n+1]=Lp(m,a),0!==m&&(t[m+1]=C_(t[m+1],n)),t[a+1]=function p6(t,i){return 131071&t|i<<17}(t[a+1],n)}else t[n+1]=Lp(a,0),0!==a&&(t[a+1]=C_(t[a+1],n)),a=n;else t[n+1]=Lp(l,0),0===a?a=n:t[l+1]=C_(t[l+1],n),l=n;c&&(t[n+1]=I_(t[n+1])),dA(t,u,n,!0),dA(t,u,n,!1),function g6(t,i,e,n,o){const s=o?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof i&&Ka(s,i)>=0&&(e[n+1]=v_(e[n+1]))}(i,u,t,n,s),r=Lp(a,l),s?i.classBindings=r:i.styleBindings=r}(o,s,i,e,r,n)}}function b_(t,i,e,n,o){let s=null;const r=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let m=e[o+1];m===St&&(m=p?nn:void 0);let _=p?tm(m,n):u===n?m:void 0;if(c&&!Pp(_)&&(_=tm(l,n)),Pp(_)&&(a=_,r))return a;const b=t[o+1];o=r?fr(b):Yr(b)}if(null!==i){let l=s?i.residualClasses:i.residualStyles;null!=l&&(a=tm(l,n))}return a}function Pp(t){return void 0!==t}function xA(t,i){return 0!=(t.flags&(i?8:16))}function Le(t,i=""){const e=Ne(),n=Yt(),o=t+Ut,s=n.firstCreatePass?sl(n,o,1,i,null):n.data[o],r=AA(n,e,s,i,t);e[o]=r,Rd()&&sp(n,e,r,s),ss(s,!1)}let AA=(t,i,e,n,o)=>(ur(!0),function tp(t,i){return t.createText(i)}(i[At],n));function dt(t){return Pt("",t,""),dt}function Pt(t,i,e){const n=Ne(),o=al(n,t,i,e);return o!==St&&Rs(n,ji(),o),Pt}function Fp(t,i,e,n,o){const s=Ne(),r=ll(s,t,i,e,n,o);return r!==St&&Rs(s,ji(),r),Fp}function y_(t,i,e){Uo(uo,cs,al(Ne(),t,i,e),!0)}function x_(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!0),x_}const Xr=void 0;var X6=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Y6(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ml={};function Ki(t){const i=function J6(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=UA(i);if(e)return e;const n=i.split("-")[0];if(e=UA(n),e)return e;if("en"===n)return X6;throw new Ae(701,!1)}function UA(t){return t in ml||(ml[t]=Tn.ng&&Tn.ng.common&&Tn.ng.common.locales&&Tn.ng.common.locales[t]),ml[t]}var En=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(En||{});const _l="en-US";let $A=_l;function T_(t,i,e,n,o){if(t=vt(t),Array.isArray(t))for(let s=0;s>20;if(Qr(t)||!t.multi){const _=new _c(c,o,V),b=E_(l,i,o?u:u+m,p);-1===b?(Xg(zd(a,r),s,l),S_(s,t,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(_),r.push(_)):(e[b]=_,r[b]=_)}else{const _=E_(l,i,u+m,p),b=E_(l,i,u,u+m),P=b>=0&&e[b];if(o&&!P||!o&&!(_>=0&&e[_])){Xg(zd(a,r),s,l);const W=function X9(t,i,e,n,o){const s=new _c(t,e,V);return s.multi=[],s.index=i,s.componentProviders=0,gw(s,o,n&&!e),s}(o?Y9:Z9,e.length,o,n,c);!o&&P&&(e[b].providerFactory=W),S_(s,t,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(W),r.push(W)}else S_(s,t,_>-1?_:b,gw(e[o?b:_],c,!o&&n));!o&&n&&P&&e[b].componentProviders++}}}function S_(t,i,e,n){const o=Qr(i),s=function U5(t){return!!t.useClass}(i);if(o||s){const l=(s?vt(i.useClass):i).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){const u=c.indexOf(e);-1===u?c.push(e,[n,l]):c[u+1].push(n,l)}else c.push(e,l)}}}function gw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function E_(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>function Q9(t,i,e){const n=Yt();if(n.firstCreatePass){const o=zo(t);T_(e,n.data,n.blueprint,o,!0),T_(i,n.data,n.blueprint,o,!1)}}(n,o?o(t):t,i)}}class Jr{}class mw{}class k_ extends Jr{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kx(this);const o=lo(i);this._bootstrapComponents=Fs(o.bootstrap),this._r3Injector=jy(i,e,[{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver},...n],ai(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class M_ extends mw{constructor(i){super(),this.moduleType=i}create(i){return new k_(this.moduleType,i,[])}}class _w extends Jr{constructor(i){super(),this.componentFactoryResolver=new kx(this),this.instance=null;const e=new Xa([...i.providers,{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver}],i.parent||pp(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function O_(t,i,e=null){return new _w({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}let t7=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=wy(0,e.type),o=n.length>0?O_([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=nt({token:t,providedIn:"environment",factory:()=>new t(Ze(po))})}return t})();function Et(t){t.getStandaloneInjector=i=>i.get(t7).getOrCreateStandaloneInjector(t)}function Jt(t,i,e){const n=zi()+t,o=Ne();return o[n]===St?ls(o,n,e?i.call(e):i()):zc(o,n)}function He(t,i,e,n){return function ww(t,i,e,n,o,s){const r=i+e;return wi(t,r,o)?ls(t,r+1,s?n.call(s,o):n(o)):Xc(t,r+1)}(Ne(),zi(),t,i,e,n)}function mt(t,i,e,n,o){return Tw(Ne(),zi(),t,i,e,n,o)}function Rn(t,i,e,n,o,s){return function Sw(t,i,e,n,o,s,r,a){const l=i+e;return Dp(t,l,o,s,r)?ls(t,l+3,a?n.call(a,o,s,r):n(o,s,r)):Xc(t,l+3)}(Ne(),zi(),t,i,e,n,o,s)}function gr(t,i,e,n,o,s,r){return function Ew(t,i,e,n,o,s,r,a,l){const c=i+e;return Do(t,c,o,s,r,a)?ls(t,c+4,l?n.call(l,o,s,r,a):n(o,s,r,a)):Xc(t,c+4)}(Ne(),zi(),t,i,e,n,o,s,r)}function Hp(t,i,e,n,o,s,r,a){const l=zi()+t,c=Ne(),u=Do(c,l,e,n,o,s);return wi(c,l+4,r)||u?ls(c,l+5,a?i.call(a,e,n,o,s,r):i(e,n,o,s,r)):zc(c,l+5)}function ea(t,i,e,n,o,s,r,a,l){const c=zi()+t,u=Ne(),p=Do(u,c,e,n,o,s);return Zr(u,c+4,r,a)||p?ls(u,c+6,l?i.call(l,e,n,o,s,r,a):i(e,n,o,s,r,a)):zc(u,c+6)}function zp(t,i,e,n){return function Dw(t,i,e,n,o,s){let r=i+e,a=!1;for(let l=0;l=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];const s=n.factory||(n.factory=Kr(n.type)),a=Yi(V);try{const l=Hd(!1),c=s();return Hd(l),function t6(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,Ne(),o,c),c}finally{Yi(a)}}function Cl(t,i,e,n){const o=t+Ut,s=Ne(),r=Fa(s,o);return function Jc(t,i){return t[it].data[i].pure}(s,o)?Tw(s,zi(),i,r.transform,e,n,r):r.transform(e,n)}function _7(){return this._results[Symbol.iterator]()}class P_{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new ge)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=P_.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_7)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const o=function Eo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function mP(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n0&&(e[o-1][Ho]=i),n{class t{static#e=this.__NG_ELEMENT_ID__=y7}return t})();const v7=$o,b7=class extends v7{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){const o=function I7(t,i,e,n){const o=i.tView,a=xp(t,o,e,4096&t[kt]?4096:16,null,i,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[uc]=t[i.index];const c=t[ns];return null!==c&&(a[ns]=c.createEmbeddedView(o)),r_(o,a,e),a}(this._declarationLView,this._declarationTContainer,i,{injector:e,hydrationInfo:n});return new Bc(o)}};function y7(){return jp(_i(),Ne())}function jp(t,i){return 4&t.type?new b7(i,t,nl(t,i)):null}let go=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=E7}return t})();function E7(){return Rw(_i(),Ne())}const D7=go,Pw=class extends D7{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return nl(this._hostTNode,this._hostLView)}get injector(){return new Ui(this._hostTNode,this._hostLView)}get parentInjector(){const i=jd(this._hostTNode,this._hostLView);if(Qg(i)){const e=Cc(i,this._hostLView),n=Ic(i);return new Ui(e[it].data[n+8],e)}return new Ui(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=Fw(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-gi}createEmbeddedView(i,e,n){let o,s;"number"==typeof n?o=n:null!=n&&(o=n.index,s=n.injector);const a=i.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(a,o,false),a}createComponent(i,e,n,o,s){const r=i&&!function bc(t){return"function"==typeof t}(i);let a;if(r)a=e;else{const E=e||{};a=E.index,n=E.injector,o=E.projectableNodes,s=E.environmentInjector||E.ngModuleRef}const l=r?i:new Hc(Zt(i)),c=n||this.parentInjector;if(!s&&null==l.ngModule){const P=(r?c:this.parentInjector).get(po,null);P&&(s=P)}Zt(l.componentType??{});const _=l.create(c,o,null,s);return this.insertImpl(_.hostView,a,false),_}insert(i,e){return this.insertImpl(i,e,!1)}insertImpl(i,e,n){const o=i._lView;if(function ML(t){return Hi(t[Fn])}(o)){const l=this.indexOf(i);if(-1!==l)this.detach(l);else{const c=o[Fn],u=new Pw(c,c[xi],c[Fn]);u.detach(u.indexOf(i))}}const r=this._adjustIndex(e),a=this._lContainer;return C7(a,o,r,!n),i.attachToViewContainerRef(),Sb(F_(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=Fw(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);n&&(Kd(F_(this._lContainer),e),pm(n[it],n))}detach(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);return n&&null!=Kd(F_(this._lContainer),e)?new Bc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Fw(t){return t[8]}function F_(t){return t[8]||(t[8]=[])}function Rw(t,i){let e;const n=i[t.index];return Hi(n)?e=n:(e=Ix(n,i,null,t),i[t.index]=e,Ap(i,e)),Nw(e,i,t,n),new Pw(e,t,i)}let Nw=function Vw(t,i,e,n){if(t[is])return;let o;o=8&e.type?Sn(n):function k7(t,i){const e=t[At],n=e.createComment(""),o=Ji(i,t);return Wr(e,op(e,o),n,function d5(t,i){return t.nextSibling(i)}(e,o),!1),n}(i,e),t[is]=o};class R_{constructor(i){this.queryList=i,this.matches=null}clone(){return new R_(this.queryList)}setDirty(){this.queryList.setDirty()}}class N_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,o=[];for(let s=0;s0)n.push(r[a/2]);else{const c=s[a+1],u=i[-l];for(let p=gi;p{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=et(G_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const s=o();if(Kc(s))e.push(s);else if(Jx(s)){const r=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(r)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),a2=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const us=new Ye("LocaleId",{providedIn:"root",factory:()=>et(us,zt.Optional|zt.SkipSelf)||function sN(){return typeof $localize<"u"&&$localize.locale||_l}()});let Kp=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xo(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class lN{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let l2=(()=>{class t{compileModuleSync(e){return new M_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=Fs(lo(e).declarations).reduce((r,a)=>{const l=Zt(a);return l&&r.push(new Hc(l)),r},[]);return new lN(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const p2=new Ye(""),qp=new Ye("");let X_,Z_=(()=>{class t{constructor(e,n,o){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,X_||(function kN(t){X_=t}(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:o})}whenStable(e,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Tt),Ze(Y_),Ze(qp))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),Y_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return X_?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),mr=null;const h2=new Ye("AllowMultipleToken"),J_=new Ye("PlatformDestroyListeners"),e0=new Ye("appBootstrapListener");class g2{constructor(i,e){this.name=i,this.token=e}}function _2(t,i,e=[]){const n=`Platform: ${i}`,o=new Ye(n);return(s=[])=>{let r=t0();if(!r||r.injector.get(h2,!1)){const a=[...e,...s,{provide:o,useValue:!0}];t?t(a):function LN(t){if(mr&&!mr.get(h2,!1))throw new Ae(400,!1);(function f2(){!function mL(t){B1=t}(()=>{throw new Ae(600,!1)})})(),mr=t;const i=t.get(C2);(function m2(t){t.get(ky,null)?.forEach(e=>e())})(t)}(function I2(t=[],i){return $i.create({name:i,providers:[{provide:Dm,useValue:"platform"},{provide:J_,useValue:new Set([()=>mr=null])},...t]})}(a,n))}return function FN(t){const i=t0();if(!i)throw new Ae(401,!1);return i}()}}function t0(){return mr?.get(C2)??null}let C2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const o=function RN(t="zone.js",i){return"noop"===t?new TF:"zone.js"===t?new Tt(i):t}(n?.ngZone,function v2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{const s=function e7(t,i,e){return new k_(t,i,e)}(e.moduleType,this.injector,function w2(t){return[{provide:Tt,useFactory:t},{provide:Mc,multi:!0,useFactory:()=>{const i=et(VN,{optional:!0});return()=>i.initialize()}},{provide:A2,useFactory:NN},{provide:qy,useFactory:Wy}]}(()=>o)),r=s.injector.get(Ps,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{r.handleError(l)}});s.onDestroy(()=>{Wp(this._modules,s),a.unsubscribe()})}),function b2(t,i,e){try{const n=e();return Kc(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(r,o,()=>{const a=s.injector.get(q_);return a.runInitializers(),a.donePromise.then(()=>(function KA(t){wo(t,"Expected localeId to be defined"),"string"==typeof t&&($A=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(us,_l)||_l),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const o=y2({},n);return function MN(t,i,e){const n=new M_(e);return Promise.resolve(n)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(e){const n=e.injector.get(ta);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>n.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Ae(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ae(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(J_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(Ze($i))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function y2(t,i){return Array.isArray(i)?i.reduce(y2,t):{...t,...i}}let ta=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=et(A2),this.zoneIsStable=et(qy),this.componentTypes=[],this.components=[],this.isStable=et(Kp).hasPendingTasks.pipe(Ao(e=>e?ht(!1):this.zoneIsStable),function E4(t,i=_e){return t=t??D4,Me((e,n)=>{let o,s=!0;e.subscribe(Ue(n,r=>{const a=i(r);(s||!t(o,a))&&(s=!1,o=a,n.next(r))}))})}(),t1()),this._injector=et(po)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const o=e instanceof Ry;if(!this._injector.get(q_).done)throw!o&&function Ea(t){const i=Zt(t)||fi(t)||Bi(t);return null!==i&&i.standalone}(e),new Ae(405,!1);let r;r=o?e:this._injector.get(Cp).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const a=function ON(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Jr),c=r.create($i.NULL,[],n||r.selector,a),u=c.location.nativeElement,p=c.injector.get(p2,null);return p?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Wp(this.components,c),p?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ae(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Wp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(e0,[]);n.push(...this._bootstrapListeners),n.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Wp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ae(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const A2=new Ye("",{providedIn:"root",factory:()=>et(Ps).handleError.bind(void 0)});function NN(){const t=et(Tt),i=et(Ps);return e=>t.runOutsideAngular(()=>i.handleError(e))}let VN=(()=>{class t{constructor(){this.zone=et(Tt),this.applicationRef=et(ta)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let Ft=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=HN}return t})();function HN(t){return function zN(t,i,e){if($r(t)&&!e){const n=co(t.index,i);return new Bc(n,n)}return 47&t.type?new Bc(i[Yn],i):null}(_i(),Ne(),16==(16&t))}class D2{constructor(){}supports(i){return Ep(i)}create(i){return new qN(i)}}const GN=(t,i)=>i;class qN{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||GN}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,a,r,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,r,o),n=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,s,o)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,s,o)):i=this._addAfter(new WN(e,n),s,o),i}_verifyReinsertion(i,e,n,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?i=this._reinsertAfter(s,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const o=i._prevRemoved,s=i._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const o=null===e?this._itHead:e._next;return i._next=o,i._prev=e,null===o?this._itTail=i:o._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new k2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new k2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class WN{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class QN{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class k2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new QN,this.map.set(e,n)),n.add(i)}get(i,e){const o=this.map.get(i);return o?o.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function M2(t,i,e){const n=t.previousIndex;if(null===n)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const o=this._records.get(i);this._maybeAddToChanges(o,e);const s=o._prev,r=o._next;return s&&(s._next=r),r&&(r._prev=s),o._next=null,o._prev=null,o}const n=new YN(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class YN{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function L2(){return new Yp([new D2])}let Yp=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:L2});constructor(e){this.factories=e}static create(e,n){if(null!=n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||L2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(null!=n)return n;throw new Ae(901,!1)}}return t})();function P2(){return new yl([new O2])}let yl=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:P2});constructor(e){this.factories=e}static create(e,n){if(n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||P2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new Ae(901,!1)}}return t})();const e8=_2(null,"core",[]);let t8=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ta))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function xl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let l0=null;function _r(){return l0}class m8{}const Wt=new Ye("DocumentToken");let c0=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(I8)},providedIn:"platform"})}return t})();const _8=new Ye("Location Initialized");let I8=(()=>{class t extends c0{constructor(){super(),this._doc=et(Wt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function u0(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function U2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ns(t){return t&&"?"!==t[0]?"?"+t:t}let Ir=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(K2)},providedIn:"root"})}return t})();const $2=new Ye("appBaseHref");let K2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??et(Wt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return u0(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Ns(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=u0(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),d0=(()=>{class t{constructor(e){this._subject=new ge,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function b8(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(U2(q2(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Ns(n))}normalize(e){return t.stripTrailingSlash(function v8(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,q2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n,complete:o})}static#e=this.normalizeQueryParams=Ns;static#t=this.joinWithSlash=u0;static#n=this.stripTrailingSlash=U2;static#i=this.\u0275fac=function(n){return new(n||t)(Ze(Ir))};static#o=this.\u0275prov=nt({token:t,factory:function(){return function C8(){return new d0(Ze(Ir))}()},providedIn:"root"})}return t})();function q2(t){return t.replace(/\/index.html$/,"")}var qi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(qi||{}),xn=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(xn||{}),mo=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(mo||{}),Xn=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(Xn||{});function eh(t,i){return Mo(Ki(t)[En.DateFormat],i)}function th(t,i){return Mo(Ki(t)[En.TimeFormat],i)}function nh(t,i){return Mo(Ki(t)[En.DateTimeFormat],i)}function ko(t,i){const e=Ki(t),n=e[En.NumberSymbols][i];if(typeof n>"u"){if(i===Xn.CurrencyDecimal)return e[En.NumberSymbols][Xn.Decimal];if(i===Xn.CurrencyGroup)return e[En.NumberSymbols][Xn.Group]}return n}function Q2(t){if(!t[En.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[En.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Mo(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function h0(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const F8=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nu={},R8=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Vs=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Vs||{}),ln=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ln||{}),cn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(cn||{});function N8(t,i,e,n){let o=function G8(t){if(X2(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,s=1,r=1]=t.split("-").map(a=>+a);return ih(o,s-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(F8))return function q8(t){const i=new Date(0);let e=0,n=0;const o=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-e,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,r,a,l,c),i}(n)}const i=new Date(t);if(!X2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Bs(e,i)||i;let a,r=[];for(;i;){if(a=R8.exec(i),!a){r.push(i);break}{r=r.concat(a.slice(1));const u=r.pop();if(!u)break;i=u}}let l=o.getTimezoneOffset();n&&(l=Y2(n,l),o=function K8(t,i,e){const n=e?-1:1,o=t.getTimezoneOffset();return function $8(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(Y2(i,o)-o))}(o,n,!0));let c="";return r.forEach(u=>{const p=function U8(t){if(g0[t])return g0[t];let i;switch(t){case"G":case"GG":case"GGG":i=Dn(cn.Eras,xn.Abbreviated);break;case"GGGG":i=Dn(cn.Eras,xn.Wide);break;case"GGGGG":i=Dn(cn.Eras,xn.Narrow);break;case"y":i=ii(ln.FullYear,1,0,!1,!0);break;case"yy":i=ii(ln.FullYear,2,0,!0,!0);break;case"yyy":i=ii(ln.FullYear,3,0,!1,!0);break;case"yyyy":i=ii(ln.FullYear,4,0,!1,!0);break;case"Y":i=ah(1);break;case"YY":i=ah(2,!0);break;case"YYY":i=ah(3);break;case"YYYY":i=ah(4);break;case"M":case"L":i=ii(ln.Month,1,1);break;case"MM":case"LL":i=ii(ln.Month,2,1);break;case"MMM":i=Dn(cn.Months,xn.Abbreviated);break;case"MMMM":i=Dn(cn.Months,xn.Wide);break;case"MMMMM":i=Dn(cn.Months,xn.Narrow);break;case"LLL":i=Dn(cn.Months,xn.Abbreviated,qi.Standalone);break;case"LLLL":i=Dn(cn.Months,xn.Wide,qi.Standalone);break;case"LLLLL":i=Dn(cn.Months,xn.Narrow,qi.Standalone);break;case"w":i=f0(1);break;case"ww":i=f0(2);break;case"W":i=f0(1,!0);break;case"d":i=ii(ln.Date,1);break;case"dd":i=ii(ln.Date,2);break;case"c":case"cc":i=ii(ln.Day,1);break;case"ccc":i=Dn(cn.Days,xn.Abbreviated,qi.Standalone);break;case"cccc":i=Dn(cn.Days,xn.Wide,qi.Standalone);break;case"ccccc":i=Dn(cn.Days,xn.Narrow,qi.Standalone);break;case"cccccc":i=Dn(cn.Days,xn.Short,qi.Standalone);break;case"E":case"EE":case"EEE":i=Dn(cn.Days,xn.Abbreviated);break;case"EEEE":i=Dn(cn.Days,xn.Wide);break;case"EEEEE":i=Dn(cn.Days,xn.Narrow);break;case"EEEEEE":i=Dn(cn.Days,xn.Short);break;case"a":case"aa":case"aaa":i=Dn(cn.DayPeriods,xn.Abbreviated);break;case"aaaa":i=Dn(cn.DayPeriods,xn.Wide);break;case"aaaaa":i=Dn(cn.DayPeriods,xn.Narrow);break;case"b":case"bb":case"bbb":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Standalone,!0);break;case"bbbb":i=Dn(cn.DayPeriods,xn.Wide,qi.Standalone,!0);break;case"bbbbb":i=Dn(cn.DayPeriods,xn.Narrow,qi.Standalone,!0);break;case"B":case"BB":case"BBB":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Format,!0);break;case"BBBB":i=Dn(cn.DayPeriods,xn.Wide,qi.Format,!0);break;case"BBBBB":i=Dn(cn.DayPeriods,xn.Narrow,qi.Format,!0);break;case"h":i=ii(ln.Hours,1,-12);break;case"hh":i=ii(ln.Hours,2,-12);break;case"H":i=ii(ln.Hours,1);break;case"HH":i=ii(ln.Hours,2);break;case"m":i=ii(ln.Minutes,1);break;case"mm":i=ii(ln.Minutes,2);break;case"s":i=ii(ln.Seconds,1);break;case"ss":i=ii(ln.Seconds,2);break;case"S":i=ii(ln.FractionalSeconds,1);break;case"SS":i=ii(ln.FractionalSeconds,2);break;case"SSS":i=ii(ln.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=sh(Vs.Short);break;case"ZZZZZ":i=sh(Vs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=sh(Vs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=sh(Vs.Long);break;default:return null}return g0[t]=i,i}(u);c+=p?p(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ih(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Bs(t,i){const e=function x8(t){return Ki(t)[En.LocaleId]}(t);if(nu[e]=nu[e]||{},nu[e][i])return nu[e][i];let n="";switch(i){case"shortDate":n=eh(t,mo.Short);break;case"mediumDate":n=eh(t,mo.Medium);break;case"longDate":n=eh(t,mo.Long);break;case"fullDate":n=eh(t,mo.Full);break;case"shortTime":n=th(t,mo.Short);break;case"mediumTime":n=th(t,mo.Medium);break;case"longTime":n=th(t,mo.Long);break;case"fullTime":n=th(t,mo.Full);break;case"short":const o=Bs(t,"shortTime"),s=Bs(t,"shortDate");n=oh(nh(t,mo.Short),[o,s]);break;case"medium":const r=Bs(t,"mediumTime"),a=Bs(t,"mediumDate");n=oh(nh(t,mo.Medium),[r,a]);break;case"long":const l=Bs(t,"longTime"),c=Bs(t,"longDate");n=oh(nh(t,mo.Long),[l,c]);break;case"full":const u=Bs(t,"fullTime"),p=Bs(t,"fullDate");n=oh(nh(t,mo.Full),[u,p])}return n&&(nu[e][i]=n),n}function oh(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Ko(t,i,e="-",n,o){let s="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,s=e));let r=String(t);for(;r.length0||a>-e)&&(a+=e),t===ln.Hours)0===a&&-12===e&&(a=12);else if(t===ln.FractionalSeconds)return function V8(t,i){return Ko(t,3).substring(0,i)}(a,i);const l=ko(r,Xn.MinusSign);return Ko(a,i,l,n,o)}}function Dn(t,i,e=qi.Format,n=!1){return function(o,s){return function H8(t,i,e,n,o,s){switch(e){case cn.Months:return function T8(t,i,e){const n=Ki(t),s=Mo([n[En.MonthsFormat],n[En.MonthsStandalone]],i);return Mo(s,e)}(i,o,n)[t.getMonth()];case cn.Days:return function w8(t,i,e){const n=Ki(t),s=Mo([n[En.DaysFormat],n[En.DaysStandalone]],i);return Mo(s,e)}(i,o,n)[t.getDay()];case cn.DayPeriods:const r=t.getHours(),a=t.getMinutes();if(s){const c=function k8(t){const i=Ki(t);return Q2(i),(i[En.ExtraData][2]||[]).map(n=>"string"==typeof n?h0(n):[h0(n[0]),h0(n[1])])}(i),u=function M8(t,i,e){const n=Ki(t);Q2(n);const s=Mo([n[En.ExtraData][0],n[En.ExtraData][1]],i)||[];return Mo(s,e)||[]}(i,o,n),p=c.findIndex(m=>{if(Array.isArray(m)){const[_,b]=m,E=r>=_.hours&&a>=_.minutes,P=r0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Vs.Short:return(o>=0?"+":"")+Ko(r,2,s)+Ko(Math.abs(o%60),2,s);case Vs.ShortGMT:return"GMT"+(o>=0?"+":"")+Ko(r,1,s);case Vs.Long:return"GMT"+(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);case Vs.Extended:return 0===n?"Z":(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const z8=0,rh=4;function Z2(t){return ih(t.getFullYear(),t.getMonth(),t.getDate()+(rh-t.getDay()))}function f0(t,i=!1){return function(e,n){let o;if(i){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,r=e.getDate();o=1+Math.floor((r+s)/7)}else{const s=Z2(e),r=function j8(t){const i=ih(t,z8,1).getDay();return ih(t,0,1+(i<=rh?rh:rh+7)-i)}(s.getFullYear()),a=s.getTime()-r.getTime();o=1+Math.round(a/6048e5)}return Ko(o,t,ko(n,Xn.MinusSign))}}function ah(t,i=!1){return function(e,n){return Ko(Z2(e).getFullYear(),t,ko(n,Xn.MinusSign),i)}}const g0={};function Y2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function X2(t){return t instanceof Date&&!isNaN(t.valueOf())}function nT(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[o,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(s)}return null}const b0=/\s+/,iT=[];let Ct=(()=>{class t{constructor(e,n,o,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=o,this._renderer=s,this.initialClasses=iT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(b0):iT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(b0):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(b0).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(n){return new(n||t)(V(Yp),V(yl),V(bt),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class rV{constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((o,s,r)=>{if(null==o.previousIndex)n.createEmbeddedView(this._template,new rV(o.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===s?void 0:s);else if(null!==s){const a=n.get(s);n.move(a,r),sT(a,o)}});for(let o=0,s=n.length;o{sT(n.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(Yp))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function sT(t,i){t.context.$implicit=i.item}let gt=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new aV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rT("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class aV{constructor(){this.$implicit=null,this.ngIf=null}}function rT(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ai(i)}'.`)}class y0{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let wl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),ch=(()=>{class t{constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new y0(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),x0=(()=>{class t{constructor(e,n,o){o._addDefault(new y0(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),Ht=(()=>{class t{constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[o,s]=e.split("."),r=-1===o.indexOf("-")?void 0:dr.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,r):this._renderer.removeStyle(this._ngEl.nativeElement,o,r)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(V(bt),V(yl),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),on=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:r}=this;this._viewRef=n.createEmbeddedView(o,s,r?{injector:r}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(V(go))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]})}return t})();const CV=new Ye("DATE_PIPE_DEFAULT_TIMEZONE"),vV=new Ye("DATE_PIPE_DEFAULT_OPTIONS");let Hs=(()=>{class t{constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,s){if(null==e||""===e||e!=e)return null;try{return N8(e,n??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(r){throw function Go(t,i){return new Ae(2100,!1)}()}}static#e=this.\u0275fac=function(n){return new(n||t)(V(us,16),V(CV,24),V(vV,24))};static#t=this.\u0275pipe=Vi({name:"date",type:t,pure:!0,standalone:!0})}return t})(),Xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();const cT="browser";function ei(t){return t===cT}function uT(t){return"server"===t}let LV=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new PV(Ze(Wt),window)})}return t})();class PV{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function FV(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=n.currentNode;for(;o;){const s=o.shadowRoot;if(s){const r=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(r)return r}o=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],o-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class dT{}class oB extends m8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class E0 extends oB{static makeCurrent(){!function g8(t){l0||(l0=t)}(new E0)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function sB(){return su=su||document.querySelector("base"),su?su.getAttribute("href"):null}();return null==e?null:function rB(t){ph=ph||document.createElement("a"),ph.setAttribute("href",t);const i=ph.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return nT(document.cookie,i)}}let ph,su=null,lB=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const D0=new Ye("EventManagerPlugins");let mT=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,o){return this._findPluginFor(n).addEventListener(e,n,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new Ae(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(D0),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class _T{constructor(i){this._doc=i}}const k0="ng-app-id";let IT=(()=>{class t{constructor(e,n,o,s={}){this.doc=e,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uT(s),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(o=>o.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${k0}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(o=>{null!=o.textContent&&n.set(o.textContent,o)}),n}return null}changeUsageCount(e,n){const o=this.styleRef;if(o.has(e)){const s=o.get(e);return s.usage+=n,s.usage}return o.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===e)return o.delete(n),s.removeAttribute(k0),s;{const r=this.doc.createElement("style");return this.nonce&&r.setAttribute("nonce",this.nonce),r.textContent=n,this.platformIsServer&&r.setAttribute(k0,this.appId),r}}addStyleToHost(e,n){const o=this.getStyleElement(e,n);e.appendChild(o);const s=this.styleRef,r=s.get(n)?.elements;r?r.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(hp),Ze(Oy,8),Ze($n))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const M0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},O0=/%COMP%/g,pB=new Ye("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vT(t,i){return i.map(e=>e.replace(O0,t))}let L0=(()=>{class t{constructor(e,n,o,s,r,a,l,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=r,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uT(a),this.defaultRenderer=new P0(e,r,l,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===To.ShadowDom&&(n={...n,encapsulation:To.Emulated});const o=this.getOrCreateRenderer(e,n);return o instanceof yT?o.applyToHost(e):o instanceof F0&&o.applyStyles(),o}getOrCreateRenderer(e,n){const o=this.rendererByCompId;let s=o.get(n.id);if(!s){const r=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case To.Emulated:s=new yT(l,c,n,this.appId,u,r,a,p);break;case To.ShadowDom:return new mB(l,c,e,n,r,a,this.nonce,p);default:s=new F0(l,c,n,u,r,a,p)}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(mT),Ze(IT),Ze(hp),Ze(pB),Ze(Wt),Ze($n),Ze(Tt),Ze(Oy))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class P0{constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(M0[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(bT(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(bT(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?this.doc.querySelector(i):i;if(!n)throw new Ae(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;const s=M0[o];s?i.setAttributeNS(s,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const o=M0[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(dr.DashCase|dr.Important)?i.style.setProperty(e,n,o&dr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&dr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){if("string"==typeof i&&!(i=_r().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if("__ngUnwrap__"===e)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))&&e.preventDefault()}}}function bT(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class mB extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vT(o.id,o.styles);for(const u of c){const p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class F0 extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?vT(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class yT extends F0{constructor(i,e,n,o,s,r,a,l){const c=o+"-"+n.id;super(i,e,n,s,r,a,l,c),this.contentAttr=function hB(t){return"_ngcontent-%COMP%".replace(O0,t)}(c),this.hostAttr=function fB(t){return"_nghost-%COMP%".replace(O0,t)}(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let _B=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o){return e.addEventListener(n,o,!1),()=>this.removeEventListener(e,n,o)}removeEventListener(e,n,o){return e.removeEventListener(n,o)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const xT=["alt","control","meta","shift"],IB={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let vB=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,o){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(n.pop());let r="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),r="code."),xT.forEach(c=>{const u=n.indexOf(c);u>-1&&(n.splice(u,1),r+=c+".")}),r+=s,0!=n.length||0===s.length)return null;const l={};return l.domEventName=o,l.fullKey=r,l}static matchEventFullKeyCode(e,n){let o=IB[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(o=e.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),xT.forEach(r=>{r!==o&&(0,CB[r])(e)&&(s+=r+".")}),s+=o,s===n)}static eventCallback(e,n,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const AB=_2(e8,"browser",[{provide:$n,useValue:cT},{provide:ky,useValue:function bB(){E0.makeCurrent()},multi:!0},{provide:Wt,useFactory:function xB(){return function C5(t){Cm=t}(document),document},deps:[]}]),wB=new Ye(""),TT=[{provide:qp,useClass:class aB{addToWindow(i){Tn.getAngularTestability=(n,o=!0)=>{const s=i.findTestabilityInTree(n,o);if(null==s)throw new Ae(5103,!1);return s},Tn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Tn.getAllAngularRootElements=()=>i.getAllRootElements(),Tn.frameworkStabilizers||(Tn.frameworkStabilizers=[]),Tn.frameworkStabilizers.push(n=>{const o=Tn.getAllAngularTestabilities();let s=o.length,r=!1;const a=function(l){r=r||l,s--,0==s&&n(r)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:p2,useClass:Z_,deps:[Tt,Y_,qp]},{provide:Z_,useClass:Z_,deps:[Tt,Y_,qp]}],ST=[{provide:Dm,useValue:"root"},{provide:Ps,useFactory:function yB(){return new Ps},deps:[]},{provide:D0,useClass:_B,multi:!0,deps:[Wt,Tt,$n]},{provide:D0,useClass:vB,multi:!0,deps:[Wt]},L0,IT,mT,{provide:Pc,useExisting:L0},{provide:dT,useClass:lB,deps:[]},[]];let R0=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:hp,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wB,12))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[...ST,...TT],imports:[Xe,t8]})}return t})(),ET=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:function(n){let o=null;return o=n?new n:function SB(){return new ET(Ze(Wt))}(),o},providedIn:"root"})}return t})();typeof window<"u"&&window;const{isArray:OB}=Array,{getPrototypeOf:LB,prototype:PB,keys:FB}=Object;function OT(t){if(1===t.length){const i=t[0];if(OB(i))return{args:i,keys:null};if(function RB(t){return t&&"object"==typeof t&&LB(t)===PB}(i)){const e=FB(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:NB}=Array;function V0(t){return at(i=>function VB(t,i){return NB(i)?t(...i):t(i)}(t,i))}function LT(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}let PT=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt))};static#t=this.\u0275dir=ut({type:t})}return t})(),ia=(()=>{class t extends PT{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275dir=ut({type:t,features:[st]})}return t})();const un=new Ye("NgValueAccessor"),zB={provide:un,useExisting:ft(()=>B0),multi:!0},UB=new Ye("CompositionEventMode");let B0=(()=>{class t extends PT{constructor(e,n,o){super(e,n),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jB(){const t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt),V(UB,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){1&n&&me("input",function(r){return o._handleInput(r.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(r){return o._compositionEnd(r.target.value)})},features:[yt([zB]),st]})}return t})();const Si=new Ye("NgValidators"),br=new Ye("NgAsyncValidators");function KT(t){return null!=t}function GT(t){return Kc(t)?ri(t):t}function qT(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function WT(t,i){return i.map(e=>e(t))}function QT(t){return t.map(i=>function KB(t){return!t.validate}(i)?i:e=>i.validate(e))}function H0(t){return null!=t?function ZT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return qT(WT(e,i))}}(QT(t)):null}function z0(t){return null!=t?function YT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return function BB(...t){const i=Yv(t),{args:e,keys:n}=OT(t),o=new ce(s=>{const{length:r}=e;if(!r)return void s.complete();const a=new Array(r);let l=r,c=r;for(let u=0;u{p||(p=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!p)&&(c||s.next(n?LT(n,a):a),s.complete())}))}});return i?o.pipe(V0(i)):o}(WT(e,i).map(GT)).pipe(at(qT))}}(QT(t)):null}function XT(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function j0(t){return t?Array.isArray(t)?t:[t]:[]}function fh(t,i){return Array.isArray(t)?t.includes(i):t===i}function tS(t,i){const e=j0(i);return j0(t).forEach(o=>{fh(e,o)||e.push(o)}),e}function nS(t,i){return j0(i).filter(e=>!fh(t,e))}class iS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=H0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=z0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Wi extends iS{get formDirective(){return null}get path(){return null}}class ds extends iS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oS{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let sS=(()=>{class t extends oS{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(ds,2))};static#t=this.\u0275dir=ut({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){2&n&&Ii("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[st]})}return t})();const ru="VALID",mh="INVALID",Tl="PENDING",au="DISABLED";function _h(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class cS{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===ru}get invalid(){return this.status===mh}get pending(){return this.status==Tl}get disabled(){return this.status===au}get enabled(){return this.status!==au}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(tS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(tS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(nS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(nS(i,this._rawAsyncValidators))}hasValidator(i){return fh(this._rawValidators,i)}hasAsyncValidator(i){return fh(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tl,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=au,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=ru,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ru||this.status===Tl)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?au:ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tl,this._hasOwnPendingAsyncValidator=!0;const e=GT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?au:this.errors?mh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tl)?Tl:this._anyControlsHaveStatus(mh)?mh:ru}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){_h(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function ZB(t){return Array.isArray(t)?H0(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function YB(t){return Array.isArray(t)?z0(t):t||null}(this._rawAsyncValidators)}}const Sl=new Ye("CallSetDisabledState",{providedIn:"root",factory:()=>Ih}),Ih="always";function lu(t,i,e=Ih){(function W0(t,i){const e=function JT(t){return t._rawValidators}(t);null!==i.validator?t.setValidators(XT(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=function eS(t){return t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(XT(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const o=()=>t.updateValueAndValidity();bh(i._rawValidators,o),bh(i._rawAsyncValidators,o)})(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function eH(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&uS(t,i)})}(t,i),function nH(t,i){const e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function tH(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&uS(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function JB(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function bh(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function uS(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function hS(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function fS(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const gS=class extends cS{constructor(i=null,e,n){super(function K0(t){return(_h(t)?t.validators:t)||null}(e),function G0(t,i){return(_h(i)?i.asyncValidators:t)||null}(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_h(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=fS(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){hS(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){hS(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){fS(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},uH={provide:ds,useExisting:ft(()=>xh)},IS=(()=>Promise.resolve())();let xh=(()=>{class t extends ds{constructor(e,n,o,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this.control=new gS,this._registered=!1,this.name="",this.update=new ge,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=function Y0(t,i){if(!i)return null;let e,n,o;return Array.isArray(i),i.forEach(s=>{s.constructor===B0?e=s:function sH(t){return Object.getPrototypeOf(t.constructor)===ia}(s)?n=s:o=s}),o||n||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Z0(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){IS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,o=0!==n&&xl(n);IS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Ch(t,i){return[...i.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi,9),V(Si,10),V(br,10),V(un,10),V(Ft,8),V(Sl,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([uH]),st,Hn]})}return t})(),vS=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})(),FH=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[vS]})}return t})(),uu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sl,useValue:e.callSetDisabledState??Ih}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[FH]})}return t})();function El(t,i){return L(i)?si(t,i,1):si(t,1)}function zs(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>t.call(i,s,o++)&&n.next(s)))})}function du(t){return Me((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}class Ah{}class wh{}class qo{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const o=e.slice(0,n),s=o.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof qo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const o=("a"===i.op?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":const s=i.value;if(s){let r=this.headers.get(e);if(!r)return;r=r.filter(a=>-1===s.indexOf(a)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(i,e){const n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class NH{encodeKey(i){return VS(i)}encodeValue(i){return VS(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const BH=/%(\d[a-f0-9])/gi,HH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VS(t){return encodeURIComponent(t).replace(BH,(i,e)=>HH[e]??i)}function Th(t){return`${t}`}class yr{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new NH,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function VH(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[r,a]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],l=e.get(r)||[];l.push(a),e.set(r,l)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],o=Array.isArray(n)?n.map(Th):[Th(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new yr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Th(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(Th(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class zH{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function BS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function HS(t){return typeof Blob<"u"&&t instanceof Blob}function zS(t){return typeof FormData<"u"&&t instanceof FormData}class pu{constructor(i,e,n,o){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function jH(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qo),this.context||(this.context=new zH),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ap.set(m,i.setHeaders[m]),l)),i.setParams&&(c=Object.keys(i.setParams).reduce((p,m)=>p.set(m,i.setParams[m]),c)),new pu(e,n,s,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:r})}}var Dl=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Dl||{});class sI{constructor(i,e=200,n="OK"){this.headers=i.headers||new qo,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class rI extends sI{constructor(i={}){super(i),this.type=Dl.ResponseHeader}clone(i={}){return new rI({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class kl extends sI{constructor(i={}){super(i),this.type=Dl.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new kl({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class jS extends sI{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function aI(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let lI=(()=>{class t{constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof pu)s=e;else{let l,c;l=o.headers instanceof qo?o.headers:new qo(o.headers),o.params&&(c=o.params instanceof yr?o.params:new yr({fromObject:o.params})),s=new pu(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const r=ht(s).pipe(El(l=>this.handler.handle(l)));if(e instanceof pu||"events"===o.observe)return r;const a=r.pipe(zs(l=>l instanceof kl));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(at(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(at(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new yr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,aI(o,n))}post(e,n,o={}){return this.request("POST",e,aI(o,n))}put(e,n,o={}){return this.request("PUT",e,aI(o,n))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Ah))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function KS(t,i){return i(t)}function KH(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}const qH=new Ye(""),hu=new Ye(""),GS=new Ye("");function WH(){let t=null;return(i,e)=>{null===t&&(t=(et(qH,{optional:!0})??[]).reduceRight(KH,KS));const n=et(Kp),o=n.add();return t(i,e).pipe(du(()=>n.remove(o)))}}let qS=(()=>{class t extends Ah{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=et(Kp)}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(hu),...this.injector.get(GS,[])]));this.chain=o.reduceRight((s,r)=>function GH(t,i,e){return(n,o)=>e.runInContext(()=>i(n,s=>t(s,o)))}(s,r,this.injector),KS)}const n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(du(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wh),Ze(po))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const XH=/^\)\]\}',?\n/;let QS=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Ae(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?ri(n.\u0275loadImpl()):ht(null)).pipe(Ao(()=>new ce(s=>{const r=n.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((E,P)=>r.setRequestHeader(E,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&r.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();r.responseType="json"!==E?E:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const E=r.statusText||"OK",P=new qo(r.getAllResponseHeaders()),W=function JH(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new rI({headers:P,status:r.status,statusText:E,url:W}),l},u=()=>{let{headers:E,status:P,statusText:W,url:te}=c(),fe=null;204!==P&&(fe=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=fe?200:0);let Ce=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof fe){const ve=fe;fe=fe.replace(XH,"");try{fe=""!==fe?JSON.parse(fe):null}catch(ke){fe=ve,Ce&&(Ce=!1,fe={error:ke,text:fe})}}Ce?(s.next(new kl({body:fe,headers:E,status:P,statusText:W,url:te||void 0})),s.complete()):s.error(new jS({error:fe,headers:E,status:P,statusText:W,url:te||void 0}))},p=E=>{const{url:P}=c(),W=new jS({error:E,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});s.error(W)};let m=!1;const _=E=>{m||(s.next(c()),m=!0);let P={type:Dl.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),s.next(P)},b=E=>{let P={type:Dl.UploadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),s.next(P)};return r.addEventListener("load",u),r.addEventListener("error",p),r.addEventListener("timeout",p),r.addEventListener("abort",p),e.reportProgress&&(r.addEventListener("progress",_),null!==a&&r.upload&&r.upload.addEventListener("progress",b)),r.send(a),s.next({type:Dl.Sent}),()=>{r.removeEventListener("error",p),r.removeEventListener("abort",p),r.removeEventListener("load",u),r.removeEventListener("timeout",p),e.reportProgress&&(r.removeEventListener("progress",_),null!==a&&r.upload&&r.upload.removeEventListener("progress",b)),r.readyState!==r.DONE&&r.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(dT))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const cI=new Ye("XSRF_ENABLED"),ZS=new Ye("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),YS=new Ye("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class XS{}let nz=(()=>{class t{constructor(e,n,o){this.doc=e,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=nT(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze($n),Ze(ZS))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function iz(t,i){const e=t.url.toLowerCase();if(!et(cI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=et(XS).getToken(),o=et(YS);return null!=n&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var xr=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(xr||{});function oz(...t){const i=[lI,QS,qS,{provide:Ah,useExisting:qS},{provide:wh,useExisting:QS},{provide:hu,useValue:iz,multi:!0},{provide:cI,useValue:!0},{provide:XS,useClass:nz}];for(const e of t)i.push(...e.\u0275providers);return function Tm(t){return{\u0275providers:t}}(i)}const JS=new Ye("LEGACY_INTERCEPTOR_FN");function sz(){return function sa(t,i){return{\u0275kind:t,\u0275providers:i}}(xr.LegacyInterceptors,[{provide:JS,useFactory:WH},{provide:hu,useExisting:JS,multi:!0}])}let eE=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[oz(sz())]})}return t})();class tE{}class dz{}const js="*";function Oo(t,i){return{type:7,name:t,definitions:i,options:{}}}function On(t,i=null){return{type:4,styles:i,timings:t}}function nE(t,i=null){return{type:2,steps:t,options:i}}function en(t){return{type:6,styles:t,offset:null}}function Us(t,i,e){return{type:0,name:t,styles:i,options:e}}function Ln(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ml(t,i=null){return{type:8,animation:t,options:i}}function Eh(t,i=null){return{type:10,animation:t,options:i}}class fu{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class iE{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,o=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==s&&this._onFinish()}),r.onDestroy(()=>{++n==s&&this._onDestroy()}),r.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function oE(t){return new Ae(3e3,!1)}function Ar(t){switch(t.length){case 0:return new fu;case 1:return t[0];default:return new iE(t)}}function sE(t,i,e=new Map,n=new Map){const o=[],s=[];let r=-1,a=null;if(i.forEach(l=>{const c=l.get("offset"),u=c==r,p=u&&a||new Map;l.forEach((m,_)=>{let b=_,E=m;if("offset"!==_)switch(b=t.normalizePropertyName(b,o),E){case"!":E=e.get(_);break;case js:E=n.get(_);break;default:E=t.normalizeStyleValue(_,b,E,o)}p.set(b,E)}),u||s.push(p),a=p,r=c}),o.length)throw function Pz(t){return new Ae(3502,!1)}();return s}function dI(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&pI(e,"start",t)));break;case"done":t.onDone(()=>n(e&&pI(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&pI(e,"destroy",t)))}}function pI(t,i,e){const s=hI(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),r=t._data;return null!=r&&(s._data=r),s}function hI(t,i,e,n,o="",s=0,r){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:s,disabled:!!r}}function _o(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function rE(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}const Gz=(()=>typeof document>"u"?null:document.documentElement)();function fI(t){const i=t.parentNode||t.host||null;return i===Gz?null:i}let ra=null,aE=!1;function lE(t,i){for(;i;){if(i===t)return!0;i=fI(i)}return!1}function cE(t,i,e){if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]}let uE=(()=>{class t{validateStyleProperty(e){return function Wz(t){ra||(ra=function Qz(){return typeof document<"u"?document.body:null}()||{},aE=!!ra.style&&"WebkitAppearance"in ra.style);let i=!0;return ra.style&&!function qz(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in ra.style,!i&&aE&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in ra.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return lE(e,n)}getParentElement(e){return fI(e)}query(e,n,o){return cE(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,s,r,a=[],l){return new fu(o,s)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),gI=(()=>{class t{static#e=this.NOOP=new uE}return t})();const Zz=1e3,mI="ng-enter",Dh="ng-leave",kh="ng-trigger",Mh=".ng-trigger",pE="ng-animating",_I=".ng-animating";function $s(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:II(parseFloat(i[1]),i[2])}function II(t,i){return"s"===i?t*Zz:t}function Oh(t,i,e){return t.hasOwnProperty("duration")?t:function Xz(t,i,e){let o,s=0,r="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return i.push(oE()),{duration:0,delay:0,easing:""};o=II(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=II(parseFloat(l),a[4]));const c=a[5];c&&(r=c)}else o=t;if(!e){let a=!1,l=i.length;o<0&&(i.push(function pz(){return new Ae(3100,!1)}()),a=!0),s<0&&(i.push(function hz(){return new Ae(3101,!1)}()),a=!0),a&&i.splice(l,0,oE())}return{duration:o,delay:s,easing:r}}(t,i,e)}function gu(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function hE(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function wr(t,i=new Map,e){if(e)for(let[n,o]of e)i.set(n,o);for(let[n,o]of t)i.set(n,o);return i}function ps(t,i,e){i.forEach((n,o)=>{const s=vI(o);e&&!e.has(o)&&e.set(o,t.style[s]),t.style[s]=n})}function aa(t,i){i.forEach((e,n)=>{const o=vI(n);t.style[o]=""})}function mu(t){return Array.isArray(t)?1==t.length?t[0]:nE(t):t}const CI=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(t){let i=[];if("string"==typeof t){let e;for(;e=CI.exec(t);)i.push(e[1]);CI.lastIndex=0}return i}function _u(t,i,e){const n=t.toString(),o=n.replace(CI,(s,r)=>{let a=i[r];return null==a&&(e.push(function gz(t){return new Ae(3003,!1)}()),a=""),a.toString()});return o==n?t:o}function Lh(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const tj=/-+([a-z0-9])/g;function vI(t){return t.replace(tj,(...i)=>i[1].toUpperCase())}function Io(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function mz(t){return new Ae(3004,!1)}()}}function mE(t,i){return window.getComputedStyle(t)[i]}const Ph="*";function oj(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function sj(t,i,e){if(":"==t[0]){const l=function rj(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof l)return void i.push(l);t=l}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function Dz(t){return new Ae(3015,!1)}()),i;const o=n[1],s=n[2],r=n[3];i.push(_E(o,r));"<"==s[0]&&!(o==Ph&&r==Ph)&&i.push(_E(r,o))}(n,e,i)):e.push(t),e}const Fh=new Set(["true","1"]),Rh=new Set(["false","0"]);function _E(t,i){const e=Fh.has(t)||Rh.has(t),n=Fh.has(i)||Rh.has(i);return(o,s)=>{let r=t==Ph||t==o,a=i==Ph||i==s;return!r&&e&&"boolean"==typeof o&&(r=o?Fh.has(t):Rh.has(t)),!a&&n&&"boolean"==typeof s&&(a=s?Fh.has(i):Rh.has(i)),r&&a}}const aj=new RegExp("s*:selfs*,?","g");function bI(t,i,e,n){return new lj(t).build(i,e,n)}class lj{constructor(i){this._driver=i}build(i,e,n){const o=new dj(e);return this._resetContextStyleTimingState(o),Io(this,mu(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0;const s=[],r=[];return"@"==i.name.charAt(0)&&e.errors.push(function Iz(){return new Ae(3006,!1)}()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,o+=l.depCount,r.push(l)}else e.errors.push(function Cz(){return new Ae(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:r,queryCount:n,depCount:o,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{gE(l).forEach(c=>{r.hasOwnProperty(c)||s.add(c)})})}),s.size&&(Lh(s.values()),e.errors.push(function vz(t,i){return new Ae(3008,!1)}()))}return{type:0,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=Io(this,mu(i.animation),e);return{type:1,matchers:oj(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:la(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>Io(this,n,e)),options:la(i.options)}}visitGroup(i,e){const n=e.currentTime;let o=0;const s=i.steps.map(r=>{e.currentTime=n;const a=Io(this,r,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:s,options:la(i.options)}}visitAnimate(i,e){const n=function hj(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return yI(Oh(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=yI(0,0,"");return s.dynamic=!0,s.strValue=e,s}const o=Oh(e,i);return yI(o.duration,o.delay,o.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let o,s=i.styles?i.styles:en({});if(5==s.type)o=this.visitKeyframes(s,e);else{let r=i.styles,a=!1;if(!r){a=!0;const c={};n.easing&&(c.easing=n.easing),r=en(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(r,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of o)"string"==typeof a?a===js?n.push(a):e.errors.push(new Ae(3002,!1)):n.push(hE(a));let s=!1,r=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(r=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let o=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),i.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let p=!0;u&&(s!=o&&s>=u.startTime&&o<=u.endTime&&(e.errors.push(function yz(t,i,e,n,o){return new Ae(3010,!1)}()),p=!1),s=u.startTime),p&&c.set(l,{startTime:s,endTime:o}),e.options&&function ej(t,i,e){const n=i.params||{},o=gE(t);o.length&&o.forEach(s=>{n.hasOwnProperty(s)||e.push(function fz(t){return new Ae(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function xz(){return new Ae(3011,!1)}()),n;let s=0;const r=[];let a=!1,l=!1,c=0;const u=i.steps.map(W=>{const te=this._makeStyleAst(W,e);let fe=null!=te.offset?te.offset:function pj(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(te.styles),Ce=0;return null!=fe&&(s++,Ce=te.offset=fe),l=l||Ce<0||Ce>1,a=a||Ce0&&s{const fe=m>0?te==_?1:m*te:r[te],Ce=fe*P;e.currentTime=b+E.delay+Ce,E.duration=Ce,this._validateStyleAst(W,e),W.offset=fe,n.styles.push(W)}),n}visitReference(i,e){return{type:8,animation:Io(this,mu(i.animation),e),options:la(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:la(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:la(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;const[s,r]=function cj(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(aj,"")),t=t.replace(/@\*/g,Mh).replace(/@\w+/g,e=>Mh+"-"+e.slice(1)).replace(/:animating/g,_I),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+s:s,_o(e.collectedStyles,e.currentQuerySelector,new Map);const a=Io(this,mu(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:r,animation:a,originalSelector:i.selector,options:la(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Sz(){return new Ae(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Oh(i.timings,e.errors,!0);return{type:12,animation:Io(this,mu(i.animation),e),timings:n,options:null}}}class dj{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function la(t){return t?(t=gu(t)).params&&(t.params=function uj(t){return t?gu(t):null}(t.params)):t={},t}function yI(t,i,e){return{duration:t,delay:i,easing:e}}function xI(t,i,e,n,o,s,r=null,a=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:s,totalTime:o+s,easing:r,subTimeline:a}}class Nh{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const mj=new RegExp(":enter","g"),Ij=new RegExp(":leave","g");function AI(t,i,e,n,o,s=new Map,r=new Map,a,l,c=[]){return(new Cj).buildKeyframes(t,i,e,n,o,s,r,a,l,c)}class Cj{buildKeyframes(i,e,n,o,s,r,a,l,c,u=[]){c=c||new Nh;const p=new wI(i,e,c,o,s,u,[]);p.options=l;const m=l.delay?$s(l.delay):0;p.currentTimeline.delayNextStep(m),p.currentTimeline.setStyles([r],null,p.errors,l),Io(this,n,p);const _=p.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let E=_.length-1;E>=0;E--){const P=_[E];if(P.element===e){b=P;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,p.errors,l)}return _.length?_.map(b=>b.buildKeyframes()):[xI(e,[],[],[],0,m,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const o=e.createSubContext(i.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const o of i){const s=o?.delay;if(s){const r="number"==typeof s?s:$s(_u(s,o?.params??{},e.errors));n.delayNextStep(r)}}}_visitSubInstructions(i,e,n){let s=e.currentTimeline.currentTime;const r=null!=n.duration?$s(n.duration):null,a=null!=n.delay?$s(n.delay):null;return 0!==r&&i.forEach(l=>{const c=e.appendInstructionToTimeline(l,r,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(i,e){e.updateOptions(i.options,!0),Io(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let o=e;const s=i.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Vh);const r=$s(s.delay);o.delayNextStep(r)}i.steps.length&&(i.steps.forEach(r=>Io(this,r,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let o=e.currentTimeline.currentTime;const s=i.options&&i.options.delay?$s(i.options.delay):0;i.steps.forEach(r=>{const a=e.createSubContext(i.options);s&&a.delayNextStep(s),Io(this,r,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return Oh(e.params?_u(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();const s=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(s):n.setStyles(i.styles,s,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,o=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,i.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+s),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,o=i.options||{},s=o.delay?$s(o.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vh);let r=n;const a=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const p=e.createSubContext(i.options,c);s&&p.delayNextStep(s),c===e.element&&(l=p.currentTimeline),Io(this,i.animation,p),p.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,p.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,o=e.currentTimeline,s=i.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let l=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const p=u.currentTime;Io(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-p+(o.startTime-n.currentTimeline.startTime)}}const Vh={};class wI{constructor(i,e,n,o,s,r,a,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let o=this.options;null!=n.duration&&(o.duration=$s(n.duration)),null!=n.delay&&(o.delay=$s(n.delay));const s=n.params;if(s){let r=o.params;r||(r=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=_u(s[a],r,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){const o=e||this.element,s=new wI(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=Vh,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},s=new vj(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,s,r){let a=[];if(o&&a.push(this.element),i.length>0){i=(i=i.replace(mj,"."+this._enterClassName)).replace(Ij,"."+this._leaveClassName);let c=this._driver.query(this.element,i,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&0==a.length&&r.push(function Ez(t){return new Ae(3014,!1)}()),a}}class Bh{constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Bh(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||js),this._currentKeyframe.set(e,js);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},r=function bj(t,i){const e=new Map;let n;return t.forEach(o=>{if("*"===o){n=n||i.keys();for(let s of n)e.set(s,js)}else wr(o,e)}),e}(i,this._globalTimelineStyles);for(let[a,l]of r){const c=_u(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??js),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=wr(a,new Map,this._backFill);c.forEach((u,p)=>{"!"===u?i.add(p):u===js&&e.add(p)}),n||c.set("offset",l/this.duration),o.push(c)});const s=i.size?Lh(i.values()):[],r=e.size?Lh(e.values()):[];if(n){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return xI(this.element,o,s,r,this.duration,this.startTime,this.easing,!1)}}class vj extends Bh{constructor(i,e,n,o,s,r,a=!1){super(i,e,r.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,a=e/r,l=wr(i[0]);l.set("offset",0),s.push(l);const c=wr(i[0]);c.set("offset",vE(a)),s.push(c);const u=i.length-1;for(let p=1;p<=u;p++){let m=wr(i[p]);const _=m.get("offset");m.set("offset",vE((e+_*n)/r)),s.push(m)}n=r,e=0,o="",i=s}return xI(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}}function vE(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class TI{}const yj=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 xj extends TI{normalizePropertyName(i,e){return vI(i)}normalizeStyleValue(i,e,n,o){let s="";const r=n.toString().trim();if(yj.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function _z(t,i){return new Ae(3005,!1)}())}return r+s}}function bE(t,i,e,n,o,s,r,a,l,c,u,p,m){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:s,toState:n,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:m}}const SI={};class yE{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return function Aj(t,i,e,n,o){return t.some(s=>s(i,e,n,o))}(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return void 0!==i&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,s,r,a,l,c,u){const p=[],m=this.ast.options&&this.ast.options.params||SI,b=this.buildStyles(n,a&&a.params||SI,p),E=l&&l.params||SI,P=this.buildStyles(o,E,p),W=new Set,te=new Map,fe=new Map,Ce="void"===o,ve={params:wj(E,m),delay:this.ast.options?.delay},ke=u?[]:AI(i,e,this.ast.animation,s,r,b,P,ve,c,p);let Pe=0;if(ke.forEach(Ke=>{Pe=Math.max(Ke.duration+Ke.delay,Pe)}),p.length)return bE(e,this._triggerName,n,o,Ce,b,P,[],[],te,fe,Pe,p);ke.forEach(Ke=>{const pt=Ke.element,jt=_o(te,pt,new Set);Ke.preStyleProps.forEach(vn=>jt.add(vn));const Vt=_o(fe,pt,new Set);Ke.postStyleProps.forEach(vn=>Vt.add(vn)),pt!==e&&W.add(pt)});const $e=Lh(W.values());return bE(e,this._triggerName,n,o,Ce,b,P,ke,$e,te,fe,Pe)}}function wj(t,i){const e=gu(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class Tj{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,o=gu(this.defaultParams);return Object.keys(i).forEach(s=>{const r=i[s];null!==r&&(o[s]=r)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((r,a)=>{r&&(r=_u(r,o,e));const l=this.normalizer.normalizePropertyName(a,e);r=this.normalizer.normalizeStyleValue(a,l,r,e),n.set(a,r)})}),n}}class Ej{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new Tj(o.style,o.options&&o.options.params||{},n))}),xE(this.states,"true","1"),xE(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new yE(i,o,this.states))}),this.fallbackTransition=function Dj(t,i,e){return new yE(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,a)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(r=>r.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function xE(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const kj=new Nh;class Mj{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],s=bI(this._driver,e,n,[]);if(n.length)throw function Fz(t){return new Ae(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,e,n){const o=i.element,s=sE(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,s,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const o=[],s=this._animations.get(i);let r;const a=new Map;if(s?(r=AI(this._driver,e,s,mI,Dh,new Map,new Map,n,kj,o),r.forEach(u=>{const p=_o(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(o.push(function Rz(){return new Ae(3300,!1)}()),r=[]),o.length)throw function Nz(t){return new Ae(3504,!1)}();a.forEach((u,p)=>{u.forEach((m,_)=>{u.set(_,this._driver.computeStyle(p,_,js))})});const c=Ar(r.map(u=>{const p=a.get(u.element);return this._buildPlayer(u,new Map,p)}));return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function Vz(t){return new Ae(3301,!1)}();return e}listen(i,e,n,o){const s=hI(e,"","","");return dI(this._getPlayer(i),n,s,o),()=>{}}command(i,e,n,o){if("register"==n)return void this.register(i,o[0]);if("create"==n)return void this.create(i,e,o[0]||{});const s=this._getPlayer(i);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i)}}}const AE="ng-animate-queued",EI="ng-animate-disabled",Rj=[],wE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wo="__ng_removed";class DI{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function zj(t){return t??null}(n?i.value:i),n){const s=gu(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(o=>{null==n[o]&&(n[o]=e[o])})}}}const Iu="void",kI=new DI(Iu);class Vj{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Lo(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw function Bz(t,i){return new Ae(3302,!1)}();if(null==n||0==n.length)throw function Hz(t){return new Ae(3303,!1)}();if(!function jj(t){return"start"==t||"done"==t}(n))throw function zz(t,i){return new Ae(3400,!1)}();const s=_o(this._elementListeners,i,[]),r={name:e,phase:n,callback:o};s.push(r);const a=_o(this._engine.statesByElement,i,new Map);return a.has(e)||(Lo(i,kh),Lo(i,kh+"-"+e),a.set(e,kI)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(r);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function jz(t){return new Ae(3401,!1)}();return e}trigger(i,e,n,o=!0){const s=this._getTrigger(e),r=new MI(this.id,e,i);let a=this._engine.statesByElement.get(i);a||(Lo(i,kh),Lo(i,kh+"-"+e),this._engine.statesByElement.set(i,a=new Map));let l=a.get(e);const c=new DI(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=kI),c.value!==Iu&&l.value===c.value){if(!function Kj(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let o=0;o{aa(i,P),ps(i,W)})}return}const m=_o(this._engine.playersByElement,i,[]);m.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let _=s.matchTransition(l.value,c.value,i,c.params),b=!1;if(!_){if(!o)return;_=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:_,fromState:l,toState:c,player:r,isFallbackTransition:b}),b||(Lo(i,AE),r.onStart(()=>{Ol(i,AE)})),r.onDone(()=>{let E=this.players.indexOf(r);E>=0&&this.players.splice(E,1);const P=this._engine.playersByElement.get(i);if(P){let W=P.indexOf(r);W>=0&&P.splice(W,1)}}),this.players.push(r),m.push(r),r}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,Mh,!0);n.forEach(o=>{if(o[Wo])return;const s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(r=>r.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){const s=this._engine.statesByElement.get(i),r=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){const u=this.trigger(i,c,Iu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,r),n&&Ar(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const o=new Set;e.forEach(s=>{const r=s.name;if(o.has(r))return;o.add(r);const l=this._triggers.get(r).fallbackTransition,c=n.get(r)||kI,u=new DI(Iu),p=new MI(this.id,r,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:r,transition:l,fromState:c,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(i):[];if(s&&s.length)o=!0;else{let r=i;for(;r=r.parentNode;)if(n.statesByElement.get(r)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{const s=i[Wo];(!s||s===wE)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Lo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const o=n.player;if(o.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(a=>{if(a.name==n.triggerName){const l=hI(s,n.triggerName,n.fromState.value,n.toState.value);l._data=i,dI(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{const s=n.transition.ast.depCount,r=o.transition.ast.depCount;return 0==s||0==r?s-r:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class Bj{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Vj(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,i),r=!0;break}a=this.driver.getParentElement(a)}r||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);const o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let o of n.values())if(o.namespaceId){const s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}return e}trigger(i,e,n,o){if(Hh(e)){const s=this._fetchNamespace(i);if(s)return s.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Hh(e))return;const s=e[Wo];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(i){const r=this._fetchNamespace(i);r&&r.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Lo(i,EI)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Ol(i,EI))}removeNode(i,e,n){if(Hh(e)){const o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);const s=this.namespacesByHostElement.get(e);s&&s.id!==i&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,s){this.collectedLeaveElements.push(e),e[Wo]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,e,n,o,s){return Hh(e)?this._fetchNamespace(i).listen(e,n,o,s):()=>{}}_buildInstruction(i,e,n,o,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,s)}destroyInnerAnimations(i){let e=this.driver.query(i,Mh,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,_I,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Ar(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Wo];if(e&&e.setForRemoval){if(i[Wo]=wE,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(EI)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?Ar(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw function Uz(t){return new Ae(3402,!1)}()}_flushAnimations(i,e){const n=new Nh,o=[],s=new Map,r=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(We=>{u.add(We);const tt=this.driver.query(We,".ng-animate-queued",!0);for(let ct=0;ct{const ct=mI+E++;b.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))});const P=[],W=new Set,te=new Set;for(let We=0;WeW.add(Kt)):te.add(tt))}const fe=new Map,Ce=EE(m,Array.from(W));Ce.forEach((We,tt)=>{const ct=Dh+E++;fe.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))}),i.push(()=>{_.forEach((We,tt)=>{const ct=b.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),Ce.forEach((We,tt)=>{const ct=fe.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),P.forEach(We=>{this.processLeaveNode(We)})});const ve=[],ke=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ct=>{const Kt=ct.player,Pn=ct.element;if(ve.push(Kt),this.collectedEnterElements.length){const Ri=Pn[Wo];if(Ri&&Ri.setForMove){if(Ri.previousTriggersValues&&Ri.previousTriggersValues.has(ct.triggerName)){const wa=Ri.previousTriggersValues.get(ct.triggerName),Vo=this.statesByElement.get(ct.element);if(Vo&&Vo.has(ct.triggerName)){const ug=Vo.get(ct.triggerName);ug.value=wa,Vo.set(ct.triggerName,ug)}}return void Kt.destroy()}}const Zi=!p||!this.driver.containsElement(p,Pn),oi=fe.get(Pn),ro=b.get(Pn),wn=this._buildInstruction(ct,n,ro,oi,Zi);if(wn.errors&&wn.errors.length)return void ke.push(wn);if(Zi)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);if(ct.isFallbackTransition)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);const ec=[];wn.timelines.forEach(Ri=>{Ri.stretchStartingKeyframe=!0,this.disabledNodes.has(Ri.element)||ec.push(Ri)}),wn.timelines=ec,n.append(Pn,wn.timelines),r.push({instruction:wn,player:Kt,element:Pn}),wn.queriedElements.forEach(Ri=>_o(a,Ri,[]).push(Kt)),wn.preStyleProps.forEach((Ri,wa)=>{if(Ri.size){let Vo=l.get(wa);Vo||l.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))}}),wn.postStyleProps.forEach((Ri,wa)=>{let Vo=c.get(wa);Vo||c.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))})});if(ke.length){const We=[];ke.forEach(tt=>{We.push(function $z(t,i){return new Ae(3505,!1)}())}),ve.forEach(tt=>tt.destroy()),this.reportError(We)}const Pe=new Map,$e=new Map;r.forEach(We=>{const tt=We.element;n.has(tt)&&($e.set(tt,tt),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,Pe))}),o.forEach(We=>{const tt=We.element;this._getPreviousPlayers(tt,!1,We.namespaceId,We.triggerName,null).forEach(Kt=>{_o(Pe,tt,[]).push(Kt),Kt.destroy()})});const Ke=P.filter(We=>kE(We,l,c)),pt=new Map;SE(pt,this.driver,te,c,js).forEach(We=>{kE(We,l,c)&&Ke.push(We)});const Vt=new Map;_.forEach((We,tt)=>{SE(Vt,this.driver,new Set(We),l,"!")}),Ke.forEach(We=>{const tt=pt.get(We),ct=Vt.get(We);pt.set(We,new Map([...tt?.entries()??[],...ct?.entries()??[]]))});const vn=[],hi=[],wt={};r.forEach(We=>{const{element:tt,player:ct,instruction:Kt}=We;if(n.has(tt)){if(u.has(tt))return ct.onDestroy(()=>ps(tt,Kt.toStyles)),ct.disabled=!0,ct.overrideTotalTime(Kt.totalTime),void o.push(ct);let Pn=wt;if($e.size>1){let oi=tt;const ro=[];for(;oi=oi.parentNode;){const wn=$e.get(oi);if(wn){Pn=wn;break}ro.push(oi)}ro.forEach(wn=>$e.set(wn,Pn))}const Zi=this._buildAnimation(ct.namespaceId,Kt,Pe,s,Vt,pt);if(ct.setRealPlayer(Zi),Pn===wt)vn.push(ct);else{const oi=this.playersByElement.get(Pn);oi&&oi.length&&(ct.parentPlayer=Ar(oi)),o.push(ct)}}else aa(tt,Kt.fromStyles),ct.onDestroy(()=>ps(tt,Kt.toStyles)),hi.push(ct),u.has(tt)&&o.push(ct)}),hi.forEach(We=>{const tt=s.get(We.element);if(tt&&tt.length){const ct=Ar(tt);We.setRealPlayer(ct)}}),o.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!Zi.destroyed);Pn.length?Uj(this,tt,Pn):this.processLeaveNode(tt)}return P.length=0,vn.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const tt=this.players.indexOf(We);this.players.splice(tt,1)}),We.play()}),vn}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,s){let r=[];if(e){const a=this.playersByQueriedElement.get(i);a&&(r=a)}else{const a=this.playersByElement.get(i);if(a){const l=!s||s==Iu;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||r.push(c)})}}return(n||o)&&(r=r.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),r}_beforeAnimationBuild(i,e,n){const s=e.element,r=e.isRemovalTransition?void 0:i,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,p=_o(n,c,[]);this._getPreviousPlayers(c,u,r,a,e.toState).forEach(_=>{const b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),p.push(_)})}aa(s,e.fromStyles)}_buildAnimation(i,e,n,o,s,r){const a=e.triggerName,l=e.element,c=[],u=new Set,p=new Set,m=e.timelines.map(b=>{const E=b.element;u.add(E);const P=E[Wo];if(P&&P.removedBeforeQueried)return new fu(b.duration,b.delay);const W=E!==l,te=function $j(t){const i=[];return DE(t,i),i}((n.get(E)||Rj).map(Pe=>Pe.getRealPlayer())).filter(Pe=>!!Pe.element&&Pe.element===E),fe=s.get(E),Ce=r.get(E),ve=sE(this._normalizer,b.keyframes,fe,Ce),ke=this._buildPlayer(b,ve,te);if(b.subTimeline&&o&&p.add(E),W){const Pe=new MI(i,a,E);Pe.setRealPlayer(ke),c.push(Pe)}return ke});c.forEach(b=>{_o(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function Hj(t,i,e){let n=t.get(i);if(n){if(n.length){const o=n.indexOf(e);n.splice(o,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>Lo(b,pE));const _=Ar(m);return _.onDestroy(()=>{u.forEach(b=>Ol(b,pE)),ps(l,e.toStyles)}),p.forEach(b=>{_o(o,b,[]).push(_)}),_}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new fu(i.duration,i.delay)}}class MI{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new fu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>dI(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){_o(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Hh(t){return t&&1===t.nodeType}function TE(t,i){const e=t.style.display;return t.style.display=i??"none",e}function SE(t,i,e,n,o){const s=[];e.forEach(l=>s.push(TE(l)));const r=[];n.forEach((l,c)=>{const u=new Map;l.forEach(p=>{const m=i.computeStyle(c,p,o);u.set(p,m),(!m||0==m.length)&&(c[Wo]=Nj,r.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>TE(l,s[a++])),r}function EE(t,i){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==i.length)return e;const o=new Set(i),s=new Map;function r(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:r(c),s.set(a,l),l}return i.forEach(a=>{const l=r(a);1!==l&&e.get(l).push(a)}),e}function Lo(t,i){t.classList?.add(i)}function Ol(t,i){t.classList?.remove(i)}function Uj(t,i,e){Ar(e).onDone(()=>t.processLeaveNode(i))}function DE(t,i){for(let e=0;eo.add(s)):i.set(t,n),e.delete(t),!0}class zh{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Bj(i,e,n),this._timelineEngine=new Mj(i,e,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,n,o,s){const r=i+"-"+o;let a=this._triggerCache[r];if(!a){const l=[],u=bI(this._driver,s,l,[]);if(l.length)throw function Lz(t,i){return new Ae(3404,!1)}();a=function Sj(t,i,e){return new Ej(t,i,e)}(o,u,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,o,a)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if("@"==n.charAt(0)){const[s,r]=rE(n);this._timelineEngine.command(s,e,r,o)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,s){if("@"==n.charAt(0)){const[r,a]=rE(n);return this._timelineEngine.listen(r,e,a,s)}return this._transitionEngine.listen(i,e,n,o,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let qj=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ps(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ps(this._element,this._initialStyles),this._endStyles&&(ps(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(aa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(aa(this._element,this._endStyles),this._endStyles=null),ps(this._element,this._initialStyles),this._state=3)}}return t})();function OI(t){let i=null;return t.forEach((e,n)=>{(function Wj(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class ME{constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{"offset"!==o&&i.set(o,this._finished?n:mE(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Qj{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return lE(i,e)}getParentElement(i){return fI(i)}query(i,e,n){return cE(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,o,s,r=[]){const l={duration:n,delay:o,fill:0==o?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=r.filter(_=>_ instanceof ME);(function nj(t,i){return 0===t||0===i})(n,o)&&u.forEach(_=>{_.currentSnapshot.forEach((b,E)=>c.set(E,b))});let p=function Jz(t){return t.length?t[0]instanceof Map?t:t.map(i=>hE(i)):[]}(e).map(_=>wr(_));p=function ij(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((s,r)=>{n.has(r)||o.push(r),n.set(r,s)}),o.length)for(let s=1;sr.set(a,mE(t,a)))}}return i}(i,p,c);const m=function Gj(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=OI(i[0]),i.length>1&&(n=OI(i[i.length-1]))):i instanceof Map&&(e=OI(i)),e||n?new qj(t,e,n):null}(i,p);return new ME(i,p,l,m)}}let Zj=(()=>{class t extends tE{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:To.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?nE(e):e;return OE(this._renderer,null,n,"register",[o]),new Yj(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class Yj extends dz{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Xj(this._id,i,e||{},this._renderer)}}class Xj{constructor(i,e,n,o){this.id=i,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return OE(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function OE(t,i,e,n,o){return t.setProperty(i,`@@${e}:${n}`,o)}const LE="@.disabled";let Jj=(()=>{class t{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(s,r)=>{const a=r?.parentNode(s);a&&r.removeChild(a,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let u=this._rendererCache.get(s);return u||(u=new PE("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const r=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(r,a,e,u.name,u)};return n.data.animation.forEach(l),new eU(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){e>=0&&en(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[r,a]=s;r(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(zh),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class PE{constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==LE?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class eU extends PE{constructor(i,e,n,o,s){super(e,n,o,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const o=function tU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let s=e.slice(1),r="";return"@"!=s.charAt(0)&&([s,r]=function nU(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,o,s,r,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(i,e,n)}}const FE=[{provide:tE,useClass:Zj},{provide:TI,useFactory:function oU(){return new xj}},{provide:zh,useClass:(()=>{class t extends zh{constructor(e,n,o,s){super(e.body,n,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(gI),Ze(TI),Ze(ta))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})()},{provide:Pc,useFactory:function sU(t,i,e){return new Jj(t,i,e)},deps:[L0,zh,Tt]}],LI=[{provide:gI,useFactory:()=>new Qj},{provide:My,useValue:"BrowserAnimations"},...FE],RE=[{provide:gI,useClass:uE},{provide:My,useValue:"NoopAnimations"},...FE];let NE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?RE:LI}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:LI,imports:[R0]})}return t})();function Cu(...t){const i=ic(t),e=Yv(t),{args:n,keys:o}=OT(t);if(0===n.length)return ri([],i);const s=new ce(function aU(t,i,e=_e){return n=>{VE(i,()=>{const{length:o}=t,s=new Array(o);let r=o,a=o;for(let l=0;l{const c=ri(t[l],i);let u=!1;c.subscribe(Ue(n,p=>{s[l]=p,u||(u=!0,a--),a||n.next(e(s.slice()))},()=>{--r||n.complete()}))},n)},n)}}(n,i,o?r=>LT(o,r):_e));return e?s.pipe(V0(e)):s}function VE(t,i,e){t?ws(e,t,i):i()}const Uh=ae(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function PI(...t){return function lU(){return Ta(1)}()(ri(t,ic(t)))}function BE(t){return new ce(i=>{Ni(t()).subscribe(i)})}function Ll(t,i){const e=L(t)?t:()=>t,n=o=>o.error(e());return new ce(i?o=>i.schedule(n,0,o):n)}function FI(){return Me((t,i)=>{let e=null;t._refCount++;const n=Ue(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class HE extends ce{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Be(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new F;const e=this.getSubject();i.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=F.EMPTY)}return i}refCount(){return FI()(this)}}function Pl(t){return t<=0?()=>es:Me((i,e)=>{let n=0;i.subscribe(Ue(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function $h(t){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function zE(t=uU){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function uU(){return new Uh}function ca(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,Pl(1),e?$h(i):zE(()=>new Uh))}function Ei(t,i,e){const n=L(t)||i||e?{next:t,error:i,complete:e}:t;return n?Me((o,s)=>{var r;null===(r=n.subscribe)||void 0===r||r.call(n);let a=!0;o.subscribe(Ue(s,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),s.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),s.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),s.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):_e}function Ci(t){return Me((i,e)=>{let s,n=null,o=!1;n=i.subscribe(Ue(e,void 0,void 0,r=>{s=Ni(t(r,Ci(t)(i))),n?(n.unsubscribe(),n=null,s.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,s.subscribe(e))})}function RI(t){return t<=0?()=>es:Me((i,e)=>{let n=[];i.subscribe(Ue(e,o=>{n.push(o),t{for(const o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}const Ot="primary",vu=Symbol("RouteTitle");class mU{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Fl(t){return new mU(t)}function _U(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[s]===o)}return t===i}function UE(t){return t.length>0?t[t.length-1]:null}function Tr(t){return function rU(t){return!!t&&(t instanceof ce||L(t.lift)&&L(t.subscribe))}(t)?t:Kc(t)?ri(Promise.resolve(t)):ht(t)}const CU={exact:function GE(t,i,e){if(!ua(t.segments,i.segments)||!Kh(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!GE(t.children[n],i.children[n],e))return!1;return!0},subset:qE},$E={exact:function vU(t,i){return hs(t,i)},subset:function bU(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>jE(t[e],i[e]))},ignored:()=>!0};function KE(t,i,e){return CU[e.paths](t.root,i.root,e.matrixParams)&&$E[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function qE(t,i,e){return WE(t,i,i.segments,e)}function WE(t,i,e,n){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!ua(o,e)||i.hasChildren()||!Kh(o,e,n))}if(t.segments.length===e.length){if(!ua(t.segments,e)||!Kh(t.segments,e,n))return!1;for(const o in i.children)if(!t.children[o]||!qE(t.children[o],i.children[o],n))return!1;return!0}{const o=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(ua(t.segments,o)&&Kh(t.segments,o,n)&&t.children[Ot])&&WE(t.children[Ot],i,s,n)}}function Kh(t,i,e){return i.every((n,o)=>$E[e](t[o].parameters,n.parameters))}class Rl{constructor(i=new gn([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return AU.serialize(this)}}class gn{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gh(this)}}class bu{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Fl(this.parameters)),this._parameterMap}toString(){return YE(this)}}function ua(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let yu=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new NI},providedIn:"root"})}return t})();class NI{parse(i){const e=new FU(i);return new Rl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${xu(i.root,!0)}`,n=function SU(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(o=>`${qh(e)}=${qh(o)}`).join("&"):`${qh(e)}=${qh(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function wU(t){return encodeURI(t)}(i.fragment)}`:""}`}}const AU=new NI;function Gh(t){return t.segments.map(i=>YE(i)).join("/")}function xu(t,i){if(!t.hasChildren())return Gh(t);if(i){const e=t.children[Ot]?xu(t.children[Ot],!1):"",n=[];return Object.entries(t.children).forEach(([o,s])=>{o!==Ot&&n.push(`${o}:${xu(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function xU(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Ot&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Ot&&(e=e.concat(i(o,n)))}),e}(t,(n,o)=>o===Ot?[xu(t.children[Ot],!1)]:[`${o}:${xu(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ot]?`${Gh(t)}/${e[0]}`:`${Gh(t)}/(${e.join("//")})`}}function QE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qh(t){return QE(t).replace(/%3B/gi,";")}function VI(t){return QE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wh(t){return decodeURIComponent(t)}function ZE(t){return Wh(t.replace(/\+/g,"%20"))}function YE(t){return`${VI(t.path)}${function TU(t){return Object.keys(t).map(i=>`;${VI(i)}=${VI(t[i])}`).join("")}(t.parameters)}`}const EU=/^[^\/()?;#]+/;function BI(t){const i=t.match(EU);return i?i[0]:""}const DU=/^[^\/()?;=#]+/,MU=/^[^=?&#]+/,LU=/^[^&#]+/;class FU{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gn([],{}):new gn([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ot]=new gn(i,e)),n}parseSegment(){const i=BI(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new Ae(4009,!1);return this.capture(i),new bu(Wh(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=function kU(t){const i=t.match(DU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=BI(this.remaining);o&&(n=o,this.capture(n))}i[Wh(e)]=Wh(n)}parseQueryParam(i){const e=function OU(t){const i=t.match(MU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=function PU(t){const i=t.match(LU);return i?i[0]:""}(this.remaining);r&&(n=r,this.capture(n))}const o=ZE(e),s=ZE(n);if(i.hasOwnProperty(o)){let r=i[o];Array.isArray(r)||(r=[r],i[o]=r),r.push(s)}else i[o]=s}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=BI(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new Ae(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Ot);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[Ot]:new gn([],r),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new Ae(4011,!1)}}function XE(t){return t.segments.length>0?new gn([],{[Ot]:t}):t}function JE(t){const i={};for(const n of Object.keys(t.children)){const s=JE(t.children[n]);if(n===Ot&&0===s.segments.length&&s.hasChildren())for(const[r,a]of Object.entries(s.children))i[r]=a;else(s.segments.length>0||s.hasChildren())&&(i[n]=s)}return function RU(t){if(1===t.numberOfChildren&&t.children[Ot]){const i=t.children[Ot];return new gn(t.segments.concat(i.segments),i.children)}return t}(new gn(t.segments,i))}function da(t){return t instanceof Rl}function eD(t){let i;const o=XE(function e(s){const r={};for(const l of s.children){const c=e(l);r[l.outlet]=c}const a=new gn(s.url,r);return s===t&&(i=a),a}(t.root));return i??o}function tD(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(0===i.length)return HI(o,o,o,e,n);const s=function VU(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iD(!0,0,t);let i=0,e=!1;const n=t.reduce((o,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===r?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?i++:""!=a&&o.push(a))}),o):[...o,s]},[]);return new iD(e,i,n)}(i);if(s.toRoot())return HI(o,o,new gn([],{}),e,n);const r=function BU(t,i,e){if(t.isAbsolute)return new Zh(i,!0,0);if(!e)return new Zh(i,!1,NaN);if(null===e.parent)return new Zh(e,!0,0);const n=Qh(t.commands[0])?0:1;return function HU(t,i,e){let n=t,o=i,s=e;for(;s>o;){if(s-=o,n=n.parent,!n)throw new Ae(4005,!1);o=n.segments.length}return new Zh(n,!1,o-s)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(s,o,t),a=r.processChildren?wu(r.segmentGroup,r.index,s.commands):oD(r.segmentGroup,r.index,s.commands);return HI(o,r.segmentGroup,a,e,n)}function Qh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Au(t){return"object"==typeof t&&null!=t&&t.outlets}function HI(t,i,e,n,o){let r,s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),r=t===i?e:nD(t,i,e);const a=XE(JE(r));return new Rl(a,s,o)}function nD(t,i,e){const n={};return Object.entries(t.children).forEach(([o,s])=>{n[o]=s===i?e:nD(s,i,e)}),new gn(t.segments,n)}class iD{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Qh(n[0]))throw new Ae(4003,!1);const o=n.find(Au);if(o&&o!==UE(n))throw new Ae(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zh{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function oD(t,i,e){if(t||(t=new gn([],{})),0===t.segments.length&&t.hasChildren())return wu(t,i,e);const n=function jU(t,i,e){let n=0,o=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;const r=t.segments[o],a=e[n];if(Au(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!rD(l,c,r))return s;n+=2}else{if(!rD(l,{},r))return s;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexs!==Ot)&&t.children[Ot]&&1===t.numberOfChildren&&0===t.children[Ot].segments.length){const s=wu(t.children[Ot],i,e);return new gn(t.segments,s.children)}return Object.entries(n).forEach(([s,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=oD(t.children[s],i,r))}),Object.entries(t.children).forEach(([s,r])=>{void 0===n[s]&&(o[s]=r)}),new gn(t.segments,o)}}function zI(t,i,e){const n=t.segments.slice(0,i);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(i[e]=zI(new gn([],{}),0,n))}),i}function sD(t){const i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function rD(t,i,e){return t==e.path&&hs(i,e.parameters)}const Tu="imperative";class fs{constructor(i,e){this.id=i,this.url=e}}class Yh extends fs{constructor(i,e,n="imperative",o=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sr extends fs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Su extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nl extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=16}}class Xh extends fs{constructor(i,e,n,o){super(i,e),this.error=n,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aD extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $U extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KU extends fs{constructor(i,e,n,o,s){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class GU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WU{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QU{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ZU{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YU{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XU{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JU{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lD{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jI{}class UI{constructor(i){this.url=i}}class e${constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Eu,this.attachRef=null}}let Eu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new e$,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class cD{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=$I(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=$I(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=KI(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return KI(i,this._root).map(e=>e.value)}}function $I(t,i){if(t===i.value)return i;for(const e of i.children){const n=$I(t,e);if(n)return n}return null}function KI(t,i){if(t===i.value)return[i];for(const e of i.children){const n=KI(t,e);if(n.length)return n.unshift(i),n}return[]}class Ks{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vl(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class uD extends cD{constructor(i,e){super(i),this.snapshot=e,GI(this,i)}toString(){return this.snapshot.toString()}}function dD(t,i){const e=function t$(t,i){const r=new Jh([],{},{},"",{},Ot,i,null,{});return new hD("",new Ks(r,[]))}(0,i),n=new xo([new bu("",{})]),o=new xo({}),s=new xo({}),r=new xo({}),a=new xo(""),l=new Di(n,o,r,a,s,Ot,i,e.root);return l.snapshot=e.root,new uD(new Ks(l,[]),e)}class Di{constructor(i,e,n,o,s,r,a,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=s,this.outlet=r,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(at(c=>c[vu]))??ht(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(at(i=>Fl(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(at(i=>Fl(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pD(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const o=e[n],s=e[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(s.component)break;n--}}return function n$(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Jh{get title(){return this.data?.[vu]}constructor(i,e,n,o,s,r,a,l,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s,this.outlet=r,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Fl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hD extends cD{constructor(i,e){super(e),this.url=i,GI(this,e)}toString(){return fD(this._root)}}function GI(t,i){i.value._routerState=t,i.children.forEach(e=>GI(t,e))}function fD(t){const i=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${i}`}function qI(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),function IU(t,i){if(t.length!==i.length)return!1;for(let e=0;ehs(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||WI(t.parent,i.parent))}let QI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ot,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.parentContexts=et(Eu),this.location=et(go),this.changeDetector=et(Ft),this.environmentInjector=et(po),this.inputBinder=et(ef,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ae(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ae(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ae(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Ae(4013,!1);this._activatedRoute=e;const o=this.location,r=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new i$(e,a,o.injector);this.activated=o.createComponent(r,{index:o.length,injector:l,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]})}return t})();class i${constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Di?this.route:i===Eu?this.childContexts:this.parent.get(i,e)}}const ef=new Ye("");let gD=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:n}=e,o=Cu([n.queryParams,n.params,n.data]).pipe(Ao(([s,r,a],l)=>(a={...s,...r,...a},0===l?ht(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const r=function f8(t){const i=Zt(t);if(!i)return null;const e=new Hc(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(n.component);if(r)for(const{templateName:a}of r.inputs)e.activatedComponentRef.setInput(a,s[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Du(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const o=function s$(t,i,e){return i.children.map(n=>{for(const o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Du(t,n,o);return Du(t,n)})}(t,i,e);return new Ks(n,o)}{if(t.shouldAttach(i.value)){const s=t.retrieve(i.value);if(null!==s){const r=s.route;return r.value._futureSnapshot=i.value,r.children=i.children.map(a=>Du(t,a)),r}}const n=function r$(t){return new Di(new xo(t.url),new xo(t.params),new xo(t.queryParams),new xo(t.fragment),new xo(t.data),t.outlet,t.component,t)}(i.value),o=i.children.map(s=>Du(t,s));return new Ks(n,o)}}const ZI="ngNavigationCancelingError";function mD(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=da(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=_D(!1,0,i);return o.url=e,o.navigationBehaviorOptions=n,o}function _D(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[ZI]=!0,n.cancellationCode=i,e&&(n.url=e),n}function ID(t){return t&&t[ZI]}let CD=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Et],decls:1,vars:0,template:function(n,o){1&n&&le(0,"router-outlet")},dependencies:[QI],encapsulation:2})}return t})();function YI(t){const i=t.children&&t.children.map(YI),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ot&&(e.component=CD),e}function Qo(t){return t.outlet||Ot}function ku(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class f${constructor(i,e,n,o,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=s}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),qI(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{const r=s.value.outlet;this.deactivateRoutes(s,o[r],n),delete o[r]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(o===s)if(o.component){const r=n.getContext(o.outlet);r&&this.deactivateChildRoutes(i,e,r.children)}else this.deactivateChildRoutes(i,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);if(n&&n.outlet){const r=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:r,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],n),this.forwardEvent(new JU(s.value.snapshot))}),i.children.length&&this.forwardEvent(new YU(i.value.snapshot))}activateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(qI(o),o===s)if(o.component){const r=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,r.children)}else this.activateChildRoutes(i,e,n);else if(o.component){const r=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(a.contexts),r.attachRef=a.componentRef,r.route=a.route.value,r.outlet&&r.outlet.attach(a.componentRef,a.route.value),qI(a.route.value),this.activateChildRoutes(i,null,r.children)}else{const a=ku(o.snapshot);r.attachRef=null,r.route=o,r.injector=a,r.outlet&&r.outlet.activateWith(o,r.injector),this.activateChildRoutes(i,null,r.children)}}else this.activateChildRoutes(i,null,n)}}class vD{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class tf{constructor(i,e){this.component=i,this.route=e}}function g$(t,i,e){const n=t._root;return Mu(n,i?i._root:null,e,[n.value])}function Bl(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function R4(t){return null!==Cd(t)}(t)?i.get(t):t:n}function Mu(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Vl(i);return t.children.forEach(r=>{(function _$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,r=i?i.value:null,a=e?e.getContext(t.value.outlet):null;if(r&&s.routeConfig===r.routeConfig){const l=function I$(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!ua(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ua(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WI(t,i)||!hs(t.queryParams,i.queryParams);default:return!WI(t,i)}}(r,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vD(n)):(s.data=r.data,s._resolvedData=r._resolvedData),Mu(t,i,s.component?a?a.children:null:e,n,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new tf(a.outlet.component,r))}else r&&Ou(i,a,o),o.canActivateChecks.push(new vD(n)),Mu(t,null,s.component?a?a.children:null:e,n,o)})(r,s[r.value.outlet],e,n.concat([r.value]),o),delete s[r.value.outlet]}),Object.entries(s).forEach(([r,a])=>Ou(a,e.getContext(r),o)),o}function Ou(t,i,e){const n=Vl(t),o=t.value;Object.entries(n).forEach(([s,r])=>{Ou(r,o.component?i?i.children.getContext(s):null:i,e)}),e.canDeactivateChecks.push(new tf(o.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,o))}function Lu(t){return"function"==typeof t}function bD(t){return t instanceof Uh||"EmptyError"===t?.name}const nf=Symbol("INITIAL_VALUE");function Hl(){return Ao(t=>Cu(t.map(i=>i.pipe(Pl(1),function cU(...t){const i=ic(t);return Me((e,n)=>{(i?PI(t,e,i):PI(t,e)).subscribe(n)})}(nf)))).pipe(at(i=>{for(const e of i)if(!0!==e){if(e===nf)return nf;if(!1===e||e instanceof Rl)return e}return!0}),zs(i=>i!==nf),Pl(1)))}function yD(t){return function he(...t){return de(t)}(Ei(i=>{if(da(i))throw mD(0,i)}),at(i=>!0===i))}class sf{constructor(i){this.segmentGroup=i||null}}class xD{constructor(i){this.urlTree=i}}function zl(t){return Ll(new sf(t))}function AD(t){return Ll(new xD(t))}class V${constructor(i,e){this.urlSerializer=i,this.urlTree=e}noMatchError(i){return new Ae(4002,!1)}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return ht(n);if(o.numberOfChildren>1||!o.children[Ot])return Ll(new Ae(4e3,!1));o=o.children[Ot]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,o){const s=this.createSegmentGroup(i,e.root,n,o);return new Rl(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Object.entries(i).forEach(([o,s])=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);n[o]=e[a]}else n[o]=s}),n}createSegmentGroup(i,e,n,o){const s=this.createSegments(i,e.segments,n,o);let r={};return Object.entries(e.children).forEach(([a,l])=>{r[a]=this.createSegmentGroup(i,l,n,o)}),new gn(s,r)}createSegments(i,e,n,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,o):this.findOrReturn(s,n))}findPosParam(i,e,n){const o=n[e.path.substring(1)];if(!o)throw new Ae(4001,!1);return o}findOrReturn(i,e){let n=0;for(const o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}}const XI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B$(t,i,e,n,o){const s=JI(t,i,e);return s.matched?(n=function l$(t,i){return t.providers&&!t._injector&&(t._injector=O_(t.providers,i,`Route: ${t.path}`)),t._injector??i}(i,n),function F$(t,i,e,n){const o=i.canMatch;return o&&0!==o.length?ht(o.map(r=>{const a=Bl(r,t);return Tr(function A$(t){return t&&Lu(t.canMatch)}(a)?a.canMatch(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD()):ht(!0)}(n,i,e).pipe(at(r=>!0===r?s:{...XI}))):ht(s)}function JI(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...XI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(i.matcher||_U)(e,t,i);if(!o)return{...XI};const s={};Object.entries(o.posParams??{}).forEach(([a,l])=>{s[a]=l.path});const r=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:r,positionalParamSegments:o.posParams??{}}}function wD(t,i,e,n){return e.length>0&&function j$(t,i,e){return e.some(n=>rf(t,i,n)&&Qo(n)!==Ot)}(t,e,n)?{segmentGroup:new gn(i,z$(n,new gn(e,t.children))),slicedSegments:[]}:0===e.length&&function U$(t,i,e){return e.some(n=>rf(t,i,n))}(t,e,n)?{segmentGroup:new gn(t.segments,H$(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new gn(t.segments,t.children),slicedSegments:e}}function H$(t,i,e,n,o){const s={};for(const r of n)if(rf(t,e,r)&&!o[Qo(r)]){const a=new gn([],{});s[Qo(r)]=a}return{...o,...s}}function z$(t,i){const e={};e[Ot]=i;for(const n of t)if(""===n.path&&Qo(n)!==Ot){const o=new gn([],{});e[Qo(n)]=o}return e}function rf(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}class q${constructor(i,e,n,o,s,r,a){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=r,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new V$(this.urlSerializer,this.urlTree)}noMatchError(i){return new Ae(4002,!1)}recognize(){const i=wD(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Ot).pipe(Ci(e=>{if(e instanceof xD)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof sf?this.noMatchError(e):e}),at(e=>{const n=new Jh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ot,this.rootComponentType,null,{}),o=new Ks(n,e),s=new hD("",o),r=function NU(t,i,e=null,n=null){return tD(eD(t),i,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(s._root),{state:s,tree:r}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,Ot).pipe(Ci(n=>{throw n instanceof sf?this.noMatchError(n):n}))}inheritParamsAndData(i){const e=i.value,n=pD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(i,e,n,o){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,o,!0)}processChildren(i,e,n){const o=[];for(const s of Object.keys(n.children))"primary"===s?o.unshift(s):o.push(s);return ri(o).pipe(El(s=>{const r=n.children[s],a=function p$(t,i){const e=t.filter(n=>Qo(n)===i);return e.push(...t.filter(n=>Qo(n)!==i)),e}(e,s);return this.processSegmentGroup(i,a,r,s)}),function pU(t,i){return Me(function dU(t,i,e,n,o){return(s,r)=>{let a=e,l=i,c=0;s.subscribe(Ue(r,u=>{const p=c++;l=a?t(l,u,p):(a=!0,u),n&&r.next(l)},o&&(()=>{a&&r.next(l),r.complete()})))}}(t,i,arguments.length>=2,!0))}((s,r)=>(s.push(...r),s)),$h(null),function hU(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,RI(1),e?$h(i):zE(()=>new Uh))}(),si(s=>{if(null===s)return zl(n);const r=TD(s);return function W$(t){t.sort((i,e)=>i.value.outlet===Ot?-1:e.value.outlet===Ot?1:i.value.outlet.localeCompare(e.value.outlet))}(r),ht(r)}))}processSegment(i,e,n,o,s,r){return ri(e).pipe(El(a=>this.processSegmentAgainstRoute(a._injector??i,e,a,n,o,s,r).pipe(Ci(l=>{if(l instanceof sf)return ht(null);throw l}))),ca(a=>!!a),Ci(a=>{if(bD(a))return function K$(t,i,e){return 0===i.length&&!t.children[e]}(n,o,s)?ht([]):zl(n);throw a}))}processSegmentAgainstRoute(i,e,n,o,s,r,a){return function $$(t,i,e,n){return!!(Qo(t)===n||n!==Ot&&rf(i,e,t))&&("**"===t.path||JI(i,t,e).matched)}(n,o,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(i,o,n,s,r,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,s,r):zl(o):zl(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,o,r):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,o){const s=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?AD(s):this.applyRedirects.lineralizeSegments(n,s).pipe(si(r=>{const a=new gn(r,{});return this.processSegment(i,e,a,r,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=JI(e,o,s);if(!a)return zl(e);const p=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?AD(p):this.applyRedirects.lineralizeSegments(o,p).pipe(si(m=>this.processSegment(i,n,e,m.concat(c),r,!1)))}matchSegmentAgainstRoute(i,e,n,o,s,r){let a;if("**"===n.path){const l=o.length>0?UE(o).parameters:{};a=ht({snapshot:new Jh(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=B$(e,n,o,i).pipe(at(({matched:l,consumedSegments:c,remainingSegments:u,parameters:p})=>l?{snapshot:new Jh(c,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Ao(l=>null===l?zl(e):this.getChildConfig(i=n._injector??i,n,o).pipe(Ao(({routes:c})=>{const u=n._loadedInjector??i,{snapshot:p,consumedSegments:m,remainingSegments:_}=l,{segmentGroup:b,slicedSegments:E}=wD(e,m,_,c);if(0===E.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(at(W=>null===W?null:[new Ks(p,W)]));if(0===c.length&&0===E.length)return ht([new Ks(p,[])]);const P=Qo(n)===s;return this.processSegment(u,c,b,E,P?Ot:s,!0).pipe(at(W=>[new Ks(p,W)]))}))))}getChildConfig(i,e,n){return e.children?ht({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ht({routes:e._loadedRoutes,injector:e._loadedInjector}):function P$(t,i,e,n){const o=i.canLoad;return void 0===o||0===o.length?ht(!0):ht(o.map(r=>{const a=Bl(r,t);return Tr(function v$(t){return t&&Lu(t.canLoad)}(a)?a.canLoad(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD())}(i,e,n).pipe(si(o=>o?this.configLoader.loadChildren(i,e).pipe(Ei(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function N$(t){return Ll(_D(!1,3))}())):ht({routes:[],injector:i})}}function Q$(t){const i=t.value.routeConfig;return i&&""===i.path}function TD(t){const i=[],e=new Set;for(const n of t){if(!Q$(n)){i.push(n);continue}const o=i.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...n.children),e.add(o)):i.push(n)}for(const n of e){const o=TD(n.children);i.push(new Ks(n.value,o))}return i.filter(n=>!e.has(n))}function SD(t){return t.data||{}}function ED(t){return t.resolve||{}}function DD(t){return"string"==typeof t.title||null===t.title}function eC(t){return Ao(i=>{const e=t(i);return e?ri(e).pipe(at(()=>i)):ht(i)})}const jl=new Ye("ROUTES");let tC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=et(l2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ht(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Tr(e.loadComponent()).pipe(at(kD),Ei(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),du(()=>{this.componentLoaders.delete(e)})),o=new HE(n,()=>new re).pipe(FI());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ht({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const s=function nK(t,i,e,n){return Tr(t.loadChildren()).pipe(at(kD),si(o=>o instanceof mw||Array.isArray(o)?ht(o):ri(i.compileModuleAsync(o))),at(o=>{n&&n(t);let s,r,a=!1;return Array.isArray(o)?(r=o,!0):(s=o.create(e).injector,r=s.get(jl,[],{optional:!0,self:!0}).flat()),{routes:r.map(YI),injector:s}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(du(()=>{this.childrenLoaders.delete(n)})),r=new HE(s,()=>new re).pipe(FI());return this.childrenLoaders.set(n,r),r}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kD(t){return function iK(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let af=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=et(tC),this.environmentInjector=et(po),this.urlSerializer=et(yu),this.rootContexts=et(Eu),this.inputBindingEnabled=null!==et(ef,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ht(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new QU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new WU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,o){return this.transitions=new xo({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Tu,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(zs(s=>0!==s.id),at(s=>({...s,extractedUrl:e.urlHandlingStrategy.extract(s.rawUrl)})),Ao(s=>{this.currentTransition=s;let r=!1,a=!1;return ht(s).pipe(Ei(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Ao(l=>{const c=l.currentBrowserUrl.toString(),u=!e.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),es}if(e.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ht(l).pipe(Ao(m=>{const _=this.transitions?.getValue();return this.events.next(new Yh(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),_!==this.transitions?.getValue()?es:Promise.resolve(m)}),function Z$(t,i,e,n,o,s){return si(r=>function G$(t,i,e,n,o,s,r="emptyOnly"){return new q$(t,i,e,n,o,r,s).recognize()}(t,i,e,n,r.extractedUrl,o,s).pipe(at(({state:a,tree:l})=>({...r,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Ei(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const _=new aD(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(_)}));if(u&&e.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:_,source:b,restoredState:E,extras:P}=l,W=new Yh(m,this.urlSerializer.serialize(_),b,E);this.events.next(W);const te=dD(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:te,urlAfterRedirects:_,extras:{...P,skipLocationChange:!1,replaceUrl:!1}},ht(s)}{const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),es}}),Ei(l=>{const c=new $U(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),at(l=>(this.currentTransition=s={...l,guards:g$(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function T$(t,i){return si(e=>{const{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:r}}=e;return 0===r.length&&0===s.length?ht({...e,guardsResult:!0}):function S$(t,i,e,n){return ri(t).pipe(si(o=>function L$(t,i,e,n,o){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ht(s.map(a=>{const l=ku(i)??o,c=Bl(a,l);return Tr(function x$(t){return t&&Lu(t.canDeactivate)}(c)?c.canDeactivate(t,i,e,n):l.runInContext(()=>c(t,i,e,n))).pipe(ca())})).pipe(Hl()):ht(!0)}(o.component,o.route,e,i,n)),ca(o=>!0!==o,!0))}(r,n,o,t).pipe(si(a=>a&&function C$(t){return"boolean"==typeof t}(a)?function E$(t,i,e,n){return ri(i).pipe(El(o=>PI(function k$(t,i){return null!==t&&i&&i(new ZU(t)),ht(!0)}(o.route.parent,n),function D$(t,i){return null!==t&&i&&i(new XU(t)),ht(!0)}(o.route,n),function O$(t,i,e){const n=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(r=>function m$(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(r)).filter(r=>null!==r).map(r=>BE(()=>ht(r.guards.map(l=>{const c=ku(r.node)??e,u=Bl(l,c);return Tr(function y$(t){return t&&Lu(t.canActivateChild)}(u)?u.canActivateChild(n,t):c.runInContext(()=>u(n,t))).pipe(ca())})).pipe(Hl())));return ht(s).pipe(Hl())}(t,o.path,e),function M$(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ht(!0);const o=n.map(s=>BE(()=>{const r=ku(i)??e,a=Bl(s,r);return Tr(function b$(t){return t&&Lu(t.canActivate)}(a)?a.canActivate(i,t):r.runInContext(()=>a(i,t))).pipe(ca())}));return ht(o).pipe(Hl())}(t,o.route,e))),ca(o=>!0!==o,!0))}(n,s,t,i):ht(a)),at(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),Ei(l=>{if(s.guardsResult=l.guardsResult,da(l.guardsResult))throw mD(0,l.guardsResult);const c=new KU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),zs(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),eC(l=>{if(l.guards.canActivateChecks.length)return ht(l).pipe(Ei(c=>{const u=new GU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ao(c=>{let u=!1;return ht(c).pipe(function Y$(t,i){return si(e=>{const{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return ht(e);let s=0;return ri(o).pipe(El(r=>function X$(t,i,e,n){const o=t.routeConfig,s=t._resolve;return void 0!==o?.title&&!DD(o)&&(s[vu]=o.title),function J$(t,i,e,n){const o=function eK(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ht({});const s={};return ri(o).pipe(si(r=>function tK(t,i,e,n){const o=ku(i)??n,s=Bl(t,o);return Tr(s.resolve?s.resolve(i,e):o.runInContext(()=>s(i,e)))}(t[r],i,e,n).pipe(ca(),Ei(a=>{s[r]=a}))),RI(1),function fU(t){return at(()=>t)}(s),Ci(r=>bD(r)?es:Ll(r)))}(s,t,i,n).pipe(at(r=>(t._resolvedData=r,t.data=pD(t,e).resolve,o&&DD(o)&&(t.data[vu]=o.title),null)))}(r.route,n,t,i)),Ei(()=>s++),RI(1),si(r=>s===o.length?ht(e):es))})}(e.paramsInheritanceStrategy,this.environmentInjector),Ei({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),Ei(c=>{const u=new qU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),eC(l=>{const c=u=>{const p=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ei(m=>{u.component=m}),at(()=>{})));for(const m of u.children)p.push(...c(m));return p};return Cu(c(l.targetSnapshot.root)).pipe($h(),Pl(1))}),eC(()=>this.afterPreactivation()),at(l=>{const c=function o$(t,i,e){const n=Du(t,i._root,e?e._root:void 0);return new uD(n,i)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:c},s}),Ei(()=>{this.events.next(new jI)}),((t,i,e,n)=>at(o=>(new f$(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Pl(1),Ei({next:l=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Sr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),e.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{r=!0}}),function gU(t){return Me((i,e)=>{Ni(t).subscribe(Ue(e,()=>e.complete(),C)),!e.closed&&i.subscribe(e)})}(this.transitionAbortSubject.pipe(Ei(l=>{throw l}))),du(()=>{r||a||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Ci(l=>{if(a=!0,ID(l))this.events.next(new Su(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function a$(t){return ID(t)&&da(t.url)}(l)?this.events.next(new UI(l.url)):s.resolve(!1);else{this.events.next(new Xh(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(l))}catch(c){s.reject(c)}}return es}))}))}cancelNavigationTransition(e,n,o){const s=new Su(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(s),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MD(t){return t!==Tu}let OD=(()=>{class t{buildTitle(e){let n,o=e.root;for(;void 0!==o;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ot);return n}getResolvedTitleForRoute(e){return e.data[vu]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(oK)},providedIn:"root"})}return t})(),oK=(()=>{class t extends OD{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ET))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(aK)},providedIn:"root"})}return t})();class rK{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let aK=(()=>{class t extends rK{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lf=new Ye("",{providedIn:"root",factory:()=>({})});let lK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(cK)},providedIn:"root"})}return t})(),cK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pu=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Pu||{});function LD(t,i){t.events.pipe(zs(e=>e instanceof Sr||e instanceof Su||e instanceof Xh||e instanceof Nl),at(e=>e instanceof Sr||e instanceof Nl?Pu.COMPLETE:e instanceof Su&&(0===e.code||1===e.code)?Pu.REDIRECTING:Pu.FAILED),zs(e=>e!==Pu.REDIRECTING),Pl(1)).subscribe(()=>{i()})}function uK(t){throw t}function dK(t,i,e){return i.parse("/")}const pK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let io=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=et(a2),this.isNgZoneEnabled=!1,this._events=new re,this.options=et(lf,{optional:!0})||{},this.pendingTasks=et(Kp),this.errorHandler=this.options.errorHandler||uK,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dK,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=et(lK),this.routeReuseStrategy=et(sK),this.titleStrategy=et(OD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=et(jl,{optional:!0})?.flat()??[],this.navigationTransitions=et(af),this.urlSerializer=et(yu),this.location=et(d0),this.componentInputBindingEnabled=!!et(ef,{optional:!0}),this.eventsSubscription=new F,this.isNgZoneEnabled=et(Tt)instanceof Tt&&Tt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dD(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(PD(n)&&this._events.next(n));if(n instanceof Yh)MD(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(n instanceof Nl)this.rawUrlTree=o.rawUrl;else if(n instanceof aD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(n instanceof jI)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(n instanceof Su)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(o);else if(n instanceof UI){const s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),r={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||MD(o.source)};this.scheduleNavigation(s,Tu,null,r,{resolve:o.resolve,reject:o.reject,promise:o.promise})}n instanceof Xh&&this.restoreHistory(o,!0),n instanceof Sr&&(this.navigated=!0),PD(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Tu,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,o){const s={replaceUrl:!0},r=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,n,r,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(YI),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){const{relativeTo:o,queryParams:s,fragment:r,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:r;let p,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{p=eD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),p=this.currentUrlTree.root}return tD(p,e,u,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){const o=da(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Tu,null,n)}navigate(e,n={skipLocationChange:!1}){return function fK(t){for(let i=0;i{const s=e[o];return null!=s&&(n[o]=s),n},{})}scheduleNavigation(e,n,o,s,r){if(this.disposed)return Promise.resolve(!1);let a,l,c;r?(a=r.resolve,l=r.reject,c=r.promise):c=new Promise((p,m)=>{a=p,l=m});const u=this.pendingTasks.add();return LD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}setBrowserUrl(e,n){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){const r={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(o,"",r)}else{const s={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function PD(t){return!(t instanceof jI||t instanceof UI)}let pa=(()=>{class t{constructor(e,n,o,s,r,a){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=r,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=r.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Sr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,n,o,s,r){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||o||s||r||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function yy(t,i,e){return function H5(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?by:Ls}(i,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const o=this.renderer,s=this.el.nativeElement;null!==n?o.setAttribute(s,e,n):o.removeAttribute(s,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(Di),function $d(t){return function rP(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let o=0;for(;o{class t{get isActive(){return this._isActive}constructor(e,n,o,s,r){this.router=e,this.element=n,this.renderer=o,this.cdr=s,this.link=r,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ge,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Sr&&this.update()})}ngAfterContentInit(){ht(this.links.changes,ht(null)).pipe(Ta()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=ri(e).pipe(Ta()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const n=function gK(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(bt),V(hn),V(Ft),V(pa,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(1&n&&Gt(s,pa,5),2&n){let r;Se(r=Ee())&&(o.links=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]})}return t})();class FD{}let mK=(()=>{class t{constructor(e,n,o,s,r){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(zs(e=>e instanceof Sr),El(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const o=[];for(const s of n){s.providers&&!s._injector&&(s._injector=O_(s.providers,e,`Route: ${s.path}`));const r=s._injector??e,a=s._loadedInjector??r;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(r,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(a,s.children??s._loadedRoutes))}return ri(o).pipe(Ta())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;o=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ht(null);const s=o.pipe(si(r=>null===r?ht(void 0):(n._loadedRoutes=r.routes,n._loadedInjector=r.injector,this.processRoutes(r.injector??e,r.routes))));return n.loadComponent&&!n._loadedComponent?ri([s,this.loader.loadComponent(n)]).pipe(Ta()):s})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(io),Ze(l2),Ze(po),Ze(FD),Ze(tC))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const nC=new Ye("");let RD=(()=>{class t{constructor(e,n,o,s,r={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Yh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Sr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Nl&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){!function cx(){throw new Error("invalid")}()};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Gs(t,i){return{\u0275kind:t,\u0275providers:i}}function VD(){const t=et($i);return i=>{const e=t.get(ta);if(i!==e.components[0])return;const n=t.get(io),o=t.get(BD);1===t.get(iC)&&n.initialNavigation(),t.get(HD,null,zt.Optional)?.setUpPreloading(),t.get(nC,null,zt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const BD=new Ye("",{factory:()=>new re}),iC=new Ye("",{providedIn:"root",factory:()=>1}),HD=new Ye("");function vK(t){return Gs(0,[{provide:HD,useExisting:mK},{provide:FD,useExisting:t}])}const zD=new Ye("ROUTER_FORROOT_GUARD"),yK=[d0,{provide:yu,useClass:NI},io,Eu,{provide:Di,useFactory:function ND(t){return t.routerState.root},deps:[io]},tC,[]];function xK(){return new g2("Router",io)}let qn=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[yK,[],{provide:jl,multi:!0,useValue:e},{provide:zD,useFactory:SK,deps:[[io,new qd,new Wd]]},{provide:lf,useValue:n||{}},n?.useHash?{provide:Ir,useClass:G2}:{provide:Ir,useClass:K2},{provide:nC,useFactory:()=>{const t=et(LV),i=et(Tt),e=et(lf),n=et(af),o=et(yu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new RD(o,n,t,i,e)}},n?.preloadingStrategy?vK(n.preloadingStrategy).\u0275providers:[],{provide:g2,multi:!0,useFactory:xK},n?.initialNavigation?EK(n):[],n?.bindToComponentInputs?Gs(8,[gD,{provide:ef,useExisting:gD}]).\u0275providers:[],[{provide:jD,useFactory:VD},{provide:e0,multi:!0,useExisting:jD}]]}}static forChild(e){return{ngModule:t,providers:[{provide:jl,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(zD,8))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function SK(t){return"guarded"}function EK(t){return["disabled"===t.initialNavigation?Gs(3,[{provide:G_,multi:!0,useFactory:()=>{const i=et(io);return()=>{i.setUpLocationChangeListener()}}},{provide:iC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Gs(2,[{provide:iC,useValue:0},{provide:G_,multi:!0,deps:[$i],useFactory:i=>{const e=i.get(_8,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const o=i.get(io),s=i.get(BD);LD(o,()=>{n(!0)}),i.get(af).afterPreactivation=()=>(n(!0),s.closed?ht(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const jD=new Ye("");class kK{}class MK{}var Lt=function(t){return t[t.Passed="Passed"]="Passed",t[t.Failed="Failed"]="Failed",t[t.FailIgnored="FailIgnored"]="FailIgnored",t[t.Blocked="Blocked"]="Blocked",t[t.Stopped="Stopped"]="Stopped",t[t.Pending="Pending"]="Pending",t[t.InProgress="In Progress"]="InProgress",t[t.Canceled="Canceled"]="Canceled",t[t.Queued="Queued"]="Queued",t[t.FailedToQueue="Failed To Queue"]="FailedToQueue",t[t.Others="Others"]="Others",t}(Lt||{}),Er=function(t){return t[t.BusinessFlowsActivities=0]="BusinessFlowsActivities",t[t.ActivitiesActions=1]="ActivitiesActions",t[t.OutputValidation=2]="OutputValidation",t}(Er||{});class UD{}class OK{}class $D{}class LK{}var oC=function(t){return t[t.html=0]="html",t[t.htm=1]="htm",t[t.xls=2]="xls",t[t.xlsx=3]="xlsx",t[t.csv=4]="csv",t[t.json=5]="json",t[t.ppt=6]="ppt",t[t.jpg=7]="jpg",t[t.jpeg=8]="jpeg",t[t.png=9]="png",t[t.bmp=10]="bmp",t[t.txt=11]="txt",t[t.doc=12]="doc",t[t.docx=13]="docx",t[t.xml=14]="xml",t[t.pdf=15]="pdf",t[t.gif=16]="gif",t}(oC||{});let Co=(()=>{class t{constructor(){}getByKey(e){return JSON.parse(sessionStorage.getItem(e))}isExist(e){return null!=sessionStorage.getItem(e)}setItem(e,n){this.getByKey(e)||this.reomveByKey(e),sessionStorage.setItem(e,JSON.stringify(n))}setItemCache(e){this.runset=e}getItemCache(){return this.runset}reomveByKey(e){this.getByKey(e)&&sessionStorage.removeItem(e)}clearSession(){sessionStorage.clear()}msToTime1(e){var n=e%1e3,o=(e=(e-n)/1e3)%60,s=(e=(e-o)/60)%60,r=(e-s)/60;return(0==r?"00":r.toString())+":"+(0==s?"00":s.toString())+":"+(0==o?"00":o.toString())+"."+n}pad(e,n=2){return("00"+e).slice(-n)}msToTime(e){"seconds"==this.getByKey("timeFormat")&&(e*=1e3);var o=e%1e3,s=(e=(e-o)/1e3)%60,r=(e=(e-s)/60)%60;return this.pad((e-r)/60)+":"+this.pad(r)+":"+this.pad(s)+"."+this.pad(o,3)}replaceUnicodeChar(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u0021/g,"!")).replace(/u0022/g,'"')).replace(/u0023/g,"#")).replace(/u0024/g,"$")).replace(/u0025/g,"%")).replace(/u0026/g,"&")).replace(/u0027/g,"'")).replace(/u0028/g,"(")).replace(/u0029/g,")")).replace(/u002A/g,"*")).replace(/u002B/g,"+")).replace(/u002C/g,",")).replace(/u002D/g,"-")).replace(/u002E/g,".")).replace(/u002F/g,"/")).replace(/u003A/g,":")).replace(/u003B/g,";")).replace(/u003C/g,"<")).replace(/u003D/g,"=")).replace(/u003E/g,">")).replace(/u003F/g,"?")).replace(/u0040/g,"@")).replace(/u005B/g,"[")).replace(/u005C/g,"\\")).replace(/u005D/g,"]")).replace(/u005E/g,"^")).replace(/u005F/g,"_")).replace(/u0060/g,"`")).replace(/u007B/g,"{")).replace(/u007C/g,"|")).replace(/u007D/g,"}")).replace(/u007E/g,"~")).replace(/!/g,"!")).replace(/"/g,'"')).replace(/#/g,"#")).replace(/$/g,"$")).replace(/%/g,"%")).replace(/&/g,"&")).replace(/'/g,"'")).replace(/(/g,"(")).replace(/)/g,")")).replace(/*/g,"*")).replace(/+/g,"+")).replace(/,/g,",")).replace(/-/g,"-")).replace(/./g,".")).replace(///g,"/")).replace(/:/g,":")).replace(/;/g,";")).replace(/</g,"<")).replace(/=/g,"=")).replace(/>/g,">")).replace(/?/g,"?")).replace(/@/g,"@")).replace(/[/g,"[")).replace(/\/g,"\\")).replace(/]/g,"]")).replace(/^/g,"^")).replace(/_/g,"_")).replace(/`/g,"`")).replace(/{/g,"{")).replace(/|/g,"|")).replace(/}/g,"}")).replace(/~/g,"~")).trimStart()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KD(t,i,e,n,o,s,r){try{var a=t[s](r),l=a.value}catch(c){return void e(c)}a.done?i(l):Promise.resolve(l).then(n,o)}function Fu(t){return function(){var i=this,e=arguments;return new Promise(function(n,o){var s=t.apply(i,e);function r(l){KD(s,n,o,r,a,"next",l)}function a(l){KD(s,n,o,r,a,"throw",l)}r(void 0)})}}class PK extends F{constructor(i,e){super()}schedule(i,e=0){return this}}const uf={setInterval(t,i,...e){const{delegate:n}=uf;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=uf;return(i?.clearInterval||clearInterval)(t)},delegate:void 0},sC={now:()=>(sC.delegate||Date).now(),delegate:void 0};class Ru{constructor(i,e=Ru.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Ru.now=sC.now;const GD=new class RK extends Ru{constructor(i,e=Ru.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}(class FK extends PK{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return uf.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&uf.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let o,n=!1;try{this.work(i)}catch(s){n=!0,o=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}),NK=GD;function gs(t=1/0){let i;i=t&&"object"==typeof t?t:{count:t};const{count:e=1/0,delay:n,resetOnSuccess:o=!1}=i;return e<=0?_e:Me((s,r)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(Ue(r,p=>{o&&(a=0),r.next(p)},void 0,p=>{if(a++{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=n){const _="number"==typeof n?function BK(t=0,i,e=NK){let n=-1;return null!=i&&(Zv(i)?e=i:n=i),new ce(o=>{let s=function VK(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let r=0;return e.schedule(function(){o.closed||(o.next(r++),0<=n?this.schedule(void 0,n):o.complete())},s)})}(n):Ni(n(p,a)),b=Ue(r,()=>{b.unsubscribe(),m()},()=>{r.complete()});_.subscribe(b)}else m()}else r.error(p)})),u&&(l.unsubscribe(),l=null,c())};c()})}let ms=(()=>{class t{constructor(){this.baseAppUrl="",this.accountId=1,this.topBarTitle="",this.hideRightPanel=!1,this.imagePath="assets/screenshots/",this.artifactPath="assets/artifacts/",this.isServerLoading=!1}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ha=(()=>{class t{constructor(e,n){this.httpClient=e,this.globalVarService=n,this.httpOptions={headers:new qo({"Content-Type":"application/json"}),params:{}}}GetAccountHtmlReport(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReport",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBriefCase(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBriefCase/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParent(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParentAwait(e){var n=this;return Fu(function*(){return yield n.httpClient.post(n.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActivityById(e){var n=this;return Fu(function*(){return yield n.httpClient.get(n.globalVarService.baseAppUrl+"HtmlReport/GetActivityById/"+e,n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActionById(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetActionById/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBrief(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBrief/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActionsStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActionsStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActivitiesStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActivitiesStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}DownloadRunsetImages(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/DownloadRunsetImages",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}handleError(e){let n="";return n=e.error instanceof ErrorEvent?e.error.message:`Error Code: ${e.status}\nMessage: ${e.message}`,Ll(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qs=(()=>{class t{initService(e=!1){e&&(this.runset=null,this.businessFlows=[],this.activities=[],this.actions=[]),this.runset=this.getRunset(),this.businessFlows=this.getAllBusinessFlows(),this.activities=this.getAllActivities(),this.actions=this.getAllActions()}constructor(e,n,o){this._userDataManagerService=e,this.restServiceObj=n,this.globalVarService=o}populateChartsData(e,n){e.push(["Passed",n[0]]),e.push(["Failed",n[1]]),e.push(["Blocked",n[2]]),e.push(["Stopped",n[3]]),e.push(["Pending",n[4]]),e.push(["In Progress",n[5]]),e.push(["Canceled",n[6]])}getRunset(){return this._userDataManagerService.getItemCache()}getAllBusinessFlows(){return(null==this.businessFlows||this.businessFlows.length<=0)&&(this.businessFlows=this.getBusinessFlows()),this.businessFlows}getBusinessFlows(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)e.push(o);return e}getActivities(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)e.push(s);return e}getAllActivities(){return(null==this.activities||this.activities.length<=0)&&(this.activities=this.getActivities()),this.activities}getActions(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)if(null!=s.ActionsColl)for(let r of s.ActionsColl)e.push(r);return e}getAllActions(){return(null==this.actions||this.actions.length<=0)&&(this.actions=this.getActions()),this.actions}getRateArray(e){let n=[],o=this.businessFlows.filter(r=>r.RunStatus==e).length,s=this.businessFlows.length-o;return n.push(o),n.push(s),n}getOthersRateArray(e){}getRunnerExecutionStatus(e){let n=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Passed).length,o=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Failed).length,s=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Stopped).length,r=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Blocked).length,a=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Pending).length,l=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.InProgress).length,c=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Canceled).length,u=e.BusinessFlowsColl.length;return s>0?Lt.Stopped:r>0?Lt.Blocked:o>0?Lt.Failed:n==u?Lt.Passed:a==u||a==u?Lt.Pending:l==u?Lt.InProgress:c==u?Lt.Canceled:null}getRunnersExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.runset.RunnersColl)this.populateArrayByRunStatus(e,n.RunStatus);return e}getAllBusinessFlowsExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.businessFlows)this.populateArrayByRunStatus(e,n.RunStatus);return e}getRunnerBusinessFlowsExecutionStatusArray(e){let n=[0,0,0,0,0,0,0];for(let o of e.BusinessFlowsColl)this.populateArrayByRunStatus(n,o.RunStatus);return n}getActionsExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(),this.runset.TotalActionsPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)if(null!=r.ActionsColl&&r.ActionsColl.length)for(let a of r.ActionsColl)this.populateArrayByRunStatus(e,a.RunStatus);return e}return null}getActionsCount(){let e=0;for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)null!=s.ActionsColl&&s.ActionsColl.length&&(e+=s.ActionsColl.length);return e}getActivitiesExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(),this.runset.TotalActivitesPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)this.populateArrayByRunStatus(e,r.RunStatus);return e}return null}getActivitiesCount(){let e=0;for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)null!=o.ActivitiesColl&&o.ActivitiesColl.length>0&&(e+=o.ActivitiesColl.length);return e}populateArrayByRunStatus(e,n){switch("In Progress"==n.toString()&&(n=Lt.InProgress),n){case Lt.Passed:e[0]++;break;case Lt.Stopped:e[3]++;break;case Lt.Failed:e[1]++;break;case Lt.Pending:e[4]++;break;case Lt.Blocked:e[2]++;break;case Lt.InProgress:e[5]++;break;case Lt.Canceled:e[6]++}}getStatusClass(e,n=!0){let o="";return"Passed"==e?(o="passed-color",n?"fa fa-check-circle-o "+o:o):"Failed"==e?(o="failed-color",n?"fa fa-times-circle-o "+o:o):"Blocked"==e?(o="blocked-color",n?"fa fa-ban "+o:o):"Stopped"==e?(o="stopped-color",n?"fa fa-stop-circle-o "+o:o):"Pending"==e?(o="pending-color",n?"fa fa-clock-o "+o:o):"Skipped"==e?(o="skipped-color",n?"fa fa-minus-circle "+o:o):"In Progress"==e?(o="inprogress-color",n?"fa fa-hourglass-half "+o:o):"Canceled"==e?(o="canceled-color",n?"fa fa-stop-circle-o "+o:o):"Other"==e?"other-color":void 0}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Co),Ze(ha),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qD=(()=>{class t{constructor(){}load(...e){const n=[];return e.forEach(o=>n.push(this.loadScript(o))),Promise.all(n)}loadScript(e){return new Promise((n,o)=>{let s=document.createElement("script");s.setAttribute("data-complete","completeCallback"),s.setAttribute("data-cancel","cancelCallback"),s.setAttribute("data-error","errorCallback"),s.type="text/javascript",s.src=e,s.readyState?s.onreadystatechange=()=>{("loaded"===s.readyState||"complete"===s.readyState)&&(s.onreadystatechange=null,n({script:e,loaded:!0,status:"Loaded"}))}:s.onload=()=>{n({script:e,loaded:!0,status:"Loaded"})},s.onerror=r=>n({script:e,loaded:!1,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(s)})}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HK=(()=>{class t{constructor(e,n,o,s){this._http=e,this._userDataManagerService=n,this.calculatedDataService=o,this.fileLoader=s}getRunsetFromJsonByHttpRequest(){return null==this.runset&&(this.runset=this._http.get("assets/Execution_Data/executiondata.json"),this.runset.subscribe(e=>{const n={...e};this._userDataManagerService.setItem("0",n),this.calculatedDataService.initService()})),this.runset}GetExecutionData(){return new Promise((e,n)=>{let o=null;const s="assets/Execution_Data/executiondata.js?t="+Math.random().toString();this.fileLoader.load(s).then(r=>{typeof window.runsetData<"u"?(o=window.runsetData,this._userDataManagerService.setItemCache(o),this.calculatedDataService.initService(),e(o)):e(null)}).catch(r=>console.log(r))})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(Co),Ze(qs),Ze(qD))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ws=(()=>{class t{constructor(){this.messageSource=new re,this.itemChangedSource=new re,this.refreshChangedSource=new re,this.bfActivitiesSourceChange=new re,this.loadbfActivities=new re,this.runnerStatLoad=new re,this.bfStatLoad=new re,this.activityStatLoad=new re,this.actionStatLoad=new re,this.messageSourceHasNewMessage=this.messageSource.asObservable(),this.onItemChangedMessage=this.itemChangedSource.asObservable(),this.onRefreshChangedMessage=this.refreshChangedSource.asObservable(),this.onBfActivitiesDataChange=this.bfActivitiesSourceChange.asObservable(),this.onloadbfActivities=this.loadbfActivities.asObservable(),this.onactivityStatLoad=this.activityStatLoad.asObservable(),this.onactionStatLoad=this.actionStatLoad.asObservable(),this.onrunnerStatLoad=this.runnerStatLoad.asObservable(),this.onbfStatLoad=this.bfStatLoad.asObservable()}newMessage(e){this.messageSource.next(e)}changeItem(e){this.itemChangedSource.next(e)}refreshScreen(e){this.refreshChangedSource.next(e)}bfActivitiesChange(e){this.bfActivitiesSourceChange.next(e)}loadbfActivitiesData(e){this.loadbfActivities.next(e)}loadactivityStat(e){this.activityStatLoad.next(e)}loadactionStat(e){this.actionStatLoad.next(e)}loadrunnerStat(e){this.runnerStatLoad.next(e)}loadbfStat(e){this.bfStatLoad.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),WD=(()=>{class t{constructor(){this.selectedRouteLink="",this.selectedGuid=""}GetMenuFromRunSet(e,n=null){const o=[],s={id:e.GUID,label:e.Name,routerLink:["/"],icon:"fa fa-play-circle",expanded:!0,title:e.Name,queryParams:n?{ExecutionId:n}:null};return this.CheckSelectedGuid(s.id,s.routerLink),this.SetRunners(e,s),o.push(s),o}SetRunners(e,n){return n.items=[],e.RunnersColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+o.Seq],icon:"fa fa-play-circle-o",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetBusinessFlow(o,r)}),n}SetBusinessFlow(e,n){e.BusinessFlowsColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+e.Seq+"/"+o.Seq],icon:"fa fa-sitemap",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetActivites(o,e,r)})}SetActivites(e,n,o){null!=e.ActivitiesColl&&e.ActivitiesColl.forEach(s=>{let r=this.getStatusIcon(s.RunStatus);const a={id:s.GUID,label:s.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/"+s.Seq],icon:"fa fa-bars",title:s.Name,styleClass:r};this.CheckSelectedGuid(a.id,a.routerLink),o.items.push(a),a.items=[],this.SetActions(s,a,n,e)})}SetActions(e,n,o,s){null!=e.ActionsColl&&e.ActionsColl.forEach(r=>{let a=this.getStatusIcon(r.RunStatus);const l={id:r.GUID,label:r.Name,routerLink:["/"+o.Seq+"/"+s.Seq+"/"+e.Seq+"/"+r.Seq],icon:"fa fa-bolt",title:r.Name,styleClass:a};this.CheckSelectedGuid(l.id,l.routerLink),n.items.push(l)})}SetActGroups(e,n,o){const s={id:"",label:"Activities Groups",icon:"activityGroup-menu-icon",items:[]};e.ActivitiesGroupsColl.forEach(r=>{const a={id:r.GUID,label:r.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/ag/ag/"+r.Name],icon:"fa fa-fw fa-exclamation-circle",title:r.Name};this.CheckSelectedGuid(a.id,a.routerLink),s.items.push(a)}),o.items.push(s)}GetShortName(e){return e.length>20?e.substring(0,20)+"...":e}CheckSelectedGuid(e,n){typeof this.selectedGuid<"u"&&this.selectedGuid&&""===this.selectedRouteLink&&this.selectedGuid===e&&(this.selectedRouteLink=n+"?Guid="+e)}getStatusIcon(e){let n=" "+e+"Status";return e==Lt.Failed||e==Lt.FailIgnored||e==Lt.Passed||e==Lt.Canceled?n:e==Lt.InProgress||n.search("Progress")?"InProgressStatus":e==Lt.Queued||e==Lt.Stopped?n:void 0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class be{static equals(i,e,n){return n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof i&&"object"==typeof e){var s,r,a,n=Array.isArray(i),o=Array.isArray(e);if(n&&o){if((r=i.length)!=e.length)return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[s],e[s]))return!1;return!0}if(n!=o)return!1;var l=this.isDate(i),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return i.getTime()==e.getTime();var u=i instanceof RegExp,p=e instanceof RegExp;if(u!=p)return!1;if(u&&p)return i.toString()==e.toString();var m=Object.keys(i);if((r=m.length)!==Object.keys(e).length)return!1;for(s=r;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,m[s]))return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[a=m[s]],e[a]))return!1;return!0}return i!=i&&e!=e}static resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),o=i;for(let s=0,r=n.length;s=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static insertIntoOrderedArray(i,e,n,o){if(n.length>0){let s=!1;for(let r=0;re){n.splice(r,0,i),s=!0;break}s||n.push(i)}else n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let o=0;o-1&&(i=i.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),i}static isDate(i){return"[object Date]"===Object.prototype.toString.call(i)}static isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!this.isDate(i)&&"object"==typeof i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}static compare(i,e,n,o=1){let s=-1;const r=this.isEmpty(i),a=this.isEmpty(e);return s=r&&a?0:r?o:a?-o:"string"==typeof i&&"string"==typeof e?i.localeCompare(e,n,{numeric:!0}):ie?1:0,s}static sort(i,e,n=1,o,s=1){return(1===s?n:s)*be.compare(i,e,o,n)}static merge(i,e){if(null!=i||null!=e)return null!=i&&"object"!=typeof i||null!=e&&"object"!=typeof e?null!=i&&"string"!=typeof i||null!=e&&"string"!=typeof e?e||i:[i||"",e||""].join(" "):{...i||{},...e||{}}}static isPrintableCharacter(i=""){return this.isNotEmpty(i)&&1===i.length&&i.match(/\S| /)}static getItemValue(i,...e){return this.isFunction(i)?i(...e):i}static findLastIndex(i,e){let n=-1;if(this.isNotEmpty(i))try{n=i.findLastIndex(e)}catch{n=i.lastIndexOf([...i].reverse().find(e))}return n}static findLast(i,e){let n;if(this.isNotEmpty(i))try{n=i.findLast(e)}catch{n=[...i].reverse().find(e)}return n}}var QD=0;function $t(t="pn_id_"){return`${t}${++QD}`}var Wn=function zK(){let t=[];const o=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:o,set:(s,r,a)=>{r&&(r.style.zIndex=String(((s,r)=>{let a=t.length>0?t[t.length-1]:{key:s,value:r},l=a.value+(a.key===s?0:r)+2;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(r=>r.value!==s)})(o(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const ZD=["*"];let vi=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),YD=(()=>class t{static AND="and";static OR="or"})(),df=(()=>{class t{filter(e,n,o,s,r){let a=[];if(e)for(let l of e)for(let c of n){let u=be.resolveFieldData(l,c);if(this.filters[s](u,o,r)){a.push(l);break}}return a}filters={startsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return be.removeAccents(e.toString()).toLocaleLowerCase(o).slice(0,s.length)===s},contains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1!==be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},notContains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1===be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},endsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o),r=be.removeAccents(e.toString()).toLocaleLowerCase(o);return-1!==r.indexOf(s,r.length-s.length)},equals:(e,n,o)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o)),notEquals:(e,n,o)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let o=0;onull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,o)=>this.filters.equals(e,n,o),isNot:(e,n,o)=>this.filters.notEquals(e,n,o),before:(e,n,o)=>this.filters.lt(e,n,o),after:(e,n,o)=>this.filters.gt(e,n,o),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dr=(()=>{class t{clickSource=new re;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ki=(()=>{class t{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[vi.STARTS_WITH,vi.CONTAINS,vi.NOT_CONTAINS,vi.ENDS_WITH,vi.EQUALS,vi.NOT_EQUALS],numeric:[vi.EQUALS,vi.NOT_EQUALS,vi.LESS_THAN,vi.LESS_THAN_OR_EQUAL_TO,vi.GREATER_THAN,vi.GREATER_THAN_OR_EQUAL_TO],date:[vi.DATE_IS,vi.DATE_IS_NOT,vi.DATE_BEFORE,vi.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new re;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-header"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),rC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-footer"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),sn=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(V($o))};static \u0275dir=ut({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),Qe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),di=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})(),j=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let o=n.trim().split(" ");for(let s=0;so.split(" ").forEach(s=>this.removeClass(e,s)))}static hasClass(e,n){return!(!e||!n)&&(e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return Array.from(e.querySelectorAll(n))}static findSingle(e,n){return this.isElement(e)?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,o=0;for(var s=0;s{if(W)return"relative"===getComputedStyle(W).getPropertyValue("position")?W:o(W.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=n.offsetHeight,a=n.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),m=o(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let _,b;a.top+r+s.height>u.height?(_=a.top-m.top-s.height,e.style.transformOrigin="bottom",a.top+_<0&&(_=-1*a.top)):(_=r+a.top-m.top,e.style.transformOrigin="top");const E=a.left+s.width-u.width;b=s.width>u.width?-1*(a.left-m.left):E>0?a.left-m.left-E:a.left-m.left,e.style.top=_+"px",e.style.left=b+"px"}static absolutePosition(e,n){const o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,r=o.width,a=n.offsetHeight,l=n.offsetWidth,c=n.getBoundingClientRect(),u=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),m=this.getViewport();let _,b;c.top+a+s>m.height?(_=c.top+u-s,e.style.transformOrigin="bottom",_<0&&(_=u)):(_=a+c.top+u,e.style.transformOrigin="top"),b=c.left+r>m.width?Math.max(0,c.left+p+l-r):c.left+p,e.style.top=_+"px",e.style.left=b+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let o=this.getParents(e);const s=/(auto|scroll)/,r=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let p=this.findSingle(a,u);p&&r(p)&&n.push(p)}}9!==a.nodeType&&r(a)&&n.push(a)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let o=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=o?parseFloat(o):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),a=r?parseFloat(r):0,l=e.getBoundingClientRect(),u=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,p=e.scrollTop,m=e.clientHeight,_=this.getOuterHeight(n);u<0?e.scrollTop=p+u:u+_>m&&(e.scrollTop=p+u-m+_)}static fadeIn(e,n){e.style.opacity=0;let o=+new Date,s=0,r=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-o)/n,e.style.opacity=s,o=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var o=1,a=50/n;let l=setInterval(()=>{(o-=a)<=0&&(o=0,clearInterval(l)),e.style.opacity=o},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,n){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let o=e.offsetWidth;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return o}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static width(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n}static getOuterHeight(e,n){let o=e.offsetHeight;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return o}static getHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),n}static getViewport(){let e=window,n=document,o=n.documentElement,s=n.getElementsByTagName("body")[0];return{width:e.innerWidth||o.clientWidth||s.clientWidth,height:e.innerHeight||o.clientHeight||s.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let o=e.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(n,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,n){if(this.isElement(n))n.appendChild(e);else{if(!(n&&n.el&&n.el.nativeElement))throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let o=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,o){e[n].apply(e,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableElements(e,n=""){let o=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),s=[];for(let r of o)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return s}static getFirstFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[0]:null}static getLastFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(e,n=!1){const o=t.getFocusableElements(e);let s=0;if(o&&o.length>0){const r=o.indexOf(o[0].ownerDocument.activeElement);n?s=-1==r||0===r?o.length-1:r-1:-1!=r&&r!==o.length-1&&(s=r+1)}return o[s]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:const o=typeof e;if("string"===o)return document.querySelector(e);if("object"===o&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const r=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return r&&9===r.nodeType||this.isExist(r)?r:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){const o=e.getAttribute(n);return isNaN(o)?"true"===o||"false"===o?"true"===o:o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})();class Vu{element;listener;scrollableParents;constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=j.getScrollableParents(this.element);for(let i=0;i{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=be.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[Et],ngContentSelectors:UK,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0})}return t})(),bi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Qi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function $K(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.collapseIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function KK(t,i){1&t&&le(0,"ChevronDownIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function GK(t,i){if(1&t&&(we(0),g(1,$K,1,4,"span",9),g(2,KK,1,2,"ChevronDownIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.collapseIcon),h(1),d("ngIf",!e.accordion.collapseIcon)}}function qK(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.expandIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function WK(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function QK(t,i){if(1&t&&(we(0),g(1,qK,1,4,"span",9),g(2,WK,1,2,"ChevronRightIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.expandIcon),h(1),d("ngIf",!e.accordion.expandIcon)}}function ZK(t,i){if(1&t&&(we(0),g(1,GK,3,2,"ng-container",3),g(2,QK,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.selected),h(1),d("ngIf",!e.selected)}}function YK(t,i){}function XK(t,i){1&t&&g(0,YK,0,0,"ng-template")}function JK(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.header," ")}}function eG(t,i){1&t&&ze(0)}function tG(t,i){1&t&&Kn(0,1,["*ngIf","hasHeaderFacet"])}function nG(t,i){1&t&&ze(0)}function iG(t,i){if(1&t&&(we(0),g(1,nG,1,0,"ng-container",6),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)}}const oG=["*",[["p-header"]]],sG=function(t){return{$implicit:t}},XD=function(t){return{transitionParams:t}},rG=function(t){return{value:"visible",params:t}},aG=function(t){return{value:"hidden",params:t}},lG=["*","p-header"],cG=["*"];let fa=(()=>{class t{el;changeDetector;id;header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}headerAriaLevel=2;selectedChange=new ge;headerFacet;templates;_selected=!1;get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}contentTemplate;headerTemplate;iconTemplate;loaded=!1;accordion;constructor(e,n,o){this.el=n,this.changeDetector=o,this.accordion=e,this.id=$t()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"icon":this.iconTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var o=0;o0}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ga)),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordionTab"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,4),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:"headerAriaLevel"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:lG,decls:12,vars:45,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],["role","heading",1,"p-accordion-header"],["role","button",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-accordion-header-text"]],template:function(n,o){1&n&&(Ti(oG),x(0,"div",0)(1,"div",1)(2,"a",2),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeydown(r)}),g(3,ZK,3,2,"ng-container",3),g(4,XK,1,0,null,4),g(5,JK,2,1,"span",5),g(6,eG,1,0,"ng-container",6),g(7,tG,1,0,"ng-content",3),A()(),x(8,"div",7)(9,"div",8),Kn(10),g(11,iG,2,1,"ng-container",3),A()()()),2&n&&(Ii("p-accordion-tab-active",o.selected),d("ngClass",o.tabStyleClass)("ngStyle",o.tabStyle),K("data-pc-name","accordiontab"),h(1),Ii("p-highlight",o.selected)("p-disabled",o.disabled),K("aria-level",o.headerAriaLevel)("data-p-disabled",o.disabled)("data-pc-section","header"),h(1),yn(o.headerStyle),d("ngClass",o.headerStyleClass),K("tabindex",o.disabled?null:0)("id",o.getTabHeaderActionId(o.id))("aria-controls",o.getTabContentId(o.id))("aria-expanded",o.selected)("aria-disabled",o.disabled)("data-pc-section","headeraction"),h(1),d("ngIf",!o.iconTemplate),h(1),d("ngTemplateOutlet",o.iconTemplate)("ngTemplateOutletContext",He(35,sG,o.selected)),h(1),d("ngIf",!o.hasHeaderFacet),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.hasHeaderFacet),h(1),d("@tabContent",o.selected?He(39,rG,He(37,XD,o.transitionOptions)):He(43,aG,He(41,XD,o.transitionOptions))),K("id",o.getTabContentId(o.id))("aria-hidden",!o.selected)("aria-labelledby",o.getTabHeaderActionId(o.id))("data-pc-section","toggleablecontent"),h(1),d("ngClass",o.contentStyleClass)("ngStyle",o.contentStyle),h(2),d("ngIf",o.contentTemplate&&(o.cache?o.loaded:o.selected)))},dependencies:function(){return[Ct,gt,on,Ht,Qi,bi]},styles:["@layer primeng{.p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}}\n"],encapsulation:2,data:{animation:[Oo("tabContent",[Us("hidden",en({height:"0",visibility:"hidden"})),Us("visible",en({height:"*",visibility:"visible"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),ga=(()=>{class t{el;changeDetector;multiple=!1;style;styleClass;expandIcon;collapseIcon;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}selectOnFocus=!1;get headerAriaLevel(){return this._headerAriaLevel}set headerAriaLevel(e){"number"==typeof e&&e>0?this._headerAriaLevel=e:2!==this._headerAriaLevel&&(this._headerAriaLevel=2)}onClose=new ge;onOpen=new ge;activeIndexChange=new ge;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,n){this.el=e,this.changeDetector=n}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e)}}onTabArrowDownKey(e){const n=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const n=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const n=this.findFirstHeaderAction();this.changeFocusedTab(n),e.preventDefault()}changeFocusedTab(e){e&&(j.focus(e),this.selectOnFocus&&this.tabs.forEach((n,o)=>{let s=this.multiple?this._activeIndex.includes(o):o===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),n.id==e.id&&(n.selected=!n.selected,this._activeIndex.includes(o)?this._activeIndex=this._activeIndex.filter(r=>r!==o):this._activeIndex.push(o))):n.id==e.id?(n.selected=!n.selected,this._activeIndex=o):n.selected=!1,n.selectedChange.emit(s),this.activeIndexChange.emit(this._activeIndex),n.changeDetector.markForCheck()}))}findNextHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){return this.findNextHeaderAction(this.el.nativeElement.firstElementChild.childNodes[0],!0)}findLastHeaderAction(){const e=this.el.nativeElement.firstElementChild.childNodes;return this.findPrevHeaderAction(e[e.length-1],!0)}onTabEndKey(e){const n=this.findLastHeaderAction();this.changeFocusedTab(n),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(n.selected){if(!this.multiple)return void(e=o);e.push(o)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordion"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,fa,5),2&n){let r;Se(r=Ee())&&(o.tabList=r)}},hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown",function(r){return o.onKeydown(r)})},inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex",selectOnFocus:"selectOnFocus",headerAriaLevel:"headerAriaLevel"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:cG,decls:2,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(n,o){1&n&&(Ti(),x(0,"div",0),Kn(1),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-accordion p-component")("ngStyle",o.style))},dependencies:[Ct,Ht],encapsulation:2,changeDetection:0})}return t})(),JD=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qi,bi,Qe]})}return t})();function uG(t,i){if(1&t&&(x(0,"div",8)(1,"span"),Le(2),A()()),2&t){const e=f(2).$implicit,n=f();h(1),Ve(n.getstatus(e.value)),h(1),dt(e.value)}}function dG(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit;h(1),dt(e.value)}}const pG=function(){return["Execution Status"]};function hG(t,i){if(1&t&&(x(0,"div",3),g(1,uG,3,4,"div",6),g(2,dG,2,1,"div",7),A()),2&t){const e=f().$implicit;h(1),d("ngSwitchCase",Jt(1,pG).includes(e.field)?e.field:"")}}function fG(t,i){1&t&&(x(0,"div",3),Le(1,"N/A"),A())}function gG(t,i){if(1&t&&(we(0,2),x(1,"div",3)(2,"strong"),Le(3),A()(),g(4,hG,3,2,"div",4),g(5,fG,2,0,"ng-template",null,5,In),Te()),2&t){const e=i.$implicit,n=Bt(6);d("ngSwitch",e.field),h(3),Pt(" ",e.field,": "),h(1),d("ngIf",e.value)("ngIfElse",n)}}let Ul=(()=>{class t{constructor(){}ngOnInit(){}getstatus(e){return"Passed"==e?"passed-color":"Failed"==e?"failed-color":"Blocked"==e?"blocked-color":"Stopped"==e?"stopped-color":"Pending"==e?"pending-color":"Skipped"==e?"skipped-color":"In Progress"==e?"inprogress-color":"Canceled"==e?"canceled-color":"Other"==e?"other-color":void 0}datepipe(e){e.includes("s")&&(e=e.replace("s",""));var n=new Date(0,0,0,0,0,0,0);return n.toLocaleString("HH:mm:ss.SSS"),n.setSeconds(e),n.setMilliseconds(e.split(".")[1]),n}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-general-details"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[1,"col-12","md:col-3","row"],["class","col-12 md:col-3 row",4,"ngIf","ngIfElse"],["elseBlock",""],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"numbers-style"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,gG,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.data))},dependencies:[Jn,gt,wl,ch,x0],styles:[".row[_ngcontent-%COMP%]{border:solid 1px #ffffff;background-color:#f5f5f6;padding:1rem}.row[_ngcontent-%COMP%]:nth-child(4n+1){background:#eaebeb!important}.row[_ngcontent-%COMP%]:nth-child(4n+3){background:#eaebeb!important}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}"]})}return t})();class ek extends re{constructor(i=1/0,e=1/0,n=sC){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:r}=this;e||(n.push(i),!o&&n.push(s.now()+r)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,s=o.slice();for(let r=0;ra=>t[r](i,a,e)):function CG(t){return L(t.addListener)&&L(t.removeListener)}(t)?mG.map(tk(t,i)):function vG(t){return L(t.on)&&L(t.off)}(t)?IG.map(tk(t,i)):[];if(!o&&dg(t))return si(r=>aC(r,i,e))(Ni(t));if(!o)throw new TypeError("Invalid event target");return new ce(r=>{const a=(...l)=>r.next(1s(a)})}function tk(t,i){return e=>n=>t[e](i,n)}function nk(t,i=GD){return Me((e,n)=>{let o=null,s=null,r=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=s;s=null,n.next(c)}};function l(){const c=r+t,u=i.now();if(u{s=c,r=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{s=o=null}))})}const yG=["*"];var An=function(t){return t.AnnotationChart="AnnotationChart",t.AreaChart="AreaChart",t.Bar="Bar",t.BarChart="BarChart",t.BubbleChart="BubbleChart",t.Calendar="Calendar",t.CandlestickChart="CandlestickChart",t.ColumnChart="ColumnChart",t.ComboChart="ComboChart",t.PieChart="PieChart",t.Gantt="Gantt",t.Gauge="Gauge",t.GeoChart="GeoChart",t.Histogram="Histogram",t.Line="Line",t.LineChart="LineChart",t.Map="Map",t.OrgChart="OrgChart",t.Sankey="Sankey",t.Scatter="Scatter",t.ScatterChart="ScatterChart",t.SteppedAreaChart="SteppedAreaChart",t.Table="Table",t.Timeline="Timeline",t.TreeMap="TreeMap",t.WordTree="wordtree",t}(An||{});const xG={[An.AnnotationChart]:"annotationchart",[An.AreaChart]:"corechart",[An.Bar]:"bar",[An.BarChart]:"corechart",[An.BubbleChart]:"corechart",[An.Calendar]:"calendar",[An.CandlestickChart]:"corechart",[An.ColumnChart]:"corechart",[An.ComboChart]:"corechart",[An.PieChart]:"corechart",[An.Gantt]:"gantt",[An.Gauge]:"gauge",[An.GeoChart]:"geochart",[An.Histogram]:"corechart",[An.Line]:"line",[An.LineChart]:"corechart",[An.Map]:"map",[An.OrgChart]:"orgchart",[An.Sankey]:"sankey",[An.Scatter]:"scatter",[An.ScatterChart]:"corechart",[An.SteppedAreaChart]:"corechart",[An.Table]:"table",[An.Timeline]:"timeline",[An.TreeMap]:"treemap",[An.WordTree]:"wordtree"},ok=new Ye("GOOGLE_CHARTS_CONFIG"),wG=new Ye("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>ht({version:"current",safeMode:!1,...et(ok,zt.Optional)||{}})});let pf=(()=>{class t{constructor(e,n,o){this.zone=e,this.localeId=n,this.config$=o,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new re}isGoogleChartsAvailable(){return!(typeof google>"u"||typeof google.charts>"u")}loadChartPackages(...e){return this.loadGoogleCharts().pipe(si(()=>this.config$),at(n=>({version:"current",safeMode:!1,...n||{}})),Ao(n=>new ce(o=>{google.charts.load(n.version,{packages:e,language:this.localeId,mapsApiKey:n.mapsApiKey,safeMode:n.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{o.next(),o.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return ht(void 0);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(n=>n.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(Ze(Tt),Ze(us),Ze(wG))},t.\u0275prov=nt({token:t,factory:t.\u0275fac}),t})(),sk=(()=>{class t{create(e,n,o){if(null==e)return;let s=!0;null!=n&&(s=!1);const r=google.visualization.arrayToDataTable(this.getDataAsTable(e,n),s);return o&&this.applyFormatters(r,o),r}getDataAsTable(e,n){return n?[n,...e]:e}applyFormatters(e,n){for(const o of n)o.formatter.format(e,o.colIndex)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),EG=(()=>{class t{constructor(e){this.loaderService=e,this.error=new ge,this.ready=new ge,this.stateChange=new ge,this.id=function TG(){return"_"+Math.random().toString(36).substr(2,9)}(),this.wrapperReadySubject=new ek(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(V(pf))},t.\u0275cmp=Oe({type:t,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,n){2&e&&x_("id",n.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[Hn],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),t})(),DG=(()=>{class t{constructor(e,n,o){this.element=e,this.loaderService=n,this.dataTableService=o,this.ready=new ge,this.error=new ge,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(o=>o.wrapperReady$),n=this.controlWrappers.map(o=>o.for).map(o=>Array.isArray(o)?Cu(o.map(s=>s.wrapperReady$)):o.wrapperReady$);Cu([...e,...n]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(n,o,s)=>{google.visualization.events.addListener(n,o,s)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",n=>this.error.emit(n))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const n=e.for.map(o=>o.chartWrapper);this.dashboard.bind(e.controlWrapper,n)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk))},t.\u0275cmp=Oe({type:t,selectors:[["dashboard"]],contentQueries:function(e,n,o){if(1&e&&Gt(o,EG,4),2&e){let s;Se(s=Ee())&&(n.controlWrappers=s)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[Hn],ngContentSelectors:yG,decls:1,vars:0,template:function(e,n){1&e&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0}),t})(),rk=(()=>{class t{constructor(e,n,o,s){this.element=e,this.scriptLoaderService=n,this.dataTableService=o,this.dashboard=s,this.options={},this.dynamicResize=!1,this.ready=new ge,this.error=new ge,this.select=new ge,this.mouseover=new ge,this.mouseleave=new ge,this.wrapperReadySubject=new ek(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){this.scriptLoaderService.loadChartPackages(function AG(t){return xG[t]}(this.type)).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let n=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),n=!0),e.type&&(this.wrapper.setChartType(this.type),n=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),n=!0),n&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,n){const o=this.registerChartEvent(this.chart,e,n);return this.eventListeners.set(o,{eventName:e,callback:n,handle:o}),o}removeEventListener(e){const n=this.eventListeners.get(e);n&&(google.visualization.events.removeListener(n.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=aC(window,"resize",{passive:!0}).pipe(nk(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return{title:this.title,width:this.width,height:this.height,...this.options}}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,n,o){return google.visualization.events.addListener(e,n,o)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk),V(DG,8))},t.\u0275cmp=Oe({type:t,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",options:"options",formatters:"formatters",dynamicResize:"dynamicResize"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[Hn],decls:0,vars:0,template:function(e,n){},styles:["[_nghost-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:block}"],changeDetection:0}),t})(),kG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:ok,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qe({type:t}),t.\u0275inj=Ge({providers:[pf]}),t})(),MG=(()=>{class t{constructor(e){this.communicatorService=e}ngOnInit(){this.InitGraph(),this.communicatorService.onactionStatLoad.subscribe(e=>{"Completed"==e&&"Actions"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Activities"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Runners"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Business Flows"==this.title&&this.InitGraph()})}InitGraph(){this.type="PieChart",this.title=this.chartTitle,this.data=this.executionData,this.columnNames=["Status","Percentage"],this.options={chartArea:{left:0,height:220,width:400},height:400,width:400,legend:{position:"labeled"},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"],is3D:!1,pieHole:.7,pieSliceText:"none",titleTextStyle:{fontFamily:"Arial",fontColor:"#000000",fontSize:12,bold:!0}},this.data=this.executionData}delay(e){return new Promise(n=>setTimeout(n,e))}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-chart"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function OG(t,i){if(1&t&&(x(0,"div")(1,"div",1),le(2,"app-google-chart",2)(3,"app-google-chart",2)(4,"app-google-chart",2)(5,"app-google-chart",2),A()()),2&t){const e=f();h(2),d("executionData",e.runnerData)("chartTitle",e.GingerRunnerTitle),h(1),d("executionData",e.businessFlowsData)("chartTitle",e.BusinessFlowsTitle),h(1),d("executionData",e.activitiesData)("chartTitle",e.ActivitiesTitle),h(1),d("executionData",e.actionsData)("chartTitle",e.ActionsTitle)}}let LG=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this._userDataManagerService=o,this.communicatorService=s,this.isStatisticsVisibleEvent=new ge,this.isStatisticsVisible=!1,this.lables=[Lt.Passed,Lt.Failed,Lt.Blocked,Lt.Stopped,Lt.Pending],this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.LoadActivityStat=!0,this.LoadActionStat=!0}ngOnInit(){}initComponents(){this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.RunsetJson=this._userDataManagerService.getItemCache(),this.LoadActivityStat=null==this._userDataManagerService.getByKey("LoadActivityStat")||this._userDataManagerService.getByKey("LoadActivityStat"),this.LoadActionStat=null==this._userDataManagerService.getByKey("LoadActionStat")||this._userDataManagerService.getByKey("LoadActionStat"),this.activitiesData=this._userDataManagerService.getByKey("ActivitiesStatistics"),this.actionsData=this._userDataManagerService.getByKey("ActionsStatistics"),this.executionDataGingerRunner=this.calculatedDataService.getRunnersExecutionStatusArray(),this.GingerRunnerTitle="Runners",this.calculatedDataService.populateChartsData(this.runnerData,this.executionDataGingerRunner),this.communicatorService.loadrunnerStat("Completed"),this.executionDataBusinessFlows=this.calculatedDataService.getAllBusinessFlowsExecutionStatusArray(),this.BusinessFlowsTitle="Business Flows",this.calculatedDataService.populateChartsData(this.businessFlowsData,this.executionDataBusinessFlows),this.communicatorService.loadbfStat("Completed"),this.ActivitiesTitle="Activities",this.ActionsTitle="Actions",(null==this.activitiesData||null==this.activitiesData||this.activitiesData.length<0||this.LoadActivityStat)&&(this.activitiesData=[],this.executionDataActivities=this.calculatedDataService.getActivitiesExecutionStatusArray(),null!=this.executionDataActivities?this.calculatedDataService.populateChartsData(this.activitiesData,this.executionDataActivities):this.restServiceObj.GetAllActivitiesStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.activitiesData,o),this._userDataManagerService.setItem("ActivitiesStatistics",this.activitiesData),this.communicatorService.loadactivityStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActivityStat","false")}})),(null==this.actionsData||null==this.actionsData||this.actionsData.length<0||this.LoadActivityStat)&&(this.actionsData=[],this.executionDataActions=this.calculatedDataService.getActionsExecutionStatusArray(),null!=this.executionDataActions?this.calculatedDataService.populateChartsData(this.actionsData,this.executionDataActions):this.restServiceObj.GetAllActionsStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.actionsData,o),this._userDataManagerService.setItem("ActionsStatistics",this.actionsData),this.communicatorService.loadactionStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActionStat","false")}})),null!=this.runnerData&&this.runnerData.length>0||this.businessFlowsData&&this.businessFlowsData.length>0||this.activitiesData&&this.activitiesData.length>0||this.actionsData&&this.actionsData.length>0?(this.isStatisticsVisibleEvent.emit(!0),this.isStatisticsVisible=!0):(this.isStatisticsVisibleEvent.emit(!1),this.isStatisticsVisible=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(Co),V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-execution-statistic"]],outputs:{isStatisticsVisibleEvent:"isStatisticsVisibleEvent"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex-container"],[3,"executionData","chartTitle"]],template:function(n,o){1&n&&g(0,OG,6,8,"div",0),2&n&&d("ngIf",o.isStatisticsVisible)},dependencies:[gt,MG],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:wrap}"]})}return t})(),_s=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oo=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){ei(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let n=this.getInk();if(!n||"none"===this.document.defaultView?.getComputedStyle(n,null).display)return;if(j.removeClass(n,"p-ink-active"),!j.getHeight(n)&&!j.getWidth(n)){let a=Math.max(j.getOuterWidth(this.el.nativeElement),j.getOuterHeight(this.el.nativeElement));n.style.height=a+"px",n.style.width=a+"px"}let o=j.getOffset(this.el.nativeElement),s=e.pageX-o.left+this.document.body.scrollTop-j.getWidth(n)/2,r=e.pageY-o.top+this.document.body.scrollLeft-j.getHeight(n)/2;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px"),j.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&j.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let hf=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(kr);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(e,n){this.el=e,this.document=n}ngAfterViewInit(){j.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[kr.button,kr.component];return this.icon&&!this.label&&be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly),this.loading&&(e.push(kr.disabled,kr.loading),!this.icon&&this.label&&e.push(kr.labelOnly),this.icon&&!this.label&&!be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(this.label){let e=this.document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=this.document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&j.addClass(e,n);let o=this.getIconClass();o&&j.addMultipleClasses(e,o),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=j.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=j.findSingle(this.htmlElement,".p-button-icon"),n=j.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?e.className=this.iconPos?"p-button-icon "+(n?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(n){return new(n||t)(V(bt),V(Wt))};static \u0275dir=ut({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,_s,Qe]})}return t})(),Mr=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ff=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mn=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ak=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const $G=["container"],KG=["inputfield"],GG=["contentWrapper"];function qG(t,i){if(1&t){const e=De();x(0,"TimesIcon",10),me("click",function(){return G(e),q(f(3).clear())}),A()}2&t&&d("styleClass","p-calendar-clear-icon")}function WG(t,i){}function QG(t,i){1&t&&g(0,WG,0,0,"ng-template")}function ZG(t,i){if(1&t){const e=De();x(0,"span",11),me("click",function(){return G(e),q(f(3).clear())}),g(1,QG,1,0,null,12),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function YG(t,i){if(1&t&&(we(0),g(1,qG,1,1,"TimesIcon",8),g(2,ZG,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function XG(t,i){1&t&&le(0,"span",15),2&t&&d("ngClass",f(3).icon)}function JG(t,i){1&t&&le(0,"CalendarIcon")}function eq(t,i){}function tq(t,i){1&t&&g(0,eq,0,0,"ng-template")}function nq(t,i){if(1&t&&(we(0),g(1,JG,1,0,"CalendarIcon",6),g(2,tq,1,0,null,12),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.triggerIconTemplate),h(1),d("ngTemplateOutlet",e.triggerIconTemplate)}}function iq(t,i){if(1&t){const e=De();x(0,"button",13),me("click",function(o){G(e),f();const s=Bt(1);return q(f().onButtonClick(o,s))}),g(1,XG,1,1,"span",14),g(2,nq,3,2,"ng-container",6),A()}if(2&t){const e=f(2);d("disabled",e.disabled),K("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId),h(1),d("ngIf",e.icon),h(1),d("ngIf",!e.icon)}}function oq(t,i){if(1&t){const e=De();x(0,"input",4,5),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("click",function(){return G(e),q(f().onInputClick())})("blur",function(o){return G(e),q(f().onInputBlur(o))})("input",function(o){return G(e),q(f().onUserInput(o))}),A(),g(2,YG,3,2,"ng-container",6),g(3,iq,3,6,"button",7)}if(2&t){const e=f();Ve(e.inputStyleClass),d("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),K("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),h(2),d("ngIf",e.showClear&&!e.disabled&&null!=e.value),h(1),d("ngIf",e.showIcon)}}function sq(t,i){1&t&&ze(0)}function rq(t,i){1&t&&le(0,"ChevronLeftIcon",37),2&t&&d("styleClass","p-datepicker-prev-icon")}function aq(t,i){}function lq(t,i){1&t&&g(0,aq,0,0,"ng-template")}function cq(t,i){if(1&t&&(x(0,"span",38),g(1,lq,1,0,null,12),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.previousIconTemplate)}}function uq(t,i){if(1&t){const e=De();x(0,"button",35),me("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(4).onPrevButtonClick(o))}),g(1,rq,1,1,"ChevronLeftIcon",32),g(2,cq,2,1,"span",36),A()}if(2&t){const e=f(4);K("aria-label",e.prevIconAriaLabel),h(1),d("ngIf",!e.previousIconTemplate),h(1),d("ngIf",e.previousIconTemplate)}}function dq(t,i){if(1&t){const e=De();x(0,"button",39),me("click",function(o){return G(e),q(f(4).switchToMonthView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseMonth")),h(1),Pt(" ",n.getMonthName(e.month)," ")}}function pq(t,i){if(1&t){const e=De();x(0,"button",40),me("click",function(o){return G(e),q(f(4).switchToYearView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseYear")),h(1),Pt(" ",n.getYear(e)," ")}}function hq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(5);h(1),Fp("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function fq(t,i){1&t&&ze(0)}const lC=function(t){return{$implicit:t}};function gq(t,i){if(1&t&&(x(0,"span",41),g(1,hq,2,2,"ng-container",6),g(2,fq,1,0,"ng-container",42),A()),2&t){const e=f(4);h(1),d("ngIf",!e.decadeTemplate),h(1),d("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",He(3,lC,e.yearPickerValues))}}function mq(t,i){1&t&&le(0,"ChevronRightIcon",37),2&t&&d("styleClass","p-datepicker-next-icon")}function _q(t,i){}function Iq(t,i){1&t&&g(0,_q,0,0,"ng-template")}function Cq(t,i){if(1&t&&(x(0,"span",43),g(1,Iq,1,0,null,12),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.nextIconTemplate)}}function vq(t,i){if(1&t&&(x(0,"th",49)(1,"span"),Le(2),A()()),2&t){const e=f(5);h(2),dt(e.getTranslation("weekHeader"))}}function bq(t,i){if(1&t&&(x(0,"th",50)(1,"span"),Le(2),A()()),2&t){const e=i.$implicit;h(2),dt(e)}}function yq(t,i){if(1&t&&(x(0,"td",53)(1,"span",54),Le(2),A()()),2&t){const e=f().index,n=f(2).$implicit;h(2),Pt(" ",n.weekNumbers[e]," ")}}function xq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2).$implicit;h(1),dt(e.day)}}function Aq(t,i){1&t&&ze(0)}function wq(t,i){if(1&t&&(we(0),g(1,Aq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Tq(t,i){1&t&&ze(0)}function Sq(t,i){if(1&t&&(we(0),g(1,Tq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.disabledDateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Eq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f(2).$implicit;h(1),Pt(" ",e.day," ")}}const cC=function(t,i){return{"p-highlight":t,"p-disabled":i}};function Dq(t,i){if(1&t){const e=De();we(0),x(1,"span",55),me("click",function(o){G(e);const s=f().$implicit;return q(f(6).onDateSelect(o,s))})("keydown",function(o){G(e);const s=f().$implicit,r=f(3).index;return q(f(3).onDateCellKeydown(o,s,r))}),g(2,xq,2,1,"ng-container",6),g(3,wq,2,4,"ng-container",6),g(4,Sq,2,4,"ng-container",6),A(),g(5,Eq,2,1,"div",56),Te()}if(2&t){const e=f().$implicit,n=f(6);h(1),d("ngClass",mt(5,cC,n.isSelected(e)&&e.selectable,!e.selectable)),h(1),d("ngIf",!n.dateTemplate&&(e.selectable||!n.disabledDateTemplate)),h(1),d("ngIf",e.selectable||!n.disabledDateTemplate),h(1),d("ngIf",!e.selectable),h(1),d("ngIf",n.isSelected(e))}}const kq=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function Mq(t,i){if(1&t&&(x(0,"td",15),g(1,Dq,6,8,"ng-container",6),A()),2&t){const e=i.$implicit,n=f(6);d("ngClass",mt(3,kq,e.otherMonth,e.today)),K("aria-label",e.day),h(1),d("ngIf",!e.otherMonth||n.showOtherMonths)}}function Oq(t,i){if(1&t&&(x(0,"tr"),g(1,yq,3,1,"td",51),g(2,Mq,2,6,"td",52),A()),2&t){const e=i.$implicit,n=f(5);h(1),d("ngIf",n.showWeek),h(1),d("ngForOf",e)}}function Lq(t,i){if(1&t&&(x(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),g(4,vq,3,1,"th",46),g(5,bq,3,1,"th",47),A()(),x(6,"tbody"),g(7,Oq,3,2,"tr",48),A()()()),2&t){const e=f().$implicit,n=f(3);h(4),d("ngIf",n.showWeek),h(1),d("ngForOf",n.weekDays),h(2),d("ngForOf",e.dates)}}function Pq(t,i){if(1&t){const e=De();x(0,"div",24)(1,"div",25),g(2,uq,3,3,"button",26),x(3,"div",27),g(4,dq,2,3,"button",28),g(5,pq,2,3,"button",29),g(6,gq,3,5,"span",30),A(),x(7,"button",31),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).onNextButtonClick(o))}),g(8,mq,1,1,"ChevronRightIcon",32),g(9,Cq,2,1,"span",33),A()(),g(10,Lq,8,3,"div",34),A()}if(2&t){const e=i.index,n=f(3);h(2),d("ngIf",0===e),h(2),d("ngIf","date"===n.currentView),h(1),d("ngIf","year"!==n.currentView),h(1),d("ngIf","year"===n.currentView),h(1),fo("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),K("aria-label",n.nextIconAriaLabel),h(1),d("ngIf",!n.nextIconTemplate),h(1),d("ngIf",n.nextIconTemplate),h(1),d("ngIf","date"===n.currentView)}}function Fq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Rq(t,i){if(1&t){const e=De();x(0,"span",60),me("click",function(o){const r=G(e).index;return q(f(4).onMonthSelect(o,r))})("keydown",function(o){const r=G(e).index;return q(f(4).onMonthCellKeydown(o,r))}),Le(1),g(2,Fq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(4);d("ngClass",mt(3,cC,o.isMonthSelected(n),o.isMonthDisabled(n))),h(1),Pt(" ",e," "),h(1),d("ngIf",o.isMonthSelected(n))}}function Nq(t,i){if(1&t&&(x(0,"div",58),g(1,Rq,3,6,"span",59),A()),2&t){const e=f(3);h(1),d("ngForOf",e.monthPickerValues())}}function Vq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Bq(t,i){if(1&t){const e=De();x(0,"span",63),me("click",function(o){const r=G(e).$implicit;return q(f(4).onYearSelect(o,r))})("keydown",function(o){const r=G(e).$implicit;return q(f(4).onYearCellKeydown(o,r))}),Le(1),g(2,Vq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=f(4);d("ngClass",mt(3,cC,n.isYearSelected(e),n.isYearDisabled(e))),h(1),Pt(" ",e," "),h(1),d("ngIf",n.isYearSelected(e))}}function Hq(t,i){if(1&t&&(x(0,"div",61),g(1,Bq,3,6,"span",62),A()),2&t){const e=f(3);h(1),d("ngForOf",e.yearPickerValues())}}function zq(t,i){if(1&t&&(we(0),x(1,"div",20),g(2,Pq,11,10,"div",21),A(),g(3,Nq,2,1,"div",22),g(4,Hq,2,1,"div",23),Te()),2&t){const e=f(2);h(2),d("ngForOf",e.months),h(1),d("ngIf","month"===e.currentView),h(1),d("ngIf","year"===e.currentView)}}function jq(t,i){1&t&&le(0,"ChevronUpIcon")}function Uq(t,i){}function $q(t,i){1&t&&g(0,Uq,0,0,"ng-template")}function Kq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Gq(t,i){1&t&&le(0,"ChevronDownIcon")}function qq(t,i){}function Wq(t,i){1&t&&g(0,qq,0,0,"ng-template")}function Qq(t,i){1&t&&le(0,"ChevronUpIcon")}function Zq(t,i){}function Yq(t,i){1&t&&g(0,Zq,0,0,"ng-template")}function Xq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Jq(t,i){1&t&&le(0,"ChevronDownIcon")}function eW(t,i){}function tW(t,i){1&t&&g(0,eW,0,0,"ng-template")}function nW(t,i){if(1&t&&(x(0,"div",67)(1,"span"),Le(2),A()()),2&t){const e=f(3);h(2),dt(e.timeSeparator)}}function iW(t,i){1&t&&le(0,"ChevronUpIcon")}function oW(t,i){}function sW(t,i){1&t&&g(0,oW,0,0,"ng-template")}function rW(t,i){1&t&&(we(0),Le(1,"0"),Te())}function aW(t,i){1&t&&le(0,"ChevronDownIcon")}function lW(t,i){}function cW(t,i){1&t&&g(0,lW,0,0,"ng-template")}function uW(t,i){if(1&t){const e=De();x(0,"div",72)(1,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).incrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).incrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(2,iW,1,0,"ChevronUpIcon",6),g(3,sW,1,0,null,12),A(),x(4,"span"),g(5,rW,2,0,"ng-container",6),Le(6),A(),x(7,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).decrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).decrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(8,aW,1,0,"ChevronDownIcon",6),g(9,cW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("nextSecond")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentSecond<10),h(1),dt(e.currentSecond),h(1),K("aria-label",e.getTranslation("prevSecond")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function dW(t,i){1&t&&le(0,"ChevronUpIcon")}function pW(t,i){}function hW(t,i){1&t&&g(0,pW,0,0,"ng-template")}function fW(t,i){1&t&&le(0,"ChevronDownIcon")}function gW(t,i){}function mW(t,i){1&t&&g(0,gW,0,0,"ng-template")}function _W(t,i){if(1&t){const e=De();x(0,"div",73)(1,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(2,dW,1,0,"ChevronUpIcon",6),g(3,hW,1,0,null,12),A(),x(4,"span"),Le(5),A(),x(6,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(7,fW,1,0,"ChevronDownIcon",6),g(8,mW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("am")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),dt(e.pm?"PM":"AM"),h(1),K("aria-label",e.getTranslation("pm")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function IW(t,i){if(1&t){const e=De();x(0,"div",64)(1,"div",65)(2,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).incrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(3,jq,1,0,"ChevronUpIcon",6),g(4,$q,1,0,null,12),A(),x(5,"span"),g(6,Kq,2,0,"ng-container",6),Le(7),A(),x(8,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).decrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(9,Gq,1,0,"ChevronDownIcon",6),g(10,Wq,1,0,null,12),A()(),x(11,"div",67)(12,"span"),Le(13),A()(),x(14,"div",68)(15,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).incrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(16,Qq,1,0,"ChevronUpIcon",6),g(17,Yq,1,0,null,12),A(),x(18,"span"),g(19,Xq,2,0,"ng-container",6),Le(20),A(),x(21,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).decrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(22,Jq,1,0,"ChevronDownIcon",6),g(23,tW,1,0,null,12),A()(),g(24,nW,3,1,"div",69),g(25,uW,10,8,"div",70),g(26,_W,9,7,"div",71),A()}if(2&t){const e=f(2);h(2),K("aria-label",e.getTranslation("nextHour")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentHour<10),h(1),dt(e.currentHour),h(1),K("aria-label",e.getTranslation("prevHour")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(3),dt(e.timeSeparator),h(2),K("aria-label",e.getTranslation("nextMinute")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentMinute<10),h(1),dt(e.currentMinute),h(1),K("aria-label",e.getTranslation("prevMinute")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf","12"==e.hourFormat)}}const lk=function(t){return[t]};function CW(t,i){if(1&t){const e=De();x(0,"div",75)(1,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onTodayButtonClick(o))}),A(),x(2,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onClearButtonClick(o))}),A()()}if(2&t){const e=f(2);h(1),d("label",e.getTranslation("today"))("ngClass",He(4,lk,e.todayButtonStyleClass)),h(1),d("label",e.getTranslation("clear"))("ngClass",He(6,lk,e.clearButtonStyleClass))}}function vW(t,i){1&t&&ze(0)}const bW=function(t,i,e,n,o,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":o,"p-datepicker-touch-ui":s}},ck=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},yW=function(t){return{value:"visibleTouchUI",params:t}},xW=function(t){return{value:"visible",params:t}};function AW(t,i){if(1&t){const e=De();x(0,"div",16,17),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationDone(o))})("click",function(o){return G(e),q(f().onOverlayClick(o))}),Kn(2),g(3,sq,1,0,"ng-container",12),g(4,zq,5,3,"ng-container",6),g(5,IW,27,20,"div",18),g(6,CW,3,8,"div",19),Kn(7,1),g(8,vW,1,0,"ng-container",12),A()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngStyle",e.panelStyle)("ngClass",ea(14,bW,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?He(24,yW,mt(21,ck,e.showTransitionOptions,e.hideTransitionOptions)):He(29,xW,mt(26,ck,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),h(3),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",!e.timeOnly),h(1),d("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),h(1),d("ngIf",e.showButtonBar),h(2),d("ngTemplateOutlet",e.footerTemplate)}}const wW=[[["p-header"]],[["p-footer"]]],TW=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},SW=["p-header","p-footer"],EW={provide:un,useExisting:ft(()=>DW),multi:!0};let DW=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const n=e.split(":"),o=parseInt(n[0]),s=parseInt(n[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new ge;onBlur=new ge;onClose=new ge;onSelect=new ge;onClear=new ge;onInput=new ge;onTodayClick=new ge;onClearClick=new ge;onMonthChange=new ge;onYearChange=new ge;onClickOutside=new ge;onShow=new ge;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.zone=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=$t(),this.panelId=this.attributeSelector+"_panel";const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=j.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let o=e;o<=n;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(di.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(n+o);return e}createMonths(e,n){this.months=this.months=[];for(let o=0;o11&&(s=s%11-1,r=n+1),this.months.push(this.createMonth(s,r))}}getWeekNumber(e){let n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1}createMonth(e,n){let o=[],s=this.getFirstDayOfMonthIndex(e,n),r=this.getDaysCountInMonth(e,n),a=this.getDaysCountInPrevMonth(e,n),l=1,c=new Date,u=[],p=Math.ceil((r+s)/7);for(let m=0;mr){let E=this.getNextMonthAndYear(e,n);_.push({day:l-r,month:E.month,year:E.year,otherMonth:!0,today:this.isToday(c,l-r,E.month,E.year),selectable:this.isSelectable(l-r,E.month,E.year,!0)})}else _.push({day:l,month:e,year:n,today:this.isToday(c,l,e,n),selectable:this.isSelectable(l,e,n,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(_[0].year,_[0].month,_[0].day))),o.push(_)}return{month:e,year:n,dates:o,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYeare[e.length-1]){let n=e[e.length-1]-e[0];this.populateYearOptions(e[0]+n,e[e.length-1]+n)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let n=new Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate=o.getTime()?s=n:(o=n,s=null),this.updateModel([o,s])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(n);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let o=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,n){let o,s;return 0===e?(o=11,s=n-1):(o=e-1,s=n),{month:o,year:s}}getNextMonthAndYear(e,n){let o,s;return 11===e?(o=0,s=n+1):(o=e+1,s=n),{month:o,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let o of this.value)if(n=this.isDateEquals(o,e),n)break;return n}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[n,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=n&&s<=(o??n)}return!1}isMonthDisabled(e){for(let n=1;n=r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,o,s){return e.getDate()===n&&e.getMonth()===o&&e.getFullYear()===s}isSelectable(e,n,o,s){let r=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(r=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(j.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,o){const s=e.currentTarget,r=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.nextElementSibling;l?j.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];j.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=r.previousElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")||j.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=r.nextElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")?this.navigateToMonth(!1,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+3:r-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+2:r-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let s=j.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r=s[s.length-1];r.tabIndex="0",r.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=j.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;n=j.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(e=n[n.length-1])}else e=j.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let n;if("month"===this.currentView){let o=j.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=j.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let o=j.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=j.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(n=j.findSingle(e,"span.p-highlight"),!n){let o=j.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");n=o||j.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||n.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=j.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==o||0===o)if(this.focusTrap)n[n.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else n[o-1].focus();else if(-1==o)if(this.timeOnly)n[0].focus();else{let s=0;for(let r=0;ra||this.minDate.getHours()===a&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?o-24:o:"12"==this.hourFormat&&(this.currentHour<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.validateTime(o,this.currentMinute,this.currentSecond,s)&&(this.currentHour=o,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,n,o){this.disabled||(this.repeat(e,null,n,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,o,s){let r=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,s),this.cd.markForCheck()},r),o){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let n=this.currentHour-this.stepHour,o=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),n=n<=0?12+n:n),this.validateTime(n,this.currentMinute,this.currentSecond,o)&&(this.currentHour=n,this.pm=o),e.preventDefault()}incrementMinute(e){let n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let o=this.parseValueFromString(n);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);n=[];for(let s of o)n.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");n=[];for(let s=0;s{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),j.blockBodyScroll())}disableModality(){this.mask&&(j.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let n,e=this.document.body.children;for(let o=0;o{const p=o+1{let _=""+p;if(s(u))for(;_.lengths(u)?_[p]:m[p];let l="",c=!1;if(e)for(o=0;o11&&12!=o&&(o-=12),n+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,n+=":",n+=s<10?"0"+s:s,this.showSeconds&&(n+=":",n+=r<10?"0"+r:r),"12"==this.hourFormat&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(n[0]),r=parseInt(n[1]),a=this.showSeconds?parseInt(n[2]):null;if(isNaN(s)||isNaN(r)||s>23||r>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:r,second:a}}parseDate(e,n){if(null==n||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let o,s,r,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,p=-1,m=-1,_=!1,E=fe=>{let Ce=o+1{let Ce=E(fe),ve="@"===fe?14:"!"===fe?20:"y"===fe&&Ce?4:"o"===fe?3:2,Pe=new RegExp("^\\d{"+("y"===fe?ve:1)+","+ve+"}"),$e=e.substring(a).match(Pe);if(!$e)throw"Missing number at position "+a;return a+=$e[0].length,parseInt($e[0],10)},W=(fe,Ce,ve)=>{let ke=-1,Pe=E(fe)?ve:Ce,$e=[];for(let Ke=0;Ke-(Ke[1].length-pt[1].length));for(let Ke=0;Ke<$e.length;Ke++){let pt=$e[Ke][1];if(e.substr(a,pt.length).toLowerCase()===pt.toLowerCase()){ke=$e[Ke][0],a+=pt.length;break}}if(-1!==ke)return ke+1;throw"Unknown name at position "+a},te=()=>{if(e.charAt(a)!==n.charAt(o))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(p=1),o=0;o-1)for(u=1,p=m;s=this.getDaysCountInMonth(c,u-1),!(p<=s);)u++,p-=s;if("year"===this.view&&(u=-1===u?1:u,p=-1===p?1:p),b=this.daylightSavingAdjust(new Date(c,u-1,p)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==p)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let n=new Date,o={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,o),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return j.hasClass(e.target,"p-datepicker-prev")||j.hasClass(e.target,"p-datepicker-prev-icon")||j.hasClass(e.target,"p-datepicker-next")||j.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(Tt),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-calendar"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($G,5),je(KG,5),je(GG,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputfieldViewChild=s.first),Se(s=Ee())&&(o.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focus)("p-calendar-clearable",o.showClear&&!o.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[yt([EW])],ngContentSelectors:SW,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(n,o){1&n&&(Ti(wW),x(0,"span",0,1),g(2,oq,4,20,"ng-template",2),g(3,AW,9,31,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngClass",gr(6,TW,o.showIcon,o.timeOnly,o.disabled,o.focus||o.overlayVisible))("ngStyle",o.style),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:function(){return[Ct,Jn,gt,on,Ht,hf,oo,Mr,Qi,ff,bi,mn,ak]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Us("visibleTouchUI",en({transform:"translate(-50%,-50%)",opacity:1})),Ln("void => visible",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}",en({opacity:1,transform:"*"}))]),Ln("visible => void",[On("{{hideTransitionParams}}",en({opacity:0}))]),Ln("void => visibleTouchUI",[en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),On("{{showTransitionParams}}")]),Ln("visibleTouchUI => void",[On("{{hideTransitionParams}}",en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),uk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,Mr,Qi,ff,bi,mn,ak,Mi,Qe]})}return t})(),uC=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=j.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),gf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kW=["overlay"],MW=["content"];function OW(t,i){1&t&&ze(0)}const LW=function(t,i,e){return{showTransitionParams:t,hideTransitionParams:i,transform:e}},PW=function(t){return{value:"visible",params:t}},FW=function(t){return{mode:t}},RW=function(t){return{$implicit:t}};function NW(t,i){if(1&t){const e=De();x(0,"div",1,3),me("click",function(o){return G(e),q(f(2).onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){return G(e),q(f(2).onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){return G(e),q(f(2).onOverlayContentAnimationDone(o))}),Kn(2),g(3,OW,1,0,"ng-container",4),A()}if(2&t){const e=f(2);Ve(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",He(11,PW,Rn(7,LW,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),h(3),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",He(15,RW,He(13,FW,e.overlayMode)))}}const VW=function(t,i,e,n,o,s,r,a,l,c,u,p,m,_){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":i,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":o,"p-overlay-bottom":s,"p-overlay-bottom-start":r,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":p,"p-overlay-right-start":m,"p-overlay-right-end":_}};function BW(t,i){if(1&t){const e=De();x(0,"div",1,2),me("click",function(){return G(e),q(f().onOverlayClick())}),g(2,NW,4,17,"div",0),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass",zp(5,VW,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),h(2),d("ngIf",e.visible)}}const HW=["*"],zW={provide:un,useExisting:ft(()=>mf),multi:!0},jW=Ml([en({transform:"{{transform}}",opacity:0}),On("{{showTransitionParams}}")]),UW=Ml([On("{{hideTransitionParams}}",en({transform:"{{transform}}",opacity:0}))]);let mf=(()=>{class t{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return be.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return be.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return be.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return be.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new ge;onBeforeShow=new ge;onShow=new ge;onBeforeHide=new ge;onHide=new ge;onAnimationStart=new ge;onAnimationDone=new ge;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(ei(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return j.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,n,o,s,r,a,l,c){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.config=r,this.overlayService=a,this.cd=l,this.zone=c,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,n=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.addClass(this.document?.body,"p-overflow-hidden")}hide(e,n=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&j.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Wn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),j.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&j.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const n=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(n,!0),this.bindListeners();break;case"void":this.hide(n,!0),this.unbindListeners(),j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(n),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",e)}handleEvents(e,n){this[e].emit(n),this.options&&this.options[e]&&this.options[e](n),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](n)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&o}):o)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===e.code&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(ki),V(Dr),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-overlay"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(kW,5),je(MW,5)),2&n){let s;Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[yt([zW])],ngContentSelectors:HW,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(Ti(),g(0,BW,3,20,"div",0)),2&n&&d("ngIf",o.modalVisible)},dependencies:[Ct,gt,on,Ht],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[Oo("overlayContentAnimation",[Ln(":enter",[Eh(jW)]),Ln(":leave",[Eh(UW)])])]},changeDetection:0})}return t})(),$l=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Qe]})}return t})();const $W=["element"],KW=["content"];function GW(t,i){1&t&&ze(0)}const dC=function(t,i){return{$implicit:t,options:i}};function qW(t,i){if(1&t&&(we(0),g(1,GW,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(2,dC,e.loadedItems,e.getContentOptions()))}}function WW(t,i){1&t&&ze(0)}function QW(t,i){if(1&t&&(we(0),g(1,WW,1,0,"ng-container",7),Te()),2&t){const e=i.$implicit,n=i.index,o=f(3);h(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",mt(2,dC,e,o.getOptions(n)))}}const ZW=function(t){return{"p-scroller-loading":t}};function YW(t,i){if(1&t&&(x(0,"div",8,9),g(2,QW,2,5,"ng-container",10),A()),2&t){const e=f(2);d("ngClass",He(5,ZW,e.d_loading))("ngStyle",e.contentStyle),K("data-pc-section","content"),h(2),d("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function XW(t,i){1&t&&le(0,"div",11),2&t&&(d("ngStyle",f(2).spacerStyle),K("data-pc-section","spacer"))}function JW(t,i){1&t&&ze(0)}const eQ=function(t){return{numCols:t}},dk=function(t){return{options:t}};function tQ(t,i){if(1&t&&(we(0),g(1,JW,1,0,"ng-container",7),Te()),2&t){const e=i.index,n=f(4);h(1),d("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",He(4,dk,n.getLoaderOptions(e,n.both&&He(2,eQ,n._numItemsInViewport.cols))))}}function nQ(t,i){if(1&t&&(we(0),g(1,tQ,2,6,"ng-container",14),Te()),2&t){const e=f(3);h(1),d("ngForOf",e.loaderArr)}}function iQ(t,i){1&t&&ze(0)}const oQ=function(){return{styleClass:"p-scroller-loading-icon"}};function sQ(t,i){if(1&t&&(we(0),g(1,iQ,1,0,"ng-container",7),Te()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",He(3,dk,Jt(2,oQ)))}}function rQ(t,i){1&t&&le(0,"SpinnerIcon",16),2&t&&(d("styleClass","p-scroller-loading-icon"),K("data-pc-section","loadingIcon"))}function aQ(t,i){if(1&t&&(g(0,sQ,2,5,"ng-container",0),g(1,rQ,1,2,"ng-template",null,15,In)),2&t){const e=Bt(2);d("ngIf",f(3).loaderIconTemplate)("ngIfElse",e)}}const lQ=function(t){return{"p-component-overlay":t}};function cQ(t,i){if(1&t&&(x(0,"div",12),g(1,nQ,2,1,"ng-container",0),g(2,aQ,3,2,"ng-template",null,13,In),A()),2&t){const e=Bt(3),n=f(2);d("ngClass",He(4,lQ,!n.loaderTemplate)),K("data-pc-section","loader"),h(1),d("ngIf",n.loaderTemplate)("ngIfElse",e)}}const uQ=function(t,i,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":i,"p-horizontal-scroll":e}};function dQ(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("scroll",function(o){return G(e),q(f().onContainerScroll(o))}),g(3,qW,2,5,"ng-container",0),g(4,YW,3,7,"ng-template",null,4,In),g(6,XW,1,2,"div",5),g(7,cQ,4,6,"div",6),A(),Te()}if(2&t){const e=Bt(5),n=f();h(1),Ve(n._styleClass),d("ngStyle",n._style)("ngClass",Rn(12,uQ,n.inline,n.both,n.horizontal)),K("id",n._id)("tabindex",n.tabindex)("data-pc-name","scroller")("data-pc-section","root"),h(2),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngIf",n._showSpacer),h(1),d("ngIf",!n.loaderDisabled&&n._showLoader&&n.d_loading)}}function pQ(t,i){1&t&&ze(0)}const hQ=function(t,i){return{rows:t,columns:i}};function fQ(t,i){if(1&t&&(we(0),g(1,pQ,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(5,dC,e.items,mt(2,hQ,e._items,e.loadedColumns)))}}function gQ(t,i){if(1&t&&(Kn(0),g(1,fQ,2,8,"ng-container",17)),2&t){const e=f();h(1),d("ngIf",e.contentTemplate)}}const mQ=["*"];let Bu=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([n,o])=>this[`_${n}`]!==o&&(this[`_${n}`]=o))}onLazyLoad=new ge;onScroll=new ge;onScrollIndexChange=new ge;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.zone=r}ngOnInit(){this.setInitialState()}ngOnChanges(e){let n=!1;if(e.loading){const{previousValue:o,currentValue:s}=e.loading;this.lazy&&o!==s&&s!==this.d_loading&&(this.d_loading=s,n=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:o,currentValue:s}=e.numToleratedItems;o!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){const{previousValue:o,currentValue:s}=e.options;this.lazy&&o?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,n=!0),o?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!n&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){ei(this.platformId)&&j.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=j.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=j.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||j.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,n="auto"){const{numToleratedItems:o}=this.calculateNumItems(),s=this.getContentPosition(),r=(u=0,p)=>u<=p?0:u,a=(u,p,m)=>u*p+m,l=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:n});let c=0;this.both?(c={rows:r(e[0],o[0]),cols:r(e[1],o[1])},l(a(c.cols,this._itemSize[1],s.left),a(c.rows,this._itemSize[0],s.top))):(c=r(e,o),this.horizontal?l(a(c,this._itemSize,s.left),0):l(0,a(c,this._itemSize,s.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(e,n,o="auto"){if(n){const{first:s,viewport:r}=this.getRenderedRange(),a=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:o}),c="to-end"===n;if("to-start"===n){if(this.both)r.first.rows-s.rows>e[0]?a(r.first.cols*this._itemSize[1],(r.first.rows-1)*this._itemSize[0]):r.first.cols-s.cols>e[1]&&a((r.first.cols-1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.first-s>e){const u=(r.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)r.last.rows-s.rows<=e[0]+1?a(r.first.cols*this._itemSize[1],(r.first.rows+1)*this._itemSize[0]):r.last.cols-s.cols<=e[1]+1&&a((r.first.cols+1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.last-s<=e+1){const u=(r.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,o)}getRenderedRange(){const e=(s,r)=>Math.floor(s/(r||s));let n=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:s,scrollLeft:r}=this.elementViewChild.nativeElement;this.both?(n={rows:e(s,this._itemSize[0]),cols:e(r,this._itemSize[1])},o={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols}):(n=e(this.horizontal?r:s,this._itemSize),o=n+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:n,last:o}}}calculateNumItems(){const e=this.getContentPosition(),n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,o=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,s=(c,u)=>Math.ceil(c/(u||c)),r=c=>Math.ceil(c/2),a=this.both?{rows:s(o,this._itemSize[0]),cols:s(n,this._itemSize[1])}:s(this.horizontal?n:o,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[r(a.rows),r(a.cols)]:r(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:n}=this.calculateNumItems(),o=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,n]=[j.getWidth(this.contentEl),j.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),n!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,s]=[j.getWidth(this.elementViewChild.nativeElement),j.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=othis.elementViewChild.nativeElement.style[r]=a;this.both||this.horizontal?(s("height",o),s("width",n)):s("height",o)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),n=(o,s,r,a=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(s||[]).length*r+a+"px"};this.both?(n("height",this._items,this._itemSize[0],e.y),n("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?n("width",this._columns||this._items,this._itemSize,e.x):n("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const n=e?e.first:this.first,o=(r,a)=>r*a,s=(r=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${r}px, ${a}px, 0)`};if(this.both)s(o(n.cols,this._itemSize[1]),o(n.rows,this._itemSize[0]));else{const r=o(n,this._itemSize);this.horizontal?s(r,0):s(0,r)}}}onScrollPositionChange(e){const n=e.target,o=this.getContentPosition(),s=(P,W)=>P?P>W?P-W:P:0,r=(P,W)=>Math.floor(P/(W||P)),a=(P,W,te,fe,Ce,ve)=>P<=Ce?Ce:ve?te-fe-Ce:W+Ce-1,l=(P,W,te,fe,Ce,ve,ke)=>P<=ve?0:Math.max(0,ke?PW?te:P-2*ve),c=(P,W,te,fe,Ce,ve=!1)=>{let ke=W+fe+2*Ce;return P>=Ce&&(ke+=Ce+1),this.getLast(ke,ve)},u=s(n.scrollTop,o.top),p=s(n.scrollLeft,o.left);let m=this.both?{rows:0,cols:0}:0,_=this.last,b=!1,E=this.lastScrollPos;if(this.both){const P=this.lastScrollPos.top<=u,W=this.lastScrollPos.left<=p;if(!this._appendOnly||this._appendOnly&&(P||W)){const te={rows:r(u,this._itemSize[0]),cols:r(p,this._itemSize[1])},fe={rows:a(te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],P),cols:a(te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],W)};m={rows:l(te.rows,fe.rows,this.first.rows,0,0,this.d_numToleratedItems[0],P),cols:l(te.cols,fe.cols,this.first.cols,0,0,this.d_numToleratedItems[1],W)},_={rows:c(te.rows,m.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(te.cols,m.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||_.rows!==this.last.rows||m.cols!==this.first.cols||_.cols!==this.last.cols||this.isRangeChanged,E={top:u,left:p}}}else{const P=this.horizontal?p:u,W=this.lastScrollPos<=P;if(!this._appendOnly||this._appendOnly&&W){const te=r(P,this._itemSize);m=l(te,a(te,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,W),this.first,0,0,this.d_numToleratedItems,W),_=c(te,m,0,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||_!==this.last||this.isRangeChanged,E=P}}return{first:m,last:_,isRangeChanged:b,scrollPos:E}}onScrollChange(e){const{first:n,last:o,isRangeChanged:s,scrollPos:r}=this.onScrollPositionChange(e);if(s){const a={first:n,last:o};if(this.setContentPosition(a),this.first=n,this.last=o,this.lastScrollPos=r,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):n,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:n}=this.onScrollPositionChange(e);(n||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){ei(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,n=j.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,n,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(j.isVisible(this.elementViewChild?.nativeElement)){const[e,n]=[j.getWidth(this.elementViewChild?.nativeElement),j.getHeight(this.elementViewChild?.nativeElement)],[o,s]=[e!==this.defaultWidth,n!==this.defaultHeight];(this.both?o||s:this.horizontal?o:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=n,this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,n){return this.options&&this.options[e]?this.options[e](n):this[e].emit(n)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,n)=>this.getLoaderOptions(e,n),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const n=(this._items||[]).length,o=this.both?this.first.rows+e:this.first+e;return{index:o,count:n,first:0===o,last:o===n-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(e,n){const o=this.loaderArr.length;return{index:e,count:o,first:0===e,last:e===o-1,even:e%2==0,odd:e%2!=0,...n}}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-scroller"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($W,5),je(KW,5)),2&n){let s;Se(s=Ee())&&(o.elementViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Hn],ngContentSelectors:mQ,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(n,o){if(1&n&&(Ti(),g(0,dQ,8,16,"ng-container",0),g(1,gQ,2,1,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",!o._disabled)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,_s]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return t})(),Oi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,_s,Qe]})}return t})(),Kl=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:$t()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.config=s,this.renderer=r,this.viewContainer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(j.hasClass(e.relatedTarget,"p-tooltip")||j.hasClass(e.relatedTarget,"p-tooltip-text")||j.hasClass(e.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?j.appendChild(this.container,this.el.nativeElement):j.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",n=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),j.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Wn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Wn.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof $o){const n=this.viewContainer.createEmbeddedView(e);n.detectChanges(),n.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+j.getWindowScrollLeft(),top:e.top+j.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+j.getOuterWidth(this.el.nativeElement),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-j.getOuterWidth(this.container),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top-j.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top+j.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return j.hasClass(e,"p-inputwrapper")?j.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,o=e.left,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getViewport();return o+s>a.width||o<0||n<0||n+r>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):j.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Wn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(ki),V(hn),V(go))};static \u0275dir=ut({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.escape",function(r){return o.onPressEscape(r)},0,Qy)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Hn]})}return t})(),Nn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),Qs=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function _Q(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function IQ(t,i){1&t&&ze(0)}const Hu=function(t){return{height:t}},CQ=function(t,i,e){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},pC=function(t){return{$implicit:t}},vQ=["container"],bQ=["filter"],yQ=["focusInput"],xQ=["editableInput"],AQ=["items"],wQ=["scroller"],TQ=["overlay"],SQ=["firstHiddenFocusableEl"],EQ=["lastHiddenFocusableEl"];function DQ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.label())}}function kQ(t,i){1&t&&ze(0)}function MQ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(3);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.placeholder)}}function OQ(t,i){if(1&t&&g(0,MQ,2,1,"span",4),2&t){const e=f(2);d("ngIf",e.label()===e.placeholder||e.label()&&!e.placeholder)}}function LQ(t,i){if(1&t){const e=De();x(0,"span",10,11),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),g(2,DQ,2,1,"ng-container",12),g(3,kQ,1,0,"ng-container",13),g(4,OQ,1,1,"ng-template",null,14,In),A()}if(2&t){const e=Bt(5),n=f();d("ngClass",n.inputClass)("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("autofocus",n.autofocus),K("aria-disabled",n.disabled)("id",n.inputId)("aria-label",n.ariaLabel||("p-emptylabel"===n.label()?void 0:n.label()))("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible)("aria-controls",n.id+"_list")("tabindex",n.disabled?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0),h(2),d("ngIf",!n.selectedItemTemplate)("ngIfElse",e),h(1),d("ngTemplateOutlet",n.selectedItemTemplate)("ngTemplateOutletContext",He(19,pC,n.modelValue()))}}function PQ(t,i){if(1&t){const e=De();x(0,"input",15,16),me("input",function(o){return G(e),q(f().onEditableInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))}),A()}if(2&t){const e=f();d("ngClass",e.inputClass)("disabled",e.disabled),K("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function FQ(t,i){if(1&t){const e=De();x(0,"TimesIcon",19),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-dropdown-clear-icon"),K("data-pc-section","clearicon"))}function RQ(t,i){}function NQ(t,i){1&t&&g(0,RQ,0,0,"ng-template")}function VQ(t,i){if(1&t){const e=De();x(0,"span",20),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,NQ,1,0,null,21),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function BQ(t,i){if(1&t&&(we(0),g(1,FQ,1,2,"TimesIcon",17),g(2,VQ,2,2,"span",18),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function HQ(t,i){1&t&&le(0,"span",24),2&t&&d("ngClass",f(2).dropdownIcon)}function zQ(t,i){1&t&&le(0,"ChevronDownIcon",25),2&t&&d("styleClass","p-dropdown-trigger-icon")}function jQ(t,i){if(1&t&&(we(0),g(1,HQ,1,1,"span",22),g(2,zQ,1,1,"ChevronDownIcon",23),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function UQ(t,i){}function $Q(t,i){1&t&&g(0,UQ,0,0,"ng-template")}function KQ(t,i){if(1&t&&(x(0,"span",26),g(1,$Q,1,0,null,21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function GQ(t,i){1&t&&ze(0)}function qQ(t,i){1&t&&ze(0)}const pk=function(t){return{options:t}};function WQ(t,i){if(1&t&&(we(0),g(1,qQ,1,0,"ng-container",13),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,pk,e.filterOptions))}}function QQ(t,i){1&t&&le(0,"SearchIcon",25),2&t&&d("styleClass","p-dropdown-filter-icon")}function ZQ(t,i){}function YQ(t,i){1&t&&g(0,ZQ,0,0,"ng-template")}function XQ(t,i){if(1&t&&(x(0,"span",41),g(1,YQ,1,0,null,21),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function JQ(t,i){if(1&t){const e=De();x(0,"div",37)(1,"input",38,39),me("input",function(o){return G(e),q(f(3).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,QQ,1,1,"SearchIcon",23),g(4,XQ,2,1,"span",40),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||""),K("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function eZ(t,i){if(1&t&&(x(0,"div",35),me("click",function(n){return n.stopPropagation()}),g(1,WQ,2,4,"ng-container",12),g(2,JQ,5,7,"ng-template",null,36,In),A()),2&t){const e=Bt(3),n=f(2);h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function tZ(t,i){1&t&&ze(0)}const hk=function(t,i){return{$implicit:t,options:i}};function nZ(t,i){if(1&t&&g(0,tZ,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,hk,e,n))}}function iZ(t,i){1&t&&ze(0)}function oZ(t,i){if(1&t&&g(0,iZ,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,pk,e))}}function sZ(t,i){1&t&&(we(0),g(1,oZ,1,4,"ng-template",44),Te())}function rZ(t,i){if(1&t){const e=De();x(0,"p-scroller",42,43),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,nZ,1,5,"ng-template",9),g(3,sZ,2,0,"ng-container",4),A()}if(2&t){const e=f(2);yn(He(8,Hu,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function aZ(t,i){1&t&&ze(0)}const lZ=function(){return{}};function cZ(t,i){if(1&t&&(we(0),g(1,aZ,1,0,"ng-container",13),Te()),2&t){f();const e=Bt(9),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,hk,n.visibleOptions(),Jt(2,lZ)))}}function uZ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function dZ(t,i){1&t&&ze(0)}function pZ(t,i){if(1&t&&(we(0),x(1,"li",49),g(2,uZ,2,1,"span",4),g(3,dZ,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,Hu,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,pC,o.optionGroup))}}function hZ(t,i){if(1&t){const e=De();we(0),x(1,"p-dropdownItem",50),me("onClick",function(o){G(e);const s=f().$implicit;return q(f(3).onOptionSelect(o,s))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function fZ(t,i){if(1&t&&(g(0,pZ,4,9,"ng-container",4),g(1,hZ,2,9,"ng-container",4)),2&t){const e=i.$implicit;d("ngIf",e.group),h(1),d("ngIf",!e.group)}}function gZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function mZ(t,i){1&t&&ze(0,null,52)}function _Z(t,i){if(1&t&&(x(0,"li",51),g(1,gZ,2,1,"ng-container",12),g(2,mZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function IZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function CZ(t,i){1&t&&ze(0,null,53)}function vZ(t,i){if(1&t&&(x(0,"li",51),g(1,IZ,2,1,"ng-container",12),g(2,CZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function bZ(t,i){if(1&t&&(x(0,"ul",45,46),g(2,fZ,2,2,"ng-template",47),g(3,_Z,3,6,"li",48),g(4,vZ,3,6,"li",48),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",o.filterValue&&o.isEmpty()),h(1),d("ngIf",!o.filterValue&&o.isEmpty())}}function yZ(t,i){1&t&&ze(0)}function xZ(t,i){if(1&t){const e=De();x(0,"div",27)(1,"span",28,29),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,GQ,1,0,"ng-container",21),g(4,eZ,4,2,"div",30),x(5,"div",31),g(6,rZ,4,10,"p-scroller",32),g(7,cZ,2,6,"ng-container",4),g(8,bZ,5,7,"ng-template",null,33,In),A(),g(10,yZ,1,0,"ng-container",21),x(11,"span",28,34),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",e.filter),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngTemplateOutlet",e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const AZ={provide:un,useExisting:ft(()=>fk),multi:!0};let wZ=(()=>{class t{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new ge;onMouseEnter=new ge;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),g(1,_Q,2,1,"span",1),g(2,IQ,1,0,"ng-container",2),A()),2&n&&(d("id",o.id)("ngStyle",He(13,Hu,o.itemSize+"px"))("ngClass",Rn(15,CQ,o.selected,o.disabled,o.focused)),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(19,pC,o.option)))},dependencies:[Ct,gt,on,Ht,oo],encapsulation:2})}return t})(),fk=(()=>{class t{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get options(){return this._options()}set options(e){this._options.set(e)}onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onShow=new ge;onHide=new ge;onClear=new ge;onLazyLoad=new ge;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=bn(null);modelValue=bn(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=bn(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=bn(-1);labelId;listId;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&be.isNotEmpty(this.modelValue())&&""!==this.modelValue()&&this.showClear&&!this.disabled}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder&&e===this.placeholder,"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||e&&"p-emptylabel"!==e&&0!==e.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterBy||this.filterFields||this.optionValue?this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):this.options.filter(o=>-1!==o.toLowerCase().indexOf(this._filterValue().toLowerCase()));if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{const e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions()[e]):this.placeholder||"p-emptylabel"});constructor(e,n,o,s,r,a){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,a_(()=>{this.modelValue()&&this.editable&&this.updateEditableLabel()})}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&j.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&!this.modelValue()){const e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,o=!0,s=!1){const r=this.getOptionValue(n);this.updateModel(r,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o&&this.hide(!0),!1===s&&this.onChange.emit({originalEvent:e,value:r})}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder&&!this.modelValue()&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=void 0===this.getOptionLabel(this.modelValue())?this.editableInputViewChild.nativeElement.value:this.getOptionLabel(this.modelValue()))}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&void 0!==e?.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==e.target.tagName&&"clearicon"!==e.target.getAttribute("data-pc-section")&&!e.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.cd.detectChanges()))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}onEditableInput(e){const n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:n})}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n){if(!this.disabled&&!this.readonly)switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){const o=this.visibleOptions()[n];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(),e.preventDefault()}else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1)):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!n&&this.onEnterKey(e)}onEnterKey(e){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.hide()}else this.onArrowDownKey(e);e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild.el.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild.nativeElement;j.focus(n)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),this.cd.markForCheck()}applyFocus(){this.editable?j.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():j.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e)}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dropdown"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(vQ,5),je(bQ,5),je(yQ,5),je(xQ,5),je(AQ,5),je(wQ,5),je(TQ,5),je(SQ,5),je(EQ,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.editableInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[yt([AZ])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultPlaceholder",""],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,LQ,6,21,"span",2),g(3,PQ,2,5,"input",3),g(4,BQ,3,2,"ng-container",4),x(5,"div",5),g(6,jQ,3,2,"ng-container",4),g(7,KQ,2,1,"span",6),A(),x(8,"p-overlay",7,8),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(10,xZ,13,19,"ng-template",9),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),d("ngIf",!o.editable),h(1),d("ngIf",o.editable),h(1),d("ngIf",o.isVisibleClearIcon),h(1),K("aria-expanded",o.overlayVisible)("data-pc-section","trigger"),h(1),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,Bu,uC,mn,bi,Qs,wZ]},styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_f=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,gf,mn,bi,Qs,$l,Qe,Oi]})}return t})(),Or=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),If=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),hC=(()=>{class t{el;ngModel;cd;filled;constructor(e,n,o){this.el=e,this.ngModel=n,this.cd=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(n){return new(n||t)(V(bt),V(xh,8),V(Ft))};static \u0275dir=ut({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(n,o){1&n&&me("input",function(r){return o.onInput(r)}),2&n&&Ii("p-filled",o.filled)}})}return t})(),Zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const TZ=["input"];function SZ(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("ngClass","p-inputnumber-clear-icon"),K("data-pc-section","clearIcon"))}function EZ(t,i){}function DZ(t,i){1&t&&g(0,EZ,0,0,"ng-template")}function kZ(t,i){if(1&t){const e=De();x(0,"span",9),me("click",function(){return G(e),q(f(2).clear())}),g(1,DZ,1,0,null,10),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function MZ(t,i){if(1&t&&(we(0),g(1,SZ,1,2,"TimesIcon",6),g(2,kZ,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function OZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function LZ(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function PZ(t,i){}function FZ(t,i){1&t&&g(0,PZ,0,0,"ng-template")}function RZ(t,i){if(1&t&&(we(0),g(1,LZ,1,1,"AngleUpIcon",3),g(2,FZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function NZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function VZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function BZ(t,i){}function HZ(t,i){1&t&&g(0,BZ,0,0,"ng-template")}function zZ(t,i){if(1&t&&(we(0),g(1,VZ,1,1,"AngleDownIcon",3),g(2,HZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const gk=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},mk=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function jZ(t,i){if(1&t){const e=De();x(0,"span",11)(1,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(2,OZ,1,2,"span",13),g(3,RZ,3,2,"ng-container",3),A(),x(4,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(5,NZ,1,2,"span",13),g(6,zZ,3,2,"ng-container",3),A()()}if(2&t){const e=f();K("data-pc-section","buttonGroup"),h(1),Ve(e.incrementButtonClass),d("ngClass",Jt(17,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon),h(1),Ve(e.decrementButtonClass),d("ngClass",Jt(18,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section",e.decrementbutton),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}function UZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function $Z(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function KZ(t,i){}function GZ(t,i){1&t&&g(0,KZ,0,0,"ng-template")}function qZ(t,i){if(1&t&&(we(0),g(1,$Z,1,1,"AngleUpIcon",3),g(2,GZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function WZ(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(1,UZ,1,2,"span",13),g(2,qZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.incrementButtonClass),d("ngClass",Jt(8,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon)}}function QZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function ZZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function YZ(t,i){}function XZ(t,i){1&t&&g(0,YZ,0,0,"ng-template")}function JZ(t,i){if(1&t&&(we(0),g(1,ZZ,1,1,"AngleDownIcon",3),g(2,XZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function eY(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(1,QZ,1,2,"span",13),g(2,JZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.decrementButtonClass),d("ngClass",Jt(8,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","decrementbutton"),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}const tY=function(t,i,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},nY={provide:un,useExisting:ft(()=>_k),multi:!0};let _k=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new ge;onFocus=new ge;onBlur=new ge;onKeyDown=new ge;onClear=new ge;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,n,o,s){this.document=e,this.el=n,this.cd=o,this.injector=s}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(o=>!!e[o])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template}})}ngOnInit(){this.ngControl=this.injector.get(ds,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(e.map((o,s)=>[o,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=o=>n.get(o)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let o=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(o=this.prefix+o),this.suffix&&(o+=this.suffix),o}return e.toString()}return""}parseValue(e){let n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if("-"===n)return n;let o=+n;return isNaN(o)?null:o}return null}repeat(e,n,o){if(this.readonly)return;let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let o=this.step*n,s=this.parseValue(this.input?.nativeElement.value)||0,r=this.validateValue(s+o);this.maxlength&&this.maxlength0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n-1)+s.slice(n)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Delete":if(e.preventDefault(),n===o){const a=s.charAt(n),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,r=s.slice(0,n)+s.slice(n+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(n+1,n+1):r=s.slice(0,n)+s.slice(n+1);else if(l>0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n)+s.slice(n+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault())}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let n=e.which||e.keyCode,o=String.fromCharCode(n);const s=this.isDecimalSign(o),r=this.isMinusSign(o);13!=n&&e.preventDefault();const a=this.parseValue(this.input.nativeElement.value+o),l=null!=a?a.toString():"";this.maxlength&&l.length>this.maxlength||(48<=n&&n<=57||r||s)&&this.insert(e,o,{isDecimalSign:s,isMinusSign:r})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(n){this.maxlength&&(n=n.toString().substring(0,this.maxlength));let o=this.parseValue(n);null!=o&&this.insert(e,o.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const n=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:o,suffixCharIndex:s,currencyCharIndex:r}}insert(e,n,o={isDecimalSign:!1,isMinusSign:!1}){const s=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let r=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:p,currencyCharIndex:m}=this.getCharIndexes(l);let _;if(o.isMinusSign)0===r&&(_=l,(-1===u||0!==a)&&(_=this.insertText(l,n,0,a)),this.updateValue(e,_,n,"insert"));else if(o.isDecimalSign)c>0&&r===c?this.updateValue(e,l,n,"insert"):(c>r&&c0&&r>c){if(r+n.length-(c+1)<=b){const P=m>=r?m-1:p>=r?p:l.length;_=l.slice(0,r)+n+l.slice(r+n.length,P)+l.slice(P),this.updateValue(e,_,n,E)}}else _=this.insertText(l,n,r,a),this.updateValue(e,_,n,E)}}insertText(e,n,o,s){if(2===("."===n?n:n.split(".")).length){const a=e.slice(o,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,o)+this.formatValue(n)+e.slice(s):e||this.formatValue(n)}return s-o===e.length?this.formatValue(n):0===o?n+e.slice(s):s===e.length?e.slice(0,o)+n:e.slice(0,o)+n+e.slice(s)}deleteRange(e,n,o){let s;return s=o-n===e.length?"":0===n?e.slice(o):o===e.length?e.slice(0,n):e.slice(0,n)+e.slice(o),s}initCursor(){let e=this.input?.nativeElement.selectionStart,n=this.input?.nativeElement.value,o=n.length,s=null,r=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=r;let a=n.charAt(e);if(this.isNumeralChar(a))return e+r;let l=e-1;for(;l>=0;){if(a=n.charAt(l),this.isNumeralChar(a)){s=l+r;break}l--}if(null!==s)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,n,o,s){n=n||"";let r=this.input?.nativeElement.value,a=this.formatValue(e),l=r.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft),V($i))};static \u0275cmp=Oe({type:t,selectors:[["p-inputNumber"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(TZ,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-inputnumber-clearable",o.showClear&&"vertical"!=o.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[yt([nY]),Hn],decls:7,vars:39,consts:[[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("input",function(r){return o.onUserInput(r)})("keydown",function(r){return o.onInputKeyDown(r)})("keypress",function(r){return o.onInputKeyPress(r)})("paste",function(r){return o.onPaste(r)})("click",function(){return o.onInputClick()})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A(),g(3,MZ,3,2,"ng-container",3),g(4,jZ,7,19,"span",4),g(5,WZ,3,9,"button",5),g(6,eY,3,9,"button",5),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(35,tY,o.showButtons&&"stacked"===o.buttonLayout,o.showButtons&&"horizontal"===o.buttonLayout,o.showButtons&&"vertical"===o.buttonLayout))("ngStyle",o.style),K("data-pc-name","inputnumber")("data-pc-section","root"),h(1),Ve(o.inputStyleClass),d("ngClass","p-inputnumber-input")("ngStyle",o.inputStyle)("value",o.formattedValue())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("aria-valuemin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("placeholder",o.placeholder)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("title",o.title)("size",o.size)("name",o.name)("autocomplete",o.autocomplete)("maxlength",o.maxlength)("tabindex",o.tabindex)("aria-required",o.ariaRequired)("required",o.required)("min",o.min)("max",o.max)("data-pc-section","input"),h(2),d("ngIf","vertical"!=o.buttonLayout&&o.showClear&&o.value),h(1),d("ngIf",o.showButtons&&"stacked"===o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout))},dependencies:function(){return[Ct,gt,on,Ht,hC,hf,mn,If,Or]},styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),fC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Mi,mn,If,Or,Qe]})}return t})(),gC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),_C=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Zo=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function iY(t,i){1&t&&ze(0)}const IC=function(t){return{$implicit:t}};function oY(t,i){if(1&t&&(x(0,"div",15),g(1,iY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","start"),h(1),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function sY(t,i){if(1&t&&(x(0,"span",17),Le(1),A()),2&t){const e=f(2);h(1),dt(e.currentPageReport)}}function rY(t,i){1&t&&le(0,"AngleDoubleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function aY(t,i){}function lY(t,i){1&t&&g(0,aY,0,0,"ng-template")}function cY(t,i){if(1&t&&(x(0,"span",20),g(1,lY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const Cf=function(t){return{"p-disabled":t}};function uY(t,i){if(1&t){const e=De();x(0,"button",18),me("click",function(o){return G(e),q(f(2).changePageToFirst(o))}),g(1,rY,1,1,"AngleDoubleLeftIcon",6),g(2,cY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isFirstPage()||e.empty())("ngClass",He(5,Cf,e.isFirstPage()||e.empty())),K("aria-label","firstPageLabel"),h(1),d("ngIf",!e.firstPageLinkIconTemplate),h(1),d("ngIf",e.firstPageLinkIconTemplate)}}function dY(t,i){1&t&&le(0,"AngleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function pY(t,i){}function hY(t,i){1&t&&g(0,pY,0,0,"ng-template")}function fY(t,i){if(1&t&&(x(0,"span",20),g(1,hY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const gY=function(t){return{"p-highlight":t}};function mY(t,i){if(1&t){const e=De();x(0,"button",24),me("click",function(o){const r=G(e).$implicit;return q(f(3).onPageLinkClick(o,r-1))}),Le(1),A()}if(2&t){const e=i.$implicit,n=f(3);d("ngClass",He(2,gY,e-1==n.getPage())),h(1),Pt(" ",n.getLocalization(e)," ")}}function _Y(t,i){if(1&t&&(x(0,"span",22),g(1,mY,2,4,"button",23),A()),2&t){const e=f(2);h(1),d("ngForOf",e.pageLinks)}}function IY(t,i){1&t&&Le(0),2&t&&dt(f(3).currentPageReport)}function CY(t,i){if(1&t){const e=De();x(0,"p-dropdown",25),me("onChange",function(o){return G(e),q(f(2).onPageDropdownChange(o))}),g(1,IY,1,1,"ng-template",26),A()}if(2&t){const e=f(2);d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),K("aria-label","jumpToPageDropdownLabel")}}function vY(t,i){1&t&&le(0,"AngleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function bY(t,i){}function yY(t,i){1&t&&g(0,bY,0,0,"ng-template")}function xY(t,i){if(1&t&&(x(0,"span",20),g(1,yY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function AY(t,i){1&t&&le(0,"AngleDoubleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function wY(t,i){}function TY(t,i){1&t&&g(0,wY,0,0,"ng-template")}function SY(t,i){if(1&t&&(x(0,"span",20),g(1,TY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function EY(t,i){if(1&t){const e=De();x(0,"button",27),me("click",function(o){return G(e),q(f(2).changePageToLast(o))}),g(1,AY,1,1,"AngleDoubleRightIcon",6),g(2,SY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isLastPage()||e.empty())("ngClass",He(4,Cf,e.isLastPage()||e.empty())),h(1),d("ngIf",!e.lastPageLinkIconTemplate),h(1),d("ngIf",e.lastPageLinkIconTemplate)}}function DY(t,i){if(1&t){const e=De();x(0,"p-inputNumber",28),me("ngModelChange",function(o){return G(e),q(f(2).changePage(o-1))}),A()}if(2&t){const e=f(2);d("ngModel",e.currentPage())("disabled",e.empty())}}function kY(t,i){1&t&&ze(0)}function MY(t,i){if(1&t&&g(0,kY,1,0,"ng-container",16),2&t){const e=i.$implicit;d("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",He(2,IC,e))}}function OY(t,i){1&t&&(we(0),g(1,MY,1,4,"ng-template",31),Te())}function LY(t,i){if(1&t){const e=De();x(0,"p-dropdown",29),me("ngModelChange",function(o){return G(e),q(f(2).rows=o)})("onChange",function(o){return G(e),q(f(2).onRppChange(o))}),g(1,OY,2,0,"ng-container",30),A()}if(2&t){const e=f(2);d("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),h(1),d("ngIf",e.dropdownItemTemplate)}}function PY(t,i){1&t&&ze(0)}function FY(t,i){if(1&t&&(x(0,"div",32),g(1,PY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","end"),h(1),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function RY(t,i){if(1&t){const e=De();x(0,"div",1),g(1,oY,2,5,"div",2),g(2,sY,2,1,"span",3),g(3,uY,3,7,"button",4),x(4,"button",5),me("click",function(o){return G(e),q(f().changePageToPrev(o))}),g(5,dY,1,1,"AngleLeftIcon",6),g(6,fY,2,1,"span",7),A(),g(7,_Y,2,1,"span",8),g(8,CY,2,6,"p-dropdown",9),x(9,"button",10),me("click",function(o){return G(e),q(f().changePageToNext(o))}),g(10,vY,1,1,"AngleRightIcon",6),g(11,xY,2,1,"span",7),A(),g(12,EY,3,6,"button",11),g(13,DY,1,2,"p-inputNumber",12),g(14,LY,2,6,"p-dropdown",13),g(15,FY,2,5,"div",14),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass","p-paginator p-component"),K("data-pc-section","paginator")("data-pc-section","root"),h(1),d("ngIf",e.templateLeft),h(1),d("ngIf",e.showCurrentPageReport),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("disabled",e.isFirstPage()||e.empty())("ngClass",He(25,Cf,e.isFirstPage()||e.empty())),K("aria-label","prevPageLabel"),h(1),d("ngIf",!e.previousPageLinkIconTemplate),h(1),d("ngIf",e.previousPageLinkIconTemplate),h(1),d("ngIf",e.showPageLinks),h(1),d("ngIf",e.showJumpToPageDropdown),h(1),d("disabled",e.isLastPage()||e.empty())("ngClass",He(27,Cf,e.isLastPage()||e.empty())),K("aria-label","lastPageLabel"),h(1),d("ngIf",!e.nextPageLinkIconTemplate),h(1),d("ngIf",e.nextPageLinkIconTemplate),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("ngIf",e.showJumpToPageInput),h(1),d("ngIf",e.rowsPerPageOptions),h(1),d("ngIf",e.templateRight)}}let NY=(()=>{class t{cd;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new ge;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const n=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(n.map((s,r)=>[r,s]));return e>9?String(e).split("").map(r=>o.get(Number(r))).join(""):o.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),n=Math.min(this.pageLinkSize,e),o=Math.max(0,Math.ceil(this.getPage()-n/2)),s=Math.min(e-1,o+n-1);return o=Math.max(0,o-(this.pageLinkSize-(s-o+1))),[o,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),o=e[1];for(let s=e[0];s<=o;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,n){this.changePage(n),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-paginator"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Hn],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(n,o){1&n&&g(0,RY,16,29,"div",0),2&n&&d("ngIf",!!o.alwaysShow||o.pageLinks&&o.pageLinks.length>1)},dependencies:function(){return[Ct,Jn,gt,on,Ht,fk,sn,_k,sS,xh,oo,gC,mC,_C,Zo]},styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),vf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,_f,fC,uu,Qe,dn,gC,mC,_C,Zo,_f,fC,uu,Qe]})}return t})();const VY=["container"];function BY(t,i){1&t&&le(0,"span",8),2&t&&(Ve(f(2).$implicit.icon),d("ngClass","p-button-icon p-button-icon-left"),K("data-pc-section","icon"))}function HY(t,i){if(1&t&&(we(0),g(1,BY,1,4,"span",6),x(2,"span",7),Le(3),A(),Te()),2&t){const e=f().$implicit,n=f();h(1),d("ngIf",e.icon),h(1),K("data-pc-section","label"),h(1),dt(n.getOptionLabel(e))}}function zY(t,i){1&t&&ze(0)}const jY=function(t,i){return{$implicit:t,index:i}};function UY(t,i){if(1&t&&g(0,zY,1,0,"ng-container",9),2&t){const e=f(),n=e.$implicit,o=e.index;d("ngTemplateOutlet",f().selectButtonTemplate)("ngTemplateOutletContext",mt(2,jY,n,o))}}const $Y=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function KY(t,i){if(1&t){const e=De();x(0,"div",3),me("click",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onOptionSelect(o,r,a))})("keydown",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onKeyDown(o,r,a))})("focus",function(o){const r=G(e).index;return q(f().onFocus(o,r))})("blur",function(){return G(e),q(f().onBlur())}),g(1,HY,4,3,"ng-container",4),g(2,UY,1,5,"ng-template",null,5,In),A()}if(2&t){const e=i.$implicit,n=i.index,o=Bt(3),s=f();Ve(e.styleClass),d("role",s.multiple?"checkbox":"radio")("ngClass",Rn(14,$Y,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),K("tabindex",n===s.focusedIndex?"0":"-1")("aria-label",e.label)("aria-checked",s.isSelected(e))("aria-disabled",s.optionDisabled)("aria-pressed",s.isSelected(e))("title",e.title)("aria-labelledby",s.getOptionLabel(e))("data-pc-section","button"),h(1),d("ngIf",!s.itemTemplate)("ngIfElse",o)}}const GY={provide:un,useExisting:ft(()=>qY),multi:!0};let qY=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new ge;onChange=new ge;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,n,o){if(this.disabled||this.isOptionDisabled(n))return;let s=this.isSelected(n);if(s&&this.unselectable)return;let a,r=this.getOptionValue(n);if(this.multiple)a=s?this.value.filter(l=>!be.equals(l,r,this.equalityKey)):this.value?[...this.value,r]:[r];else{if(s&&!this.allowEmpty)return;a=s?null:r}this.focusedIndex=o,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:n,index:o})}onKeyDown(e,n,o){switch(e.code){case"Space":this.onOptionSelect(e,n,o),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}}changeTabIndexes(e,n){let o,s;for(let r=0;r<=this.container.nativeElement.children.length-1;r++)"0"===this.container.nativeElement.children[r].getAttribute("tabindex")&&(o={elem:this.container.nativeElement.children[r],index:r});s="prev"===n?0===o.index?this.container.nativeElement.children.length-1:o.index-1:o.index===this.container.nativeElement.children.length-1?0:o.index+1,this.focusedIndex=s,this.container.nativeElement.children[s].focus()}onFocus(e,n){this.focusedIndex=n}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!be.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1;const o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let s of this.value)if(be.equals(s,o,this.dataKey)){n=!0;break}}else n=be.equals(this.getOptionValue(e),this.value,this.equalityKey);return n}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-selectButton"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,5),2&n){let r;Se(r=Ee())&&(o.itemTemplate=r.first)}},viewQuery:function(n,o){if(1&n&&je(VY,5),2&n){let s;Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:"unselectable",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[yt([GY])],decls:3,vars:8,consts:[["role","group",3,"ngClass","ngStyle"],["container",""],["pRipple","","class","p-button p-component",3,"role","class","ngClass","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","",1,"p-button","p-component",3,"role","ngClass","click","keydown","focus","blur"],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,KY,4,18,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",o.style),K("aria-labelledby",o.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),h(2),d("ngForOf",o.options))},dependencies:[Ct,Jn,gt,on,Ht,oo],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return t})(),Ik=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,Qe]})}return t})(),yi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function WY(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxTrueIcon),K("data-pc-section","checkIcon"))}function QY(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","checkIcon"))}function ZY(t,i){}function YY(t,i){1&t&&g(0,ZY,0,0,"ng-template")}function XY(t,i){if(1&t&&(x(0,"span",12),g(1,YY,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","checkIcon"),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function JY(t,i){if(1&t&&(we(0),g(1,QY,1,2,"CheckIcon",9),g(2,XY,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function eX(t,i){if(1&t&&(we(0),g(1,WY,1,2,"span",7),g(2,JY,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxTrueIcon),h(1),d("ngIf",!e.checkboxTrueIcon)}}function tX(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxFalseIcon),K("data-pc-section","uncheckIcon"))}function nX(t,i){1&t&&le(0,"TimesIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","uncheckIcon"))}function iX(t,i){}function oX(t,i){1&t&&g(0,iX,0,0,"ng-template")}function sX(t,i){if(1&t&&(x(0,"span",12),g(1,oX,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","uncheckIcon"),h(1),d("ngTemplateOutlet",e.uncheckIconTemplate)}}function rX(t,i){if(1&t&&(we(0),g(1,nX,1,2,"TimesIcon",9),g(2,sX,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.uncheckIconTemplate),h(1),d("ngIf",e.uncheckIconTemplate)}}function aX(t,i){if(1&t&&(we(0),g(1,tX,1,2,"span",7),g(2,rX,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxFalseIcon),h(1),d("ngIf",!e.checkboxFalseIcon)}}const lX=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function cX(t,i){if(1&t&&(x(0,"label",14),Le(1),A()),2&t){const e=f();d("ngClass",Rn(3,lX,null!=e.value,e.disabled,e.focused)),K("for",e.inputId),h(1),dt(e.label)}}const uX=function(t,i){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},dX=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},pX={provide:un,useExisting:ft(()=>hX),multi:!0};let hX=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabel;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new ge;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.focus())}onKeyDown(e){"Enter"===e.key&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[yt([pX])],decls:8,vars:26,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none",3,"name","readonly","disabled","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-tristatecheckbox-label",3,"ngClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-tristatecheckbox-label",3,"ngClass"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.onClick(a,l))}),x(1,"div",1)(2,"input",2,3),me("keydown",function(a){return o.onKeyDown(a)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,eX,3,2,"ng-container",5),g(6,aX,3,2,"ng-container",5),A()(),g(7,cX,2,7,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(19,uX,o.disabled,o.focused)),K("data-pc-name","tristatecheckbox")("data-pc-section","root"),h(2),d("name",o.name)("readonly",o.readonly)("disabled",o.disabled),K("id",o.inputId)("tabindex",o.tabindex)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(22,dX,null!=o.value,o.disabled,o.focused)),K("aria-checked",!0===o.value),h(1),d("ngIf",!0===o.value),h(1),d("ngIf",!1===o.value),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi,mn]},encapsulation:2,changeDetection:0})}return t})(),fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,yi,mn,Qe]})}return t})(),CC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),gX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Ck=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[st,Et],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),A(),x(6,"defs")(7,"clipPath",5),le(8,"rect",6),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(6),d("id",o.pathId))},encapsulation:2})}return t})(),vk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.59836 13.2009C2.44634 13.2009 2.29432 13.1449 2.1743 13.0248L0.174024 11.0246C-0.0580081 10.7925 -0.0580081 10.4085 0.174024 10.1764C0.406057 9.94441 0.79011 9.94441 1.02214 10.1764L2.59836 11.7527L4.17458 10.1764C4.40662 9.94441 4.79067 9.94441 5.0227 10.1764C5.25473 10.4085 5.25473 10.7925 5.0227 11.0246L3.02242 13.0248C2.90241 13.1449 2.75038 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),bk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.59864 3.99958C4.44662 3.99958 4.2946 3.94357 4.17458 3.82356L2.59836 2.24734L1.02214 3.82356C0.79011 4.05559 0.406057 4.05559 0.174024 3.82356C-0.0580081 3.59152 -0.0580081 3.20747 0.174024 2.97544L2.1743 0.97516C2.40634 0.743127 2.79039 0.743127 3.02242 0.97516L5.0227 2.97544C5.25473 3.20747 5.25473 3.59152 5.0227 3.82356C4.90268 3.94357 4.75066 3.99958 4.59864 3.99958Z","fill","currentColor"],["d","M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),mX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const _X=["container"],IX=["resizeHelper"],CX=["reorderIndicatorUp"],vX=["reorderIndicatorDown"],bX=["wrapper"],yX=["table"],xX=["thead"],AX=["tfoot"],wX=["scroller"];function TX(t,i){1&t&&le(0,"i"),2&t&&Ve("p-datatable-loading-icon "+f(2).loadingIcon)}function SX(t,i){1&t&&le(0,"SpinnerIcon",19),2&t&&d("spin",!0)("styleClass","p-datatable-loading-icon")}function EX(t,i){}function DX(t,i){1&t&&g(0,EX,0,0,"ng-template")}function kX(t,i){if(1&t&&(x(0,"span",20),g(1,DX,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function MX(t,i){if(1&t&&(we(0),g(1,SX,1,2,"SpinnerIcon",17),g(2,kX,2,1,"span",18),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function OX(t,i){if(1&t&&(x(0,"div",15),g(1,TX,1,2,"i",16),g(2,MX,3,2,"ng-container",8),A()),2&t){const e=f();h(1),d("ngIf",e.loadingIcon),h(1),d("ngIf",!e.loadingIcon)}}function LX(t,i){1&t&&ze(0)}function PX(t,i){if(1&t&&(x(0,"div",22),g(1,LX,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.captionTemplate)}}function FX(t,i){1&t&&ze(0)}function RX(t,i){1&t&&g(0,FX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function NX(t,i){1&t&&g(0,RX,1,1,"ng-template",24)}function VX(t,i){1&t&&ze(0)}function BX(t,i){1&t&&g(0,VX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function HX(t,i){1&t&&g(0,BX,1,1,"ng-template",25)}function zX(t,i){1&t&&ze(0)}function jX(t,i){1&t&&g(0,zX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function UX(t,i){1&t&&g(0,jX,1,1,"ng-template",26)}function $X(t,i){1&t&&ze(0)}function KX(t,i){1&t&&g(0,$X,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function GX(t,i){1&t&&g(0,KX,1,1,"ng-template",27)}function qX(t,i){if(1&t){const e=De();x(0,"p-paginator",23),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,NX,1,0,null,8),g(2,HX,1,0,null,8),g(3,UX,1,0,null,8),g(4,GX,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function WX(t,i){1&t&&ze(0)}const yk=function(t,i){return{$implicit:t,options:i}};function QX(t,i){if(1&t&&g(0,WX,1,0,"ng-container",31),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(10))("ngTemplateOutletContext",mt(2,yk,e,n))}}const ZX=function(t){return{height:t}};function YX(t,i){if(1&t){const e=De();x(0,"p-scroller",28,29),me("onLazyLoad",function(o){return G(e),q(f().onLazyItemLoad(o))}),g(2,QX,1,5,"ng-template",30),A()}if(2&t){const e=f();yn(He(15,ZX,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),d("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function XX(t,i){1&t&&ze(0)}const JX=function(t){return{columns:t}};function eJ(t,i){if(1&t&&(we(0),g(1,XX,1,0,"ng-container",31),Te()),2&t){const e=f(),n=Bt(10);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(4,yk,e.processedData,He(2,JX,e.columns)))}}function tJ(t,i){1&t&&ze(0)}function nJ(t,i){1&t&&ze(0)}function iJ(t,i){if(1&t&&le(0,"tbody",40),2&t){const e=f().options,n=f();d("value",n.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",n.frozenBodyTemplate)("frozen",!0)}}function oJ(t,i){if(1&t&&le(0,"tbody",41),2&t){const e=f().options;yn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function sJ(t,i){1&t&&ze(0)}const Lr=function(t){return{$implicit:t}};function rJ(t,i){if(1&t&&(x(0,"tfoot",42,43),g(2,sJ,1,0,"ng-container",31),A()),2&t){const e=f().options,n=f();h(2),d("ngTemplateOutlet",n.footerGroupedTemplate||n.footerTemplate)("ngTemplateOutletContext",He(2,Lr,e.columns))}}const aJ=function(t,i,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":i,"p-datatable-resizable-table-fit":e}};function lJ(t,i){if(1&t&&(x(0,"table",32,33),g(2,tJ,1,0,"ng-container",31),x(3,"thead",34,35),g(5,nJ,1,0,"ng-container",31),A(),g(6,iJ,1,5,"tbody",36),le(7,"tbody",37),g(8,oJ,1,2,"tbody",38),g(9,rJ,3,4,"tfoot",39),A()),2&t){const e=i.options,n=f();yn(n.tableStyle),Ve(n.tableStyleClass),d("ngClass",Rn(20,aJ,n.scrollable,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode)),K("id",n.id+"-table"),h(2),d("ngTemplateOutlet",n.colGroupTemplate)("ngTemplateOutletContext",He(24,Lr,e.columns)),h(3),d("ngTemplateOutlet",n.headerGroupedTemplate||n.headerTemplate)("ngTemplateOutletContext",He(26,Lr,e.columns)),h(1),d("ngIf",n.frozenValue||n.frozenBodyTemplate),h(1),yn(e.contentStyle),d("ngClass",e.contentStyleClass)("value",n.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",n.bodyTemplate)("scrollerOptions",e),h(1),d("ngIf",e.spacerStyle),h(1),d("ngIf",n.footerGroupedTemplate||n.footerTemplate)}}function cJ(t,i){1&t&&ze(0)}function uJ(t,i){1&t&&g(0,cJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function dJ(t,i){1&t&&g(0,uJ,1,1,"ng-template",24)}function pJ(t,i){1&t&&ze(0)}function hJ(t,i){1&t&&g(0,pJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function fJ(t,i){1&t&&g(0,hJ,1,1,"ng-template",25)}function gJ(t,i){1&t&&ze(0)}function mJ(t,i){1&t&&g(0,gJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function _J(t,i){1&t&&g(0,mJ,1,1,"ng-template",26)}function IJ(t,i){1&t&&ze(0)}function CJ(t,i){1&t&&g(0,IJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function vJ(t,i){1&t&&g(0,CJ,1,1,"ng-template",27)}function bJ(t,i){if(1&t){const e=De();x(0,"p-paginator",44),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,dJ,1,0,null,8),g(2,fJ,1,0,null,8),g(3,_J,1,0,null,8),g(4,vJ,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function yJ(t,i){1&t&&ze(0)}function xJ(t,i){if(1&t&&(x(0,"div",45),g(1,yJ,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.summaryTemplate)}}function AJ(t,i){1&t&&le(0,"div",46,47)}function wJ(t,i){1&t&&le(0,"ArrowDownIcon")}function TJ(t,i){}function SJ(t,i){1&t&&g(0,TJ,0,0,"ng-template")}function EJ(t,i){if(1&t&&(x(0,"span",48,49),g(2,wJ,1,0,"ArrowDownIcon",8),g(3,SJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorUpIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function DJ(t,i){1&t&&le(0,"ArrowUpIcon")}function kJ(t,i){}function MJ(t,i){1&t&&g(0,kJ,0,0,"ng-template")}function OJ(t,i){if(1&t&&(x(0,"span",50,51),g(2,DJ,1,0,"ArrowUpIcon",8),g(3,MJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorDownIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const LJ=function(t,i,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":i,"p-datatable-flex-scrollable":e}},PJ=function(t){return{maxHeight:t}},FJ=["pTableBody",""];function RJ(t,i){1&t&&ze(0)}const bC=function(t,i,e,n,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o}};function NJ(t,i){if(1&t&&(we(0,3),g(1,RJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function VJ(t,i){1&t&&ze(0)}function BJ(t,i){if(1&t&&(we(0),g(1,VJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function HJ(t,i){1&t&&ze(0)}const zJ=function(t,i,e,n,o,s,r){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o,rowgroup:s,rowspan:r}};function jJ(t,i){if(1&t&&(we(0),g(1,HJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",function Aw(t,i,e,n,o,s,r,a,l,c){const u=zi()+t,p=Ne();let m=Do(p,u,e,n,o,s);return Dp(p,u+4,r,a,l)||m?ls(p,u+7,c?i.call(c,e,n,o,s,r,a,l):i(e,n,o,s,r,a,l)):zc(p,u+7)}(2,zJ,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen,s.shouldRenderRowspan(s.value,n,o),s.calculateRowGroupSize(s.value,n,o)))}}function UJ(t,i){1&t&&ze(0)}function $J(t,i){if(1&t&&(we(0,3),g(1,UJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function KJ(t,i){if(1&t&&(g(0,NJ,2,8,"ng-container",2),g(1,BJ,2,8,"ng-container",0),g(2,jJ,2,10,"ng-container",0),g(3,$J,2,8,"ng-container",2)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",o.dt.groupHeaderTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,n)),h(1),d("ngIf","rowspan"!==o.dt.rowGroupMode),h(1),d("ngIf","rowspan"===o.dt.rowGroupMode),h(1),d("ngIf",o.dt.groupFooterTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,e,n))}}function GJ(t,i){if(1&t&&(we(0),g(1,KJ,4,4,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function qJ(t,i){1&t&&ze(0)}const bf=function(t,i,e,n,o,s){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:o,frozen:s}};function WJ(t,i){if(1&t&&(we(0),g(1,qJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.template)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function QJ(t,i){1&t&&ze(0)}function ZJ(t,i){if(1&t&&(we(0,3),g(1,QJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function YJ(t,i){1&t&&ze(0)}function XJ(t,i){1&t&&ze(0)}function JJ(t,i){if(1&t&&(we(0,3),g(1,XJ,1,0,"ng-container",4),Te()),2&t){const e=f(2),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}const xk=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function eee(t,i){if(1&t&&(we(0),g(1,YJ,1,0,"ng-container",4),g(2,JJ,2,9,"ng-container",2),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",gr(3,xk,n,s.getRowIndex(o),s.columns,s.frozen)),h(1),d("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,n,s.getRowIndex(o)))}}function tee(t,i){if(1&t&&(g(0,WJ,2,9,"ng-container",0),g(1,ZJ,2,9,"ng-container",2),g(2,eee,3,8,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",!o.dt.groupHeaderTemplate),h(1),d("ngIf",o.dt.groupHeaderTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(n))),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function nee(t,i){if(1&t&&(we(0),g(1,tee,3,3,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function iee(t,i){1&t&&ze(0)}function oee(t,i){1&t&&ze(0)}function see(t,i){if(1&t&&(we(0),g(1,oee,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",gr(2,xk,n,s.getRowIndex(o),s.columns,s.frozen))}}function ree(t,i){if(1&t&&(g(0,iee,1,0,"ng-container",4),g(1,see,2,7,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ea(3,bf,e,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(e),"row"===o.dt.editMode&&o.dt.isRowEditing(e),o.frozen)),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function aee(t,i){if(1&t&&(we(0),g(1,ree,2,10,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function lee(t,i){1&t&&ze(0)}const Ak=function(t,i){return{$implicit:t,frozen:i}};function cee(t,i){if(1&t&&(we(0),g(1,lee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}function uee(t,i){1&t&&ze(0)}function dee(t,i){if(1&t&&(we(0),g(1,uee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}let yC=(()=>{class t{sortSource=new re;selectionSource=new re;contextMenuSource=new re;valueSource=new re;totalRecordsSource=new re;columnsSource=new re;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),xC=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new ge;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,n)=>n;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new ge;selectionChange=new ge;onRowSelect=new ge;onRowUnselect=new ge;onPage=new ge;onSort=new ge;onFilter=new ge;onLazyLoad=new ge;onRowExpand=new ge;onRowCollapse=new ge;onContextMenuSelect=new ge;onColResize=new ge;onColReorder=new ge;onRowReorder=new ge;onEditInit=new ge;onEditComplete=new ge;onEditCancel=new ge;onHeaderCheckboxToggle=new ge;sortFunction=new ge;firstChange=new ge;rowsChange=new ge;onStateSave=new ge;onStateRestore=new ge;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=$t();styleElement;responsiveStyleElement;window;constructor(e,n,o,s,r,a,l,c,u,p){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.config=p,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const n=e||this.processedData;if(n&&this.paginator){const o=this.lazy?0:this.first;return n.slice(o,o+this.rows)}return n}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(be.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(be.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let n=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let o=n.metaKey||n.ctrlKey,s=this.getSortMeta(e.field);s?o?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&n){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:n}):(this.value.sort((s,r)=>{let a=be.resolveFieldData(s,e),l=be.resolveFieldData(r,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):al?1:0,n*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let o={field:e,order:n};this.onSort.emit(o),this.tableService.onSort(o)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,o,s){const r=be.resolveFieldData(e,o[s].field),a=be.resolveFieldData(n,o[s].field);return 0===be.compare(r,a,this.filterLocale)?o.length-1>s?this.multisortField(e,n,o,s+1):0:this.compareValuesOnSort(r,a,o[s].order)}compareValuesOnSort(e,n,o){return be.sort(e,n,o,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let n=0;nb!=m),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row"})}else this.isSingleSelectionMode()?(this._selection=r,this.selectionChange.emit(r),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(p?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,r],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})):(this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let p=this.findIndexInSelection(r);this._selection=this.selection.filter((m,_)=>_!=p),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const n=e.rowData,o=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(n),r=this.dataKey?String(be.resolveFieldData(n,this.dataKey)):null;if(!s){if(!this.isRowSelectable(n,o))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),r&&(this.selectionKeys={},this.selectionKeys[r]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),r&&(this.selectionKeys[r]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let o,s;this.anchorRowIndex>n?(o=n,s=this.anchorRowIndex):this.anchorRowIndexr?(n=this.anchorRowIndex,o=this.rangeRowIndex):sm!=c);let u=this.dataKey?String(be.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[be.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length)for(let o=0;ol!=r),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const o=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let s=this.selectionPageOnly&&this._selection?this._selection.filter(r=>!o.some(a=>this.equals(r,a))):[];n&&(s=this.frozenValue?[...s,...this.frozenValue,...o]:[...s,...o],s=this.rowSelectable?s.filter((r,a)=>this.rowSelectable({data:r,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:be.equals(e,n,this.dataKey)}filter(e,n,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let n=0;nthis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let n of e)n.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let n,o="",s=this.columns;e&&e.selectionOnly?n=this.selection||[]:e&&e.allValues?n=this.value||[]:(n=this.filteredValue||this.value,this.frozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let l=0;l{o+="\n";for(let u=0;u{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(j.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===j.find(n,".ng-invalid.ng-dirty").length){let o=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[o]}}cancelRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let o=String(be.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[o]?(delete this.expandedRowKeys[o],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[o]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;j.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,o=this.resizeColumnElement.offsetWidth+e;if(o>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;o>15&&a>15&&this.resizeTableCells(o,a)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(o,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",j.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const n=j.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return j.find(n,"tr > th").forEach(s=>e.push(j.getOuterWidth(s))),e}onColumnDragStart(e,n){this.reorderIconWidth=j.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=j.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let o=j.getOffset(this.containerViewChild?.nativeElement),s=j.getOffset(n);if(this.draggedColumn!=n){j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),j.indexWithinGroup(n,"preorderablecolumn");let l=s.left-o.left,u=s.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-o.top+n.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,n){if(e.preventDefault(),this.draggedColumn){let o=j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=j.indexWithinGroup(n,"preorderablecolumn"),r=o!=s;if(r&&(s-o==1&&-1===this.dropPosition||o-s==1&&1===this.dropPosition)&&(r=!1),r&&so&&-1===this.dropPosition&&(s-=1),r&&(be.reorderArray(this.columns,o,s),this.onColReorder.emit({dragIndex:o,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement&&this.resizeColumnElement.isSameNode(this.draggedColumn)){let a="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();be.reorderArray(a,o+1,s+1),this.updateStyleElement(a,o,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,n){let o=j.index(this.resizeColumnElement),s="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(s,o,e,n)}updateStyleElement(e,n,o,s){this.destroyStyleElement(),this.createStyleElement();let r="";e.forEach((a,l)=>{let c=l===n?o:s&&l===n+1?s:a;r+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {\n width: ${c}px !important; max-width: ${c}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",r)}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,o){if(this.rowDragging&&this.draggedRowIndex!==n){let s=j.getOffset(o).top,r=e.pageY,a=s+j.getOuterHeight(o)/2,l=o.previousElementSibling;rthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;be.reorderArray(this.value,this.draggedRowIndex,o),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:o})}this.onRowDragLeave(e,n),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!ei(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const n=this.getStorage().getItem(this.stateKey),o=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let r=JSON.parse(n,function(r,a){return"string"==typeof a&&o.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=r.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=r.rows,this.rowsChange.emit(this.rows))),r.sortField&&(this.restoringSort=!0,this._sortField=r.sortField,this._sortOrder=r.sortOrder),r.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=r.multiSortMeta),r.filters&&(this.restoringFilter=!0,this.filters=r.filters),this.resizableColumns&&(this.columnWidthsState=r.columnWidths,this.tableWidthState=r.tableWidth),r.expandedRowKeys&&(this.expandedRowKeys=r.expandedRowKeys),r.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(r.selection)),this.stateRestored=!0,this.onStateRestore.emit(r)}}saveColumnWidths(e){let n=[];j.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(s=>n.push(j.getOuterWidth(s))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=j.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),be.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((o,s)=>{n+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {\n width: ${o}px !important; max-width: ${o}px !important\n }\n `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(o=>{n.push(o.field||o.key)}),e.columnOrder=n}}restoreColumnOrder(){const n=this.getStorage().getItem(this.stateKey);if(n){let s=JSON.parse(n).columnOrder;if(s){let r=[];s.map(a=>{let l=this.findColumnByKey(a);l&&r.push(l)}),this.columnOrderStateRestored=!0,this.columns=r}}}findColumnByKey(e){if(!this.columns)return null;for(let n of this.columns)if(n.key===e||n.field===e)return n}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){ei(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(bt),V(Tt),V(yC),V(Ft),V(df),V(Dr),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-table"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(_X,5),je(IX,5),je(CX,5),je(vX,5),je(bX,5),je(yX,5),je(xX,5),je(AX,5),je(wX,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.resizeHelperViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorUpViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorDownViewChild=s.first),Se(s=Ee())&&(o.wrapperViewChild=s.first),Se(s=Ee())&&(o.tableViewChild=s.first),Se(s=Ee())&&(o.tableHeaderViewChild=s.first),Se(s=Ee())&&(o.tableFooterViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[yt([yC]),Hn],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],["role","rowgroup",1,"p-datatable-thead"],["thead",""],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,OX,3,2,"div",2),g(3,PX,2,1,"div",3),g(4,qX,5,23,"p-paginator",4),x(5,"div",5,6),g(7,YX,3,17,"p-scroller",7),g(8,eJ,2,7,"ng-container",8),g(9,lJ,10,28,"ng-template",null,9,In),A(),g(11,bJ,5,23,"p-paginator",10),g(12,xJ,2,1,"div",11),g(13,AJ,2,0,"div",12),g(14,EJ,4,2,"span",13),g(15,OJ,4,2,"span",14),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(16,LJ,o.rowHover||o.selectionMode,o.scrollable,o.scrollable&&"flex"===o.scrollHeight)),K("id",o.id),h(2),d("ngIf",o.loading&&o.showLoader),h(1),d("ngIf",o.captionTemplate),h(1),d("ngIf",o.paginator&&("top"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngStyle",He(20,PJ,o.virtualScroll?"":o.scrollHeight)),h(2),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.paginator&&("bottom"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngIf",o.summaryTemplate),h(1),d("ngIf",o.resizableColumns),h(1),d("ngIf",o.reorderableColumns),h(1),d("ngIf",o.reorderableColumns))},dependencies:function(){return[Ct,gt,on,Ht,NY,sn,Bu,CC,vC,_s,rte]},styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return t})(),rte=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,n,o,s){this.dt=e,this.tableService=n,this.cd=o,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o+1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}calculateRowGroupSize(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=s,a=0;for(;s===r;){a++;let l=e[++o];if(!l)break;r=be.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=j.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=j.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,n){return this.dt.virtualScroll&&(n=n||this.scrollerOptions)?n[e]:null}getRowIndex(e){const n=this.dt.paginator?this.dt.first+e:e,o=this.getScrollerOption("getItemOptions");return o?o(n).index:n}static \u0275fac=function(n){return new(n||t)(V(xC),V(yC),V(Ft),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:FJ,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(g(0,GJ,2,2,"ng-container",0),g(1,nee,2,2,"ng-container",0),g(2,aee,2,2,"ng-container",0),g(3,cee,2,5,"ng-container",0),g(4,dee,2,5,"ng-container",0)),2&n&&(d("ngIf",!o.dt.expandedRowTemplate),h(1),d("ngIf",o.dt.expandedRowTemplate&&!(o.frozen&&o.dt.frozenExpandedRowTemplate)),h(1),d("ngIf",o.dt.frozenExpandedRowTemplate&&o.frozen),h(1),d("ngIf",o.dt.loading),h(1),d("ngIf",o.dt.isEmpty()&&!o.dt.loading))},dependencies:[Jn,gt,on],encapsulation:2})}return t})(),ate=(()=>{class t{dt;data;pRowTogglerDisabled;constructor(e){this.dt=e}onClick(e){this.isEnabled()&&(this.dt.toggleRow(this.data,e),e.preventDefault())}isEnabled(){return!0!==this.pRowTogglerDisabled}static \u0275fac=function(n){return new(n||t)(V(xC))};static \u0275dir=ut({type:t,selectors:[["","pRowToggler",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("click",function(r){return o.onClick(r)})},inputs:{data:["pRowToggler","data"],pRowTogglerDisabled:"pRowTogglerDisabled"}})}return t})(),wk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,Zs,_f,uu,Mi,Ik,uk,fC,fX,Oi,CC,vC,_s,Ck,bk,vk,yi,gX,mX,Qe,Oi]})}return t})(),Tk=(()=>{class t{el;pFocusTrapDisabled=!1;constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const n=j.getNextFocusableElement(this.el.nativeElement,e.shiftKey);n&&(n.focus(),n.select?.())}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.tab",function(r){return o.onkeydown(r)})("keydown.shift.tab",function(r){return o.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}})}return t})(),Sk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),AC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),wC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const lte=["titlebar"],cte=["content"],ute=["footer"];function dte(t,i){if(1&t){const e=De();x(0,"div",11),me("mousedown",function(o){return G(e),q(f(3).initResize(o))}),A()}}function pte(t,i){if(1&t&&(x(0,"span",18),Le(1),A()),2&t){const e=f(4);d("id",e.getAriaLabelledBy()),h(1),dt(e.header)}}function hte(t,i){1&t&&(x(0,"span",18),Kn(1,1),A()),2&t&&d("id",f(4).getAriaLabelledBy())}function fte(t,i){1&t&&ze(0)}function gte(t,i){if(1&t&&le(0,"span",22),2&t){const e=f(5);d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function mte(t,i){1&t&&le(0,"WindowMaximizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function _te(t,i){1&t&&le(0,"WindowMinimizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function Ite(t,i){if(1&t&&(we(0),g(1,mte,1,1,"WindowMaximizeIcon",23),g(2,_te,1,1,"WindowMinimizeIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.maximized&&!e.maximizeIconTemplate),h(1),d("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function Cte(t,i){}function vte(t,i){1&t&&g(0,Cte,0,0,"ng-template")}function bte(t,i){if(1&t&&(we(0),g(1,vte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.maximizeIconTemplate)}}function yte(t,i){}function xte(t,i){1&t&&g(0,yte,0,0,"ng-template")}function Ate(t,i){if(1&t&&(we(0),g(1,xte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.minimizeIconTemplate)}}const wte=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function Tte(t,i){if(1&t){const e=De();x(0,"button",19),me("click",function(){return G(e),q(f(4).maximize())})("keydown.enter",function(){return G(e),q(f(4).maximize())}),g(1,gte,1,1,"span",20),g(2,Ite,3,2,"ng-container",21),g(3,bte,2,1,"ng-container",21),g(4,Ate,2,1,"ng-container",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,wte)),h(1),d("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),h(1),d("ngIf",!e.maximizeIcon),h(1),d("ngIf",!e.maximized),h(1),d("ngIf",e.maximized)}}function Ste(t,i){1&t&&le(0,"span",27),2&t&&d("ngClass",f(6).closeIcon)}function Ete(t,i){1&t&&le(0,"TimesIcon",24),2&t&&d("styleClass","p-dialog-header-close-icon")}function Dte(t,i){if(1&t&&(we(0),g(1,Ste,1,1,"span",26),g(2,Ete,1,1,"TimesIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",e.closeIcon),h(1),d("ngIf",!e.closeIcon)}}function kte(t,i){}function Mte(t,i){1&t&&g(0,kte,0,0,"ng-template")}function Ote(t,i){if(1&t&&(x(0,"span"),g(1,Mte,1,0,null,9),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}const Lte=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function Pte(t,i){if(1&t){const e=De();x(0,"button",25),me("click",function(o){return G(e),q(f(4).close(o))})("keydown.enter",function(o){return G(e),q(f(4).close(o))}),g(1,Dte,3,2,"ng-container",21),g(2,Ote,2,1,"span",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,Lte)),K("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),h(1),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Fte(t,i){if(1&t){const e=De();x(0,"div",12,13),me("mousedown",function(o){return G(e),q(f(3).initDrag(o))}),g(2,pte,2,2,"span",14),g(3,hte,2,1,"span",14),g(4,fte,1,0,"ng-container",9),x(5,"div",15),g(6,Tte,5,6,"button",16),g(7,Pte,3,6,"button",17),A()()}if(2&t){const e=f(3);h(2),d("ngIf",!e.headerFacet&&!e.headerTemplate),h(1),d("ngIf",e.headerFacet),h(1),d("ngTemplateOutlet",e.headerTemplate),h(2),d("ngIf",e.maximizable),h(1),d("ngIf",e.closable)}}function Rte(t,i){1&t&&ze(0)}function Nte(t,i){1&t&&ze(0)}function Vte(t,i){if(1&t&&(x(0,"div",28,29),Kn(2,2),g(3,Nte,1,0,"ng-container",9),A()),2&t){const e=f(3);h(3),d("ngTemplateOutlet",e.footerTemplate)}}const Bte=function(t,i,e,n){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},Hte=function(t,i){return{transform:t,transition:i}},zte=function(t){return{value:"visible",params:t}};function jte(t,i){if(1&t){const e=De();x(0,"div",3,4),me("@animation.start",function(o){return G(e),q(f(2).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(2).onAnimationEnd(o))}),g(2,dte,1,0,"div",5),g(3,Fte,8,5,"div",6),x(4,"div",7,8),Kn(6),g(7,Rte,1,0,"ng-container",9),A(),g(8,Vte,4,1,"div",10),A()}if(2&t){const e=f(2);Ve(e.styleClass),d("ngClass",gr(16,Bte,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",He(24,zte,mt(21,Hte,e.transformOptions,e.transitionOptions))),K("aria-labelledby",e.ariaLabelledBy)("aria-modal",!0),h(2),d("ngIf",e.resizable),h(1),d("ngIf",e.showHeader),h(1),Ve(e.contentStyleClass),d("ngClass","p-dialog-content")("ngStyle",e.contentStyle),h(3),d("ngTemplateOutlet",e.contentTemplate),h(1),d("ngIf",e.footerFacet||e.footerTemplate)}}const Ute=function(t,i,e,n,o,s,r,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":o,"p-dialog-top-left":s,"p-dialog-top-right":r,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function $te(t,i){if(1&t&&(x(0,"div",1),g(1,jte,9,26,"div",2),A()),2&t){const e=f();Ve(e.maskStyleClass),d("ngClass",zp(4,Ute,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),h(1),d("ngIf",e.visible)}}const Kte=["*",[["p-header"]],[["p-footer"]]],Gte=["*","p-header","p-footer"],qte=Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}")]),Wte=Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Qte=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="-1";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onShow=new ge;onHide=new ge;visibleChange=new ge;onResizeInit=new ge;onResizeEnd=new ge;onDragEnd=new ge;onMaximize=new ge;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy;documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=$t();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.zone=r,this.cd=a,this.config=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return null!==this.header?$t()+"_header":null}focus(){let e=j.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&j.blockBodyScroll()}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&j.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?j.blockBodyScroll():j.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Wn.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(ei(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`\n @media screen and (max-width: ${n}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[n]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){j.hasClass(e.target,"p-dialog-header-icon")||j.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",j.addClass(this.document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let n=j.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==o||0===o?n[n.length-1].focus():n[o-1].focus():-1==o||o===n.length-1?n[0].focus():n[o+1].focus()}else n[0].focus()}}onDrag(e){if(this.dragging){const n=j.getOuterWidth(this.container),o=j.getOuterHeight(this.container),s=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=getComputedStyle(this.container),c=parseFloat(l.marginLeft),u=parseFloat(l.marginTop),p=a.left+s-c,m=a.top+r-u,_=j.getViewport();this.container.style.position="fixed",this.keepInViewport?(p>=this.minX&&p+n<_.width&&(this._style.left=`${p}px`,this.lastPageX=e.pageX,this.container.style.left=`${p}px`),m>=this.minY&&m+o<_.height&&(this._style.top=`${m}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${p}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,j.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getOuterHeight(this.contentViewChild?.nativeElement),l=s+n,c=r+o,u=this.container.style.minWidth,p=this.container.style.minHeight,m=this.container.getBoundingClientRect(),_=j.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=n,c+=o),(!u||l>parseInt(u))&&m.left+l<_.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!p||c>parseInt(p))&&m.top+c<_.height&&(this.contentViewChild.nativeElement.style.height=a+c-r+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",n=>{27==n.which&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):j.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&j.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&j.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(j.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&j.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dialog"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(lte,5),je(cte,5),je(ute,5)),2&n){let s;Se(s=Ee())&&(o.headerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:Gte,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(n,o){1&n&&(Ti(Kte),g(0,$te,2,15,"div",0)),2&n&&d("ngIf",o.maskVisible)},dependencies:function(){return[Ct,gt,on,Ht,Tk,oo,mn,AC,wC]},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[Eh(qte)]),Ln("visible => void",[Eh(Wte)])])]},changeDetection:0})}return t})(),Ek=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Sk,dn,mn,AC,wC,Qe]})}return t})();function Zte(t,i){if(1&t&&(x(0,"div"),le(1,"app-activities-table",3),A()),2&t){const e=f();h(1),d("activities",e.activities)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("fieldsLinksArr",e.fieldsLinksArr)}}function Yte(t,i){if(1&t&&(x(0,"div"),le(1,"app-actions-table",4),A()),2&t){const e=f();h(1),d("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("activitySeq",e.activitySeq)}}function Xte(t,i){if(1&t&&(x(0,"div"),le(1,"app-table",5),A()),2&t){const e=f();h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)("statusFieldName","Status")}}function Jte(t,i){1&t&&(x(0,"div",6),le(1,"div",7),A())}let Dk=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this.globalVarService=o,this._userDataManagerService=s,this.tableExpenderType1=Er}ngOnInit(){if(this.tableExpenderType==Er.BusinessFlowsActivities)this.totalactivitiesCount=0,this.RunsetJson=this._userDataManagerService.getItemCache(),this.CollectBfActivitiesData(this.entity);else if(this.tableExpenderType==Er.ActivitiesActions){const e=this.entity.Seq;this.activitySeq=e,this.actions=this.entity.ActionsColl,this.routerLinkEntityPath=e+"/",this.fieldsLinksArr=[{field:"Name",link:this.routerLinkEntityPath,param:"Seq"}]}else this.tableExpenderType==Er.OutputValidation&&(this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}],this.outputValuesData=this.getOutputValues(this.entity.OutputValues))}checkIfLastRun(e){return e===this.totalactivitiesCount}CollectBfActivitiesData(e){this.hideRepoLoader=!0;let n=0;e.ActivitiesGroupsColl.forEach(s=>{this.totalactivitiesCount=this.totalactivitiesCount+s.ExecutedActivitiesGUID.length});const o=this.globalVarService.totalRecPerActivityPull;e.NumberOfActivities=0,e.ActivitiesGroupsColl.forEach(s=>{let r=0;e.ActivitiesColl=[];const a={};a.ExecutionId=this.RunsetJson.ExecutionId,a.ParentId=s.GUID,a.From=r*o,a.Take=o,a.IsLoadActions=!1,this.restServiceObj.GetActivitiesByParent(a).subscribe(l=>{r++;const c=JSON.parse(l.response),u=c.TotalRec;for(e.NumberOfActivities+=u,e.ActivitiesColl.push(...c.ResponseColl),n+=c.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1);r*o{if(m.isSuccsess){const _=JSON.parse(m.response);e.ActivitiesColl.push(..._.ResponseColl),n+=_.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1)}})}})})}orderActivites(){this.entity.ActivitiesColl=this.entity.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}InitActivitieData(){if(null!=this.entity&&null!=this.entity.ActivitiesColl){this.orderActivites();var e=this.entity;const n=e.Seq;this.activities=e.ActivitiesColl;for(let o of e.ActivitiesColl)o.NumberOfActions=o.ActionsColl.length;this.fieldsLinksArr=[{field:"Name",link:n+"/",param:"Seq"},{field:"ActivityGroupName",link:n+"/ag/ag/",param:"ActivityGroupName"}]}}getOutputValues(e){let n=[];for(let o of e){let s=o.split("_:_"),r=new $D;r.ParameterName=s[0],r.ActualValue=s[1],r.ExpectedValue=s[2],r.Status=s[3],n.push(r)}return n}getActivityGroupName(e){for(let n of this.entity.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table-expended-section"]],inputs:{tableExpenderType:"tableExpenderType",entity:"entity"},decls:5,vars:5,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[3,"activities","addExpender","tableExpenderType","fieldsLinksArr"],[3,"addExpender","tableExpenderType","actions","fieldsLinksArr","activitySeq"],[3,"cols","data","statusFieldName"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zte,2,4,"div",1),g(2,Yte,2,5,"div",1),g(3,Xte,2,3,"div",1),A(),g(4,Jte,2,0,"div",2)),2&n&&(d("ngSwitch",o.tableExpenderType),h(1),d("ngSwitchCase",o.tableExpenderType1.BusinessFlowsActivities),h(1),d("ngSwitchCase",o.tableExpenderType1.ActivitiesActions),h(1),d("ngSwitchCase",o.tableExpenderType1.OutputValidation),h(1),d("ngIf",o.hideRepoLoader))}})}return t})();const ene=["mask"],tne=["container"],nne=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ine=function(t){return{value:"visible",params:t}};function one(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",7),me("@animation.start",function(o){return G(e),q(f(3).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(3).onAnimationEnd(o))})("maskHide",function(){return G(e),q(f(3).onMaskHide())})("activeItemChange",function(o){return G(e),q(f(3).onActiveItemChange(o))}),A()}if(2&t){const e=f(3);d("@animation",He(8,ine,mt(5,nne,e.showTransitionOptions,e.hideTransitionOptions)))("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)("ngStyle",e.containerStyle)}}const sne=function(t){return{"p-galleria-mask p-component-overlay p-component-overlay-enter":!0,"p-galleria-visible":t}};function rne(t,i){if(1&t&&(x(0,"div",4,5),g(2,one,1,10,"p-galleriaContent",6),A()),2&t){const e=f(2);Ve(e.maskClass),d("ngClass",He(6,sne,e.visible)),K("role",e.fullScreen?"dialog":"region")("aria-modal",e.fullScreen?"true":void 0),h(2),d("ngIf",e.visible)}}function ane(t,i){if(1&t&&(x(0,"div",null,2),g(2,rne,3,8,"div",3),A()),2&t){const e=f();h(2),d("ngIf",e.maskVisible)}}function lne(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",8),me("activeItemChange",function(o){return G(e),q(f().onActiveItemChange(o))}),A()}if(2&t){const e=f();d("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)}}const cne=["closeButton"];function une(t,i){1&t&&le(0,"TimesIcon",11),2&t&&d("styleClass","p-galleria-close-icon")}function dne(t,i){}function pne(t,i){1&t&&g(0,dne,0,0,"ng-template")}function hne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(){return G(e),q(f(2).maskHide.emit())}),g(1,une,1,1,"TimesIcon",9),g(2,pne,1,0,null,10),A()}if(2&t){const e=f(2);K("aria-label",e.closeAriaLabel())("data-pc-section","closebutton"),h(1),d("ngIf",!e.galleria.closeIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.closeIconTemplate)}}function fne(t,i){if(1&t&&(x(0,"div",12),le(1,"p-galleriaItemSlot",13),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}function gne(t,i){if(1&t){const e=De();x(0,"p-galleriaThumbnails",14),me("onActiveIndexChange",function(o){return G(e),q(f(2).onActiveIndexChange(o))})("stopSlideShow",function(){return G(e),q(f(2).stopSlideShow())}),A()}if(2&t){const e=f(2);d("containerId",e.id)("value",e.value)("activeIndex",e.activeIndex)("templates",e.galleria.templates)("numVisible",e.numVisible)("responsiveOptions",e.galleria.responsiveOptions)("circular",e.galleria.circular)("isVertical",e.isVertical())("contentHeight",e.galleria.verticalThumbnailViewPortHeight)("showThumbnailNavigators",e.galleria.showThumbnailNavigators)("slideShowActive",e.slideShowActive)}}function mne(t,i){if(1&t&&(x(0,"div",15),le(1,"p-galleriaItemSlot",16),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}const _ne=function(t,i,e){return{"p-galleria p-component":!0,"p-galleria-fullscreen":t,"p-galleria-indicator-onitem":i,"p-galleria-item-nav-onhover":e}},Ine=function(){return{}};function Cne(t,i){if(1&t){const e=De();x(0,"div",1),g(1,hne,3,4,"button",2),g(2,fne,2,1,"div",3),x(3,"div",4)(4,"p-galleriaItem",5),me("onActiveIndexChange",function(o){return G(e),q(f().onActiveIndexChange(o))})("startSlideShow",function(){return G(e),q(f().startSlideShow())})("stopSlideShow",function(){return G(e),q(f().stopSlideShow())}),A(),g(5,gne,1,11,"p-galleriaThumbnails",6),A(),g(6,mne,2,1,"div",7),A()}if(2&t){const e=f();Ve(e.galleriaClass()),d("ngClass",Rn(22,_ne,e.galleria.fullScreen,e.galleria.showIndicatorsOnItem,e.galleria.showItemNavigatorsOnHover&&!e.galleria.fullScreen))("ngStyle",e.galleria.fullScreen?Jt(26,Ine):e.galleria.containerStyle),K("id",e.id),h(1),d("ngIf",e.galleria.fullScreen),h(1),d("ngIf",e.galleria.templates&&e.galleria.headerFacet),h(1),K("aria-live",e.galleria.autoPlay?"polite":"off"),h(1),d("id",e.id)("value",e.value)("activeIndex",e.activeIndex)("circular",e.galleria.circular)("templates",e.galleria.templates)("showIndicators",e.galleria.showIndicators)("changeItemOnIndicatorHover",e.galleria.changeItemOnIndicatorHover)("indicatorFacet",e.galleria.indicatorFacet)("captionFacet",e.galleria.captionFacet)("showItemNavigators",e.galleria.showItemNavigators)("autoPlay",e.galleria.autoPlay)("slideShowActive",e.slideShowActive),h(1),d("ngIf",e.galleria.showThumbnails),h(1),d("ngIf",e.galleria.templates&&e.galleria.footerFacet)}}function vne(t,i){1&t&&ze(0)}function bne(t,i){if(1&t&&(we(0),g(1,vne,1,0,"ng-container",1),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",e.context)}}function yne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-item-prev-icon")}function xne(t,i){}function Ane(t,i){1&t&&g(0,xne,0,0,"ng-template")}const wne=function(t){return{"p-galleria-item-prev p-galleria-item-nav p-link":!0,"p-disabled":t}};function Tne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,yne,1,1,"ChevronLeftIcon",9),g(2,Ane,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,wne,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),h(1),d("ngIf",!e.galleria.itemPreviousIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemPreviousIconTemplate)}}function Sne(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&d("styleClass","p-galleria-item-next-icon")}function Ene(t,i){}function Dne(t,i){1&t&&g(0,Ene,0,0,"ng-template")}const kne=function(t){return{"p-galleria-item-next p-galleria-item-nav p-link":!0,"p-disabled":t}};function Mne(t,i){if(1&t){const e=De();x(0,"button",12),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Sne,1,1,"ChevronRightIcon",9),g(2,Dne,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,kne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),h(1),d("ngIf",!e.galleria.itemNextIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemNextIconTemplate)}}function One(t,i){if(1&t&&(x(0,"div",13),le(1,"p-galleriaItemSlot",14),A()),2&t){const e=f();h(1),d("item",e.activeItem)("templates",e.templates)}}function Lne(t,i){1&t&&le(0,"button",20)}const Pne=function(t){return{"p-galleria-indicator":!0,"p-highlight":t}};function Fne(t,i){if(1&t){const e=De();x(0,"li",17),me("click",function(){const s=G(e).index;return q(f(2).onIndicatorClick(s))})("mouseenter",function(){const s=G(e).index;return q(f(2).onIndicatorMouseEnter(s))})("keydown",function(o){const r=G(e).index;return q(f(2).onIndicatorKeyDown(o,r))}),g(1,Lne,1,0,"button",18),le(2,"p-galleriaItemSlot",19),A()}if(2&t){const e=i.index,n=f(2);d("ngClass",He(7,Pne,n.isIndicatorItemActive(e))),K("aria-label",n.ariaPageLabel(e+1))("aria-selected",n.activeIndex===e)("aria-controls",n.id+"_item_"+e),h(1),d("ngIf",!n.indicatorFacet),h(1),d("index",e)("templates",n.templates)}}function Rne(t,i){if(1&t&&(x(0,"ul",15),g(1,Fne,3,9,"li",16),A()),2&t){const e=f();h(1),d("ngForOf",e.value)}}const Nne=["itemsContainer"];function Vne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Bne(t,i){1&t&&le(0,"ChevronUpIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Hne(t,i){if(1&t&&(we(0),g(1,Vne,1,1,"ChevronLeftIcon",10),g(2,Bne,1,1,"ChevronUpIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function zne(t,i){}function jne(t,i){1&t&&g(0,zne,0,0,"ng-template")}const Une=function(t){return{"p-galleria-thumbnail-prev p-link":!0,"p-disabled":t}};function $ne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,Hne,3,2,"ng-container",8),g(2,jne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Une,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),K("aria-label",e.ariaPrevButtonLabel()),h(1),d("ngIf",!e.galleria.previousThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.previousThumbnailIconTemplate)}}const Kne=function(t,i,e,n){return{"p-galleria-thumbnail-item":!0,"p-galleria-thumbnail-item-current":t,"p-galleria-thumbnail-item-active":i,"p-galleria-thumbnail-item-start":e,"p-galleria-thumbnail-item-end":n}};function Gne(t,i){if(1&t){const e=De();x(0,"div",12),me("keydown",function(o){const r=G(e).index;return q(f().onThumbnailKeydown(o,r))}),x(1,"div",13),me("click",function(){const s=G(e).index;return q(f().onItemClick(s))})("touchend",function(){const s=G(e).index;return q(f().onItemClick(s))})("keydown.enter",function(){const s=G(e).index;return q(f().onItemClick(s))}),le(2,"p-galleriaItemSlot",14),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",gr(10,Kne,o.activeIndex===n,o.isItemActive(n),o.firstItemAciveIndex()===n,o.lastItemActiveIndex()===n)),K("aria-selected",o.activeIndex===n)("aria-controls",o.containerId+"_item_"+n)("data-pc-section","thumbnailitem")("data-p-active",o.activeIndex===n),h(1),K("tabindex",o.activeIndex===n?0:-1)("aria-current",o.activeIndex===n?"page":void 0)("aria-label",o.ariaPageLabel(n+1)),h(1),d("item",e)("templates",o.templates)}}function qne(t,i){1&t&&le(0,"ChevronRightIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Wne(t,i){1&t&&le(0,"ChevronDownIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Qne(t,i){if(1&t&&(we(0),g(1,qne,1,1,"ChevronRightIcon",15),g(2,Wne,1,1,"ChevronDownIcon",15),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function Zne(t,i){}function Yne(t,i){1&t&&g(0,Zne,0,0,"ng-template")}const Xne=function(t){return{"p-galleria-thumbnail-next p-link":!0,"p-disabled":t}};function Jne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Qne,3,2,"ng-container",8),g(2,Yne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Xne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),K("aria-label",e.ariaNextButtonLabel()),h(1),d("ngIf",!e.galleria.nextThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.nextThumbnailIconTemplate)}}const eie=function(t){return{height:t}};let yf=(()=>{class t{document;platformId;element;cd;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}fullScreen=!1;id;value;numVisible=3;responsiveOptions;showItemNavigators=!1;showThumbnailNavigators=!0;showItemNavigatorsOnHover=!1;changeItemOnIndicatorHover=!1;circular=!1;autoPlay=!1;shouldStopAutoplayByClick=!0;transitionInterval=4e3;showThumbnails=!0;thumbnailsPosition="bottom";verticalThumbnailViewPortHeight="300px";showIndicators=!1;showIndicatorsOnItem=!1;indicatorsPosition="bottom";baseZIndex=0;maskClass;containerClass;containerStyle;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}activeIndexChange=new ge;visibleChange=new ge;mask;container;templates;_visible=!1;_activeIndex=0;headerFacet;footerFacet;indicatorFacet;captionFacet;closeIconTemplate;previousThumbnailIconTemplate;nextThumbnailIconTemplate;itemPreviousIconTemplate;itemNextIconTemplate;maskVisible=!1;constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.element=o,this.cd=s,this.config=r}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerFacet=e.template;break;case"footer":this.footerFacet=e.template;break;case"indicator":this.indicatorFacet=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"itemnexticon":this.itemNextIconTemplate=e.template;break;case"itempreviousicon":this.itemPreviousIconTemplate=e.template;break;case"previousthumbnailicon":this.previousThumbnailIconTemplate=e.template;break;case"nextthumbnailicon":this.nextThumbnailIconTemplate=e.template;break;case"caption":this.captionFacet=e.template}})}ngOnChanges(e){e.value&&e.value.currentValue?.length{j.focus(j.findSingle(this.container.nativeElement,'[data-pc-section="closebutton"]'))},25);break;case"void":j.addClass(this.mask?.nativeElement,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&this.disableModality()}enableModality(){j.blockBodyScroll(),this.cd.markForCheck(),this.mask&&Wn.set("modal",this.mask.nativeElement,this.baseZIndex||this.config.zIndex.modal)}disableModality(){j.unblockBodyScroll(),this.maskVisible=!1,this.cd.markForCheck(),this.mask&&Wn.clear(this.mask.nativeElement)}ngOnDestroy(){this.fullScreen&&j.removeClass(this.document.body,"p-overflow-hidden"),this.mask&&this.disableModality()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleria"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ene,5),je(tne,5)),2&n){let s;Se(s=Ee())&&(o.mask=s.first),Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{activeIndex:"activeIndex",fullScreen:"fullScreen",id:"id",value:"value",numVisible:"numVisible",responsiveOptions:"responsiveOptions",showItemNavigators:"showItemNavigators",showThumbnailNavigators:"showThumbnailNavigators",showItemNavigatorsOnHover:"showItemNavigatorsOnHover",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",circular:"circular",autoPlay:"autoPlay",shouldStopAutoplayByClick:"shouldStopAutoplayByClick",transitionInterval:"transitionInterval",showThumbnails:"showThumbnails",thumbnailsPosition:"thumbnailsPosition",verticalThumbnailViewPortHeight:"verticalThumbnailViewPortHeight",showIndicators:"showIndicators",showIndicatorsOnItem:"showIndicatorsOnItem",indicatorsPosition:"indicatorsPosition",baseZIndex:"baseZIndex",maskClass:"maskClass",containerClass:"containerClass",containerStyle:"containerStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",visible:"visible"},outputs:{activeIndexChange:"activeIndexChange",visibleChange:"visibleChange"},features:[Hn],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["windowed",""],["container",""],[3,"ngClass","class",4,"ngIf"],[3,"ngClass"],["mask",""],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange",4,"ngIf"],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange"],[3,"value","activeIndex","numVisible","activeItemChange"]],template:function(n,o){if(1&n&&(g(0,ane,3,1,"div",0),g(1,lne,1,3,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",o.fullScreen)("ngIfElse",s)}},dependencies:function(){return[Ct,gt,Ht,tie]},styles:["@layer primeng{.p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[en({transform:"scale(0.7)",opacity:0}),On("{{showTransitionParams}}")]),Ln("visible => void",[On("{{hideTransitionParams}}",en({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),tie=(()=>{class t{galleria;cd;differs;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}value=[];numVisible;maskHide=new ge;activeItemChange=new ge;closeButton;id;_activeIndex=0;slideShowActive=!0;interval;styleClass;differ;constructor(e,n,o,s){this.galleria=e,this.cd=n,this.differs=o,this.config=s,this.id=this.galleria.id||$t(),this.differ=this.differs.find(this.galleria).create()}ngDoCheck(){const e=this.differ.diff(this.galleria);e&&e.forEachItem.length>0&&this.cd.markForCheck()}galleriaClass(){const e=this.galleria.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.galleria.thumbnailsPosition),n=this.galleria.showIndicators&&this.getPositionClass("p-galleria-indicators",this.galleria.indicatorsPosition);return(this.galleria.containerClass?this.galleria.containerClass+" ":"")+(e?e+" ":"")+(n?n+" ":"")}startSlideShow(){ei(this.galleria.platformId)&&(this.interval=setInterval(()=>{let e=this.galleria.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1;this.onActiveIndexChange(e),this.activeIndex=e},this.galleria.transitionInterval),this.slideShowActive=!0)}stopSlideShow(){this.galleria.autoPlay&&!this.galleria.shouldStopAutoplayByClick||(this.interval&&clearInterval(this.interval),this.slideShowActive=!1)}getPositionClass(e,n){const s=["top","left","bottom","right"].find(r=>r===n);return s?`${e}-${s}`:""}isVertical(){return"left"===this.galleria.thumbnailsPosition||"right"===this.galleria.thumbnailsPosition}onActiveIndexChange(e){this.activeIndex!==e&&(this.activeIndex=e,this.activeItemChange.emit(this.activeIndex))}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Ft),V(yl),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaContent"]],viewQuery:function(n,o){if(1&n&&je(cne,5),2&n){let s;Se(s=Ee())&&(o.closeButton=s.first)}},inputs:{activeIndex:"activeIndex",value:"value",numVisible:"numVisible"},outputs:{maskHide:"maskHide",activeItemChange:"activeItemChange"},decls:1,vars:1,consts:[["pFocusTrap","",3,"ngClass","ngStyle","class",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle"],["type","button","class","p-galleria-close p-link","pRipple","",3,"click",4,"ngIf"],["class","p-galleria-header",4,"ngIf"],[1,"p-galleria-content"],[3,"id","value","activeIndex","circular","templates","showIndicators","changeItemOnIndicatorHover","indicatorFacet","captionFacet","showItemNavigators","autoPlay","slideShowActive","onActiveIndexChange","startSlideShow","stopSlideShow"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow",4,"ngIf"],["class","p-galleria-footer",4,"ngIf"],["type","button","pRipple","",1,"p-galleria-close","p-link",3,"click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-galleria-header"],["type","header",3,"templates"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow"],[1,"p-galleria-footer"],["type","footer",3,"templates"]],template:function(n,o){1&n&&g(0,Cne,7,27,"div",0),2&n&&d("ngIf",o.value&&o.value.length>0)},dependencies:function(){return[Ct,gt,on,Ht,oo,mn,Tk,TC,nie,iie]},encapsulation:2,changeDetection:0})}return t})(),TC=(()=>{class t{templates;index;get item(){return this._item}set item(e){this._item=e,this.templates&&this.templates.forEach(n=>{if(n.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=n.template}})}type;contentTemplate;context;_item;ngAfterContentInit(){this.templates?.forEach(e=>{if(e.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=e.template;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=e.template;break;default:this.context={},this.contentTemplate=e.template}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItemSlot"]],inputs:{templates:"templates",index:"index",item:"item",type:"type"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&g(0,bne,2,2,"ng-container",0),2&n&&d("ngIf",o.contentTemplate)},dependencies:[gt,on],encapsulation:2,changeDetection:0})}return t})(),nie=(()=>{class t{galleria;id;circular=!1;value;showItemNavigators=!1;showIndicators=!0;slideShowActive=!0;changeItemOnIndicatorHover=!0;autoPlay=!1;templates;indicatorFacet;captionFacet;startSlideShow=new ge;stopSlideShow=new ge;onActiveIndexChange=new ge;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}get activeItem(){return this.value&&this.value[this._activeIndex]}_activeIndex=0;constructor(e){this.galleria=e}ngOnChanges({autoPlay:e}){e?.currentValue&&this.startSlideShow.emit(),e&&!1===e.currentValue&&this.stopTheSlideShow()}next(){this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1)}prev(){this.onActiveIndexChange.emit(this.circular&&0===this.activeIndex?this.value.length-1:0!==this.activeIndex?this.activeIndex-1:0)}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}navForward(e){this.stopTheSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()}navBackward(e){this.stopTheSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()}onIndicatorClick(e){this.stopTheSlideShow(),this.onActiveIndexChange.emit(e)}onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopTheSlideShow(),this.onActiveIndexChange.emit(e))}onIndicatorKeyDown(e,n){switch(e.code){case"Enter":case"Space":this.stopTheSlideShow(),this.onActiveIndexChange.emit(n),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1}isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex}isIndicatorItemActive(e){return this.activeIndex===e}ariaSlideLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slide:void 0}ariaSlideNumber(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItem"]],inputs:{id:"id",circular:"circular",value:"value",showItemNavigators:"showItemNavigators",showIndicators:"showIndicators",slideShowActive:"slideShowActive",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",autoPlay:"autoPlay",templates:"templates",indicatorFacet:"indicatorFacet",captionFacet:"captionFacet",activeIndex:"activeIndex"},outputs:{startSlideShow:"startSlideShow",stopSlideShow:"stopSlideShow",onActiveIndexChange:"onActiveIndexChange"},features:[Hn],decls:8,vars:11,consts:[[1,"p-galleria-item-wrapper"],[1,"p-galleria-item-container"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],["role","group",3,"id"],["type","item",1,"p-galleria-item",3,"item","templates"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click",4,"ngIf"],["class","p-galleria-caption",4,"ngIf"],["class","p-galleria-indicators p-reset",4,"ngIf"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click"],[1,"p-galleria-caption"],["type","caption",3,"item","templates"],[1,"p-galleria-indicators","p-reset"],["tabindex","0",3,"ngClass","click","mouseenter","keydown",4,"ngFor","ngForOf"],["tabindex","0",3,"ngClass","click","mouseenter","keydown"],["type","button","tabIndex","-1","class","p-link",4,"ngIf"],["type","indicator",3,"index","templates"],["type","button","tabIndex","-1",1,"p-link"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,Tne,3,6,"button",2),x(3,"div",3),le(4,"p-galleriaItemSlot",4),A(),g(5,Mne,3,6,"button",5),g(6,One,2,2,"div",6),A(),g(7,Rne,2,1,"ul",7),A()),2&n&&(h(2),d("ngIf",o.showItemNavigators),h(1),fo("width","100%"),d("id",o.id+"_item_"+o.activeIndex),K("aria-label",o.ariaSlideNumber(o.activeIndex+1))("aria-roledescription",o.ariaSlideLabel()),h(1),d("item",o.activeItem)("templates",o.templates),h(1),d("ngIf",o.showItemNavigators),h(1),d("ngIf",o.captionFacet),h(1),d("ngIf",o.showIndicators))},dependencies:function(){return[Ct,Jn,gt,on,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),iie=(()=>{class t{galleria;document;platformId;renderer;cd;containerId;value;isVertical=!1;slideShowActive=!1;circular=!1;responsiveOptions;contentHeight="300px";showThumbnailNavigators=!0;templates;onActiveIndexChange=new ge;stopSlideShow=new ge;itemsContainer;get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e,this._oldNumVisible=this.d_numVisible,this.d_numVisible=e}get activeIndex(){return this._activeIndex}set activeIndex(e){this._oldactiveIndex=this._activeIndex,this._activeIndex=e}index;startPos=null;thumbnailsStyle=null;sortedResponsiveOptions=null;totalShiftedItems=0;page=0;documentResizeListener;_numVisible=0;d_numVisible=0;_oldNumVisible=0;_activeIndex=0;_oldactiveIndex=0;constructor(e,n,o,s,r){this.galleria=e,this.document=n,this.platformId=o,this.renderer=s,this.cd=r}ngOnInit(){this.createStyle(),this.responsiveOptions&&this.bindDocumentListeners()}ngAfterContentChecked(){let e=this.totalShiftedItems;(this._oldNumVisible!==this.d_numVisible||this._oldactiveIndex!==this._activeIndex)&&this.itemsContainer&&(e=this._activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex(){const s=n.breakpoint,r=o.breakpoint;let a=null;return a=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof s&&"string"==typeof r?s.localeCompare(r,void 0,{numeric:!0}):sr?1:0,-1*a});for(let n=0;n=e&&(n=s)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible,this.cd.markForCheck())}}getTabIndex(e){return this.isItemActive(e)?0:null}navForward(e){this.stopTheSlideShow();let n=this._activeIndex+1;n+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItemsthis.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1),this.onActiveIndexChange.emit(this.circular&&0===this._activeIndex?this.value.length-1:n),e.cancelable&&e.preventDefault()}onItemClick(e){this.stopTheSlideShow();let n=e;if(n!==this._activeIndex){const o=n+this.totalShiftedItems;let s=0;n0&&-1*this.totalShiftedItems!=0&&this.step(s)):(s=this.getMedianItemIndex()-o,s<0&&-1*this.totalShiftedItems!0===j.getAttribute(r,"data-p-active")),o=j.findSingle(this.itemsContainer.nativeElement,'[tabindex="0"]'),s=e.findIndex(r=>r===o.parentElement);e[s].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"}findFocusedIndicatorIndex(){const e=[...j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]')],n=j.findSingle(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(o=>o===n.parentElement)}changedFocusedIndicator(e,n){const o=j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]');o[e].children[0].tabIndex="-1",o[n].children[0].tabIndex="0",o[n].children[0].focus()}step(e){let n=this.totalShiftedItems+e;e<0&&-1*n+this.d_numVisible>this.value.length-1?n=this.d_numVisible-this.value.length:e>0&&n>0&&(n=0),this.circular&&(e<0&&this.value.length-1===this._activeIndex?n=0:e>0&&0===this._activeIndex&&(n=this.d_numVisible-this.value.length)),this.itemsContainer&&(j.removeClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${n*(100/this.d_numVisible)}%, 0)`:`translate3d(${n*(100/this.d_numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=n}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}changePageOnTouch(e,n){n<0?this.navForward(e):this.navBackward(e)}getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0}getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1}onTransitionEnd(){this.itemsContainer&&this.itemsContainer.nativeElement&&(j.addClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="")}onTouchEnd(e){let n=e.changedTouches[0];this.changePageOnTouch(e,this.isVertical?n.pageY-this.startPos.y:n.pageX-this.startPos.x)}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchStart(e){let n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}}isNavBackwardDisabled(){return!this.circular&&0===this._activeIndex||this.value.length<=this.d_numVisible}isNavForwardDisabled(){return!this.circular&&this._activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}firstItemAciveIndex(){return-1*this.totalShiftedItems}lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1}isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e}bindDocumentListeners(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView||"window","resize",()=>{this.calculatePosition()}))}unbindDocumentListeners(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle)}ariaPrevButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.prevPageLabel:void 0}ariaNextButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.nextPageLabel:void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Wt),V($n),V(hn),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaThumbnails"]],viewQuery:function(n,o){if(1&n&&je(Nne,5),2&n){let s;Se(s=Ee())&&(o.itemsContainer=s.first)}},inputs:{containerId:"containerId",value:"value",isVertical:"isVertical",slideShowActive:"slideShowActive",circular:"circular",responsiveOptions:"responsiveOptions",contentHeight:"contentHeight",showThumbnailNavigators:"showThumbnailNavigators",templates:"templates",numVisible:"numVisible",activeIndex:"activeIndex"},outputs:{onActiveIndexChange:"onActiveIndexChange",stopSlideShow:"stopSlideShow"},decls:8,vars:6,consts:[[1,"p-galleria-thumbnail-wrapper"],[1,"p-galleria-thumbnail-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-galleria-thumbnail-items-container",3,"ngStyle"],["role","tablist",1,"p-galleria-thumbnail-items",3,"transitionend","touchstart","touchmove"],["itemsContainer",""],[3,"ngClass","keydown",4,"ngFor","ngForOf"],["type","button","pRipple","",3,"ngClass","disabled","click"],[4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"ngClass","keydown"],[1,"p-galleria-thumbnail-item-content",3,"click","touchend","keydown.enter"],["type","thumbnail",3,"item","templates"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,$ne,3,7,"button",2),x(3,"div",3)(4,"div",4,5),me("transitionend",function(){return o.onTransitionEnd()})("touchstart",function(r){return o.onTouchStart(r)})("touchmove",function(r){return o.onTouchMove(r)}),g(6,Gne,3,15,"div",6),A()(),g(7,Jne,3,7,"button",2),A()()),2&n&&(h(2),d("ngIf",o.showThumbnailNavigators),h(1),d("ngStyle",He(4,eie,o.isVertical?o.contentHeight:"")),h(3),d("ngForOf",o.value),h(1),d("ngIf",o.showThumbnailNavigators))},dependencies:function(){return[Ct,Jn,gt,on,Ht,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),kk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,mn,Qi,Mr,AC,wC,Sk,Xe,Qe]})}return t})();const oie=["galleria"],sie=function(t){return{width:t}};function rie(t,i){if(1&t&&le(0,"img",7),2&t){const e=i.$implicit,n=f(2);d("src",e.itemImageSrc,Ls)("ngStyle",He(2,sie,n.fullscreen?"":"100%"))}}function aie(t,i){if(1&t&&(x(0,"div"),le(1,"img",8),A()),2&t){const e=i.$implicit;y_("grid grid-nogutter justify-content-center ",e.title,""),h(1),d("src",e.thumbnailImageSrc,Ls)}}function lie(t,i){if(1&t&&(x(0,"span",13)(1,"span"),Le(2),A(),x(3,"span"),Le(4),A(),le(5,"span"),A()),2&t){const e=f(4);h(2),Fp("",e.activeIndex+1,"/",e.images.length,""),h(2),dt(e.images[e.activeIndex].alt),h(1),y_("title ",e.getStatusWithIcon(e.images[e.activeIndex].title),"")}}function cie(t,i){if(1&t){const e=De();x(0,"div",10),g(1,lie,6,6,"span",11),x(2,"button",12),me("click",function(){return G(e),q(f(3).toggleFullScreen())}),A()()}if(2&t){const e=f(3);h(1),d("ngIf",e.images),h(1),Ve(e.fullScreenIcon())}}function uie(t,i){1&t&&g(0,cie,3,4,"ng-template",9)}const die=function(t,i){return{footerMargin:t,smallThumbnail:i}},pie=function(){return{"max-width":"100%"}};function hie(t,i){if(1&t){const e=De();x(0,"div",1)(1,"p-galleria",2,3),me("valueChange",function(o){return G(e),q(f().images=o)})("activeIndexChange",function(o){return G(e),q(f().activeIndex=o)}),g(3,rie,1,4,"ng-template",4),g(4,aie,2,4,"ng-template",5),g(5,uie,1,0,null,6),A()()}if(2&t){const e=f();d("ngClass",mt(14,die,e.showFooter,!e.showFooter)),h(1),d("value",e.images)("activeIndex",e.activeIndex)("numVisible",10)("showThumbnails",e.showThumbnails)("showItemNavigators",!1)("showItemNavigatorsOnHover",!1)("circular",!0)("autoPlay",!1)("transitionInterval",3e3)("containerStyle",Jt(17,pie))("containerClass",e.galleriaClass())("thumbnailsPosition",e.top),h(4),d("ngIf",e.showFooter)}}let SC=(()=>{class t{constructor(e,n,o,s,r,a){this.globalVarService=e,this._userDataManagerService=n,this.route=o,this.calculatedDataService=s,this.communicatorService=r,this.cd=a,this.isScreenshotVisibleEvent=new ge,this.showFooter=!0,this.autoplaychecked=!1,this.fullscreen=!1,this.activeIndex=0,this.position="left",this.responsiveOptions=[{breakpoint:"1024px",numVisible:5},{breakpoint:"768px",numVisible:3},{breakpoint:"560px",numVisible:1}]}ngOnInit(){this.showThumbnails=this._thumbnails,this.route.params.subscribe(e=>{this.paramChanged(),this.bindDocumentListeners()}),this.communicatorService.onBfActivitiesDataChange.subscribe(e=>{"Last Loading Data"===e&&(this.paramChanged(),this.bindDocumentListeners())})}handleChange(e){this.bindDocumentListeners()}setThumbnails(){}paramChanged(){"action"==this.EntityType?this.setScurrentAction():("businessflow"==this.EntityType||"activity"==this.EntityType)&&this.setAllActions(),this.images=[];for(const e of this.actions)for(const n of e.ScreenShots)this.images.push({itemImageSrc:this.globalVarService.imagePath+n,thumbnailImageSrc:this.globalVarService.imagePath+n,alt:e.Path,title:e.RunStatus.toString()});this.isScreenshotVisibleEvent.emit(null!=this.images&&this.images.length>0)}getStatusWithIcon(e){return this.calculatedDataService.getStatusClass(e)}onThumbnailButtonClick(){this.showThumbnails=!this.showThumbnails}toggleFullScreen(){this.fullscreen?this.closePreviewFullScreen():this.openPreviewFullScreen(),this.cd.detach()}openPreviewFullScreen(){let e=this.galleria?.element.nativeElement.querySelector(".p-galleria");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}onFullScreenChange(){this.fullscreen=!this.fullscreen,this.cd.detectChanges(),this.cd.reattach()}closePreviewFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}bindDocumentListeners(){this.onFullScreenListener=this.onFullScreenChange.bind(this),document.addEventListener("fullscreenchange",this.onFullScreenListener),document.addEventListener("mozfullscreenchange",this.onFullScreenListener),document.addEventListener("webkitfullscreenchange",this.onFullScreenListener),document.addEventListener("msfullscreenchange",this.onFullScreenListener)}unbindDocumentListeners(){document.removeEventListener("fullscreenchange",this.onFullScreenListener),document.removeEventListener("mozfullscreenchange",this.onFullScreenListener),document.removeEventListener("webkitfullscreenchange",this.onFullScreenListener),document.removeEventListener("msfullscreenchange",this.onFullScreenListener),this.onFullScreenListener=null}ngOnDestroy(){this.unbindDocumentListeners()}galleriaClass(){return"custom-galleria "+(this.fullscreen?"fullscreen":"")}fullScreenIcon(){return"pi "+(this.fullscreen?"fullscreen-button pi-window-minimize":"fullscreen-button pi-window-maximize")}setAllActions(){const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");if(this.actions=[],e&&n&&o){const r=e.RunnersColl.filter(a=>a.Seq===n)[0].BusinessFlowsColl.filter(a=>a.Seq===o)[0];for(const a of r.ActivitiesColl)for(const l of a.ActionsColl)l.Path=a.ActivityGroupName+" / "+a.Name,this.actions.push(l)}}setScurrentAction(){this.actions=[];const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");var s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");if(null!=r&&0==r&&(r=this.Action_seq),null!=s&&0==s&&(s=this.Activity_seq),e&&n&&o&&s&&r){const c=e.RunnersColl.filter(u=>u.Seq===n)[0].BusinessFlowsColl.filter(u=>u.Seq===o)[0].ActivitiesColl.filter(u=>u.Seq===s)[0];this.actions.push(c.ActionsColl.filter(u=>u.Seq===r)[0])}}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V(Co),V(Di),V(qs),V(Ws),V(Ft))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["screenshot-carousel"]],viewQuery:function(n,o){if(1&n&&je(oie,5),2&n){let s;Se(s=Ee())&&(o.galleria=s.first)}},inputs:{_height:"_height",_thumbnails:"_thumbnails",autoplay:"autoplay",EntityType:"EntityType",Action_seq:"Action_seq",Activity_seq:"Activity_seq",showFooter:"showFooter"},outputs:{isScreenshotVisibleEvent:"isScreenshotVisibleEvent"},decls:1,vars:1,consts:[["class","screenshot-carousel",3,"ngClass",4,"ngIf"],[1,"screenshot-carousel",3,"ngClass"],[3,"value","activeIndex","numVisible","showThumbnails","showItemNavigators","showItemNavigatorsOnHover","circular","autoPlay","transitionInterval","containerStyle","containerClass","thumbnailsPosition","valueChange","activeIndexChange"],["galleria",""],["pTemplate","item"],["pTemplate","thumbnail"],[4,"ngIf"],[3,"src","ngStyle"],[2,"width","100px",3,"src"],["pTemplate","footer"],[1,"custom-galleria-footer"],["class","title-container",4,"ngIf"],["type","button",3,"click"],[1,"title-container"]],template:function(n,o){1&n&&g(0,hie,6,18,"div",0),2&n&&d("ngIf",null!=o.images&&o.images.length>0)},dependencies:[Ct,gt,Ht,sn,yf],styles:[".screenshot-carousel .passed-color{color:#109717;text-align:center} .screenshot-carousel .failed-color{color:#dc3812;text-align:center} .screenshot-carousel .blocked-color{color:#a21025;text-align:center} .screenshot-carousel .stopped-color{color:#ed5588;text-align:center} .screenshot-carousel .pending-color{color:#f90;text-align:center} .screenshot-carousel .skipped-color{color:#737373;text-align:center} .screenshot-carousel .inprogress-color{color:#eab330;text-align:center} .screenshot-carousel .canceled-color{color:#ca0088;text-align:center} p-galleriaitemslot .Passed{border-top:5px solid #109717!important} p-galleriaitemslot .Failed{border-top:5px solid #DC3812!important} p-galleriaitemslot .Blocked{border-top:5px solid #A21025!important} p-galleriaitemslot .Stopped{border-top:5px solid #ED5588!important} p-galleriaitemslot .Pending{border-top:5px solid #FF9900!important} p-galleriaitemslot .Skipped{border-top:5px solid #737373!important} p-galleriaitemslot .InProgress{border-top:5px solid #EAB330!important} p-galleriaitemslot .Canceled{border-top:5px solid #CA0088!important} .footerMargin .p-galleria-item-wrapper{margin-bottom:90px!important} .smallThumbnail .p-galleria-item-wrapper{width:100px!important}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen{display:flex;flex-direction:column}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen .p-galleria-content{flex-grow:1;justify-content:center}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-content{position:relative}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-wrapper{position:absolute;bottom:0;left:0;width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-items-container{width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer{display:flex;align-items:center;background-color:#fff;color:#000;border:1px solid;padding:5px}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button{background-color:transparent;color:#000;border:0 none;border-radius:0;margin:.2rem 0}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button.fullscreen-button{margin-left:auto}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button:hover{background-color:#ffffff1a}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span{font-size:1.2rem;padding-left:.829rem}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span.title{font-weight:700;font-size:1.5rem}"]})}return t})();function fie(t,i){1&t&&le(0,"div")}function gie(t,i){1&t&&le(0,"th",9)}function mie(t,i){if(1&t&&(x(0,"th"),Le(1),A()),2&t){const e=i.$implicit;h(1),Pt(" ",e.header," ")}}function _ie(t,i){if(1&t&&(x(0,"tr"),g(1,fie,1,0,"div",6),g(2,gie,1,0,"ng-template",null,7,In),g(4,mie,2,1,"th",8),A()),2&t){const e=i.$implicit,n=Bt(3),o=f();h(1),d("ngIf",o.addExpender)("ngIfThen",n),h(3),d("ngForOf",e)}}function Iie(t,i){1&t&&le(0,"div")}function Cie(t,i){if(1&t&&(x(0,"td")(1,"a",12),le(2,"i",13),A()()),2&t){const e=f(),n=e.$implicit,o=e.expanded;h(1),d("pRowToggler",n),h(1),d("ngClass",o?"pi pi-chevron-down":"pi pi-chevron-right")}}const vie=function(t){return{Guid:t}};function bie(t,i){if(1&t&&(x(0,"div")(1,"b")(2,"a",21),Le(3),A()()()),2&t){const e=f().$implicit,n=f(2).$implicit,o=f();h(2),__("routerLink","",e.link,"",o.getParamsURL(n,e),""),d("queryParams",He(4,vie,n.GUID)),h(1),Pt(" ",n[e.field]," ")}}function yie(t,i){if(1&t&&(x(0,"div"),g(1,bie,4,6,"div",16),A()),2&t){const e=i.$implicit;h(1),d("ngSwitchCase",e.field)}}function xie(t,i){if(1&t&&(x(0,"div"),Le(1),Il(2,"date"),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",Cl(2,1,n[e.field],"short")," ")}}function Aie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.msToTime(n[e.field])," ")}}function wie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}const Tie=function(t,i,e,n,o,s,r,a,l){return{"passed-color":t,"failed-color":i,"blocked-color":e,"stopped-color":n,"pending-color":o,"skipped-color":s,"inprogress-color":r,"canceled-color":a,"other-color":l}};function Sie(t,i){if(1&t&&(x(0,"div")(1,"div",13),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(1),d("ngClass",zp(2,Tie,["Passed"===e[n.statusFieldName],"Failed"===e[n.statusFieldName],"Blocked"===e[n.statusFieldName],"Stopped"===e[n.statusFieldName],"Pending"===e[n.statusFieldName],"Skipped"===e[n.statusFieldName],"In Progress"===e[n.statusFieldName],"Canceled"===e[n.statusFieldName],"Other"===e[n.statusFieldName]])),h(1),Pt(" ",e[n.statusFieldName]," ")}}function Eie(t,i){if(1&t&&(x(0,"div"),g(1,Sie,3,12,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.statusFieldName)}}function Die(t,i){if(1&t&&(x(0,"div")(1,"div",23),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(2),Pt(" ",e[n.errorFieldName]," ")}}function kie(t,i){if(1&t&&(x(0,"div"),g(1,Die,3,1,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.errorFieldName)}}function Mie(t,i){if(1&t&&(x(0,"div")(1,"div",24),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}function Oie(t,i){if(1&t&&(x(0,"div"),g(1,Mie,3,1,"div",16),A()),2&t){const e=f().$implicit,n=f(2);h(1),d("ngSwitchCase",n.boldAndCenterFields.includes(e.field)?e.field:"")}}function Lie(t,i){if(1&t){const e=De();x(0,"div")(1,"screenshot-carousel",25),me("isScreenshotVisibleEvent",function(o){return G(e),q(f(4).setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f(3).$implicit,n=f();h(1),d("showFooter",!1)("Activity_seq",n.activitySeq)("Action_seq",e.Seq)("EntityType",n.EntityType)("_height",100)("_thumbnails",!1)}}function Pie(t,i){1&t&&(x(0,"div"),g(1,Lie,2,6,"div",16),A()),2&t&&(h(1),d("ngSwitchCase","Screenshots"))}function Fie(t,i){if(1&t&&(x(0,"div",24),Le(1),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"% ")}}function Rie(t,i){if(1&t&&(x(0,"div")(1,"pre",29),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.getXML(n[e.field]),"\n ")}}function Nie(t,i){if(1&t&&(x(0,"div",30),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field]," ")}}function Vie(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"")}}function Bie(t,i){if(1&t&&(x(0,"div"),g(1,Rie,3,1,"div",26),g(2,Nie,2,1,"div",27),g(3,Vie,2,1,"ng-template",null,28,In),A()),2&t){const e=Bt(4),n=f().$implicit,o=f().$implicit,s=f();h(1),d("ngIf",o[n.field].includes("{class t{constructor(e,n,o){this.communicatorService=e,this.globalVarService=n,this._userDataManagerService=o,this.addExpender=!1,this.ShouldImagePop=!1,this.imagePopSrc="",this.imagePopName="",this.showScreenshotPanel=!0,this.EntityType="action"}ngOnInit(){}printf(e){console.log(e)}msToTime(e){return this._userDataManagerService.msToTime(e)}getParamsURL(e,n){var o="";if(!n.params)return e[n.param];for(let s of n.params)o=o+e[s]+"/";return o}onRouterCLick(e){console.log(e)}showImage(e){this.ShouldImagePop=!0,this.imagePopSrc=this.globalVarService.imagePath+e,this.imagePopName=e}getXML(e){let n;return n="\n"+e,n}isJson(e){try{JSON.parse(e)}catch{return console.log("not json"),!1}return console.log("is json"),!0}getJson(e){try{return JSON.parse(e)}catch{console.log("not json")}}trackByFunction(e,n){return n?n.field:null}setScreenshotVisiblity(e){this.showScreenshotPanel=e}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table"]],inputs:{cols:"cols",data:"data",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",errorFieldName:"errorFieldName",statusFieldName:"statusFieldName",boldAndCenterFields:"boldAndCenterFields",activitySeq:"activitySeq"},decls:6,vars:9,consts:[["dataKey","Seq",3,"columns","value"],["pTemplate","header"],["pTemplate","body"],["pTemplate","rowexpansion"],[3,"header","visible","responsive","visibleChange"],[2,"height","40vw",3,"src"],[4,"ngIf","ngIfThen"],["addExpenderBlock",""],[4,"ngFor","ngForOf"],[2,"width","3em"],["addExpenderBlock1",""],["class","row",3,"ngSwitch",4,"ngFor","ngForOf"],["href","#",3,"pRowToggler"],[3,"ngClass"],[1,"row",3,"ngSwitch"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngIf"],["class","bold-and-center",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["data","rowData",3,"routerLink","queryParams"],[1,"numbers-style"],[1,"failed-color"],[1,"bold-and-center"],[3,"showFooter","Activity_seq","Action_seq","EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],[4,"ngIf","ngIfElse"],["style"," display: inline-block;width: 180px;white-space: nowrap;overflow: hidden !important;text-overflow: ellipsis;",4,"ngIf","ngIfElse"],["elseBlock1",""],["lang","xml"],[2,"display","inline-block","width","180px","white-space","nowrap","overflow","hidden !important","text-overflow","ellipsis"],[1,"p-fluid",2,"font-size","16px","padding","20px"],[3,"tableExpenderType","entity"]],template:function(n,o){1&n&&(x(0,"p-table",0),g(1,_ie,5,3,"ng-template",1),g(2,Gie,5,3,"ng-template",2),g(3,qie,4,3,"ng-template",3),A(),x(4,"p-dialog",4),me("visibleChange",function(r){return o.ShouldImagePop=r}),le(5,"img",5),A()),2&n&&(d("columns",o.cols)("value",o.data),h(4),yn(Jt(8,Wie)),d("header",o.imagePopName)("visible",o.ShouldImagePop)("responsive",!0),h(1),d("src",o.imagePopSrc,Ls))},dependencies:[Ct,Jn,gt,wl,ch,x0,sn,xC,ate,pa,Qte,Dk,SC,Hs],styles:[".bold-and-center[_ngcontent-%COMP%]{font-weight:700;text-align:center}.alignCenter[_ngcontent-%COMP%]{text-align:center}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}.row[_ngcontent-%COMP%]{text-align:center}.item1[_ngcontent-%COMP%]{width:90%;text-align:left;margin-bottom:10px}"],data:{animation:[Oo("rowExpansionTrigger",[Us("void",en({transform:"translateX(-10%)",opacity:0})),Us("active",en({transform:"translateX(0)",opacity:1})),Ln("* <=> *",On("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}})}return t})();const Qie=["exeStatistics"];function Zie(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Run set Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),Pt(" ",e.RunsetJson.Name,"")}}function Yie(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runsetDetails)}}function Xie(t,i){if(1&t){const e=De();x(0,"p-accordionTab",13)(1,"app-execution-statistic",14,15),me("isStatisticsVisibleEvent",function(o){return G(e),q(f().setStatisticsVisiblity(o))}),A()()}2&t&&d("selected",!0)}const Jie=function(){return["BusinessFlowSeq"]};function eoe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.runnersCols)("data",e.runnersData)("fieldsLinksArr",e.fieldsLinksArr)("statusFieldName","BusinessFlowExecutionStaus")("boldAndCenterFields",Jt(6,Jie))}}function toe(t,i){1&t&&(x(0,"div",18),le(1,"div",19),A())}function noe(t,i){if(1&t&&(x(0,"p"),Le(1),A()),2&t){const e=f();h(1),dt(e.ErrorMessage)}}const ioe=function(t,i){return{hideDiv:t,showDiv:i}};let ooe=(()=>{class t{constructor(e,n,o,s,r,a,l,c,u,p,m,_){this.executionDataService=e,this.datePipe=n,this.communicatorService=o,this.reportHelperService=s,this.activeRoute=r,this.router=a,this.fileLoader=l,this.globalVarService=u,this.restServiceObj=p,this.userDataManagerService=m,this.calculatedDataService=_,this.runnersData=[],this.ErrorMessage="",this.showStatisticsPanel=!0,this.globalVarService.baseAppUrl=c.baseUrl,this.globalVarService.totalRecPerActivityPull=c.totalRecPerActivityPull,this.globalVarService.topBarTitle=c.topBarTitle}ngAfterViewInit(){null!=this.executionStatisticComponent&&null!=this.RunsetJson&&this.executionStatisticComponent.initComponents()}ngOnInit(){this.communicatorService.onRefreshChangedMessage.subscribe(e=>{"RefreshData"===e&&this.showRunset(!0)}),this.reportHelperService.selectedGuid="",this.reportHelperService.selectedRouteLink="",this.activeRoute.queryParams.subscribe(e=>{const n=e.Routed_Guid;console.log("found selected guid "+n),this.reportHelperService.selectedGuid=typeof n<"u"&&n?n:""}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"BusinessFlowName",link:"",params:["Seq","BusinessFlowSeq"]}],null==this.RunsetJson&&this.showRunset(),this.runnersCols=[{field:"Seq",header:"Runner Number"},{field:"Name",header:"Ginger Runner Name"},{field:"Environment",header:"Ginger Runner Environment Name"},{field:"BusinessFlowSeq",header:"Business Flow Execution Sequence"},{field:"BusinessFlowName",header:"Business Flow Name"},{field:"BusinessFlowDescription",header:"Business Flow Description"},{field:"BusinessFlowRunDescription",header:"Business Flow Run Description"},{field:"BusinessFlowExecutionStaus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Passed Rate"}]}showRunset(e=!1){this.hideRepoLoader=!0,this.showReport=!1;var n=this.activeRoute.snapshot.queryParamMap.get("ExecutionId");const o=this.activeRoute.snapshot.paramMap.get("BusinessFlowId"),s=this.activeRoute.snapshot.paramMap.get("ExecutionId");null!=s&&(n=s),null==n?n=localStorage.getItem("executionId"):localStorage.setItem("executionId",n),console.log("run set query guid is :"+n),n?(this.globalVarService.imagePath="images/",this.globalVarService.isServerLoading=!0,this.globalVarService.executionServerId=n,this.RunsetJson=this.userDataManagerService.getItemCache(),null==this.RunsetJson||this.RunsetJson.GUID!=n?this.restServiceObj.GetAccountHtmlReportBriefCase(n).subscribe(r=>{if(r.isSuccsess){if(this.showReport=!0,console.log(r.response),this.RunsetJson=JSON.parse(r.response),this.RunsetJson.Name=this.userDataManagerService.replaceUnicodeChar(this.RunsetJson.Name),this.RunsetJson.RunnersColl.length<=0)return void console.log("error on loading report");this.userDataManagerService.setItemCache(this.RunsetJson),this.RunsetJson.RunStatus==Lt.InProgress&&(this.userDataManagerService.setItem("LoadActivityStat","true"),this.userDataManagerService.setItem("LoadActionStat","true")),this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController(),null!=o&&this.RunsetJson.RunnersColl.forEach(a=>{a.BusinessFlowsColl.forEach(l=>{l.InstanceGUID==o&&this.router.navigateByUrl(a.Seq+"/"+l.Seq)})}),e&&null!=this.RunsetJson&&this.router.navigateByUrl("/?ExecutionId="+this.RunsetJson.ExecutionId)}else null==r.response||"NotFound"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="No record found"):"0"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Account Report Service is down"):"DatabaseDown"==r.response&&(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Postgres Database is down")}):(this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController())):(this.userDataManagerService.setItem("timeFormat","seconds"),this.globalVarService.imagePath="assets/screenshots/",this.executionDataService.GetExecutionData().then(r=>{this.hideRepoLoader=!1,null!=r?(this.showReport=!0,this.RunsetJson={...r},this.initController()):this.showReport=!1}))}GetFirstActivitesReponse(e){return this.restServiceObj.GetActivitiesByParentAwait(e)}downloadImages(e){this.restServiceObj.DownloadRunsetImages(e).subscribe(n=>{console.log(n.isSuccsess)})}initController(e=null){const n=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,e);this.communicatorService.newMessage(n),this.populateRunnerDetails(),null!=this.executionStatisticComponent&&this.executionStatisticComponent.initComponents(),this.runsetDetails=[{field:"Name",value:this.RunsetJson.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.RunsetJson.StartTimeStamp,"short")},{field:"RunSet Description",value:this.RunsetJson.Description},{field:"Execution End Time",value:this.datePipe.transform(this.RunsetJson.EndTimeStamp,"short")},{field:"RunSet Run Description",value:this.RunsetJson.RunDescription},{field:"Executed by User",value:this.RunsetJson.ExecutedbyUser},{field:"Execution Duration",value:this.userDataManagerService.msToTime(this.RunsetJson.Elapsed)},{field:"Execution Status",value:this.RunsetJson.RunStatus},{field:"Executed on Machine",value:this.RunsetJson.MachineName},{field:"Run Set Execution Rate",value:this.RunsetJson.ExecutionRate+"%"},{field:"Run Set Execution Pass Rate",value:this.RunsetJson.PassRate+"%"},{field:"Environment Name",value:this.RunsetJson.Environment},{field:"Ginger Version",value:this.RunsetJson.GingerVersion}],""!==this.reportHelperService.selectedRouteLink&&(console.log("route to guid :"+this.reportHelperService.selectedRouteLink),setTimeout(()=>{this.router.navigateByUrl(this.reportHelperService.selectedRouteLink)},5e3))}setStatisticsVisiblity(e){this.showStatisticsPanel=e}populateRunnerDetails(){this.runnersData=[];for(const e of this.RunsetJson.RunnersColl){let n=new MK;for(const o of e.BusinessFlowsColl)n={Name:e.Name,Environment:e.Environment,Seq:e.Seq,GUID:e.GUID,BusinessFlowSeq:o.Seq,BusinessFlowName:o.Name,BusinessFlowDescription:o.Description,PassRate:o.PassRate,BusinessFlowExecutionStaus:o.RunStatus,BusinessFlowRunDescription:o.RunDescription,ExecutionRate:o.ExecutionRate},this.runnersData.push(n)}}getStatus(e=!0){if(null!=this.RunsetJson&&null!=this.RunsetJson.RunStatus)return this.calculatedDataService.getStatusClass(this.RunsetJson.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(HK),V(Hs),V(Ws),V(WD),V(Di),V(io),V(qD),V("environmentObj"),V(ms),V(ha),V(Co),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["runset-report"]],viewQuery:function(n,o){if(1&n&&je(Qie,5),2&n){let s;Se(s=Ee())&&(o.executionStatisticComponent=s.first)}},decls:8,vars:11,consts:[[3,"ngClass"],["class","entityName",4,"ngIf"],[3,"multiple"],["header","EXECUTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle"],[2,"font-weight","bold"],["header","EXECUTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected"],[3,"isStatisticsVisibleEvent"],["exeStatistics",""],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data","fieldsLinksArr","statusFieldName","boldAndCenterFields"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zie,5,4,"h4",1),x(2,"p-accordion",2),g(3,Yie,2,2,"p-accordionTab",3),g(4,Xie,3,1,"p-accordionTab",4),g(5,eoe,2,7,"p-accordionTab",5),A()(),g(6,toe,2,0,"div",6),g(7,noe,2,1,"p",7)),2&n&&(d("ngClass",mt(8,ioe,!1===o.showReport,!0===o.showReport)),h(1),d("ngIf",o.RunsetJson),h(1),d("multiple",!0),h(1),d("ngIf",null!=o.runsetDetails&&o.runsetDetails.length>0),h(1),d("ngIf",1==o.showStatisticsPanel),h(1),d("ngIf",o.runnersData.length>0),h(1),d("ngIf",o.hideRepoLoader),h(1),d("ngIf",0==o.showReport&&0==o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,LG,Is],styles:[".lables[_ngcontent-%COMP%]{font-weight:700}.loader[_ngcontent-%COMP%]{position:absolute;top:40%;left:40%;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #0066b2;width:40px;height:40px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return t})(),Mk=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"dashboard"],[1,"ui-m"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),le(2,"runset-report"),A()())},dependencies:[ooe],encapsulation:2})}return t})();const soe=function(){return["NumberOfActions"]};let EC=(()=>{class t{constructor(){}ngOnInit(){this.activitiesCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group Name"},{field:"Name",header:"Activity Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"RunStatus",header:"Execution Status"},{field:"NumberOfActions",header:"Number Of Actions"},{field:"ExecutionRate",header:"Actions Execution Rate"},{field:"PassRate",header:"Actions Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activities-table"]],inputs:{activities:"activities",activitiesGroups:"activitiesGroups",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.activitiesCols)("data",o.activities)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,soe))},dependencies:[Is]})}return t})();const roe=function(){return["CurrentRetryIteration","NumberOfActions"]};let Ok=(()=>{class t{constructor(){}ngOnInit(){this.actionsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Action Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"ActionType",header:"Action Type"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"CurrentRetryIteration",header:"Current Retry Iteration"},{field:"RunStatus",header:"Execution Status"},{field:"Error",header:"Error Details"},{field:"ExInfo",header:"Extra Details"},{field:"Screenshots",header:"Screenshot"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-actions-table"]],inputs:{actions:"actions",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",activitySeq:"activitySeq"},decls:1,vars:9,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields","activitySeq"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.actionsCols)("data",o.actions)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(8,roe))("activitySeq",o.activitySeq)},dependencies:[Is]})}return t})();function Ys(){}const aoe=function(){let t=0;return function(){return t++}}();function tn(t){return null===t||typeof t>"u"}function kn(t){if(Array.isArray&&Array.isArray(t))return!0;const i=Object.prototype.toString.call(t);return"[object"===i.slice(0,7)&&"Array]"===i.slice(-6)}function qt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Po(t,i){return ti(t)?t:i}function Nt(t,i){return typeof t>"u"?i:t}const Lk=(t,i)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*i:+t;function Mn(t,i,e){if(t&&"function"==typeof t.call)return t.apply(e,i)}function _n(t,i,e,n){let o,s,r;if(kn(t))if(s=t.length,n)for(o=s-1;o>=0;o--)i.call(e,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function Pr(t,i){return(Fk[i]||(Fk[i]=function doe(t){const i=function poe(t){const i=t.split("."),e=[];let n="";for(const o of i)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}(t);return e=>{for(const n of i){if(""===n)break;e=e&&e[n]}return e}}(i)))(t)}function DC(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Fo=t=>typeof t<"u",Fr=t=>"function"==typeof t,Rk=(t,i)=>{if(t.size!==i.size)return!1;for(const e of t)if(!i.has(e))return!1;return!0},Vn=Math.PI,Cn=2*Vn,foe=Cn+Vn,wf=Number.POSITIVE_INFINITY,goe=Vn/180,Qn=Vn/2,Uu=Vn/4,Nk=2*Vn/3,Ro=Math.log10,Cs=Math.sign;function Vk(t){const i=Math.round(t);t=$u(t,i,t/1e3)?i:t;const e=Math.pow(10,Math.floor(Ro(t))),n=t/e;return(n<=1?1:n<=2?2:n<=5?5:10)*e}function Gl(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $u(t,i,e){return Math.abs(t-i)l&&c=Math.min(i,e)-n&&t<=Math.max(i,e)+n}function OC(t,i,e){e=e||(r=>t[r]1;)s=o+n>>1,e(s)?o=s:n=s;return{lo:o,hi:n}}const Js=(t,i,e,n)=>OC(t,e,n?o=>t[o][i]<=e:o=>t[o][i]OC(t,e,n=>t[n][i]>=e),jk=["push","pop","shift","splice","unshift"];function Uk(t,i){const e=t._chartjs;if(!e)return;const n=e.listeners,o=n.indexOf(i);-1!==o&&n.splice(o,1),!(n.length>0)&&(jk.forEach(s=>{delete t[s]}),delete t._chartjs)}function $k(t){const i=new Set;let e,n;for(e=0,n=t.length;e"u"?function(t){return t()}:window.requestAnimationFrame;function Gk(t,i,e){const n=e||(r=>Array.prototype.slice.call(r));let o=!1,s=[];return function(...r){s=n(r),o||(o=!0,Kk.call(window,()=>{o=!1,t.apply(i,s)}))}}const LC=t=>"start"===t?"left":"end"===t?"right":"center",Li=(t,i,e)=>"start"===t?i:"end"===t?e:(i+e)/2;function qk(t,i,e){const n=i.length;let o=0,s=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:u,minDefined:p,maxDefined:m}=r.getUserBounds();p&&(o=pi(Math.min(Js(a,r.axis,c).lo,e?n:Js(i,l,r.getPixelForValue(c)).lo),0,n-1)),s=m?pi(Math.max(Js(a,r.axis,u,!0).hi+1,e?0:Js(i,l,r.getPixelForValue(u),!0).hi+1),o,n)-o:n-o}return{start:o,count:s}}function Wk(t){const{xScale:i,yScale:e,_scaleRanges:n}=t,o={xmin:i.min,xmax:i.max,ymin:e.min,ymax:e.max};if(!n)return t._scaleRanges=o,!0;const s=n.xmin!==i.min||n.xmax!==i.max||n.ymin!==e.min||n.ymax!==e.max;return Object.assign(n,o),s}const Tf=t=>0===t||1===t,Qk=(t,i,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-i)*Cn/e),Zk=(t,i,e)=>Math.pow(2,-10*t)*Math.sin((t-i)*Cn/e)+1,Gu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Qn),easeOutSine:t=>Math.sin(t*Qn),easeInOutSine:t=>-.5*(Math.cos(Vn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Tf(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Tf(t)?t:Qk(t,.075,.3),easeOutElastic:t=>Tf(t)?t:Zk(t,.075,.3),easeInOutElastic:t=>Tf(t)?t:t<.5?.5*Qk(2*t,.1125,.45):.5+.5*Zk(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let i=1.70158;return(t/=.5)<1?t*t*((1+(i*=1.525))*t-i)*.5:.5*((t-=2)*t*((1+(i*=1.525))*t+i)+2)},easeInBounce:t=>1-Gu.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*Gu.easeInBounce(2*t):.5*Gu.easeOutBounce(2*t-1)+.5};function qu(t){return t+.5|0}const Rr=(t,i,e)=>Math.max(Math.min(t,e),i);function Wu(t){return Rr(qu(2.55*t),0,255)}function Nr(t){return Rr(qu(255*t),0,255)}function er(t){return Rr(qu(t/2.55)/100,0,1)}function Yk(t){return Rr(qu(100*t),0,100)}const No={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},PC=[..."0123456789ABCDEF"],woe=t=>PC[15&t],Toe=t=>PC[(240&t)>>4]+PC[15&t],Sf=t=>(240&t)>>4==(15&t);const Moe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Xk(t,i,e){const n=i*Math.min(e,1-e),o=(s,r=(s+t/30)%12)=>e-n*Math.max(Math.min(r-3,9-r,1),-1);return[o(0),o(8),o(4)]}function Ooe(t,i,e){const n=(o,s=(o+t/60)%6)=>e-e*i*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Loe(t,i,e){const n=Xk(t,1,.5);let o;for(i+e>1&&(o=1/(i+e),i*=o,e*=o),o=0;o<3;o++)n[o]*=1-i-e,n[o]+=i;return n}function FC(t){const e=t.r/255,n=t.g/255,o=t.b/255,s=Math.max(e,n,o),r=Math.min(e,n,o),a=(s+r)/2;let l,c,u;return s!==r&&(u=s-r,c=a>.5?u/(2-s-r):u/(s+r),l=function Poe(t,i,e,n,o){return t===o?(i-e)/n+(it<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,ql=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Df(t,i,e){if(t){let n=FC(t);n[i]=Math.max(0,Math.min(n[i]+n[i]*e,0===i?360:1)),n=NC(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function n3(t,i){return t&&Object.assign(i||{},t)}function o3(t){var i={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(i={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(i.a=Nr(t[3]))):(i=n3(t,{r:0,g:0,b:0,a:1})).a=Nr(i.a),i}function Goe(t){return"r"===t.charAt(0)?function Uoe(t){const i=joe.exec(t);let n,o,s,e=255;if(i){if(i[7]!==n){const r=+i[7];e=i[8]?Wu(r):Rr(255*r,0,255)}return n=+i[1],o=+i[3],s=+i[5],n=255&(i[2]?Wu(n):Rr(n,0,255)),o=255&(i[4]?Wu(o):Rr(o,0,255)),s=255&(i[6]?Wu(s):Rr(s,0,255)),{r:n,g:o,b:s,a:e}}}(t):function Noe(t){const i=Moe.exec(t);let n,e=255;if(!i)return;i[5]!==n&&(e=i[6]?Wu(+i[5]):Nr(+i[5]));const o=Jk(+i[2]),s=+i[3]/100,r=+i[4]/100;return n="hwb"===i[1]?function Foe(t,i,e){return RC(Loe,t,i,e)}(o,s,r):"hsv"===i[1]?function Roe(t,i,e){return RC(Ooe,t,i,e)}(o,s,r):NC(o,s,r),{r:n[0],g:n[1],b:n[2],a:e}}(t)}class kf{constructor(i){if(i instanceof kf)return i;const e=typeof i;let n;"object"===e?n=o3(i):"string"===e&&(n=function Eoe(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*No[t[1]],g:255&17*No[t[2]],b:255&17*No[t[3]],a:5===i?17*No[t[4]]:255}:(7===i||9===i)&&(e={r:No[t[1]]<<4|No[t[2]],g:No[t[3]]<<4|No[t[4]],b:No[t[5]]<<4|No[t[6]],a:9===i?No[t[7]]<<4|No[t[8]]:255})),e}(i)||function zoe(t){Ef||(Ef=function Hoe(){const t={},i=Object.keys(t3),e=Object.keys(e3);let n,o,s,r,a;for(n=0;n>16&255,s>>8&255,255&s]}return t}(),Ef.transparent=[0,0,0,0]);const i=Ef[t.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255}}(i)||Goe(i)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var i=n3(this._rgb);return i&&(i.a=er(i.a)),i}set rgb(i){this._rgb=o3(i)}rgbString(){return this._valid?function $oe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${er(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function koe(t){var i=(t=>Sf(t.r)&&Sf(t.g)&&Sf(t.b)&&Sf(t.a))(t)?woe:Toe;return t?"#"+i(t.r)+i(t.g)+i(t.b)+((t,i)=>t<255?i(t):"")(t.a,i):void 0}(this._rgb):void 0}hslString(){return this._valid?function Boe(t){if(!t)return;const i=FC(t),e=i[0],n=Yk(i[1]),o=Yk(i[2]);return t.a<255?`hsla(${e}, ${n}%, ${o}%, ${er(t.a)})`:`hsl(${e}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(i,e){if(i){const n=this.rgb,o=i.rgb;let s;const r=e===s?.5:e,a=2*r-1,l=n.a-o.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,n.r=255&c*n.r+s*o.r+.5,n.g=255&c*n.g+s*o.g+.5,n.b=255&c*n.b+s*o.b+.5,n.a=r*n.a+(1-r)*o.a,this.rgb=n}return this}interpolate(i,e){return i&&(this._rgb=function Koe(t,i,e){const n=ql(er(t.r)),o=ql(er(t.g)),s=ql(er(t.b));return{r:Nr(VC(n+e*(ql(er(i.r))-n))),g:Nr(VC(o+e*(ql(er(i.g))-o))),b:Nr(VC(s+e*(ql(er(i.b))-s))),a:t.a+e*(i.a-t.a)}}(this._rgb,i._rgb,e)),this}clone(){return new kf(this.rgb)}alpha(i){return this._rgb.a=Nr(i),this}clearer(i){return this._rgb.a*=1-i,this}greyscale(){const i=this._rgb,e=qu(.3*i.r+.59*i.g+.11*i.b);return i.r=i.g=i.b=e,this}opaquer(i){return this._rgb.a*=1+i,this}negate(){const i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Df(this._rgb,2,i),this}darken(i){return Df(this._rgb,2,-i),this}saturate(i){return Df(this._rgb,1,i),this}desaturate(i){return Df(this._rgb,1,-i),this}rotate(i){return function Voe(t,i){var e=FC(t);e[0]=Jk(e[0]+i),e=NC(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,i),this}}function s3(t){return new kf(t)}function r3(t){if(t&&"object"==typeof t){const i=t.toString();return"[object CanvasPattern]"===i||"[object CanvasGradient]"===i}return!1}function a3(t){return r3(t)?t:s3(t)}function BC(t){return r3(t)?t:s3(t).saturate(.5).darken(.1).hexString()}const ma=Object.create(null),HC=Object.create(null);function Qu(t,i){if(!i)return t;const e=i.split(".");for(let n=0,o=e.length;ne.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,n)=>BC(n.backgroundColor),this.hoverBorderColor=(e,n)=>BC(n.borderColor),this.hoverColor=(e,n)=>BC(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i)}set(i,e){return zC(this,i,e)}get(i){return Qu(this,i)}describe(i,e){return zC(HC,i,e)}override(i,e){return zC(ma,i,e)}route(i,e,n,o){const s=Qu(this,i),r=Qu(this,n),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[o];return qt(l)?Object.assign({},c,l):Nt(l,c)},set(l){this[a]=l}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Mf(t,i,e,n,o){let s=i[o];return s||(s=i[o]=t.measureText(o).width,e.push(o)),s>n&&(n=s),n}function Qoe(t,i,e,n){let o=(n=n||{}).data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==i&&(o=n.data={},s=n.garbageCollect=[],n.font=i),t.save(),t.font=i;let r=0;const a=e.length;let l,c,u,p,m;for(l=0;le.length){for(l=0;l<_;l++)delete o[s[l]];s.splice(0,_)}return r}function _a(t,i,e){const n=t.currentDevicePixelRatio,o=0!==e?Math.max(e/2,.5):0;return Math.round((i-o)*n)/n+o}function l3(t,i){(i=i||t.getContext("2d")).save(),i.resetTransform(),i.clearRect(0,0,t.width,t.height),i.restore()}function jC(t,i,e,n){c3(t,i,e,n,null)}function c3(t,i,e,n,o){let s,r,a,l,c,u;const p=i.pointStyle,m=i.rotation,_=i.radius;let b=(m||0)*goe;if(p&&"object"==typeof p&&(s=p.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(e,n),t.rotate(b),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(_)||_<=0)){switch(t.beginPath(),p){default:o?t.ellipse(e,n,o/2,_,0,0,Cn):t.arc(e,n,_,0,Cn),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),t.closePath();break;case"rectRounded":c=.516*_,l=_-c,r=Math.cos(b+Uu)*l,a=Math.sin(b+Uu)*l,t.arc(e-r,n-a,c,b-Vn,b-Qn),t.arc(e+a,n-r,c,b-Qn,b),t.arc(e+r,n+a,c,b,b+Qn),t.arc(e-a,n+r,c,b+Qn,b+Vn),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*_,u=o?o/2:l,t.rect(e-u,n-l,2*u,2*l);break}b+=Uu;case"rectRot":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+a,n-r),t.lineTo(e+r,n+a),t.lineTo(e-a,n+r),t.closePath();break;case"crossRot":b+=Uu;case"cross":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"star":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r),b+=Uu,r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"line":r=o?o/2:Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(b)*_,n+Math.sin(b)*_)}t.fill(),i.borderWidth>0&&t.stroke()}}function Zu(t,i,e){return e=e||.5,!i||t&&t.x>i.left-e&&t.xi.top-e&&t.y0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=o.string,function Xoe(t,i){i.translation&&t.translate(i.translation[0],i.translation[1]),tn(i.rotation)||t.rotate(i.rotation),i.color&&(t.fillStyle=i.color),i.textAlign&&(t.textAlign=i.textAlign),i.textBaseline&&(t.textBaseline=i.textBaseline)}(t,s),l=0;l+t||0;function UC(t,i){const e={},n=qt(i),o=n?Object.keys(i):i,s=qt(t)?n?r=>Nt(t[r],t[i[r]]):r=>t[r]:()=>t;for(const r of o)e[r]=ise(s(r));return e}function u3(t){return UC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ca(t){return UC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Pi(t){const i=u3(t);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ui(t,i){let e=Nt((t=t||{}).size,(i=i||Qt.font).size);"string"==typeof e&&(e=parseInt(e,10));let n=Nt(t.style,i.style);n&&!(""+n).match(tse)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const o={family:Nt(t.family,i.family),lineHeight:nse(Nt(t.lineHeight,i.lineHeight),e),size:e,style:n,weight:Nt(t.weight,i.weight),string:""};return o.string=function Woe(t){return!t||tn(t.size)||tn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Xu(t,i,e,n){let s,r,a,o=!0;for(s=0,r=t.length;st[0])){Fo(n)||(n=g3("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:e,_fallback:n,_getTarget:o,override:r=>$C([r,...t],i,e,n)};return new Proxy(s,{deleteProperty:(r,a)=>(delete r[a],delete r._keys,delete t[0][a],!0),get:(r,a)=>p3(r,a,()=>function pse(t,i,e,n){let o;for(const s of i)if(o=g3(sse(s,t),e),Fo(o))return KC(t,o)?GC(e,n,t,o):o}(a,i,t,r)),getOwnPropertyDescriptor:(r,a)=>Reflect.getOwnPropertyDescriptor(r._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(r,a)=>m3(r).includes(a),ownKeys:r=>m3(r),set(r,a,l){const c=r._storage||(r._storage=o());return r[a]=c[a]=l,delete r._keys,!0}})}function Wl(t,i,e,n){const o={_cacheable:!1,_proxy:t,_context:i,_subProxy:e,_stack:new Set,_descriptors:d3(t,n),setContext:s=>Wl(t,s,e,n),override:s=>Wl(t.override(s),i,e,n)};return new Proxy(o,{deleteProperty:(s,r)=>(delete s[r],delete t[r],!0),get:(s,r,a)=>p3(s,r,()=>function rse(t,i,e){const{_proxy:n,_context:o,_subProxy:s,_descriptors:r}=t;let a=n[i];return Fr(a)&&r.isScriptable(i)&&(a=function ase(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_stack:a}=e;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),i=i(s,r||n),a.delete(t),KC(t,i)&&(i=GC(o._scopes,o,t,i)),i}(i,a,t,e)),kn(a)&&a.length&&(a=function lse(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_descriptors:a}=e;if(Fo(s.index)&&n(t))i=i[s.index%i.length];else if(qt(i[0])){const l=i,c=o._scopes.filter(u=>u!==l);i=[];for(const u of l){const p=GC(c,o,t,u);i.push(Wl(p,s,r&&r[t],a))}}return i}(i,a,t,r.isIndexable)),KC(i,a)&&(a=Wl(a,o,s&&s[i],r)),a}(s,r,a)),getOwnPropertyDescriptor:(s,r)=>s._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(s,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(s,r,a)=>(t[r]=a,delete s[r],!0)})}function d3(t,i={scriptable:!0,indexable:!0}){const{_scriptable:e=i.scriptable,_indexable:n=i.indexable,_allKeys:o=i.allKeys}=t;return{allKeys:o,scriptable:e,indexable:n,isScriptable:Fr(e)?e:()=>e,isIndexable:Fr(n)?n:()=>n}}const sse=(t,i)=>t?t+DC(i):i,KC=(t,i)=>qt(i)&&"adapters"!==t&&(null===Object.getPrototypeOf(i)||i.constructor===Object);function p3(t,i,e){if(Object.prototype.hasOwnProperty.call(t,i))return t[i];const n=e();return t[i]=n,n}function h3(t,i,e){return Fr(t)?t(i,e):t}const cse=(t,i)=>!0===t?i:"string"==typeof t?Pr(i,t):void 0;function use(t,i,e,n,o){for(const s of i){const r=cse(e,s);if(r){t.add(r);const a=h3(r._fallback,e,o);if(Fo(a)&&a!==e&&a!==n)return a}else if(!1===r&&Fo(n)&&e!==n)return null}return!1}function GC(t,i,e,n){const o=i._rootScopes,s=h3(i._fallback,e,n),r=[...t,...o],a=new Set;a.add(n);let l=f3(a,r,e,s||e,n);return!(null===l||Fo(s)&&s!==e&&(l=f3(a,r,s,l,n),null===l))&&$C(Array.from(a),[""],o,s,()=>function dse(t,i,e){const n=t._getTarget();i in n||(n[i]={});const o=n[i];return kn(o)&&qt(e)?e:o}(i,e,n))}function f3(t,i,e,n,o){for(;e;)e=use(t,i,e,n,o);return e}function g3(t,i){for(const e of i){if(!e)continue;const n=e[t];if(Fo(n))return n}}function m3(t){let i=t._keys;return i||(i=t._keys=function hse(t){const i=new Set;for(const e of t)for(const n of Object.keys(e).filter(o=>!o.startsWith("_")))i.add(n);return Array.from(i)}(t._scopes)),i}function _3(t,i,e,n){const{iScale:o}=t,{key:s="r"}=this._parsing,r=new Array(n);let a,l,c,u;for(a=0,l=n;ai"x"===t?"y":"x";function gse(t,i,e,n){const o=t.skip?i:t,s=i,r=e.skip?i:e,a=MC(s,o),l=MC(r,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const p=n*c,m=n*u;return{previous:{x:s.x-p*(r.x-o.x),y:s.y-p*(r.y-o.y)},next:{x:s.x+m*(r.x-o.x),y:s.y+m*(r.y-o.y)}}}function Pf(t,i,e){return Math.max(Math.min(t,e),i)}function vse(t,i,e,n,o){let s,r,a,l;if(i.spanGaps&&(t=t.filter(c=>!c.skip)),"monotone"===i.cubicInterpolationMode)!function Ise(t,i="x"){const e=I3(i),n=t.length,o=Array(n).fill(0),s=Array(n);let r,a,l,c=Ql(t,0);for(r=0;rwindow.getComputedStyle(t,null),yse=["top","right","bottom","left"];function va(t,i,e){const n={};e=e?"-"+e:"";for(let o=0;o<4;o++){const s=yse[o];n[s]=parseFloat(t[i+"-"+s+e])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const xse=(t,i,e)=>(t>0||i>0)&&(!e||!e.shadowRoot);function ba(t,i){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:n}=i,o=Rf(e),s="border-box"===o.boxSizing,r=va(o,"padding"),a=va(o,"border","width"),{x:l,y:c,box:u}=function Ase(t,i){const e=t.touches,n=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=n;let a,l,r=!1;if(xse(o,s,t.target))a=o,l=s;else{const c=i.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,r=!0}return{x:a,y:l,box:r}}(t,e),p=r.left+(u&&a.left),m=r.top+(u&&a.top);let{width:_,height:b}=i;return s&&(_-=r.width+a.width,b-=r.height+a.height),{x:Math.round((l-p)/_*e.width/n),y:Math.round((c-m)/b*e.height/n)}}const WC=t=>Math.round(10*t)/10;function v3(t,i,e){const n=i||1,o=Math.floor(t.height*n),s=Math.floor(t.width*n);t.height=o/n,t.width=s/n;const r=t.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==o||r.width!==s)&&(t.currentDevicePixelRatio=n,r.height=o,r.width=s,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Sse=function(){let t=!1;try{const i={get passive(){return t=!0,!1}};window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return t}();function b3(t,i){const e=function bse(t,i){return Rf(t).getPropertyValue(i)}(t,i),n=e&&e.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ya(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:t.y+e*(i.y-t.y)}}function Ese(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:"middle"===n?e<.5?t.y:i.y:"after"===n?e<1?t.y:i.y:e>0?i.y:t.y}}function Dse(t,i,e,n){const o={x:t.cp2x,y:t.cp2y},s={x:i.cp1x,y:i.cp1y},r=ya(t,o,e),a=ya(o,s,e),l=ya(s,i,e),c=ya(r,a,e),u=ya(a,l,e);return ya(c,u,e)}const y3=new Map;function Ju(t,i,e){return function kse(t,i){i=i||{};const e=t+JSON.stringify(i);let n=y3.get(e);return n||(n=new Intl.NumberFormat(t,i),y3.set(e,n)),n}(i,e).format(t)}function Zl(t,i,e){return t?function(t,i){return{x:e=>t+t+i-e,setWidth(e){i=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(i,e):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,i)=>t+i,leftForLtr:(t,i)=>t}}function x3(t,i){let e,n;("ltr"===i||"rtl"===i)&&(e=t.canvas.style,n=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",i,"important"),t.prevTextDirection=n)}function A3(t,i){void 0!==i&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",i[0],i[1]))}function w3(t){return"angle"===t?{between:Ku,compare:Ioe,normalize:vo}:{between:Xs,compare:(i,e)=>i-e,normalize:i=>i}}function T3({start:t,end:i,count:e,loop:n,style:o}){return{start:t%e,end:i%e,loop:n&&(i-t+1)%e==0,style:o}}function S3(t,i,e){if(!e)return[t];const{property:n,start:o,end:s}=e,r=i.length,{compare:a,between:l,normalize:c}=w3(n),{start:u,end:p,loop:m,style:_}=function Lse(t,i,e){const{property:n,start:o,end:s}=e,{between:r,normalize:a}=w3(n),l=i.length;let m,_,{start:c,end:u,loop:p}=t;if(p){for(c+=l,u+=l,m=0,_=l;m<_&&r(a(i[c%l][n]),o,s);++m)c--,u--;c%=l,u%=l}return ua({chart:i,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Kk.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let e=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const s=n.items;let l,r=s.length-1,a=!1;for(;r>=0;--r)l=s[r],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(i),a=!0):(s[r]=s[s.length-1],s.pop());a&&(o.draw(),this._notify(o,n,i,"progress")),s.length||(n.running=!1,this._notify(o,n,i,"complete"),n.initial=!1),e+=s.length}),this._lastDate=i,0===e&&(this._running=!1)}_getAnims(i){const e=this._charts;let n=e.get(i);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(i,n)),n}listen(i,e,n){this._getAnims(i).listeners[e].push(n)}add(i,e){!e||!e.length||this._getAnims(i).items.push(...e)}has(i){return this._getAnims(i).items.length>0}start(i){const e=this._charts.get(i);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(i){if(!this._running)return!1;const e=this._charts.get(i);return!(!e||!e.running||!e.items.length)}stop(i){const e=this._charts.get(i);if(!e||!e.items.length)return;const n=e.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();e.items=[],this._notify(i,e,Date.now(),"complete")}remove(i){return this._charts.delete(i)}};const M3="transparent",Hse={boolean:(t,i,e)=>e>.5?i:t,color(t,i,e){const n=a3(t||M3),o=n.valid&&a3(i||M3);return o&&o.valid?o.mix(n,e).hexString():i},number:(t,i,e)=>t+(i-t)*e};class zse{constructor(i,e,n,o){const s=e[n];o=Xu([i.to,o,s,i.from]);const r=Xu([i.from,s,o]);this._active=!0,this._fn=i.fn||Hse[i.type||typeof r],this._easing=Gu[i.easing]||Gu.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=e,this._prop=n,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(i,e,n){if(this._active){this._notify(!1);const o=this._target[this._prop],s=n-this._start,r=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=s,this._loop=!!i.loop,this._to=Xu([i.to,e,o,i.from]),this._from=Xu([i.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){const e=i-this._start,n=this._duration,o=this._prop,s=this._from,r=this._loop,a=this._to;let l;if(this._active=s!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,a,l))}wait(){const i=this._promises||(this._promises=[]);return new Promise((e,n)=>{i.push({res:e,rej:n})})}_notify(i){const e=i?"res":"rej",n=this._promises||[];for(let o=0;o"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Qt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Qt.describe("animations",{_fallback:"animation"}),Qt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class O3{constructor(i,e){this._chart=i,this._properties=new Map,this.configure(e)}configure(i){if(!qt(i))return;const e=this._properties;Object.getOwnPropertyNames(i).forEach(n=>{const o=i[n];if(!qt(o))return;const s={};for(const r of $se)s[r]=o[r];(kn(o.properties)&&o.properties||[n]).forEach(r=>{(r===n||!e.has(r))&&e.set(r,s)})})}_animateOptions(i,e){const n=e.options,o=function Gse(t,i){if(!i)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=i}(i,n);if(!o)return[];const s=this._createAnimations(o,n);return n.$shared&&function Kse(t,i){const e=[],n=Object.keys(i);for(let o=0;o{i.options=n},()=>{}),s}_createAnimations(i,e){const n=this._properties,o=[],s=i.$animations||(i.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(i,e));continue}const u=e[c];let p=s[c];const m=n.get(c);if(p){if(m&&p.active()){p.update(m,u,a);continue}p.cancel()}m&&m.duration?(s[c]=p=new zse(m,i,c,u),o.push(p)):i[c]=u}return o}update(i,e){if(0===this._properties.size)return void Object.assign(i,e);const n=this._createAnimations(i,e);return n.length?(tr.add(this._chart,n),!0):void 0}}function L3(t,i){const e=t&&t.options||{},n=e.reverse,o=void 0===e.min?i:0,s=void 0===e.max?i:0;return{start:n?s:o,end:n?o:s}}function P3(t,i){const e=[],n=t._getSortedDatasetMetas(i);let o,s;for(o=0,s=n.length;o0||!e&&s<0)return o.index}return null}function V3(t,i){const{chart:e,_cachedMeta:n}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:r,index:a}=n,l=s.axis,c=r.axis,u=function Zse(t,i,e){return`${t.id}.${i.id}.${e.stack||e.type}`}(s,r,n),p=i.length;let m;for(let _=0;_e[n].axis===i).shift()}function ed(t,i){const e=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){i=i||t._parsed;for(const o of i){const s=o._stacks;if(!s||void 0===s[n]||void 0===s[n][e])return;delete s[n][e]}}}const ZC=t=>"reset"===t||"none"===t,B3=(t,i)=>i?t:Object.assign({},t);let vs=(()=>{class t{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=R3(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&ed(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),s=(m,_,b,E)=>"x"===m?_:"r"===m?E:b,r=n.xAxisID=Nt(o.xAxisID,QC(e,"x")),a=n.yAxisID=Nt(o.yAxisID,QC(e,"y")),l=n.rAxisID=Nt(o.rAxisID,QC(e,"r")),c=n.indexAxis,u=n.iAxisID=s(c,r,a,l),p=n.vAxisID=s(c,a,r,l);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Uk(this._data,this),e._stacked&&ed(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(qt(n))this._data=function Qse(t){const i=Object.keys(t),e=new Array(i.length);let n,o,s;for(n=0,o=i.length;n{const n="_onData"+DC(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){const r=o.apply(this,s);return t._chartjs.listeners.forEach(a=>{"function"==typeof a[n]&&a[n](...s)}),r}})}))}(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=R3(n.vScale,n),n.stack!==o.stack&&(s=!0,ed(n),n.stack=o.stack),this._resyncElements(e),(s||r!==n._stacked)&&V3(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:s}=this,{iScale:r,_stacked:a}=o,l=r.axis;let p,m,_,c=0===e&&n===s.length||o._sorted,u=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=s,o._sorted=!0,_=s;else{_=kn(s[e])?this.parseArrayData(o,s,e,n):qt(s[e])?this.parseObjectData(o,s,e,n):this.parsePrimitiveData(o,s,e,n);const b=()=>null===m[l]||u&&m[l]t&&!i.hidden&&i._stacked&&{keys:P3(this.chart,!0),values:null})(n,o),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:m}=function Yse(t){const{min:i,max:e,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?i:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}(l);let _,b;function E(){b=s[_];const P=b[l.axis];return!ti(b[e.axis])||p>P||m=0;--_)if(!E()){this.updateRangeFromParsed(u,e,b,c);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let s,r,a;for(s=0,r=n.length;s=0&&ethis.getContext(o,s),m);return P.$shared&&(P.$shared=c,r[a]=Object.freeze(B3(P,c))),P}_resolveAnimations(e,n,o){const s=this.chart,r=this._cachedDataOpts,a=`animation-${n}`,l=r[a];if(l)return l;let c;if(!1!==s.options.animation){const p=this.chart.config,m=p.datasetAnimationScopeKeys(this._type,n),_=p.getOptionScopes(this.getDataset(),m);c=p.createResolver(_,this.getContext(e,o,n))}const u=new O3(s,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||ZC(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(o),a=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,o),{sharedOptions:r,includeOptions:a}}updateElement(e,n,o,s){ZC(s)?Object.assign(e,o):this._resolveAnimations(n,s).update(e,o)}updateSharedOptions(e,n,o){e&&!ZC(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,o,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const s=o.length,r=n.length,a=Math.min(r,s);a&&this.parse(0,a),r>s?this._insertElements(s,r-s,e):r{for(u.length+=n,l=u.length-1;l>=a;l--)u[l]=u[l-n]};for(c(r),l=e;lo-s))}return t._cache.$bar}(i,t.type);let o,s,r,a,n=i._length;const l=()=>{32767===r||-32768===r||(Fo(a)&&(n=Math.min(n,Math.abs(r-a)||n)),a=r)};for(o=0,s=e.length;oMath.abs(a)&&(l=a,c=r),i[e.axis]=c,i._custom={barStart:l,barEnd:c,start:o,end:s,min:r,max:a}}(t,i,e,n):i[e.axis]=e.parse(t,n),i}function z3(t,i,e,n){const o=t.iScale,s=t.vScale,r=o.getLabels(),a=o===s,l=[];let c,u,p,m;for(c=e,u=e+n;ct.x,e="left",n="right"):(i=t.base{class t extends vs{parsePrimitiveData(e,n,o,s){return z3(e,n,o,s)}parseArrayData(e,n,o,s){return z3(e,n,o,s)}parseObjectData(e,n,o,s){const{iScale:r,vScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u="x"===r.axis?l:c,p="x"===a.axis?l:c,m=[];let _,b,E,P;for(_=o,b=o+s;_c.controller.options.grouped),r=o.options.stacked,a=[],l=c=>{const u=c.controller.getParsed(n),p=u&&u[c.vScale.axis];if(tn(p)||isNaN(p))return!0};for(const c of s)if((void 0===n||!l(c))&&((!1===r||-1===a.indexOf(c.stack)||void 0===r&&void 0===c.stack)&&a.push(c.stack),c.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,o){const s=this._getStacks(e,o),r=void 0!==n?s.indexOf(n):-1;return-1===r?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,s=[];let r,a;for(r=0,a=n.data.length;r=e?1:-1)}(E,n,a)*r,p===a&&(W-=E/2);const te=n.getPixelForDecimal(0),fe=n.getPixelForDecimal(1),Ce=Math.min(te,fe),ve=Math.max(te,fe);W=Math.max(Math.min(W,ve),Ce),b=W+E}if(W===n.getPixelForValue(a)){const te=Cs(E)*n.getLineWidthForValue(a)/2;W+=te,E-=te}return{size:E,base:W,head:b,center:b+E/2}}_calculateBarIndexPixels(e,n){const o=n.scale,s=this.options,r=s.skipNull,a=Nt(s.maxBarThickness,1/0);let l,c;if(n.grouped){const u=r?this._getStackCount(e):n.stackCount,p="flex"===s.barThickness?function sre(t,i,e,n){const o=i.pixels,s=o[t];let r=t>0?o[t-1]:null,a=t{class t extends vs{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,o,s){const r=super.parsePrimitiveData(e,n,o,s);for(let a=0;a=0;--o)n=Math.max(n,e[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:o,yScale:s}=n,r=this.getParsed(e),a=o.getLabelForValue(r.x),l=s.getLabelForValue(r.y),c=r._custom;return{label:n.label,value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,s),p=a.axis,m=l.axis;for(let _=n;_""}}}},t})(),$3=(()=>{class t extends vs{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=o;else{let a,l,r=c=>+o[c];if(qt(o[e])){const{key:c="value"}=this._parsing;r=u=>+Pr(o[u],c)}for(a=e,l=e+n;a"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/i)(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:p,rotation:m}=this._getRotationExtents(),{ratioX:_,ratioY:b,offsetX:E,offsetY:P}=function fre(t,i,e){let n=1,o=1,s=0,r=0;if(iKu(fe,a,l,!0)?1:Math.max(Ce,Ce*e,ve,ve*e),b=(fe,Ce,ve)=>Ku(fe,a,l,!0)?-1:Math.min(Ce,Ce*e,ve,ve*e),E=_(0,c,p),P=_(Qn,u,m),W=b(Vn,c,p),te=b(Vn+Qn,u,m);n=(E-W)/2,o=(P-te)/2,s=-(E+W)/2,r=-(P+te)/2}return{ratioX:n,ratioY:o,offsetX:s,offsetY:r}}(m,p,c),fe=Math.max(Math.min((o.width-a)/_,(o.height-a)/b)/2,0),Ce=Lk(this.options.radius,fe),ke=(Ce-Math.max(Ce*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=E*Ce,this.offsetY=P*Ce,s.total=this.calculateTotal(),this.outerRadius=Ce-ke*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-ke*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const o=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||null===s._parsed[e]||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Cn)}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,l=a.chartArea,p=(l.left+l.right)/2,m=(l.top+l.bottom)/2,_=r&&a.options.animation.animateScale,b=_?0:this.innerRadius,E=_?0:this.outerRadius,{sharedOptions:P,includeOptions:W}=this._getSharedOptions(n,s);let fe,te=this._getRotation();for(fe=0;fe0&&!isNaN(e)?Cn*(Math.abs(e)/n):0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e],o.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const o=this.chart;let s,r,a,l,c;if(!e)for(s=0,r=o.data.datasets.length;s"spacing"!==i,_indexable:i=>"spacing"!==i},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(i){let e=i.label;const n=": "+i.formattedValue;return kn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}},t})(),gre=(()=>{class t extends vs{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:s=[],_dataset:r}=n,a=this.chart._animationsDisabled;let{start:l,count:c}=qk(n,s,a);this._drawStart=l,this._drawCount=c,Wk(n)&&(l=0,c=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=s;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!a,options:u},e),this.updateElements(s,l,c,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,s),_=a.axis,b=l.axis,{spanGaps:E,segment:P}=this.options,W=Gl(E)?E:Number.POSITIVE_INFINITY,te=this.chart._animationsDisabled||r||"none"===s;let fe=n>0&&this.getParsed(n-1);for(let Ce=n;Ce0&&Math.abs(ke[_]-fe[_])>W,P&&(Pe.parsed=ke,Pe.raw=u.data[Ce]),m&&(Pe.options=p||this.resolveDataElementOptions(Ce,ve.active?"active":s)),te||this.updateElement(ve,Ce,Pe,s),fe=ke}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return o;const r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t.id="line",t.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},t.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},t})(),mre=(()=>{class t extends vs{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e].r,o.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((o,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(rn.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,o=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),l=(r-Math.max(o.cutoutPercentage?r/100*o.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,c=a.options.animation,u=this._cachedMeta.rScale,p=u.xCenter,m=u.yCenter,_=u.getIndexAngle(0)-.5*Vn;let E,b=_;const P=360/this.countVisibleElements();for(E=0;E{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,o){return this.chart.getDataVisibility(e)?Yo(this.resolveDataElementOptions(e,n).angle||o):0}}return t.id="polarArea",t.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:i=>i.chart.data.labels[i.dataIndex]+": "+i.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},t})(),_re=(()=>{class t extends $3{}return t.id="pie",t.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},t})(),Ire=(()=>{class t extends vs{getLabelAndValue(e){const n=this._cachedMeta.vScale,o=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta,o=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(o.points=s,"resize"!==e){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0),this.updateElement(o,void 0,{_loop:!0,_fullLoop:r.length===s.length,options:a},e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,o,s){const r=this._cachedMeta.rScale,a="reset"===s;for(let l=n;l{o[s]=n[s]&&n[s].active()?n[s]._to:this[s]}),o}}Xo.defaults={},Xo.defaultRoutes=void 0;const K3={values:t=>kn(t)?t:""+t,numeric(t,i,e){if(0===t)return"0";const n=this.chart.options.locale;let o,s=t;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=function Cre(t,i){let e=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const r=Ro(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ju(t,n,l)},logarithmic(t,i,e){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(Ro(t)));return 1===n||2===n||5===n?K3.numeric.call(this,t,i,e):""}};var Nf={formatters:K3};function Vf(t,i,e,n,o){const s=Nt(n,0),r=Math.min(Nt(o,t.length),t.length);let l,c,u,a=0;for(e=Math.ceil(e),o&&(l=o-n,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);ci.lineWidth,tickColor:(t,i)=>i.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Nf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Qt.route("scale.ticks","color","","color"),Qt.route("scale.grid","color","","borderColor"),Qt.route("scale.grid","borderColor","","borderColor"),Qt.route("scale.title","color","","color"),Qt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Qt.describe("scales",{_fallback:"scale"}),Qt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const G3=(t,i,e)=>"top"===i||"left"===i?t[i]+e:t[i]-e;function q3(t,i){const e=[],n=t.length/i,o=t.length;let s=0;for(;sr+a)))return l}function td(t){return t.drawTicks?t.tickLength:0}function W3(t,i){if(!t.display)return 0;const e=ui(t.font,i),n=Pi(t.padding);return(kn(t.text)?t.text.length:1)*e.lineHeight+n.height}function Mre(t,i,e){let n=LC(t);return(e&&"right"!==i||!e&&"right"===i)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class xa extends Xo{constructor(i){super(),this.id=i.id,this.type=i.type,this.options=void 0,this.ctx=i.ctx,this.chart=i.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(i){this.options=i.setContext(this.getContext()),this.axis=i.axis,this._userMin=this.parse(i.min),this._userMax=this.parse(i.max),this._suggestedMin=this.parse(i.suggestedMin),this._suggestedMax=this.parse(i.suggestedMax)}parse(i,e){return i}getUserBounds(){let{_userMin:i,_userMax:e,_suggestedMin:n,_suggestedMax:o}=this;return i=Po(i,Number.POSITIVE_INFINITY),e=Po(e,Number.NEGATIVE_INFINITY),n=Po(n,Number.POSITIVE_INFINITY),o=Po(o,Number.NEGATIVE_INFINITY),{min:Po(i,n),max:Po(e,o),minDefined:ti(i),maxDefined:ti(e)}}getMinMax(i){let r,{min:e,max:n,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:e,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;ln?n:e,n=o&&e>n?e:n,{min:Po(e,Po(n,e)),max:Po(n,Po(e,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mn(this.options.beforeUpdate,[this])}update(i,e,n){const{beginAtZero:o,grace:s,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function ose(t,i,e){const{min:n,max:o}=t,s=Lk(i,(o-n)/2),r=(a,l)=>e&&0===a?0:a+l;return{min:r(n,-Math.abs(s)),max:r(o,s)}}(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=an)return function Are(t,i,e,n){let r,o=0,s=e[0];for(n=Math.ceil(n),r=0;ro-s).pop(),i}(n);for(let r=0,a=s.length-1;ro)return l}return Math.max(o,1)}(o,i,n);if(s>0){let u,p;const m=s>1?Math.round((a-r)/(s-1)):null;for(Vf(i,l,c,tn(m)?0:r-m,r),u=0,p=s-1;u=s||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const u=this._getLabelSizes(),p=u.widest.width,m=u.highest.height,_=pi(this.chart.width-p,0,this.maxWidth);a=i.offset?this.maxWidth/n:_/(n-1),p+6>a&&(a=_/(n-(i.offset?.5:1)),l=this.maxHeight-td(i.grid)-e.padding-W3(i.title,this.chart.options.font),c=Math.sqrt(p*p+m*m),r=kC(Math.min(Math.asin(pi((u.highest.height+6)/a,-1,1)),Math.asin(pi(l/c,-1,1))-Math.asin(pi(m/c,-1,1)))),r=Math.max(o,Math.min(s,r))),this.labelRotation=r}afterCalculateLabelRotation(){Mn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mn(this.options.beforeFit,[this])}fit(){const i={width:0,height:0},{chart:e,options:{ticks:n,title:o,grid:s}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=W3(o,e.options.font);if(a?(i.width=this.maxWidth,i.height=td(s)+l):(i.height=this.maxHeight,i.width=td(s)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:p,highest:m}=this._getLabelSizes(),_=2*n.padding,b=Yo(this.labelRotation),E=Math.cos(b),P=Math.sin(b);a?i.height=Math.min(this.maxHeight,i.height+(n.mirror?0:P*p.width+E*m.height)+_):i.width=Math.min(this.maxWidth,i.width+(n.mirror?0:E*p.width+P*m.height)+_),this._calculatePadding(c,u,P,E)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,e,n,o){const{ticks:{align:s,padding:r},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,_=0;l?c?(m=o*i.width,_=n*e.height):(m=n*i.height,_=o*e.width):"start"===s?_=e.width:"end"===s?m=i.width:"inner"!==s&&(m=i.width/2,_=e.width/2),this.paddingLeft=Math.max((m-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((_-p+r)*this.width/(this.width-p),0)}else{let u=e.height/2,p=i.height/2;"start"===s?(u=0,p=i.height):"end"===s&&(u=e.height,p=0),this.paddingTop=u+r,this.paddingBottom=p+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mn(this.options.afterFit,[this])}isHorizontal(){const{axis:i,position:e}=this.options;return"top"===e||"bottom"===e||"x"===i}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(i),e=0,n=i.length;e{const n=e.gc,o=n.length/2;let s;if(o>i){for(s=0;s({width:s[Pe]||0,height:r[Pe]||0});return{first:ke(0),last:ke(e-1),widest:ke(Ce),highest:ke(ve),widths:s,heights:r}}getLabelForValue(i){return i}getPixelForValue(i,e){return NaN}getValueForPixel(i){}getPixelForTick(i){const e=this.ticks;return i<0||i>e.length-1?null:this.getPixelForValue(e[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);const e=this._startPixel+i*this._length;return function Coe(t){return pi(t,-32768,32767)}(this._alignToPixels?_a(this.chart,e,0):e)}getDecimalForPixel(i){const e=(i-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:i,max:e}=this;return i<0&&e<0?e:i>0&&e>0?i:0}getContext(i){const e=this.ticks||[];if(i>=0&&ia*o?a/n:l/o:l*o0}_computeGridLineItems(i){const e=this.axis,n=this.chart,o=this.options,{grid:s,position:r}=o,a=s.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),p=td(s),m=[],_=s.setContext(this.getContext()),b=_.drawBorder?_.borderWidth:0,E=b/2,P=function(wt){return _a(n,wt,b)};let W,te,fe,Ce,ve,ke,Pe,$e,Ke,pt,jt,Vt;if("top"===r)W=P(this.bottom),ke=this.bottom-p,$e=W-E,pt=P(i.top)+E,Vt=i.bottom;else if("bottom"===r)W=P(this.top),pt=i.top,Vt=P(i.bottom)-E,ke=W+E,$e=this.top+p;else if("left"===r)W=P(this.right),ve=this.right-p,Pe=W-E,Ke=P(i.left)+E,jt=i.right;else if("right"===r)W=P(this.left),Ke=i.left,jt=P(i.right)-E,ve=W+E,Pe=this.left+p;else if("x"===e){if("center"===r)W=P((i.top+i.bottom)/2+.5);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}pt=i.top,Vt=i.bottom,ke=W+E,$e=ke+p}else if("y"===e){if("center"===r)W=P((i.left+i.right)/2);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}ve=W-E,Pe=ve-p,Ke=i.left,jt=i.right}const vn=Nt(o.ticks.maxTicksLimit,u),hi=Math.max(1,Math.ceil(u/vn));for(te=0;tes.value===i);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(i){const e=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i));let s,r;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(e.display)for(s=0,r=o.length;s{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]:[{z:e,draw:o=>{this.draw(o)}}]}getMatchingVisibleMetas(i){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let s,r;for(s=0,r=e.length;s{const n=e.split("."),o=n.pop(),s=[t].concat(n).join("."),r=i[e].split("."),a=r.pop(),l=r.join(".");Qt.route(s,o,l,a)})}(i,t.defaultRoutes),t.descriptors&&Qt.describe(i,t.descriptors)}(i,r,n),this.override&&Qt.override(i.id,i.overrides)),r}get(i){return this.items[i]}unregister(i){const e=this.items,n=i.id,o=this.scope;n in e&&delete e[n],o&&n in Qt[o]&&(delete Qt[o][n],this.override&&delete ma[n])}}var bs=new class Rre{constructor(){this.controllers=new Bf(vs,"datasets",!0),this.elements=new Bf(Xo,"elements"),this.plugins=new Bf(Object,"plugins"),this.scales=new Bf(xa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,e,n){[...e].forEach(o=>{const s=n||this._getRegistryForType(o);n||s.isForType(o)||s===this.plugins&&o.id?this._exec(i,s,o):_n(o,r=>{const a=n||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,e,n){const o=DC(i);Mn(n["before"+o],[],n),e[i](n),Mn(n["after"+o],[],n)}_getRegistryForType(i){for(let e=0;e{class t extends vs{update(e){const n=this._cachedMeta,{data:o=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:a}=qk(n,o,s);if(this._drawStart=r,this._drawCount=a,Wk(n)&&(r=0,a=o.length),this.options.showLine){const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:u},e)}this.updateElements(o,r,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=bs.getElement("line")),super.addElements()}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,p=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(p),_=this.includeOptions(s,m),b=a.axis,E=l.axis,{spanGaps:P,segment:W}=this.options,te=Gl(P)?P:Number.POSITIVE_INFINITY,fe=this.chart._animationsDisabled||r||"none"===s;let Ce=n>0&&this.getParsed(n-1);for(let ve=n;ve0&&Math.abs(Pe[b]-Ce[b])>te,W&&($e.parsed=Pe,$e.raw=u.data[ve]),_&&($e.options=m||this.resolveDataElementOptions(ve,ke.active?"active":s)),fe||this.updateElement(ke,ve,$e,s),Ce=Pe}this.updateSharedOptions(m,s,p)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,a)/2}}return t.id="scatter",t.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},t.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:i=>"("+i.label+", "+i.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},t})()});function Aa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Vre={_date:(()=>{class t{constructor(e){this.options=e||{}}init(e){}formats(){return Aa()}parse(e,n){return Aa()}format(e,n){return Aa()}add(e,n,o){return Aa()}diff(e,n,o){return Aa()}startOf(e,n,o){return Aa()}endOf(e,n){return Aa()}}return t.override=function(i){Object.assign(t.prototype,i)},t})()};function Bre(t,i,e,n){const{controller:o,data:s,_sorted:r}=t,a=o._cachedMeta.iScale;if(a&&i===a.axis&&"r"!==i&&r&&s.length){const l=a._reversePixels?voe:Js;if(!n)return l(s,i,e);if(o._sharedOptions){const c=s[0],u="function"==typeof c.getRange&&c.getRange(i);if(u){const p=l(s,i,e-u),m=l(s,i,e+u);return{lo:p.lo,hi:m.hi}}}}return{lo:0,hi:s.length-1}}function nd(t,i,e,n,o){const s=t.getSortedVisibleDatasetMetas(),r=e[i];for(let a=0,l=s.length;a{l[r](i[e],o)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(i.x,i.y,o))}),n&&!a?[]:s}var Ure={evaluateInteractionItems:nd,modes:{index(t,i,e,n){const o=ba(i,t),s=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,p=c.data[u];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:u})}),l):[]},dataset(t,i,e,n){const o=ba(i,t),s=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uXC(t,ba(i,t),e.axis||"xy",n,e.includeInvisible||!1),nearest:(t,i,e,n)=>JC(t,ba(i,t),e.axis||"xy",e.intersect,n,e.includeInvisible||!1),x:(t,i,e,n)=>Q3(t,ba(i,t),"x",e.intersect,n),y:(t,i,e,n)=>Q3(t,ba(i,t),"y",e.intersect,n)}};const Z3=["left","top","right","bottom"];function id(t,i){return t.filter(e=>e.pos===i)}function Y3(t,i){return t.filter(e=>-1===Z3.indexOf(e.pos)&&e.box.axis===i)}function od(t,i){return t.sort((e,n)=>{const o=i?n:e,s=i?e:n;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function X3(t,i,e,n){return Math.max(t[e],i[e])+Math.max(t[n],i[n])}function J3(t,i){t.top=Math.max(t.top,i.top),t.left=Math.max(t.left,i.left),t.bottom=Math.max(t.bottom,i.bottom),t.right=Math.max(t.right,i.right)}function Wre(t,i,e,n){const{pos:o,box:s}=e,r=t.maxPadding;if(!qt(o)){e.size&&(t[o]-=e.size);const p=n[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?s.height:s.width),e.size=p.size/p.count,t[o]+=e.size}s.getPadding&&J3(r,s.getPadding());const a=Math.max(0,i.outerWidth-X3(r,t,"left","right")),l=Math.max(0,i.outerHeight-X3(r,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function Zre(t,i){const e=i.maxPadding;return function n(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(r=>{s[r]=Math.max(i[r],e[r])}),s}(t?["left","right"]:["top","bottom"])}function sd(t,i,e,n){const o=[];let s,r,a,l,c,u;for(s=0,r=t.length,c=0;sc.box.fullSize),!0),n=od(id(i,"left"),!0),o=od(id(i,"right")),s=od(id(i,"top"),!0),r=od(id(i,"bottom")),a=Y3(i,"x"),l=Y3(i,"y");return{fullSize:e,leftAndTop:n.concat(s),rightAndBottom:o.concat(l).concat(r).concat(a),chartArea:id(i,"chartArea"),vertical:n.concat(o).concat(l),horizontal:s.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;_n(t.boxes,E=>{"function"==typeof E.beforeLayout&&E.beforeLayout()});const u=l.reduce((E,P)=>P.box.options&&!1===P.box.options.display?E:E+1,0)||1,p=Object.freeze({outerWidth:i,outerHeight:e,padding:o,availableWidth:s,availableHeight:r,vBoxMaxWidth:s/2/u,hBoxMaxHeight:r/2}),m=Object.assign({},o);J3(m,Pi(n));const _=Object.assign({maxPadding:m,w:s,h:r,x:o.left,y:o.top},o),b=function Gre(t,i){const e=function Kre(t){const i={};for(const e of t){const{stack:n,pos:o,stackWeight:s}=e;if(!n||!Z3.includes(o))continue;const r=i[n]||(i[n]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=s}return i}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=i;let s,r,a;for(s=0,r=t.length;s{const P=E.box;Object.assign(P,t.chartArea),P.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class tM{acquireContext(i,e){}releaseContext(i){return!1}addEventListener(i,e,n){}removeEventListener(i,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(i,e,n,o){return e=Math.max(0,e||i.width),n=n||i.height,{width:e,height:Math.max(0,o?Math.floor(e/o):n)}}isAttached(i){return!0}updateConfig(i){}}class Yre extends tM{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}}const zf="$chartjs",Xre={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nM=t=>null===t||""===t,iM=!!Sse&&{passive:!0};function tae(t,i,e){t.canvas.removeEventListener(i,e,iM)}function jf(t,i){for(const e of t)if(e===i||e.contains(i))return!0}function iae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.addedNodes,n),r=r&&!jf(a.removedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function oae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.removedNodes,n),r=r&&!jf(a.addedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}const rd=new Map;let oM=0;function sM(){const t=window.devicePixelRatio;t!==oM&&(oM=t,rd.forEach((i,e)=>{e.currentDevicePixelRatio!==t&&i()}))}function aae(t,i,e){const n=t.canvas,o=n&&qC(n);if(!o)return;const s=Gk((a,l)=>{const c=o.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;0===c&&0===u||s(c,u)});return r.observe(o),function sae(t,i){rd.size||window.addEventListener("resize",sM),rd.set(t,i)}(t,s),r}function ev(t,i,e){e&&e.disconnect(),"resize"===i&&function rae(t){rd.delete(t),rd.size||window.removeEventListener("resize",sM)}(t)}function lae(t,i,e){const n=t.canvas,o=Gk(s=>{null!==t.ctx&&e(function nae(t,i){const e=Xre[t.type]||t.type,{x:n,y:o}=ba(t,i);return{type:e,chart:i,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(s,t))},t,s=>{const r=s[0];return[r,r.offsetX,r.offsetY]});return function eae(t,i,e){t.addEventListener(i,e,iM)}(n,i,o),o}class cae extends tM{acquireContext(i,e){const n=i&&i.getContext&&i.getContext("2d");return n&&n.canvas===i?(function Jre(t,i){const e=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[zf]={initial:{height:n,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",nM(o)){const s=b3(t,"width");void 0!==s&&(t.width=s)}if(nM(n))if(""===t.style.height)t.height=t.width/(i||2);else{const s=b3(t,"height");void 0!==s&&(t.height=s)}}(i,e),n):null}releaseContext(i){const e=i.canvas;if(!e[zf])return!1;const n=e[zf].initial;["height","width"].forEach(s=>{const r=n[s];tn(r)?e.removeAttribute(s):e.setAttribute(s,r)});const o=n.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[zf],!0}addEventListener(i,e,n){this.removeEventListener(i,e),(i.$proxies||(i.$proxies={}))[e]=({attach:iae,detach:oae,resize:aae}[e]||lae)(i,e,n)}removeEventListener(i,e){const n=i.$proxies||(i.$proxies={}),o=n[e];o&&(({attach:ev,detach:ev,resize:ev}[e]||tae)(i,e,o),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,e,n,o){return function Tse(t,i,e,n){const o=Rf(t),s=va(o,"margin"),r=Ff(o.maxWidth,t,"clientWidth")||wf,a=Ff(o.maxHeight,t,"clientHeight")||wf,l=function wse(t,i,e){let n,o;if(void 0===i||void 0===e){const s=qC(t);if(s){const r=s.getBoundingClientRect(),a=Rf(s),l=va(a,"border","width"),c=va(a,"padding");i=r.width-c.width-l.width,e=r.height-c.height-l.height,n=Ff(a.maxWidth,s,"clientWidth"),o=Ff(a.maxHeight,s,"clientHeight")}else i=t.clientWidth,e=t.clientHeight}return{width:i,height:e,maxWidth:n||wf,maxHeight:o||wf}}(t,i,e);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const p=va(o,"border","width"),m=va(o,"padding");c-=m.width+p.width,u-=m.height+p.height}return c=Math.max(0,c-s.width),u=Math.max(0,n?Math.floor(c/n):u-s.height),c=WC(Math.min(c,r,l.maxWidth)),u=WC(Math.min(u,a,l.maxHeight)),c&&!u&&(u=WC(c/2)),{width:c,height:u}}(i,e,n,o)}isAttached(i){const e=qC(i);return!(!e||!e.isConnected)}}class dae{constructor(){this._init=[]}notify(i,e,n,o){"beforeInit"===e&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install"));const s=o?this._descriptors(i).filter(o):this._descriptors(i),r=this._notify(s,i,e,n);return"afterDestroy"===e&&(this._notify(s,i,"stop"),this._notify(this._init,i,"uninstall")),r}_notify(i,e,n,o){o=o||{};for(const s of i){const r=s.plugin;if(!1===Mn(r[n],[e,o,s.options],r)&&o.cancelable)return!1}return!0}invalidate(){tn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),e}_createDescriptors(i,e){const n=i&&i.config,o=Nt(n.options&&n.options.plugins,{}),s=function pae(t){const i={},e=[],n=Object.keys(bs.plugins.items);for(let s=0;ss.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(o(e,n),i,"stop"),this._notify(o(n,e),i,"start")}}function hae(t,i){return i||!1!==t?!0===t?{}:t:null}function gae(t,{plugin:i,local:e},n,o){const s=t.pluginScopeKeys(i),r=t.getOptionScopes(n,s);return e&&i.defaults&&r.push(i.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function tv(t,i){return((i.datasets||{})[t]||{}).indexAxis||i.indexAxis||(Qt.datasets[t]||{}).indexAxis||"x"}function nv(t,i){return"x"===t||"y"===t?t:i.axis||function Iae(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(i.position)||t.charAt(0).toLowerCase()}function rM(t){const i=t.options||(t.options={});i.plugins=Nt(i.plugins,{}),i.scales=function Cae(t,i){const e=ma[t.type]||{scales:{}},n=i.scales||{},o=tv(t.type,i),s=Object.create(null),r=Object.create(null);return Object.keys(n).forEach(a=>{const l=n[a];if(!qt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=nv(a,l),u=function _ae(t,i){return t===i?"_index_":"_value_"}(c,o),p=e.scales||{};s[c]=s[c]||a,r[a]=ju(Object.create(null),[{axis:c},l,p[c],p[u]])}),t.data.datasets.forEach(a=>{const l=a.type||t.type,c=a.indexAxis||tv(l,i),p=(ma[l]||{}).scales||{};Object.keys(p).forEach(m=>{const _=function mae(t,i){let e=t;return"_index_"===t?e=i:"_value_"===t&&(e="x"===i?"y":"x"),e}(m,c),b=a[_+"AxisID"]||s[_]||_;r[b]=r[b]||Object.create(null),ju(r[b],[{axis:_},n[b],p[m]])})}),Object.keys(r).forEach(a=>{const l=r[a];ju(l,[Qt.scales[l.type],Qt.scale])}),r}(t,i)}function aM(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lM=new Map,cM=new Set;function Uf(t,i){let e=lM.get(t);return e||(e=i(),lM.set(t,e),cM.add(e)),e}const ad=(t,i,e)=>{const n=Pr(i,e);void 0!==n&&t.add(n)};class bae{constructor(i){this._config=function vae(t){return(t=t||{}).data=aM(t.data),rM(t),t}(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=aM(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){const i=this._config;this.clearCache(),rM(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Uf(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,e){return Uf(`${i}.transition.${e}`,()=>[[`datasets.${i}.transitions.${e}`,`transitions.${e}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,e){return Uf(`${i}-${e}`,()=>[[`datasets.${i}.elements.${e}`,`datasets.${i}`,`elements.${e}`,""]])}pluginScopeKeys(i){const e=i.id;return Uf(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,e){const n=this._scopeCache;let o=n.get(i);return(!o||e)&&(o=new Map,n.set(i,o)),o}getOptionScopes(i,e,n){const{options:o,type:s}=this,r=this._cachedScopes(i,n),a=r.get(e);if(a)return a;const l=new Set;e.forEach(u=>{i&&(l.add(i),u.forEach(p=>ad(l,i,p))),u.forEach(p=>ad(l,o,p)),u.forEach(p=>ad(l,ma[s]||{},p)),u.forEach(p=>ad(l,Qt,p)),u.forEach(p=>ad(l,HC,p))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),cM.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:i,type:e}=this;return[i,ma[e]||{},Qt.datasets[e]||{},{type:e},Qt,HC]}resolveNamedOptions(i,e,n,o=[""]){const s={$shared:!0},{resolver:r,subPrefixes:a}=uM(this._resolverCache,i,o);let l=r;(function xae(t,i){const{isScriptable:e,isIndexable:n}=d3(t);for(const o of i){const s=e(o),r=n(o),a=(r||s)&&t[o];if(s&&(Fr(a)||yae(a))||r&&kn(a))return!0}return!1})(r,e)&&(s.$shared=!1,l=Wl(r,n=Fr(n)?n():n,this.createResolver(i,n,a)));for(const c of e)s[c]=l[c];return s}createResolver(i,e,n=[""],o){const{resolver:s}=uM(this._resolverCache,i,n);return qt(e)?Wl(s,e,void 0,o):s}}function uM(t,i,e){let n=t.get(i);n||(n=new Map,t.set(i,n));const o=e.join();let s=n.get(o);return s||(s={resolver:$C(i,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,s)),s}const yae=t=>qt(t)&&Object.getOwnPropertyNames(t).reduce((i,e)=>i||Fr(t[e]),!1),wae=["top","bottom","left","right","chartArea"];function dM(t,i){return"top"===t||"bottom"===t||-1===wae.indexOf(t)&&"x"===i}function pM(t,i){return function(e,n){return e[t]===n[t]?e[i]-n[i]:e[t]-n[t]}}function hM(t){const i=t.chart,e=i.options.animation;i.notifyPlugins("afterRender"),Mn(e&&e.onComplete,[t],i)}function Tae(t){const i=t.chart,e=i.options.animation;Mn(e&&e.onProgress,[t],i)}function fM(t){return C3()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const $f={},gM=t=>{const i=fM(t);return Object.values($f).filter(e=>e.canvas===i).pop()};function Sae(t,i,e){const n=Object.keys(t);for(const o of n){const s=+o;if(s>=i){const r=t[o];delete t[o],(e>0||s>i)&&(t[s+e]=r)}}}class iv{constructor(i,e){const n=this.config=new bae(e),o=fM(i),s=gM(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function uae(t){return!C3()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Yre:cae}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=aoe(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function xoe(t,i){let e;return function(...n){return i?(clearTimeout(e),e=setTimeout(t,i,n)):t.apply(this,n),i}}(p=>this.update(p),r.resizeDelay||0),this._dataChanges=[],$f[this.id]=this,a&&l?(tr.listen(this,"complete",hM),tr.listen(this,"progress",Tae),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:i,maintainAspectRatio:e},width:n,height:o,_aspectRatio:s}=this;return tn(i)?e&&s?s:o?n/o:null:i}get data(){return this.config.data}set data(i){this.config.data=i}get options(){return this._options}set options(i){this.config.options=i}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():v3(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return l3(this.canvas,this.ctx),this}stop(){return tr.stop(this),this}resize(i,e){tr.running(this)?this._resizeBeforeDraw={width:i,height:e}:this._resize(i,e)}_resize(i,e){const n=this.options,r=this.platform.getMaximumSize(this.canvas,i,e,n.maintainAspectRatio&&this.aspectRatio),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,v3(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Mn(n.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){_n(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const i=this.options,e=i.scales,n=this.scales,o=Object.keys(n).reduce((r,a)=>(r[a]=!1,r),{});let s=[];e&&(s=s.concat(Object.keys(e).map(r=>{const a=e[r],l=nv(r,a),c="r"===l,u="x"===l;return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),_n(s,r=>{const a=r.options,l=a.id,c=nv(l,a),u=Nt(a.type,r.dtype);(void 0===a.position||dM(a.position,c)!==dM(r.dposition))&&(a.position=r.dposition),o[l]=!0;let p=null;l in n&&n[l].type===u?p=n[l]:(p=new(bs.getScale(u))({id:l,type:u,ctx:this.ctx,chart:this}),n[p.id]=p),p.init(a,i)}),_n(o,(r,a)=>{r||delete n[a]}),_n(n,r=>{Fi.configure(this,r,r.options),Fi.addBox(this,r)})}_updateMetasets(){const i=this._metasets,e=this.data.datasets.length,n=i.length;if(i.sort((o,s)=>o.index-s.index),n>e){for(let o=e;oe.length&&delete this._stacks,i.forEach((n,o)=>{0===e.filter(s=>s===n._dataset).length&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const i=[],e=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=e.length;n{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(i){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:i,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(i),this.notifyPlugins("afterUpdate",{mode:i}),this._layers.sort(pM("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_n(this.scales,i=>{Fi.removeBox(this,i)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const i=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(i.events);(!Rk(e,n)||!!this._responsiveListeners!==i.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:i}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:s}of e)Sae(i,o,"_removeElements"===n?-s:s)}_getUniformDataChanges(){const i=this._dataChanges;if(!i||!i.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=s=>new Set(i.filter(r=>r[0]===s).map((r,a)=>a+","+r.splice(1).join(","))),o=n(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(i){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Fi.update(this,this.width,this.height,i);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],_n(this.boxes,o=>{n&&"chartArea"===o.position||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(i){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:i,cancelable:!0})){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(i[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(i){const e=this.ctx,n=i._clip,o=!n.disabled,s=this.chartArea,r={meta:i,index:i.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(o&&Of(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),i.controller.draw(),o&&Lf(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(i){return Zu(i,this.chartArea,this._minPadding)}getElementsAtEventForMode(i,e,n,o){const s=Ure.modes[e];return"function"==typeof s?s(this,i,n,o):[]}getDatasetMeta(i){const e=this.data.datasets[i],n=this._metasets;let o=n.filter(s=>s&&s._dataset===e).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:i,_dataset:e,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(i){const e=this.data.datasets[i];if(!e)return!1;const n=this.getDatasetMeta(i);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(i,e){this.getDatasetMeta(i).hidden=!e}toggleDataVisibility(i){this._hiddenIndices[i]=!this._hiddenIndices[i]}getDataVisibility(i){return!this._hiddenIndices[i]}_updateVisibility(i,e,n){const o=n?"show":"hide",s=this.getDatasetMeta(i),r=s.controller._resolveAnimations(void 0,o);Fo(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(i,n),r.update(s,{visible:n}),this.update(a=>a.datasetIndex===i?o:void 0))}hide(i,e){this._updateVisibility(i,e,!1)}show(i,e){this._updateVisibility(i,e,!0)}_destroyDatasetMeta(i){const e=this._metasets[i];e&&e.controller&&e.controller._destroy(),delete this._metasets[i]}_stop(){let i,e;for(this.stop(),tr.remove(this),i=0,e=this.data.datasets.length;i{e.addEventListener(this,s,r),i[s]=r},o=(s,r,a)=>{s.offsetX=r,s.offsetY=a,this._eventHandler(s)};_n(this.options.events,s=>n(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const i=this._responsiveListeners,e=this.platform,n=(l,c)=>{e.addEventListener(this,l,c),i[l]=c},o=(l,c)=>{i[l]&&(e.removeEventListener(this,l,c),delete i[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",s),n("detach",r)};r=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){_n(this._listeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._listeners={},_n(this._responsiveListeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._responsiveListeners=void 0}updateHoverStyle(i,e,n){const o=n?"set":"remove";let s,r,a,l;for("dataset"===e&&(s=this.getDatasetMeta(i[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=i.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[r],index:r}});!xf(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(i,e,n){return this._plugins.notify(this,i,e,n)}_updateHoverStyles(i,e,n){const o=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),r=s(e,i),a=n?i:s(i,e);r.length&&this.updateHoverStyle(r,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(i,e){const n={event:i,replay:e,cancelable:!0,inChartArea:this.isPointInArea(i)},o=r=>(r.options.events||this.options.events).includes(i.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const s=this._handleEvent(i,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(s||n.changed)&&this.render(),this}_handleEvent(i,e,n){const{_active:o=[],options:s}=this,a=this._getActiveElements(i,o,n,e),l=function hoe(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(i),c=function Eae(t,i,e,n){return e&&"mouseout"!==t.type?n?i:t:null}(i,this._lastEvent,n,l);n&&(this._lastEvent=null,Mn(s.onHover,[i,a,this],this),l&&Mn(s.onClick,[i,a,this],this));const u=!xf(a,o);return(u||e)&&(this._active=a,this._updateHoverStyles(a,o,e)),this._lastEvent=c,u}_getActiveElements(i,e,n,o){if("mouseout"===i.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(i,s.mode,s,o)}}const mM=()=>_n(iv.instances,t=>t._plugins.invalidate()),Br=!0;function _M(t,i,e){const{startAngle:n,pixelMargin:o,x:s,y:r,outerRadius:a,innerRadius:l}=i;let c=o/a;t.beginPath(),t.arc(s,r,a,n-c,e+c),l>o?(c=o/l,t.arc(s,r,l,e+c,n-c,!0)):t.arc(s,r,o,e+Qn,n-Qn),t.closePath(),t.clip()}function Yl(t,i,e,n){return{x:e+t*Math.cos(i),y:n+t*Math.sin(i)}}function ov(t,i,e,n,o,s){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=i,p=Math.max(i.outerRadius+n+e-c,0),m=u>0?u+n+e+c:0;let _=0;const b=o-l;if(n){const tt=((u>0?u-n:0)+(p>0?p-n:0))/2;_=(b-(0!==tt?b*tt/(tt+n):b))/2}const P=(b-Math.max(.001,b*p-e/Vn)/p)/2,W=l+P+_,te=o-P-_,{outerStart:fe,outerEnd:Ce,innerStart:ve,innerEnd:ke}=function kae(t,i,e,n){const o=function Dae(t){return UC(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),s=(e-i)/2,r=Math.min(s,n*i/2),a=l=>{const c=(e-Math.min(s,l))*n/2;return pi(l,0,Math.min(s,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:pi(o.innerStart,0,r),innerEnd:pi(o.innerEnd,0,r)}}(i,m,p,te-W),Pe=p-fe,$e=p-Ce,Ke=W+fe/Pe,pt=te-Ce/$e,jt=m+ve,Vt=m+ke,vn=W+ve/jt,hi=te-ke/Vt;if(t.beginPath(),s){if(t.arc(r,a,p,Ke,pt),Ce>0){const tt=Yl($e,pt,r,a);t.arc(tt.x,tt.y,Ce,pt,te+Qn)}const wt=Yl(Vt,te,r,a);if(t.lineTo(wt.x,wt.y),ke>0){const tt=Yl(Vt,hi,r,a);t.arc(tt.x,tt.y,ke,te+Qn,hi+Math.PI)}if(t.arc(r,a,m,te-ke/m,W+ve/m,!0),ve>0){const tt=Yl(jt,vn,r,a);t.arc(tt.x,tt.y,ve,vn+Math.PI,W-Qn)}const We=Yl(Pe,W,r,a);if(t.lineTo(We.x,We.y),fe>0){const tt=Yl(Pe,Ke,r,a);t.arc(tt.x,tt.y,fe,W-Qn,Ke)}}else{t.moveTo(r,a);const wt=Math.cos(Ke)*p+r,We=Math.sin(Ke)*p+a;t.lineTo(wt,We);const tt=Math.cos(pt)*p+r,ct=Math.sin(pt)*p+a;t.lineTo(tt,ct)}t.closePath()}Object.defineProperties(iv,{defaults:{enumerable:Br,value:Qt},instances:{enumerable:Br,value:$f},overrides:{enumerable:Br,value:ma},registry:{enumerable:Br,value:bs},version:{enumerable:Br,value:"3.9.1"},getChart:{enumerable:Br,value:gM},register:{enumerable:Br,value:(...t)=>{bs.add(...t),mM()}},unregister:{enumerable:Br,value:(...t)=>{bs.remove(...t),mM()}}});class Kf extends Xo{constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,e,n){const o=this.getProps(["x","y"],n),{angle:s,distance:r}=zk(o,{x:i,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),m=this.options.spacing/2,b=Nt(p,l-a)>=Cn||Ku(s,a,l),E=Xs(r,c+m,u+m);return b&&E}getCenterPoint(i){const{x:e,y:n,startAngle:o,endAngle:s,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],i),{offset:l,spacing:c}=this.options,u=(o+s)/2,p=(r+a+c+l)/2;return{x:e+Math.cos(u)*p,y:n+Math.sin(u)*p}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:e,circumference:n}=this,o=(e.offset||0)/2,s=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Cn?Math.floor(n/Cn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=0;if(o){a=o/2;const c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=Vn&&(a=o)}i.fillStyle=e.backgroundColor,i.strokeStyle=e.borderColor;const l=function Mae(t,i,e,n,o){const{fullCircles:s,startAngle:r,circumference:a}=i;let l=i.endAngle;if(s){ov(t,i,e,n,r+Cn,o);for(let c=0;ca&&s>a)?n+c-l:c-l}}function Rae(t,i,e,n){const{points:o,options:s}=i,{count:r,start:a,loop:l,ilen:c}=CM(o,e,n),u=function Fae(t){return t.stepped?Zoe:t.tension||"monotone"===t.cubicInterpolationMode?Yoe:Pae}(s);let _,b,E,{move:p=!0,reverse:m}=n||{};for(_=0;_<=c;++_)b=o[(a+(m?c-_:_))%r],!b.skip&&(p?(t.moveTo(b.x,b.y),p=!1):u(t,E,b,m,s.stepped),E=b);return l&&(b=o[(a+(m?c:0))%r],u(t,E,b,m,s.stepped)),!!l}function Nae(t,i,e,n){const o=i.points,{count:s,start:r,ilen:a}=CM(o,e,n),{move:l=!0,reverse:c}=n||{};let m,_,b,E,P,W,u=0,p=0;const te=Ce=>(r+(c?a-Ce:Ce))%s,fe=()=>{E!==P&&(t.lineTo(u,P),t.lineTo(u,E),t.lineTo(u,W))};for(l&&(_=o[te(0)],t.moveTo(_.x,_.y)),m=0;m<=a;++m){if(_=o[te(m)],_.skip)continue;const Ce=_.x,ve=_.y,ke=0|Ce;ke===b?(veP&&(P=ve),u=(p*u+Ce)/++p):(fe(),t.lineTo(Ce,ve),b=ke,p=0,E=P=ve),W=ve}fe()}function sv(t){const i=t.options;return t._decimated||t._loop||i.tension||"monotone"===i.cubicInterpolationMode||i.stepped||i.borderDash&&i.borderDash.length?Rae:Nae}Kf.id="arc",Kf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Kf.defaultRoutes={backgroundColor:"backgroundColor"};const zae="function"==typeof Path2D;let Gf=(()=>{class t extends Xo{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;!o.tension&&"monotone"!==o.cubicInterpolationMode||o.stepped||this._pointsUpdated||(vse(this._points,o,e,o.spanGaps?this._loop:this._fullLoop,n),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Rse(t,i){const e=t.points,n=t.options.spanGaps,o=e.length;if(!o)return[];const s=!!t._loop,{start:r,end:a}=function Pse(t,i,e,n){let o=0,s=i-1;if(e&&!n)for(;oo&&t[s%i].skip;)s--;return s%=i,{start:o,end:s}}(e,o,s,n);return function D3(t,i,e,n){return n&&n.setContext&&e?function Nse(t,i,e,n){const o=t._chart.getContext(),s=k3(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=e.length,c=[];let u=s,p=i[0].start,m=p;function _(b,E,P,W){const te=a?-1:1;if(b!==E){for(b+=l;e[b%l].skip;)b-=te;for(;e[E%l].skip;)E+=te;b%l!=E%l&&(c.push({start:b%l,end:E%l,loop:P,style:W}),u=W,p=E%l)}}for(const b of i){p=a?p:b.start;let P,E=e[p%l];for(m=p+1;m<=b.end;m++){const W=e[m%l];P=k3(n.setContext(Vr(o,{type:"segment",p0:E,p1:W,p0DataIndex:(m-1)%l,p1DataIndex:m%l,datasetIndex:r}))),Vse(P,u)&&_(p,m-1,b.loop,u),E=W,u=P}p"borderDash"!==i&&"fill"!==i},t})();function vM(t,i,e,n){const o=t.options,{[e]:s}=t.getProps([e],n);return Math.abs(i-s){class t extends Xo{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,o){const s=this.options,{x:r,y:a}=this.getProps(["x","y"],o);return Math.pow(e-r,2)+Math.pow(n-a,2){yM(i)})}var Jae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,i,e)=>{if(!e.enabled)return void xM(t);const n=t.width;t.data.datasets.forEach((o,s)=>{const{_data:r,indexAxis:a}=o,l=t.getDatasetMeta(s),c=r||o.data;if("y"===Xu([a,t.options.indexAxis])||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type||t.options.parsing)return;let b,{start:p,count:m}=function Xae(t,i){const e=i.length;let o,n=0;const{iScale:s}=t,{min:r,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(n=pi(Js(i,s.axis,r).lo,0,e-1)),o=c?pi(Js(i,s.axis,a).hi+1,n,e)-n:e-n,{start:n,count:o}}(l,c);if(m<=(e.threshold||4*n))yM(o);else{switch(tn(r)&&(o._data=c,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(E){this._data=E}})),e.algorithm){case"lttb":b=function Zae(t,i,e,n,o){const s=o.samples||n;if(s>=e)return t.slice(i,i+e);const r=[],a=(e-2)/(s-2);let l=0;const c=i+e-1;let p,m,_,b,E,u=i;for(r[l++]=t[u],p=0;p_&&(_=b,m=t[te],E=te);r[l++]=m,u=E}return r[l++]=t[c],r}(c,p,m,n,e);break;case"min-max":b=function Yae(t,i,e,n){let r,a,l,c,u,p,m,_,b,E,o=0,s=0;const P=[],te=t[i].x,Ce=t[i+e-1].x-te;for(r=i;rE&&(E=c,m=r),o=(s*o+a.x)/++s;else{const ke=r-1;if(!tn(p)&&!tn(m)){const Pe=Math.min(p,m),$e=Math.max(p,m);Pe!==_&&Pe!==ke&&P.push({...t[Pe],x:o}),$e!==_&&$e!==ke&&P.push({...t[$e],x:o})}r>0&&ke!==_&&P.push(t[ke]),P.push(a),u=ve,s=0,b=E=c,p=m=_=r}}return P}(c,p,m,n);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=b}})},destroy(t){xM(t)}};function lv(t,i,e,n){if(n)return;let o=i[t],s=e[t];return"angle"===t&&(o=vo(o),s=vo(s)),{property:t,start:o,end:s}}function cv(t,i,e){for(;i>t;i--){const n=e[i];if(!isNaN(n.x)&&!isNaN(n.y))break}return i}function AM(t,i,e,n){return t&&i?n(t[e],i[e]):t?t[e]:i?i[e]:0}function wM(t,i){let e=[],n=!1;return kn(t)?(n=!0,e=t):e=function tle(t,i){const{x:e=null,y:n=null}=t||{},o=i.points,s=[];return i.segments.forEach(({start:r,end:a})=>{a=cv(r,a,o);const l=o[r],c=o[a];null!==n?(s.push({x:l.x,y:n}),s.push({x:c.x,y:n})):null!==e&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}(t,i),e.length?new Gf({points:e,options:{tension:0},_loop:n,_fullLoop:n}):null}function TM(t){return t&&!1!==t.fill}function nle(t,i,e){let o=t[i].fill;const s=[i];let r;if(!e)return o;for(;!1!==o&&-1===s.indexOf(o);){if(!ti(o))return o;if(r=t[o],!r)return!1;if(r.visible)return o;s.push(o),o=r.fill}return!1}function ile(t,i,e){const n=function ale(t){const i=t.options,e=i.fill;let n=Nt(e&&e.target,e);return void 0===n&&(n=!!i.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(qt(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return ti(o)&&Math.floor(o)===o?function ole(t,i,e,n){return("-"===t||"+"===t)&&(e=i+e),!(e===i||e<0||e>=n)&&e}(n[0],i,o,e):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function ule(t,i,e){const n=[];for(let o=0;o=0;--r){const a=o[r].$filler;a&&(a.line.updateControlPoints(s,a.axis),n&&a.fill&&uv(t.ctx,a,s))}},beforeDatasetsDraw(t,i,e){if("beforeDatasetsDraw"!==e.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const s=n[o].$filler;TM(s)&&uv(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,i,e){const n=i.meta.$filler;!TM(n)||"beforeDatasetDraw"!==e.drawTime||uv(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const MM=(t,i)=>{let{boxHeight:e=i,boxWidth:n=i}=t;return t.usePointStyle&&(e=Math.min(e,i),n=t.pointStyleWidth||Math.min(n,i)),{boxWidth:n,boxHeight:e,itemHeight:Math.max(i,e)}};class OM extends Xo{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e,n){this.maxWidth=i,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const i=this.options.labels||{};let e=Mn(i.generateLabels,[this.chart],this)||[];i.filter&&(e=e.filter(n=>i.filter(n,this.chart.data))),i.sort&&(e=e.sort((n,o)=>i.sort(n,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:i,ctx:e}=this;if(!i.display)return void(this.width=this.height=0);const n=i.labels,o=ui(n.font),s=o.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=MM(n,s);let c,u;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(u,i.maxHeight||this.maxHeight)}_fitRows(i,e,n,o){const{ctx:s,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let p=i;s.textAlign="left",s.textBaseline="middle";let m=-1,_=-u;return this.legendItems.forEach((b,E)=>{const P=n+e/2+s.measureText(b.text).width;(0===E||c[c.length-1]+P+2*a>r)&&(p+=u,c[c.length-(E>0?0:1)]=0,_+=u,m++),l[E]={left:0,top:_,row:m,width:P,height:o},c[c.length-1]+=P+a}),p}_fitCols(i,e,n,o){const{ctx:s,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-i;let p=a,m=0,_=0,b=0,E=0;return this.legendItems.forEach((P,W)=>{const te=n+e/2+s.measureText(P.text).width;W>0&&_+o+2*a>u&&(p+=m+a,c.push({width:m,height:_}),b+=m+a,E++,m=_=0),l[W]={left:b,top:_,col:E,width:te,height:o},m=Math.max(m,te),_+=o+a}),p+=m,c.push({width:m,height:_}),p}adjustHitBoxes(){if(!this.options.display)return;const i=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:o},rtl:s}}=this,r=Zl(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Li(n,this.left+o,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=Li(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+i+o,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+o}else{let a=0,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const i=this.ctx;Of(i,this),this._draw(),Lf(i)}}_draw(){const{options:i,columnSizes:e,lineWidths:n,ctx:o}=this,{align:s,labels:r}=i,a=Qt.color,l=Zl(i.rtl,this.left,this.width),c=ui(r.font),{color:u,padding:p}=r,m=c.size,_=m/2;let b;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:E,boxHeight:P,itemHeight:W}=MM(r,m),Ce=this.isHorizontal(),ve=this._computeTitleHeight();b=Ce?{x:Li(s,this.left+p,this.right-n[0]),y:this.top+p+ve,line:0}:{x:this.left+p,y:Li(s,this.top+ve+p,this.bottom-e[0].height),line:0},x3(this.ctx,i.textDirection);const ke=W+p;this.legendItems.forEach((Pe,$e)=>{o.strokeStyle=Pe.fontColor||u,o.fillStyle=Pe.fontColor||u;const Ke=o.measureText(Pe.text).width,pt=l.textAlign(Pe.textAlign||(Pe.textAlign=r.textAlign)),jt=E+_+Ke;let Vt=b.x,vn=b.y;l.setWidth(this.width),Ce?$e>0&&Vt+jt+p>this.right&&(vn=b.y+=ke,b.line++,Vt=b.x=Li(s,this.left+p,this.right-n[b.line])):$e>0&&vn+ke>this.bottom&&(Vt=b.x=Vt+e[b.line].width+p,b.line++,vn=b.y=Li(s,this.top+ve+p,this.bottom-e[b.line].height)),function(Pe,$e,Ke){if(isNaN(E)||E<=0||isNaN(P)||P<0)return;o.save();const pt=Nt(Ke.lineWidth,1);if(o.fillStyle=Nt(Ke.fillStyle,a),o.lineCap=Nt(Ke.lineCap,"butt"),o.lineDashOffset=Nt(Ke.lineDashOffset,0),o.lineJoin=Nt(Ke.lineJoin,"miter"),o.lineWidth=pt,o.strokeStyle=Nt(Ke.strokeStyle,a),o.setLineDash(Nt(Ke.lineDash,[])),r.usePointStyle){const jt={radius:P*Math.SQRT2/2,pointStyle:Ke.pointStyle,rotation:Ke.rotation,borderWidth:pt},Vt=l.xPlus(Pe,E/2);c3(o,jt,Vt,$e+_,r.pointStyleWidth&&E)}else{const jt=$e+Math.max((m-P)/2,0),Vt=l.leftForLtr(Pe,E),vn=Ca(Ke.borderRadius);o.beginPath(),Object.values(vn).some(hi=>0!==hi)?Yu(o,{x:Vt,y:jt,w:E,h:P,radius:vn}):o.rect(Vt,jt,E,P),o.fill(),0!==pt&&o.stroke()}o.restore()}(l.x(Vt),vn,Pe),Vt=((t,i,e,n)=>t===(n?"left":"right")?e:"center"===t?(i+e)/2:i)(pt,Vt+E+_,Ce?Vt+jt:this.right,i.rtl),function(Pe,$e,Ke){Ia(o,Ke.text,Pe,$e+W/2,c,{strikethrough:Ke.hidden,textAlign:l.textAlign(Ke.textAlign)})}(l.x(Vt),vn,Pe),Ce?b.x+=jt+p:b.y+=ke}),A3(this.ctx,i.textDirection)}drawTitle(){const i=this.options,e=i.title,n=ui(e.font),o=Pi(e.padding);if(!e.display)return;const s=Zl(i.rtl,this.left,this.width),r=this.ctx,a=e.position,c=o.top+n.size/2;let u,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),u=this.top+c,p=Li(i.align,p,this.right-m);else{const b=this.columnSizes.reduce((E,P)=>Math.max(E,P.height),0);u=c+Li(i.align,this.top,this.bottom-b-i.labels.padding-this._computeTitleHeight())}const _=Li(a,p,p+m);r.textAlign=s.textAlign(LC(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,Ia(r,e.text,_,u,n)}_computeTitleHeight(){const i=this.options.title,e=ui(i.font),n=Pi(i.padding);return i.display?e.lineHeight+n.height:0}_getLegendItemAt(i,e){let n,o,s;if(Xs(i,this.left,this.right)&&Xs(e,this.top,this.bottom))for(s=this.legendHitBoxes,n=0;nnull!==t&&null!==i&&t.datasetIndex===i.datasetIndex&&t.index===i.index)(o,n);o&&!s&&Mn(e.onLeave,[i,o,this],this),this._hoveredItem=n,n&&!s&&Mn(e.onHover,[i,n,this],this)}else n&&Mn(e.onClick,[i,n,this],this)}}var yle={id:"legend",_element:OM,start(t,i,e){const n=t.legend=new OM({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n)},stop(t){Fi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,i,e){const n=t.legend;Fi.configure(t,n,e),n.options=e},afterUpdate(t){const i=t.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(t,i){i.replay||t.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,i,e){const n=i.datasetIndex,o=e.chart;o.isDatasetVisible(n)?(o.hide(n),i.hidden=!0):(o.show(n),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const i=t.data.datasets,{labels:{usePointStyle:e,pointStyle:n,textAlign:o,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map(r=>{const a=r.controller.getStyle(e?0:void 0),l=Pi(a.borderWidth);return{text:i[r.index].label,fillStyle:a.backgroundColor,fontColor:s,hidden:!r.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:n||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:r.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dv extends Xo{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=i,this.height=this.bottom=e;const o=kn(n.text)?n.text.length:1;this._padding=Pi(n.padding);const s=o*ui(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const i=this.options.position;return"top"===i||"bottom"===i}_drawArgs(i){const{top:e,left:n,bottom:o,right:s,options:r}=this,a=r.align;let c,u,p,l=0;return this.isHorizontal()?(u=Li(a,n,s),p=e+i,c=s-n):("left"===r.position?(u=n+i,p=Li(a,o,e),l=-.5*Vn):(u=s-i,p=Li(a,e,o),l=.5*Vn),c=o-e),{titleX:u,titleY:p,maxWidth:c,rotation:l}}draw(){const i=this.ctx,e=this.options;if(!e.display)return;const n=ui(e.font),s=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Ia(i,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:c,textAlign:LC(e.align),textBaseline:"middle",translation:[r,a]})}}var Ale={id:"title",_element:dv,start(t,i,e){!function xle(t,i){const e=new dv({ctx:t.ctx,options:i,chart:t});Fi.configure(t,e,i),Fi.addBox(t,e),t.titleBlock=e}(t,e)},stop(t){Fi.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,i,e){const n=t.titleBlock;Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Wf=new WeakMap;var wle={id:"subtitle",start(t,i,e){const n=new dv({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n),Wf.set(t,n)},stop(t){Fi.removeBox(t,Wf.get(t)),Wf.delete(t)},beforeUpdate(t,i,e){const n=Wf.get(t);Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ld={average(t){if(!t.length)return!1;let i,e,n=0,o=0,s=0;for(i=0,e=t.length;i-1?t.split("\n"):t}function Tle(t,i){const{element:e,datasetIndex:n,index:o}=i,s=t.getDatasetMeta(n).controller,{label:r,value:a}=s.getLabelAndValue(o);return{chart:t,label:r,parsed:s.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:s.getDataset(),dataIndex:o,datasetIndex:n,element:e}}function LM(t,i){const e=t.chart.ctx,{body:n,footer:o,title:s}=t,{boxWidth:r,boxHeight:a}=i,l=ui(i.bodyFont),c=ui(i.titleFont),u=ui(i.footerFont),p=s.length,m=o.length,_=n.length,b=Pi(i.padding);let E=b.height,P=0,W=n.reduce((Ce,ve)=>Ce+ve.before.length+ve.lines.length+ve.after.length,0);W+=t.beforeBody.length+t.afterBody.length,p&&(E+=p*c.lineHeight+(p-1)*i.titleSpacing+i.titleMarginBottom),W&&(E+=_*(i.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(W-_)*l.lineHeight+(W-1)*i.bodySpacing),m&&(E+=i.footerMarginTop+m*u.lineHeight+(m-1)*i.footerSpacing);let te=0;const fe=function(Ce){P=Math.max(P,e.measureText(Ce).width+te)};return e.save(),e.font=c.string,_n(t.title,fe),e.font=l.string,_n(t.beforeBody.concat(t.afterBody),fe),te=i.displayColors?r+2+i.boxPadding:0,_n(n,Ce=>{_n(Ce.before,fe),_n(Ce.lines,fe),_n(Ce.after,fe)}),te=0,e.font=u.string,_n(t.footer,fe),e.restore(),P+=b.width,{width:P,height:E}}function Dle(t,i,e,n){const{x:o,width:s}=e,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=o<=(a+l)/2?"left":"right":o<=s/2?c="left":o>=r-s/2&&(c="right"),function Ele(t,i,e,n){const{x:o,width:s}=n,r=e.caretSize+e.caretPadding;if("left"===t&&o+s+r>i.width||"right"===t&&o-s-r<0)return!0}(c,t,i,e)&&(c="center"),c}function PM(t,i,e){const n=e.yAlign||i.yAlign||function Sle(t,i){const{y:e,height:n}=i;return et.height-n/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||i.xAlign||Dle(t,i,e,n),yAlign:n}}function FM(t,i,e,n){const{caretSize:o,caretPadding:s,cornerRadius:r}=t,{xAlign:a,yAlign:l}=e,c=o+s,{topLeft:u,topRight:p,bottomLeft:m,bottomRight:_}=Ca(r);let b=function kle(t,i){let{x:e,width:n}=t;return"right"===i?e-=n:"center"===i&&(e-=n/2),e}(i,a);const E=function Mle(t,i,e){let{y:n,height:o}=t;return"top"===i?n+=e:n-="bottom"===i?o+e:o/2,n}(i,l,c);return"center"===l?"left"===a?b+=c:"right"===a&&(b-=c):"left"===a?b-=Math.max(u,m)+o:"right"===a&&(b+=Math.max(p,_)+o),{x:pi(b,0,n.width-i.width),y:pi(E,0,n.height-i.height)}}function Qf(t,i,e){const n=Pi(e.padding);return"center"===i?t.x+t.width/2:"right"===i?t.x+t.width-n.right:t.x+n.left}function RM(t){return ys([],nr(t))}function NM(t,i){const e=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return e?t.override(e):t}let VM=(()=>{class t extends Xo{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&n.options.animation&&o.animations,r=new O3(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=function Ole(t,i,e){return Vr(t,{tooltip:i,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,s=o.beforeTitle.apply(this,[e]),r=o.title.apply(this,[e]),a=o.afterTitle.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}getBeforeBody(e,n){return RM(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:o}=n,s=[];return _n(e,r=>{const a={before:[],lines:[],after:[]},l=NM(o,r);ys(a.before,nr(l.beforeLabel.call(this,r))),ys(a.lines,l.label.call(this,r)),ys(a.after,nr(l.afterLabel.call(this,r))),s.push(a)}),s}getAfterBody(e,n){return RM(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:o}=n,s=o.beforeFooter.apply(this,[e]),r=o.footer.apply(this,[e]),a=o.afterFooter.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}_createItems(e){const n=this._active,o=this.chart.data,s=[],r=[],a=[];let c,u,l=[];for(c=0,u=n.length;ce.filter(p,m,_,o))),e.itemSort&&(l=l.sort((p,m)=>e.itemSort(p,m,o))),_n(l,p=>{const m=NM(e.callbacks,p);s.push(m.labelColor.call(this,p)),r.push(m.labelPointStyle.call(this,p)),a.push(m.labelTextColor.call(this,p))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(e,n){const o=this.options.setContext(this.getContext()),s=this._active;let r,a=[];if(s.length){const l=ld[o.position].call(this,s,this._eventPosition);a=this._createItems(o),this.title=this.getTitle(a,o),this.beforeBody=this.getBeforeBody(a,o),this.body=this.getBody(a,o),this.afterBody=this.getAfterBody(a,o),this.footer=this.getFooter(a,o);const c=this._size=LM(this,o),u=Object.assign({},l,c),p=PM(this.chart,o,u),m=FM(o,u,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,r={opacity:1,x:m.x,y:m.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,s){const r=this.getCaretPosition(e,o,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,o){const{xAlign:s,yAlign:r}=this,{caretSize:a,cornerRadius:l}=o,{topLeft:c,topRight:u,bottomLeft:p,bottomRight:m}=Ca(l),{x:_,y:b}=e,{width:E,height:P}=n;let W,te,fe,Ce,ve,ke;return"center"===r?(ve=b+P/2,"left"===s?(W=_,te=W-a,Ce=ve+a,ke=ve-a):(W=_+E,te=W+a,Ce=ve-a,ke=ve+a),fe=W):(te="left"===s?_+Math.max(c,p)+a:"right"===s?_+E-Math.max(u,m)-a:this.caretX,"top"===r?(Ce=b,ve=Ce-a,W=te-a,fe=te+a):(Ce=b+P,ve=Ce+a,W=te+a,fe=te-a),ke=Ce),{x1:W,x2:te,x3:fe,y1:Ce,y2:ve,y3:ke}}drawTitle(e,n,o){const s=this.title,r=s.length;let a,l,c;if(r){const u=Zl(o.rtl,this.x,this.width);for(e.x=Qf(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",a=ui(o.titleFont),l=o.titleSpacing,n.fillStyle=o.titleColor,n.font=a.string,c=0;c0!==Ce)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Yu(e,{x:W,y:P,w:u,h:c,radius:fe}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Yu(e,{x:te,y:P+1,w:u-2,h:c-2,radius:fe}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(W,P,u,c),e.strokeRect(W,P,u,c),e.fillStyle=a.backgroundColor,e.fillRect(te,P+1,u-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:s}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:p}=o,m=ui(o.bodyFont);let _=m.lineHeight,b=0;const E=Zl(o.rtl,this.x,this.width),P=function(Ke){n.fillText(Ke,E.x(e.x+b),e.y+_/2),e.y+=_+r},W=E.textAlign(a);let te,fe,Ce,ve,ke,Pe,$e;for(n.textAlign=a,n.textBaseline="middle",n.font=m.string,e.x=Qf(this,W,o),n.fillStyle=o.bodyColor,_n(this.beforeBody,P),b=l&&"right"!==W?"center"===a?u/2+p:u+2+p:0,ve=0,Pe=s.length;ve0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,s=o&&o.x,r=o&&o.y;if(s||r){const a=ld[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=LM(this,e),c=Object.assign({},a,this._size),u=PM(n,e,c),p=FM(e,c,u,n);(s._to!==p.x||r._to!==p.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const a=Pi(n.padding);n.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=o,this.drawBackground(r,e,s,n),x3(e,n.textDirection),r.y+=a.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),A3(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,s=e.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),r=!xf(o,s),a=this._positionChanged(s,n);(r||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],a=this._getActiveElements(e,r,n,o),l=this._positionChanged(a,e),c=n||!xf(a,r)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,o,s){const r=this.options;if("mouseout"===e.type)return[];if(!s)return n;const a=this.chart.getElementsAtEventForMode(e,r.mode,r,o);return r.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:o,caretY:s,options:r}=this,a=ld[r.position].call(this,e,n);return!1!==a&&(o!==a.x||s!==a.y)}}return t.positioners=ld,t})();var Ple=Object.freeze({__proto__:null,Decimation:Jae,Filler:Cle,Legend:yle,SubTitle:wle,Title:Ale,Tooltip:{id:"tooltip",_element:VM,positioners:ld,afterInit(t,i,e){e&&(t.tooltip=new VM({chart:t,options:e}))},beforeUpdate(t,i,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,i,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const i=t.tooltip;if(i&&i._willRender()){const e={tooltip:i};if(!1===t.notifyPlugins("beforeTooltipDraw",e))return;i.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,i){t.tooltip&&t.tooltip.handleEvent(i.event,i.replay,i.inChartArea)&&(i.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,i)=>i.bodyFont.size,boxWidth:(t,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ys,title(t){if(t.length>0){const i=t[0],e=i.chart.data.labels,n=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return i.dataset.label||"";if(i.label)return i.label;if(n>0&&i.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Zf extends xa{constructor(i){super(i),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(i){const e=this._addedLabels;if(e.length){const n=this.getLabels();for(const{index:o,label:s}of e)n[o]===s&&n.splice(o,1);this._addedLabels=[]}super.init(i)}parse(i,e){if(tn(i))return null;const n=this.getLabels();return((t,i)=>null===t?null:pi(Math.round(t),0,i))(e=isFinite(e)&&n[e]===i?e:function Rle(t,i,e,n){const o=t.indexOf(i);return-1===o?((t,i,e,n)=>("string"==typeof i?(e=t.push(i)-1,n.unshift({index:e,label:i})):isNaN(i)&&(e=null),e))(t,i,e,n):o!==t.lastIndexOf(i)?e:o}(n,i,Nt(e,i),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(i||(n=0),e||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const i=this.min,e=this.max,n=this.options.offset,o=[];let s=this.getLabels();s=0===i&&e===s.length-1?s:s.slice(i,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let r=i;r<=e;r++)o.push({value:r});return o}getLabelForValue(i){const e=this.getLabels();return i>=0&&ie.length-1?null:this.getPixelForValue(e[i].value)}getValueForPixel(i){return Math.round(this._startValue+this.getDecimalForPixel(i)*this._valueRange)}getBasePixel(){return this.bottom}}function BM(t,i,{horizontal:e,minRotation:n}){const o=Yo(n),s=(e?Math.sin(o):Math.cos(o))||.001;return Math.min(i/s,.75*i*(""+t).length)}Zf.id="category",Zf.defaults={ticks:{callback:Zf.prototype.getLabelForValue}};class Yf extends xa{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,e){return tn(i)||("number"==typeof i||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){const{beginAtZero:i}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:s}=this;const r=l=>o=e?o:l,a=l=>s=n?s:l;if(i){const l=Cs(o),c=Cs(s);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(o===s){let l=1;(s>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(.05*s)),a(s+l),i||r(o-l)}this.min=o,this.max=s}getTickLimit(){const i=this.options.ticks;let o,{maxTicksLimit:e,stepSize:n}=i;return n?(o=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const i=this.options,e=i.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function Vle(t,i){const e=[],{bounds:o,step:s,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:p,includeBounds:m}=t,_=s||1,b=u-1,{min:E,max:P}=i,W=!tn(r),te=!tn(a),fe=!tn(c),Ce=(P-E)/(p+1);let ke,Pe,$e,Ke,ve=Vk((P-E)/b/_)*_;if(ve<1e-14&&!W&&!te)return[{value:E},{value:P}];Ke=Math.ceil(P/ve)-Math.floor(E/ve),Ke>b&&(ve=Vk(Ke*ve/b/_)*_),tn(l)||(ke=Math.pow(10,l),ve=Math.ceil(ve*ke)/ke),"ticks"===o?(Pe=Math.floor(E/ve)*ve,$e=Math.ceil(P/ve)*ve):(Pe=E,$e=P),W&&te&&s&&function _oe(t,i){const e=Math.round(t);return e-i<=t&&e+i>=t}((a-r)/s,ve/1e3)?(Ke=Math.round(Math.min((a-r)/ve,u)),ve=(a-r)/Ke,Pe=r,$e=a):fe?(Pe=W?r:Pe,$e=te?a:$e,Ke=c-1,ve=($e-Pe)/Ke):(Ke=($e-Pe)/ve,Ke=$u(Ke,Math.round(Ke),ve/1e3)?Math.round(Ke):Math.ceil(Ke));const pt=Math.max(Hk(ve),Hk(Pe));ke=Math.pow(10,tn(l)?pt:l),Pe=Math.round(Pe*ke)/ke,$e=Math.round($e*ke)/ke;let jt=0;for(W&&(m&&Pe!==r?(e.push({value:r}),Pe0?n:null;this._zero=!0}determineDataLimits(){const{min:i,max:e}=this.getMinMax(!0);this.min=ti(i)?Math.max(0,i):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let n=this.min,o=this.max;const s=l=>n=i?n:l,r=l=>o=e?o:l,a=(l,c)=>Math.pow(10,Math.floor(Ro(l))+c);n===o&&(n<=0?(s(1),r(10)):(s(a(n,-1)),r(a(o,1)))),n<=0&&s(a(o,-1)),o<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&s(a(n,-1)),this.min=n,this.max=o}buildTicks(){const i=this.options,n=function Ble(t,i){const e=Math.floor(Ro(i.max)),n=Math.ceil(i.max/Math.pow(10,e)),o=[];let s=Po(t.min,Math.pow(10,Math.floor(Ro(i.min)))),r=Math.floor(Ro(s)),a=Math.floor(s/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:s,major:HM(s)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),s=Math.round(a*Math.pow(10,r)*l)/l}while(ro?{start:i-e,end:i}:{start:i,end:i+e}}function jle(t,i,e,n,o){const s=Math.abs(Math.sin(e)),r=Math.abs(Math.cos(e));let a=0,l=0;n.starti.r&&(a=(n.end-i.r)/s,t.r=Math.max(t.r,i.r+a)),o.starti.b&&(l=(o.end-i.b)/r,t.b=Math.max(t.b,i.b+l))}function $le(t){return 0===t||180===t?"center":t<180?"left":"right"}function Kle(t,i,e){return"right"===e?t-=i:"center"===e&&(t-=i/2),t}function Gle(t,i,e){return 90===e||270===e?t-=i/2:(e>270||e<90)&&(t-=i),t}function jM(t,i,e,n){const{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,i,0,Cn);else{let s=t.getPointPosition(0,i);o.moveTo(s.x,s.y);for(let r=1;r{const o=Mn(this.options.pointLabels.callback,[e,n],this);return o||0===o?o:""}).filter((e,n)=>this.chart.getDataVisibility(n))}fit(){const i=this.options;i.display&&i.pointLabels.display?function zle(t){const i={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},i),n=[],o=[],s=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?Vn/s:0;for(let l=0;l=0&&i=0;o--){const s=n.setContext(t.getPointLabelContext(o)),r=ui(s.font),{x:a,y:l,textAlign:c,left:u,top:p,right:m,bottom:_}=t._pointLabelItems[o],{backdropColor:b}=s;if(!tn(b)){const E=Ca(s.borderRadius),P=Pi(s.backdropPadding);e.fillStyle=b;const W=u-P.left,te=p-P.top,fe=m-u+P.width,Ce=_-p+P.height;Object.values(E).some(ve=>0!==ve)?(e.beginPath(),Yu(e,{x:W,y:te,w:fe,h:Ce,radius:E}),e.fill()):e.fillRect(W,te,fe,Ce)}Ia(e,t._pointLabels[o],a,l+r.lineHeight/2,r,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),o.display&&this.ticks.forEach((c,u)=>{0!==u&&(a=this.getDistanceFromCenterForValue(c.value),function Wle(t,i,e,n){const o=t.ctx,s=i.circular,{color:r,lineWidth:a}=i;!s&&!n||!r||!a||e<0||(o.save(),o.strokeStyle=r,o.lineWidth=a,o.setLineDash(i.borderDash),o.lineDashOffset=i.borderDashOffset,o.beginPath(),jM(t,e,s,n),o.closePath(),o.stroke(),o.restore())}(this,o.setContext(this.getContext(u-1)),a,s))}),n.display){for(i.save(),r=s-1;r>=0;r--){const c=n.setContext(this.getPointLabelContext(r)),{color:u,lineWidth:p}=c;!p||!u||(i.lineWidth=p,i.strokeStyle=u,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(l.x,l.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){const i=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let s,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(o),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const c=n.setContext(this.getContext(l)),u=ui(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=u.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;const p=Pi(c.backdropPadding);i.fillRect(-r/2-p.left,-s-u.size/2-p.top,r+p.width,u.size+p.height)}Ia(i,a.label,0,-s,u,{color:c.color})}),i.restore()}drawTitle(){}}cd.id="radialLinear",cd.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},cd.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},cd.descriptors={angleLines:{_fallback:"grid"}};const Xf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},so=Object.keys(Xf);function Zle(t,i){return t-i}function UM(t,i){if(tn(i))return null;const e=t._adapter,{parser:n,round:o,isoWeekday:s}=t._parseOpts;let r=i;return"function"==typeof n&&(r=n(r)),ti(r)||(r="string"==typeof n?e.parse(r,n):e.parse(r)),null===r?null:(o&&(r="week"!==o||!Gl(s)&&!0!==s?e.startOf(r,o):e.startOf(r,"isoWeek",s)),+r)}function $M(t,i,e,n){const o=so.length;for(let s=so.indexOf(t);s=i?e[n]:e[o]]=!0}}else t[i]=!0}function GM(t,i,e){const n=[],o={},s=i.length;let r,a;for(r=0;r=0&&(i[l].major=!0);return i}(t,n,o,e):n}let gv=(()=>{class t extends xa{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const o=e.time||(e.time={}),s=this._adapter=new Vre._date(e.adapters.date);s.init(n),ju(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:UM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:s,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!l&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!a||!l)&&(c(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&c(this.getMinMax(!1))),s=ti(s)&&!isNaN(s)?s:+n.startOf(Date.now(),o),r=ti(r)&&!isNaN(r)?r:+n.endOf(Date.now(),o)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,s="labels"===o.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,l=function boe(t,i,e){let n=0,o=t.length;for(;nn&&t[o-1]>e;)o--;return n>0||o=so.indexOf(e);s--){const r=so[s];if(Xf[r].common&&t._adapter.diff(o,n,r)>=i-1)return r}return so[e?so.indexOf(e):0]}(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=o.major.enabled&&"year"!==this._unit?function Xle(t){for(let i=so.indexOf(t)+1,e=so.length;i+e.value))}initOffsets(e){let s,r,n=0,o=0;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),n=1===e.length?1-s:(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),o=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=pi(n,0,a),o=pi(o,0,a),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,s=this.options,r=s.time,a=r.unit||$M(r.minUnit,n,o,this._getLabelCapacity(n)),l=Nt(r.stepSize,1),c="week"===a&&r.isoWeekday,u=Gl(c)||!0===c,p={};let _,b,m=n;if(u&&(m=+e.startOf(m,"isoWeek",c)),m=+e.startOf(m,u?"day":a),e.diff(o,n,a)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+a);const E="data"===s.ticks.source&&this.getDataTimestamps();for(_=m,b=0;_P-W).map(P=>+P)}getLabelForValue(e){const o=this.options.time;return this._adapter.format(e,o.tooltipFormat?o.tooltipFormat:o.displayFormats.datetime)}_tickFormatFunction(e,n,o,s){const r=this.options,a=r.time.displayFormats,l=this._unit,c=this._majorUnit,p=c&&a[c],m=o[n],b=this._adapter.format(e,s||(c&&p&&m&&m.major?p:l&&a[l])),E=r.ticks.callback;return E?Mn(E,[b,n,o],this):b}generateTickLabels(e){let n,o,s;for(n=0,o=e.length;n0?l:1}getDataTimestamps(){let n,o,e=this._cache.data||[];if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,o=s.length;n=t[n].pos&&i<=t[o].pos&&({lo:n,hi:o}=Js(t,"pos",i)),({pos:s,time:a}=t[n]),({pos:r,time:l}=t[o])):(i>=t[n].time&&i<=t[o].time&&({lo:n,hi:o}=Js(t,"time",i)),({time:s,pos:a}=t[n]),({time:r,pos:l}=t[o]));const c=r-s;return c?a+(l-a)*(i-s)/c:a}class mv extends gv{constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const i=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(i);this._minPos=Jf(e,this.min),this._tableRange=Jf(e,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){const{min:e,max:n}=this,o=[],s=[];let r,a,l,c,u;for(r=0,a=i.length;r=e&&c<=n&&o.push(c);if(o.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=o.length;r{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const nce=["list"];function ice(t,i){1&t&&le(0,"li",5)}function oce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function sce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function rce(t,i){if(1&t&&(we(0),g(1,oce,1,2,"AngleDownIcon",19),g(2,sce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function ace(t,i){}function lce(t,i){1&t&&g(0,ace,0,0,"ng-template")}function cce(t,i){if(1&t&&(we(0),g(1,rce,3,2,"ng-container",8),g(2,lce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function uce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function dce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function pce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function hce(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit;d("ngClass",e.badgeStyleClass),h(1),dt(e.badge)}}const WM=function(t){return{"p-disabled":t}};function fce(t,i){if(1&t&&(x(0,"a",13),g(1,cce,3,2,"ng-container",8),g(2,uce,1,2,"span",14),g(3,dce,2,1,"span",15),g(4,pce,1,1,"ng-template",null,16,In),g(6,hce,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("ngClass",He(10,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==(null==n.item?null:n.item.escape))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function gce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function mce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function _ce(t,i){if(1&t&&(we(0),g(1,gce,1,2,"AngleDownIcon",19),g(2,mce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Ice(t,i){}function Cce(t,i){1&t&&g(0,Ice,0,0,"ng-template")}function vce(t,i){if(1&t&&(we(0),g(1,_ce,3,2,"ng-container",8),g(2,Cce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function bce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function yce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function xce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Ace(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}const QM=function(){return{exact:!1}};function wce(t,i){if(1&t&&(x(0,"a",25),g(1,vce,3,2,"ng-container",8),g(2,bce,1,2,"span",14),g(3,yce,2,1,"span",15),g(4,xce,1,1,"ng-template",null,26,In),g(6,Ace,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(20,QM))("ngClass",He(21,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("title",o.getItemProp(n,"title"))("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function Tce(t,i){if(1&t&&(we(0),g(1,fce,7,12,"a",11),g(2,wce,7,23,"a",12),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function Sce(t,i){}function Ece(t,i){1&t&&g(0,Sce,0,0,"ng-template")}const Dce=function(t){return{$implicit:t}};function kce(t,i){if(1&t&&(we(0),g(1,Ece,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,Dce,e.item))}}function Mce(t,i){if(1&t){const e=De();x(0,"p-panelMenuSub",28),me("itemToggle",function(o){return G(e),q(f(3).onItemToggle(o))}),A()}if(2&t){const e=f(2).$implicit,n=f();d("id",n.getItemId(e)+"_list")("panelId",n.panelId)("items",e.items)("itemTemplate",n.itemTemplate)("transitionOptions",n.transitionOptions)("focusedItemId",n.focusedItemId)("activeItemPath",n.activeItemPath)("level",n.level+1)("parentExpanded",!!n.parentExpanded&&n.isItemExpanded(e))}}function Oce(t,i){if(1&t){const e=De();x(0,"li",6)(1,"div",7),me("click",function(o){G(e);const s=f().$implicit;return q(f().onItemClick(o,s))}),g(2,Tce,3,2,"ng-container",8),g(3,kce,2,4,"ng-container",8),A(),x(4,"div",9),g(5,Mce,1,9,"p-panelMenuSub",10),A()()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();Ve(s.getItemProp(n,"styleClass")),Ii("p-hidden",!1===n.visible)("p-focus",s.isItemFocused(n)&&!s.isItemDisabled(n)),d("ngClass",s.getItemClass(n))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("aria-label",s.getItemProp(n,"label"))("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o))("data-p-disabled",s.isItemDisabled(n)),h(2),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("@submenu",s.getAnimation(n)),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Lce(t,i){if(1&t&&(g(0,ice,1,0,"li",3),g(1,Oce,6,21,"li",4)),2&t){const e=i.$implicit,n=f();d("ngIf",e.separator),h(1),d("ngIf",!e.separator&&n.isItemVisible(e))}}const Pce=function(t){return{"p-submenu-list":!0,"p-panelmenu-root-list":t}},Fce=["submenu"],Rce=["container"];function Nce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Vce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Bce(t,i){if(1&t&&(we(0),g(1,Nce,1,1,"ChevronDownIcon",17),g(2,Vce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Hce(t,i){}function zce(t,i){1&t&&g(0,Hce,0,0,"ng-template")}function jce(t,i){if(1&t&&(we(0),g(1,Bce,3,2,"ng-container",11),g(2,zce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function Uce(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function $ce(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function Kce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Gce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function qce(t,i){if(1&t&&(x(0,"a",10),g(1,jce,3,2,"ng-container",11),g(2,Uce,1,2,"span",12),g(3,$ce,2,1,"span",13),g(4,Kce,1,1,"ng-template",null,14,In),g(6,Gce,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("tabindex",-1)("title",o.getItemProp(n,"title"))("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}function Wce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Qce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Zce(t,i){if(1&t&&(we(0),g(1,Wce,1,1,"ChevronDownIcon",17),g(2,Qce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Yce(t,i){}function Xce(t,i){1&t&&g(0,Yce,0,0,"ng-template")}function Jce(t,i){if(1&t&&(we(0),g(1,Zce,3,2,"ng-container",11),g(2,Xce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function eue(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function tue(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function nue(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function iue(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function oue(t,i){if(1&t&&(x(0,"a",23),g(1,Jce,3,2,"ng-container",11),g(2,eue,1,2,"span",12),g(3,tue,2,1,"span",13),g(4,nue,1,1,"ng-template",null,24,In),g(6,iue,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(18,QM))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("tabindex",-1)("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}const sue=function(t){return{"p-panelmenu-expanded":t}};function rue(t,i){if(1&t){const e=De();x(0,"div",25),me("@rootItem.done",function(){return G(e),q(f(3).onToggleDone())}),x(1,"div",26)(2,"p-panelMenuList",27),me("headerFocus",function(o){return G(e),q(f(3).updateFocusedHeader(o))}),A()()()}if(2&t){const e=f(2),n=e.$implicit,o=e.index,s=f();d("ngClass",He(14,sue,s.isItemActive(n)))("@rootItem",s.getAnimation(n)),K("id",s.getContentId(n,o))("aria-labelledby",s.getHeaderId(n,o))("data-pc-section","toggleablecontent"),h(1),K("data-pc-section","menucontent"),h(1),d("panelId",s.getPanelId(o,n))("items",s.getItemProp(n,"items"))("itemTemplate",s.itemTemplate)("transitionOptions",s.transitionOptions)("root",!0)("activeItem",s.activeItem())("tabindex",s.tabindex)("parentExpanded",s.isItemActive(n))}}const aue=function(t,i){return{"p-component p-panelmenu-header":!0,"p-highlight":t,"p-disabled":i}};function lue(t,i){if(1&t){const e=De();x(0,"div",4)(1,"div",5),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderClick(o,r,a))})("keydown",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderKeyDown(o,r,a))}),x(2,"div",6),g(3,qce,7,10,"a",7),g(4,oue,7,19,"a",8),A()(),g(5,rue,3,16,"div",9),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();d("ngClass",s.getItemProp(n,"headerClass"))("ngStyle",s.getItemProp(n,"style")),K("data-pc-section","panel"),h(1),Ve(s.getItemProp(n,"styleClass")),d("ngClass",mt(21,aue,s.isItemActive(n),s.isItemDisabled(n)))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tabindex",0)("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getHeaderId(n,o))("aria-expanded",s.isItemActive(n))("aria-label",s.getItemProp(n,"label"))("aria-controls",s.getContentId(n,o))("aria-disabled",s.isItemDisabled(n))("data-p-highlight",s.isItemActive(n))("data-p-disabled",s.isItemDisabled(n))("data-pc-section","header"),h(2),d("ngIf",!s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.isItemGroup(n))}}function cue(t,i){if(1&t&&(we(0),g(1,lue,6,24,"div",3),Te()),2&t){const e=i.$implicit,n=f();h(1),d("ngIf",n.isItemVisible(e))}}let due=(()=>{class t{panelMenu;el;panelId;focusedItemId;items;itemTemplate;level=0;activeItemPath;root;tabindex;transitionOptions;parentExpanded;itemToggle=new ge;menuFocus=new ge;menuBlur=new ge;menuKeyDown=new ge;listViewChild;constructor(e,n){this.panelMenu=e,this.el=n}getItemId(e){return e.item?.id??`${this.panelId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{"p-menuitem":!0,"p-disabled":this.isItemDisabled(e)}}getItemProp(e,n,o){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemExpanded(e){return e.expanded}isItemActive(e){return this.isItemExpanded(e)||this.activeItemPath.some(n=>n&&n.key===e.key)}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}getAnimation(e){return this.isItemActive(e)?{value:"visible",params:{transitionParams:this.transitionOptions,height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}onItemClick(e,n){this.isItemDisabled(n)||(this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemToggle.emit({processedItem:n,expanded:!this.isItemActive(n)}))}onItemToggle(e){this.itemToggle.emit(e)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ZM)),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuSub"]],viewQuery:function(n,o){if(1&n&&je(nce,5),2&n){let s;Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",focusedItemId:"focusedItemId",items:"items",itemTemplate:"itemTemplate",level:"level",activeItemPath:"activeItemPath",root:"root",tabindex:"tabindex",transitionOptions:"transitionOptions",parentExpanded:"parentExpanded"},outputs:{itemToggle:"itemToggle",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeyDown:"menuKeyDown"},decls:3,vars:8,consts:[["role","tree",3,"ngClass","tabindex","focusin","focusout","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",4,"ngIf"],["role","treeitem",3,"ngClass","class","p-hidden","p-focus","ngStyle","pTooltip","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator"],["role","treeitem",3,"ngClass","ngStyle","pTooltip","tooltipOptions"],[1,"p-menuitem-content",3,"click"],[4,"ngIf"],[1,"p-toggleable-content"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle",4,"ngIf"],["class","p-menuitem-link",3,"ngClass","target",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],[1,"p-menuitem-link",3,"ngClass","target"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle"]],template:function(n,o){1&n&&(x(0,"ul",0,1),me("focusin",function(r){return o.menuFocus.emit(r)})("focusout",function(r){return o.menuBlur.emit(r)})("keydown",function(r){return o.menuKeyDown.emit(r)}),g(2,Lce,2,2,"ng-template",2),A()),2&n&&(d("ngClass",He(6,Pce,o.root))("tabindex",-1),K("aria-activedescendant",o.focusedItemId)("data-pc-section","menu")("aria-hidden",!o.parentExpanded),h(2),d("ngForOf",o.items))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,Or,Zo,t]},encapsulation:2,data:{animation:[Oo("submenu",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]}})}return t})(),pue=(()=>{class t{panelId;id;items;itemTemplate;parentExpanded;expanded;transitionOptions;root;tabindex;activeItem;itemToggle=new ge;headerFocus=new ge;subMenuViewChild;searchTimeout;searchValue;focused;focusedItem=bn(null);activeItemPath=bn([]);processedItems=bn([]);visibleItems=Ds(()=>{const e=this.processedItems();return this.flatItems(e)});get focusedItemId(){const e=this.focusedItem();return e&&e.item?.id?e.item.id:be.isNotEmpty(this.focusedItem())?`${this.panelId}_${this.focusedItem().key}`:void 0}ngOnChanges(e){e&&e.items&&e.items.currentValue&&this.processedItems.set(this.createProcessedItems(e.items.currentValue||[]))}getItemProp(e,n){return e&&e.item?be.getItemValue(e.item[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemActive(e){return this.activeItemPath().some(n=>n.key===e.parentKey)}isItemGroup(e){return be.isNotEmpty(e.items)}isElementInPanel(e,n){const o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)}isItemMatched(e){return this.isValidItem(e)&&this.getItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isVisibleItem(e){return!!e&&(0===e.level||this.isItemActive(e))&&this.isItemVisible(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e)&&!e.separator}findFirstItem(){return this.visibleItems().find(e=>this.isValidItem(e))}findLastItem(){return be.findLast(this.visibleItems(),e=>this.isValidItem(e))}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={icon:a.icon,expanded:a.expanded,separator:a.separator,item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}findProcessedItemByItemKey(e,n,o=0){if((n=n||this.processedItems())&&n.length)for(let s=0;s{this.isVisibleItem(o)&&(n.push(o),this.flatItems(o.items,n))}),n}changeFocusedItem(e){const{originalEvent:n,processedItem:o,focusOnNext:s,selfCheck:r,allowHeaderFocus:a=!0}=e;be.isNotEmpty(this.focusedItem())&&this.focusedItem().key!==o.key?(this.focusedItem.set(o),this.scrollInView()):a&&this.headerFocus.emit({originalEvent:n,focusOnNext:s,selfCheck:r})}scrollInView(){const e=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`);e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"nearest"})}onFocus(e){this.focused=!0;const n=this.focusedItem()||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem());null!==e.relatedTarget&&this.focusedItem.set(n)}onBlur(e){this.focused=!1,this.focusedItem.set(null),this.searchValue=""}onItemToggle(e){const{processedItem:n,expanded:o}=e;n.expanded=!n.expanded;const s=this.activeItemPath().filter(r=>r.parentKey!==n.parentKey);o&&s.push(n),this.activeItemPath.set(s),this.processedItems.mutate(r=>r.map(a=>a===n?n:a)),this.focusedItem.set(n)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findNextItem(this.focusedItem()):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()}onArrowUpKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findPrevItem(this.focusedItem()):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()}onArrowLeftKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.activeItemPath().some(o=>o.key===this.focusedItem().key)){const o=this.activeItemPath().filter(s=>s.key!==this.focusedItem().key);this.activeItemPath.set(o)}else{const o=be.isNotEmpty(this.focusedItem().parent)?this.focusedItem().parent:this.focusedItem();this.focusedItem.set(o)}e.preventDefault()}}onArrowRightKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.isItemGroup(this.focusedItem()))if(this.activeItemPath().some(s=>s.key===this.focusedItem().key))this.onArrowDownKey(e);else{const s=this.activeItemPath().filter(r=>r.parentKey!==this.focusedItem().parentKey);s.push(this.focusedItem()),this.activeItemPath.set(s)}e.preventDefault()}}onHomeKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()}onEndKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()}onEnterKey(e){if(be.isNotEmpty(this.focusedItem())){const n=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&(j.findSingle(n,'[data-pc-section="action"]')||j.findSingle(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(nthis.isValidItem(s)):void 0)||e}findPrevItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(n>0?be.findLast(this.visibleItems().slice(0,n),s=>this.isValidItem(s)):void 0)||e}searchItems(e,n){this.searchValue=(this.searchValue||"")+n;let o=null,s=!1;if(be.isNotEmpty(this.focusedItem())){const r=this.visibleItems().findIndex(a=>a.key===this.focusedItem().key);o=this.visibleItems().slice(r).find(a=>this.isItemMatched(a)),o=be.isEmpty(o)?this.visibleItems().slice(0,r).find(a=>this.isItemMatched(a)):o}else o=this.visibleItems().find(r=>this.isItemMatched(r));return be.isNotEmpty(o)&&(s=!0),be.isEmpty(o)&&be.isEmpty(this.focusedItem())&&(o=this.findFirstItem()),be.isNotEmpty(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuList"]],viewQuery:function(n,o){if(1&n&&je(Fce,5),2&n){let s;Se(s=Ee())&&(o.subMenuViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",id:"id",items:"items",itemTemplate:"itemTemplate",parentExpanded:"parentExpanded",expanded:"expanded",transitionOptions:"transitionOptions",root:"root",tabindex:"tabindex",activeItem:"activeItem"},outputs:{itemToggle:"itemToggle",headerFocus:"headerFocus"},features:[Hn],decls:2,vars:10,consts:[[3,"root","id","panelId","tabindex","itemTemplate","focusedItemId","activeItemPath","transitionOptions","items","parentExpanded","itemToggle","keydown","menuFocus","menuBlur"],["submenu",""]],template:function(n,o){1&n&&(x(0,"p-panelMenuSub",0,1),me("itemToggle",function(r){return o.onItemToggle(r)})("keydown",function(r){return o.onKeyDown(r)})("menuFocus",function(r){return o.onFocus(r)})("menuBlur",function(r){return o.onBlur(r)}),A()),2&n&&d("root",!0)("id",o.panelId+"_list")("panelId",o.panelId)("tabindex",o.tabindex)("itemTemplate",o.itemTemplate)("focusedItemId",o.focused?o.focusedItemId:void 0)("activeItemPath",o.activeItemPath())("transitionOptions",o.transitionOptions)("items",o.processedItems())("parentExpanded",o.parentExpanded)},dependencies:[due],styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,changeDetection:0})}return t})(),ZM=(()=>{class t{cd;model;style;styleClass;multiple=!1;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";id;tabindex=0;templates;containerViewChild;submenuIconTemplate;itemTemplate;animating;activeItem=bn(null);ngOnInit(){this.id=this.id||$t()}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}constructor(e){this.cd=e}collapseAll(){for(let e of this.model)e.expanded&&(e.expanded=!1);this.cd.detectChanges()}onToggleDone(){this.animating=!1}changeActiveItem(e,n,o,s=!1){if(!this.isItemDisabled(n)){const r=s?n:this.activeItem&&be.equals(n,this.activeItem)?null:n;this.activeItem.set(r)}}getAnimation(e){return e.expanded?{value:"visible",params:{transitionParams:this.animating?this.transitionOptions:"0ms",height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemActive(e){return e.expanded}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemGroup(e){return be.isNotEmpty(e.items)}getPanelId(e,n){return n&&n.id?n.id:`${this.id}_${e}`}getHeaderId(e,n){return e.id?e.id+"_header":`${this.getPanelId(n)}_header`}getContentId(e,n){return e.id?e.id+"_content":`${this.getPanelId(n)}_content`}updateFocusedHeader(e){const{originalEvent:n,focusOnNext:o,selfCheck:s}=e,r=n.currentTarget.closest('[data-pc-section="panel"]'),a=s?j.findSingle(r,'[data-pc-section="header"]'):o?this.findNextHeader(r):this.findPrevHeader(r);a?this.changeFocusedHeader(n,a):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)}changeFocusedHeader(e,n){n&&j.focus(n)}findNextHeader(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeader(s.parentElement):s:null}findPrevHeader(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeader(s.parentElement):s:null}findFirstHeader(){return this.findNextHeader(this.containerViewChild.nativeElement.firstElementChild,!0)}findLastHeader(){return this.findPrevHeader(this.containerViewChild.nativeElement.lastElementChild,!0)}onHeaderClick(e,n,o){if(this.isItemDisabled(n))e.preventDefault();else{if(n.command&&n.command({originalEvent:e,item:n}),!this.multiple)for(let s of this.model)n!==s&&s.expanded&&(s.expanded=!1);n.expanded=!n.expanded,this.changeActiveItem(e,n,o),this.animating=!0,j.focus(e.currentTarget)}}onHeaderKeyDown(e,n,o){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"Space":this.onHeaderEnterKey(e,n,o)}}onHeaderArrowDownKey(e){const n=!0===j.getAttribute(e.currentTarget,"data-p-highlight")?j.findSingle(e.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;n?j.focus(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()}onHeaderArrowUpKey(e){const n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=!0===j.getAttribute(n,"data-p-highlight")?j.findSingle(n.nextElementSibling,'[data-pc-section="menu"]'):null;o?j.focus(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()}onHeaderHomeKey(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()}onHeaderEndKey(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()}onHeaderEnterKey(e,n,o){const s=j.findSingle(e.currentTarget,'[data-pc-section="headeraction"]');s?s.click():this.onHeaderClick(e,n,o),e.preventDefault()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Rce,5),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",multiple:"multiple",transitionOptions:"transitionOptions",id:"id",tabindex:"tabindex"},decls:3,vars:5,consts:[[3,"ngStyle","ngClass"],["container",""],[4,"ngFor","ngForOf"],["class","p-panelmenu-panel",3,"ngClass","ngStyle",4,"ngIf"],[1,"p-panelmenu-panel",3,"ngClass","ngStyle"],["role","button",3,"ngClass","ngStyle","pTooltip","tabindex","tooltipOptions","click","keydown"],[1,"p-panelmenu-header-content"],["class","p-panelmenu-header-action",3,"target",4,"ngIf"],["class","p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["class","p-toggleable-content","role","region",3,"ngClass",4,"ngIf"],[1,"p-panelmenu-header-action",3,"target"],[4,"ngIf"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],["role","region",1,"p-toggleable-content",3,"ngClass"],[1,"p-panelmenu-content"],[3,"panelId","items","itemTemplate","transitionOptions","root","activeItem","tabindex","parentExpanded","headerFocus"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,cue,2,1,"ng-container",2),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass","p-panelmenu p-component"),h(2),d("ngForOf",o.model))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,bi,Qi,pue]},styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,data:{animation:[Oo("rootItem",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),YM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qe,Or,Zo,bi,Qi,qn,Nn,Qe]})}return t})(),eg=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["MinusIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},dependencies:[Xe],encapsulation:2})}return t})(),JM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,dn,Oi,_s,CC,vC,Ck,bk,vk,yi,eg,bi,Qi,Qe,Oi]})}return t})();const Hde=["input"],zde=function(t,i,e){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":t,"p-disabled":i,"p-focus":e}},jde={provide:un,useExisting:ft(()=>Ude),multi:!0};let Ude=(()=>{class t{cd;style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;onChange=new ge;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),e.preventDefault(),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-inputSwitch"]],viewQuery:function(n,o){if(1&n&&je(Hde,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[yt([jde])],decls:5,vars:22,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","focus","blur"],["input",""],[1,"p-inputswitch-slider"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),le(4,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(18,zde,o.checked(),o.disabled,o.focused))("ngStyle",o.style),K("data-pc-name","inputswitch")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("checked",o.checked())("disabled",o.disabled),K("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),h(2),K("data-pc-section","slider"))},dependencies:[Ct,Ht],styles:['@layer primeng{.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}}\n'],encapsulation:2,changeDetection:0})}return t})(),_v=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const $de=["sublist"];function Kde(t,i){if(1&t&&le(0,"li",6),2&t){const e=f().$implicit,n=f(2);yn(n.getItemProp(e,"style")),d("ngClass",n.getSeparatorItemClass(e)),K("id",n.getItemId(e))("data-pc-section","separator")}}function Gde(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function qde(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function Wde(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function Qde(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function Zde(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function Yde(t,i){}function Xde(t,i){1&t&&g(0,Yde,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function Jde(t,i){if(1&t&&(we(0),g(1,Zde,1,3,"AngleRightIcon",23),g(2,Xde,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const eO=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function epe(t,i){if(1&t&&(x(0,"a",14),g(1,Gde,1,5,"span",15),g(2,qde,2,2,"span",16),g(3,Wde,1,2,"ng-template",null,17,In),g(5,Qde,2,2,"span",18),g(6,Jde,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("target",o.getItemProp(n,"target"))("ngClass",He(12,eO,o.getItemProp(n,"disabled"))),K("href",o.getItemProp(n,"url"),Ls)("aria-hidden",!0)("data-automationid",o.getItemProp(n,"automationId"))("data-pc-section","action")("tabindex",-1),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function tpe(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function npe(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function ipe(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function ope(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function spe(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function rpe(t,i){}function ape(t,i){1&t&&g(0,rpe,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function lpe(t,i){if(1&t&&(we(0),g(1,spe,1,3,"AngleRightIcon",23),g(2,ape,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const cpe=function(){return{exact:!1}};function upe(t,i){if(1&t&&(x(0,"a",26),g(1,tpe,1,5,"span",15),g(2,npe,2,2,"span",16),g(3,ipe,1,2,"ng-template",null,17,In),g(5,ope,2,2,"span",18),g(6,lpe,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(21,cpe))("target",o.getItemProp(n,"target"))("ngClass",He(22,eO,o.getItemProp(n,"disabled")))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("data-automationid",o.getItemProp(n,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function dpe(t,i){if(1&t&&(we(0),g(1,epe,7,14,"a",12),g(2,upe,7,24,"a",13),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function ppe(t,i){}function hpe(t,i){1&t&&g(0,ppe,0,0,"ng-template")}const fpe=function(t){return{$implicit:t}};function gpe(t,i){if(1&t&&(we(0),g(1,hpe,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,fpe,e.item))}}function mpe(t,i){if(1&t){const e=De();x(0,"p-contextMenuSub",28),me("itemClick",function(o){return G(e),q(f(4).itemClick.emit(o))})("itemMouseEnter",function(o){return G(e),q(f(4).onItemMouseEnter(o))}),A()}if(2&t){const e=f(2).$implicit,n=f(2);d("items",e.items)("itemTemplate",n.itemTemplate)("menuId",n.menuId)("visible",n.isItemActive(e)&&n.isItemGroup(e))("activeItemPath",n.activeItemPath)("focusedItemId",n.focusedItemId)("level",n.level+1)}}function _pe(t,i){if(1&t){const e=De();x(0,"li",7,8)(2,"div",9),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onItemClick(o,s))})("mouseenter",function(o){G(e);const s=f().$implicit;return q(f(2).onItemMouseEnter({$event:o,processedItem:s}))}),g(3,dpe,3,2,"ng-container",10),g(4,gpe,2,4,"ng-container",10),A(),g(5,mpe,1,7,"p-contextMenuSub",11),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);Ve(s.getItemProp(n,"styleClass")),d("ngStyle",s.getItemProp(n,"style"))("ngClass",s.getItemClass(n))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("data-pc-section","menuitem")("data-p-highlight",s.isItemActive(n))("data-p-focused",s.isItemFocused(n))("data-p-disabled",s.isItemDisabled(n))("aria-label",s.getItemLabel(n))("aria-disabled",s.isItemDisabled(n)||void 0)("aria-haspopup",s.isItemGroup(n)&&!s.getItemProp(n,"to")?"menu":void 0)("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o)),h(2),K("data-pc-section","content"),h(1),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Ipe(t,i){if(1&t&&(g(0,Kde,1,5,"li",4),g(1,_pe,6,21,"li",5)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isItemVisible(e)&&n.getItemProp(e,"separator")),h(1),d("ngIf",n.isItemVisible(e)&&!n.getItemProp(e,"separator"))}}const Cpe=function(t,i){return{"p-submenu-list":t,"p-contextmenu-root-list":i}};function vpe(t,i){if(1&t){const e=De();x(0,"ul",1,2),me("@overlayAnimation.start",function(o){G(e);const s=Bt(1);return q(f().onEnter(o,s))})("keydown",function(o){return G(e),q(f().menuKeydown.emit(o))})("focus",function(o){return G(e),q(f().menuFocus.emit(o))})("blur",function(o){return G(e),q(f().menuBlur.emit(o))}),g(2,Ipe,2,2,"ng-template",3),A()}if(2&t){const e=f();d("ngClass",mt(10,Cpe,!e.root,e.root))("@overlayAnimation",e.visible)("tabindex",e.tabindex),K("id",e.menuId+"_list")("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy)("aria-activedescendant",e.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),h(2),d("ngForOf",e.items)}}const bpe=["rootmenu"],ype=["container"],xpe=function(){return{"p-contextmenu p-component":!0,"p-contextmenu-overlay":!0}},Ape=function(){return{value:"visible"}};function wpe(t,i){if(1&t){const e=De();x(0,"div",1,2),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(2,"p-contextMenuSub",3,4),me("itemClick",function(o){return G(e),q(f().onItemClick(o))})("menuFocus",function(o){return G(e),q(f().onMenuFocus(o))})("menuBlur",function(o){return G(e),q(f().onMenuBlur(o))})("menuKeydown",function(o){return G(e),q(f().onKeyDown(o))})("itemMouseEnter",function(o){return G(e),q(f().onItemMouseEnter(o))}),A()()}if(2&t){const e=f();Ve(e.styleClass),d("ngClass",Jt(20,xpe))("ngStyle",e.style)("@overlayAnimation",Jt(21,Ape)),K("data-pc-section","root")("data-pc-name","contextmenu")("id",e.id),h(2),d("root",!0)("items",e.processedItems)("itemTemplate",e.itemTemplate)("menuId",e.id)("tabindex",e.disabled?-1:e.tabindex)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("visible",e.submenuVisible())("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())}}let Tpe=(()=>{class t{document;el;renderer;cd;contextMenu;ref;visible=!1;items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;tabindex=0;itemClick=new ge;itemMouseEnter=new ge;menuFocus=new ge;menuBlur=new ge;menuKeydown=new ge;sublistViewChild;constructor(e,n,o,s,r,a){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.contextMenu=r,this.ref=a}getItemProp(e,n,o=null){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(e),"p-menuitem-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)}}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(n=>n.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}onItemMouseEnter(e){const{event:n,processedItem:o}=e;this.itemMouseEnter.emit({originalEvent:n,processedItem:o})}onItemClick(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemClick.emit({originalEvent:e,processedItem:n,isFocus:!0})}onEnter(e,n){"void"===e.fromState&&e.toState&&this.position(e.element)}position(e){const n=e.parentElement.parentElement,o=j.getOffset(e.parentElement.parentElement),s=j.getViewport(),r=e.offsetParent?e.offsetWidth:j.getHiddenElementOuterWidth(e),a=j.getOuterWidth(n.children[0]);e.style.top="0px",e.style.left=parseInt(o.left,10)+a+r>s.width-j.calculateScrollbarWidth()?-1*r+"px":a+"px"}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ft(()=>tO)),V(go))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenuSub"]],viewQuery:function(n,o){if(1&n&&je($de,5),2&n){let s;Se(s=Ee())&&(o.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",items:"items",itemTemplate:"itemTemplate",root:"root",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",popup:"popup",menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:"level",focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",tabindex:"tabindex"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},decls:1,vars:1,consts:[["role","menu",3,"ngClass","tabindex","keydown","focus","blur",4,"ngIf"],["role","menu",3,"ngClass","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter"]],template:function(n,o){1&n&&g(0,vpe,3,13,"ul",0),2&n&&d("ngIf",!!o.root||o.visible)},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,oo,Kl,Zo,t]},encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0})]),Ln(":leave",[en({opacity:0})])])]}})}return t})(),tO=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}triggerEvent="contextmenu";target;global;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;id;ariaLabel;ariaLabelledBy;onShow=new ge;onHide=new ge;templates;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;container;outsideClickListener;resizeListener;triggerEventListener;documentClickListener;documentTriggerListener;pageX;pageY;visible=bn(!1);relativeAlign;window;focused=!1;activeItemPath=bn([]);focusedItemInfo=bn({index:-1,level:0,parentKey:"",item:null});submenuVisible=bn(!1);searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){const e=this.activeItemPath().find(n=>n.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:-1!==e.index?`${this.id}${be.isNotEmpty(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView,a_(()=>{const c=this.activeItemPath();be.isNotEmpty(c)?this.bindGlobalListeners():this.visible()||this.unbindGlobalListeners()})}ngOnInit(){this.id=this.id||$t(),this.bindTriggerEventListener()}bindTriggerEventListener(){ei(this.platformId)&&(this.triggerEventListener||(this.global?this.triggerEventListener=this.renderer.listen(this.document,this.triggerEvent,e=>{this.show(e)}):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,e=>{this.show(e)}))))}bindGlobalListeners(){if(ei(this.platformId)){if(!this.documentClickListener){const e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&!n.ctrlKey&&2!==n.button&&"click"!==this.triggerEvent&&this.hide()}),this.documentTriggerListener=this.renderer.listen(e,this.triggerEvent,n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&this.hide()})}this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()}))}}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&be.isNotEmpty(e.items)}isSelected(e){return this.activeItemPath().some(n=>n.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&be.isNotEmpty(e.items)}onItemClick(e){const{processedItem:n}=e,o=this.isProcessedItemGroup(n);if(this.isSelected(n)){const{index:r,key:a,level:l,parentKey:c,item:u}=n;this.activeItemPath.set(this.activeItemPath().filter(p=>a!==p.key&&a.startsWith(p.key))),this.focusedItemInfo.set({index:r,level:l,parentKey:c,item:u}),j.focus(this.rootmenu.sublistViewChild.nativeElement)}else o?this.onItemChange(e):this.hide()}onItemMouseEnter(e){this.onItemChange(e)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}onArrowRightKey(e){const n=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(n)&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide(),e.preventDefault()}else{const n=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}}onArrowLeftKey(e){const n=this.visibleItems[this.focusedItemInfo().index],o=this.activeItemPath().find(a=>a.key===n.parentKey);be.isEmpty(n.parent)||(this.focusedItemInfo.set({index:-1,parentKey:o?o.parentKey:"",item:n.item}),this.searchValue="",this.onArrowDownKey(e));const r=this.activeItemPath().filter(a=>a.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(r),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide();const n=this.findVisibleItem(this.findFirstFocusedItemIndex());this.focusedItemInfo.mutate(o=>{o.index=this.findFirstFocusedItemIndex(),o.item=n.item}),e.preventDefault()}onTabKey(e){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()}onEnterKey(e){if(-1!==this.focusedItemInfo().index){const n=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&j.findSingle(n,'a[data-pc-section="action"]');o?o.click():n&&n.click();const s=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(s)||this.focusedItemInfo.mutate(a=>{a.index=this.findFirstFocusedItemIndex()})}e.preventDefault()}onItemChange(e){const{processedItem:n,isFocus:o}=e;if(be.isEmpty(n))return;const{index:s,key:r,level:a,parentKey:l,items:c}=n,u=be.isNotEmpty(c),p=this.activeItemPath().filter(m=>m.parentKey!==l&&m.parentKey!==r);u&&(p.push(n),this.submenuVisible.set(!0)),this.focusedItemInfo.set({index:s,level:a,parentKey:l,item:n.item}),this.activeItemPath.set(p),o&&j.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;const n=-1!==this.focusedItemInfo().index?this.focusedItemInfo():{index:-1,level:0,parentKey:"",item:null};this.focusedItemInfo.set(n)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue=""}onOverlayAnimationStart(e){"visible"===e.toState&&(this.container=e.element,this.position(),this.moveOnTop(),this.appendOverlay(),this.bindGlobalListeners(),this.onShow.emit(),j.focus(this.rootmenu.sublistViewChild.nativeElement))}onOverlayAnimationEnd(e){"void"===e.toState&&this.onOverlayHide()}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.containerViewChild.nativeElement):j.appendChild(this.containerViewChild.nativeElement,this.appendTo))}moveOnTop(){this.autoZIndex&&this.containerViewChild&&Wn.set("menu",this.containerViewChild.nativeElement,this.baseZIndex+this.config.zIndex.menu)}onOverlayHide(){this.unbindGlobalListeners(),this.cd.destroyed||(this.target=null),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.onHide.emit()}hide(){this.visible.set(!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null})}toggle(e){this.visible()?this.hide():this.show(e)}show(e){this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.pageX=e.pageX,this.pageY=e.pageY,this.visible()?this.position():this.visible.set(!0),e.stopPropagation(),e.preventDefault()}position(){let e=this.pageX+1,n=this.pageY+1,o=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetWidth:j.getHiddenElementOuterWidth(this.containerViewChild.nativeElement),s=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetHeight:j.getHiddenElementOuterHeight(this.containerViewChild.nativeElement),r=j.getViewport();e+o-this.document.scrollingElement.scrollLeft>r.width&&(e-=o),n+s-this.document.scrollingElement.scrollTop>r.height&&(n-=s),ethis.isItemMatched(r)),o=-1===o?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(r=>this.isItemMatched(r)):o+this.focusedItemInfo().index):o=this.visibleItems.findIndex(r=>this.isItemMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedItemInfo().index&&(o=this.findFirstFocusedItemIndex()),-1!==o&&this.changeFocusedItemIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}findVisibleItem(e){return be.isNotEmpty(this.visibleItems)?this.visibleItems[e]:null}findLastFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return be.findLastIndex(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){const n=e>0?be.findLastIndex(this.visibleItems.slice(0,e),o=>this.isValidItem(o)):-1;return n>-1?n:e}findNextItemIndex(e){const n=ethis.isValidItem(o)):-1;return n>-1?n+e+1:e}findFirstFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,n){const o=this.findVisibleItem(n);this.focusedItemInfo().index!==n&&(this.focusedItemInfo.mutate(s=>{s.index=n,s.item=o.item}),this.scrollInView())}scrollInView(e=-1){const o=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedItemId}"]`);o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"})}bindResizeListener(){ei(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()})))}isOutsideClicked(e){return!(this.containerViewChild.nativeElement.isSameNode(e.target)||this.containerViewChild.nativeElement.contains(e.target))}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindTriggerEventListener(){this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null)}removeAppendedElements(){this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.containerViewChild.nativeElement):j.removeChild(this.containerViewChild.nativeElement,this.appendTo))}ngOnDestroy(){this.unbindGlobalListeners(),this.unbindTriggerEventListener(),this.removeAppendedElements()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(bpe,5),je(ype,5)),2&n){let s;Se(s=Ee())&&(o.rootmenu=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",triggerEvent:"triggerEvent",target:"target",global:"global",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],["container",""],[3,"root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","visible","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function(n,o){1&n&&g(0,wpe,4,22,"div",0),2&n&&d("ngIf",o.visible())},dependencies:[Ct,gt,Ht,Tpe],styles:["@layer primeng{.p-contextmenu{position:absolute}.p-contextmenu ul{margin:0;padding:0;list-style:none}.p-contextmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1}.p-contextmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-contextmenu .p-menuitem-text{line-height:1}.p-contextmenu .p-menuitem{position:relative}.p-contextmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-contextmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0}),On("250ms")]),Ln(":leave",[On(".1s linear",en({opacity:0}))])])]},changeDetection:0})}return t})(),nO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),Spe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[Hs],imports:[R0,JD,NE,JM,wk,qM,qn,kG,YM,Ek,_v,kk,nO]})}return t})();Dg(Dk,[gt,wl,ch,Is,EC,Ok],[]);const Epe=function(){return["NumberOfActivities"]};let Dpe=(()=>{class t{constructor(){}ngOnInit(){for(let e of this.businessFlows)null!=e.ActivitiesColl&&(e.NumberOfActivities=e.ActivitiesColl.length);this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}],this.businessFlowGeneralDetailsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Business Flow Name"},{field:"Description",header:"Business Flow Description"},{field:"Description",header:"Business Flow Run Description"},{field:"Environment",header:"Environment Used"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"NumberOfActivities",header:"Number Of Activities"},{field:"RunStatus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow-table"]],inputs:{businessFlows:"businessFlows",tableExpenderType:"tableExpenderType"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.businessFlowGeneralDetailsCols)("data",o.businessFlows)("addExpender",!0)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,Epe))},dependencies:[Is]})}return t})(),kpe=(()=>{class t{constructor(){}ngOnInit(){this.title=this.chartTitle,this.data=this.executionData,this.type="PieChart",this.columnNames=["Browser","Percentage"],this.options={pieHole:.7,legend:{position:"labeled"},chartArea:{left:0,height:220,width:400},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"]},this.width=400,this.height=400}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-doughnut"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function Mpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Runner Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.runner.Name)}}function Ope(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runnerDetails)}}function Lpe(t,i){if(1&t&&(x(0,"p-accordionTab",10)(1,"div",11),le(2,"app-google-doughnut",12),A(),le(3,"app-business-flow-table",13),A()),2&t){const e=f();d("selected",!0),h(2),d("executionData",e.runnerData),h(1),d("businessFlows",e.businessFlows)("tableExpenderType",e.tableExpenderType)}}function Ppe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.gingerRunnerAgentMappingCols)("data",e.agentMappings)}}let Fpe=(()=>{class t{constructor(e,n,o,s,r){this.route=e,this.calculatedDataService=n,this._userDataManagerService=o,this.communicatorService=s,this.datePipe=r,this.runnerData=[],this.tableExpenderType=Er.BusinessFlowsActivities,this.gingerRunnerGeneralDetailsData=[],this.agentMappings=[]}ngOnInit(){this.getRunner(),this.businessFlows=this.runner.BusinessFlowsColl;let e=this.calculatedDataService.getRunnerBusinessFlowsExecutionStatusArray(this.runner);this.calculatedDataService.populateChartsData(this.runnerData,e),this.getAgentMapping(),this.gingerRunnerAgentMappingCols=[{field:"TargetApplication",header:"Target Application"},{field:"AgentName",header:"Agents Mapping"}],this.runnerDetails=[{field:"Business Flow Execution Sequence",value:this.runner.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.runner.StartTimeStamp,"short")},{field:"Ginger Runner Name",value:this.runner.Name},{field:"Execution End Time",value:this.datePipe.transform(this.runner.EndTimeStamp,"short")},{field:"Runner Description",value:this.runner.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.runner.Elapsed)},{field:"Ginger Runner Environment Name",value:this.runner.Environment},{field:"Execution Status",value:this.runner.RunStatus},{field:"Number Of Business Flows",value:this.runner.BusinessFlowsColl.length},{field:"Business Flows Execution Rate",value:this.runner.ExecutionRate+"%"},{field:"Business Flows Pass Rate",value:this.runner.PassRate+"%"}]}getAgentMapping(){for(let n of this.runner.ApplicationAgentsMappingList){var e=n.split("_:_");let o=new kK;o.AgentName=e[0],o.TargetApplication=e[1],this.agentMappings.push(o)}}getRunner(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner");this.runner=e.RunnersColl.filter(o=>o.Seq==n)[0]}getStatus(e=!0){if(null!=this.runner&&null!=this.runner.RunStatus)return this.calculatedDataService.getStatusClass(this.runner.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(qs),V(Co),V(Ws),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-runner-report"]],inputs:{runner:"runner"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected",4,"ngIf"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle-o"],[2,"font-weight","bold"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected"],[3,"data"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],["id","chart_div","align","center"],[3,"executionData"],[3,"businessFlows","tableExpenderType"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,Mpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Ope,2,2,"p-accordionTab",2),g(3,Lpe,4,4,"p-accordionTab",3),g(4,Ppe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.runner),h(1),d("multiple",!0),h(1),d("ngIf",o.runnerDetails.length>0),h(1),d("ngIf",o.runnerData.length>0||o.businessFlows.length>0),h(1),d("ngIf",o.agentMappings.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Dpe,kpe]})}return t})();const Rpe=function(){return["NumberOfActions"]};function Npe(t,i){if(1&t&&le(0,"app-table",1),2&t){const e=f();d("cols",e.outputValidationCols)("data",e.outputValidations)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(6,Rpe))}}let Vpe=(()=>{class t{constructor(){}ngOnInit(){this.outputValidationCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group"},{field:"ActivityName",header:"Activity Name"},{field:"ActionName",header:"Action"},{field:"StartTimeStamp",header:"Start Time"},{field:"EndTimeStamp",header:"End Time"},{field:"Elapsed",header:"Duration"},{field:"RunStatus",header:"Status"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["output-validation"]],inputs:{outputValidations:"outputValidations",tableExpenderType:"tableExpenderType",addExpender:"addExpender"},decls:1,vars:1,consts:[[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields",4,"ngIf"],[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&g(0,Npe,1,7,"app-table",0),2&n&&d("ngIf",o.outputValidations.length>0)},dependencies:[gt,Is]})}return t})();function Bpe(t,i){if(1&t&&(x(0,"h4",9),le(1,"span",10),Le(2," Business Flow Report: "),x(3,"span",11),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.businessFlow.Name)}}function Hpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-general-details",13),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.businessFlowDetails)}}function zpe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-activities-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)("tableExpenderType",e.tableExpenderType)("addExpender",!0)}}function jpe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}function Upe(t,i){if(1&t&&(x(0,"p-accordionTab",18),le(1,"output-validation",19),A()),2&t){const e=f();d("selected",!0),h(1),d("outputValidations",e.outputValidations)("tableExpenderType",e.outputValidationtableExpenderType)("addExpender",!0)}}function $pe(t,i){1&t&&(x(0,"div",20),le(1,"div",21),A())}const Kpe=function(t,i){return{hideDiv:t,showDiv:i,"accordion-header":!0}};let Gpe=(()=>{class t{constructor(e,n,o,s,r,a,l,c){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.restServiceObj=s,this.globalVarService=r,this.communicatorService=a,this.reportHelperService=l,this.calculatedDataService=c,this.showScreenshotPanel=!0,this.EntityType="businessflow",this.actions=[],this.outputValidations=new Array,this.tableExpenderType=Er.ActivitiesActions,this.outputValidationtableExpenderType=Er.OutputValidation}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}setScreenshotVisiblity(e){this.showScreenshotPanel=e}paramChanged(){let e;this.getBusinessFlow(),this.totalactivitiesCount=0,this.actions=[],this.outputValidations=[],this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"ActivityGroupName",link:"ag/ag/",param:"ActivityGroupName"}],null!=this.businessFlow.ExternalID&&""!=this.businessFlow.ExternalID&&(e=this.businessFlow.ExternalID),null!=this.businessFlow.ExternalID2&&""!=this.businessFlow.ExternalID&&(e=null!=e?e+" / "+this.businessFlow.ExternalID2:this.businessFlow.ExternalID2),this.businessFlowDetails=[],this.businessFlowDetails=[{field:"Execution Sequence",value:this.businessFlow.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.businessFlow.StartTimeStamp,"short")},{field:"Business Flow Name",value:this.businessFlow.Name},{field:"Execution End Time",value:this.datePipe.transform(this.businessFlow.EndTimeStamp,"short")},{field:"Business Flow Description",value:this.businessFlow.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.businessFlow.Elapsed)},{field:"Business Flow Run Description",value:this.businessFlow.RunDescription},{field:"Execution Status",value:this.businessFlow.RunStatus},{field:"Environment Name",value:this.businessFlow.Environment},{field:"Business Flow Activities Pass Rate",value:this.businessFlow.PassRate+"%"},{field:"Business Flow Activities Execution Rate",value:this.businessFlow.ExecutionRate+"%"}],null!=e&&this.businessFlowDetails.push({field:"Mapped ALM Entity ID",value:e}),null==this.businessFlow.ActivitiesColl||0==this.businessFlow.ActivitiesColl.length?(this.CollectBfActivitiesData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.totalactivitiesCount})):(this.InitActivitieData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.businessFlow.ActivitiesColl.length})),this.communicatorService.onBfActivitiesDataChange.subscribe(n=>{"Last Loading Data"===n&&(this.AddBusinessFlowToRunsetJson(),this.InitActivitieData(),this.hideRepoLoader=!1)}),this.variablesData=this.getVariables()}orderActivites(){this.businessFlow.ActivitiesColl=this.businessFlow.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}AddBusinessFlowToRunsetJson(){this.orderActivites(),this.RunsetJson.RunnersColl.forEach(e=>{e.BusinessFlowsColl.forEach(n=>{n.GUID==this.businessFlow.GUID&&(n.ActivitiesColl=this.businessFlow.ActivitiesColl)})}),this._userDataManagerService.setItemCache(this.RunsetJson)}InitActivitieData(){this.count=1;for(const n of this.businessFlow.ActivitiesColl)n.NumberOfActions=n.ActionsColl.length,n.ActionsColl.forEach(o=>{this.globalVarService.isServerLoading?this.getActionFromServer(o.GUID,n):this.getOutputValidations(o,n)});this.activities=this.businessFlow.ActivitiesColl;const e=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,this.RunsetJson.ExecutionId);this.communicatorService.newMessage(e),e.forEach(n=>{n.items.forEach(o=>{o.items.forEach(s=>{s.id==this.businessFlow.GUID&&(o.expanded=!0,s.expanded=!0)})})})}CollectBfActivitiesData(){this.hideRepoLoader=!0;let e=0;this.businessFlow.ActivitiesGroupsColl.forEach(o=>{this.totalactivitiesCount=this.totalactivitiesCount+o.ExecutedActivitiesGUID.length});const n=this.globalVarService.totalRecPerActivityPull;this.businessFlow.NumberOfActivities=0,this.businessFlow.ActivitiesGroupsColl.forEach(o=>{let s=0;this.businessFlow.ActivitiesColl=[];const r={};r.ExecutionId=this.RunsetJson.ExecutionId,r.ParentId=o.GUID,r.From=s*n,r.Take=n,r.IsLoadActions=!0,this.restServiceObj.GetActivitiesByParent(r).subscribe(a=>{s++;const l=JSON.parse(a.response),c=l.TotalRec;for(this.businessFlow.NumberOfActivities+=c,this.businessFlow.ActivitiesColl.push(...l.ResponseColl),e+=l.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data");s*n{if(p.isSuccsess){const m=JSON.parse(p.response);this.businessFlow.ActivitiesColl.push(...m.ResponseColl),e+=m.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data")}})}})})}checkIfLastRun(e){return e===this.totalactivitiesCount}getActionFromServer(e,n){this.restServiceObj.GetActionById(e).subscribe(s=>{const r=JSON.parse(s.response);this.getOutputValidations(r,n)})}getOutputValidations(e,n){if((e.RunStatus==Lt.Passed||e.RunStatus==Lt.Failed||e.RunStatus==Lt.FailIgnored)&&e.OutputValues&&e.OutputValues.length>0&&e.OutputValues.some(s=>!s.endsWith("NA"))){var o=new LK;o.Seq=this.count++,o.ActionName=e.Name,o.ActivityGroupName=n.ActivityGroupName,o.ActivityName=n.Name,o.StartTimeStamp=e.StartTimeStamp,o.EndTimeStamp=e.EndTimeStamp,o.Elapsed=e.Elapsed,o.RunStatus=e.RunStatus,o.OutputValues=e.OutputValues.filter(s=>!s.endsWith("NA")),this.outputValidations.push(o)}}getActivityGroupName(e){for(const n of this.businessFlow.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}getBusinessFlow(){const e=+this.route.snapshot.paramMap.get("Runner"),n=+this.route.snapshot.paramMap.get("BusinessFlow");this.RunsetJson=this._userDataManagerService.getItemCache();const o=this.RunsetJson.RunnersColl.filter(s=>s.Seq==e)[0];this.businessFlow=o.BusinessFlowsColl.filter(s=>s.Seq==n)[0]}getVariables(){let e=[];if(this.businessFlow.VariablesBeforeExec)for(var n=0;n0&&(s.EndValue=this.businessFlow.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getStatus(e=!0){if(null!=this.businessFlow&&null!=this.businessFlow.RunStatus)return this.calculatedDataService.getStatusClass(this.businessFlow.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ha),V(ms),V(Ws),V(WD),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow"]],inputs:{businessFlow:"businessFlow"},decls:9,vars:15,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIONS SCREENSHOTS",3,"selected","ngClass"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[1,"entityName"],[1,"fa","fa-sitemap"],[2,"font-weight","bold"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected"],[3,"data"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr","tableExpenderType","addExpender"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected"],[3,"outputValidations","tableExpenderType","addExpender"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(g(0,Bpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Hpe,2,2,"p-accordionTab",2),g(3,zpe,2,5,"p-accordionTab",3),x(4,"p-accordionTab",4)(5,"screenshot-carousel",5),me("isScreenshotVisibleEvent",function(r){return o.setScreenshotVisiblity(r)}),A()(),g(6,jpe,2,3,"p-accordionTab",6),g(7,Upe,2,4,"p-accordionTab",7),A(),g(8,$pe,2,0,"div",8)),2&n&&(d("ngIf",o.businessFlow),h(1),d("multiple",!0),h(1),d("ngIf",o.businessFlowDetails.length>0),h(1),d("ngIf",null!=o.activities&&o.activities.length>0),h(1),d("selected",!0)("ngClass",mt(12,Kpe,!1===o.showScreenshotPanel,!0===o.showScreenshotPanel)),h(1),d("EntityType",o.EntityType)("_height",1e3)("_thumbnails",!0),h(1),d("ngIf",o.variablesData.length>0),h(1),d("ngIf",o.outputValidations.length>0),h(1),d("ngIf",o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,Is,EC,Vpe,SC]})}return t})();function qpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Activity Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.activity.Name)}}function Wpe(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityDetails)}}function Qpe(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-actions-table",11),A()),2&t){const e=f();d("selected",!0),h(1),d("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("addExpender",!1)}}function Zpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}let Ype=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a}runAsyncLogic(e){var n=this;return Fu(function*(){const o=yield n.getActivityDataFromServer(e),s=JSON.parse(o.response);n.activity.VariablesAfterExec=s.VariablesAfterExec,n.activity.VariablesBeforeExec=s.VariablesBeforeExec,n.variablesData=n.getVariables()})()}getActivityDataFromServer(e){var n=this;return Fu(function*(){return yield n.restServiceObj.GetActivityById(e)})()}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}paramChanged(){let e;this.getActivity(),null!=this.activity.ExternalID&&""!=this.activity.ExternalID&&(e=this.activity.ExternalID),null!=this.activity.ExternalID2&&""!=this.activity.ExternalID&&(e=null!=e?e+" / "+this.activity.ExternalID2:this.activity.ExternalID2),this.actions=this.activity.ActionsColl,this.variablesData=this.getVariables(),this.activityDetails=[{field:"Execution Sequence",value:this.activity.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.activity.StartTimeStamp,"short")},{field:"Activity Group Name",value:this.activity.ActivityGroupName},{field:"Execution End Time",value:this.datePipe.transform(this.activity.EndTimeStamp,"short")},{field:"Description",value:this.activity.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activity.Elapsed)},{field:"Activity Name",value:this.activity.Name},{field:"Execution Status",value:this.activity.RunStatus},{field:"Actions Pass Rate",value:this.activity.PassRate+"%"},{field:"Actions Execution Rate",value:this.activity.ExecutionRate+"%"},{field:"Number Of Actions",value:this.activity.ActionsColl.length}],null!=e&&this.activityDetails.push({field:"Mapped ALM Entity ID",value:e}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}]}getVariables(){let e=[];if(this.activity.VariablesBeforeExec&&this.activity.VariablesBeforeExec.length>0)for(var n=0;n0&&(s.EndValue=this.activity.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getActivity(){var e=this;return Fu(function*(){const n=+e.route.snapshot.paramMap.get("Runner"),o=+e.route.snapshot.paramMap.get("BusinessFlow"),s=+e.route.snapshot.paramMap.get("Activity"),l=e._userDataManagerService.getItemCache().RunnersColl.filter(c=>c.Seq==n)[0].BusinessFlowsColl.filter(c=>c.Seq==o)[0];e.activity=l.ActivitiesColl.filter(c=>c.Seq==s)[0],e.globalVarService.isServerLoading&&(yield e.runAsyncLogic(e.activity.GUID))})()}getStatus(e=!0){if(null!=this.activity&&null!=this.activity.RunStatus)return this.calculatedDataService.getStatusClass(this.activity.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-report"]],inputs:{activity:"activity"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTIVITY GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bars"],[2,"font-weight","bold"],["header","ACTIVITY GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"actions","fieldsLinksArr","addExpender"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,qpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Wpe,2,2,"p-accordionTab",2),g(3,Qpe,2,4,"p-accordionTab",3),g(4,Zpe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.activity),h(1),d("multiple",!0),h(1),d("ngIf",o.activityDetails.length>0),h(1),d("ngIf",o.actions.length>0),h(1),d("ngIf",o.variablesData.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Ok]})}return t})();function Xpe(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("contextmenu",function(o){const r=G(e).$implicit;return q(f().onContextMenu(o,r.Value,r.Key))})("dblclick",function(){const s=G(e).$implicit;return q(f().DownLoad(s.Value,s.Key))}),le(3,"span",4),x(4,"p",5),Le(5),A()(),le(6,"p-contextMenu",6),Te()}if(2&t){const e=i.$implicit,n=Bt(2),o=f();h(3),d("innerHtml",o.getIcon(e.Value),hr),h(2),dt(e.Key),h(1),d("target",n)("model",o.contextMenuItems)}}let Jpe=(()=>{class t{constructor(e,n,o){this.globalVarService=e,this.activeRoute=o;var s=this.activeRoute.snapshot.queryParamMap.get("ExecutionId");this.globalVarService.artifactPath=s?"artifacts/":null}ngOnInit(){}onContextMenu(e,n,o){this.contextMenuItems=[],this.contextMenuItems.push({label:"Download",icon:"fas fa-external-link-alt",command:()=>this.DownLoad(n,o)})}ViewContent(){}getIcon(e){const o=e.split(".").pop();return oC[o]===oC.json?"":""}DownLoad(e,n){let o=document.createElement("a");o.setAttribute("type","hidden"),o.href=null!=this.globalVarService.artifactPath?this.globalVarService.artifactPath+e:e,o.download=e,document.body.appendChild(o),o.click(),o.remove()}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V("environmentObj"),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["artifacts"]],inputs:{action:"action"},decls:2,vars:1,consts:[[1,"grid"],[4,"ngFor","ngForOf"],[1,"col-12","md:col-3","xl:col-2",3,"contextmenu","dblclick"],["art",""],[1,"fileicon",3,"innerHtml"],[1,"text-900","text-lg","font-medium","hideTxt",2,"padding-top","10px"],[3,"target","model"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Xpe,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.action.Artifacts))},dependencies:[Jn,tO],styles:[".hideTxt[_ngcontent-%COMP%]{display:inline-block;width:220px;white-space:pre-line;overflow:hidden!important;text-overflow:ellipsis;line-height:1rem} .fileicon img{font-size:3rem;width:60px} .fileicon i{font-size:6rem}"]})}return t})();function ehe(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Action Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.action.Name)}}function the(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.actionDetails)}}function nhe(t,i){if(1&t&&(x(0,"p-accordionTab",13),le(1,"app-table",14),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.inputValuesCols)("data",e.inputValuesData)}}function ihe(t,i){if(1&t&&(x(0,"p-accordionTab",15),le(1,"app-table",14),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)}}function ohe(t,i){if(1&t){const e=De();x(0,"p-accordionTab",16)(1,"screenshot-carousel",17),me("isScreenshotVisibleEvent",function(o){return G(e),q(f().setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f();d("selected",!0),h(1),d("EntityType",e.EntityType)("_height",1e3)("_thumbnails",!0)}}let she=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a,this.EntityType="action",this.showScreenshotPanel=!0}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.inputValuesCols=[{field:"Name",header:"Name"},{field:"Value",header:"Value"},{field:"CalculatedValue",header:"Calculated Value"}],this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}]}paramChanged(){this.getAction(),this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues(),this.actionDetails=[{field:"Execution Sequence",value:this.action.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.action.StartTimeStamp,"short")},{field:"Action Name",value:this.action.Name},{field:"Execution End Time",value:this.datePipe.transform(this.action.EndTimeStamp,"short")},{field:"Description",value:this.action.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.action.Elapsed)},{field:"Run Description",value:this.action.RunDescription},{field:"Execution Status",value:this.action.RunStatus},{field:"Action Type",value:this.action.ActionType},{field:"Current Retry Iteration",value:this.action.CurrentRetryIteration},{field:"Error Details",value:this.action.Error},{field:"Additional information",value:this.action.ExInfo},{field:"Screenshots",value:this.action.ScreenShots.length}]}getInputValues(){let e=[];for(let n of this.action.InputValues){let o=n.split("_:_"),s=new OK;s.Name=o[0],s.Value=this._userDataManagerService.replaceUnicodeChar(o[1]),s.CalculatedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),e.push(s)}return e}getOutputValues(){let e=[];for(let n of this.action.OutputValues){let o=n.split("_:_"),s=new $D;s.ParameterName=o[0],s.ActualValue=this._userDataManagerService.replaceUnicodeChar(o[1]),s.ExpectedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),s.Status=o[3],e.push(s)}return e}setScreenshotVisiblity(e){this.showScreenshotPanel=e}getAction(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow"),s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");let c=e.RunnersColl.filter(u=>u.Seq==n)[0].BusinessFlowsColl.filter(u=>u.Seq==o)[0].ActivitiesColl.filter(u=>u.Seq==s)[0];this.action=c.ActionsColl.filter(u=>u.Seq==r)[0],this.globalVarService.isServerLoading&&this.getActionFromServer(this.action.GUID)}getActionFromServer(e){this.restServiceObj.GetActionById(e).subscribe(n=>{const o=JSON.parse(n.response);this.action.InputValues=o.InputValues,this.action.OutputValues=o.OutputValues,this.action.FlowControls=o.FlowControls,this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues()})}getStatus(e=!0){if(null!=this.action&&null!=this.action.RunStatus)return this.calculatedDataService.getStatusClass(this.action.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-action-report"]],inputs:{action:"action"},decls:8,vars:8,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected"],[3,"action"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bolt"],[2,"font-weight","bold"],["header","ACTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"]],template:function(n,o){1&n&&(g(0,ehe,5,4,"h4",0),x(1,"p-accordion",1),g(2,the,2,2,"p-accordionTab",2),g(3,nhe,2,3,"p-accordionTab",3),g(4,ihe,2,3,"p-accordionTab",4),x(5,"p-accordionTab",5),le(6,"artifacts",6),A(),g(7,ohe,2,4,"p-accordionTab",7),A()),2&n&&(d("ngIf",o.action),h(1),d("multiple",!0),h(1),d("ngIf",o.actionDetails.length>0),h(1),d("ngIf",!!o.action.InputValues&&o.action.InputValues.length),h(1),d("ngIf",!!o.action.OutputValues&&o.action.OutputValues.length),h(1),d("selected",!0),h(1),d("action",o.action),h(1),d("ngIf",!!o.action.ScreenShots&&o.action.ScreenShots.length))},dependencies:[Ct,gt,ga,fa,Ul,Is,SC,Jpe]})}return t})();function rhe(t,i){if(1&t&&(x(0,"p-accordionTab",4),le(1,"app-general-details",5),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityGroupDetails)}}function ahe(t,i){if(1&t&&(x(0,"p-accordionTab",6),le(1,"app-activities-table",7),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)}}const uhe=qn.forRoot([{path:"",component:Mk},{path:"BusinessFlow/:ExecutionId/:BusinessFlowId",component:Mk},{path:":Runner",component:Fpe},{path:":Runner/:BusinessFlow",component:Gpe},{path:":Runner/:BusinessFlow/ag/ag/:ActivityGroupName",component:(()=>{class t{constructor(e,n,o){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.activities=[]}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()})}paramChanged(){let e;this.getActivityGroupByName(),null!=this.activityGroup.ExternalID&&""!=this.activityGroup.ExternalID&&(e=this.activityGroup.ExternalID),null!=this.activityGroup.ExternalID2&&""!=this.activityGroup.ExternalID&&(e=null!=e?e+" / "+this.activityGroup.ExternalID2:this.activityGroup.ExternalID2),this.activityGroupDetails=[{field:"Activity Group Name",value:this.activityGroup.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.activityGroup.StartTimeStamp,"short")},{field:"Description",value:this.activityGroup.Description},{field:"Execution End Time",value:this.datePipe.transform(this.activityGroup.EndTimeStamp,"short")},{field:"Automation Percentage",value:this.activityGroup.AutomationPercentage},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activityGroup.Elapsed)},{field:"Execution Status",value:this.activityGroup.RunStatus}],null!=e&&this.activityGroupDetails.push({field:"Mapped ALM Entity ID",value:e});for(let n of this.businessFlow.ActivitiesGroupsColl)if(n.Name==this.activityGroupName)for(let o of this.businessFlow.ActivitiesColl)n.ExecutedActivitiesGUID.includes(o.GUID)&&(o.ActivityGroupName=n.Name,o.NumberOfActions=o.ActionsColl.length,this.activities.push(o));this.fieldsLinksArr=[{field:"Name",link:"../../../",param:"Seq"}]}getActivityGroupByName(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");this.activityGroupName=this.route.snapshot.paramMap.get("ActivityGroupName");let s=e.RunnersColl.filter(r=>r.Seq==n)[0];this.businessFlow=s.BusinessFlowsColl.filter(r=>r.Seq==o)[0],this.activityGroup=this.businessFlow.ActivitiesGroupsColl.filter(r=>r.Name==this.activityGroupName)[0]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-group-report"]],decls:6,vars:3,consts:[[1,"fa","fa-fw","fa-exclamation-circle"],[3,"multiple"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr"]],template:function(n,o){1&n&&(x(0,"h4"),le(1,"span",0),Le(2," Activity Group Report"),A(),x(3,"p-accordion",1),g(4,rhe,2,2,"p-accordionTab",2),g(5,ahe,2,3,"p-accordionTab",3),A()),2&n&&(h(3),d("multiple",!0),h(1),d("ngIf",o.activityGroupDetails.length>0),h(1),d("ngIf",o.activities.length>0))},dependencies:[Ct,gt,ga,fa,Ul,EC]})}return t})()},{path:":Runner/:BusinessFlow/:Activity",component:Ype},{path:":Runner/:BusinessFlow/:Activity/:Action",component:she}],{scrollPositionRestoration:"enabled"});let ir=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const dhe=["container"],phe=["focusInput"],hhe=["multiIn"],fhe=["multiContainer"],ghe=["ddBtn"],mhe=["items"],_he=["scroller"],Ihe=["overlay"];function Che(t,i){if(1&t){const e=De();x(0,"input",12,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()}if(2&t){const e=f();Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("type",e.type)("autocomplete",e.autocomplete)("required",e.required)("name",e.name)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("value",e.inputValue())("id",e.inputId)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function vhe(t,i){if(1&t){const e=De();x(0,"TimesIcon",16),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-autocomplete-clear-icon"),K("aria-hidden",!0))}function bhe(t,i){}function yhe(t,i){1&t&&g(0,bhe,0,0,"ng-template")}function xhe(t,i){if(1&t){const e=De();x(0,"span",17),me("click",function(){return G(e),q(f(2).clear())}),g(1,yhe,1,0,null,9),A()}if(2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function Ahe(t,i){if(1&t&&(we(0),g(1,vhe,1,2,"TimesIcon",14),g(2,xhe,2,2,"span",15),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function whe(t,i){1&t&&ze(0)}function The(t,i){if(1&t&&(x(0,"span",30),Le(1),A()),2&t){const e=f().$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function She(t,i){1&t&&le(0,"TimesCircleIcon",31),2&t&&(d("styleClass","p-autocomplete-token-icon"),K("aria-hidden",!0))}function Ehe(t,i){}function Dhe(t,i){1&t&&g(0,Ehe,0,0,"ng-template")}function khe(t,i){if(1&t&&(x(0,"span",32),g(1,Dhe,1,0,null,9),A()),2&t){const e=f(3);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeIconTemplate)}}const Mhe=function(t){return{"p-autocomplete-token":!0,"p-focus":t}},Iv=function(t){return{$implicit:t}};function Ohe(t,i){if(1&t){const e=De();x(0,"li",23,24),g(2,whe,1,0,"ng-container",25),g(3,The,2,1,"span",26),x(4,"span",27),me("click",function(o){const r=G(e).index;return q(f(2).removeOption(o,r))}),g(5,She,1,2,"TimesCircleIcon",28),g(6,khe,2,2,"span",29),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",He(11,Mhe,o.focusedMultipleOptionIndex()===n)),K("id",o.id+"_multiple_option_"+n)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",n+1)("aria-selected",!0),h(2),d("ngTemplateOutlet",o.selectedItemTemplate)("ngTemplateOutletContext",He(13,Iv,e)),h(1),d("ngIf",!o.selectedItemTemplate),h(2),d("ngIf",!o.removeIconTemplate),h(1),d("ngIf",o.removeIconTemplate)}}function Lhe(t,i){if(1&t){const e=De();x(0,"ul",18,19),me("focus",function(o){return G(e),q(f().onMultipleContainerFocus(o))})("blur",function(o){return G(e),q(f().onMultipleContainerBlur(o))})("keydown",function(o){return G(e),q(f().onMultipleContainerKeyDown(o))}),g(2,Ohe,7,15,"li",20),x(3,"li",21)(4,"input",22,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()()()}if(2&t){const e=f();Ve(e.multiContainerClass),d("tabindex",-1),K("aria-orientation","horizontal")("aria-activedescendant",e.focused?e.focusedMultipleOptionId:void 0),h(2),d("ngForOf",e.modelValue()),h(2),Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("autocomplete",e.autocomplete)("required",e.required)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("type",e.type)("id",e.inputId)("name",e.name)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function Phe(t,i){1&t&&le(0,"SpinnerIcon",35),2&t&&(d("styleClass","p-autocomplete-loader")("spin",!0),K("aria-hidden",!0))}function Fhe(t,i){}function Rhe(t,i){1&t&&g(0,Fhe,0,0,"ng-template")}function Nhe(t,i){if(1&t&&(x(0,"span",36),g(1,Rhe,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function Vhe(t,i){if(1&t&&(we(0),g(1,Phe,1,3,"SpinnerIcon",33),g(2,Nhe,2,2,"span",34),Te()),2&t){const e=f();h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function Bhe(t,i){1&t&&le(0,"span",40),2&t&&(d("ngClass",f(2).dropdownIcon),K("aria-hidden",!0))}function Hhe(t,i){1&t&&le(0,"ChevronDownIcon")}function zhe(t,i){}function jhe(t,i){1&t&&g(0,zhe,0,0,"ng-template")}function Uhe(t,i){if(1&t&&(we(0),g(1,Hhe,1,0,"ChevronDownIcon",3),g(2,jhe,1,0,null,9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.dropdownIconTemplate),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function $he(t,i){if(1&t){const e=De();x(0,"button",37,38),me("click",function(o){return G(e),q(f().handleDropdownClick(o))}),g(2,Bhe,1,2,"span",39),g(3,Uhe,3,2,"ng-container",3),A()}if(2&t){const e=f();d("disabled",e.disabled),K("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),h(2),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Khe(t,i){1&t&&ze(0)}function Ghe(t,i){1&t&&ze(0)}const iO=function(t,i){return{$implicit:t,options:i}};function qhe(t,i){if(1&t&&g(0,Ghe,1,0,"ng-container",25),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(14))("ngTemplateOutletContext",mt(2,iO,e,n))}}function Whe(t,i){1&t&&ze(0)}const Qhe=function(t){return{options:t}};function Zhe(t,i){if(1&t&&g(0,Whe,1,0,"ng-container",25),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,Qhe,e))}}function Yhe(t,i){1&t&&(we(0),g(1,Zhe,1,4,"ng-template",44),Te())}const tg=function(t){return{height:t}};function Xhe(t,i){if(1&t){const e=De();x(0,"p-scroller",41,42),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,qhe,1,5,"ng-template",43),g(3,Yhe,2,0,"ng-container",3),A()}if(2&t){const e=f();yn(He(8,tg,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function Jhe(t,i){1&t&&ze(0)}const efe=function(){return{}};function tfe(t,i){if(1&t&&(we(0),g(1,Jhe,1,0,"ng-container",25),Te()),2&t){const e=f(),n=Bt(14);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,iO,e.visibleOptions(),Jt(2,efe)))}}function nfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function ife(t,i){1&t&&ze(0)}function ofe(t,i){if(1&t&&(we(0),x(1,"li",50),g(2,nfe,2,1,"span",3),g(3,ife,1,0,"ng-container",25),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,tg,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Iv,o.optionGroup))}}function sfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function rfe(t,i){1&t&&ze(0)}const afe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},lfe=function(t,i){return{$implicit:t,index:i}};function cfe(t,i){if(1&t){const e=De();we(0),x(1,"li",51),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionSelect(o,s))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),g(2,sfe,2,1,"span",3),g(3,rfe,1,0,"ng-container",25),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,tg,s.itemSize+"px"))("ngClass",Rn(14,afe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("data-p-focused",r.focusedOptionIndex()===r.getOptionIndex(o,s))("aria-setsize",r.ariaSetSize)("aria-posinset",r.getAriaPosInset(r.getOptionIndex(o,s))),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,lfe,n,s.getOptions?s.getOptions(o):o))}}function ufe(t,i){if(1&t&&(g(0,ofe,4,9,"ng-container",3),g(1,cfe,4,21,"ng-container",3)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function dfe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.searchResultMessageText," ")}}function pfe(t,i){1&t&&ze(0,null,54)}function hfe(t,i){if(1&t&&(x(0,"li",52),g(1,dfe,2,1,"ng-container",53),g(2,pfe,2,0,"ng-container",9),A()),2&t){const e=f().options,n=f();d("ngStyle",He(4,tg,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function ffe(t,i){1&t&&ze(0)}function gfe(t,i){if(1&t&&(x(0,"ul",45,46),g(2,ufe,2,2,"ng-template",47),g(3,hfe,3,6,"li",48),A(),g(4,ffe,1,0,"ng-container",25),x(5,"span",49),Le(6),A()),2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",!e||e&&0===e.length&&o.showEmptyMessage),h(1),d("ngTemplateOutlet",o.footerTemplate)("ngTemplateOutletContext",He(9,Iv,e)),h(2),Pt(" ",o.selectedMessageText," ")}}const mfe={provide:un,useExisting:ft(()=>_fe),multi:!0};let _fe=(()=>{class t{document;el;renderer;cd;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;optionDisabled;focusOnHover;completeMethod=new ge;onSelect=new ge;onUnselect=new ge;onFocus=new ge;onBlur=new ge;onDropdownClick=new ge;onClear=new ge;onKeyUp=new ge;onShow=new ge;onHide=new ge;onLazyLoad=new ge;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions=bn(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;filled;loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=bn(null);focusedMultipleOptionIndex=bn(-1);focusedOptionIndex=bn(-1);visibleOptions=Ds(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=Ds(()=>{const e=this.modelValue();return this.filled=be.isNotEmpty(this.modelValue()),e?"object"==typeof e?this.getOptionLabel(e)??e:e:""});get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue()||be.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return"p-autocomplete-multiple-container p-component p-inputtext"}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return be.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.config=r,this.overlayService=a,this.zone=l}ngOnInit(){this.id=this.id||$t()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"removetokenicon":this.removeIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}handleSuggestionsChange(){if(this.loading){this._suggestions()||this.emptyTemplate?this.show():this.hide();const e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){return be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,n){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===n.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return this.multiple?e.target===this.multiContainerEL.nativeElement||this.multiContainerEL.nativeElement.contains(e.target):e.target===this.inputEL.nativeElement}isDropdownClicked(e){return!!this.dropdownButton?.nativeElement&&(e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target))}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&j.focus(this.inputEL.nativeElement)}handleDropdownClick(e){let n;this.overlayVisible?this.hide(!0):(j.focus(this.inputEL.nativeElement),n=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,n,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:n})}onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let n=e.target.value;this.multiple||this.updateModel(n),0!==n.length||this.multiple?n.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,n,"input")},this.delay)):this.hide():(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2))}onInputChange(e){if(this.forceSelection){let n=!1;if(this.visibleOptions()){const o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));void 0!==o&&(n=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}n||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}}onArrowDownKey(e){if(!this.overlayVisible)return;const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){const n=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(be.isEmpty(n.value)&&this.hasSelectedOption()?(j.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){const{currentTarget:n}=e;n.setSelectionRange(0,e.shiftKey?n.value.length:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){const{currentTarget:n}=e,o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(be.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){const n=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:n})}e.stopPropagation()}}onArrowLeftKeyOnMultiple(e){const n=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(n)}onArrowRightKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex();n++,this.focusedMultipleOptionIndex.set(n),n>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),j.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,n,o=!0){const s=this.getOptionValue(n);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(n)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:n}),o&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}search(e,n,o){null!=n&&("input"===o&&0===n.trim().length||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:n})))}removeOption(e,n){const o=this.modelValue()[n],s=this.modelValue().filter((r,a)=>a!==n).map(r=>this.getOptionValue(r));this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),j.focus(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.value&&this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=this.multiple?"":this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions()[n],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.inputEL.nativeElement),e&&j.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){const n=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&j.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{n()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.filled=!(!this.value||!this.value.length),this.updateModel(e),this.cd.markForCheck()}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?be.resolveFieldData(e,this.field||this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState&&(this.itemsWrapper=j.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ki),V(Dr),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-autoComplete"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(dhe,5),je(phe,5),je(hhe,5),je(fhe,5),je(ghe,5),je(mhe,5),je(_he,5),je(Ihe,5)),2&n){let s;Se(s=Ee())&&(o.containerEL=s.first),Se(s=Ee())&&(o.inputEL=s.first),Se(s=Ee())&&(o.multiInputEl=s.first),Se(s=Ee())&&(o.multiContainerEL=s.first),Se(s=Ee())&&(o.dropdownButton=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused&&!o.disabled||o.autofocus||o.overlayVisible)("p-autocomplete-clearable",o.showClear&&!o.disabled)},inputs:{minLength:"minLength",delay:"delay",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:"readonly",disabled:"disabled",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",maxlength:"maxlength",name:"name",required:"required",size:"size",appendTo:"appendTo",autoHighlight:"autoHighlight",forceSelection:"forceSelection",type:"type",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:"unique",group:"group",completeOnFocus:"completeOnFocus",showClear:"showClear",field:"field",dropdown:"dropdown",showEmptyMessage:"showEmptyMessage",dropdownMode:"dropdownMode",multiple:"multiple",tabindex:"tabindex",dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:"autofocus",autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",optionDisabled:"optionDisabled",focusOnHover:"focusOnHover"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[yt([mfe])],decls:15,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["focusInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"tabindex","focus","blur","keydown"],["multiContainer",""],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"autofocus","ngClass","ngStyle","autocomplete","required","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["role","option",3,"ngClass"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"disabled","click"],["ddBtn",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"ngStyle","ngClass","click","mouseenter"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,Che,2,23,"input",2),g(3,Ahe,3,2,"ng-container",3),g(4,Lhe,6,28,"ul",4),g(5,Vhe,3,2,"ng-container",3),g(6,$he,4,5,"button",5),x(7,"p-overlay",6,7),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),x(9,"div",8),g(10,Khe,1,0,"ng-container",9),g(11,Xhe,4,10,"p-scroller",10),g(12,tfe,2,6,"ng-container",3),g(13,gfe,7,11,"ng-template",null,11,In),A()()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),h(2),d("ngIf",!o.multiple),h(1),d("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),h(1),d("ngIf",o.multiple),h(1),d("ngIf",o.loading),h(1),d("ngIf",o.dropdown),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions),h(2),Ve(o.panelStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight),d("ngClass",o.panelClass)("ngStyle",o.panelStyle),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,hf,oo,Bu,uC,ir,_s,mn,bi]},styles:["@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:-moz-fit-content;width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Ife=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Zs,Mi,Qe,dn,Oi,gf,ir,_s,mn,bi,$l,Qe,Oi,gf]})}return t})(),oO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["HomeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4175 6.79971C13.2874 6.80029 13.1608 6.75807 13.057 6.67955L12.4162 6.19913V12.6073C12.4141 12.7659 12.3502 12.9176 12.2379 13.0298C12.1257 13.142 11.9741 13.206 11.8154 13.208H8.61206C8.61179 13.208 8.61151 13.208 8.61123 13.2081C8.61095 13.208 8.61068 13.208 8.6104 13.208H5.41076C5.40952 13.208 5.40829 13.2081 5.40705 13.2081C5.40581 13.2081 5.40458 13.208 5.40334 13.208H2.20287C2.04418 13.206 1.89257 13.142 1.78035 13.0298C1.66813 12.9176 1.60416 12.7659 1.60209 12.6073V6.19914L0.961256 6.67955C0.833786 6.77515 0.673559 6.8162 0.515823 6.79367C0.358086 6.77114 0.215762 6.68686 0.120159 6.55939C0.0245566 6.43192 -0.0164931 6.2717 0.00604063 6.11396C0.0285744 5.95622 0.112846 5.8139 0.240316 5.7183L1.83796 4.52007L1.84689 4.51337L6.64868 0.912027C6.75267 0.834032 6.87915 0.79187 7.00915 0.79187C7.13914 0.79187 7.26562 0.834032 7.36962 0.912027L12.1719 4.51372L12.1799 4.51971L13.778 5.7183C13.8943 5.81278 13.9711 5.94732 13.9934 6.09553C14.0156 6.24373 13.9816 6.39489 13.8981 6.51934C13.8471 6.60184 13.7766 6.67054 13.6928 6.71942C13.609 6.76831 13.5144 6.79587 13.4175 6.79971ZM6.00783 12.0065H8.01045V7.60074H6.00783V12.0065ZM9.21201 12.0065V6.99995C9.20994 6.84126 9.14598 6.68965 9.03375 6.57743C8.92153 6.46521 8.76992 6.40124 8.61123 6.39917H5.40705C5.24836 6.40124 5.09675 6.46521 4.98453 6.57743C4.8723 6.68965 4.80834 6.84126 4.80627 6.99995V12.0065H2.80366V5.29836L7.00915 2.14564L11.2146 5.29836V12.0065H9.21201Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qi,oO,Qe,qn,Nn,Qe]})}return t})(),cge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),Oge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Qi,Mr,bi,ff,Xe,Qe]})}return t})();const Lge=["input"];function Pge(t,i){1&t&&le(0,"span",10),2&t&&(d("ngClass",f(3).checkboxIcon),K("data-pc-section","icon"))}function Fge(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","icon"))}function Rge(t,i){if(1&t&&(we(0),g(1,Pge,1,2,"span",8),g(2,Fge,1,2,"CheckIcon",9),Te()),2&t){const e=f(2);h(1),d("ngIf",e.checkboxIcon),h(1),d("ngIf",!e.checkboxIcon)}}function Nge(t,i){}function Vge(t,i){1&t&&g(0,Nge,0,0,"ng-template")}function Bge(t,i){if(1&t&&(x(0,"span",12),g(1,Vge,1,0,null,13),A()),2&t){const e=f(2);K("data-pc-section","icon"),h(1),d("ngTemplateOutlet",e.checkboxIconTemplate)}}function Hge(t,i){if(1&t&&(we(0),g(1,Rge,3,2,"ng-container",5),g(2,Bge,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkboxIconTemplate),h(1),d("ngIf",e.checkboxIconTemplate)}}const zge=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function jge(t,i){if(1&t){const e=De();x(0,"label",14),me("click",function(o){return G(e),q(f().onClick(o))}),Le(1),A()}if(2&t){const e=f();Ve(e.labelStyleClass),d("ngClass",Rn(6,zge,e.checked(),e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),Pt(" ",e.label,"")}}const Uge=function(t,i,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},$ge=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},Kge={provide:un,useExisting:ft(()=>Gge),multi:!0};let Gge=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new ge;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()&&(this.checkboxIconTemplate=e.template)})}onClick(e){if(!this.disabled&&!this.readonly){let n;this.inputViewChild.nativeElement.focus(),this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(o=>!be.equals(o,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:be.contains(this.value,this.model)}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-checkbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Lge,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([Kge])],decls:7,vars:35,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"value","checked","disabled","readonly","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,Hge,3,2,"ng-container",5),A()(),g(6,jge,2,10,"label",6)),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(27,Uge,o.checked(),o.disabled,o.focused)),K("data-pc-name","checkbox")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("value",o.value)("checked",o.checked())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("name",o.name)("tabindex",o.tabindex)("required",o.required)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-checked",o.checked())("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(31,$ge,o.checked(),o.disabled,o.focused)),K("data-p-highlight",o.checked())("data-p-disabled",o.disabled)("data-p-focused",o.focused)("data-pc-section","input"),h(1),d("ngIf",o.checked()),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return t})(),qge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,Qe]})}return t})();const Wge=["inputtext"],Qge=["container"];function Zge(t,i){1&t&&ze(0)}function Yge(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f().$implicit,n=f();K("data-pc-section","label"),h(1),dt(n.field?n.resolveFieldData(e,n.field):e)}}function Xge(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",15),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),A()}2&t&&(d("styleClass","p-chips-token-icon"),K("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function Jge(t,i){}function eme(t,i){1&t&&g(0,Jge,0,0,"ng-template")}function tme(t,i){if(1&t){const e=De();x(0,"span",16),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),g(1,eme,1,0,null,17),A()}if(2&t){const e=f(3);K("data-pc-section","removeTokenIcon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function nme(t,i){if(1&t&&(we(0),g(1,Xge,1,3,"TimesCircleIcon",13),g(2,tme,2,3,"span",14),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}const ime=function(t){return{"p-chips-token":!0,"p-focus":t}},ome=function(t){return{$implicit:t}};function sme(t,i){if(1&t){const e=De();x(0,"li",8,9),me("click",function(o){const r=G(e).$implicit;return q(f().onItemClick(o,r))}),g(2,Zge,1,0,"ng-container",10),g(3,Yge,2,2,"span",11),g(4,nme,3,2,"ng-container",7),A()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",He(12,ime,o.focusedIndex===n)),K("id",o.id+"_chips_item_"+n)("ariaLabel",e)("aria-selected",!0)("aria-setsize",o.value.length)("aria-pointset",n+1)("data-p-focused",o.focusedIndex===n)("data-pc-section","token"),h(2),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",He(14,ome,e)),h(1),d("ngIf",!o.itemTemplate),h(1),d("ngIf",!o.disabled)}}function rme(t,i){if(1&t){const e=De();x(0,"TimesIcon",15),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&d("styleClass","p-chips-clear-icon")}function ame(t,i){}function lme(t,i){1&t&&g(0,ame,0,0,"ng-template")}function cme(t,i){if(1&t){const e=De();x(0,"span",19),me("click",function(){return G(e),q(f(2).clear())}),g(1,lme,1,0,null,17),A()}if(2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function ume(t,i){if(1&t&&(x(0,"li"),g(1,rme,1,1,"TimesIcon",13),g(2,cme,2,1,"span",18),A()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const dme=function(t,i,e,n){return{"p-chips p-component p-input-wrapper":!0,"p-disabled":t,"p-focus":i,"p-inputwrapper-filled":e,"p-inputwrapper-focus":n}},pme=function(){return{"p-inputtext p-chips-multiple-container":!0}},hme=function(t){return{"p-chips-clearable":t}},fme={provide:un,useExisting:ft(()=>gme),multi:!0};let gme=(()=>{class t{document;el;cd;style;styleClass;disabled;field;placeholder;max;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;onAdd=new ge;onRemove=new ge;onFocus=new ge;onBlur=new ge;onChipClick=new ge;onClear=new ge;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=$t();focused;focusedIndex;filled;get focusedOptionId(){return null!==this.focusedIndex?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(e,n,o){this.document=e,this.el=n,this.cd=o}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template}}),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(e)}}onArrowLeftKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex=null===this.focusedIndex?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(e){null!==this.focusedIndex&&this.removeItem(e,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(e){this.disabled||(this.separator&&((e.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(o=>{this.addItem(e,o,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){this.filled=!(!this.value||0===this.value.length)||this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(e,n){this.onChipClick.emit({originalEvent:e,value:n})}writeValue(e){this.value=e,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}resolveFieldData(e,n){if(e&&n){if(-1==n.indexOf("."))return e[n];{let r=n.split("."),a=e;for(var o=0,s=r.length;or!=n),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:e,value:o}),this.updateFilledState(),this.updateMaxedOut()}addItem(e,n,o){this.value=this.value||[],n&&n.trim().length&&(this.allowDuplicate||-1===this.value.indexOf(n))&&!this.isMaxedOut&&(this.value=[...this.value,n],this.onModelChange(this.value),this.onAdd.emit({originalEvent:e,value:n})),this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",o&&e.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(e){const n=e.target.value;switch(e.code){case"Backspace":0===n.length&&this.value&&this.value.length>0&&this.removeItem(e,null!==this.focusedIndex?this.focusedIndex:this.value.length-1);break;case"Enter":n&&n.trim().length&&!this.isMaxedOut&&this.addItem(e,n,!0);break;case"ArrowLeft":0===n.length&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":e.stopPropagation();break;default:this.separator&&(this.separator===e.key||e.key.match(this.separator))&&this.addItem(e,n,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-chips"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(Wge,5),je(Qge,5)),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-chips-clearable",o.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[yt([fme])],decls:8,vars:31,consts:[[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"ngClass","click","focus","blur","keydown"],["container",""],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text",3,"disabled","ngStyle","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],["role","option",3,"ngClass","click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"ul",1,2),me("click",function(){return o.onWrapperClick()})("focus",function(){return o.onContainerFocus()})("blur",function(){return o.onContainerBlur()})("keydown",function(r){return o.onContainerKeyDown(r)}),g(3,sme,5,16,"li",3),x(4,"li",4)(5,"input",5,6),me("keydown",function(r){return o.onKeyDown(r)})("input",function(){return o.onInput()})("paste",function(r){return o.onPaste(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A()(),g(7,ume,3,2,"li",7),A()()),2&n&&(Ve(o.styleClass),d("ngClass",gr(23,dme,o.disabled,o.focused,o.value&&o.value.length||(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value)&&(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value.length),o.focused))("ngStyle",o.style),K("data-pc-name","chips")("data-pc-section","root"),h(1),d("ngClass",Jt(28,pme)),K("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),h(2),d("ngForOf",o.value),h(1),d("ngClass",He(29,hme,o.showClear&&!o.disabled)),K("data-pc-section","inputToken"),h(1),Ve(o.inputStyleClass),d("disabled",o.disabled||o.isMaxedOut)("ngStyle",o.inputStyle),K("id",o.inputId)("placeholder",o.value&&o.value.length?null:o.placeholder)("tabindex",o.tabindex),h(2),d("ngIf",null!=o.value&&o.filled&&!o.disabled&&o.showClear))},dependencies:function(){return[Ct,Jn,gt,on,Ht,ir,mn]},styles:["@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),mme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Qe,ir,mn,Zs,Qe]})}return t})();Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}",en({transform:"none",opacity:1}))]),Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Xme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,dn,mn,yi,Mi,Qe]})}return t})();const Jme=["container"],e_e=["input"],t_e=["colorSelector"],n_e=["colorHandle"],i_e=["hue"],o_e=["hueHandle"],s_e=function(t){return{"p-disabled":t}};function r_e(t,i){if(1&t){const e=De();x(0,"input",4,5),me("click",function(){return G(e),q(f().onInputClick())})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("focus",function(){return G(e),q(f().onInputFocus())}),A()}if(2&t){const e=f();fo("background-color",e.inputBgColor),d("ngClass",He(7,s_e,e.disabled))("disabled",e.disabled),K("tabindex",e.tabindex)("id",e.inputId)("data-pc-section","input")}}const a_e=function(t,i){return{"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":t,"p-disabled":i}},l_e=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},c_e=function(t){return{value:"visible",params:t}};function u_e(t,i){if(1&t){const e=De();x(0,"div",6),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(1,"div",7)(2,"div",8,9),me("touchstart",function(o){return G(e),q(f().onColorDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())})("mousedown",function(o){return G(e),q(f().onColorMousedown(o))}),x(4,"div",10),le(5,"div",11,12),A()(),x(7,"div",13,14),me("mousedown",function(o){return G(e),q(f().onHueMousedown(o))})("touchstart",function(o){return G(e),q(f().onHueDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())}),le(9,"div",15,16),A()()()}if(2&t){const e=f();d("ngClass",mt(10,a_e,!e.inline,e.disabled))("@overlayAnimation",He(16,c_e,mt(13,l_e,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("data-pc-section","panel"),h(1),K("data-pc-section","content"),h(1),K("data-pc-section","selector"),h(2),K("data-pc-section","color"),h(1),K("data-pc-section","colorHandle"),h(2),K("data-pc-section","hue"),h(2),K("data-pc-section","hueHandle")}}const d_e=function(t,i){return{"p-colorpicker p-component":!0,"p-colorpicker-overlay":t,"p-colorpicker-dragging":i}},p_e={provide:un,useExisting:ft(()=>h_e),multi:!0};let h_e=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;style;styleClass;inline;format="hex";appendTo;disabled;tabindex;inputId;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onChange=new ge;onShow=new ge;onHide=new ge;containerViewChild;inputViewChild;value={h:0,s:100,b:100};inputBgColor;shown;overlayVisible;defaultColor="ff0000";onModelChange=()=>{};onModelTouched=()=>{};documentClickListener;documentResizeListener;documentMousemoveListener;documentMouseupListener;documentHueMoveListener;scrollHandler;selfClick;colorDragging;hueDragging;overlay;colorSelectorViewChild;colorHandleViewChild;hueViewChild;hueHandleViewChild;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueDragStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorDragStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,n){let o=n?n.pageY:e.pageY,s=this.hueViewChild?.nativeElement.getBoundingClientRect().top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,o-s)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onDrag(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,n){let o=n?n.pageX:e.pageX,s=n?n.pageY:e.pageY,r=this.colorSelectorViewChild?.nativeElement.getBoundingClientRect(),a=r.top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0),c=Math.floor(100*Math.max(0,Math.min(150,o-(r.left+this.document.body.scrollLeft)))/150),u=Math.floor(100*(150-Math.max(0,Math.min(150,s-a)))/150);this.value=this.validateHSB({h:this.value.h,s:c,b:u}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){const e={s:100,b:100};e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild?.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inline||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&Wn.clear(e.element),this.onHide.emit({})}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):j.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.overlay)}alignOverlay(){this.appendTo?j.absolutePosition(this.overlay,this.inputViewChild?.nativeElement):j.relativePosition(this.overlay,this.inputViewChild?.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.code){case"Space":this.togglePanel(),e.preventDefault();break;case"Escape":case"Tab":this.hide()}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){this.documentMousemoveListener||(this.documentMousemoveListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousemove",n=>{this.colorDragging&&this.pickColor(n),this.hueDragging&&this.pickHue(n)}))}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){this.documentMouseupListener||(this.documentMouseupListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}))}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var n=6-e.length;if(n>0){for(var o=[],s=0;s-1?e.substring(1):e,16);return{r:n>>16,g:(65280&n)>>8,b:255&n}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var n={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),s=Math.max(e.r,e.g,e.b),r=s-o;return n.b=s,n.s=0!=s?255*r/s:0,n.h=0!=n.s?e.r==s?(e.g-e.b)/r:e.g==s?2+(e.b-e.r)/r:4+(e.r-e.g)/r:-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n}HSBtoRGB(e){var n={r:0,g:0,b:0};let o=e.h,s=255*e.s/100,r=255*e.b/100;if(0==s)n={r,g:r,b:r};else{let a=r,l=(255-s)*r/255,c=o%60*(a-l)/60;360==o&&(o=0),o<60?(n.r=a,n.b=l,n.g=l+c):o<120?(n.g=a,n.b=l,n.r=a-c):o<180?(n.g=a,n.r=l,n.b=l+c):o<240?(n.b=a,n.r=l,n.g=a-c):o<300?(n.b=a,n.g=l,n.r=l+c):o<360?(n.r=a,n.g=l,n.b=a-c):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}RGBtoHEX(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var o in n)1==n[o].length&&(n[o]="0"+n[o]);return n.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-colorPicker"]],viewQuery:function(n,o){if(1&n&&(je(Jme,5),je(e_e,5),je(t_e,5),je(n_e,5),je(i_e,5),je(o_e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.colorSelector=s.first),Se(s=Ee())&&(o.colorHandle=s.first),Se(s=Ee())&&(o.hue=s.first),Se(s=Ee())&&(o.hueHandle=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",inline:"inline",format:"format",appendTo:"appendTo",disabled:"disabled",tabindex:"tabindex",inputId:"inputId",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[yt([p_e])],decls:4,vars:11,consts:[[3,"ngStyle","ngClass"],["container",""],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly",3,"ngClass","disabled","backgroundColor","click","keydown","focus",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview","p-inputtext",3,"ngClass","disabled","click","keydown","focus"],["input",""],[3,"ngClass","click"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],["colorSelector",""],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],["colorHandle",""],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],["hue",""],[1,"p-colorpicker-hue-handle"],["hueHandle",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,r_e,2,9,"input",2),g(3,u_e,11,18,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(8,d_e,!o.inline,o.colorDragging||o.hueDragging)),K("data-pc-name","colorpicker")("data-pc-section","root"),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{position:relative;width:193px;height:166px}.p-colorpicker-overlay-panel{position:absolute;top:0;left:0}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{width:150px;height:150px;top:8px;left:8px;position:absolute}.p-colorpicker-panel .p-colorpicker-color{width:150px;height:150px}.p-colorpicker-panel .p-colorpicker-color-handle{position:absolute;top:0;left:150px;border-radius:100%;width:10px;height:10px;border-width:1px;border-style:solid;margin:-5px 0 0 -5px;cursor:pointer;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue{width:17px;height:150px;top:8px;left:167px;position:absolute;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue-handle{position:absolute;top:150px;left:0;width:21px;margin-left:-2px;margin-top:-5px;height:10px;border-width:2px;border-style:solid;opacity:.85;cursor:pointer}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),f_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),g_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ThLargeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.90909 6.36364H4.45455C4.96087 6.36364 5.44645 6.1625 5.80448 5.80448C6.1625 5.44645 6.36364 4.96087 6.36364 4.45455V1.90909C6.36364 1.40277 6.1625 0.917184 5.80448 0.55916C5.44645 0.201136 4.96087 0 4.45455 0H1.90909C1.40277 0 0.917184 0.201136 0.55916 0.55916C0.201136 0.917184 0 1.40277 0 1.90909V4.45455C0 4.96087 0.201136 5.44645 0.55916 5.80448C0.917184 6.1625 1.40277 6.36364 1.90909 6.36364ZM1.46154 1.46154C1.58041 1.34268 1.741 1.27492 1.90909 1.27273H4.45455C4.62264 1.27492 4.78322 1.34268 4.90209 1.46154C5.02096 1.58041 5.08871 1.741 5.09091 1.90909V4.45455C5.08871 4.62264 5.02096 4.78322 4.90209 4.90209C4.78322 5.02096 4.62264 5.08871 4.45455 5.09091H1.90909C1.741 5.08871 1.58041 5.02096 1.46154 4.90209C1.34268 4.78322 1.27492 4.62264 1.27273 4.45455V1.90909C1.27492 1.741 1.34268 1.58041 1.46154 1.46154ZM1.90909 14H4.45455C4.96087 14 5.44645 13.7989 5.80448 13.4408C6.1625 13.0828 6.36364 12.5972 6.36364 12.0909V9.54544C6.36364 9.03912 6.1625 8.55354 5.80448 8.19551C5.44645 7.83749 4.96087 7.63635 4.45455 7.63635H1.90909C1.40277 7.63635 0.917184 7.83749 0.55916 8.19551C0.201136 8.55354 0 9.03912 0 9.54544V12.0909C0 12.5972 0.201136 13.0828 0.55916 13.4408C0.917184 13.7989 1.40277 14 1.90909 14ZM1.46154 9.0979C1.58041 8.97903 1.741 8.91128 1.90909 8.90908H4.45455C4.62264 8.91128 4.78322 8.97903 4.90209 9.0979C5.02096 9.21677 5.08871 9.37735 5.09091 9.54544V12.0909C5.08871 12.259 5.02096 12.4196 4.90209 12.5384C4.78322 12.6573 4.62264 12.7251 4.45455 12.7273H1.90909C1.741 12.7251 1.58041 12.6573 1.46154 12.5384C1.34268 12.4196 1.27492 12.259 1.27273 12.0909V9.54544C1.27492 9.37735 1.34268 9.21677 1.46154 9.0979ZM12.0909 6.36364H9.54544C9.03912 6.36364 8.55354 6.1625 8.19551 5.80448C7.83749 5.44645 7.63635 4.96087 7.63635 4.45455V1.90909C7.63635 1.40277 7.83749 0.917184 8.19551 0.55916C8.55354 0.201136 9.03912 0 9.54544 0H12.0909C12.5972 0 13.0828 0.201136 13.4408 0.55916C13.7989 0.917184 14 1.40277 14 1.90909V4.45455C14 4.96087 13.7989 5.44645 13.4408 5.80448C13.0828 6.1625 12.5972 6.36364 12.0909 6.36364ZM9.54544 1.27273C9.37735 1.27492 9.21677 1.34268 9.0979 1.46154C8.97903 1.58041 8.91128 1.741 8.90908 1.90909V4.45455C8.91128 4.62264 8.97903 4.78322 9.0979 4.90209C9.21677 5.02096 9.37735 5.08871 9.54544 5.09091H12.0909C12.259 5.08871 12.4196 5.02096 12.5384 4.90209C12.6573 4.78322 12.7251 4.62264 12.7273 4.45455V1.90909C12.7251 1.741 12.6573 1.58041 12.5384 1.46154C12.4196 1.34268 12.259 1.27492 12.0909 1.27273H9.54544ZM9.54544 14H12.0909C12.5972 14 13.0828 13.7989 13.4408 13.4408C13.7989 13.0828 14 12.5972 14 12.0909V9.54544C14 9.03912 13.7989 8.55354 13.4408 8.19551C13.0828 7.83749 12.5972 7.63635 12.0909 7.63635H9.54544C9.03912 7.63635 8.55354 7.83749 8.19551 8.19551C7.83749 8.55354 7.63635 9.03912 7.63635 9.54544V12.0909C7.63635 12.5972 7.83749 13.0828 8.19551 13.4408C8.55354 13.7989 9.03912 14 9.54544 14ZM9.0979 9.0979C9.21677 8.97903 9.37735 8.91128 9.54544 8.90908H12.0909C12.259 8.91128 12.4196 8.97903 12.5384 9.0979C12.6573 9.21677 12.7251 9.37735 12.7273 9.54544V12.0909C12.7251 12.259 12.6573 12.4196 12.5384 12.5384C12.4196 12.6573 12.259 12.7251 12.0909 12.7273H9.54544C9.37735 12.7251 9.21677 12.6573 9.0979 12.5384C8.97903 12.4196 8.91128 12.259 8.90908 12.0909V9.54544C8.91128 9.37735 8.97903 9.21677 9.0979 9.0979Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),lO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BarsIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),D_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,vf,_s,lO,g_e,Qe]})}return t})();var k_e=z(7536);function M_e(t,i){1&t&&ze(0)}function O_e(t,i){if(1&t&&(x(0,"div",3),Kn(1),g(2,M_e,1,0,"ng-container",4),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)}}function L_e(t,i){1&t&&(x(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),Le(4,"Heading"),A(),x(5,"option",8),Le(6,"Subheading"),A(),x(7,"option",9),Le(8,"Normal"),A()(),x(9,"select",10)(10,"option",9),Le(11,"Sans Serif"),A(),x(12,"option",11),Le(13,"Serif"),A(),x(14,"option",12),Le(15,"Monospace"),A()()(),x(16,"span",5),le(17,"button",13)(18,"button",14)(19,"button",15),A(),x(20,"span",5),le(21,"select",16)(22,"select",17),A(),x(23,"span",5),le(24,"button",18)(25,"button",19),x(26,"select",20),le(27,"option",9),x(28,"option",21),Le(29,"center"),A(),x(30,"option",22),Le(31,"right"),A(),x(32,"option",23),Le(33,"justify"),A()()(),x(34,"span",5),le(35,"button",24)(36,"button",25)(37,"button",26),A(),x(38,"span",5),le(39,"button",27),A()())}const P_e=[[["p-header"]]],F_e=["p-header"],R_e={provide:un,useExisting:ft(()=>N_e),multi:!0};let N_e=(()=>{class t{el;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new ge;onTextChange=new ge;onSelectionChange=new ge;templates;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;constructor(e){this.el=e}ngAfterViewInit(){this.initQuillElements(),this.isAttachedQuillEditorToDOM&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.isAttachedQuillEditorToDOM&&this.initQuillEditor(),this.delayedCommand&&this.isAttachedQuillEditorToDOM&&(this.delayedCommand(),this.delayedCommand=null)}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()&&(this.headerTemplate=e.template)})}writeValue(e){if(this.value=e,this.quill)if(e){const n=()=>{this.quill.setContents(this.quill.clipboard.convert(this.value))};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}else{const n=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}initQuillEditor(){this.initQuillElements();const{toolbarElement:e,editorElement:n}=this.quillElements;let o={toolbar:e},s=this.modules?{...o,...this.modules}:o;this.quill=new k_e(n,{modules:s,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(r,a,l)=>{if("user"===l){let c=j.findSingle(n,".ql-editor").innerHTML,u=this.quill.getText().trim();"


"===c&&(c=null),this.onTextChange.emit({htmlValue:c,textValue:u,delta:r,source:l}),this.onModelChange(c),this.onModelTouched()}}),this.quill.on("selection-change",(r,a,l)=>{this.onSelectionChange.emit({range:r,oldRange:a,source:l})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:j.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:j.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-editor"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.toolbar=r.first),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[yt([R_e])],ngContentSelectors:F_e,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(n,o){1&n&&(Ti(P_e),x(0,"div",0),g(1,O_e,3,1,"div",1),g(2,L_e,40,0,"div",1),le(3,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-editor-container"),h(1),d("ngIf",o.toolbar||o.headerTemplate),h(1),d("ngIf",!o.toolbar&&!o.headerTemplate),h(1),d("ngStyle",o.style))},dependencies:[Ct,gt,on,Ht],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0})}return t})(),V_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),ng=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Q_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,eg,ng,Qe]})}return t})(),Z_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["UploadIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[st,Et],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3),A(),x(5,"defs")(6,"clipPath",4),le(7,"rect",5),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(5),d("id",o.pathId))},encapsulation:2})}return t})(),bv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),yv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn]})}return t})(),xv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),pIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,eE,Qe,Mi,xv,yv,dn,ng,Z_e,mn,Qe,Mi,xv,yv]})}return t})(),yIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,mn,Mi,Qe]})}return t})();const xIe=["input"];function AIe(t,i){if(1&t){const e=De();x(0,"TimesIcon",5),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-inputmask-clear-icon"),K("data-pc-section","clearIcon"))}function wIe(t,i){}function TIe(t,i){1&t&&g(0,wIe,0,0,"ng-template")}function SIe(t,i){if(1&t){const e=De();x(0,"span",6),me("click",function(){return G(e),q(f(2).clear())}),g(1,TIe,1,0,null,7),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function EIe(t,i){if(1&t&&(we(0),g(1,AIe,1,2,"TimesIcon",3),g(2,SIe,2,2,"span",4),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const DIe={provide:un,useExisting:ft(()=>kIe),multi:!0};let kIe=(()=>{class t{document;platformId;el;cd;type="text";slotChar="_";autoClear=!0;showClear=!1;style;inputId;styleClass;placeholder;size;maxlength;tabindex;title;ariaLabel;ariaLabelledBy;ariaRequired;disabled;readonly;unmask;name;required;characterPattern="[A-Za-z]";autoFocus;autocomplete;keepBuffer=!1;get mask(){return this._mask}set mask(e){this._mask=e,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}onComplete=new ge;onFocus=new ge;onBlur=new ge;onInput=new ge;onKeydown=new ge;onClear=new ge;inputViewChild;templates;clearIconTemplate;value;_mask;onModelChange=()=>{};onModelTouched=()=>{};input;filled;defs;tests;partialPosition;firstNonMaskPos;lastRequiredNonMaskPos;len;oldVal;buffer;defaultBuffer;focusText;caretTimeoutId;androidChrome=!0;focused;constructor(e,n,o,s){this.document=e,this.platformId=n,this.el=o,this.cd=s}ngOnInit(){if(ei(this.platformId)){let e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e)}this.initMask()}ngAfterContentInit(){this.templates.forEach(e=>{"clearicon"===e.getType()&&(this.clearIconTemplate=e.template)})}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let e=this.mask.split("");for(let n=0;n=0&&!this.tests[e];);return e}shiftL(e,n){let o,s;if(!(e<0)){for(o=e,s=this.seekNext(n);on.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}else{for(this.checkVal(!0);o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}}onInputBlur(e){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(e),this.inputViewChild?.nativeElement.value!=this.focusText||this.inputViewChild?.nativeElement.value!=this.value){this.updateModel(e);let n=this.document.createEvent("HTMLEvents");n.initEvent("change",!0,!1),this.inputViewChild?.nativeElement.dispatchEvent(n)}}onInputKeydown(e){if(this.readonly)return;let o,s,r,a,n=e.which||e.keyCode;ei(this.platformId)&&(a=/iphone/i.test(j.getUserAgent())),this.oldVal=this.inputViewChild?.nativeElement.value,this.onKeydown.emit(e),8===n||46===n||a&&127===n?(o=this.caret(),s=o.begin,r=o.end,r-s==0&&(s=46!==n?this.seekPrev(s):r=this.seekNext(s-1),r=46===n?this.seekNext(r):r),this.clearBuffer(s,r),this.shiftL(s,this.keepBuffer?r-2:r-1),this.updateModel(e),this.onInput.emit(e),e.preventDefault()):13===n?(this.onInputBlur(e),this.updateModel(e)):27===n&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}onKeyPress(e){if(!this.readonly){var s,r,a,l,n=e.which||e.keyCode,o=this.caret();e.ctrlKey||e.altKey||e.metaKey||n<32||n>34&&n<41||(n&&13!==n&&(o.end-o.begin!=0&&(this.clearBuffer(o.begin,o.end),this.shiftL(o.begin,o.end-1)),(s=this.seekNext(o.begin-1)){this.caret(a)},0):this.caret(a),o.begin<=this.lastRequiredNonMaskPos&&(l=this.isCompleted()),this.onInput.emit(e))),e.preventDefault()),this.updateModel(e),this.updateFilledState(),l&&this.onComplete.emit())}}clearBuffer(e,n){if(!this.keepBuffer){let o;for(o=e;on.length){this.clearBuffer(s+1,this.len);break}}else this.buffer[s]===n.charAt(a)&&a++,s{this.inputViewChild?.nativeElement===this.inputViewChild?.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),n==this.mask?.replace("?","").length?this.caret(0,n):this.caret(n))},10),this.onFocus.emit(e)}onInputChange(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.onInput.emit(e)}handleInputChange(e){this.readonly||setTimeout(()=>{var n=this.checkVal(!0);this.caret(n),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}getUnmaskedValue(){let e=[];for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,gf,mn,Qe]})}return t})(),OIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const LIe=["headerchkbox"],PIe=["filter"],FIe=["lastHiddenFocusableElement"],RIe=["firstHiddenFocusableElement"],NIe=["scroller"],VIe=["list"];function BIe(t,i){1&t&&ze(0)}const ig=function(t,i){return{$implicit:t,options:i}};function HIe(t,i){if(1&t&&(x(0,"div",12),Kn(1),g(2,BIe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function zIe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function jIe(t,i){}function UIe(t,i){1&t&&g(0,jIe,0,0,"ng-template")}function $Ie(t,i){if(1&t&&(x(0,"span",25),g(1,UIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function KIe(t,i){if(1&t&&(we(0),g(1,zIe,1,2,"CheckIcon",22),g(2,$Ie,2,2,"span",23),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const cO=function(t){return{"p-checkbox-disabled":t}},GIe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function qIe(t,i){if(1&t){const e=De();x(0,"div",17),me("click",function(o){return G(e),q(f(2).onToggleAll(o))})("keydown",function(o){return G(e),q(f(2).onHeaderCheckboxKeyDown(o))}),x(1,"div",18)(2,"input",19,20),me("focus",function(o){return G(e),q(f(2).onHeaderCheckboxFocus(o))})("blur",function(o){return G(e),q(f(2).onHeaderCheckboxBlur(o))}),A()(),x(4,"div",21),g(5,KIe,3,2,"ng-container",6),A()()}if(2&t){const e=f(2);d("ngClass",He(8,cO,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(10,GIe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function WIe(t,i){1&t&&ze(0)}const uO=function(t){return{options:t}};function QIe(t,i){if(1&t&&(we(0),g(1,WIe,1,0,"ng-container",13),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,uO,e.filterOptions))}}function ZIe(t,i){1&t&&le(0,"SearchIcon",24),2&t&&(d("styleClass","p-listbox-filter-icon"),K("aria-hidden",!0))}function YIe(t,i){}function XIe(t,i){1&t&&g(0,YIe,0,0,"ng-template")}function JIe(t,i){if(1&t&&(x(0,"span",33),g(1,XIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function eCe(t,i){if(1&t){const e=De();x(0,"div",29)(1,"input",30,31),me("input",function(o){return G(e),q(f(3).onFilterChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,ZIe,1,2,"SearchIcon",22),g(4,JIe,2,2,"span",32),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||"")("disabled",e.disabled)("tabindex",e.disabled||e.focused?-1:e.tabindex),K("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function tCe(t,i){if(1&t&&(g(0,eCe,5,9,"div",27),x(1,"span",28),Le(2),A()),2&t){const e=f(2);d("ngIf",e.filter),h(1),K("data-p-hidden-accessible",!0),h(1),Pt(" ",e.filterResultMessageText," ")}}function nCe(t,i){if(1&t&&(x(0,"div",12),g(1,qIe,6,14,"div",14),g(2,QIe,2,4,"ng-container",15),g(3,tCe,3,3,"ng-template",null,16,In),A()),2&t){const e=Bt(4),n=f();h(1),d("ngIf",n.checkbox&&n.multiple&&n.showToggleAll),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function iCe(t,i){1&t&&ze(0)}function oCe(t,i){if(1&t&&g(0,iCe,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,ig,e,n))}}function sCe(t,i){1&t&&ze(0)}function rCe(t,i){if(1&t&&g(0,sCe,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,uO,e))}}function aCe(t,i){1&t&&(we(0),g(1,rCe,1,4,"ng-template",37),Te())}const Av=function(t){return{height:t}};function lCe(t,i){if(1&t){const e=De();x(0,"p-scroller",34,35),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,oCe,1,5,"ng-template",36),g(3,aCe,2,0,"ng-container",6),A()}if(2&t){const e=f();yn(He(9,Av,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function cCe(t,i){1&t&&ze(0)}const uCe=function(){return{}};function dCe(t,i){if(1&t&&(we(0),g(1,cCe,1,0,"ng-container",13),Te()),2&t){const e=f(),n=Bt(9);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,ig,e.visibleOptions(),Jt(2,uCe)))}}function pCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function hCe(t,i){1&t&&ze(0)}const fCe=function(t){return{$implicit:t}};function gCe(t,i){if(1&t&&(we(0),x(1,"li",42),g(2,pCe,2,1,"span",6),g(3,hCe,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,Av,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,fCe,o.optionGroup))}}function mCe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function _Ce(t,i){}function ICe(t,i){1&t&&g(0,_Ce,0,0,"ng-template")}function CCe(t,i){if(1&t&&(x(0,"span",25),g(1,ICe,1,0,null,26),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function vCe(t,i){if(1&t&&(we(0),g(1,mCe,1,2,"CheckIcon",22),g(2,CCe,2,2,"span",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const bCe=function(t){return{"p-highlight":t}};function yCe(t,i){if(1&t&&(x(0,"div",45)(1,"div",46),g(2,vCe,3,2,"ng-container",6),A()()),2&t){const e=f(2).$implicit,n=f(2);d("ngClass",He(3,cO,n.disabled||n.isOptionDisabled(e))),h(1),d("ngClass",He(5,bCe,n.isSelected(e))),h(1),d("ngIf",n.isSelected(e))}}function xCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function ACe(t,i){1&t&&ze(0)}const wCe=function(t,i,e){return{"p-listbox-item":!0,"p-highlight":t,"p-focus":i,"p-disabled":e}},TCe=function(t,i){return{$implicit:t,index:i}};function SCe(t,i){if(1&t){const e=De();we(0),x(1,"li",43),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index,l=f().options,c=f();return q(c.onOptionSelect(o,r,c.getOptionIndex(a,l)))})("dblclick",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionDoubleClick(o,s))})("mousedown",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseDown(o,a.getOptionIndex(s,r)))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))})("touchend",function(){return G(e),q(f(3).onOptionTouchEnd())}),g(2,yCe,3,7,"div",44),g(3,xCe,2,1,"span",6),g(4,ACe,1,0,"ng-container",13),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,Av,s.itemSize+"px"))("ngClass",Rn(14,wCe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n)))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(o,s))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("aria-setsize",r.ariaSetSize),h(1),d("ngIf",r.checkbox&&r.multiple),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,TCe,n,r.getOptionIndex(o,s)))}}function ECe(t,i){if(1&t&&(g(0,gCe,4,9,"ng-container",6),g(1,SCe,5,21,"ng-container",6)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function DCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyFilterMessageText," ")}}function kCe(t,i){1&t&&ze(0,null,48)}function MCe(t,i){if(1&t&&(x(0,"li",47),g(1,DCe,2,1,"ng-container",15),g(2,kCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),h(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function OCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyMessageText," ")}}function LCe(t,i){1&t&&ze(0,null,49)}function PCe(t,i){if(1&t&&(x(0,"li",47),g(1,OCe,2,1,"ng-container",15),g(2,LCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),h(1),d("ngTemplateOutlet",e.emptyTemplate)}}function FCe(t,i){if(1&t){const e=De();x(0,"ul",38,39),me("focus",function(o){return G(e),q(f().onListFocus(o))})("blur",function(o){return G(e),q(f().onListBlur(o))})("keydown",function(o){return G(e),q(f().onListKeyDown(o))}),g(2,ECe,2,2,"ng-template",40),g(3,MCe,3,3,"li",41),g(4,PCe,3,3,"li",41),A()}if(2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("tabindex",-1)("ngClass",n.contentStyleClass),K("aria-multiselectable",!0)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-label",o.ariaLabel)("aria-multiselectable",o.multiple)("aria-disabled",o.disabled),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function RCe(t,i){1&t&&ze(0)}function NCe(t,i){if(1&t&&(x(0,"div",50),Kn(1,1),g(2,RCe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function VCe(t,i){if(1&t&&(x(0,"span",10),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.emptyMessageText," ")}}const BCe=[[["p-header"]],[["p-footer"]]],HCe=["p-header","p-footer"],zCe={provide:un,useExisting:ft(()=>jCe),multi:!0};let jCe=(()=>{class t{el;cd;filterService;config;renderer;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;focusOnHover;filterMessage;filterFields;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;scrollHeight="200px";tabindex=0;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!1;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel="label";optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}onChange=new ge;onClick=new ge;onDblClick=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onSelectAllChange=new ge;headerCheckboxViewChild;filterViewChild;lastHiddenFocusableElement;firstHiddenFocusableElement;scroller;listViewChild;headerFacet;footerFacet;templates;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;_filterValue=bn(null);_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;focused;get containerClass(){return{"p-listbox p-component":!0,"p-focus":this.focused,"p-disabled":this.disabled}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get filterResultMessageText(){return be.isNotEmpty(this.visibleOptions())?this.filterMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptyFilterMessageText}get filterMessageText(){return this.filterMessage||this.config.translation.searchMessage||""}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptyFilterMessageText(){return this.emptyFilterMessage||this.config.translation.emptySearchMessage||this.config.translation.emptyFilterMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}get searchFields(){return this.filterFields||[this.optionLabel]}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}searchValue;searchTimeout;_selectAll=null;_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);modelValue=bn(null);visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this._options()):this._options()||[];return this._filterValue()?this.filterService.filter(e,this.searchFields,this._filterValue(),this.filterMatchMode,this.filterLocale):e});constructor(e,n,o,s,r){this.el=e,this.cd=n,this.filterService=o,this.config=s,this.renderer=r}ngOnInit(){this.id=this.id||$t(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template}})}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&!this.multiple){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()])}}updateModel(e,n){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.onChange.emit({originalEvent:n,value:this.value})}removeOption(e){return this.modelValue().filter(n=>!be.equals(n,this.getOptionValue(e),this.equalityKey()))}onOptionSelect(e,n,o=-1){this.disabled||this.isOptionDisabled(n)||(e&&this.onClick.emit({originalEvent:e,value:n}),this.multiple?this.onOptionSelectMultiple(e,n):this.onOptionSelectSingle(e,n),this.optionTouched=!1,-1!==o&&this.focusedOptionIndex.set(o))}onOptionSelectMultiple(e,n){let o=this.isSelected(n),s=null;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;o?s=a?this.removeOption(n):[this.getOptionValue(n)]:(s=a&&this.modelValue()||[],s=[...s,this.getOptionValue(n)])}else s=o?this.removeOption(n):[...this.modelValue()||[],this.getOptionValue(n)];this.updateModel(s,e)}onOptionSelectSingle(e,n){let o=this.isSelected(n),s=!1,r=null;!this.optionTouched&&this.metaKeySelection?o?(e.metaKey||e.ctrlKey)&&(r=null,s=!0):(r=this.getOptionValue(n),s=!0):(r=o?null:this.getOptionValue(n),s=!0),s&&this.updateModel(r,e)}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}onToggleAll(e){if(!this.disabled&&!this.readonly){if(j.focus(this.headerCheckboxViewChild.nativeElement),null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:this.value})}e.preventDefault()}}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}onOptionTouchEnd(){this.disabled||(this.optionTouched=!0)}onOptionMouseDown(e,n){this.changeFocusedOptionIndex(e,n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onOptionDoubleClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onFirstHiddenFocus(e){j.focus(this.listViewChild.nativeElement);const n=j.getFirstFocusableElement(this.el.nativeElement,':not([data-p-hidden-focusable="true"])');this.lastHiddenFocusableElement.nativeElement.tabIndex=be.isEmpty(n)?"-1":void 0,this.firstHiddenFocusableElement.nativeElement.tabIndex=-1}onLastHiddenFocus(e){if(e.relatedTarget===this.listViewChild.nativeElement){const o=j.getFirstFocusableElement(this.el.nativeElement,":not(.p-hidden-focusable)");j.focus(o),this.firstHiddenFocusableElement.nativeElement.tabIndex=void 0}else j.focus(this.firstHiddenFocusableElement.nativeElement);this.lastHiddenFocusableElement.nativeElement.tabIndex=-1}onFocusout(e){!this.el.nativeElement.contains(e.relatedTarget)&&this.lastHiddenFocusableElement&&this.firstHiddenFocusableElement&&(this.firstHiddenFocusableElement.nativeElement.tabIndex=this.lastHiddenFocusableElement.nativeElement.tabIndex=void 0)}onListFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.onFocus.emit(e)}onListBlur(e){this.focused=!1,this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.searchValue=""}onHeaderCheckboxFocus(e){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e);break;case"Tab":this.onHeaderCheckboxTabKeyDown(e)}}onHeaderCheckboxTabKeyDown(e){j.focus(this.listViewChild.nativeElement),e.preventDefault()}onFilterChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onFilterBlur(e){this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1)}onListKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onSpaceKey(e);break;case"Tab":break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(this.multiple&&"KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey()}}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowUpKey(e){const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onHomeKey(e,n=!1){if(n)e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1);else{let o=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findLastOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onPageDownKey(e){this.scrollInView(0),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onEnterKey(e){-1!==this.focusedOptionIndex()&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()])),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onShiftKey(){const e=this.focusedOptionIndex();this.startRangeIndex.set(e)}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions()[n]))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}scrollInView(e=-1){const o=j.findSingle(this.listViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroll&&this.scroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex())}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}equalityKey(){return this.optionValue?null:this.dataKey}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){const n=this.getOptionValue(e);return this.multiple?(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey())):be.equals(this.modelValue(),n,this.equalityKey())}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue.set(null)}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft),V(df),V(ki),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-listbox"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(LIe,5),je(PIe,5),je(FIe,5),je(RIe,5),je(NIe,5),je(VIe,5)),2&n){let s;Se(s=Ee())&&(o.headerCheckboxViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElement=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElement=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",focusOnHover:"focusOnHover",filterMessage:"filterMessage",filterFields:"filterFields",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",scrollHeight:"scrollHeight",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue",selectAll:"selectAll"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onSelectAllChange:"onSelectAllChange"},features:[yt([zCe])],ngContentSelectors:HCe,decls:16,vars:24,consts:[[3,"ngClass","ngStyle","focusout"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"tabindex","focus"],["firstHiddenFocusableElement",""],["class","p-listbox-header",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInItems",""],["class","p-listbox-footer",4,"ngIf"],["role","status","aria-live","polite","class","p-hidden-accessible",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["lastHiddenFocusableElement",""],[1,"p-listbox-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"disabled","focus","blur"],["headerchkbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],["class","p-listbox-filter-container",4,"ngIf"],["role","status","attr.aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-filter-container"],["type","text","role","searchbox",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","tabindex","input","keydown","blur"],["filterInput",""],["class","p-listbox-filter-icon",4,"ngIf"],[1,"p-listbox-filter-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-listbox-list",3,"tabindex","ngClass","focus","blur","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-listbox-empty-message","role","option",4,"ngIf"],["role","option",1,"p-listbox-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-listbox-item",3,"ngStyle","ngClass","ariaPosInset","click","dblclick","mousedown","mouseenter","touchend"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-checkbox-box",3,"ngClass"],["role","option",1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(n,o){1&n&&(Ti(BCe),x(0,"div",0),me("focusout",function(r){return o.onFocusout(r)}),x(1,"span",1,2),me("focus",function(r){return o.onFirstHiddenFocus(r)}),A(),g(3,HIe,3,5,"div",3),g(4,nCe,5,3,"div",3),x(5,"div",4),g(6,lCe,4,11,"p-scroller",5),g(7,dCe,2,6,"ng-container",6),g(8,FCe,5,12,"ng-template",null,7,In),A(),g(10,NCe,3,5,"div",8),g(11,VCe,2,1,"span",9),x(12,"span",10),Le(13),A(),x(14,"span",1,11),me("focus",function(r){return o.onLastHiddenFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",o.headerFacet||o.headerTemplate),h(1),d("ngIf",o.checkbox&&o.multiple&&o.showToggleAll||o.filter),h(1),Ve(o.listStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight||"auto"),d("ngClass","p-listbox-list-wrapper")("ngStyle",o.listStyle),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.footerFacet||o.footerTemplate),h(1),d("ngIf",o.isEmpty()),h(2),Pt(" ",o.selectedMessageText," "),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0))},dependencies:function(){return[Ct,Jn,gt,on,Ht,sn,oo,Bu,Qs,yi]},styles:["@layer primeng{.p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),UCe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,Qs,yi,Qe,Oi]})}return t})(),wve=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,Or,Zo,qn,Nn,Qe]})}return t})(),o1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,qn,Nn]})}return t})(),z1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,lO,Or,Zo,qn,Nn,Qe]})}return t})(),$1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,bv,ir,vv]})}return t})();function K1e(t,i){1&t&&le(0,"CheckIcon",7),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function G1e(t,i){}function q1e(t,i){1&t&&g(0,G1e,0,0,"ng-template")}function W1e(t,i){if(1&t&&(x(0,"span",8),g(1,q1e,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function Q1e(t,i){if(1&t&&(we(0),g(1,K1e,1,2,"CheckIcon",5),g(2,W1e,2,2,"span",6),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function Z1e(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function Y1e(t,i){1&t&&ze(0)}const ud=function(t){return{height:t}},X1e=function(t,i,e){return{"p-multiselect-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},J1e=function(t){return{"p-highlight":t}},Sv=function(t){return{$implicit:t}},ebe=["container"],tbe=["overlay"],nbe=["filterInput"],ibe=["focusInput"],obe=["items"],sbe=["scroller"],rbe=["lastHiddenFocusableEl"],abe=["firstHiddenFocusableEl"],lbe=["headerCheckbox"];function cbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt(e.label()||"empty")}}function ube(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",20),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),A()}2&t&&(d("styleClass","p-multiselect-token-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function dbe(t,i){1&t&&ze(0)}function pbe(t,i){if(1&t){const e=De();x(0,"span",21),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),g(1,dbe,1,0,"ng-container",22),A()}if(2&t){const e=f(5);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function hbe(t,i){if(1&t&&(we(0),g(1,ube,1,3,"TimesCircleIcon",18),g(2,pbe,2,3,"span",19),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}function fbe(t,i){if(1&t&&(x(0,"div",15,16)(2,"span",17),Le(3),A(),g(4,hbe,3,2,"ng-container",7),A()),2&t){const e=i.$implicit,n=f(3);h(3),dt(n.getLabelByValue(e)),h(1),d("ngIf",!n.disabled)}}function gbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),dt(e.placeholder||e.defaultLabel||"empty")}}function mbe(t,i){if(1&t&&(we(0),g(1,fbe,5,2,"div",14),g(2,gbe,2,1,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngForOf",e.chipSelectedItems()),h(1),d("ngIf",!e.modelValue()||0===e.modelValue().length)}}function _be(t,i){if(1&t&&(we(0),g(1,cbe,2,1,"ng-container",7),g(2,mbe,3,2,"ng-container",7),Te()),2&t){const e=f();h(1),d("ngIf","comma"===e.display),h(1),d("ngIf","chip"===e.display)}}function Ibe(t,i){1&t&&ze(0)}function Cbe(t,i){if(1&t){const e=De();x(0,"TimesIcon",20),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-multiselect-clear-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function vbe(t,i){}function bbe(t,i){1&t&&g(0,vbe,0,0,"ng-template")}function ybe(t,i){if(1&t){const e=De();x(0,"span",24),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,bbe,1,0,null,22),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function xbe(t,i){if(1&t&&(we(0),g(1,Cbe,1,3,"TimesIcon",18),g(2,ybe,2,3,"span",23),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function Abe(t,i){1&t&&le(0,"span",27),2&t&&(d("ngClass",f(2).dropdownIcon),K("data-pc-section","triggericon")("aria-hidden",!0))}function wbe(t,i){1&t&&le(0,"ChevronDownIcon",28),2&t&&(d("styleClass","p-multiselect-trigger-icon"),K("data-pc-section","triggericon")("aria-hidden",!0))}function Tbe(t,i){if(1&t&&(we(0),g(1,Abe,1,3,"span",25),g(2,wbe,1,3,"ChevronDownIcon",26),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Sbe(t,i){}function Ebe(t,i){1&t&&g(0,Sbe,0,0,"ng-template")}function Dbe(t,i){if(1&t&&(x(0,"span",29),g(1,Ebe,1,0,null,22),A()),2&t){const e=f();K("data-pc-section","triggericon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function kbe(t,i){1&t&&ze(0)}function Mbe(t,i){1&t&&ze(0)}const gO=function(t){return{options:t}};function Obe(t,i){if(1&t&&(we(0),g(1,Mbe,1,0,"ng-container",8),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,gO,e.filterOptions))}}function Lbe(t,i){1&t&&le(0,"CheckIcon",28),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function Pbe(t,i){}function Fbe(t,i){1&t&&g(0,Pbe,0,0,"ng-template")}function Rbe(t,i){if(1&t&&(x(0,"span",51),g(1,Fbe,1,0,null,8),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)("ngTemplateOutletContext",He(3,Sv,e.allSelected()))}}function Nbe(t,i){if(1&t&&(we(0),g(1,Lbe,1,2,"CheckIcon",26),g(2,Rbe,2,5,"span",50),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const Vbe=function(t){return{"p-checkbox-disabled":t}},Bbe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function Hbe(t,i){if(1&t){const e=De();x(0,"div",46),me("click",function(o){return G(e),q(f(4).onToggleAll(o))})("keydown",function(o){return G(e),q(f(4).onHeaderCheckboxKeyDown(o))}),x(1,"div",2)(2,"input",47,48),me("focus",function(){return G(e),q(f(4).onHeaderCheckboxFocus())})("blur",function(){return G(e),q(f(4).onHeaderCheckboxBlur())}),A()(),x(4,"div",49),g(5,Nbe,3,2,"ng-container",7),A()()}if(2&t){const e=f(4);d("ngClass",He(9,Vbe,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("readonly",e.readonly)("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(11,Bbe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function zbe(t,i){1&t&&le(0,"SearchIcon",28),2&t&&d("styleClass","p-multiselect-filter-icon")}function jbe(t,i){}function Ube(t,i){1&t&&g(0,jbe,0,0,"ng-template")}function $be(t,i){if(1&t&&(x(0,"span",56),g(1,Ube,1,0,null,22),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function Kbe(t,i){if(1&t){const e=De();x(0,"div",52)(1,"input",53,54),me("input",function(o){return G(e),q(f(4).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(4).onFilterKeyDown(o))})("click",function(o){return G(e),q(f(4).onInputClick(o))})("blur",function(o){return G(e),q(f(4).onFilterBlur(o))}),A(),g(3,zbe,1,1,"SearchIcon",26),g(4,$be,2,1,"span",55),A()}if(2&t){const e=f(4);h(1),d("value",e._filterValue()||"")("disabled",e.disabled),K("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function Gbe(t,i){1&t&&le(0,"TimesIcon",28),2&t&&d("styleClass","p-multiselect-close-icon")}function qbe(t,i){}function Wbe(t,i){1&t&&g(0,qbe,0,0,"ng-template")}function Qbe(t,i){if(1&t&&(x(0,"span",57),g(1,Wbe,1,0,null,22),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}function Zbe(t,i){if(1&t){const e=De();g(0,Hbe,6,15,"div",42),g(1,Kbe,5,10,"div",43),x(2,"button",44),me("click",function(o){return G(e),q(f(3).close(o))}),g(3,Gbe,1,1,"TimesIcon",26),g(4,Qbe,2,1,"span",45),A()}if(2&t){const e=f(3);d("ngIf",e.showToggleAll&&!e.selectionLimit),h(1),d("ngIf",e.filter),h(2),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Ybe(t,i){if(1&t&&(x(0,"div",39),Kn(1),g(2,kbe,1,0,"ng-container",22),g(3,Obe,2,4,"ng-container",40),g(4,Zbe,5,4,"ng-template",null,41,In),A()),2&t){const e=Bt(5),n=f(2);h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function Xbe(t,i){1&t&&ze(0)}const mO=function(t,i){return{$implicit:t,options:i}};function Jbe(t,i){if(1&t&&g(0,Xbe,1,0,"ng-container",8),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(8))("ngTemplateOutletContext",mt(2,mO,e,n))}}function eye(t,i){1&t&&ze(0)}function tye(t,i){if(1&t&&g(0,eye,1,0,"ng-container",8),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,gO,e))}}function nye(t,i){1&t&&(we(0),g(1,tye,1,4,"ng-template",60),Te())}function iye(t,i){if(1&t){const e=De();x(0,"p-scroller",58,59),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,Jbe,1,5,"ng-template",13),g(3,nye,2,0,"ng-container",7),A()}if(2&t){const e=f(2);yn(He(9,ud,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function oye(t,i){1&t&&ze(0)}const sye=function(){return{}};function rye(t,i){if(1&t&&(we(0),g(1,oye,1,0,"ng-container",8),Te()),2&t){f();const e=Bt(8),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,mO,n.visibleOptions(),Jt(2,sye)))}}function aye(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function lye(t,i){1&t&&ze(0)}function cye(t,i){if(1&t&&(we(0),x(1,"li",65),g(2,aye,2,1,"span",7),g(3,lye,1,0,"ng-container",8),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,ud,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Sv,o.optionGroup))}}function uye(t,i){if(1&t){const e=De();we(0),x(1,"p-multiSelectItem",66),me("onClick",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionSelect(o,!1,a.getOptionIndex(s,r)))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("checkIconTemplate",r.checkIconTemplate)("itemSize",s.itemSize)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function dye(t,i){if(1&t&&(g(0,cye,4,9,"ng-container",7),g(1,uye,2,11,"ng-container",7)),2&t){const e=i.$implicit,n=f(3);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function pye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function hye(t,i){1&t&&ze(0,null,68)}function fye(t,i){if(1&t&&(x(0,"li",67),g(1,pye,2,1,"ng-container",40),g(2,hye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function gye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function mye(t,i){1&t&&ze(0,null,69)}function _ye(t,i){if(1&t&&(x(0,"li",67),g(1,gye,2,1,"ng-container",40),g(2,mye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function Iye(t,i){if(1&t&&(x(0,"ul",61,62),g(2,dye,2,2,"ng-template",63),g(3,fye,3,6,"li",64),g(4,_ye,3,6,"li",64),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function Cye(t,i){1&t&&ze(0)}function vye(t,i){if(1&t&&(x(0,"div",70),Kn(1,1),g(2,Cye,1,0,"ng-container",22),A()),2&t){const e=f(2);h(2),d("ngTemplateOutlet",e.footerTemplate)}}function bye(t,i){if(1&t){const e=De();x(0,"div",30)(1,"span",31,32),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,Ybe,6,3,"div",33),x(4,"div",34),g(5,iye,4,11,"p-scroller",35),g(6,rye,2,6,"ng-container",7),g(7,Iye,5,6,"ng-template",null,36,In),A(),g(9,vye,3,1,"div",37),x(10,"span",31,38),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-multiselect-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden","true")("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",e.showHeader),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngIf",e.footerFacet||e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const yye=[[["p-header"]],[["p-footer"]]],xye=function(t,i){return{$implicit:t,removeChip:i}},Aye=["p-header","p-footer"],wye={provide:un,useExisting:ft(()=>Sye),multi:!0};let Tye=(()=>{class t{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;template;checkIconTemplate;onClick=new ge;onMouseEnter=new ge;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected})}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",focused:"focused",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkIconTemplate:"checkIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:6,vars:26,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","id","click","mouseenter"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),x(1,"div",1)(2,"div",2),g(3,Q1e,3,2,"ng-container",3),A()(),g(4,Z1e,2,1,"span",3),g(5,Y1e,1,0,"ng-container",4),A()),2&n&&(d("ngStyle",He(16,ud,o.itemSize+"px"))("ngClass",Rn(18,X1e,o.selected,o.disabled,o.focused))("id",o.id),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(2),d("ngClass",He(22,J1e,o.selected)),K("aria-checked",o.selected),h(1),d("ngIf",o.selected),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(24,Sv,o.option)))},dependencies:function(){return[Ct,gt,on,Ht,oo,yi]},encapsulation:2})}return t})(),Sye=(()=>{class t{el;renderer;cd;zone;filterService;config;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel="{0} items selected";showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="off";showClear=!1;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.warn("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder=e}get placeholder(){return this._placeholder}get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!1;filterFields;selectOnFocus=!1;autoOptionFocus=!0;onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onClear=new ge;onPanelShow=new ge;onPanelHide=new ge;onLazyLoad=new ge;onRemove=new ge;onSelectAllChange=new ge;containerViewChild;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;templates;searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder;_itemSize;_selectionLimit;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;headerCheckboxFocus;filterOptions;maxSelectionLimitReached;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=bn(null);_filterValue=bn(null);_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);get containerClass(){return{"p-multiselect p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-multiselect-clearable":this.showClear&&!this.disabled,"p-multiselect-chip":"chip"===this.display,"p-focus":this.focused,"p-inputwrapper-filled":be.isNotEmpty(this.modelValue()),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){return{"p-multiselect-label p-inputtext":!0,"p-placeholder":(this.placeholder||this.defaultLabel)&&(this.label()===this.placeholder||this.label()===this.defaultLabel),"p-multiselect-label-empty":!this.selectedItemsTemplate&&("p-emptylabel"===this.label()||0===this.label().length)}}get panelClass(){return{"p-multiselect-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get labelClass(){return{"p-multiselect-label":!0,"p-placeholder":this.label()===this.placeholder||this.label()===this.defaultLabel,"p-multiselect-label-empty":!(this.placeholder||this.defaultLabel||this.modelValue()&&0!==this.modelValue().length)}}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&""!==this.modelValue()&&be.isNotEmpty(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale);if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{let e;const n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(be.isNotEmpty(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let o=0;obe.isNotEmpty(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,o,s,r,a,l){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,this.overlayService=l}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());const e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,o=-1){const{originalEvent:s,option:r}=e;if(this.disabled||this.isOptionDisabled(r))return;let l=null;l=this.isSelected(r)?this.modelValue().filter(c=>!be.equals(c,this.getOptionValue(r),this.equalityKey())):[...this.modelValue()||[],this.getOptionValue(r)],this.updateModel(l,s),-1!==o&&this.focusedOptionIndex.set(o),n&&j.focus(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:l,itemValue:r})}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}searchFields(){return this.filterFields||[this.optionLabel]}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return(this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}isSelected(e){const n=this.getOptionValue(e);return(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){const o=(this.group?this.flatOptions(this._options()):this._options()||[]).find(s=>!this.isOptionGroup(s)&&be.equals(this.getOptionValue(s),e,this.equalityKey()));return o?this.getOptionLabel(o):null}getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue().length+""):this.selectedItemsLabel}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled)return void e.preventDefault();const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if("KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){const{currentTarget:o}=e;if(n)o.setSelectionRange(0,e.shiftKey?o.value.length:0),this.focusedOptionIndex.set(-1);else{let s=e.metaKey||e.ctrlKey,r=this.findFirstOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,r,this.startRangeIndex()),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){const{currentTarget:o}=e;if(n){const s=o.value.length;o.setSelectionRange(e.shiftKey?0:s,s),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,r=this.findLastFocusedOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,this.startRangeIndex(),r),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?-1!==this.focusedOptionIndex()&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(-1!==this.focusedOptionIndex()&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if("INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]'))return void e.preventDefault();(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onInputFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!this.disabled&&!this.readonly){if(null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e)}j.focus(this.headerCheckboxViewChild.nativeElement),this.headerCheckboxFocus=!0,e.preventDefault(),e.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}writeValue(e){this.value=e,this.modelValue.set(this.value),this.checkSelectionLimit(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){const n=be.isNotEmpty(this.modelValue())?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-multiselect-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched()}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.checkSelectionLimit(),this.updateModel(null,e),this.onClear.emit(),e.stopPropagation()}removeOption(e,n){let o=this.modelValue().filter(s=>!be.equals(s,e,this.equalityKey()));this.updateModel(o,n),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}activateFilter(){if(this.hasFilter()&&this._options){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let n=[];for(let o of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(o),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&n.push({...o,[this.optionGroupChildren]:s})}this._filteredOptions=n}else this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelect"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,rC,5),Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ebe,5),je(tbe,5),je(nbe,5),je(ibe,5),je(obe,5),je(sbe,5),je(rbe,5),je(abe,5),je(lbe,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.filterInputChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.headerCheckboxViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:"focusOnHover",filterFields:"filterFields",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[yt([wye])],ngContentSelectors:Aye,decls:16,vars:41,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["role","combobox",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","focus","blur","keydown"],["focusInput",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-multiselect-trigger"],["class","p-multiselect-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],["lastHiddenFocusableEl",""],[1,"p-multiselect-header"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],["type","checkbox",3,"readonly","disabled","focus","blur"],["headerCheckbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","searchbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input","keydown","click","blur"],["filterInput",""],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","checkIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function(n,o){1&n&&(Ti(yye),x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),x(2,"div",2)(3,"input",3,4),me("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keydown",function(r){return o.onKeyDown(r)}),A()(),x(5,"div",5)(6,"div",6),g(7,_be,3,2,"ng-container",7),g(8,Ibe,1,0,"ng-container",8),A(),g(9,xbe,3,2,"ng-container",7),A(),x(10,"div",9),g(11,Tbe,3,2,"ng-container",7),g(12,Dbe,2,3,"span",10),A(),x(13,"p-overlay",11,12),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(15,bye,12,18,"ng-template",13),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),K("data-p-hidden-accessible",!0),h(1),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),K("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",o.overlayVisible)("aria-controls",o.id+"_list")("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0),h(2),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),h(1),d("ngClass",o.labelClass),h(1),d("ngIf",!o.selectedItemsTemplate),h(1),d("ngTemplateOutlet",o.selectedItemsTemplate)("ngTemplateOutletContext",mt(38,xye,o.modelValue(),o.removeOption.bind(o))),h(1),d("ngIf",o.isVisibleClearIcon),h(2),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,oo,Bu,yi,Qs,ir,mn,bi,Tye]},styles:["@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Eye=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,yi,Qs,ir,mn,bi,yi,$l,Qe,Oi]})}return t})();const Dye=typeof Intl<"u"&&Intl.v8BreakIterator;class Ev{constructor(i){this._platformId=i,this.isBrowser=this._platformId?ei(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Dye)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}let dd;function Dv(t){return function kye(){if(null==dd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dd=!0}))}finally{dd=dd||!1}return dd}()?t:!!t.capture}Ev.ngInjectableDef=o1({factory:function(){return new Ev(et($n,8))},token:Ev,providedIn:"root"});const xs={NORMAL:0,NEGATED:1,INVERTED:2};xs[xs.NORMAL]="NORMAL",xs[xs.NEGATED]="NEGATED",xs[xs.INVERTED]="INVERTED";const sg=Dv({passive:!1,capture:!0});class kv{constructor(i,e){this._ngZone=i,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new re,this.pointerUp=new re,this._preventScrollListener=n=>{this._activeDragInstances.size&&n.preventDefault()},this._document=e}registerDropContainer(i){if(!this._dropInstances.has(i)){if(this.getDropContainer(i.id))throw Error(`Drop instance with id "${i.id}" has already been registered.`);this._dropInstances.add(i)}}registerDragItem(i){this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventScrollListener,sg)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventScrollListener,sg)}startDragging(i,e){if(this._activeDragInstances.add(i),1===this._activeDragInstances.size){const n=e.type.startsWith("touch"),s=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:r=>this.pointerMove.next(r),options:sg}).set(s,{handler:r=>this.pointerUp.next(r),options:!0}),n||this._globalListeners.set("wheel",{handler:this._preventScrollListener,options:sg}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(i){this._activeDragInstances.delete(i),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances.has(i)}getDropContainer(i){return Array.from(this._dropInstances).find(e=>e.id===i)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,e)=>{this._document.removeEventListener(e,i.handler,i.options)}),this._globalListeners.clear()}}kv.ngInjectableDef=o1({factory:function(){return new kv(et(Tt),et(Wt))},token:kv,providedIn:"root"});const Oye=new Ye("CDK_DRAG_CONFIG",{providedIn:"root",factory:function Lye(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}});class rg{}let TO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.70786 6.59831C6.80043 6.63674 6.89974 6.65629 6.99997 6.65581C7.19621 6.64081 7.37877 6.54953 7.50853 6.40153L11.0685 2.8416C11.1364 2.69925 11.1586 2.53932 11.132 2.38384C11.1053 2.22837 11.0311 2.08498 10.9195 1.97343C10.808 1.86188 10.6646 1.78766 10.5091 1.76099C10.3536 1.73431 10.1937 1.75649 10.0513 1.82448L6.99997 4.87585L3.9486 1.82448C3.80625 1.75649 3.64632 1.73431 3.49084 1.76099C3.33536 1.78766 3.19197 1.86188 3.08043 1.97343C2.96888 2.08498 2.89466 2.22837 2.86798 2.38384C2.84131 2.53932 2.86349 2.69925 2.93147 2.8416L6.46089 6.43205C6.53132 6.50336 6.61528 6.55989 6.70786 6.59831ZM6.70786 12.1925C6.80043 12.2309 6.89974 12.2505 6.99997 12.25C7.10241 12.2465 7.20306 12.2222 7.29575 12.1785C7.38845 12.1348 7.47124 12.0726 7.53905 11.9957L11.0685 8.46629C11.1614 8.32292 11.2036 8.15249 11.1881 7.98233C11.1727 7.81216 11.1005 7.6521 10.9833 7.52781C10.866 7.40353 10.7104 7.3222 10.5415 7.29688C10.3725 7.27155 10.1999 7.30369 10.0513 7.38814L6.99997 10.4395L3.9486 7.38814C3.80006 7.30369 3.62747 7.27155 3.45849 7.29688C3.28951 7.3222 3.13393 7.40353 3.01667 7.52781C2.89942 7.6521 2.82729 7.81216 2.81184 7.98233C2.79639 8.15249 2.83852 8.32292 2.93148 8.46629L6.4609 12.0262C6.53133 12.0975 6.61529 12.1541 6.70786 12.1925Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),SO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.1504 6.67719C10.2417 6.71508 10.3396 6.73436 10.4385 6.73389C10.6338 6.74289 10.8249 6.67441 10.97 6.54334C11.1109 6.4023 11.19 6.21112 11.19 6.01178C11.19 5.81245 11.1109 5.62127 10.97 5.48023L7.45977 1.96998C7.31873 1.82912 7.12755 1.75 6.92821 1.75C6.72888 1.75 6.5377 1.82912 6.39666 1.96998L2.9165 5.45014C2.83353 5.58905 2.79755 5.751 2.81392 5.91196C2.83028 6.07293 2.89811 6.22433 3.00734 6.34369C3.11656 6.46306 3.26137 6.54402 3.42025 6.57456C3.57914 6.60511 3.74364 6.5836 3.88934 6.51325L6.89813 3.50446L9.90691 6.51325C9.97636 6.58357 10.0592 6.6393 10.1504 6.67719ZM9.93702 11.9993C10.065 12.1452 10.245 12.2352 10.4385 12.25C10.632 12.2352 10.812 12.1452 10.9399 11.9993C11.0633 11.8614 11.1315 11.6828 11.1315 11.4978C11.1315 11.3128 11.0633 11.1342 10.9399 10.9963L7.48987 7.48609C7.34883 7.34523 7.15765 7.26611 6.95832 7.26611C6.75899 7.26611 6.5678 7.34523 6.42677 7.48609L2.91652 10.9963C2.84948 11.1367 2.82761 11.2944 2.85391 11.4477C2.88022 11.601 2.9534 11.7424 3.06339 11.8524C3.17338 11.9624 3.31477 12.0356 3.46808 12.0619C3.62139 12.0882 3.77908 12.0663 3.91945 11.9993L6.92823 8.99048L9.93702 11.9993Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),sxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,rg,TO,SO,If,Or,Qs,Qe,rg]})}return t})(),bxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,bi,ff,Qe,Qe]})}return t})(),kxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,mn,Qe]})}return t})(),Wxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,ng,eg,Qe]})}return t})(),kO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),MO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const Qxe=["input"];function Zxe(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-password-clear-icon"),K("data-pc-section","clearIcon"))}function Yxe(t,i){}function Xxe(t,i){1&t&&g(0,Yxe,0,0,"ng-template")}function Jxe(t,i){if(1&t){const e=De();we(0),g(1,Zxe,1,2,"TimesIcon",5),x(2,"span",6),me("click",function(){return G(e),q(f().clear())}),g(3,Xxe,1,0,null,7),A(),Te()}if(2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function eAe(t,i){if(1&t){const e=De();x(0,"EyeSlashIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","hideIcon")}function tAe(t,i){}function nAe(t,i){1&t&&g(0,tAe,0,0,"ng-template")}function iAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,nAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.hideIconTemplate)}}function oAe(t,i){if(1&t&&(we(0),g(1,eAe,1,1,"EyeSlashIcon",9),g(2,iAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.hideIconTemplate),h(1),d("ngIf",e.hideIconTemplate)}}function sAe(t,i){if(1&t){const e=De();x(0,"EyeIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","showIcon")}function rAe(t,i){}function aAe(t,i){1&t&&g(0,rAe,0,0,"ng-template")}function lAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,aAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.showIconTemplate)}}function cAe(t,i){if(1&t&&(we(0),g(1,sAe,1,1,"EyeIcon",9),g(2,lAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.showIconTemplate),h(1),d("ngIf",e.showIconTemplate)}}function uAe(t,i){if(1&t&&(we(0),g(1,oAe,3,2,"ng-container",3),g(2,cAe,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.unmasked),h(1),d("ngIf",!e.unmasked)}}function dAe(t,i){1&t&&ze(0)}function pAe(t,i){1&t&&ze(0)}function hAe(t,i){if(1&t&&(we(0),g(1,pAe,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)}}const fAe=function(t){return{width:t}};function gAe(t,i){if(1&t&&(x(0,"div",15),le(1,"div",0),Il(2,"mapper"),A(),x(3,"div",16),Le(4),A()),2&t){const e=f(2);K("data-pc-section","meter"),h(1),d("ngClass",Cl(2,6,e.meter,e.strengthClass))("ngStyle",He(9,fAe,e.meter?e.meter.width:"")),K("data-pc-section","meterLabel"),h(2),K("data-pc-section","info"),h(1),dt(e.infoText)}}function mAe(t,i){1&t&&ze(0)}const _Ae=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},IAe=function(t){return{value:"visible",params:t}};function CAe(t,i){if(1&t){const e=De();x(0,"div",11,12),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onAnimationEnd(o))}),g(2,dAe,1,0,"ng-container",7),g(3,hAe,2,1,"ng-container",13),g(4,gAe,5,11,"ng-template",null,14,In),g(6,mAe,1,0,"ng-container",7),A()}if(2&t){const e=Bt(5),n=f();d("ngClass","p-password-panel p-component")("@overlayAnimation",He(10,IAe,mt(7,_Ae,n.showTransitionOptions,n.hideTransitionOptions))),K("data-pc-section","panel"),h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngTemplateOutlet",n.footerTemplate)}}let vAe=(()=>{class t{transform(e,n,...o){return n(e,...o)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Vi({name:"mapper",type:t,pure:!0})}return t})();const bAe={provide:un,useExisting:ft(()=>yAe),multi:!0};let yAe=(()=>{class t{document;platformId;renderer;cd;config;el;overlayService;ariaLabel;ariaLabelledBy;label;disabled;promptLabel;mediumRegex="^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})";strongRegex="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})";weakLabel;mediumLabel;maxLength;strongLabel;inputId;feedback=!0;appendTo;toggleMask;inputStyleClass;styleClass;style;inputStyle;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autocomplete;placeholder;showClear=!1;onFocus=new ge;onBlur=new ge;onClear=new ge;input;contentTemplate;footerTemplate;headerTemplate;clearIconTemplate;hideIconTemplate;showIconTemplate;templates;overlayVisible=!1;meter;infoText;focused=!1;unmasked=!1;mediumCheckRegExp;strongCheckRegExp;resizeListener;scrollHandler;overlay;value=null;onModelChange=()=>{};onModelTouched=()=>{};translationSubscription;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.config=r,this.el=a,this.overlayService=l}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"hideicon":this.hideIconTemplate=e.template;break;case"showicon":this.showIconTemplate=e.template}})}ngOnInit(){this.infoText=this.promptText(),this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.updateUI(this.value||"")})}onAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.appendContainer(),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener();break;case"void":this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null}}onAnimationEnd(e){"void"===e.toState&&Wn.clear(e.element)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).appendChild(this.overlay))}alignOverlay(){this.appendTo?(this.overlay.style.minWidth=j.getOuterWidth(this.input.nativeElement)+"px",j.absolutePosition(this.overlay,this.input.nativeElement)):j.relativePosition(this.overlay,this.input.nativeElement)}onInput(e){this.value=e.target.value,this.onModelChange(this.value)}onInputFocus(e){this.focused=!0,this.feedback&&(this.overlayVisible=!0),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.onModelTouched(),this.onBlur.emit(e)}onKeyUp(e){if(this.feedback){if(this.updateUI(e.target.value),"Escape"===e.code)return void(this.overlayVisible&&(this.overlayVisible=!1));this.overlayVisible||(this.overlayVisible=!0)}}updateUI(e){let n=null,o=null;switch(this.testStrength(e)){case 1:n=this.weakText(),o={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText(),o={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText(),o={strength:"strong",width:"100%"};break;default:n=this.promptText(),o=null}this.meter=o,this.infoText=n}onMaskToggle(){this.unmasked=!this.unmasked}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}testStrength(e){let n=0;return this.strongCheckRegExp.test(e)?n=3:this.mediumCheckRegExp.test(e)?n=2:e.length&&(n=1),n}writeValue(e){this.value=void 0===e?null:e,this.feedback&&this.updateUI(this.value||""),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindScrollListener(){ei(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new Vu(this.input.nativeElement,()=>{this.overlayVisible&&(this.overlayVisible=!1)})),this.scrollHandler.bindScrollListener())}bindResizeListener(){ei(this.platformId)&&!this.resizeListener&&(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",()=>{this.overlayVisible&&!j.isTouchDevice()&&(this.overlayVisible=!1)}))}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}containerClass(e){return{"p-password p-component p-inputwrapper":!0,"p-input-icon-right":e}}inputFieldClass(e){return{"p-password-input":!0,"p-disabled":e}}strengthClass(e){return`p-password-strength ${e?e.strength:""}`}filled(){return null!=this.value&&this.value.toString().length>0}promptText(){return this.promptLabel||this.getTranslation(di.PASSWORD_PROMPT)}weakText(){return this.weakLabel||this.getTranslation(di.WEAK)}mediumText(){return this.mediumLabel||this.getTranslation(di.MEDIUM)}strongText(){return this.strongLabel||this.getTranslation(di.STRONG)}restoreAppend(){this.overlay&&this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).removeChild(this.overlay))}inputType(e){return e?"text":"password"}getTranslation(e){return this.config.getTranslation(e)}clear(){this.value=null,this.onModelChange(this.value),this.writeValue(this.value),this.onClear.emit()}ngOnDestroy(){this.overlay&&(Wn.clear(this.overlay),this.overlay=null),this.restoreAppend(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(ki),V(bt),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-password"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Qxe,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:8,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled())("p-inputwrapper-focus",o.focused)("p-password-clearable",o.showClear)("p-password-mask",o.toggleMask)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",label:"label",disabled:"disabled",promptLabel:"promptLabel",mediumRegex:"mediumRegex",strongRegex:"strongRegex",weakLabel:"weakLabel",mediumLabel:"mediumLabel",maxLength:"maxLength",strongLabel:"strongLabel",inputId:"inputId",feedback:"feedback",appendTo:"appendTo",toggleMask:"toggleMask",inputStyleClass:"inputStyleClass",styleClass:"styleClass",style:"style",inputStyle:"inputStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autocomplete:"autocomplete",placeholder:"placeholder",showClear:"showClear"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClear:"onClear"},features:[yt([bAe])],decls:9,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","",3,"ngClass","ngStyle","value","input","focus","blur","keyup"],["input",""],[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],[1,"p-password-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass","click"],[3,"click",4,"ngIf"],[3,"click"],[3,"ngClass","click"],["overlay",""],[4,"ngIf","ngIfElse"],["content",""],[1,"p-password-meter"],["className","p-password-info"]],template:function(n,o){1&n&&(x(0,"div",0),Il(1,"mapper"),x(2,"input",1,2),me("input",function(r){return o.onInput(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keyup",function(r){return o.onKeyUp(r)}),Il(4,"mapper"),Il(5,"mapper"),A(),g(6,Jxe,4,3,"ng-container",3),g(7,uAe,3,2,"ng-container",3),g(8,CAe,7,12,"div",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Cl(1,23,o.toggleMask,o.containerClass))("ngStyle",o.style),K("data-pc-name","password")("data-pc-section","root"),h(2),Ve(o.inputStyleClass),d("ngClass",Cl(4,26,o.disabled,o.inputFieldClass))("ngStyle",o.inputStyle)("value",o.value),K("label",o.label)("aria-label",o.ariaLabel)("aria-labelledBy",o.ariaLabelledBy)("id",o.inputId)("type",Cl(5,29,o.unmasked,o.inputType))("placeholder",o.placeholder)("autocomplete",o.autocomplete)("maxlength",o.maxLength)("data-pc-section","input"),h(4),d("ngIf",o.showClear&&null!=o.value),h(1),d("ngIf",o.toggleMask),h(1),d("ngIf",o.overlayVisible))},dependencies:function(){return[Ct,gt,on,Ht,hC,mn,MO,kO,vAe]},styles:["@layer primeng{.p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}.p-password-input::-ms-reveal,.p-password-input::-ms-clear{display:none}.p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-password-clearable.p-password-mask .p-password-clear-icon{margin-top:unset}.p-password-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),xAe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,mn,MO,kO,Qe]})}return t})();const Rwe={zIndex:1200};let Nwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({providers:[{provide:Oye,useValue:Rwe}],imports:[Xe,Mi,Qe,dn,rg,TO,gC,mC,SO,Or,_C,Zo,If,Qs,oO,Qe,rg]})}return t})();const Vwe=["input"],Bwe=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function Hwe(t,i){if(1&t){const e=De();x(0,"label",7),me("click",function(o){return G(e),q(f().select(o))}),Le(1),A()}if(2&t){const e=f(),n=Bt(3);Ve(e.labelStyleClass),d("ngClass",Rn(6,Bwe,n.checked,e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),dt(e.label)}}const zwe=function(t,i,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},jwe=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},Uwe={provide:un,useExisting:ft(()=>Kwe),multi:!0};let $we=(()=>{class t{accessors=[];add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kwe=(()=>{class t{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new ge;onFocus=new ge;onBlur=new ge;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(e,n,o){this.cd=e,this.injector=n,this.registry=o}ngOnInit(){this.control=this.injector.get(ds),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,o){e.preventDefault(),!this.disabled&&(this.select(e),o&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(n){return new(n||t)(V(Ft),V($i),V($we))};static \u0275cmp=Oe({type:t,selectors:[["p-radioButton"]],viewQuery:function(n,o){if(1&n&&je(Vwe,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([Uwe])],decls:7,vars:29,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","value","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.handleClick(a,l,!0))}),x(1,"div",1)(2,"input",2,3),me("focus",function(a){return o.onInputFocus(a)})("blur",function(a){return o.onInputBlur(a)}),A()(),x(4,"div",4),le(5,"span",5),A()(),g(6,Hwe,2,10,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(21,zwe,o.checked,o.disabled,o.focused)),K("data-pc-name","radiobutton")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper"),h(1),d("checked",o.checked)("disabled",o.disabled)("value",o.value),K("id",o.inputId)("name",o.name)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("tabindex",o.tabindex)("aria-checked",o.checked)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(25,jwe,o.checked,o.disabled,o.focused)),K("data-pc-section","input"),h(1),K("data-pc-section","icon"),h(1),d("ngIf",o.label))},dependencies:[Ct,gt,Ht],encapsulation:2,changeDetection:0})}return t})(),Gwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),FO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BanIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7 0C5.61553 0 4.26215 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.00303296 5.6003 -0.13559 7.00776 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C14 5.14348 13.2625 3.36301 11.9497 2.05025C10.637 0.737498 8.85652 0 7 0ZM1.16667 7C1.16549 5.65478 1.63303 4.35118 2.48889 3.31333L10.6867 11.5111C9.83309 12.2112 8.79816 12.6544 7.70243 12.789C6.60669 12.9236 5.49527 12.744 4.49764 12.2713C3.50001 11.7986 2.65724 11.0521 2.06751 10.1188C1.47778 9.18558 1.16537 8.10397 1.16667 7ZM11.5111 10.6867L3.31334 2.48889C4.43144 1.57388 5.84966 1.10701 7.29265 1.1789C8.73565 1.2508 10.1004 1.85633 11.1221 2.87795C12.1437 3.89956 12.7492 5.26435 12.8211 6.70735C12.893 8.15034 12.4261 9.56856 11.5111 10.6867Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),RO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.9741 13.6721C10.8806 13.6719 10.7886 13.6483 10.7066 13.6033L7.00002 11.6545L3.29345 13.6033C3.19926 13.6539 3.09281 13.6771 2.98612 13.6703C2.87943 13.6636 2.77676 13.6271 2.6897 13.5651C2.60277 13.5014 2.53529 13.4147 2.4948 13.3148C2.45431 13.215 2.44241 13.1058 2.46042 12.9995L3.17881 8.87264L0.167699 5.95324C0.0922333 5.8777 0.039368 5.78258 0.0150625 5.67861C-0.00924303 5.57463 -0.00402231 5.46594 0.030136 5.36477C0.0621323 5.26323 0.122141 5.17278 0.203259 5.10383C0.284377 5.03488 0.383311 4.99023 0.488681 4.97501L4.63087 4.37126L6.48797 0.618832C6.54083 0.530159 6.61581 0.456732 6.70556 0.405741C6.79532 0.35475 6.89678 0.327942 7.00002 0.327942C7.10325 0.327942 7.20471 0.35475 7.29447 0.405741C7.38422 0.456732 7.4592 0.530159 7.51206 0.618832L9.36916 4.37126L13.5114 4.97501C13.6167 4.99023 13.7157 5.03488 13.7968 5.10383C13.8779 5.17278 13.9379 5.26323 13.9699 5.36477C14.0041 5.46594 14.0093 5.57463 13.985 5.67861C13.9607 5.78258 13.9078 5.8777 13.8323 5.95324L10.8212 8.87264L11.532 12.9995C11.55 13.1058 11.5381 13.215 11.4976 13.3148C11.4571 13.4147 11.3896 13.5014 11.3027 13.5651C11.2059 13.632 11.0917 13.6692 10.9741 13.6721ZM7.00002 10.4393C7.09251 10.4404 7.18371 10.4613 7.2675 10.5005L10.2098 12.029L9.65193 8.75036C9.6368 8.6584 9.64343 8.56418 9.6713 8.47526C9.69918 8.38633 9.74751 8.30518 9.81242 8.23832L12.1969 5.94559L8.90298 5.45648C8.81188 5.44198 8.72555 5.406 8.65113 5.35152C8.57671 5.29703 8.51633 5.2256 8.475 5.14314L7.00002 2.1626L5.52503 5.15078C5.4837 5.23324 5.42332 5.30467 5.3489 5.35916C5.27448 5.41365 5.18815 5.44963 5.09705 5.46412L1.80318 5.94559L4.18761 8.23832C4.25252 8.30518 4.30085 8.38633 4.32873 8.47526C4.3566 8.56418 4.36323 8.6584 4.3481 8.75036L3.7902 12.0519L6.73253 10.5234C6.81451 10.4762 6.9058 10.4475 7.00002 10.4393Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),NO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarFillIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.9718 5.36453C13.9398 5.26298 13.8798 5.17252 13.7986 5.10356C13.7175 5.0346 13.6186 4.98994 13.5132 4.97472L9.37043 4.37088L7.51307 0.617955C7.46021 0.529271 7.38522 0.455834 7.29545 0.404836C7.20568 0.353838 7.1042 0.327026 7.00096 0.327026C6.89771 0.327026 6.79624 0.353838 6.70647 0.404836C6.6167 0.455834 6.54171 0.529271 6.48885 0.617955L4.63149 4.37088L0.488746 4.97472C0.383363 4.98994 0.284416 5.0346 0.203286 5.10356C0.122157 5.17252 0.0621407 5.26298 0.03014 5.36453C-0.00402286 5.46571 -0.00924428 5.57442 0.0150645 5.67841C0.0393733 5.7824 0.0922457 5.87753 0.167722 5.95308L3.17924 8.87287L2.4684 13.0003C2.45038 13.1066 2.46229 13.2158 2.50278 13.3157C2.54328 13.4156 2.61077 13.5022 2.6977 13.5659C2.78477 13.628 2.88746 13.6644 2.99416 13.6712C3.10087 13.678 3.20733 13.6547 3.30153 13.6042L7.00096 11.6551L10.708 13.6042C10.79 13.6491 10.882 13.6728 10.9755 13.673C11.0958 13.6716 11.2129 13.6343 11.3119 13.5659C11.3988 13.5022 11.4663 13.4156 11.5068 13.3157C11.5473 13.2158 11.5592 13.1066 11.5412 13.0003L10.8227 8.87287L13.8266 5.95308C13.9033 5.87835 13.9577 5.7836 13.9833 5.67957C14.009 5.57554 14.005 5.4664 13.9718 5.36453Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function qwe(t,i){if(1&t&&le(0,"span",10),2&t){const e=f(3);d("ngClass",e.iconCancelClass)("ngStyle",e.iconCancelStyle)}}function Wwe(t,i){if(1&t&&le(0,"BanIcon",11),2&t){const e=f(3);d("styleClass","p-rating-icon p-rating-cancel")("ngStyle",e.iconCancelStyle),K("data-pc-section","cancelIcon")}}const Qwe=function(t){return{"p-focus":t}};function Zwe(t,i){if(1&t){const e=De();x(0,"div",5),me("click",function(o){return G(e),q(f(2).onOptionClick(o,0))}),x(1,"span",6)(2,"input",7),me("focus",function(o){return G(e),q(f(2).onInputFocus(o,0))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){return G(e),q(f(2).onChange(o,0))}),A()(),g(3,qwe,1,2,"span",8),g(4,Wwe,1,3,"BanIcon",9),A()}if(2&t){const e=f(2);d("ngClass",He(10,Qwe,0===e.focusedOptionIndex()&&e.isFocusVisible)),K("data-pc-section","cancelItem"),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",e.name)("checked",0===e.value)("disabled",e.disabled)("readonly",e.readonly),K("aria-label",e.cancelAriaLabel()),h(1),d("ngIf",e.iconCancelClass),h(1),d("ngIf",!e.iconCancelClass)}}function Ywe(t,i){if(1&t&&le(0,"span",16),2&t){const e=f(4);d("ngStyle",e.iconOffStyle)("ngClass",e.iconOffClass),K("data-pc-section","offIcon")}}function Xwe(t,i){1&t&&le(0,"StarIcon",17),2&t&&(d("ngStyle",f(4).iconOffStyle)("styleClass","p-rating-icon"),K("data-pc-section","offIcon"))}function Jwe(t,i){if(1&t&&(we(0),g(1,Ywe,1,3,"span",14),g(2,Xwe,1,3,"StarIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOffClass),h(1),d("ngIf",!e.iconOffClass)}}function e2e(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4);d("ngStyle",e.iconOnStyle)("ngClass",e.iconOnClass),K("data-pc-section","onIcon")}}function t2e(t,i){1&t&&le(0,"StarFillIcon",17),2&t&&(d("ngStyle",f(4).iconOnStyle)("styleClass","p-rating-icon p-rating-icon-active"),K("data-pc-section","onIcon"))}function n2e(t,i){if(1&t&&(we(0),g(1,e2e,1,3,"span",18),g(2,t2e,1,3,"StarFillIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOnClass),h(1),d("ngIf",!e.iconOnClass)}}const i2e=function(t,i){return{"p-rating-item-active":t,"p-focus":i}};function o2e(t,i){if(1&t){const e=De();x(0,"div",12),me("click",function(o){const r=G(e).$implicit;return q(f(2).onOptionClick(o,r+1))}),x(1,"span",6)(2,"input",7),me("focus",function(o){const r=G(e).$implicit;return q(f(2).onInputFocus(o,r+1))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){const r=G(e).$implicit;return q(f(2).onChange(o,r+1))}),A()(),g(3,Jwe,3,2,"ng-container",13),g(4,n2e,3,2,"ng-container",13),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",mt(9,i2e,e+1<=o.value,e+1===o.focusedOptionIndex()&&o.isFocusVisible)),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",o.name)("checked",0===o.value)("disabled",o.disabled)("readonly",o.readonly),K("aria-label",o.starAriaLabel(e+1)),h(1),d("ngIf",!o.value||n>=o.value),h(1),d("ngIf",o.value&&nh2e),multi:!0};let h2e=(()=>{class t{cd;config;disabled;readonly;stars=5;cancel=!0;iconOnClass;iconOnStyle;iconOffClass;iconOffStyle;iconCancelClass;iconCancelStyle;onRate=new ge;onCancel=new ge;onFocus=new ge;onBlur=new ge;templates;onIconTemplate;offIconTemplate;cancelIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};starsArray;isFocusVisibleItem=!0;focusedOptionIndex=bn(-1);name;constructor(e,n){this.cd=e,this.config=n}ngOnInit(){this.name=this.name||$t(),this.starsArray=[];for(let e=0;e{switch(e.getType()){case"onicon":this.onIconTemplate=e.template;break;case"officon":this.offIconTemplate=e.template;break;case"cancelicon":this.cancelIconTemplate=e.template}})}onOptionClick(e,n){if(!this.readonly&&!this.disabled){this.onOptionSelect(e,n),this.isFocusVisibleItem=!1;const o=j.getFirstFocusableElement(e.currentTarget,"");o&&j.focus(o)}}onOptionSelect(e,n){this.focusedOptionIndex.set(n),this.updateModel(e,n||null)}onChange(e,n){this.onOptionSelect(e,n),this.isFocusVisibleItem=!0}onInputBlur(e){this.focusedOptionIndex.set(-1),this.onBlur.emit(e)}onInputFocus(e,n){this.focusedOptionIndex.set(n),this.onFocus.emit(e)}updateModel(e,n){this.value=n,this.onModelChange(this.value),this.onModelTouched(),n?this.onRate.emit({originalEvent:e,value:n}):this.onCancel.emit()}cancelAriaLabel(){return this.config.translation.clear}starAriaLabel(e){return 1===e?this.config.translation.aria.star:this.config.translation.aria.stars.replace(/{star}/g,e)}getIconTemplate(e){return!this.value||e>=this.value?this.offIconTemplate:this.onIconTemplate}writeValue(e){this.value=e,this.cd.detectChanges()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get isCustomIcon(){return this.templates&&this.templates.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-rating"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",readonly:"readonly",stars:"stars",cancel:"cancel",iconOnClass:"iconOnClass",iconOnStyle:"iconOnStyle",iconOffClass:"iconOffClass",iconOffStyle:"iconOffStyle",iconCancelClass:"iconCancelClass",iconCancelStyle:"iconCancelStyle"},outputs:{onRate:"onRate",onCancel:"onCancel",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([p2e])],decls:4,vars:8,consts:[[1,"p-rating",3,"ngClass"],[4,"ngIf","ngIfElse"],["customTemplate",""],["class","p-rating-item p-rating-cancel-item",3,"ngClass","click",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-rating-item","p-rating-cancel-item",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","radio","value","0",3,"name","checked","disabled","readonly","focus","blur","change"],["class","p-rating-icon p-rating-cancel",3,"ngClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle",4,"ngIf"],[1,"p-rating-icon","p-rating-cancel",3,"ngClass","ngStyle"],[3,"styleClass","ngStyle"],[1,"p-rating-item",3,"ngClass","click"],[4,"ngIf"],["class","p-rating-icon",3,"ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","styleClass",4,"ngIf"],[1,"p-rating-icon",3,"ngStyle","ngClass"],[3,"ngStyle","styleClass"],["class","p-rating-icon p-rating-icon-active",3,"ngStyle","ngClass",4,"ngIf"],[1,"p-rating-icon","p-rating-icon-active",3,"ngStyle","ngClass"],["class","p-rating-icon p-rating-cancel",3,"ngStyle","click",4,"ngIf"],["class","p-rating-icon",3,"click",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngStyle","click"],[4,"ngTemplateOutlet"],[1,"p-rating-icon",3,"click"]],template:function(n,o){if(1&n&&(x(0,"div",0),g(1,s2e,3,2,"ng-container",1),g(2,u2e,2,2,"ng-template",null,2,In),A()),2&n){const s=Bt(3);d("ngClass",mt(5,d2e,o.readonly,o.disabled)),K("data-pc-name","rating")("data-pc-section","root"),h(1),d("ngIf",!o.isCustomIcon)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,NO,RO,FO]},styles:["@layer primeng{.p-rating{display:inline-flex}.p-rating-icon{cursor:pointer}.p-rating.p-rating-readonly .p-rating-icon{cursor:default}}\n"],encapsulation:2,changeDetection:0})}return t})(),f2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,NO,RO,FO,Qe]})}return t})();const g2e=["container"],m2e=["content"],_2e=["xBar"],I2e=["yBar"];function C2e(t,i){1&t&&ze(0)}const v2e=["*"];let b2e=(()=>{class t{platformId;el;zone;cd;document;renderer;style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;templates;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;contentTemplate;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.cd=s,this.document=r,this.renderer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement;const s=this.document.defaultView;let r=s.getComputedStyle(e),a=s.getComputedStyle(o),l=j.getHeight(e)-parseInt(a.height,10);"none"!=r["max-height"]&&0==l&&(e.style.height=n.offsetHeight+parseInt(a.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement,s=n.scrollWidth,r=n.clientWidth,a=-1*(e.clientHeight-o.clientHeight);this.scrollXRatio=r/s;let l=this.yBarViewChild.nativeElement,c=n.scrollHeight,u=n.clientHeight,p=-1*(e.clientWidth-l.clientWidth);this.scrollYRatio=u/c,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)o.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(o,"p-scrollpanel-hidden");else{o.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(o,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollXRatio,10);o.style.cssText="width:"+m+"%; left:"+n.scrollLeft*(100-m)/(s-r)+"%;bottom:"+a+"px;"}if(this.scrollYRatio>=1)l.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(l,"p-scrollpanel-hidden");else{l.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(l,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollYRatio,10);l.style.cssText="height:"+m+"%; top: calc("+n.scrollTop*(100-m)/(c-u)+"% - "+o.clientHeight+"px);right:"+p+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){"horizontal"===this.orientation&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(Ft),V(Wt),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(g2e,5),je(m2e,5),je(_2e,5),je(I2e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.xBarViewChild=s.first),Se(s=Ee())&&(o.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",step:"step"},ngContentSelectors:v2e,decls:11,vars:14,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],["content",""],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["xBar",""],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"],["yBar",""]],template:function(n,o){1&n&&(Ti(),x(0,"div",0,1)(2,"div",2)(3,"div",3,4),me("mouseenter",function(){return o.moveBar()})("scroll",function(r){return o.onScroll(r)}),Kn(5),g(6,C2e,1,0,"ng-container",5),A()(),x(7,"div",6,7),me("mousedown",function(r){return o.onXBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)})("blur",function(){return o.onBlur()}),A(),x(9,"div",8,9),me("mousedown",function(r){return o.onYBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass","p-scrollpanel p-component")("ngStyle",o.style),K("data-pc-name","scrollpanel"),h(2),K("data-pc-section","wrapper"),h(1),K("data-pc-section","content"),h(3),d("ngTemplateOutlet",o.contentTemplate),h(1),K("aria-orientation","horizontal")("aria-valuenow",o.lastScrollLeft)("data-pc-section","barx"),h(2),K("aria-orientation","vertical")("aria-valuenow",o.lastScrollTop)("data-pc-section","bary"))},dependencies:[Ct,on,Ht],styles:["@layer primeng{.p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}}\n"],encapsulation:2,changeDetection:0})}return t})(),y2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),x2e=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CaretLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.5553 13C10.411 13.0006 10.2704 12.9538 10.1554 12.8667L3.04473 7.53369C2.96193 7.4716 2.89474 7.39108 2.84845 7.29852C2.80217 7.20595 2.77808 7.10388 2.77808 7.00039C2.77808 6.8969 2.80217 6.79484 2.84845 6.70227C2.89474 6.60971 2.96193 6.52919 3.04473 6.4671L10.1554 1.13412C10.2549 1.05916 10.3734 1.0136 10.4976 1.0026C10.6217 0.991605 10.7464 1.01561 10.8575 1.0719C10.9668 1.12856 11.0584 1.21398 11.1226 1.31893C11.1869 1.42388 11.2212 1.54438 11.222 1.66742V12.3334C11.2212 12.4564 11.1869 12.5769 11.1226 12.6819C11.0584 12.7868 10.9668 12.8722 10.8575 12.9289C10.7629 12.9735 10.6599 12.9977 10.5553 13ZM4.55574 7.00039L9.88871 11.0001V3.00066L4.55574 7.00039Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),J2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,x2e,qn,Nn,Qe]})}return t})();const eTe=["sliderHandle"],tTe=["sliderHandleStart"],nTe=["sliderHandleEnd"],iTe=function(t,i){return{left:t,width:i}};function oTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,iTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const sTe=function(t,i){return{bottom:t,height:i}};function rTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,sTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const aTe=function(t){return{height:t}};function lTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,aTe,e.handleValue+"%")),K("data-pc-section","range")}}const cTe=function(t){return{width:t}};function uTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,cTe,e.handleValue+"%")),K("data-pc-section","range")}}const Pv=function(t,i){return{left:t,bottom:i}};function dTe(t,i){if(1&t){const e=De();x(0,"span",6,7),me("touchstart",function(o){return G(e),q(f().onDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(o){return G(e),q(f().onDragEnd(o))})("mousedown",function(o){return G(e),q(f().onMouseDown(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(11,Pv,"horizontal"==e.orientation?e.handleValue+"%":null,"vertical"==e.orientation?e.handleValue+"%":null)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","handle")}}const BO=function(t){return{"p-slider-handle-active":t}};function pTe(t,i){if(1&t){const e=De();x(0,"span",8,9),me("keydown",function(o){return G(e),q(f().onKeyDown(o,0))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,0))})("touchstart",function(o){return G(e),q(f().onDragStart(o,0))})("touchmove",function(o){return G(e),q(f().onDrag(o,0))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeStartLeft,e.rangeStartBottom))("ngClass",He(15,BO,0==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[0]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","startHandler")}}function hTe(t,i){if(1&t){const e=De();x(0,"span",10,11),me("keydown",function(o){return G(e),q(f().onKeyDown(o,1))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,1))})("touchstart",function(o){return G(e),q(f().onDragStart(o,1))})("touchmove",function(o){return G(e),q(f().onDrag(o,1))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeEndLeft,e.rangeEndBottom))("ngClass",He(15,BO,1==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[1]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","endHandler")}}const fTe=function(t,i,e,n){return{"p-slider p-component":!0,"p-disabled":t,"p-slider-horizontal":i,"p-slider-vertical":e,"p-slider-animate":n}},gTe={provide:un,useExisting:ft(()=>mTe),multi:!0};let mTe=(()=>{class t{document;platformId;el;renderer;ngZone;cd;animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;onChange=new ge;onSlideEnd=new ge;sliderHandle;sliderHandleStart;sliderHandleEnd;value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.ngZone=r,this.cd=a}onMouseDown(e,n){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,this.bindDragListeners(),e.target.focus(),e.preventDefault(),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(e,n){if(!this.disabled){var o=e.changedTouches[0];this.startHandleValue=this.range?this.handleValues[n]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,"horizontal"===this.orientation?(this.startx=parseInt(o.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(o.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault()}}onDrag(e){if(!this.disabled){var o,n=e.changedTouches[0];o="horizontal"===this.orientation?Math.floor(100*(parseInt(n.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(n.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(e,o),e.preventDefault()}}onDragEnd(e){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault())}onBarClick(e){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(e),this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(e,n){switch(this.handleIndex=n,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,n),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,n),e.preventDefault();break;case"PageDown":this.decrementValue(e,n,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,n,!0),e.preventDefault();break;case"Home":this.updateValue(this.min,e),e.preventDefault();break;case"End":this.updateValue(this.max,e),e.preventDefault()}}decrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]-this.step:this.values[n]-1:this.step?this.value-this.step:!this.step&&o?this.value-10:this.value-1,this.updateValue(s,e),e.preventDefault()}incrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]+this.step:this.values[n]+1:this.step?this.value+this.step:!this.step&&o?this.value+10:this.value+1,this.updateValue(s,e),e.preventDefault()}handleChange(e){let n=this.calculateHandleValue(e);this.setValueFromHandle(e,n)}bindDragListeners(){ei(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const e=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(e,"mousemove",n=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(n)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(e,"mouseup",n=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:n,values:this.values}:{originalEvent:n,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(e,n){let o=this.getValueFromHandle(n);this.range?this.step?this.handleStepChange(o,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=n,this.updateValue(o,e)):this.step?this.handleStepChange(o,this.value):(this.handleValue=n,this.updateValue(o,e)),this.cd.markForCheck()}handleStepChange(e,n){let o=e-n,s=n,r=this.step;o<0?s=n+Math.ceil(e/r-n/r)*r:o>0&&(s=n+Math.floor(e/r-n/r)*r),this.updateValue(s),this.updateHandleValue()}writeValue(e){this.range?this.values=e||[0,0]:this.value=e||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let e=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=e.left+j.getWindowScrollLeft(),this.initY=e.top+j.getWindowScrollTop(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(e){return"horizontal"===this.orientation?100*(e.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-e.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.valuethis.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(e,n){if(this.range){let o=e;0==this.handleIndex?(othis.values[1]&&o>this.max&&(o=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(o>this.max?(o=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):othis.max&&(e=this.max,this.handleValue=100),this.value=this.getNormalizedValue(e),this.onModelChange(this.value),this.onChange.emit({event:n,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(e){return e/100*(this.max-this.min)+this.min}getDecimalsCount(e){return e&&Math.floor(e)!==e&&e.toString().split(".")[1].length||0}getNormalizedValue(e){let n=this.getDecimalsCount(this.step);return n>0?+parseFloat(e.toString()).toFixed(n):Math.floor(e)}ngOnDestroy(){this.unbindDragListeners()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-slider"]],viewQuery:function(n,o){if(1&n&&(je(eTe,5),je(tTe,5),je(nTe,5)),2&n){let s;Se(s=Ee())&&(o.sliderHandle=s.first),Se(s=Ee())&&(o.sliderHandleStart=s.first),Se(s=Ee())&&(o.sliderHandleEnd=s.first)}},hostAttrs:[1,"p-element"],inputs:{animate:"animate",disabled:"disabled",min:"min",max:"max",orientation:"orientation",step:"step",range:"range",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex"},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[yt([gTe])],decls:8,vars:18,consts:[[3,"ngStyle","ngClass","click"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"ngStyle","touchstart","touchmove","touchend","mousedown","keydown"],["sliderHandle",""],["role","slider",1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleStart",""],[1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleEnd",""]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onBarClick(r)}),g(1,oTe,1,5,"span",1),g(2,rTe,1,5,"span",1),g(3,lTe,1,4,"span",1),g(4,uTe,1,4,"span",1),g(5,dTe,2,14,"span",2),g(6,pTe,2,17,"span",3),g(7,hTe,2,17,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",gr(13,fTe,o.disabled,"horizontal"==o.orientation,"vertical"==o.orientation,o.animate)),K("data-pc-name","slider")("data-pc-section","root"),h(1),d("ngIf",o.range&&"horizontal"==o.orientation),h(1),d("ngIf",o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"horizontal"==o.orientation),h(1),d("ngIf",!o.range),h(1),d("ngIf",o.range),h(1),d("ngIf",o.range))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-slider{position:relative}.p-slider .p-slider-handle{position:absolute;cursor:grab;touch-action:none;display:block}.p-slider-range{position:absolute;display:block}.p-slider-horizontal .p-slider-range{top:0;left:0;height:100%}.p-slider-horizontal .p-slider-handle{top:50%}.p-slider-vertical{height:100px}.p-slider-vertical .p-slider-handle{left:50%}.p-slider-vertical .p-slider-range{bottom:0;left:0;width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_Te=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const ITe=["inputfield"],CTe=function(t){return{"ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},vTe=function(t){return{"ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},bTe={provide:un,useExisting:ft(()=>yTe),multi:!0};let yTe=(()=>{class t{el;cd;onChange=new ge;onFocus=new ge;onBlur=new ge;min;max;maxlength;size;placeholder;inputId;disabled;readonly;tabindex;required;name;ariaLabelledBy;inputStyle;inputStyleClass;formatInput;decimalSeparator;thousandSeparator;precision;value;_step=1;formattedValue;onModelChange=()=>{};onModelTouched=()=>{};keyPattern=/[0-9\+\-]/;timer;focus;filled;negativeSeparator="-";localeDecimalSeparator;localeThousandSeparator;thousandRegExp;calculatedPrecision;inputfieldViewChild;get step(){return this._step}set step(e){if(this._step=e,null!=this._step){let n=this.step.toString().split(/[,]|[.]/);this.calculatedPrecision=n[1]?n[1].length:void 0}}constructor(e,n){this.el=e,this.cd=n}ngOnInit(){this.formatInput&&(this.localeDecimalSeparator=1.1.toLocaleString().substring(1,2),this.localeThousandSeparator=1e3.toLocaleString().substring(1,2),this.thousandRegExp=new RegExp(`[${this.thousandSeparator||this.localeThousandSeparator}]`,"gim"),this.decimalSeparator&&this.thousandSeparator&&this.decimalSeparator===this.thousandSeparator&&console.warn("thousandSeparator and decimalSeparator cannot have the same value."))}repeat(e,n,o){let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let s,o=this.step*n,r=this.getPrecision();s=this.value?"string"==typeof this.value?this.parseValue(this.value):this.value:0,this.value=r?parseFloat(this.toFixed(s+o,r)):s+o,void 0!==this.maxlength&&this.value.toString().length>this.maxlength&&(this.value=s),void 0!==this.min&&this.valuethis.max&&(this.value=this.max),this.formatValue(),this.onModelChange(this.value),this.onChange.emit(e)}getPrecision(){return void 0===this.precision?this.calculatedPrecision:this.precision}toFixed(e,n){let o=Math.pow(10,n||0);return String(Math.round(e*o)/o)}onUpButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,1),this.updateFilledState(),e.preventDefault())}onUpButtonMouseup(e){this.disabled||this.clearTimer()}onUpButtonMouseleave(e){this.disabled||this.clearTimer()}onDownButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,-1),this.updateFilledState(),e.preventDefault())}onDownButtonMouseup(e){this.disabled||this.clearTimer()}onDownButtonMouseleave(e){this.disabled||this.clearTimer()}onInputKeydown(e){38==e.which?(this.spin(e,1),e.preventDefault()):40==e.which&&(this.spin(e,-1),e.preventDefault())}onInputChange(e){this.onChange.emit(e)}onInput(e){this.value=this.parseValue(e.target.value),this.onModelChange(this.value),this.updateFilledState()}onInputBlur(e){this.focus=!1,this.formatValue(),this.onModelTouched(),this.onBlur.emit(e)}onInputFocus(e){this.focus=!0,this.onFocus.emit(e)}parseValue(e){let n,o=this.getPrecision();return""===e.trim()?n=null:(this.formatInput&&(e=e.replace(this.thousandRegExp,"")),o?(e=e.replace(this.formatInput?this.decimalSeparator||this.localeDecimalSeparator:",","."),n=parseFloat(e)):n=parseInt(e,10),isNaN(n)?n=null:(null!==this.max&&n>this.max&&(n=this.max),null!==this.min&&n3&&(e[0]=e[0].replace(new RegExp(`[${this.localeThousandSeparator}]`,"gim"),this.thousandSeparator)),e=e.join(""))),this.formattedValue=e.toString()):this.formattedValue=null,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.formattedValue)}clearTimer(){this.timer&&clearInterval(this.timer)}writeValue(e){this.value=e,this.formatValue(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}updateFilledState(){this.filled=void 0!==this.value&&null!=this.value}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-spinner"]],viewQuery:function(n,o){if(1&n&&je(ITe,5),2&n){let s;Se(s=Ee())&&(o.inputfieldViewChild=s.first)}},hostAttrs:[1,"p-element"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("ui-inputwrapper-filled",o.filled)("ui-inputwrapper-focus",o.focus)},inputs:{min:"min",max:"max",maxlength:"maxlength",size:"size",placeholder:"placeholder",inputId:"inputId",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",required:"required",name:"name",ariaLabelledBy:"ariaLabelledBy",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",formatInput:"formatInput",decimalSeparator:"decimalSeparator",thousandSeparator:"thousandSeparator",precision:"precision",step:"step"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([bTe])],decls:7,vars:28,consts:[[1,"ui-spinner","ui-widget","ui-corner-all"],["type","text",3,"value","disabled","readonly","ngStyle","ngClass","keydown","blur","input","change","focus"],["inputfield",""],["type","button","tabindex","-1",3,"ngClass","disabled","mouseleave","mousedown","mouseup"],[1,"ui-spinner-button-icon","pi","pi-caret-up","ui-clickable"],[1,"ui-spinner-button-icon","pi","pi-caret-down","ui-clickable"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("keydown",function(r){return o.onInputKeydown(r)})("blur",function(r){return o.onInputBlur(r)})("input",function(r){return o.onInput(r)})("change",function(r){return o.onInputChange(r)})("focus",function(r){return o.onInputFocus(r)}),A(),x(3,"button",3),me("mouseleave",function(r){return o.onUpButtonMouseleave(r)})("mousedown",function(r){return o.onUpButtonMousedown(r)})("mouseup",function(r){return o.onUpButtonMouseup(r)}),le(4,"span",4),A(),x(5,"button",3),me("mouseleave",function(r){return o.onDownButtonMouseleave(r)})("mousedown",function(r){return o.onDownButtonMousedown(r)})("mouseup",function(r){return o.onDownButtonMouseup(r)}),le(6,"span",5),A()()),2&n&&(h(1),Ve(o.inputStyleClass),d("value",o.formattedValue||null)("disabled",o.disabled)("readonly",o.readonly)("ngStyle",o.inputStyle)("ngClass","ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all"),K("id",o.inputId)("name",o.name)("aria-valumin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("aria-labelledby",o.ariaLabelledBy)("size",o.size)("maxlength",o.maxlength)("tabindex",o.tabindex)("placeholder",o.placeholder)("required",o.required),h(2),d("ngClass",He(24,CTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly),h(2),d("ngClass",He(26,vTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly))},dependencies:[Ct,Ht],styles:["@layer primeng{.ui-spinner{display:inline-block;overflow:visible;padding:0;position:relative;vertical-align:middle}.ui-spinner-input{vertical-align:middle;padding-right:1.5em}.ui-spinner-button{cursor:default;display:block;height:50%;margin:0;overflow:hidden;padding:0;position:absolute;right:0;text-align:center;vertical-align:middle;width:1.5em}.ui-spinner .ui-spinner-button-icon{position:absolute;top:50%;left:50%;margin-top:-.5em;margin-left:-.5em;width:1em}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-fluid .ui-spinner{width:100%}.ui-fluid .ui-spinner .ui-spinner-input{padding-right:2em;width:100%}.ui-fluid .ui-spinner .ui-spinner-button{width:1.5em}.ui-fluid .ui-spinner .ui-spinner-button .ui-spinner-button-icon{left:.7em}}\n"],encapsulation:2,changeDetection:0})}return t})(),xTe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs]})}return t})(),Fv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),nSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Fv,bi,Mi,Fv]})}return t})(),dSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,qn,Nn]})}return t})(),OSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Qe,dn,Nn,Mr,Qi,qn,Qe,Nn]})}return t})(),oEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Nn,dn,mn,Mr,Qi,Qe]})}return t})(),sEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,uu]})}return t})(),fEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn,Qe]})}return t})();const gEe=function(t,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i}};function mEe(t,i){if(1&t&&le(0,"span",3),2&t){const e=f();Ve(e.checked?e.onIcon:e.offIcon),d("ngClass",mt(4,gEe,"left"===e.iconPos,"right"===e.iconPos)),K("data-pc-section","icon")}}function _Ee(t,i){if(1&t&&(x(0,"span",4),Le(1),A()),2&t){const e=f();K("data-pc-section","label"),h(1),dt(e.checked?e.hasOnLabel?e.onLabel:"":e.hasOffLabel?e.offLabel:"")}}const IEe=function(t,i,e){return{"p-button p-togglebutton p-component":!0,"p-button-icon-only":t,"p-highlight":i,"p-disabled":e}},CEe={provide:un,useExisting:ft(()=>vEe),multi:!0};let vEe=(()=>{class t{cd;onLabel;offLabel;onIcon;offIcon;ariaLabel;ariaLabelledBy;disabled;style;styleClass;inputId;tabindex;iconPos="left";onChange=new ge;checked=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}toggle(e){this.disabled||(this.checked=!this.checked,this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onKeyDown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}onBlur(){this.onModelTouched()}writeValue(e){this.checked=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.onLabel&&this.onLabel.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-toggleButton"]],hostAttrs:[1,"p-element"],inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",style:"style",styleClass:"styleClass",inputId:"inputId",tabindex:"tabindex",iconPos:"iconPos"},outputs:{onChange:"onChange"},features:[yt([CEe])],decls:3,vars:16,consts:[["role","switch","pRipple","",3,"ngClass","ngStyle","click","keydown"],[3,"class","ngClass",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeyDown(r)}),g(1,mEe,1,7,"span",1),g(2,_Ee,2,2,"span",2),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(12,IEe,o.onIcon&&o.offIcon&&!o.hasOnLabel&&!o.hasOffLabel,o.checked,o.disabled))("ngStyle",o.style),K("tabindex",o.disabled?null:"0")("aria-checked",o.checked)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-name","togglebutton")("data-pc-section","root"),h(1),d("ngIf",o.onIcon||o.offIcon),h(1),d("ngIf",o.onLabel||o.offLabel))},dependencies:[Ct,gt,Ht,oo],styles:['@layer primeng{.p-button[_ngcontent-%COMP%]{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label[_ngcontent-%COMP%]{flex:1 1 auto}.p-button-icon-right[_ngcontent-%COMP%]{order:1}.p-button[_ngcontent-%COMP%]:disabled{cursor:default;pointer-events:none}.p-button-icon-only[_ngcontent-%COMP%]{justify-content:center}.p-button-icon-only[_ngcontent-%COMP%]:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical[_ngcontent-%COMP%]{flex-direction:column}.p-button-icon-bottom[_ngcontent-%COMP%]{order:2}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]{margin:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:last-child){border-right:0 none}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:focus{position:relative;z-index:1}p-button[iconpos=right][_ngcontent-%COMP%] spinnericon[_ngcontent-%COMP%]{order:1}}'],changeDetection:0})}return t})(),bEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn]})}return t})(),wEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),oke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,yi,bi,Qi,eg,Qs,_s,ng,Qe,Oi]})}return t})(),uke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Oi,Qe,Oi]})}return t})();const dke=["split"],pke=["area1"],hke=["area2"],fke=["layoutMenuScroller"],gke=function(t,i,e,n,o,s){return{"layout-wrapper-overlay-sidebar":t,"layout-wrapper-slim-sidebar":i,"layout-wrapper-horizontal-sidebar":e,"layout-wrapper-overlay-sidebar-active":n,"layout-wrapper-sidebar-inactive":o,"layout-wrapper-sidebar-mobile-active":s}},mke=function(){return{height:"100%"}};let Rv=(()=>{class t{constructor(e){this.renderer=e,this.direction="horizontal",this.sizes={percent:{area1:12,area2:88},pixel:{area1:120,area2:"*",area3:160},useTransition:!0,av1:!0,av2:!0},this.action={area1:12,area2:88,useTransition:!1,av1:!0,av2:!0},this.layoutMode="static",this.megaMenuMode="dark",this.menuMode="light",this.profileMode="inline"}dragEnd(e,{sizes:n}){"percent"===e?(this.action.area1=n[0],this.action.area2=n[1]):"pixel"===e&&(this.sizes.pixel.area1=n[0],this.sizes.pixel.area2=n[1],this.sizes.pixel.area3=n[2])}ngAfterViewInit(){setTimeout(()=>{this.layoutMenuScrollerViewChild.moveBar()},100)}onLayoutClick(){this.topbarItemClick||(this.activeTopbarItem=null,this.topbarMenuActive=!1),this.rightPanelClick||(this.rightPanelActive=!1),this.megaMenuClick||(this.megaMenuActive=!1),!this.usermenuClick&&this.isSlim()&&(this.usermenuActive=!1,this.activeProfileItem=null),this.menuClick||((this.isHorizontal()||this.isSlim())&&(this.resetMenu=!0),(this.overlayMenuActive||this.staticMenuMobileActive)&&this.hideOverlayMenu(),this.menuHoverActive=!1),this.topbarItemClick=!1,this.menuClick=!1,this.rightPanelClick=!1,this.megaMenuClick=!1,this.usermenuClick=!1}onMenuButtonClick(e){this.menuClick=!0,this.topbarMenuActive=!1,"overlay"===this.layoutMode?this.overlayMenuActive=!this.overlayMenuActive:this.isDesktop()?(this.staticMenuDesktopInactive=!this.staticMenuDesktopInactive,88==this.action.area2&&12==this.action.area1?(this.action.area2=100,this.action.area1=0):100==this.action.area2&&0==this.action.area1&&(this.action.area2=88,this.action.area1=12)):this.staticMenuMobileActive=!this.staticMenuMobileActive,e.preventDefault()}onMenuClick(e){this.menuClick=!0,this.resetMenu=!1}onTopbarMenuButtonClick(e){this.topbarItemClick=!0,this.topbarMenuActive=!this.topbarMenuActive,this.hideOverlayMenu(),e.preventDefault()}onTopbarItemClick(e,n){this.topbarItemClick=!0,this.activeTopbarItem=this.activeTopbarItem===n?null:n,e.preventDefault()}onTopbarSubItemClick(e){e.preventDefault()}onRightPanelButtonClick(e){this.rightPanelClick=!0,this.rightPanelActive=!this.rightPanelActive,e.preventDefault()}onRightPanelClick(){this.rightPanelClick=!0}onMegaMenuButtonClick(e){this.megaMenuClick=!0,this.megaMenuActive=!this.megaMenuActive,e.preventDefault()}onMegaMenuClick(){this.megaMenuClick=!0}hideOverlayMenu(){this.overlayMenuActive=!1,this.staticMenuMobileActive=!1}isTablet(){const e=window.innerWidth;return e<=1024&&e>640}isDesktop(){return window.innerWidth>1024}isMobile(){return window.innerWidth<=640}isHorizontal(){return"horizontal"===this.layoutMode}isSlim(){return"slim"===this.layoutMode}isOverlay(){return"overlay"===this.layoutMode}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-root"]],viewQuery:function(n,o){if(1&n&&(je(dke,5),je(pke,5),je(hke,5),je(fke,7)),2&n){let s;Se(s=Ee())&&(o.split=s.first),Se(s=Ee())&&(o.area1=s.first),Se(s=Ee())&&(o.area2=s.first),Se(s=Ee())&&(o.layoutMenuScrollerViewChild=s.first)}},decls:17,vars:17,consts:[[1,"layout-wrapper",3,"ngClass","click"],[1,"ui-g-12","ui-md-12","reportSection",2,"padding-left","0px"],["unit","percent",3,"direction","useTransition","dragEnd"],["split","asSplit"],[1,"area1",2,"overflow","auto","width","auto","height","auto","margin-top","38px",3,"size","visible"],["area1","asSplitArea"],[1,"layout-sidebar",3,"click"],["layoutMenuScroller",""],[1,"sidebar-scroll-content"],[2,"overflow","auto","height","auto","width","auto",3,"size","visible"],["area2","asSplitArea"],[1,"layout-main"],[1,"layout-main-content"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(){return o.onLayoutClick()}),le(1,"app-topbar"),x(2,"div",1)(3,"as-split",2,3),me("dragEnd",function(r){return o.dragEnd("percent",r)}),x(5,"as-split-area",4,5)(7,"div",6),me("click",function(r){return o.onMenuClick(r)}),x(8,"p-scrollPanel",null,7)(10,"div",8),le(11,"ginger-report-menu"),A()()()(),x(12,"as-split-area",9,10)(14,"div",11)(15,"div",12),le(16,"router-outlet"),A()()()()()()),2&n&&(d("ngClass",ea(9,gke,o.isOverlay(),o.isSlim(),o.isHorizontal(),o.overlayMenuActive,o.staticMenuDesktopInactive,o.staticMenuMobileActive)),h(3),d("direction",o.direction)("useTransition",o.action.useTransition),h(2),d("size",o.action.area1)("visible",o.action.av1),h(3),yn(Jt(16,mke)),h(4),d("size",o.action.area2)("visible",o.action.av2))},styles:[".reportSection .as-horizontal>.as-split-gutter>.as-split-gutter-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAB3SURBVChT3ZGxDcAgDASfNAzADiwA+2/AAJRUDMAADo8lZIkmUbpcgV+2dYVBSklijEJCCAJArvmgtcYC7z2X4LixOoa1eWCdzLOlzt47y+a509EzxkCtFTlnMB9O5v85yboj2fecQUeGl390OEspOjV8derIAtxNg4Qs31DpLQAAAABJRU5ErkJggg==)} .reportSection .as-horizontal>.as-split-gutter{height:auto!important;margin-top:0} .reportSection .layout-main{margin-left:0!important} .reportSection .layout-sidebar{position:relative!important;width:auto;top:25px;border-right:unset;height:99%} .reportSection .ui-panelmenu-content .ui-widget-content{height:1000px!important} .reportSection .layout-sidebar .ui-scrollpanel .sidebar-scroll-content{width:auto;padding-right:0} .reportSection .ui-panelmenu .ui-menuitem-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important} .reportSection a.p-menuitem-link-active{font-weight:700!important}"]})}return t})(),_ke=(()=>{class t{constructor(e,n,o,s,r){this.app=e,this.router=n,this.activeRoute=o,this.communicatorService=s,this.userDataManagerService=r,this.logoLink="#3423"}ngOnInit(){this.activeRoute.queryParams.subscribe(e=>{const n=e.ExecutionId;typeof n<"u"&&n&&(this.logoLink=`#/?ExecutionId=${n}`)})}refreshReport(){this.userDataManagerService.setItemCache(null),this.communicatorService.refreshScreen("RefreshData")}static#e=this.\u0275fac=function(n){return new(n||t)(V(Rv),V(io),V(Di),V(Ws),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-topbar"]],decls:7,vars:1,consts:[[1,"layout-topbar",2,"border-bottom","4px solid transparent","border-image","linear-gradient(to right, #ec008c, #f77341 63%, #fdb515)","border-image-slice","1","z-index","9999"],[1,"logo",3,"href"],["src","assets/layout/images/amdocs_icon.png","alt","Amdocs-logo","height","30",1,"amdocs_icon"],["src","assets/layout/images/amdocs.png","alt","Amdocs-logo"],["id","menu-button","href","#",3,"click"],[1,"fa","fa-align-left"],["type","button","pButton","","icon","pi pi-refresh","pTooltip","Refresh report data","tooltipPosition","right",1,"p-button","refreshBtn",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"a",1),le(2,"img",2)(3,"img",3),A(),x(4,"a",4),me("click",function(r){return o.app.onMenuButtonClick(r)}),le(5,"i",5),A(),x(6,"button",6),me("click",function(){return o.refreshReport()}),A()()),2&n&&(h(1),g_("href",o.logoLink,Ls))},dependencies:[Kl,hf],styles:[".refreshBtn[_ngcontent-%COMP%]{border-radius:40px;height:40px;width:40px!important;font-size:2em;position:absolute;right:10px;top:8px;background-color:#ffbf3f;color:#000;border:#FFBF3F}.p-button[_ngcontent-%COMP%]:enabled:hover{background-color:#f8e08e;color:#000}"]})}return t})();const $O={production:!0},Ike=["gutterEls"];function Cke(t,i){if(1&t){const e=De();x(0,"div",2,3),me("keydown",function(o){G(e);const s=f().index;return q(f().startKeyboardDrag(o,2*s+1,s+1))})("mousedown",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("touchstart",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("mouseup",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))})("touchend",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))}),le(2,"div",4),A()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f();fo("flex-basis",s.gutterSize,"px")("order",2*n+1),K("aria-label",s.gutterAriaLabel)("aria-orientation",s.direction)("aria-valuemin",o.minSize)("aria-valuemax",o.maxSize)("aria-valuenow",o.size)("aria-valuetext",s.getAriaAreaSizeText(o.size))}}function vke(t,i){1&t&&g(0,Cke,3,10,"div",1),2&t&&d("ngIf",!1===i.last)}const bke=["*"];function fd(t){if(void 0!==t.changedTouches&&t.changedTouches.length>0)return{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(void 0!==t.clientX&&void 0!==t.clientY)return{x:t.clientX,y:t.clientY};if(void 0!==t.currentTarget){const i=t.currentTarget;return{x:i.offsetLeft,y:i.offsetTop}}return null}function KO(t,i,e){return Math.abs(t.x-i.x)<=e&&Math.abs(t.y-i.y)<=e}function GO(t,i){const e=t.nativeElement.getBoundingClientRect();return"horizontal"===i?e.width:e.height}function gd(t){return"boolean"==typeof t?t:"false"!==t}function jr(t,i){return null==t?i:(t=Number(t),!isNaN(t)&&t>=0?t:i)}function qO(t,i){if("percent"===t){const e=i.reduce((n,o)=>null!==o?n+o:n,0);return i.every(n=>null!==n)&&e>99.9&&e<100.1}if("pixel"===t)return 1===i.filter(e=>null===e).length}function lg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.minSize?null:t.component.minSize>t.size?t.size:t.component.minSize}function cg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.maxSize?null:t.component.maxSize{const r=function xke(t,i,e,n){return 0===e?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:i.sizePercentAtStart,pixelRemain:0}:0===i.sizePixelAtStart&&e<0?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:e}:"percent"===t?function Ake(t,i,e){const o=(t.sizePixelAtStart+i)/e*100;if(i>0){if(null!==t.area.maxSize&&o>t.area.maxSize){const s=t.area.maxSize/100*e;return{areaSnapshot:t,pixelAbsorb:s,percentAfterAbsorption:t.area.maxSize,pixelRemain:t.sizePixelAtStart+i-s}}return{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:o>100?100:o,pixelRemain:0}}if(i<0){if(null!==t.area.minSize&&o0?null!==t.area.maxSize&&n>t.area.maxSize?{areaSnapshot:t,pixelAbsorb:t.area.maxSize-t.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:n-t.area.maxSize}:{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:-1,pixelRemain:0}:i<0?null!==t.area.minSize&&n{class t{set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=jr(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=jr(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=gd(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=gd(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=gd(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=jr(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new ce(e=>this.transitionEndSubscriber=e).pipe(nk(20))}constructor(e,n,o,s,r){this.ngZone=e,this.elRef=n,this.cdRef=o,this.renderer=s,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new ge(!1),this.dragEnd=new ge(!1),this.gutterClick=new ge(!1),this.gutterDblClick=new ge(!1),this.dragProgressSubject=new re,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=r?Object.assign(this._config,r):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const n={component:e,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===e.visible?(this.displayedAreas.push(n),this.build(!0,!0)):this.hiddenAreas.push(n)}removeArea(e){if(this.displayedAreas.some(n=>n.component===e)){const n=this.displayedAreas.find(o=>o.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(n),1),this.build(!0,!0)}else if(this.hiddenAreas.some(n=>n.component===e)){const n=this.hiddenAreas.find(o=>o.component===e);this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1)}}updateArea(e,n,o){!0===e.visible&&this.build(n,o)}showArea(e){const n=this.hiddenAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1);this.displayedAreas.push(...o),this.build(!0,!0)}hideArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.displayedAreas.splice(this.displayedAreas.indexOf(n),1);o.forEach(s=>{s.order=0,s.size=0}),this.hiddenAreas.push(...o),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const n=e.map(s=>jr(s,null));return!1!==qO(this.unit,n)&&(this.displayedAreas.forEach((s,r)=>s.component._size=n[r]),this.build(!1,!0),!0)}build(e,n){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(o=>null!==o.component.order)&&this.displayedAreas.sort((o,s)=>o.component.order-s.component.order),this.displayedAreas.forEach((o,s)=>{o.order=2*s,o.component.setStyleOrder(o.order)})),!0===n){const o=qO(this.unit,this.displayedAreas.map(s=>s.component.size));switch(this.unit){case"percent":{const s=100/this.displayedAreas.length;this.displayedAreas.forEach(r=>{r.size=o?r.component.size:s,r.minSize=lg(r),r.maxSize=cg(r)});break}case"pixel":if(o)this.displayedAreas.forEach(s=>{s.size=s.component.size,s.minSize=lg(s),s.maxSize=cg(s)});else{const s=this.displayedAreas.filter(r=>null===r.component.size);if(0===s.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((r,a)=>{r.size=0===a?null:r.component.size,r.minSize=0===a?null:lg(r),r.maxSize=0===a?null:cg(r)});else if(s.length>1){let r=!1;this.displayedAreas.forEach(a=>{null===a.component.size?!1===r?(a.size=null,a.minSize=null,a.maxSize=null,r=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=lg(a),a.maxSize=cg(a))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(n=>{n.component.setStyleFlex(0,0,`calc( ${n.size}% - ${n.size/100*e}px )`,null!==n.minSize&&n.minSize===n.size,null!==n.maxSize&&n.maxSize===n.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,n){const o=fd(e);this.startPoint&&KO(this.startPoint,o,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",n),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",n),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(e,n,o){if(!0===this.disabled||!0===this.isWaitingClear)return;const s=function yke(t,i){if("horizontal"===i)switch(t.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===i)switch(t.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const e=t.currentTarget,n="PageUp"===t.key||"PageDown"===t.key?500:50;let o=e.offsetLeft,s=e.offsetTop;switch(t.key){case"ArrowLeft":o-=n;break;case"ArrowRight":o+=n;break;case"ArrowUp":s-=n;break;case"ArrowDown":s+=n;break;case"PageUp":"vertical"===i?s-=n:o+=n;break;case"PageDown":"vertical"===i?s+=n:o-=n;break;default:return null}return{x:o,y:s}}(e,this.direction);null!==s&&(this.endPoint=s,this.startPoint=fd(e),e.preventDefault(),e.stopPropagation(),this.setupForDragEvent(n,o),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(e,n,o){e.preventDefault(),e.stopPropagation(),this.startPoint=fd(e),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(n,o),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(e,n){this.snapshot={gutterNum:n,lastSteppedOffset:0,allAreasSizePixel:GO(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(o=>{const s={area:o,sizePixelAtStart:GO(o.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?o.size:-1};o.ordere&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[s]):this.snapshot.areasAfterGutter.push(s))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((o,s)=>o+s.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(e){e.preventDefault(),e.stopPropagation();const n=fd(e);null!==this._clickTimeout&&!KO(this.startPoint,n,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=fd(e),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let e="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(e=-e);const n=Math.round(e/this.gutterStep)*this.gutterStep;if(n===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=n;let o=Jl(this.unit,this.snapshot.areasBeforeGutter,-n,this.snapshot.allAreasSizePixel),s=Jl(this.unit,this.snapshot.areasAfterGutter,n,this.snapshot.allAreasSizePixel);if(0!==o.remain&&0!==s.remain?Math.abs(o.remain)===Math.abs(s.remain)||(Math.abs(o.remain)>Math.abs(s.remain)?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)):0!==o.remain?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):0!==s.remain&&(o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const r=[...o.list,...s.list],a=r.find(l=>0!==l.percentAfterAbsorption&&l.percentAfterAbsorption!==l.areaSnapshot.area.minSize&&l.percentAfterAbsorption!==l.areaSnapshot.area.maxSize);a&&(a.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-r.filter(l=>l!==a).reduce((l,c)=>l+c.percentAfterAbsorption,0))}o.list.forEach(r=>WO(this.unit,r)),s.list.forEach(r=>WO(this.unit,r)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(n=>n.component.unlockEvents());this.dragListeners.length>0;){const n=this.dragListeners.pop();n&&n()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(e,n){const o=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:n,sizes:o}):"end"===e?this.dragEnd.emit({gutterNum:n,sizes:o}):"click"===e?this.gutterClick.emit({gutterNum:n,sizes:o}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:n,sizes:o}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(o)):"progress"===e&&this.dragProgressSubject.next({gutterNum:n,sizes:o})}ngOnDestroy(){this.stopDragging()}collapseArea(e,n,o){const s=this.displayedAreas.find(l=>l.component===e);if(void 0===s)return;const r="right"===o?1:-1;s.sizeBeforeCollapse||(s.sizeBeforeCollapse=s.size,s.gutterBeforeCollapse=r),s.size=n;const a=this.gutterEls.find(l=>l.nativeElement.style.order===`${s.order+r}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}expandArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n||!n.sizeBeforeCollapse)return;n.size=n.sizeBeforeCollapse,n.sizeBeforeCollapse=null;const o=this.gutterEls.find(s=>s.nativeElement.style.order===`${n.order+n.gutterBeforeCollapse}`);o&&this.renderer.removeClass(o.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}getAriaAreaSizeText(e){return null===e?null:e.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(Ft),V(hn),V(Tke,8))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["as-split"]],viewQuery:function(n,o){if(1&n&&je(Ike,5),2&n){let s;Se(s=Ee())&&(o.gutterEls=s)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:bke,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(n,o){1&n&&(Ti(),Kn(0),g(1,vke,1,1,"ng-template",0)),2&n&&(h(1),d("ngForOf",o.displayedAreas))},dependencies:[Jn,gt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return t})(),Ske=(()=>{class t{set order(e){this._order=jr(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=jr(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=jr(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=jr(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=gd(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=gd(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(e,n,o,s){this.ngZone=e,this.elRef=n,this.renderer=o,this.split=s,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",n=>{"flex-basis"===n.propertyName&&this.split.notify("transitionEnd",-1)})});const e=this.renderer.createElement("div");this.renderer.addClass(e,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,e)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,e)})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,n,o,s,r){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",n),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",o),!0===s?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===r?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(e=0,n="right"){this.split.collapseArea(this,e,n)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(hn),V(QO))};static#t=this.\u0275dir=ut({type:t,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return t})(),Eke=(()=>{class t{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[Xe]})}return t})();const Dke=function(){return{width:"auto"}};let kke=(()=>{class t{constructor(e,n){this.communicatorService=e,this.route=n,this.guid="",this.executionGeneralDetailsData=[]}ngOnInit(){this.communicatorService.messageSourceHasNewMessage.subscribe(e=>{console.log("messge arrived to menu"),console.log(e),this.items=e}),this.route.queryParams.subscribe(e=>{this.guid="",this.guid=e.Guid,typeof this.guid<"u"&&this.guid&&this.searchForSelectedRecNode(this.items)})}searchForSelectedRecNode(e){let n=!1;if(null==e)n=!1;else for(const o of e){if(o.id===this.guid){n=!0;break}if(typeof o.items<"u"&&null!=o.items&&this.searchForSelectedRecNode(o.items)){o.expanded=!0,n=!0;break}}return n}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ginger-report-menu"]],decls:1,vars:5,consts:[[3,"model","multiple"]],template:function(n,o){1&n&&le(0,"p-panelMenu",0),2&n&&(yn(Jt(4,Dke)),d("model",o.items)("multiple",!1))},dependencies:[ZM],styles:[".p-panelmenu .p-panelmenu-header-action .p-menuitem-icon{margin-left:.2rem!important;margin-right:.5rem!important} .p-panelmenu .p-component{padding-top:10px}"]})}return t})(),Mke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t,bootstrap:[Rv]});static#n=this.\u0275inj=Ge({providers:[{provide:"environmentObj",useValue:$O},{provide:Ir,useClass:G2}],imports:[R0,uu,uhe,eE,NE,JD,Ife,oge,Mi,uk,cge,Oge,qM,qge,mme,Xme,f_e,nO,D_e,Ek,_f,V_e,Q_e,pIe,kk,yIe,MIe,_v,Zs,OIe,UCe,wve,o1e,z1e,$1e,yv,Eye,sxe,bxe,kxe,vf,Wxe,YM,xAe,Nwe,xv,Gwe,f2e,y2e,Ik,J2e,_Te,xTe,nSe,dSe,wk,OSe,oEe,sEe,Fv,fEe,bEe,wEe,Nn,oke,JM,uke,Spe,_v,Xe,Eke.forRoot()]})}return t})();Dg(Rv,function(){return[Ct,QI,b2e,kke,QO,Ske,_ke]},[]),AB().bootstrapModule(Mke).catch(t=>console.error(t))},7536:function(tc){tc.exports=function(xe){var z={};function L(ae){if(z[ae])return z[ae].exports;var H=z[ae]={exports:{},id:ae,loaded:!1};return xe[ae].call(H.exports,H,H.exports,L),H.loaded=!0,H.exports}return L.m=xe,L.c=z,L.p="",L(0)}([function(xe,z,L){xe.exports=L(53)},function(xe,z,L){"use strict";var H=ue(L(2)),F=ue(L(18)),N=L(29),O=ue(N),I=ue(L(30)),T=ue(L(42)),k=ue(L(34)),D=ue(L(31)),M=ue(L(32)),ee=ue(L(43)),ne=ue(L(33)),Q=ue(L(44)),se=ue(L(51)),U=ue(L(52));function ue(pe){return pe&&pe.__esModule?pe:{default:pe}}F.default.register({"blots/block":O.default,"blots/block/embed":N.BlockEmbed,"blots/break":I.default,"blots/container":T.default,"blots/cursor":k.default,"blots/embed":D.default,"blots/inline":M.default,"blots/scroll":ee.default,"blots/text":ne.default,"modules/clipboard":Q.default,"modules/history":se.default,"modules/keyboard":U.default}),H.default.register(O.default,I.default,k.default,M.default,ee.default,ne.default),xe.exports=F.default},function(xe,z,L){"use strict";var ae=L(3),H=L(7),Z=L(12),F=L(13),N=L(14),O=L(15),S=L(16),I=L(17),v=L(8),T=L(10),C=L(11),k=L(9),y=L(6),D={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:ae.default,Format:H.default,Leaf:Z.default,Embed:S.default,Scroll:F.default,Block:O.default,Inline:N.default,Text:I.default,Attributor:{Attribute:v.default,Class:T.default,Style:C.default,Store:k.default}};Object.defineProperty(z,"__esModule",{value:!0}),z.default=D},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(4),Z=L(5),F=L(6),N=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.prototype.appendChild=function(v){this.insertBefore(v)},I.prototype.attach=function(){var v=this;S.prototype.attach.call(this),this.children=new H.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(T){try{var C=O(T);v.insertBefore(C,v.children.head)}catch(k){if(k instanceof F.ParchmentError)return;throw k}})},I.prototype.deleteAt=function(v,T){if(0===v&&T===this.length())return this.remove();this.children.forEachAt(v,T,function(C,k,y){C.deleteAt(k,y)})},I.prototype.descendant=function(v,T){var C=this.children.find(T),k=C[0],y=C[1];return null==v.blotName&&v(k)||null!=v.blotName&&k instanceof v?[k,y]:k instanceof I?k.descendant(v,y):[null,-1]},I.prototype.descendants=function(v,T,C){void 0===T&&(T=0),void 0===C&&(C=Number.MAX_VALUE);var k=[],y=C;return this.children.forEachAt(T,C,function(D,w,M){(null==v.blotName&&v(D)||null!=v.blotName&&D instanceof v)&&k.push(D),D instanceof I&&(k=k.concat(D.descendants(v,w,y))),y-=M}),k},I.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),S.prototype.detach.call(this)},I.prototype.formatAt=function(v,T,C,k){this.children.forEachAt(v,T,function(y,D,w){y.formatAt(D,w,C,k)})},I.prototype.insertAt=function(v,T,C){var k=this.children.find(v),y=k[0];if(y)y.insertAt(k[1],T,C);else{var w=null==C?F.create("text",T):F.create(T,C);this.appendChild(w)}},I.prototype.insertBefore=function(v,T){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(C){return v instanceof C}))throw new F.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,T)},I.prototype.length=function(){return this.children.reduce(function(v,T){return v+T.length()},0)},I.prototype.moveChildren=function(v,T){this.children.forEach(function(C){v.insertBefore(C,T)})},I.prototype.optimize=function(){if(S.prototype.optimize.call(this),0===this.children.length)if(null!=this.statics.defaultChild){var v=F.create(this.statics.defaultChild);this.appendChild(v),v.optimize()}else this.remove()},I.prototype.path=function(v,T){void 0===T&&(T=!1);var C=this.children.find(v,T),k=C[0],y=C[1],D=[[this,v]];return k instanceof I?D.concat(k.path(y,T)):(null!=k&&D.push([k,y]),D)},I.prototype.removeChild=function(v){this.children.remove(v)},I.prototype.replace=function(v){v instanceof I&&v.moveChildren(this),S.prototype.replace.call(this,v)},I.prototype.split=function(v,T){if(void 0===T&&(T=!1),!T){if(0===v)return this;if(v===this.length())return this.next}var C=this.clone();return this.parent.insertBefore(C,this.next),this.children.forEachAt(v,this.length(),function(k,y,D){k=k.split(y,T),C.appendChild(k)}),C},I.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},I.prototype.update=function(v){var T=this,C=[],k=[];v.forEach(function(y){y.target===T.domNode&&"childList"===y.type&&(C.push.apply(C,y.addedNodes),k.push.apply(k,y.removedNodes))}),k.forEach(function(y){if(!(null!=y.parentNode&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var D=F.find(y);null!=D&&(null==D.domNode.parentNode||D.domNode.parentNode===T.domNode)&&D.detach()}}),C.filter(function(y){return y.parentNode==T.domNode}).sort(function(y,D){return y===D?0:y.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var D=null;null!=y.nextSibling&&(D=F.find(y.nextSibling));var w=O(y);(w.next!=D||null==w.next)&&(null!=w.parent&&w.parent.removeChild(T),T.insertBefore(w,D))})},I}(Z.default);function O(S){var I=F.find(S);if(null==I)try{I=F.create(S)}catch{I=F.create(F.Scope.INLINE),[].slice.call(S.childNodes).forEach(function(T){I.domNode.appendChild(T)}),S.parentNode.replaceChild(I.domNode,S),I.attach()}return I}Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z){"use strict";var L=function(){function ae(){this.head=this.tail=void 0,this.length=0}return ae.prototype.append=function(){for(var H=[],Z=0;Z1&&this.append.apply(this,H.slice(1))},ae.prototype.contains=function(H){for(var Z,F=this.iterator();Z=F();)if(Z===H)return!0;return!1},ae.prototype.insertBefore=function(H,Z){H.next=Z,null!=Z?(H.prev=Z.prev,null!=Z.prev&&(Z.prev.next=H),Z.prev=H,Z===this.head&&(this.head=H)):null!=this.tail?(this.tail.next=H,H.prev=this.tail,this.tail=H):(H.prev=void 0,this.head=this.tail=H),this.length+=1},ae.prototype.offset=function(H){for(var Z=0,F=this.head;null!=F;){if(F===H)return Z;Z+=F.length(),F=F.next}return-1},ae.prototype.remove=function(H){this.contains(H)&&(null!=H.prev&&(H.prev.next=H.next),null!=H.next&&(H.next.prev=H.prev),H===this.head&&(this.head=H.next),H===this.tail&&(this.tail=H.prev),this.length-=1)},ae.prototype.iterator=function(H){return void 0===H&&(H=this.head),function(){var Z=H;return null!=H&&(H=H.next),Z}},ae.prototype.find=function(H,Z){void 0===Z&&(Z=!1);for(var F,N=this.iterator();F=N();){var O=F.length();if(Hv?F(I,H-v,Math.min(Z,v+C-H)):F(I,0,Math.min(C,H+Z-v)),v+=C}},ae.prototype.map=function(H){return this.reduce(function(Z,F){return Z.push(H(F)),Z},[])},ae.prototype.reduce=function(H,Z){for(var F,N=this.iterator();F=N();)Z=H(Z,F);return Z},ae}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=L},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F){this.domNode=F,this.attach()}return Object.defineProperty(Z.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),Z.create=function(F){if(null==this.tagName)throw new ae.ParchmentError("Blot definition missing tagName");var N;return Array.isArray(this.tagName)?("string"==typeof F&&(F=F.toUpperCase(),parseInt(F).toString()===F&&(F=parseInt(F))),N="number"==typeof F?document.createElement(this.tagName[F-1]):this.tagName.indexOf(F)>-1?document.createElement(F):document.createElement(this.tagName[0])):N=document.createElement(this.tagName),this.className&&N.classList.add(this.className),N},Z.prototype.attach=function(){this.domNode[ae.DATA_KEY]={blot:this}},Z.prototype.clone=function(){var F=this.domNode.cloneNode();return ae.create(F)},Z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[ae.DATA_KEY]},Z.prototype.deleteAt=function(F,N){this.isolate(F,N).remove()},Z.prototype.formatAt=function(F,N,O,S){var I=this.isolate(F,N);if(null!=ae.query(O,ae.Scope.BLOT)&&S)I.wrap(O,S);else if(null!=ae.query(O,ae.Scope.ATTRIBUTE)){var v=ae.create(this.statics.scope);I.wrap(v),v.format(O,S)}},Z.prototype.insertAt=function(F,N,O){var S=null==O?ae.create("text",N):ae.create(N,O),I=this.split(F);this.parent.insertBefore(S,I)},Z.prototype.insertInto=function(F,N){if(null!=this.parent&&this.parent.children.remove(this),F.children.insertBefore(this,N),null!=N)var O=N.domNode;(null==this.next||this.domNode.nextSibling!=O)&&F.domNode.insertBefore(this.domNode,typeof O<"u"?O:null),this.parent=F},Z.prototype.isolate=function(F,N){var O=this.split(F);return O.split(N),O},Z.prototype.length=function(){return 1},Z.prototype.offset=function(F){return void 0===F&&(F=this.parent),null==this.parent||this==F?0:this.parent.children.offset(this)+this.parent.offset(F)},Z.prototype.optimize=function(){null!=this.domNode[ae.DATA_KEY]&&delete this.domNode[ae.DATA_KEY].mutations},Z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},Z.prototype.replace=function(F){null!=F.parent&&(F.parent.insertBefore(this,F.next),F.remove())},Z.prototype.replaceWith=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return O.replace(this),O},Z.prototype.split=function(F,N){return 0===F?this:this.next},Z.prototype.update=function(F){void 0===F&&(F=[])},Z.prototype.wrap=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return null!=this.parent&&this.parent.insertBefore(O,this.next),O.appendChild(this),O},Z}();H.blotName="abstract",Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z){"use strict";var L=this&&this.__extends||function(C,k){for(var y in k)k.hasOwnProperty(y)&&(C[y]=k[y]);function D(){this.constructor=C}C.prototype=null===k?Object.create(k):(D.prototype=k.prototype,new D)},ae=function(C){function k(y){var D;return(D=C.call(this,y="[Parchment] "+y)||this).message=y,D.name=D.constructor.name,D}return L(k,C),k}(Error);z.ParchmentError=ae;var O,C,H={},Z={},F={},N={};function v(C,k){var y;if(void 0===k&&(k=O.ANY),"string"==typeof C)y=N[C]||H[C];else if(C instanceof Text)y=N.text;else if("number"==typeof C)C&O.LEVEL&O.BLOCK?y=N.block:C&O.LEVEL&O.INLINE&&(y=N.inline);else if(C instanceof HTMLElement){var D=(C.getAttribute("class")||"").split(/\s+/);for(var w in D)if(y=Z[D[w]])break;y=y||F[C.tagName]}return null==y?null:k&O.LEVEL&y.scope&&k&O.TYPE&y.scope?y:null}z.DATA_KEY="__blot",(C=O=z.Scope||(z.Scope={}))[C.TYPE=3]="TYPE",C[C.LEVEL=12]="LEVEL",C[C.ATTRIBUTE=13]="ATTRIBUTE",C[C.BLOT=14]="BLOT",C[C.INLINE=7]="INLINE",C[C.BLOCK=11]="BLOCK",C[C.BLOCK_BLOT=10]="BLOCK_BLOT",C[C.INLINE_BLOT=6]="INLINE_BLOT",C[C.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",C[C.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",C[C.ANY=15]="ANY",z.create=function S(C,k){var y=v(C);if(null==y)throw new ae("Unable to create "+C+" blot");var D=y,w=C instanceof Node?C:D.create(k);return new D(w,k)},z.find=function I(C,k){return void 0===k&&(k=!1),null==C?null:null!=C[z.DATA_KEY]?C[z.DATA_KEY].blot:k?I(C.parentNode,k):null},z.query=v,z.register=function T(){for(var C=[],k=0;k1)return C.map(function(w){return T(w)});var y=C[0];if("string"!=typeof y.blotName&&"string"!=typeof y.attrName)throw new ae("Invalid definition");if("abstract"===y.blotName)throw new ae("Cannot register abstract class");return N[y.blotName||y.attrName]=y,"string"==typeof y.keyName?H[y.keyName]=y:(null!=y.className&&(Z[y.className]=y),null!=y.tagName&&(y.tagName=Array.isArray(y.tagName)?y.tagName.map(function(w){return w.toUpperCase()}):y.tagName.toUpperCase(),(Array.isArray(y.tagName)?y.tagName:[y.tagName]).forEach(function(w){(null==F[w]||null==y.className)&&(F[w]=y)}))),y}},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(8),Z=L(9),F=L(3),N=L(6),O=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.formats=function(v){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?v.tagName.toLowerCase():void 0)},I.prototype.attach=function(){S.prototype.attach.call(this),this.attributes=new Z.default(this.domNode)},I.prototype.format=function(v,T){var C=N.query(v);C instanceof H.default?this.attributes.attribute(C,T):T&&null!=C&&(v!==this.statics.blotName||this.formats()[v]!==T)&&this.replaceWith(v,T)},I.prototype.formats=function(){var v=this.attributes.values(),T=this.statics.formats(this.domNode);return null!=T&&(v[this.statics.blotName]=T),v},I.prototype.replaceWith=function(v,T){var C=S.prototype.replaceWith.call(this,v,T);return this.attributes.copy(C),C},I.prototype.update=function(v){var T=this;S.prototype.update.call(this,v),v.some(function(C){return C.target===T.domNode&&"attributes"===C.type})&&this.attributes.build()},I.prototype.wrap=function(v,T){var C=S.prototype.wrap.call(this,v,T);return C instanceof I&&C.statics.scope===this.statics.scope&&this.attributes.move(C),C},I}(F.default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F,N,O){void 0===O&&(O={}),this.attrName=F,this.keyName=N,this.scope=null!=O.scope?O.scope&ae.Scope.LEVEL|ae.Scope.TYPE&ae.Scope.ATTRIBUTE:ae.Scope.ATTRIBUTE,null!=O.whitelist&&(this.whitelist=O.whitelist)}return Z.keys=function(F){return[].map.call(F.attributes,function(N){return N.name})},Z.prototype.add=function(F,N){return!!this.canAdd(F,N)&&(F.setAttribute(this.keyName,N),!0)},Z.prototype.canAdd=function(F,N){return null!=ae.query(F,ae.Scope.BLOT&(this.scope|ae.Scope.TYPE))&&(null==this.whitelist||this.whitelist.indexOf(N)>-1)},Z.prototype.remove=function(F){F.removeAttribute(this.keyName)},Z.prototype.value=function(F){var N=F.getAttribute(this.keyName);return this.canAdd(F,N)?N:""},Z}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z,L){"use strict";var ae=L(8),H=L(10),Z=L(11),F=L(6),N=function(){function O(S){this.attributes={},this.domNode=S,this.build()}return O.prototype.attribute=function(S,I){I?S.add(this.domNode,I)&&(null!=S.value(this.domNode)?this.attributes[S.attrName]=S:delete this.attributes[S.attrName]):(S.remove(this.domNode),delete this.attributes[S.attrName])},O.prototype.build=function(){var S=this;this.attributes={};var I=ae.default.keys(this.domNode),v=H.default.keys(this.domNode),T=Z.default.keys(this.domNode);I.concat(v).concat(T).forEach(function(C){var k=F.query(C,F.Scope.ATTRIBUTE);k instanceof ae.default&&(S.attributes[k.attrName]=k)})},O.prototype.copy=function(S){var I=this;Object.keys(this.attributes).forEach(function(v){var T=I.attributes[v].value(I.domNode);S.format(v,T)})},O.prototype.move=function(S){var I=this;this.copy(S),Object.keys(this.attributes).forEach(function(v){I.attributes[v].remove(I.domNode)}),this.attributes={}},O.prototype.values=function(){var S=this;return Object.keys(this.attributes).reduce(function(I,v){return I[v]=S.attributes[v].value(S.domNode),I},{})},O}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N,O){return(N.getAttribute("class")||"").split(/\s+/).filter(function(I){return 0===I.indexOf(O+"-")})}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("class")||"").split(/\s+/).map(function(I){return I.split("-").slice(0,-1).join("-")})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(this.remove(S),S.classList.add(this.keyName+"-"+I),!0)},O.prototype.remove=function(S){Z(S,this.keyName).forEach(function(v){S.classList.remove(v)}),0===S.classList.length&&S.removeAttribute("class")},O.prototype.value=function(S){var v=(Z(S,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(S,v)?v:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N){var O=N.split("-"),S=O.slice(1).map(function(I){return I[0].toUpperCase()+I.slice(1)}).join("");return O[0]+S}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("style")||"").split(";").map(function(I){return I.split(":")[0].trim()})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(S.style[Z(this.keyName)]=I,!0)},O.prototype.remove=function(S){S.style[Z(this.keyName)]="",S.getAttribute("style")||S.removeAttribute("style")},O.prototype.value=function(S){var I=S.style[Z(this.keyName)];return this.canAdd(S,I)?I:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(5),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.value=function(S){return!0},O.prototype.index=function(S,I){return S!==this.domNode?-1:Math.min(I,1)},O.prototype.position=function(S,I){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return S>0&&(v+=1),[this.parent.domNode,v]},O.prototype.value=function(){return(S={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,S;var S},O}(H.default);F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(3),Z=L(6),F={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},O=function(S){function I(v){var T=S.call(this,v)||this;return T.parent=null,T.observer=new MutationObserver(function(C){T.update(C)}),T.observer.observe(T.domNode,F),T}return ae(I,S),I.prototype.detach=function(){S.prototype.detach.call(this),this.observer.disconnect()},I.prototype.deleteAt=function(v,T){this.update(),0===v&&T===this.length()?this.children.forEach(function(C){C.remove()}):S.prototype.deleteAt.call(this,v,T)},I.prototype.formatAt=function(v,T,C,k){this.update(),S.prototype.formatAt.call(this,v,T,C,k)},I.prototype.insertAt=function(v,T,C){this.update(),S.prototype.insertAt.call(this,v,T,C)},I.prototype.optimize=function(v){var T=this;void 0===v&&(v=[]),S.prototype.optimize.call(this);for(var C=[].slice.call(this.observer.takeRecords());C.length>0;)v.push(C.pop());for(var k=function(M,$){void 0===$&&($=!0),null!=M&&M!==T&&null!=M.domNode.parentNode&&(null==M.domNode[Z.DATA_KEY].mutations&&(M.domNode[Z.DATA_KEY].mutations=[]),$&&k(M.parent))},y=function(M){null==M.domNode[Z.DATA_KEY]||null==M.domNode[Z.DATA_KEY].mutations||(M instanceof H.default&&M.children.forEach(y),M.optimize())},D=v,w=0;D.length>0;w+=1){if(w>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(D.forEach(function(M){var $=Z.find(M.target,!0);null!=$&&($.domNode===M.target&&("childList"===M.type?(k(Z.find(M.previousSibling,!1)),[].forEach.call(M.addedNodes,function(ee){var B=Z.find(ee,!1);k(B,!1),B instanceof H.default&&B.children.forEach(function(ne){k(ne,!1)})})):"attributes"===M.type&&k($.prev)),k($))}),this.children.forEach(y),C=(D=[].slice.call(this.observer.takeRecords())).slice();C.length>0;)v.push(C.pop())}},I.prototype.update=function(v){var T=this;(v=v||this.observer.takeRecords()).map(function(C){var k=Z.find(C.target,!0);if(null!=k)return null==k.domNode[Z.DATA_KEY].mutations?(k.domNode[Z.DATA_KEY].mutations=[C],k):(k.domNode[Z.DATA_KEY].mutations.push(C),null)}).forEach(function(C){null==C||C===T||null==C.domNode[Z.DATA_KEY]||C.update(C.domNode[Z.DATA_KEY].mutations||[])}),null!=this.domNode[Z.DATA_KEY].mutations&&S.prototype.update.call(this,this.domNode[Z.DATA_KEY].mutations),this.optimize(v)},I}(H.default);O.blotName="scroll",O.defaultChild="block",O.scope=Z.Scope.BLOCK_BLOT,O.tagName="DIV",Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(O,S){for(var I in S)S.hasOwnProperty(I)&&(O[I]=S[I]);function v(){this.constructor=O}O.prototype=null===S?Object.create(S):(v.prototype=S.prototype,new v)},H=L(7),Z=L(6);var N=function(O){function S(){return O.apply(this,arguments)||this}return ae(S,O),S.formats=function(I){if(I.tagName!==S.tagName)return O.formats.call(this,I)},S.prototype.format=function(I,v){var T=this;I!==this.statics.blotName||v?O.prototype.format.call(this,I,v):(this.children.forEach(function(C){C instanceof H.default||(C=C.wrap(S.blotName,!0)),T.attributes.copy(C)}),this.unwrap())},S.prototype.formatAt=function(I,v,T,C){null!=this.formats()[T]||Z.query(T,Z.Scope.ATTRIBUTE)?this.isolate(I,v).format(T,C):O.prototype.formatAt.call(this,I,v,T,C)},S.prototype.optimize=function(){O.prototype.optimize.call(this);var I=this.formats();if(0===Object.keys(I).length)return this.unwrap();var v=this.next;v instanceof S&&v.prev===this&&function F(O,S){if(Object.keys(O).length!==Object.keys(S).length)return!1;for(var I in O)if(O[I]!==S[I])return!1;return!0}(I,v.formats())&&(v.moveChildren(this),v.remove())},S}(H.default);N.blotName="inline",N.scope=Z.Scope.INLINE_BLOT,N.tagName="SPAN",Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(7),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.formats=function(S){var I=Z.query(O.blotName).tagName;if(S.tagName!==I)return N.formats.call(this,S)},O.prototype.format=function(S,I){null!=Z.query(S,Z.Scope.BLOCK)&&(S!==this.statics.blotName||I?N.prototype.format.call(this,S,I):this.replaceWith(O.blotName))},O.prototype.formatAt=function(S,I,v,T){null!=Z.query(v,Z.Scope.BLOCK)?this.format(v,T):N.prototype.formatAt.call(this,S,I,v,T)},O.prototype.insertAt=function(S,I,v){if(null==v||null!=Z.query(I,Z.Scope.INLINE))N.prototype.insertAt.call(this,S,I,v);else{var T=this.split(S),C=Z.create(I,v);T.parent.insertBefore(C,T)}},O}(H.default);F.blotName="block",F.scope=Z.Scope.BLOCK_BLOT,F.tagName="P",Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(F,N){for(var O in N)N.hasOwnProperty(O)&&(F[O]=N[O]);function S(){this.constructor=F}F.prototype=null===N?Object.create(N):(S.prototype=N.prototype,new S)},Z=function(F){function N(){return F.apply(this,arguments)||this}return ae(N,F),N.formats=function(O){},N.prototype.format=function(O,S){F.prototype.formatAt.call(this,0,this.length(),O,S)},N.prototype.formatAt=function(O,S,I,v){0===O&&S===this.length()?this.format(I,v):F.prototype.formatAt.call(this,O,S,I,v)},N.prototype.formats=function(){return this.statics.formats(this.domNode)},N}(L(12).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=Z},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(12),Z=L(6),F=function(N){function O(S){var I=N.call(this,S)||this;return I.text=I.statics.value(I.domNode),I}return ae(O,N),O.create=function(S){return document.createTextNode(S)},O.value=function(S){return S.data},O.prototype.deleteAt=function(S,I){this.domNode.data=this.text=this.text.slice(0,S)+this.text.slice(S+I)},O.prototype.index=function(S,I){return this.domNode===S?I:-1},O.prototype.insertAt=function(S,I,v){null==v?(this.text=this.text.slice(0,S)+I+this.text.slice(S),this.domNode.data=this.text):N.prototype.insertAt.call(this,S,I,v)},O.prototype.length=function(){return this.text.length},O.prototype.optimize=function(){N.prototype.optimize.call(this),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof O&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},O.prototype.position=function(S,I){return void 0===I&&(I=!1),[this.domNode,S]},O.prototype.split=function(S,I){if(void 0===I&&(I=!1),!I){if(0===S)return this;if(S===this.length())return this.next}var v=Z.create(this.domNode.splitText(S));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},O.prototype.update=function(S){var I=this;S.some(function(v){return"characterData"===v.type&&v.target===I.domNode})&&(this.text=this.statics.value(this.domNode))},O.prototype.value=function(){return this.text},O}(H.default);F.blotName="text",F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.overload=z.expandConfig=void 0;var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},H=function(ce,ie){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return function de(ce,ie){var J=[],oe=!0,Ie=!1,re=void 0;try{for(var Be,ye=ce[Symbol.iterator]();!(oe=(Be=ye.next()).done)&&(J.push(Be.value),!ie||J.length!==ie);oe=!0);}catch(Me){Ie=!0,re=Me}finally{try{!oe&&ye.return&&ye.return()}finally{if(Ie)throw re}}return J}(ce,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function de(ce,ie){for(var J=0;J1&&void 0!==arguments[1]?arguments[1]:{};if(function se(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,de),this.options=ue(ce,J),this.container=this.options.container,this.scrollingContainer=this.options.scrollingContainer||document.body,null==this.container)return X.error("Invalid Quill container",ce);this.options.debug&&de.debug(this.options.debug);var oe=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new v.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new S.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(re){re===v.default.events.TEXT_CHANGE&&ie.root.classList.toggle("ql-blank",ie.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(re,ye){var Be=ie.selection.lastRange,Me=Be&&0===Be.length?Be.index:void 0;pe.call(ie,function(){return ie.editor.update(null,ye,Me)},re)});var Ie=this.clipboard.convert("
"+oe+"


");this.setContents(Ie),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return Z(de,null,[{key:"debug",value:function(ie){!0===ie&&(ie="log"),B.default.level(ie)}},{key:"import",value:function(ie){return null==this.imports[ie]&&X.error("Cannot import "+ie+". Are you sure it was registered?"),this.imports[ie]}},{key:"register",value:function(ie,J){var oe=this,Ie=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof ie){var re=ie.attrName||ie.blotName;"string"==typeof re?this.register("formats/"+re,ie,J):Object.keys(ie).forEach(function(ye){oe.register(ye,ie[ye],J)})}else null!=this.imports[ie]&&!Ie&&X.warn("Overwriting "+ie+" with",J),this.imports[ie]=J,(ie.startsWith("blots/")||ie.startsWith("formats/"))&&"abstract"!==J.blotName&&y.default.register(J)}}]),Z(de,[{key:"addContainer",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof ie){var oe=ie;(ie=document.createElement("div")).classList.add(oe)}return this.container.insertBefore(ie,J),ie}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return pe.call(this,function(){return Ie.editor.deleteText(ie,J)},oe=ye[3],ie=ye[0],-1*(J=ye[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ie=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(ie),this.container.classList.toggle("ql-disabled",!ie),ie||this.blur()}},{key:"focus",value:function(){var ie=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ie,this.selection.scrollIntoView()}},{key:"format",value:function(ie,J){var oe=this;return pe.call(this,function(){var re=oe.getSelection(!0),ye=new N.default;if(null==re)return ye;if(y.default.query(ie,y.default.Scope.BLOCK))ye=oe.editor.formatLine(re.index,re.length,R({},ie,J));else{if(0===re.length)return oe.selection.format(ie,J),ye;ye=oe.editor.formatText(re.index,re.length,R({},ie,J))}return oe.setSelection(re,v.default.sources.SILENT),ye},arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API)}},{key:"formatLine",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatLine(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"formatText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatText(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"getBounds",value:function(ie){return"number"==typeof ie?this.selection.getBounds(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(ie.index,ie.length)}},{key:"getContents",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getContents(ie=Ie[0],J=Ie[1])}},{key:"getFormat",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection();return"number"==typeof ie?this.editor.getFormat(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(ie.index,ie.length)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getModule",value:function(ie){return this.theme.modules[ie]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getText(ie=Ie[0],J=Ie[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ie,J,oe){var Ie=this;return pe.call(this,function(){return Ie.editor.insertEmbed(ie,J,oe)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:de.sources.API,ie)}},{key:"insertText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,0,oe,Ie,re),Ue=H(Me,4);return Be=Ue[2],pe.call(this,function(){return ye.editor.insertText(ie,J,Be)},re=Ue[3],ie=Ue[0],J.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(ie,J,oe){this.clipboard.dangerouslyPasteHTML(ie,J,oe)}},{key:"removeFormat",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return J=ye[1],pe.call(this,function(){return Ie.editor.removeFormat(ie,J)},oe=ye[3],ie=ye[0])}},{key:"setContents",value:function(ie){var J=this;return pe.call(this,function(){ie=new N.default(ie);var Ie=J.getLength(),re=J.editor.deleteText(0,Ie),ye=J.editor.applyDelta(ie),Be=ye.ops[ye.ops.length-1];return null!=Be&&"string"==typeof Be.insert&&"\n"===Be.insert[Be.insert.length-1]&&(J.editor.deleteText(J.getLength()-1,1),ye.delete(1)),re.compose(ye)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API)}},{key:"setSelection",value:function(ie,J,oe){if(null==ie)this.selection.setRange(null,J||de.sources.API);else{var Ie=_e(ie,J,oe),re=H(Ie,4);oe=re[3],this.selection.setRange(new D.Range(ie=re[0],J=re[1]),oe)}this.selection.scrollIntoView()}},{key:"setText",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API,oe=(new N.default).insert(ie);return this.setContents(oe,J)}},{key:"update",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,J=this.scroll.update(ie);return this.selection.update(ie),J}},{key:"updateContents",value:function(ie){var J=this,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API;return pe.call(this,function(){return ie=new N.default(ie),J.editor.applyDelta(ie,oe)},oe,!0)}}]),de}();function ue(de,ce){if((ce=(0,$.default)(!0,{container:de,modules:{clipboard:!0,keyboard:!0,history:!0}},ce)).theme&&ce.theme!==U.DEFAULTS.theme){if(ce.theme=U.import("themes/"+ce.theme),null==ce.theme)throw new Error("Invalid theme "+ce.theme+". Did you register it?")}else ce.theme=Y.default;var ie=(0,$.default)(!0,{},ce.theme.DEFAULTS);[ie,ce].forEach(function(Ie){Ie.modules=Ie.modules||{},Object.keys(Ie.modules).forEach(function(re){!0===Ie.modules[re]&&(Ie.modules[re]={})})});var oe=Object.keys(ie.modules).concat(Object.keys(ce.modules)).reduce(function(Ie,re){var ye=U.import("modules/"+re);return null==ye?X.error("Cannot load "+re+" module. Are you sure you registered it?"):Ie[re]=ye.DEFAULTS||{},Ie},{});return null!=ce.modules&&ce.modules.toolbar&&ce.modules.toolbar.constructor!==Object&&(ce.modules.toolbar={container:ce.modules.toolbar}),ce=(0,$.default)(!0,{},U.DEFAULTS,{modules:oe},ie,ce),["bounds","container","scrollingContainer"].forEach(function(Ie){"string"==typeof ce[Ie]&&(ce[Ie]=document.querySelector(ce[Ie]))}),ce.modules=Object.keys(ce.modules).reduce(function(Ie,re){return ce.modules[re]&&(Ie[re]=ce.modules[re]),Ie},{}),ce}function pe(de,ce,ie,J){if(this.options.strict&&!this.isEnabled()&&ce===v.default.sources.USER)return new N.default;var oe=null==ie?null:this.getSelection(),Ie=this.editor.delta,re=de();if(null!=oe&&ce===v.default.sources.USER&&(!0===ie&&(ie=oe.index),null==J?oe=he(oe,re,ce):0!==J&&(oe=he(oe,ie,J,ce)),this.setSelection(oe,v.default.sources.SILENT)),re.length()>0){var ye,Me,Be=[v.default.events.TEXT_CHANGE,re,Ie,ce];(ye=this.emitter).emit.apply(ye,[v.default.events.EDITOR_CHANGE].concat(Be)),ce!==v.default.sources.SILENT&&(Me=this.emitter).emit.apply(Me,Be)}return re}function _e(de,ce,ie,J,oe){var Ie={};return"number"==typeof de.index&&"number"==typeof de.length?"number"!=typeof ce?(oe=J,J=ie,ie=ce,ce=de.length,de=de.index):(ce=de.length,de=de.index):"number"!=typeof ce&&(oe=J,J=ie,ie=ce,ce=0),"object"===(typeof ie>"u"?"undefined":ae(ie))?(Ie=ie,oe=J):"string"==typeof ie&&(null!=J?Ie[ie]=J:oe=ie),[de,ce,Ie,oe=oe||v.default.sources.API]}function he(de,ce,ie,J){if(null==de)return null;var oe=void 0,Ie=void 0;if(ce instanceof N.default){var re=[de.index,de.index+de.length].map(function(Ue){return ce.transformPosition(Ue,J===v.default.sources.USER)}),ye=H(re,2);oe=ye[0],Ie=ye[1]}else{var Be=[de.index,de.index+de.length].map(function(Ue){return Ue=0?Ue+ie:Math.max(ce,Ue+ie)}),Me=H(Be,2);oe=Me[0],Ie=Me[1]}return new D.Range(oe,Ie-oe)}U.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},U.events=v.default.events,U.sources=v.default.sources,U.version="1.1.8",U.imports={delta:N.default,parchment:y.default,"core/module":C.default,"core/theme":Y.default},z.expandConfig=ue,z.overload=_e,z.default=U},function(xe,z){"use strict";var ae,L=document.createElement("div");L.classList.toggle("test-class",!1),L.classList.contains("test-class")&&(ae=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(H,Z){return arguments.length>1&&!this.contains(H)==!Z?Z:ae.call(this,H)}),String.prototype.startsWith||(String.prototype.startsWith=function(ae,H){return this.substr(H=H||0,ae.length)===ae}),String.prototype.endsWith||(String.prototype.endsWith=function(ae,H){var Z=this.toString();("number"!=typeof H||!isFinite(H)||Math.floor(H)!==H||H>Z.length)&&(H=Z.length);var F=Z.indexOf(ae,H-=ae.length);return-1!==F&&F===H}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(H){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof H)throw new TypeError("predicate must be a function");for(var O,Z=Object(this),F=Z.length>>>0,N=arguments[1],S=0;S0&&(v.attributes=I),this.push(v))},O.prototype.delete=function(S){return S<=0?this:this.push({delete:S})},O.prototype.retain=function(S,I){if(S<=0)return this;var v={retain:S};return null!=I&&"object"==typeof I&&Object.keys(I).length>0&&(v.attributes=I),this.push(v)},O.prototype.push=function(S){var I=this.ops.length,v=this.ops[I-1];if(S=Z(!0,{},S),"object"==typeof v){if("number"==typeof S.delete&&"number"==typeof v.delete)return this.ops[I-1]={delete:v.delete+S.delete},this;if("number"==typeof v.delete&&null!=S.insert&&"object"!=typeof(v=this.ops[(I-=1)-1]))return this.ops.unshift(S),this;if(H(S.attributes,v.attributes)){if("string"==typeof S.insert&&"string"==typeof v.insert)return this.ops[I-1]={insert:v.insert+S.insert},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this;if("number"==typeof S.retain&&"number"==typeof v.retain)return this.ops[I-1]={retain:v.retain+S.retain},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this}}return I===this.ops.length?this.ops.push(S):this.ops.splice(I,0,S),this},O.prototype.filter=function(S){return this.ops.filter(S)},O.prototype.forEach=function(S){this.ops.forEach(S)},O.prototype.map=function(S){return this.ops.map(S)},O.prototype.partition=function(S){var I=[],v=[];return this.forEach(function(T){(S(T)?I:v).push(T)}),[I,v]},O.prototype.reduce=function(S,I){return this.ops.reduce(S,I)},O.prototype.chop=function(){var S=this.ops[this.ops.length-1];return S&&S.retain&&!S.attributes&&this.ops.pop(),this},O.prototype.length=function(){return this.reduce(function(S,I){return S+F.length(I)},0)},O.prototype.slice=function(S,I){S=S||0,"number"!=typeof I&&(I=1/0);for(var v=[],T=F.iterator(this.ops),C=0;C0&&(I.push(S.ops[0]),I.ops=I.ops.concat(S.ops.slice(1))),I},O.prototype.diff=function(S,I){if(this.ops===S.ops)return new O;var v=[this,S].map(function(D){return D.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:N;var M=ops===S.ops?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")}),T=new O,C=ae(v[0],v[1],I),k=F.iterator(this.ops),y=F.iterator(S.ops);return C.forEach(function(D){for(var w=D[1].length;w>0;){var M=0;switch(D[0]){case ae.INSERT:M=Math.min(y.peekLength(),w),T.push(y.next(M));break;case ae.DELETE:M=Math.min(w,k.peekLength()),k.next(M),T.delete(M);break;case ae.EQUAL:M=Math.min(k.peekLength(),y.peekLength(),w);var $=k.next(M),ee=y.next(M);H($.insert,ee.insert)?T.retain(M,F.attributes.diff($.attributes,ee.attributes)):T.push(ee).delete(M)}w-=M}}),T.chop()},O.prototype.eachLine=function(S,I){I=I||"\n";for(var v=F.iterator(this.ops),T=new O;v.hasNext();){if("insert"!==v.peekType())return;var C=v.peek(),k=F.length(C)-v.peekLength(),y="string"==typeof C.insert?C.insert.indexOf(I,k)-k:-1;y<0?T.push(v.next()):y>0?T.push(v.next(y)):(S(T,v.next(1).attributes||{}),T=new O)}T.length()>0&&S(T,{})},O.prototype.transform=function(S,I){if(I=!!I,"number"==typeof S)return this.transformPosition(S,I);for(var v=F.iterator(this.ops),T=F.iterator(S.ops),C=new O;v.hasNext()||T.hasNext();)if("insert"!==v.peekType()||!I&&"insert"===T.peekType())if("insert"===T.peekType())C.push(T.next());else{var k=Math.min(v.peekLength(),T.peekLength()),y=v.next(k),D=T.next(k);if(y.delete)continue;D.delete?C.push(D):C.retain(k,F.attributes.transform(y.attributes,D.attributes,I))}else C.retain(F.length(v.next()));return C.chop()},O.prototype.transformPosition=function(S,I){I=!!I;for(var v=F.iterator(this.ops),T=0;v.hasNext()&&T<=S;){var C=v.peekLength(),k=v.peekType();v.next(),"delete"!==k?("insert"===k&&(TM.length?w:M,B=w.length>M.length?M:w,ne=ee.indexOf(B);if(-1!=ne)return $=[[ae,ee.substring(0,ne)],[H,B],[ae,ee.substring(ne+B.length)]],w.length>M.length&&($[0][0]=$[2][0]=L),$;if(1==B.length)return[[L,w],[ae,M]];var Y=function v(w,M){var $=w.length>M.length?w:M,ee=w.length>M.length?M:w;if($.length<4||2*ee.length<$.length)return null;function B(pe,_e,he){for(var J,oe,Ie,re,de=pe.substring(he,he+Math.floor(pe.length/4)),ce=-1,ie="";-1!=(ce=_e.indexOf(de,ce+1));){var ye=S(pe.substring(he),_e.substring(ce)),Be=I(pe.substring(0,he),_e.substring(0,ce));ie.length=pe.length?[J,oe,Ie,re,ie]:null}var Q,R,se,X,U,ne=B($,ee,Math.ceil($.length/4)),Y=B($,ee,Math.ceil($.length/2));return ne||Y?(Q=Y?ne&&ne[4].length>Y[4].length?ne:Y:ne,w.length>M.length?(R=Q[0],se=Q[1],X=Q[2],U=Q[3]):(X=Q[0],U=Q[1],R=Q[2],se=Q[3]),[R,se,X,U,Q[4]]):null}(w,M);if(Y){var R=Y[1],X=Y[3],U=Y[4],ue=Z(Y[0],Y[2]),pe=Z(R,X);return ue.concat([[H,U]],pe)}return function N(w,M){for(var $=w.length,ee=M.length,B=Math.ceil(($+ee)/2),ne=B,Y=2*B,Q=new Array(Y),R=new Array(Y),se=0;se$)pe+=2;else if(oe>ee)ue+=2;else if(U&&(Ie=ne+X-ce)>=0&&Ie=(re=$-R[Ie]))return O(w,M,J,oe)}for(var ye=-de+_e;ye<=de-he;ye+=2){for(var re,Ie=ne+ye,Be=(re=ye==-de||ye!=de&&R[Ie-1]$)he+=2;else if(Be>ee)_e+=2;else if(!U){var J;if((ie=ne+X-ye)>=0&&ie=(re=$-re)))return O(w,M,J,oe)}}}return[[L,w],[ae,M]]}(w,M)}(w=w.substring(0,w.length-ee),M=M.substring(0,M.length-ee));return B&&Y.unshift([H,B]),ne&&Y.push([H,ne]),T(Y),null!=$&&(Y=function y(w,M){var $=function k(w,M){if(0===M)return[H,w];for(var $=0,ee=0;ee0&&ee.splice(B+2,0,[Y[0],Q]),D(ee,B,3)}return w}(Y,$)),Y}function O(w,M,$,ee){var B=w.substring(0,$),ne=M.substring(0,ee),Y=w.substring($),Q=M.substring(ee),R=Z(B,ne),se=Z(Y,Q);return R.concat(se)}function S(w,M){if(!w||!M||w.charAt(0)!=M.charAt(0))return 0;for(var $=0,ee=Math.min(w.length,M.length),B=ee,ne=0;$1?(0!==$&&0!==ee&&(0!==(Y=S(ne,B))&&(M-$-ee>0&&w[M-$-ee-1][0]==H?w[M-$-ee-1][1]+=ne.substring(0,Y):(w.splice(0,0,[H,ne.substring(0,Y)]),M++),ne=ne.substring(Y),B=B.substring(Y)),0!==(Y=I(ne,B))&&(w[M][1]=ne.substring(ne.length-Y)+w[M][1],ne=ne.substring(0,ne.length-Y),B=B.substring(0,B.length-Y))),0===$?w.splice(M-ee,$+ee,[ae,ne]):0===ee?w.splice(M-$,$+ee,[L,B]):w.splice(M-$-ee,$+ee,[L,B],[ae,ne]),M=M-$-ee+($?1:0)+(ee?1:0)+1):0!==M&&w[M-1][0]==H?(w[M-1][1]+=w[M][1],w.splice(M,1)):M++,ee=0,$=0,B="",ne=""}""===w[w.length-1][1]&&w.pop();var Q=!1;for(M=1;M=0&&ee>=M-1;ee--)if(ee+1=0;C--)if(y[C]!=D[C])return!1;for(C=y.length-1;C>=0;C--)if(!F(I[k=y[C]],v[k],T))return!1;return typeof I==typeof v}(I,v,T))};function N(I){return null==I}function O(I){return!(!I||"object"!=typeof I||"number"!=typeof I.length||"function"!=typeof I.copy||"function"!=typeof I.slice||I.length>0&&"number"!=typeof I[0])}},function(xe,z){function L(ae){var H=[];for(var Z in ae)H.push(Z);return H}(xe.exports="function"==typeof Object.keys?Object.keys:L).shim=L},function(xe,z){var L="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function ae(Z){return"[object Arguments]"==Object.prototype.toString.call(Z)}function H(Z){return Z&&"object"==typeof Z&&"number"==typeof Z.length&&Object.prototype.hasOwnProperty.call(Z,"callee")&&!Object.prototype.propertyIsEnumerable.call(Z,"callee")||!1}(z=xe.exports=L?ae:H).supported=ae,z.unsupported=H},function(xe,z){"use strict";var L=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,H=function(N){return"function"==typeof Array.isArray?Array.isArray(N):"[object Array]"===ae.call(N)},Z=function(N){if(!N||"[object Object]"!==ae.call(N))return!1;var I,O=L.call(N,"constructor"),S=N.constructor&&N.constructor.prototype&&L.call(N.constructor.prototype,"isPrototypeOf");if(N.constructor&&!O&&!S)return!1;for(I in N);return typeof I>"u"||L.call(N,I)};xe.exports=function F(){var N,O,S,I,v,T,C=arguments[0],k=1,y=arguments.length,D=!1;for("boolean"==typeof C?(D=C,C=arguments[1]||{},k=2):("object"!=typeof C&&"function"!=typeof C||null==C)&&(C={});k0?I:void 0},diff:function(N,O){"object"!=typeof N&&(N={}),"object"!=typeof O&&(O={});var S=Object.keys(N).concat(Object.keys(O)).reduce(function(I,v){return ae(N[v],O[v])||(I[v]=void 0===O[v]?null:O[v]),I},{});return Object.keys(S).length>0?S:void 0},transform:function(N,O,S){if("object"!=typeof N)return O;if("object"==typeof O){if(!S)return O;var I=Object.keys(O).reduce(function(v,T){return void 0===N[T]&&(v[T]=O[T]),v},{});return Object.keys(I).length>0?I:void 0}}},iterator:function(N){return new F(N)},length:function(N){return"number"==typeof N.delete?N.delete:"number"==typeof N.retain?N.retain:"string"==typeof N.insert?N.insert.length:1}};function F(N){this.ops=N,this.index=0,this.offset=0}F.prototype.hasNext=function(){return this.peekLength()<1/0},F.prototype.next=function(N){N||(N=1/0);var O=this.ops[this.index];if(O){var S=this.offset,I=Z.length(O);if(N>=I-S?(N=I-S,this.index+=1,this.offset=0):this.offset+=N,"number"==typeof O.delete)return{delete:N};var v={};return O.attributes&&(v.attributes=O.attributes),"number"==typeof O.retain?v.retain=N:v.insert="string"==typeof O.insert?O.insert.substr(S,N):O.insert,v}return{retain:1/0}},F.prototype.peek=function(){return this.ops[this.index]},F.prototype.peekLength=function(){return this.ops[this.index]?Z.length(this.ops[this.index])-this.offset:1/0},F.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},xe.exports=Z},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pe){return typeof pe}:function(pe){return pe&&"function"==typeof Symbol&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},H=function(_e,he){if(Array.isArray(_e))return _e;if(Symbol.iterator in Object(_e))return function pe(_e,he){var de=[],ce=!0,ie=!1,J=void 0;try{for(var Ie,oe=_e[Symbol.iterator]();!(ce=(Ie=oe.next()).done)&&(de.push(Ie.value),!he||de.length!==he);ce=!0);}catch(re){ie=!0,J=re}finally{try{!ce&&oe.return&&oe.return()}finally{if(ie)throw J}}return de}(_e,he);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function pe(_e,he){for(var de=0;de=ie&&!ye.endsWith("\n")&&(ce=!0),de.scroll.insertAt(J,ye);var Be=de.scroll.line(J),Me=H(Be,2),Ue=Me[0],Bn=Me[1],at=(0,Y.default)({},(0,D.bubbleFormats)(Ue));if(Ue instanceof w.default){var Fe=Ue.descendant(v.default.Leaf,Bn),Re=H(Fe,1);at=(0,Y.default)(at,(0,D.bubbleFormats)(Re[0]))}re=S.default.attributes.diff(at,re)||{}}else if("object"===ae(oe.insert)){var rt=Object.keys(oe.insert)[0];if(null==rt)return J;de.scroll.insertAt(J,rt,oe.insert[rt])}ie+=Ie}return Object.keys(re).forEach(function(ot){de.scroll.formatAt(J,Ie,ot,re[ot])}),J+Ie},0),he.reduce(function(J,oe){return"number"==typeof oe.delete?(de.scroll.deleteAt(J,oe.delete),J):J+(oe.retain||oe.insert.length||1)},0),this.scroll.batch=!1,this.scroll.optimize(),this.update(he)}},{key:"deleteText",value:function(he,de){return this.scroll.deleteAt(he,de),this.update((new N.default).retain(he).delete(de))}},{key:"formatLine",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(ie).forEach(function(J){var oe=ce.scroll.lines(he,Math.max(de,1)),Ie=de;oe.forEach(function(re){var ye=re.length();if(re instanceof C.default){var Be=he-re.offset(ce.scroll),Me=re.newlineIndex(Be+Ie)-Be+1;re.formatAt(Be,Me,J,ie[J])}else re.format(J,ie[J]);Ie-=ye})}),this.scroll.optimize(),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"formatText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de,J,ie[J])}),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"getContents",value:function(he,de){return this.delta.slice(he,he+de)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(he,de){return he.concat(de.delta())},new N.default)}},{key:"getFormat",value:function(he){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ce=[],ie=[];0===de?this.scroll.path(he).forEach(function(oe){var re=H(oe,1)[0];re instanceof w.default?ce.push(re):re instanceof v.default.Leaf&&ie.push(re)}):(ce=this.scroll.lines(he,de),ie=this.scroll.descendants(v.default.Leaf,he,de));var J=[ce,ie].map(function(oe){if(0===oe.length)return{};for(var Ie=(0,D.bubbleFormats)(oe.shift());Object.keys(Ie).length>0;){var re=oe.shift();if(null==re)return Ie;Ie=U((0,D.bubbleFormats)(re),Ie)}return Ie});return Y.default.apply(Y.default,J)}},{key:"getText",value:function(he,de){return this.getContents(he,de).filter(function(ce){return"string"==typeof ce.insert}).map(function(ce){return ce.insert}).join("")}},{key:"insertEmbed",value:function(he,de,ce){return this.scroll.insertAt(he,de,ce),this.update((new N.default).retain(he).insert(function R(pe,_e,he){return _e in pe?Object.defineProperty(pe,_e,{value:he,enumerable:!0,configurable:!0,writable:!0}):pe[_e]=he,pe}({},de,ce)))}},{key:"insertText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return de=de.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(he,de),Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de.length,J,ie[J])}),this.update((new N.default).retain(he).insert(de,(0,$.default)(ie)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var he=this.scroll.children.head;return he.length()<=1&&0==Object.keys(he.formats()).length}},{key:"removeFormat",value:function(he,de){var ce=this.getText(he,de),ie=this.scroll.line(he+de),J=H(ie,2),oe=J[0],Ie=J[1],re=0,ye=new N.default;null!=oe&&(re=oe instanceof C.default?oe.newlineIndex(Ie)-Ie+1:oe.length()-Ie,ye=oe.delta().slice(Ie,Ie+re-1).insert("\n"));var Me=this.getContents(he,de+re).diff((new N.default).insert(ce).concat(ye)),Ue=(new N.default).retain(he).concat(Me);return this.applyDelta(Ue)}},{key:"update",value:function(he){var oe,Ie,re,ye,Be,Me,ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,J=this.delta;return 1===ce.length&&"characterData"===ce[0].type&&v.default.find(ce[0].target)?(oe=v.default.find(ce[0].target),Ie=(0,D.bubbleFormats)(oe),re=oe.offset(this.scroll),ye=ce[0].oldValue.replace(y.default.CONTENTS,""),Be=(new N.default).insert(ye),Me=(new N.default).insert(oe.value()),he=(new N.default).retain(re).concat(Be.diff(Me,ie)).reduce(function(Bn,at){return at.insert?Bn.insert(at.insert,Ie):Bn.push(at)},new N.default),this.delta=J.compose(he)):(this.delta=this.getDelta(),(!he||!(0,B.default)(J.compose(he),this.delta))&&(he=J.diff(this.delta,ie))),he}}]),pe}();function U(pe,_e){return Object.keys(_e).reduce(function(he,de){return null==pe[de]||(_e[de]===pe[de]?he[de]=_e[de]:Array.isArray(_e[de])?_e[de].indexOf(pe[de])<0&&(he[de]=_e[de].concat([pe[de]])):he[de]=[_e[de],pe[de]]),he},{})}z.default=X},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Code=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R=R+se)){var pe=this.newlineIndex(R,!0)+1,_e=ue-pe+1,he=this.isolate(pe,_e),de=he.next;he.format(X,U),de instanceof Y&&de.formatAt(0,R-pe+se-_e,X,U)}}}},{key:"insertAt",value:function(R,se,X){if(null==X){var U=this.descendant(y.default,R),ue=ae(U,2);ue[0].insertAt(ue[1],se)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?R:R+1}},{key:"newlineIndex",value:function(R){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,R).lastIndexOf("\n");var X=this.domNode.textContent.slice(R).indexOf("\n");return X>-1?R+X:-1}},{key:"optimize",value:function(){this.domNode.textContent.endsWith("\n")||this.appendChild(S.default.create("text","\n")),Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"optimize",this).call(this);var R=this.next;null!=R&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(),R.moveChildren(this),R.remove())}},{key:"replace",value:function(R){Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(se){var X=S.default.find(se);null==X?se.parentNode.removeChild(se):X instanceof S.default.Embed?X.remove():X.unwrap()})}}],[{key:"create",value:function(R){var se=Z(Y.__proto__||Object.getPrototypeOf(Y),"create",this).call(this,R);return se.setAttribute("spellcheck",!1),se}},{key:"formats",value:function(){return!0}}]),Y}(v.default);B.blotName="code-block",B.tagName="PRE",B.TAB=" ",z.Code=ee,z.default=B},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BlockEmbed=z.bubbleFormats=void 0;var ae=function(){function X(U,ue){for(var pe=0;pe0&&(pe1&&void 0!==arguments[1]&&arguments[1];if(_e&&(0===pe||pe>=this.length()-1)){var he=this.clone();return 0===pe?(this.parent.insertBefore(he,this),this):(this.parent.insertBefore(he,this.next),he)}var de=H(U.prototype.__proto__||Object.getPrototypeOf(U.prototype),"split",this).call(this,pe,_e);return this.cache={},de}}]),U}(I.default.Block);function se(X){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==X||("function"==typeof X.formats&&(U=(0,F.default)(U,X.formats())),null==X.parent||"scroll"==X.parent.blotName||X.parent.statics.scope!==X.statics.scope)?U:se(X.parent,U)}R.blotName="block",R.tagName="P",R.defaultChild="break",R.allowedChildren=[D.default,k.default,M.default],z.bubbleFormats=se,z.BlockEmbed=Q,z.default=R},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y0){var $=this.parent.isolate(this.offset(),this.length());this.moveChildren($),$.wrap(this)}}}],[{key:"compare",value:function($,ee){var B=w.order.indexOf($),ne=w.order.indexOf(ee);return B>=0||ne>=0?B-ne:$===ee?0:$1?N-1:0),S=1;S"u"&&(C=!0),typeof k>"u"&&(k=1/0),function ee(B,ne){if(null===B)return null;if(0===ne)return B;var Y,Q;if("object"!=typeof B)return B;if(B instanceof ae)Y=new ae;else if(B instanceof H)Y=new H;else if(B instanceof Z)Y=new Z(function(re,ye){B.then(function(Be){re(ee(Be,ne-1))},function(Be){ye(ee(Be,ne-1))})});else if(F.__isArray(B))Y=[];else if(F.__isRegExp(B))Y=new RegExp(B.source,v(B)),B.lastIndex&&(Y.lastIndex=B.lastIndex);else if(F.__isDate(B))Y=new Date(B.getTime());else{if($&&Buffer.isBuffer(B))return Y=new Buffer(B.length),B.copy(Y),Y;B instanceof Error?Y=Object.create(B):typeof y>"u"?(Q=Object.getPrototypeOf(B),Y=Object.create(Q)):(Y=Object.create(y),Q=y)}if(C){var R=w.indexOf(B);if(-1!=R)return M[R];w.push(B),M.push(Y)}if(B instanceof ae)for(var se=B.keys();!(X=se.next()).done;){var U=ee(X.value,ne-1),ue=ee(B.get(X.value),ne-1);Y.set(U,ue)}if(B instanceof H)for(var pe=B.keys();;){var X;if((X=pe.next()).done)break;var _e=ee(X.value,ne-1);Y.add(_e)}for(var he in B){var de;Q&&(de=Object.getOwnPropertyDescriptor(Q,he)),(!de||null!=de.set)&&(Y[he]=ee(B[he],ne-1))}if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(B);for(he=0;he1&&void 0!==arguments[1]?arguments[1]:{};(function L(H,Z){if(!(H instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,H),this.quill=Z,this.options=F};ae.DEFAULTS={},z.default=ae},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Range=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R1&&void 0!==arguments[1]?arguments[1]:0;w(this,ne),this.index=Y,this.length=Q},ee=function(){function ne(Y,Q){var R=this;w(this,ne),this.emitter=Q,this.scroll=Y,this.composing=!1,this.root=this.scroll.domNode,this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){R.composing=!1}),this.cursor=F.default.create("cursor",this),this.lastRange=this.savedRange=new $(0,0),["keyup","mouseup","mouseleave","touchend","touchleave","focus","blur"].forEach(function(se){R.root.addEventListener(se,function(){setTimeout(R.update.bind(R,T.default.sources.USER),100)})}),this.emitter.on(T.default.events.EDITOR_CHANGE,function(se,X){se===T.default.events.TEXT_CHANGE&&X.length()>0&&R.update(T.default.sources.SILENT)}),this.emitter.on(T.default.events.SCROLL_BEFORE_UPDATE,function(){var se=R.getNativeRange();null!=se&&se.start.node!==R.cursor.textNode&&R.emitter.once(T.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(se.start.node,se.start.offset,se.end.node,se.end.offset)}catch{}})}),this.update(T.default.sources.SILENT)}return H(ne,[{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Q,R){if(null==this.scroll.whitelist||this.scroll.whitelist[Q]){this.scroll.update();var se=this.getNativeRange();if(null!=se&&se.native.collapsed&&!F.default.query(Q,F.default.Scope.BLOCK)){if(se.start.node!==this.cursor.textNode){var X=F.default.find(se.start.node,!1);if(null==X)return;if(X instanceof F.default.Leaf){var U=X.split(se.start.offset);X.parent.insertBefore(this.cursor,U)}else X.insertBefore(this.cursor,se.start.node);this.cursor.attach()}this.cursor.format(Q,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Q){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,se=this.scroll.length();Q=Math.min(Q,se-1),R=Math.min(Q+R,se-1)-Q;var X=void 0,U=void 0,ue=this.scroll.leaf(Q),pe=ae(ue,2),_e=pe[0],he=pe[1];if(null==_e)return null;var de=_e.position(he,!0),ce=ae(de,2);U=ce[0],he=ce[1];var ie=document.createRange();if(R>0){ie.setStart(U,he);var J=this.scroll.leaf(Q+R),oe=ae(J,2);if(null==(_e=oe[0]))return null;var Ie=_e.position(he=oe[1],!0),re=ae(Ie,2);ie.setEnd(U=re[0],he=re[1]),X=ie.getBoundingClientRect()}else{var ye="left",Be=void 0;U instanceof Text?(he0&&(ye="right")),X={height:Be.height,left:Be[ye],width:0,top:Be.top}}var Me=this.root.parentNode.getBoundingClientRect();return{left:X.left-Me.left,right:X.left+X.width-Me.left,top:X.top-Me.top,bottom:X.top+X.height-Me.top,height:X.height,width:X.width}}},{key:"getNativeRange",value:function(){var Q=document.getSelection();if(null==Q||Q.rangeCount<=0)return null;var R=Q.getRangeAt(0);if(null==R||!B(this.root,R.startContainer)||!R.collapsed&&!B(this.root,R.endContainer))return null;var se={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[se.start,se.end].forEach(function(X){for(var U=X.node,ue=X.offset;!(U instanceof Text)&&U.childNodes.length>0;)if(U.childNodes.length>ue)U=U.childNodes[ue],ue=0;else{if(U.childNodes.length!==ue)break;ue=(U=U.lastChild)instanceof Text?U.data.length:U.childNodes.length+1}X.node=U,X.offset=ue}),M.info("getNativeRange",se),se}},{key:"getRange",value:function(){var Q=this,R=this.getNativeRange();if(null==R)return[null,null];var se=[[R.start.node,R.start.offset]];R.native.collapsed||se.push([R.end.node,R.end.offset]);var X=se.map(function(pe){var _e=ae(pe,2),he=_e[0],de=_e[1],ce=F.default.find(he,!0),ie=ce.offset(Q.scroll);return 0===de?ie:ce instanceof F.default.Container?ie+ce.length():ie+ce.index(he,de)}),U=Math.min.apply(Math,D(X)),ue=Math.max.apply(Math,D(X));return ue=Math.min(ue,this.scroll.length()-1),[new $(U,ue-U),R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"scrollIntoView",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastRange;if(null!=Q){var R=this.getBounds(Q.index,Q.length);if(null!=R)if(this.root.offsetHeight2&&void 0!==arguments[2]?arguments[2]:Q,X=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,U=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(M.info("setNativeRange",Q,R,se,X),null==Q||null!=this.root.parentNode&&null!=Q.parentNode&&null!=se.parentNode){var ue=document.getSelection();if(null!=ue)if(null!=Q){this.hasFocus()||this.root.focus();var pe=(this.getNativeRange()||{}).native;if(null==pe||U||Q!==pe.startContainer||R!==pe.startOffset||se!==pe.endContainer||X!==pe.endOffset){var _e=document.createRange();_e.setStart(Q,R),_e.setEnd(se,X),ue.removeAllRanges(),ue.addRange(_e)}}else ue.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Q){var U,ue,pe,R=this,se=arguments.length>1&&void 0!==arguments[1]&&arguments[1],X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.default.sources.API;"string"==typeof se&&(X=se,se=!1),M.info("setRange",Q),null!=Q?(U=Q.collapsed?[Q.index]:[Q.index,Q.index+Q.length],ue=[],pe=R.scroll.length(),U.forEach(function(_e,he){_e=Math.min(pe-1,_e);var ce=R.scroll.leaf(_e),ie=ae(ce,2),oe=ie[1],Ie=ie[0].position(oe,0!==he),re=ae(Ie,2);ue.push(re[0],oe=re[1])}),ue.length<2&&(ue=ue.concat(ue)),R.setNativeRange.apply(R,D(ue).concat([se]))):this.setNativeRange(null),this.update(X)}},{key:"update",value:function(){var R,Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.default.sources.USER,se=this.lastRange,X=this.getRange(),U=ae(X,2);if(this.lastRange=U[0],R=U[1],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,I.default)(se,this.lastRange)){var ue;!this.composing&&null!=R&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var _e,pe=[T.default.events.SELECTION_CHANGE,(0,O.default)(this.lastRange),(0,O.default)(se),Q];(ue=this.emitter).emit.apply(ue,[T.default.events.EDITOR_CHANGE].concat(pe)),Q!==T.default.sources.SILENT&&(_e=this.emitter).emit.apply(_e,pe)}}}]),ne}();function B(ne,Y){return Y instanceof Text&&(Y=Y.parentNode),ne.contains(Y)}z.Range=$,z.default=ee},function(xe,z){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var L=function(){function Z(F,N){for(var O=0;O0)||_e instanceof I.BlockEmbed||ie instanceof I.BlockEmbed||(ie instanceof w.default&&ie.deleteAt(ie.length()-1,1),_e.moveChildren(ie,ie.children.head instanceof C.default?null:ie.children.head),_e.remove()),this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(X,U,ue,pe){null!=this.whitelist&&!this.whitelist[ue]||(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,X,U,ue,pe),this.optimize())}},{key:"insertAt",value:function(X,U,ue){if(null==ue||null==this.whitelist||this.whitelist[U]){if(X>=this.length())if(null==ue||null==N.default.query(U,N.default.Scope.BLOCK)){var pe=N.default.create(this.statics.defaultChild);this.appendChild(pe),null==ue&&U.endsWith("\n")&&(U=U.slice(0,-1)),pe.insertAt(0,U,ue)}else{var _e=N.default.create(U,ue);this.appendChild(_e)}else Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,X,U,ue);this.optimize()}}},{key:"insertBefore",value:function(X,U){if(X.statics.scope===N.default.Scope.INLINE_BLOT){var ue=N.default.create(this.statics.defaultChild);ue.appendChild(X),X=ue}Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,X,U)}},{key:"leaf",value:function(X){return this.path(X).pop()||[null,-1]}},{key:"line",value:function(X){return X===this.length()?this.line(X-1):this.descendant(ne,X)}},{key:"lines",value:function(){return function pe(_e,he,de){var ce=[],ie=de;return _e.children.forEachAt(he,de,function(J,oe,Ie){ne(J)?ce.push(J):J instanceof N.default.Container&&(ce=ce.concat(pe(J,oe,ie))),ie-=Ie}),ce}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!0!==this.batch&&(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,X),X.length>0&&this.emitter.emit(S.default.events.SCROLL_OPTIMIZE,X))}},{key:"path",value:function(X){return Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,X).slice(1)}},{key:"update",value:function(X){if(!0!==this.batch){var U=S.default.sources.USER;"string"==typeof X&&(U=X),Array.isArray(X)||(X=this.observer.takeRecords()),X.length>0&&this.emitter.emit(S.default.events.SCROLL_BEFORE_UPDATE,U,X),Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,X.concat([])),X.length>0&&this.emitter.emit(S.default.events.SCROLL_UPDATE,U,X)}}}]),R}(N.default.Scroll);Y.blotName="scroll",Y.className="ql-editor",Y.tagName="DIV",Y.defaultChild="block",Y.allowedChildren=[v.default,I.BlockEmbed,y.default],z.default=Y},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.matchText=z.matchSpacing=z.matchNewline=z.matchBlot=z.matchAttributor=z.default=void 0;var ae=function(Re,Je){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return function Fe(Re,Je){var rt=[],ot=!0,Dt=!1,Xt=void 0;try{for(var ni,rn=Re[Symbol.iterator]();!(ot=(ni=rn.next()).done)&&(rt.push(ni.value),!Je||rt.length!==Je);ot=!0);}catch(Jo){Dt=!0,Xt=Jo}finally{try{!ot&&rn.return&&rn.return()}finally{if(Dt)throw Xt}}return rt}(Re,Je);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function Fe(Re,Je){for(var rt=0;rt0&&(Re=Re.compose((new F.default).retain(Re.length(),Je))),parseFloat(rt.textIndent||0)>0&&(Re=(new F.default).insert("\t").concat(Re)),Re}],["b",oe.bind(oe,"bold")],["i",oe.bind(oe,"italic")],["style",function Be(){return new F.default}]],pe=[y.AlignAttribute,M.DirectionAttribute].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),_e=[y.AlignStyle,D.BackgroundStyle,w.ColorStyle,M.DirectionStyle,$.FontStyle,ee.SizeStyle].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),he=function(Fe){function Re(Je,rt){!function Q(Fe,Re){if(!(Fe instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Re);var ot=function R(Fe,Re){if(!Fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Re||"object"!=typeof Re&&"function"!=typeof Re?Fe:Re}(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Je,rt));return ot.quill.root.addEventListener("paste",ot.onPaste.bind(ot)),ot.container=ot.quill.addContainer("ql-clipboard"),ot.container.setAttribute("contenteditable",!0),ot.container.setAttribute("tabindex",-1),ot.matchers=[],ue.concat(ot.options.matchers).forEach(function(Dt){ot.addMatcher.apply(ot,function Y(Fe){if(Array.isArray(Fe)){for(var Re=0,Je=Array(Fe.length);Re2&&void 0!==arguments[2]?arguments[2]:I.default.sources.API;if("string"==typeof rt)return this.quill.setContents(this.convert(rt),ot);var Xt=this.convert(ot);return this.quill.updateContents((new F.default).retain(rt).concat(Xt),Dt)}},{key:"onPaste",value:function(rt){var ot=this;if(!rt.defaultPrevented&&this.quill.isEnabled()){var Dt=this.quill.getSelection(),Xt=(new F.default).retain(Dt.index),rn=this.quill.scrollingContainer.scrollTop;this.container.focus(),setTimeout(function(){ot.quill.selection.update(I.default.sources.SILENT),Xt=Xt.concat(ot.convert()).delete(Dt.length),ot.quill.updateContents(Xt,I.default.sources.USER),ot.quill.setSelection(Xt.length()-Dt.length,I.default.sources.SILENT),ot.quill.scrollingContainer.scrollTop=rn,ot.quill.selection.scrollIntoView()},1)}}},{key:"prepareMatching",value:function(){var rt=this,ot=[],Dt=[];return this.matchers.forEach(function(Xt){var rn=ae(Xt,2),ni=rn[0],Jo=rn[1];switch(ni){case Node.TEXT_NODE:Dt.push(Jo);break;case Node.ELEMENT_NODE:ot.push(Jo);break;default:[].forEach.call(rt.container.querySelectorAll(ni),function(an){an[U]=an[U]||[],an[U].push(Jo)})}}),[ot,Dt]}}]),Re}(k.default);function de(Fe){if(Fe.nodeType!==Node.ELEMENT_NODE)return{};var Re="__ql-computed-style";return Fe[Re]||(Fe[Re]=window.getComputedStyle(Fe))}function ce(Fe,Re){for(var Je="",rt=Fe.ops.length-1;rt>=0&&Je.length-1}function J(Fe,Re,Je){return Fe.nodeType===Fe.TEXT_NODE?Je.reduce(function(rt,ot){return ot(Fe,rt)},new F.default):Fe.nodeType===Fe.ELEMENT_NODE?[].reduce.call(Fe.childNodes||[],function(rt,ot){var Dt=J(ot,Re,Je);return ot.nodeType===Fe.ELEMENT_NODE&&(Dt=Re.reduce(function(Xt,rn){return rn(ot,Xt)},Dt),Dt=(ot[U]||[]).reduce(function(Xt,rn){return rn(ot,Xt)},Dt)),rt.concat(Dt)},new F.default):new F.default}function oe(Fe,Re,Je){return Je.compose((new F.default).retain(Je.length(),ne({},Fe,!0)))}function Ie(Fe,Re){var Je=O.default.Attributor.Attribute.keys(Fe),rt=O.default.Attributor.Class.keys(Fe),ot=O.default.Attributor.Style.keys(Fe),Dt={};return Je.concat(rt).concat(ot).forEach(function(Xt){var rn=O.default.query(Xt,O.default.Scope.ATTRIBUTE);null!=rn&&(Dt[rn.attrName]=rn.value(Fe),Dt[rn.attrName])||(null!=pe[Xt]&&(Dt[(rn=pe[Xt]).attrName]=rn.value(Fe)),null!=_e[Xt]&&(Dt[(rn=_e[Xt]).attrName]=rn.value(Fe)))}),Object.keys(Dt).length>0&&(Re=Re.compose((new F.default).retain(Re.length(),Dt))),Re}function re(Fe,Re){var Je=O.default.query(Fe);if(null==Je)return Re;if(Je.prototype instanceof O.default.Embed){var rt={},ot=Je.value(Fe);null!=ot&&(rt[Je.blotName]=ot,Re=(new F.default).insert(rt,Je.formats(Fe)))}else if("function"==typeof Je.formats){var Dt=ne({},Je.blotName,Je.formats(Fe));Re=Re.compose((new F.default).retain(Re.length(),Dt))}return Re}function Me(Fe,Re){return ie(Fe)&&!ce(Re,"\n")&&Re.insert("\n"),Re}function Ue(Fe,Re){if(ie(Fe)&&null!=Fe.nextElementSibling&&!ce(Re,"\n\n")){var Je=Fe.offsetHeight+parseFloat(de(Fe).marginTop)+parseFloat(de(Fe).marginBottom);Fe.nextElementSibling.offsetTop>Fe.offsetTop+1.5*Je&&Re.insert("\n")}return Re}function at(Fe,Re){var Je=Fe.data;if("O:P"===Fe.parentNode.tagName)return Re.insert(Je.trim());if(!de(Fe.parentNode).whiteSpace.startsWith("pre")){var rt=function(Dt,Xt){return(Xt=Xt.replace(/[^\u00a0]/g,"")).length<1&&Dt?" ":Xt};Je=(Je=Je.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,rt.bind(rt,!0)),(null==Fe.previousSibling&&ie(Fe.parentNode)||null!=Fe.previousSibling&&ie(Fe.previousSibling))&&(Je=Je.replace(/^\s+/,rt.bind(rt,!1))),(null==Fe.nextSibling&&ie(Fe.parentNode)||null!=Fe.nextSibling&&ie(Fe.nextSibling))&&(Je=Je.replace(/\s+$/,rt.bind(rt,!1)))}return Re.insert(Je)}he.DEFAULTS={matchers:[]},z.default=he,z.matchAttributor=Ie,z.matchBlot=re,z.matchNewline=Me,z.matchSpacing=Ue,z.matchText=at},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.AlignStyle=z.AlignClass=z.AlignAttribute=void 0;var H=function Z(I){return I&&I.__esModule?I:{default:I}}(L(2));var F={scope:H.default.Scope.BLOCK,whitelist:["right","center","justify"]},N=new H.default.Attributor.Attribute("align","align",F),O=new H.default.Attributor.Class("align","ql-align",F),S=new H.default.Attributor.Style("align","text-align",F);z.AlignAttribute=N,z.AlignClass=O,z.AlignStyle=S},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.BackgroundStyle=z.BackgroundClass=void 0;var H=function F(S){return S&&S.__esModule?S:{default:S}}(L(2)),Z=L(47);var N=new H.default.Attributor.Class("background","ql-bg",{scope:H.default.Scope.INLINE}),O=new Z.ColorAttributor("background","background-color",{scope:H.default.Scope.INLINE});z.BackgroundClass=N,z.BackgroundStyle=O},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.ColorStyle=z.ColorClass=z.ColorAttributor=void 0;var ae=function(){function k(y,D){for(var w=0;wY&&this.stack.undo.length>0){var Q=this.stack.undo.pop();ne=ne.compose(Q.undo),ee=Q.redo.compose(ee)}else this.lastRecorded=Y;this.stack.undo.push({redo:ee,undo:ne}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ee){this.stack.undo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)}),this.stack.redo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),M}(I(L(39)).default);function D(w){var M=w.reduce(function(ee,B){return ee+(B.delete||0)},0),$=w.length()-M;return function y(w){var M=w.ops[w.ops.length-1];return null!=M&&(null!=M.insert?"string"==typeof M.insert&&M.insert.endsWith("\n"):null!=M.attributes&&Object.keys(M.attributes).some(function($){return null!=Z.default.query($,Z.default.Scope.BLOCK)}))}(w)&&($-=1),$}k.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},z.default=k,z.getLastChangeIndex=D},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},H=function(oe,Ie){if(Array.isArray(oe))return oe;if(Symbol.iterator in Object(oe))return function J(oe,Ie){var re=[],ye=!0,Be=!1,Me=void 0;try{for(var Bn,Ue=oe[Symbol.iterator]();!(ye=(Bn=Ue.next()).done)&&(re.push(Bn.value),!Ie||re.length!==Ie);ye=!0);}catch(at){Be=!0,Me=at}finally{try{!ye&&Ue.return&&Ue.return()}finally{if(Be)throw Me}}return re}(oe,Ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function J(oe,Ie){for(var re=0;re1&&void 0!==arguments[1]?arguments[1]:{},Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Me=ie(re);if(null==Me||null==Me.key)return se.warn("Attempted to add invalid keyboard binding",Me);"function"==typeof ye&&(ye={handler:ye}),"function"==typeof Be&&(Be={handler:Be}),Me=(0,v.default)(Me,ye,Be),this.bindings[Me.key]=this.bindings[Me.key]||[],this.bindings[Me.key].push(Me)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(ye){if(!ye.defaultPrevented){var Me=(re.bindings[ye.which||ye.keyCode]||[]).filter(function(jn){return oe.match(ye,jn)});if(0!==Me.length){var Ue=re.quill.getSelection();if(null!=Ue&&re.quill.hasFocus()){var Bn=re.quill.scroll.line(Ue.index),at=H(Bn,2),Fe=at[0],Re=at[1],Je=re.quill.scroll.leaf(Ue.index),rt=H(Je,2),ot=rt[0],Dt=rt[1],Xt=0===Ue.length?[ot,Dt]:re.quill.scroll.leaf(Ue.index+Ue.length),rn=H(Xt,2),ni=rn[0],Jo=rn[1],an=ot instanceof y.default.Text?ot.value().slice(0,Dt):"",As=ni instanceof y.default.Text?ni.value().slice(Jo):"",bo={collapsed:0===Ue.length,empty:0===Ue.length&&Fe.length()<=1,format:re.quill.getFormat(Ue),offset:Re,prefix:an,suffix:As};Me.some(function(jn){if(null!=jn.collapsed&&jn.collapsed!==bo.collapsed||null!=jn.empty&&jn.empty!==bo.empty||null!=jn.offset&&jn.offset!==bo.offset)return!1;if(Array.isArray(jn.format)){if(jn.format.every(function(yo){return null==bo.format[yo]}))return!1}else if("object"===ae(jn.format)&&!Object.keys(jn.format).every(function(yo){return!0===jn.format[yo]?null!=bo.format[yo]:!1===jn.format[yo]?null==bo.format[yo]:(0,S.default)(jn.format[yo],bo.format[yo])}))return!1;return!(null!=jn.prefix&&!jn.prefix.test(bo.prefix)||null!=jn.suffix&&!jn.suffix.test(bo.suffix))&&!0!==jn.handler.call(re,Ue,bo)})&&ye.preventDefault()}}}})}}]),oe}(B.default);function ue(J,oe){if(0!==J.index){var Ie=this.quill.scroll.line(J.index),re=H(Ie,1),Be={};if(0===oe.offset){var Me=re[0].formats(),Ue=this.quill.getFormat(J.index-1,1);Be=C.default.attributes.diff(Me,Ue)||{}}this.quill.deleteText(J.index-1,1,w.default.sources.USER),Object.keys(Be).length>0&&this.quill.formatLine(J.index-1,1,Be,w.default.sources.USER),this.quill.selection.scrollIntoView()}}function pe(J){J.index>=this.quill.getLength()-1||this.quill.deleteText(J.index,1,w.default.sources.USER)}function _e(J){this.quill.deleteText(J,w.default.sources.USER),this.quill.setSelection(J.index,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}function he(J,oe){var Ie=this;J.length>0&&this.quill.scroll.deleteAt(J.index,J.length);var re=Object.keys(oe.format).reduce(function(ye,Be){return y.default.query(Be,y.default.Scope.BLOCK)&&!Array.isArray(oe.format[Be])&&(ye[Be]=oe.format[Be]),ye},{});this.quill.insertText(J.index,"\n",re,w.default.sources.USER),this.quill.selection.scrollIntoView(),Object.keys(oe.format).forEach(function(ye){null==re[ye]&&(Array.isArray(oe.format[ye])||"link"!==ye&&Ie.quill.format(ye,oe.format[ye],w.default.sources.USER))})}function de(J){return{key:U.keys.TAB,shiftKey:!J,format:{"code-block":!0},handler:function(Ie){var re=y.default.query("code-block"),ye=Ie.index,Be=Ie.length,Me=this.quill.scroll.descendant(re,ye),Ue=H(Me,2),Bn=Ue[0],at=Ue[1];if(null!=Bn){var Fe=this.quill.scroll.offset(Bn),Re=Bn.newlineIndex(at,!0)+1,Je=Bn.newlineIndex(Fe+at+Be),rt=Bn.domNode.textContent.slice(Re,Je).split("\n");at=0,rt.forEach(function(ot,Dt){J?(Bn.insertAt(Re+at,re.TAB),at+=re.TAB.length,0===Dt?ye+=re.TAB.length:Be+=re.TAB.length):ot.startsWith(re.TAB)&&(Bn.deleteAt(Re+at,re.TAB.length),at-=re.TAB.length,0===Dt?ye-=re.TAB.length:Be-=re.TAB.length),at+=ot.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(ye,Be,w.default.sources.SILENT)}}}}function ce(J){return{key:J[0].toUpperCase(),shortKey:!0,handler:function(Ie,re){this.quill.format(J,!re.format[J],w.default.sources.USER)}}}function ie(J){if("string"==typeof J||"number"==typeof J)return ie({key:J});if("object"===(typeof J>"u"?"undefined":ae(J))&&(J=(0,N.default)(J,!1)),"string"==typeof J.key)if(null!=U.keys[J.key.toUpperCase()])J.key=U.keys[J.key.toUpperCase()];else{if(1!==J.key.length)return null;J.key=J.key.toUpperCase().charCodeAt(0)}return J}U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:ce("bold"),italic:ce("italic"),underline:ce("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,format:["blockquote","indent","list"],offset:0,handler:function(oe,Ie){null!=Ie.format.indent?this.quill.format("indent","-1",w.default.sources.USER):null!=Ie.format.blockquote?this.quill.format("blockquote",!1,w.default.sources.USER):null!=Ie.format.list&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(oe){this.quill.deleteText(oe.index-1,1,w.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(oe,Ie){Ie.collapsed||this.quill.scroll.deleteAt(oe.index,oe.length),this.quill.insertText(oe.index,"\t",w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(oe,Ie){this.quill.format("list",!1,w.default.sources.USER),Ie.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n");var Ie=this.quill.scroll.line(oe.index+1);H(Ie,1)[0].format("list","unchecked"),this.quill.update(w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n"),this.quill.formatText(oe.index+1,1,"header",!1,w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^(1\.|-)$/,handler:function(oe,Ie){var re=Ie.prefix.length;this.quill.scroll.deleteAt(oe.index-re,re),this.quill.formatLine(oe.index-re,1,"list",1===re?"bullet":"ordered",w.default.sources.USER),this.quill.setSelection(oe.index-re,w.default.sources.SILENT)}}}},z.default=U},function(xe,z,L){"use strict";var H=an(L(1)),Z=L(45),F=L(48),N=L(54),S=an(L(55)),v=an(L(56)),T=L(57),C=an(T),k=L(46),y=L(47),D=L(49),w=L(50),$=an(L(58)),B=an(L(59)),Y=an(L(60)),R=an(L(61)),X=an(L(62)),ue=an(L(63)),_e=an(L(64)),de=an(L(65)),ce=L(28),ie=an(ce),oe=an(L(66)),re=an(L(67)),Be=an(L(68)),Ue=an(L(69)),at=an(L(102)),Re=an(L(104)),rt=an(L(105)),Dt=an(L(106)),rn=an(L(107)),Jo=an(L(109));function an(As){return As&&As.__esModule?As:{default:As}}H.default.register({"attributors/attribute/direction":F.DirectionAttribute,"attributors/class/align":Z.AlignClass,"attributors/class/background":k.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":F.DirectionClass,"attributors/class/font":D.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":Z.AlignStyle,"attributors/style/background":k.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":F.DirectionStyle,"attributors/style/font":D.FontStyle,"attributors/style/size":w.SizeStyle},!0),H.default.register({"formats/align":Z.AlignClass,"formats/direction":F.DirectionClass,"formats/indent":N.IndentClass,"formats/background":k.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":D.FontClass,"formats/size":w.SizeClass,"formats/blockquote":S.default,"formats/code-block":ie.default,"formats/header":v.default,"formats/list":C.default,"formats/bold":$.default,"formats/code":ce.Code,"formats/italic":B.default,"formats/link":Y.default,"formats/script":R.default,"formats/strike":X.default,"formats/underline":ue.default,"formats/image":_e.default,"formats/video":de.default,"formats/list/item":T.ListItem,"modules/formula":oe.default,"modules/syntax":re.default,"modules/toolbar":Be.default,"themes/bubble":rn.default,"themes/snow":Jo.default,"ui/icons":Ue.default,"ui/picker":at.default,"ui/icon-picker":rt.default,"ui/color-picker":Re.default,"ui/tooltip":Dt.default},!0),xe.exports=H.default},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.IndentClass=void 0;var ae=function(){function C(k,y){for(var D=0;D0&&this.children.tail.format(B,ne)}},{key:"formats",value:function(){return function T(M,$,ee){return $ in M?Object.defineProperty(M,$,{value:ee,enumerable:!0,configurable:!0,writable:!0}):M[$]=ee,M}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(B,ne){if(B instanceof D)H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"insertBefore",this).call(this,B,ne);else{var Y=null==ne?this.length():ne.offset(this),Q=this.split(Y);Q.parent.insertBefore(B,Q)}}},{key:"optimize",value:function(){H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this);var B=this.next;null!=B&&B.prev===this&&B.statics.blotName===this.statics.blotName&&B.domNode.tagName===this.domNode.tagName&&B.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(B.moveChildren(this),B.remove())}},{key:"replace",value:function(B){if(B.statics.blotName!==this.statics.blotName){var ne=F.default.create(this.statics.defaultChild);B.moveChildren(ne),this.appendChild(ne)}H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"replace",this).call(this,B)}}],[{key:"create",value:function(B){var ne="ordered"===B?"OL":"UL",Y=H($.__proto__||Object.getPrototypeOf($),"create",this).call(this,ne);return("checked"===B||"unchecked"===B)&&Y.setAttribute("data-checked","checked"===B),Y}},{key:"formats",value:function(B){return"OL"===B.tagName?"ordered":"UL"===B.tagName?B.hasAttribute("data-checked")?"true"===B.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),$}(I.default);w.blotName="list",w.scope=F.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[D],z.ListItem=D,z.default=w},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1}v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",z.default=v,z.sanitize=T},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return"string"==typeof w&&M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,N.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(F.default);C.blotName="image",C.tagName="IMG",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function k(y,D){for(var w=0;w-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return M.setAttribute("frameborder","0"),M.setAttribute("allowfullscreen",!0),M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"sanitize",value:function(w){return N.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(Z.BlockEmbed);C.blotName="video",C.className="ql-video",C.tagName="IFRAME",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.FormulaBlot=void 0;var ae=function(){function y(D,w){for(var M=0;M0||null==this.cachedHTML)&&(this.domNode.innerHTML=Y(Q),this.attach()),this.cachedHTML=this.domNode.innerHTML}}}]),B}(C(L(28)).default);w.className="ql-syntax";var M=new F.default.Attributor.Class("token","hljs",{scope:F.default.Scope.INLINE}),$=function(ee){function B(ne,Y){k(this,B);var Q=y(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,ne,Y));if("function"!=typeof Q.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");O.default.register(M,!0),O.default.register(w,!0);var R=null;return Q.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){null==R&&(R=setTimeout(function(){Q.highlight(),R=null},100))}),Q.highlight(),Q}return D(B,ee),ae(B,[{key:"highlight",value:function(){var Y=this;if(!this.quill.selection.composing){var Q=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(R){R.highlight(Y.options.highlight)}),this.quill.update(O.default.sources.SILENT),null!=Q&&this.quill.setSelection(Q,O.default.sources.SILENT)}}}]),B}(I.default);$.DEFAULTS={highlight:null==window.hljs?null:function(ee){return window.hljs.highlightAuto(ee).value}},z.CodeBlock=w,z.CodeToken=M,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.addControls=z.default=void 0;var ae=function(se,X){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return function R(se,X){var U=[],ue=!0,pe=!1,_e=void 0;try{for(var de,he=se[Symbol.iterator]();!(ue=(de=he.next()).done)&&(U.push(de.value),!X||U.length!==X);ue=!0);}catch(ce){pe=!0,_e=ce}finally{try{!ue&&he.return&&he.return()}finally{if(pe)throw _e}}return U}(se,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function R(se,X){for(var U=0;U '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},H=function(){function I(v,T){for(var C=0;C1&&void 0!==arguments[1]&&arguments[1],k=this.container.querySelector(".ql-selected");if(T!==k&&(k?.classList.remove("ql-selected"),null!=T&&(T.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(T.parentNode.children,T),T.hasAttribute("data-value")?this.label.setAttribute("data-value",T.getAttribute("data-value")):this.label.removeAttribute("data-value"),T.hasAttribute("data-label")?this.label.setAttribute("data-label",T.getAttribute("data-label")):this.label.removeAttribute("data-label"),C))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":ae(Event))){var y=document.createEvent("Event");y.initEvent("change",!0,!0),this.select.dispatchEvent(y)}this.close()}}},{key:"update",value:function(){var T=void 0;if(this.select.selectedIndex>-1){var C=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];T=this.select.options[this.select.selectedIndex],this.selectItem(C)}else this.selectItem(null);var k=null!=T&&T!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),I}();z.default=S},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y=this.quill.root.offsetHeight)}},{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(N){var O=N.left+N.width/2-this.root.offsetWidth/2,S=N.bottom+this.quill.root.scrollTop;this.root.style.left=O+"px",this.root.style.top=S+"px";var I=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),T=0;return v.right>I.right&&(this.root.style.left=O+(T=I.right-v.right)+"px"),v.left0){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var U=R.quill.scroll.lines(X.index,X.length);if(1===U.length)R.position(R.quill.getBounds(X));else{var ue=U[U.length-1],pe=ue.offset(R.quill.scroll),_e=Math.min(ue.length()-1,X.index+X.length-pe),he=R.quill.getBounds(new v.Range(pe,_e));R.position(he)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return w(ne,B),H(ne,[{key:"listen",value:function(){var Q=this;ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Q.root.classList.remove("ql-editing")}),this.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Q.root.classList.contains("ql-hidden")){var R=Q.quill.getSelection();null!=R&&Q.position(Q.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Q){var R=ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"position",this).call(this,Q),se=this.root.querySelector(".ql-tooltip-arrow");if(se.style.marginLeft="",0===R)return R;se.style.marginLeft=-1*R-se.offsetWidth/2+"px"}}]),ne}(S.BaseTooltip);ee.TEMPLATE=['','
','','',"
"].join(""),z.BubbleTooltip=ee,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BaseTooltip=void 0;var ae=function(){function ie(J,oe){for(var Ie=0;Ie0&&void 0!==arguments[0]?arguments[0]:"link",re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=re?this.textbox.value=re:Ie!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Ie)||""),this.root.setAttribute("data-mode",Ie)}},{key:"restoreFocus",value:function(){var Ie=this.quill.root.scrollTop;this.quill.focus(),this.quill.root.scrollTop=Ie}},{key:"save",value:function(){var Ie=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var re=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ie,I.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ie,I.default.sources.USER)),this.quill.root.scrollTop=re;break;case"video":var ye=Ie.match(/^(https?):\/\/(www\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ie.match(/^(https?):\/\/(www\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);ye?Ie=ye[1]+"://www.youtube.com/embed/"+ye[3]+"?showinfo=0":(ye=Ie.match(/^(https?):\/\/(www\.)?vimeo\.com\/(\d+)/))&&(Ie=ye[1]+"://player.vimeo.com/video/"+ye[3]+"/");case"formula":var Be=this.quill.getSelection(!0),Me=Be.index+Be.length;null!=Be&&(this.quill.insertEmbed(Me,this.root.getAttribute("data-mode"),Ie,I.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Me+1," ",I.default.sources.USER),this.quill.setSelection(Me+2,I.default.sources.USER))}this.textbox.value="",this.hide()}}]),J}(ne.default);function ce(ie,J){var oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];J.forEach(function(Ie){var re=document.createElement("option");Ie===oe?re.setAttribute("selected","selected"):re.setAttribute("value",Ie),ie.appendChild(re)})}z.BaseTooltip=de,z.default=he},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(R,se){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function Q(R,se){var X=[],U=!0,ue=!1,pe=void 0;try{for(var he,_e=R[Symbol.iterator]();!(U=(he=_e.next()).done)&&(X.push(he.value),!se||X.length!==se);U=!0);}catch(de){ue=!0,pe=de}finally{try{!U&&_e.return&&_e.return()}finally{if(ue)throw pe}}return X}(R,se);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function Q(R,se,X){null===R&&(R=Function.prototype);var U=Object.getOwnPropertyDescriptor(R,se);if(void 0===U){var ue=Object.getPrototypeOf(R);return null===ue?void 0:Q(ue,se,X)}if("value"in U)return U.value;var pe=U.get;return void 0===pe?void 0:pe.call(X)},Z=function(){function Q(R,se){for(var X=0;X','','',''].join(""),z.default=ne}])}},tc=>{tc(tc.s=5544)}]); \ No newline at end of file diff --git a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.9fb32635369394e3.js b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.9fb32635369394e3.js new file mode 100644 index 0000000000..a66fc07095 --- /dev/null +++ b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.9fb32635369394e3.js @@ -0,0 +1 @@ +(self.webpackChunkGinger_HtmlReport_Web_App=self.webpackChunkGinger_HtmlReport_Web_App||[]).push([[179],{5544:(tc,xe,z)=>{"use strict";function L(t){return"function"==typeof t}function ae(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const H=ae(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Z(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class F{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(L(n))try{n()}catch(s){i=s instanceof H?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{S(s)}catch(r){i=i??[],r instanceof H?i=[...i,...r.errors]:i.push(r)}}if(i)throw new H(i)}}add(i){var e;if(i&&i!==this)if(this.closed)S(i);else{if(i instanceof F){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Z(e,i)}remove(i){const{_finalizers:e}=this;e&&Z(e,i),i instanceof F&&i._removeParent(this)}}F.EMPTY=(()=>{const t=new F;return t.closed=!0,t})();const N=F.EMPTY;function O(t){return t instanceof F||t&&"closed"in t&&L(t.remove)&&L(t.add)&&L(t.unsubscribe)}function S(t){L(t)?t():t.unsubscribe()}const I={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},v={setTimeout(t,i,...e){const{delegate:n}=v;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=v;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function T(t){v.setTimeout(()=>{const{onUnhandledError:i}=I;if(!i)throw t;i(t)})}function C(){}const k=w("C",void 0,void 0);function w(t,i,e){return{kind:t,value:i,error:e}}let M=null;function $(t){if(I.useDeprecatedSynchronousErrorHandling){const i=!M;if(i&&(M={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=M;if(M=null,e)throw n}}else t()}class B extends F{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,O(i)&&i.add(this)):this.destination=ue}static create(i,e,n){return new R(i,e,n)}next(i){this.isStopped?U(function D(t){return w("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?U(function y(t){return w("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?U(k,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function Y(t,i){return ne.call(t,i)}class Q{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){se(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){se(n)}else se(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){se(e)}}}class R extends B{constructor(i,e,n){let o;if(super(),L(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let s;this&&I.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&Y(i.next,s),error:i.error&&Y(i.error,s),complete:i.complete&&Y(i.complete,s)}):o=i}this.destination=new Q(o)}}function se(t){I.useDeprecatedSynchronousErrorHandling?function ee(t){I.useDeprecatedSynchronousErrorHandling&&M&&(M.errorThrown=!0,M.error=t)}(t):T(t)}function U(t,i){const{onStoppedNotification:e}=I;e&&v.setTimeout(()=>e(t,i))}const ue={closed:!0,next:C,error:function X(t){throw t},complete:C},pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function _e(t){return t}function de(t){return 0===t.length?_e:1===t.length?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}let ce=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){const s=function oe(t){return t&&t instanceof B||function J(t){return t&&L(t.next)&&L(t.error)&&L(t.complete)}(t)&&O(t)}(e)?e:new R(e,n,o);return $(()=>{const{operator:r,source:a}=this;s.add(r?r.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=ie(n))((o,s)=>{const r=new R({next:a=>{try{e(a)}catch(l){s(l),r.unsubscribe()}},error:s,complete:o});this.subscribe(r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[pe](){return this}pipe(...e){return de(e)(this)}toPromise(e){return new(e=ie(e))((n,o)=>{let s;this.subscribe(r=>s=r,r=>o(r),()=>n(s))})}}return t.create=i=>new t(i),t})();function ie(t){var i;return null!==(i=t??I.Promise)&&void 0!==i?i:Promise}const Ie=ae(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class t extends ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new ye(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ie}next(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:o,observers:s}=this;return n||o?N:(this.currentObservers=null,s.push(e),new F(()=>{this.currentObservers=null,Z(s,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:o,isStopped:s}=this;n?e.error(o):s&&e.complete()}asObservable(){const e=new ce;return e.source=this,e}}return t.create=(i,e)=>new ye(i,e),t})();class ye extends re{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:N}}function Be(t){return L(t?.lift)}function Me(t){return i=>{if(Be(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,i,e,n,o){return new Bn(t,i,e,n,o)}class Bn extends B{constructor(i,e,n,o,s,r){super(i),this.onFinalize=s,this.shouldUnsubscribe=r,this._next=e?function(a){try{e(a)}catch(l){i.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function at(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>{n.next(t.call(i,s,o++))}))})}function or(t){return this instanceof or?(this.v=t,this):new or(t)}function Hv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function yo(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=t[s]&&function(r){return new Promise(function(a,l){!function o(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}(a,l,(r=t[s](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const dg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function zv(t){return L(t?.then)}function jv(t){return L(t[pe])}function Uv(t){return Symbol.asyncIterator&&L(t?.[Symbol.asyncIterator])}function $v(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Kv=function d4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Gv(t){return L(t?.[Kv])}function qv(t){return function Bv(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=e.apply(t,i||[]),s=[];return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;function r(m){n[m]&&(o[m]=function(_){return new Promise(function(b,E){s.push([m,_,b,E])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof or?Promise.resolve(m.value.v).then(c,u):p(s[0][2],m)}(n[m](_))}catch(b){p(s[0][3],b)}}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,_){m(_),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:o}=yield or(e.read());if(o)return yield or(void 0);yield yield or(n)}}finally{e.releaseLock()}})}function Wv(t){return L(t?.getReader)}function Ni(t){if(t instanceof ce)return t;if(null!=t){if(jv(t))return function p4(t){return new ce(i=>{const e=t[pe]();if(L(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(dg(t))return function h4(t){return new ce(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,T)})}(t);if(Uv(t))return Qv(t);if(Gv(t))return function g4(t){return new ce(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(Wv(t))return function m4(t){return Qv(qv(t))}(t)}throw $v(t)}function Qv(t){return new ce(i=>{(function _4(t,i){var e,n,o,s;return function As(t,i,e,n){return new(e||(e=Promise))(function(s,r){function a(u){try{c(n.next(u))}catch(p){r(p)}}function l(u){try{c(n.throw(u))}catch(p){r(p)}}function c(u){u.done?s(u.value):function o(s){return s instanceof e?s:new e(function(r){r(s)})}(u.value).then(a,l)}c((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Hv(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(r){o={error:r}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(o)throw o.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function ws(t,i,e,n=0,o=!1){const s=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}function si(t,i,e=1/0){return L(i)?si((n,o)=>at((s,r)=>i(n,s,o,r))(Ni(t(n,o))),e):("number"==typeof i&&(e=i),Me((n,o)=>function I4(t,i,e,n,o,s,r,a){const l=[];let c=0,u=0,p=!1;const m=()=>{p&&!l.length&&!c&&i.complete()},_=E=>c{s&&i.next(E),c++;let P=!1;Ni(e(E,u++)).subscribe(Ue(i,W=>{o?.(W),s?_(W):i.next(W)},()=>{P=!0},void 0,()=>{if(P)try{for(c--;l.length&&cb(W)):b(W)}m()}catch(W){i.error(W)}}))};return t.subscribe(Ue(i,_,()=>{p=!0,m()})),()=>{a?.()}}(n,o,t,e)))}function Ta(t=1/0){return si(_e,t)}const es=new ce(t=>t.complete());function Zv(t){return t&&L(t.schedule)}function pg(t){return t[t.length-1]}function Yv(t){return L(pg(t))?t.pop():void 0}function ic(t){return Zv(pg(t))?t.pop():void 0}function Xv(t,i=0){return Me((e,n)=>{e.subscribe(Ue(n,o=>ws(n,t,()=>n.next(o),i),()=>ws(n,t,()=>n.complete(),i),o=>ws(n,t,()=>n.error(o),i)))})}function Jv(t,i=0){return Me((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function e1(t,i){if(!t)throw new Error("Iterable cannot be null");return new ce(e=>{ws(e,i,()=>{const n=t[Symbol.asyncIterator]();ws(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ri(t,i){return i?function T4(t,i){if(null!=t){if(jv(t))return function b4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(dg(t))return function x4(t,i){return new ce(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(zv(t))return function y4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(Uv(t))return e1(t,i);if(Gv(t))return function A4(t,i){return new ce(e=>{let n;return ws(e,i,()=>{n=t[Kv](),ws(e,i,()=>{let o,s;try{({value:o,done:s}=n.next())}catch(r){return void e.error(r)}s?e.complete():e.next(o)},0,!0)}),()=>L(n?.return)&&n.return()})}(t,i);if(Wv(t))return function w4(t,i){return e1(qv(t),i)}(t,i)}throw $v(t)}(t,i):Ni(t)}class xo extends re{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}function ht(...t){return ri(t,ic(t))}function t1(t={}){const{connector:i=(()=>new re),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return s=>{let r,a,l,c=0,u=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),r=l=void 0,u=p=!1},b=()=>{const E=r;_(),E?.unsubscribe()};return Me((E,P)=>{c++,!p&&!u&&m();const W=l=l??i();P.add(()=>{c--,0===c&&!p&&!u&&(a=hg(b,o))}),W.subscribe(P),!r&&c>0&&(r=new R({next:te=>W.next(te),error:te=>{p=!0,m(),a=hg(_,e,te),W.error(te)},complete:()=>{u=!0,m(),a=hg(_,n),W.complete()}}),Ni(E).subscribe(r))})(s)}}function hg(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new R({next:()=>{n.unsubscribe(),t()}});return Ni(i(...e)).subscribe(n)}function Ao(t,i){return Me((e,n)=>{let o=null,s=0,r=!1;const a=()=>r&&!o&&n.complete();e.subscribe(Ue(n,l=>{o?.unsubscribe();let c=0;const u=s++;Ni(t(l,u)).subscribe(o=Ue(n,p=>n.next(i?i(l,p,u,c++):p),()=>{o=null,a()}))},()=>{r=!0,a()}))})}function D4(t,i){return t===i}function fn(t){for(let i in t)if(t[i]===fn)return i;throw Error("Could not find renamed property on target object.")}function _d(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ai(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ai).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function fg(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const k4=fn({__forward_ref__:fn});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return ai(this())},t}function vt(t){return gg(t)?t():t}function gg(t){return"function"==typeof t&&t.hasOwnProperty(k4)&&t.__forward_ref__===ft}function mg(t){return t&&!!t.\u0275providers}const n1="https://g.co/ng/security#xss";class Ae extends Error{constructor(i,e){super(function Id(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function xt(t){return"string"==typeof t?t:null==t?"":String(t)}function _g(t,i){throw new Ae(-201,!1)}function wo(t,i){null==t&&function _t(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function nt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const o1=nt;function Ge(t){return{providers:t.providers||[],imports:t.imports||[]}}function Cd(t){return s1(t,bd)||s1(t,r1)}function s1(t,i){return t.hasOwnProperty(i)?t[i]:null}function vd(t){return t&&(t.hasOwnProperty(Ig)||t.hasOwnProperty(V4))?t[Ig]:null}const bd=fn({\u0275prov:fn}),Ig=fn({\u0275inj:fn}),r1=fn({ngInjectableDef:fn}),V4=fn({ngInjectorDef:fn});var zt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(zt||{});let Cg;function a1(){return Cg}function Yi(t){const i=Cg;return Cg=t,i}function l1(t,i,e){const n=Cd(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&zt.Optional?null:void 0!==i?i:void _g(ai(t))}const Tn=globalThis;class Ye{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=nt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const oc={},Ag="__NG_DI_FLAG__",yd="ngTempTokenPath",z4=/\n/gm,u1="__source";let Sa;function sr(t){const i=Sa;return Sa=t,i}function $4(t,i=zt.Default){if(void 0===Sa)throw new Ae(-203,!1);return null===Sa?l1(t,void 0,i):Sa.get(t,i&zt.Optional?null:void 0,i)}function Ze(t,i=zt.Default){return(a1()||$4)(vt(t),i)}function et(t,i=zt.Default){return Ze(t,xd(i))}function xd(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function wg(t){const i=[];for(let e=0;ei){r=s-1;break}}}for(;ss?"":o[p+1].toLowerCase();const _=8&n?m:null;if(_&&-1!==f1(_,c,0)||2&n&&c!==m){if(Bo(n))return!1;r=!0}}}}else{if(!r&&!Bo(n)&&!Bo(l))return!1;if(r&&Bo(l))continue;r=!1,n=l|1&n}}return Bo(n)||r}function Bo(t){return 0==(1&t)}function Y4(t,i,e,n){if(null===i)return-1;let o=0;if(n||!e){let s=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?o+="."+r:4&n&&(o+=" "+r);else""!==o&&!Bo(r)&&(i+=b1(s,o),o=""),n=r,s=s||!Bo(n);e++}return""!==o&&(i+=b1(s,o)),i}function Oe(t){return Ts(()=>{const i=x1(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ad.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||To.Emulated,styles:t.styles||nn,_:null,schemas:t.schemas||null,tView:null,id:""};A1(e);const n=t.dependencies;return e.directiveDefs=Td(n,!1),e.pipeDefs=Td(n,!0),e.id=function cL(t){let i=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(e),e})}function Dg(t,i,e){const n=t.\u0275cmp;n.directiveDefs=Td(i,!1),n.pipeDefs=Td(e,!0)}function sL(t){return Zt(t)||fi(t)}function rL(t){return null!==t}function qe(t){return Ts(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function y1(t,i){if(null==t)return ts;const e={};for(const n in t)if(t.hasOwnProperty(n)){let o=t[n],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),e[o]=n,i&&(i[o]=s)}return e}function ut(t){return Ts(()=>{const i=x1(t);return A1(i),i})}function Vi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[wd]||null}function fi(t){return t[Tg]||null}function Bi(t){return t[Sg]||null}function lo(t,i){const e=t[p1]||null;if(!e&&!0===i)throw new Error(`Type ${ai(t)} does not have '\u0275mod' property.`);return e}function x1(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||ts,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:y1(t.inputs,i),outputs:y1(t.outputs)}}function A1(t){t.features?.forEach(i=>i(t))}function Td(t,i){if(!t)return null;const e=i?Bi:sL;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(rL)}const Un=0,it=1,kt=2,Fn=3,Ho=4,lc=5,xi=6,Da=7,Zn=8,rr=9,ka=10,At=11,cc=12,w1=13,Ma=14,Yn=15,uc=16,Oa=17,ns=18,dc=19,T1=20,ar=21,Es=22,pc=23,hc=24,Ut=25,kg=1,S1=2,is=7,La=9,gi=11;function Xi(t){return Array.isArray(t)&&"object"==typeof t[kg]}function Hi(t){return Array.isArray(t)&&!0===t[kg]}function Mg(t){return 0!=(4&t.flags)}function $r(t){return t.componentOffset>-1}function Ed(t){return 1==(1&t.flags)}function zo(t){return!!t.template}function Og(t){return 0!=(512&t[kt])}function Kr(t,i){return t.hasOwnProperty(Ss)?t[Ss]:null}const lr=Symbol("SIGNAL");function k1(t,i){return(null===t||"object"!=typeof t)&&Object.is(t,i)}let mi=null,Dd=!1;function So(t){const i=mi;return mi=t,i}const kd={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function M1(t){if(Dd)throw new Error("");if(null===mi)return;const i=mi.nextProducerIndex++;Pa(mi),it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function F1(t){Pa(t);for(let i=0;i0}function Pa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function V1(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ds(t,i){const e=Object.create(fL);e.computation=t,i?.equal&&(e.equal=i.equal);const n=()=>{if(O1(e),M1(e),e.value===Pd)throw e.error;return e.value};return n[lr]=e,n}const Pg=Symbol("UNSET"),Fg=Symbol("COMPUTING"),Pd=Symbol("ERRORED"),fL=(()=>({...kd,value:Pg,dirty:!0,error:null,equal:k1,producerMustRecompute:t=>t.value===Pg||t.value===Fg,producerRecomputeValue(t){if(t.value===Fg)throw new Error("Detected cycle in computations.");const i=t.value;t.value=Fg;const e=Md(t);let n;try{n=t.computation()}catch(o){n=Pd,t.error=o}finally{Od(t,e)}i!==Pg&&i!==Pd&&n!==Pd&&t.equal(i,n)?t.value=i:(t.value=n,t.version++)}}))();let B1=function gL(){throw new Error};function Rg(){B1()}let Ng=null;function bn(t,i){const e=Object.create(_L);function n(){return M1(e),e.value}return e.value=t,i?.equal&&(e.equal=i.equal),n.set=z1,n.update=IL,n.mutate=CL,n.asReadonly=vL,n[lr]=e,n}const _L=(()=>({...kd,equal:k1,readonlyFn:void 0}))();function H1(t){t.version++,L1(t),Ng?.()}function z1(t){const i=this[lr];Lg()||Rg(),i.equal(i.value,t)||(i.value=t,H1(i))}function IL(t){Lg()||Rg(),z1.call(this,t(this[lr].value))}function CL(t){const i=this[lr];Lg()||Rg(),t(i.value),H1(i)}function vL(){const t=this[lr];if(void 0===t.readonlyFn){const i=()=>this();i[lr]=t,t.readonlyFn=i}return t.readonlyFn}const U1=()=>{},yL=(()=>({...kd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:U1}))();class xL{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Hn(){return $1}function $1(t){return t.type.prototype.ngOnChanges&&(t.setInput=wL),AL}function AL(){const t=G1(this),i=t?.current;if(i){const e=t.previous;if(e===ts)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function wL(t,i,e,n){const o=this.declaredInputs[e],s=G1(t)||function TL(t,i){return t[K1]=i}(t,{previous:ts,current:null}),r=s.current||(s.current={}),a=s.previous,l=a[o];r[o]=new xL(l&&l.currentValue,i,a===ts),t[n]=i}Hn.ngInherit=!0;const K1="__ngSimpleChanges__";function G1(t){return t[K1]||null}const os=function(t,i,e){};function Sn(t){for(;Array.isArray(t);)t=t[Un];return t}function Fd(t,i){return Sn(i[t])}function Ji(t,i){return Sn(i[t.index])}function Q1(t,i){return t.data[i]}function Fa(t,i){return t[i]}function co(t,i){const e=i[t];return Xi(e)?e:e[Un]}function cr(t,i){return null==i?null:t[i]}function Z1(t){t[Oa]=0}function OL(t){1024&t[kt]||(t[kt]|=1024,X1(t,1))}function Y1(t){1024&t[kt]&&(t[kt]&=-1025,X1(t,-1))}function X1(t,i){let e=t[Fn];if(null===e)return;e[lc]+=i;let n=e;for(e=e[Fn];null!==e&&(1===i&&1===n[lc]||-1===i&&0===n[lc]);)e[lc]+=i,n=e,e=e[Fn]}function J1(t,i){if(256==(256&t[kt]))throw new Ae(911,!1);null===t[ar]&&(t[ar]=[]),t[ar].push(i)}const It={lFrame:cb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function tb(){return It.bindingsEnabled}function Ra(){return null!==It.skipHydrationRootTNode}function Ne(){return It.lFrame.lView}function Yt(){return It.lFrame.tView}function G(t){return It.lFrame.contextLView=t,t[Zn]}function q(t){return It.lFrame.contextLView=null,t}function _i(){let t=nb();for(;null!==t&&64===t.type;)t=t.parent;return t}function nb(){return It.lFrame.currentTNode}function ss(t,i){const e=It.lFrame;e.currentTNode=t,e.isParent=i}function Hg(){return It.lFrame.isParent}function zg(){It.lFrame.isParent=!1}function zi(){const t=It.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Na(){return It.lFrame.bindingIndex++}function Ms(t){const i=It.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function $L(t,i){const e=It.lFrame;e.bindingIndex=e.bindingRootIndex=t,jg(i)}function jg(t){It.lFrame.currentDirectiveIndex=t}function rb(){return It.lFrame.currentQueryIndex}function $g(t){It.lFrame.currentQueryIndex=t}function GL(t){const i=t[it];return 2===i.type?i.declTNode:1===i.type?t[xi]:null}function ab(t,i,e){if(e&zt.SkipSelf){let o=i,s=t;for(;!(o=o.parent,null!==o||e&zt.Host||(o=GL(s),null===o||(s=s[Ma],10&o.type))););if(null===o)return!1;i=o,t=s}const n=It.lFrame=lb();return n.currentTNode=i,n.lView=t,!0}function Kg(t){const i=lb(),e=t[it];It.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function lb(){const t=It.lFrame,i=null===t?null:t.child;return null===i?cb(t):i}function cb(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function ub(){const t=It.lFrame;return It.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const db=ub;function Gg(){const t=ub();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ji(){return It.lFrame.selectedIndex}function Gr(t){It.lFrame.selectedIndex=t}function zn(){const t=It.lFrame;return Q1(t.tView,t.selectedIndex)}function Mt(){It.lFrame.currentNamespace="svg"}let hb=!0;function Rd(){return hb}function ur(t){hb=t}function Nd(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Oa]+=65536),(a>13>16&&(3&t[kt])===i&&(t[kt]+=8192,gb(a,s)):gb(a,s)}const Va=-1;class _c{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Qg(t){return t!==Va}function Ic(t){return 32767&t}function Cc(t,i){let e=function iP(t){return t>>16}(t),n=i;for(;e>0;)n=n[Ma],e--;return n}let Zg=!0;function Hd(t){const i=Zg;return Zg=t,i}const mb=255,_b=5;let oP=0;const rs={};function zd(t,i){const e=Ib(t,i);if(-1!==e)return e;const n=i[it];n.firstCreatePass&&(t.injectorIndex=i.length,Yg(n.data,t),Yg(i,null),Yg(n.blueprint,null));const o=jd(t,i),s=t.injectorIndex;if(Qg(o)){const r=Ic(o),a=Cc(o,i),l=a[it].data;for(let c=0;c<8;c++)i[s+c]=a[r+c]|l[r+c]}return i[s+8]=o,s}function Yg(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Ib(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function jd(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;null!==o;){if(n=wb(o),null===n)return Va;if(e++,o=o[Ma],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Va}function Xg(t,i,e){!function sP(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(rc)&&(n=e[rc]),null==n&&(n=e[rc]=oP++);const o=n&mb;i.data[t+(o>>_b)]|=1<=0?i&mb:uP:i}(e);if("function"==typeof s){if(!ab(i,t,n))return n&zt.Host?Cb(o,0,n):vb(i,e,n,o);try{let r;if(r=s(n),null!=r||n&zt.Optional)return r;_g()}finally{db()}}else if("number"==typeof s){let r=null,a=Ib(t,i),l=Va,c=n&zt.Host?i[Yn][xi]:null;for((-1===a||n&zt.SkipSelf)&&(l=-1===a?jd(t,i):i[a+8],l!==Va&&Ab(n,!1)?(r=i[it],a=Ic(l),i=Cc(l,i)):a=-1);-1!==a;){const u=i[it];if(xb(s,a,u.data)){const p=aP(a,i,e,r,n,c);if(p!==rs)return p}l=i[a+8],l!==Va&&Ab(n,i[it].data[a+8]===c)&&xb(s,a,i)?(r=u,a=Ic(l),i=Cc(l,i)):a=-1}}return o}function aP(t,i,e,n,o,s){const r=i[it],a=r.data[t+8],u=Ud(a,r,e,null==n?$r(a)&&Zg:n!=r&&0!=(3&a.type),o&zt.Host&&s===a);return null!==u?qr(i,r,u,a):rs}function Ud(t,i,e,n,o){const s=t.providerIndexes,r=i.data,a=1048575&s,l=t.directiveStart,u=s>>20,m=o?a+u:t.directiveEnd;for(let _=n?a:a+u;_=l&&b.type===e)return _}if(o){const _=r[l];if(_&&zo(_)&&_.type===e)return l}return null}function qr(t,i,e,n){let o=t[e];const s=i.data;if(function eP(t){return t instanceof _c}(o)){const r=o;r.resolving&&function M4(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Ae(-200,`Circular dependency in DI detected for ${t}${e}`)}(function pn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():xt(t)}(s[e]));const a=Hd(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?Yi(r.injectImpl):null;ab(t,n,zt.Default);try{o=t[e]=r.factory(void 0,s,t,n),i.firstCreatePass&&e>=n.directiveStart&&function XL(t,i,e){const{ngOnChanges:n,ngOnInit:o,ngDoCheck:s}=i.type.prototype;if(n){const r=$1(i);(e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r)}o&&(e.preOrderHooks??=[]).push(0-t,o),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}(e,s[e],i)}finally{null!==c&&Yi(c),Hd(a),r.resolving=!1,db()}}return o}function xb(t,i,e){return!!(e[i+(t>>_b)]&1<{const i=t.prototype.constructor,e=i[Ss]||Jg(i),n=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){const s=o[Ss]||Jg(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Jg(t){return gg(t)?()=>{const i=Jg(vt(t));return i&&i()}:Kr(t)}function wb(t){const i=t[it],e=i.type;return 2===e?i.declTNode:1===e?t[xi]:null}const Ha="__parameters__";function ja(t,i,e){return Ts(()=>{const n=function em(t){return function(...e){if(t){const n=t(...e);for(const o in n)this[o]=n[o]}}}(i);function o(...s){if(this instanceof o)return n.apply(this,s),this;const r=new o(...s);return a.annotation=r,a;function a(l,c,u){const p=l.hasOwnProperty(Ha)?l[Ha]:Object.defineProperty(l,Ha,{value:[]})[Ha];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(r),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $a(t,i){t.forEach(e=>Array.isArray(e)?$a(e,i):i(e))}function Sb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Kd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function yc(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function IP(t,i,e,n){let o=t.length;if(o==i)t.push(e,n);else if(1===o)t.push(n,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>i;)t[o]=t[o-2],o--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function tm(t,i){const e=Ka(t,i);if(e>=0)return t[1|e]}function Ka(t,i){return function Eb(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){const s=n+(o-n>>1),r=t[s<i?o=s:n=s+1}return~(o<|^->||--!>|)/g,zP="\u200b$1\u200b";const rm=new Map;let jP=0;const lm="__ngContext__";function Ai(t,i){Xi(i)?(t[lm]=i[dc],function $P(t){rm.set(t[dc],t)}(i)):t[lm]=i}let cm;function um(t,i){return cm(t,i)}function wc(t){const i=t[Fn];return Hi(i)?i[Fn]:i}function Wb(t){return Zb(t[cc])}function Qb(t){return Zb(t[Ho])}function Zb(t){for(;null!==t&&!Hi(t);)t=t[Ho];return t}function Wa(t,i,e,n,o){if(null!=n){let s,r=!1;Hi(n)?s=n:Xi(n)&&(r=!0,n=n[Un]);const a=Sn(n);0===t&&null!==e?null==o?ey(i,e,a):Wr(i,e,a,o||null,!0):1===t&&null!==e?Wr(i,e,a,o||null,!0):2===t?function rp(t,i,e){const n=op(t,i);n&&function u5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,a,r):3===t&&i.destroyNode(a),null!=s&&function h5(t,i,e,n,o){const s=e[is];s!==Sn(e)&&Wa(i,t,n,s,o);for(let a=gi;ai.replace(HP,zP))}(i))}function np(t,i,e){return t.createElement(i,e)}function Xb(t,i){const e=t[La],n=e.indexOf(i);Y1(i),e.splice(n,1)}function ip(t,i){if(t.length<=gi)return;const e=gi+i,n=t[e];if(n){const o=n[uc];null!==o&&o!==t&&Xb(o,n),i>0&&(t[e-1][Ho]=n[Ho]);const s=Kd(t,gi+i);!function t5(t,i){Sc(t,i,i[At],2,null,null),i[Un]=null,i[xi]=null}(n[it],n);const r=s[ns];null!==r&&r.detachView(s[it]),n[Fn]=null,n[Ho]=null,n[kt]&=-129}return n}function pm(t,i){if(!(256&i[kt])){const e=i[At];i[pc]&&R1(i[pc]),i[hc]&&R1(i[hc]),e.destroyNode&&Sc(t,i,e,3,null,null),function s5(t){let i=t[cc];if(!i)return hm(t[it],t);for(;i;){let e=null;if(Xi(i))e=i[cc];else{const n=i[gi];n&&(e=n)}if(!e){for(;i&&!i[Ho]&&i!==t;)Xi(i)&&hm(i[it],i),i=i[Fn];null===i&&(i=t),Xi(i)&&hm(i[it],i),e=i&&i[Ho]}i=e}}(i)}}function hm(t,i){if(!(256&i[kt])){i[kt]&=-129,i[kt]|=256,function c5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r]():n[-r].unsubscribe(),s+=2}else e[s].call(n[e[s+1]]);null!==n&&(i[Da]=null);const o=i[ar];if(null!==o){i[ar]=null;for(let s=0;s-1){const{encapsulation:s}=t.data[n.directiveStart+o];if(s===To.None||s===To.Emulated)return null}return Ji(n,e)}}(t,i.parent,e)}function Wr(t,i,e,n,o){t.insertBefore(i,e,n,o)}function ey(t,i,e){t.appendChild(i,e)}function ty(t,i,e,n,o){null!==n?Wr(t,i,e,n,o):ey(t,i,e)}function op(t,i){return t.parentNode(i)}function ny(t,i,e){return oy(t,i,e)}let gm,ap,Cm,lp,oy=function iy(t,i,e){return 40&t.type?Ji(t,e):null};function sp(t,i,e,n){const o=fm(t,n,i),s=i[At],a=ny(n.parent||i[xi],n,i);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return ap}()?.createHTML(t)||t}function Za(){if(void 0!==Cm)return Cm;if(typeof document<"u")return document;throw new Ae(210,!1)}function vm(){if(void 0===lp&&(lp=null,Tn.trustedTypes))try{lp=Tn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lp}function dy(t){return vm()?.createHTML(t)||t}function hy(t){return vm()?.createScriptURL(t)||t}class fy{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${n1})`}}function pr(t){return t instanceof fy?t.changingThisBreaksApplicationSecurity:t}function Ec(t,i){const e=function w5(t){return t instanceof fy&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${n1})`)}return e===i}class T5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(Qa(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class S5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Qa(i),e}}const D5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bm(t){return(t=String(t)).match(D5)?t:"unsafe:"+t}function Os(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Dc(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const my=Os("area,br,col,hr,img,wbr"),_y=Os("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Iy=Os("rp,rt"),ym=Dc(my,Dc(_y,Os("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dc(Iy,Os("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Dc(Iy,_y)),xm=Os("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cy=Dc(xm,Os("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Os("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),k5=Os("script,style,template");class M5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!ym.hasOwnProperty(e))return this.sanitizedSomething=!0,!k5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let o=0;o"),!0}endElement(i){const e=i.nodeName.toLowerCase();ym.hasOwnProperty(e)&&!my.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(vy(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const O5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L5=/([^\#-~ |!])/g;function vy(t){return t.replace(/&/g,"&").replace(O5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(L5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let cp;function Am(t){return"content"in t&&function F5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ya=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ya||{});function hr(t){const i=kc();return i?dy(i.sanitize(Ya.HTML,t)||""):Ec(t,"HTML")?dy(pr(t)):function P5(t,i){let e=null;try{cp=cp||function gy(t){const i=new S5(t);return function E5(){try{return!!(new window.DOMParser).parseFromString(Qa(""),"text/html")}catch{return!1}}()?new T5(i):i}(t);let n=i?String(i):"";e=cp.getInertBodyElement(n);let o=5,s=n;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,n=s,s=e.innerHTML,e=cp.getInertBodyElement(n)}while(n!==s);return Qa((new M5).sanitizeChildren(Am(e)||e))}finally{if(e){const n=Am(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Za(),xt(t))}function Ls(t){const i=kc();return i?i.sanitize(Ya.URL,t)||"":Ec(t,"URL")?pr(t):bm(xt(t))}function by(t){const i=kc();if(i)return hy(i.sanitize(Ya.RESOURCE_URL,t)||"");if(Ec(t,"ResourceURL"))return hy(pr(t));throw new Ae(904,!1)}function kc(){const t=Ne();return t&&t[ka].sanitizer}const Mc=new Ye("ENVIRONMENT_INITIALIZER"),xy=new Ye("INJECTOR",-1),Ay=new Ye("INJECTOR_DEF_TYPES");class wm{get(i,e=oc){if(e===oc){const n=new Error(`NullInjectorError: No provider for ${ai(i)}!`);throw n.name="NullInjectorError",n}return e}}function z5(...t){return{\u0275providers:wy(0,t),\u0275fromNgModule:!0}}function wy(t,...i){const e=[],n=new Set;let o;const s=r=>{e.push(r)};return $a(i,r=>{const a=r;up(a,s,[],n)&&(o||=[],o.push(a))}),void 0!==o&&Ty(o,s),e}function Ty(t,i){for(let e=0;e{i(s,n)})}}function up(t,i,e,n){if(!(t=vt(t)))return!1;let o=null,s=vd(t);const r=!s&&Zt(t);if(s||r){if(r&&!r.standalone)return!1;o=t}else{const l=t.ngModule;if(s=vd(l),!s)return!1;o=l}const a=n.has(o);if(r){if(a)return!1;if(n.add(o),r.dependencies){const l="function"==typeof r.dependencies?r.dependencies():r.dependencies;for(const c of l)up(c,i,e,n)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;n.add(o);try{$a(s.imports,u=>{up(u,i,e,n)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Ty(c,i)}if(!a){const c=Kr(o)||(()=>new o);i({provide:o,useFactory:c,deps:nn},o),i({provide:Ay,useValue:o,multi:!0},o),i({provide:Mc,useValue:()=>Ze(o),multi:!0},o)}const l=s.providers;if(null!=l&&!a){const c=t;Sm(l,u=>{i(u,c)})}}}return o!==t&&void 0!==t.providers}function Sm(t,i){for(let e of t)mg(e)&&(e=e.\u0275providers),Array.isArray(e)?Sm(e,i):i(e)}const j5=fn({provide:String,useValue:fn});function Em(t){return null!==t&&"object"==typeof t&&j5 in t}function Qr(t){return"function"==typeof t}const Dm=new Ye("Set Injector scope."),dp={},$5={};let km;function pp(){return void 0===km&&(km=new wm),km}class po{}class Xa extends po{get destroyed(){return this._destroyed}constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Om(i,r=>this.processProvider(r)),this.records.set(xy,Ja(void 0,this)),o.has("environment")&&this.records.set(po,Ja(void 0,this));const s=this.records.get(Dm);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ay.multi,nn,zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of i)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const e=sr(this),n=Yi(void 0);try{return i()}finally{sr(e),Yi(n)}}get(i,e=oc,n=zt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(h1))return i[h1](this);n=xd(n);const s=sr(this),r=Yi(void 0);try{if(!(n&zt.SkipSelf)){let l=this.records.get(i);if(void 0===l){const c=function Q5(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ye}(i)&&Cd(i);l=c&&this.injectableDefInScope(c)?Ja(Mm(i),dp):null,this.records.set(i,l)}if(null!=l)return this.hydrate(i,l)}return(n&zt.Self?pp():this.parent).get(i,e=n&zt.Optional&&e===oc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[yd]=a[yd]||[]).unshift(ai(i)),s)throw a;return function G4(t,i,e,n){const o=t[yd];throw i[u1]&&o.unshift(i[u1]),t.message=function q4(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=ai(i);if(Array.isArray(i))o=i.map(ai).join(" -> ");else if("object"==typeof i){let s=[];for(let r in i)if(i.hasOwnProperty(r)){let a=i[r];s.push(r+":"+("string"==typeof a?JSON.stringify(a):ai(a)))}o=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(z4,"\n ")}`}("\n"+t.message,o,e,n),t.ngTokenPath=o,t[yd]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{Yi(r),sr(s)}}resolveInjectorInitializers(){const i=sr(this),e=Yi(void 0);try{const o=this.get(Mc.multi,nn,zt.Self);for(const s of o)s()}finally{sr(i),Yi(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(ai(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ae(205,!1)}processProvider(i){let e=Qr(i=vt(i))?i:vt(i&&i.provide);const n=function G5(t){return Em(t)?Ja(void 0,t.useValue):Ja(Dy(t),dp)}(i);if(Qr(i)||!0!==i.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=Ja(void 0,dp,!0),o.factory=()=>wg(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===dp&&(e.value=$5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=vt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){const e=this._onDestroyHooks.indexOf(i);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Mm(t){const i=Cd(t),e=null!==i?i.factory:Kr(t);if(null!==e)return e;if(t instanceof Ye)throw new Ae(204,!1);if(t instanceof Function)return function K5(t){const i=t.length;if(i>0)throw yc(i,"?"),new Ae(204,!1);const e=function N4(t){return t&&(t[bd]||t[r1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ae(204,!1)}function Dy(t,i,e){let n;if(Qr(t)){const o=vt(t);return Kr(o)||Mm(o)}if(Em(t))n=()=>vt(t.useValue);else if(function Ey(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...wg(t.deps||[]));else if(function Sy(t){return!(!t||!t.useExisting)}(t))n=()=>Ze(vt(t.useExisting));else{const o=vt(t&&(t.useClass||t.provide));if(!function q5(t){return!!t.deps}(t))return Kr(o)||Mm(o);n=()=>new o(...wg(t.deps))}return n}function Ja(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Om(t,i){for(const e of t)Array.isArray(e)?Om(e,i):e&&mg(e)?Om(e.\u0275providers,i):i(e)}const hp=new Ye("AppId",{providedIn:"root",factory:()=>Z5}),Z5="ng",ky=new Ye("Platform Initializer"),$n=new Ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),My=new Ye("AnimationModuleType"),Oy=new Ye("CSP nonce",{providedIn:"root",factory:()=>Za().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ly=(t,i,e)=>null;function Hm(t,i,e=!1){return Ly(t,i,e)}class rF{}class Ry{}class lF{resolveComponentFactory(i){throw function aF(t){const i=Error(`No component factory found for ${ai(t)}.`);return i.ngComponent=t,i}(i)}}let Cp=(()=>{class t{static#e=this.NULL=new lF}return t})();function cF(){return nl(_i(),Ne())}function nl(t,i){return new bt(Ji(t,i))}let bt=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=cF}return t})();function uF(t){return t instanceof bt?t.nativeElement:t}class Pc{}let hn=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function dF(){const t=Ne(),e=co(_i().index,t);return(Xi(e)?e:t)[At]}()}return t})(),pF=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>null})}return t})();class Fc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const hF=new Fc("16.2.12"),Um={};function zy(t,i=null,e=null,n){const o=jy(t,i,e,n);return o.resolveInjectorInitializers(),o}function jy(t,i=null,e=null,n,o=new Set){const s=[e||nn,z5(t)];return n=n||("object"==typeof t?void 0:ai(t)),new Xa(s,i||pp(),n||null,o)}let $i=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=oc;static#t=this.NULL=new wm;static create(e,n){if(Array.isArray(e))return zy({name:""},n,e,"");{const o=e.name??"";return zy({name:o},e.parent,e.providers,o)}}static#n=this.\u0275prov=nt({token:t,providedIn:"any",factory:()=>Ze(xy)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Km(t){return t.ngOriginalError}class Ps{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Km(i);for(;e&&Km(e);)e=Km(e);return e||null}}let vp=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=vF;static#t=this.__NG_ENV_ID__=e=>e}return t})();class CF extends vp{constructor(i){super(),this._lView=i}onDestroy(i){return J1(this._lView,i),()=>function LL(t,i){if(null===t[ar])return;const e=t[ar].indexOf(i);-1!==e&&t[ar].splice(e,1)}(this._lView,i)}}function vF(){return new CF(Ne())}function Gm(t){return i=>{setTimeout(t,void 0,i)}}const ge=class bF extends re{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let o=i,s=e||(()=>null),r=n;if(i&&"object"==typeof i){const l=i;o=l.next?.bind(l),s=l.error?.bind(l),r=l.complete?.bind(l)}this.__isAsync&&(s=Gm(s),o&&(o=Gm(o)),r&&(r=Gm(r)));const a=super.subscribe({next:o,error:s,complete:r});return i instanceof F&&i.add(a),a}};function $y(...t){}class Tt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),typeof Zone>"u")throw new Ae(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&e,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function yF(){const t="function"==typeof Tn.requestAnimationFrame;let i=Tn[t?"requestAnimationFrame":"setTimeout"],e=Tn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function wF(t){const i=()=>{!function AF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Wm(t),t.isCheckStableRunning=!0,qm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Wm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,o,s,r,a)=>{if(function SF(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(o,s,r,a);try{return Ky(t),e.invokeTask(o,s,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&i(),Gy(t)}},onInvoke:(e,n,o,s,r,a,l)=>{try{return Ky(t),e.invoke(o,s,r,a,l)}finally{t.shouldCoalesceRunChangeDetection&&i(),Gy(t)}},onHasTask:(e,n,o,s)=>{e.hasTask(o,s),n===o&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Wm(t),qm(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,o,s)=>(e.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tt.isInAngularZone())throw new Ae(909,!1)}static assertNotInAngularZone(){if(Tt.isInAngularZone())throw new Ae(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+o,i,xF,$y,$y);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const xF={};function qm(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Wm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ky(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gy(t){t._nesting--,qm(t)}class TF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ge,this.onMicrotaskEmpty=new ge,this.onStable=new ge,this.onError=new ge}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}}const qy=new Ye("",{providedIn:"root",factory:Wy});function Wy(){const t=et(Tt);let i=!0;return function S4(...t){const i=ic(t),e=function v4(t,i){return"number"==typeof pg(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Ni(n[0]):Ta(e)(ri(n,i)):es}(new ce(o=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(i),o.complete()})}),new ce(o=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,o.next(!0))})})});const r=t.onUnstable.subscribe(()=>{Tt.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),r.unsubscribe()}}).pipe(t1()))}function Qy(t){return t.ownerDocument}function Fs(t){return t instanceof Function?t():t}let Qm=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function Rc(t){for(;t;){t[kt]|=64;const i=wc(t);if(Og(t)&&!i)return t;t=i}return null}const ex=new Ye("",{providedIn:"root",factory:()=>!1});let yp=null;function ox(t,i){return t[i]??ax()}function sx(t,i){const e=ax();e.producerNode?.length&&(t[i]=yp,e.lView=t,yp=rx())}const RF={...kd,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Rc(t.lView)},lView:null};function rx(){return Object.create(RF)}function ax(){return yp??=rx(),yp}const St={};function h(t){lx(Yt(),Ne(),ji()+t,!1)}function lx(t,i,e,n){if(!n)if(3==(3&i[kt])){const s=t.preOrderCheckHooks;null!==s&&Vd(i,s,e)}else{const s=t.preOrderHooks;null!==s&&Bd(i,s,0,e)}Gr(e)}function V(t,i=zt.Default){const e=Ne();return null===e?Ze(t,i):bb(_i(),e,vt(t),i)}function xp(t,i,e,n,o,s,r,a,l,c,u){const p=i.blueprint.slice();return p[Un]=o,p[kt]=140|n,(null!==c||t&&2048&t[kt])&&(p[kt]|=2048),Z1(p),p[Fn]=p[Ma]=t,p[Zn]=e,p[ka]=r||t&&t[ka],p[At]=a||t&&t[At],p[rr]=l||t&&t[rr]||null,p[xi]=s,p[dc]=function UP(){return jP++}(),p[Es]=u,p[T1]=c,p[Yn]=2==i.type?t[Yn]:p,p}function sl(t,i,e,n,o){let s=t.data[i];if(null===s)s=function Zm(t,i,e,n,o){const s=nb(),r=Hg(),l=t.data[i]=function $F(t,i,e,n,o,s){let r=i?i.injectorIndex:-1,a=0;return Ra()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?s:s&&s.parent,e,i,n,o);return null===t.firstChild&&(t.firstChild=l),null!==s&&(r?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(t,i,e,n,o),function UL(){return It.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=n,s.attrs=o;const r=function mc(){const t=It.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();s.injectorIndex=null===r?-1:r.injectorIndex}return ss(s,!0),s}function Nc(t,i,e,n){if(0===e)return-1;const o=i.length;for(let s=0;sUt&&lx(t,i,Ut,!1),os(a?2:0,o);const c=a?s:null,u=Md(c);try{null!==c&&(c.dirty=!1),e(n,o)}finally{Od(c,u)}}finally{a&&null===i[pc]&&sx(i,pc),Gr(r),os(a?3:1,o)}}function Ym(t,i,e){if(Mg(i)){const n=So(null);try{const s=i.directiveEnd;for(let r=i.directiveStart;rnull;function hx(t,i,e,n){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const s=t[o];null===n?fx(e,i,o,s):n.hasOwnProperty(o)&&fx(e,i,n[o],s)}return e}function fx(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function ho(t,i,e,n,o,s,r,a){const l=Ji(i,e);let u,c=i.inputs;!a&&null!=c&&(u=c[n])?(s_(t,e,u,n,o),$r(i)&&function qF(t,i){const e=co(i,t);16&e[kt]||(e[kt]|=64)}(e,i.index)):3&i.type&&(n=function GF(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),o=null!=r?r(o,i.value||"",n):o,s.setProperty(l,n,o))}function t_(t,i,e,n){if(tb()){const o=null===n?null:{"":-1},s=function JF(t,i){const e=t.directiveRegistry;let n=null,o=null;if(e)for(let s=0;s0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(r)!=a&&r.push(a),r.push(e,n,s)}}(t,i,n,Nc(t,e,o.hostVars,St),o)}function as(t,i,e,n,o,s){const r=Ji(t,i);!function i_(t,i,e,n,o,s,r){if(null==s)t.removeAttribute(i,o,e);else{const a=null==r?xt(s):r(s,n||"",o);t.setAttribute(i,o,a,e)}}(i[At],r,s,t.value,e,n,o)}function sR(t,i,e,n,o,s){const r=s[i];if(null!==r)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,o){const s=typeof Zone>"u"?null:Zone.current,r=function bL(t,i,e){const n=Object.create(yL);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;const o=r=>{n.cleanupFn=r};return n.ref={notify:()=>P1(n),run:()=>{if(n.dirty=!1,n.hasRun&&!F1(n))return;n.hasRun=!0;const r=Md(n);try{n.cleanupFn(),n.cleanupFn=U1,n.fn(o)}finally{Od(n,r)}},cleanup:()=>n.cleanupFn()},n.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,s)},o);let a;this.all.add(r),r.notify();const l=()=>{r.cleanup(),a?.(),this.all.delete(r),this.queue.delete(r)};return a=n?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function a_(t,i){!i?.injector&&function $m(t){if(!a1()&&!function U4(){return Sa}())throw new Ae(-203,!1)}();const e=i?.injector??et($i),n=e.get(Ax),o=!0!==i?.manualCleanup?e.get(vp):null;return n.create(t,o,!!i?.allowSignalWrites)}function wp(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,s=0;if(null!==i)for(let r=0;r0){Sx(t,1);const o=e.components;null!==o&&Dx(t,o,1)}}function Dx(t,i,e){for(let n=0;n-1&&(ip(i,n),Kd(e,n))}this._attachedToViewContainer=!1}pm(this._lView[it],this._lView)}onDestroy(i){J1(this._lView,i)}markForCheck(){Rc(this._cdRefInjectingView||this._lView)}detach(){this._lView[kt]&=-129}reattach(){this._lView[kt]|=128}detectChanges(){Tp(this._lView[it],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function o5(t,i){Sc(t,i,i[At],2,null,null)}(this._lView[it],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ae(902,!1);this._appRef=i}}class hR extends Bc{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Tp(i[it],i,i[Zn],!1)}checkNoChanges(){}get context(){return null}}class kx extends Cp{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Zt(i);return new Hc(e,this.ngModule)}}function Mx(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class gR{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=xd(n);const o=this.injector.get(i,Um,n);return o!==Um||e===Um?o:this.parentInjector.get(i,e,n)}}class Hc extends Ry{get inputs(){const i=this.componentDef,e=i.inputTransforms,n=Mx(i.inputs);if(null!==e)for(const o of n)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return n}get outputs(){return Mx(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function iL(t){return t.map(nL).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,o){let s=(o=o||this.ngModule)instanceof po?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const r=s?new gR(i,s):i,a=r.get(Pc,null);if(null===a)throw new Ae(407,!1);const p={rendererFactory:a,sanitizer:r.get(pF,null),effectManager:r.get(Ax,null),afterRenderEventManager:r.get(Qm,null)},m=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=n?function BF(t,i,e,n){const s=n.get(ex,!1)||e===To.ShadowDom,r=t.selectRootElement(i,s);return function HF(t){px(t)}(r),r}(m,n,this.componentDef.encapsulation,r):np(m,_,function fR(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(_)),W=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let te=null;null!==b&&(te=Hm(b,r,!0));const fe=e_(0,null,null,1,0,null,null,null,null,null,null),Ce=xp(null,fe,null,W,null,null,p,m,r,null,te);let ve,ke;Kg(Ce);try{const Pe=this.componentDef;let $e,Ke=null;Pe.findHostDirectiveDefs?($e=[],Ke=new Map,Pe.findHostDirectiveDefs(Pe,$e,Ke),$e.push(Pe)):$e=[Pe];const pt=function _R(t,i){const e=t[it],n=Ut;return t[n]=i,sl(e,n,2,"#host",null)}(Ce,b),jt=function IR(t,i,e,n,o,s,r){const a=o[it];!function CR(t,i,e,n){for(const o of t)i.mergedAttrs=ac(i.mergedAttrs,o.hostAttrs);null!==i.mergedAttrs&&(wp(i,i.mergedAttrs,!0),null!==e&&uy(n,e,i))}(n,t,i,r);let l=null;null!==i&&(l=Hm(i,o[rr]));const c=s.rendererFactory.createRenderer(i,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const p=xp(o,dx(e),null,u,o[t.index],t,s,c,null,null,l);return a.firstCreatePass&&n_(a,t,n.length-1),Ap(o,p),o[t.index]=p}(pt,b,Pe,$e,Ce,p,m);ke=Q1(fe,Ut),b&&function bR(t,i,e,n){if(n)Eg(t,e,["ng-version",hF.full]);else{const{attrs:o,classes:s}=function oL(t){const i=[],e=[];let n=1,o=2;for(;n0&&cy(t,e,s.join(" "))}}(m,Pe,b,n),void 0!==e&&function yR(t,i,e){const n=t.projection=[];for(let o=0;o=0;n--){const o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=ac(o.hostAttrs,e=ac(e,o.hostAttrs))}}(n)}function Sp(t){return t===ts?{}:t===nn?[]:t}function wR(t,i){const e=t.viewQuery;t.viewQuery=e?(n,o)=>{i(n,o),e(n,o)}:i}function TR(t,i){const e=t.contentQueries;t.contentQueries=e?(n,o,s)=>{i(n,o,s),e(n,o,s)}:i}function SR(t,i){const e=t.hostBindings;t.hostBindings=e?(n,o)=>{i(n,o),e(n,o)}:i}function Rx(t){const i=t.inputConfig,e={};for(const n in i)if(i.hasOwnProperty(n)){const o=i[n];Array.isArray(o)&&o[2]&&(e[n]=o[2])}t.inputTransforms=e}function Ep(t){return!!l_(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function l_(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ls(t,i,e){return t[i]=e}function zc(t,i){return t[i]}function wi(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Zr(t,i,e,n){const o=wi(t,i,e);return wi(t,i+1,n)||o}function Dp(t,i,e,n,o){const s=Zr(t,i,e,n);return wi(t,i+2,o)||s}function Do(t,i,e,n,o,s){const r=Zr(t,i,e,n);return Zr(t,i+2,o,s)||r}function K(t,i,e,n){const o=Ne();return wi(o,Na(),i)&&(Yt(),as(zn(),o,t,i,e,n)),K}function al(t,i,e,n){return wi(t,Na(),e)?i+xt(e)+n:St}function ll(t,i,e,n,o,s){const a=Zr(t,function ks(){return It.lFrame.bindingIndex}(),e,o);return Ms(2),a?i+xt(e)+n+xt(o)+s:St}function g(t,i,e,n,o,s,r,a){const l=Ne(),c=Yt(),u=t+Ut,p=c.firstCreatePass?function XR(t,i,e,n,o,s,r,a,l){const c=i.consts,u=sl(i,t,4,r||null,cr(c,a));t_(i,e,u,cr(c,l)),Nd(i,u);const p=u.tView=e_(2,u,n,o,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return null!==i.queries&&(i.queries.template(i,u),p.queries=i.queries.embeddedTView(u)),u}(u,c,l,i,e,n,o,s,r):c.data[u];ss(p,!1);const m=Qx(c,l,p,t);Rd()&&sp(c,l,m,p),Ai(m,l),Ap(l,l[u]=Ix(m,l,m,p)),Ed(p)&&Xm(c,l,p),null!=r&&Jm(l,p,a)}let Qx=function Zx(t,i,e,n){return ur(!0),i[At].createComment("")};function Bt(t){return Fa(function jL(){return It.lFrame.contextLView}(),Ut+t)}function d(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!1),d}function f_(t,i,e,n,o){const r=o?"class":"style";s_(t,e,i.inputs[r],r,n)}function x(t,i,e,n){const o=Ne(),s=Yt(),r=Ut+t,a=o[At],l=s.firstCreatePass?function n6(t,i,e,n,o,s){const r=i.consts,l=sl(i,t,2,n,cr(r,o));return t_(i,e,l,cr(r,s)),null!==l.attrs&&wp(l,l.attrs,!1),null!==l.mergedAttrs&&wp(l,l.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,l),l}(r,s,o,i,e,n):s.data[r],c=Yx(s,o,l,a,i,t);o[r]=c;const u=Ed(l);return ss(l,!0),uy(a,c,l),32!=(32&l.flags)&&Rd()&&sp(s,o,c,l),0===function PL(){return It.lFrame.elementDepthCount}()&&Ai(c,o),function FL(){It.lFrame.elementDepthCount++}(),u&&(Xm(s,o,l),Ym(s,l,o)),null!==n&&Jm(o,l),x}function A(){let t=_i();Hg()?zg():(t=t.parent,ss(t,!1));const i=t;(function NL(t){return It.skipHydrationRootTNode===t})(i)&&function zL(){It.skipHydrationRootTNode=null}(),function RL(){It.lFrame.elementDepthCount--}();const e=Yt();return e.firstCreatePass&&(Nd(e,t),Mg(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function tP(t){return 0!=(8&t.flags)}(i)&&f_(e,i,Ne(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function nP(t){return 0!=(16&t.flags)}(i)&&f_(e,i,Ne(),i.stylesWithoutHost,!1),A}function le(t,i,e,n){return x(t,i,e,n),A(),le}let Yx=(t,i,e,n,o,s)=>(ur(!0),np(n,o,function pb(){return It.lFrame.currentNamespace}()));function we(t,i,e){const n=Ne(),o=Yt(),s=t+Ut,r=o.firstCreatePass?function r6(t,i,e,n,o){const s=i.consts,r=cr(s,n),a=sl(i,t,8,"ng-container",r);return null!==r&&wp(a,r,!0),t_(i,e,a,cr(s,o)),null!==i.queries&&i.queries.elementStart(i,a),a}(s,o,n,i,e):o.data[s];ss(r,!0);const a=Xx(o,n,r,t);return n[s]=a,Rd()&&sp(o,n,a,r),Ai(a,n),Ed(r)&&(Xm(o,n,r),Ym(o,r,n)),null!=e&&Jm(n,r),we}function Te(){let t=_i();const i=Yt();return Hg()?zg():(t=t.parent,ss(t,!1)),i.firstCreatePass&&(Nd(i,t),Mg(t)&&i.queries.elementEnd(t)),Te}function ze(t,i,e){return we(t,i,e),Te(),ze}let Xx=(t,i,e,n)=>(ur(!0),dm(i[At],""));function De(){return Ne()}function Kc(t){return!!t&&"function"==typeof t.then}function Jx(t){return!!t&&"function"==typeof t.subscribe}function me(t,i,e,n){const o=Ne(),s=Yt(),r=_i();return function tA(t,i,e,n,o,s,r){const a=Ed(n),c=t.firstCreatePass&&bx(t),u=i[Zn],p=vx(i);let m=!0;if(3&n.type||r){const E=Ji(n,i),P=r?r(E):E,W=p.length,te=r?Ce=>r(Sn(Ce[n.index])):n.index;let fe=null;if(!r&&a&&(fe=function c6(t,i,e,n){const o=t.cleanup;if(null!=o)for(let s=0;sl?a[l]:null}"string"==typeof r&&(s+=2)}return null}(t,i,o,n.index)),null!==fe)(fe.__ngLastListenerFn__||fe).__ngNextListenerFn__=s,fe.__ngLastListenerFn__=s,m=!1;else{s=iA(n,i,u,s,!1);const Ce=e.listen(P,o,s);p.push(s,Ce),c&&c.push(o,te,W,W+1)}}else s=iA(n,i,u,s,!1);const _=n.outputs;let b;if(m&&null!==_&&(b=_[o])){const E=b.length;if(E)for(let P=0;P-1?co(t.index,i):i);let l=nA(i,e,n,r),c=s.__ngNextListenerFn__;for(;c;)l=nA(i,e,c,r)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&r.preventDefault(),l}}function f(t=1){return function qL(t){return(It.lFrame.contextLView=function WL(t,i){for(;t>0;)i=i[Ma],t--;return i}(t,It.lFrame.contextLView))[Zn]}(t)}function u6(t,i){let e=null;const n=function X4(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let o=0;o>17&32767}function I_(t){return 2|t}function Yr(t){return(131068&t)>>2}function C_(t,i){return-131069&t|i<<2}function v_(t){return 1|t}function dA(t,i,e,n,o){const s=t[e+1],r=null===i;let a=n?fr(s):Yr(s),l=!1;for(;0!==a&&(!1===l||r);){const u=t[a+1];m6(t[a],i)&&(l=!0,t[a+1]=n?v_(u):I_(u)),a=n?fr(u):Yr(u)}l&&(t[e+1]=n?I_(s):v_(s))}function m6(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Ka(t,i)>=0}const ci={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pA(t){return t.substring(ci.key,ci.keyEnd)}function _6(t){return t.substring(ci.value,ci.valueEnd)}function hA(t,i){const e=ci.textEnd;return e===i?-1:(i=ci.keyEnd=function v6(t,i,e){for(;i32;)i++;return i}(t,ci.key=i,e),gl(t,i,e))}function fA(t,i){const e=ci.textEnd;let n=ci.key=gl(t,i,e);return e===n?-1:(n=ci.keyEnd=function b6(t,i,e){let n;for(;i=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=mA(t,n,e),n=ci.value=gl(t,n,e),n=ci.valueEnd=function y6(t,i,e){let n=-1,o=-1,s=-1,r=i,a=r;for(;r32&&(a=r),s=o,o=n,n=-33&l}return a}(t,n,e),mA(t,n,e))}function gA(t){ci.key=0,ci.keyEnd=0,ci.value=0,ci.valueEnd=0,ci.textEnd=t.length}function gl(t,i,e){for(;i=0;e=fA(i,e))vA(t,pA(i),_6(i))}function Ve(t){Uo(D6,cs,t,!0)}function cs(t,i){for(let e=function I6(t){return gA(t),hA(t,gl(t,0,ci.textEnd))}(i);e>=0;e=hA(i,e))uo(t,pA(i),!0)}function jo(t,i,e,n){const o=Ne(),s=Yt(),r=Ms(2);s.firstUpdatePass&&CA(s,t,r,n),i!==St&&wi(o,r,i)&&bA(s,s.data[ji()],o,o[At],t,o[r+1]=function M6(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ai(pr(t)))),t}(i,e),n,r)}function Uo(t,i,e,n){const o=Yt(),s=Ms(2);o.firstUpdatePass&&CA(o,null,s,n);const r=Ne();if(e!==St&&wi(r,s,e)){const a=o.data[ji()];if(xA(a,n)&&!IA(o,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=fg(l,e||"")),f_(o,a,r,e,n)}else!function k6(t,i,e,n,o,s,r,a){o===St&&(o=nn);let l=0,c=0,u=0=t.expandoStartIndex}function CA(t,i,e,n){const o=t.data;if(null===o[e+1]){const s=o[ji()],r=IA(t,e);xA(s,n)&&null===i&&!r&&(i=!1),i=function A6(t,i,e,n){const o=function Ug(t){const i=It.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let s=n?i.residualClasses:i.residualStyles;if(null===o)0===(n?i.classBindings:i.styleBindings)&&(e=Gc(e=b_(null,t,i,e,n),i.attrs,n),s=null);else{const r=i.directiveStylingLast;if(-1===r||t[r]!==o)if(e=b_(o,t,i,e,n),null===s){let l=function w6(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Yr(n))return t[fr(n)]}(t,i,n);void 0!==l&&Array.isArray(l)&&(l=b_(null,t,i,l[1],n),l=Gc(l,i.attrs,n),function T6(t,i,e,n){t[fr(e?i.classBindings:i.styleBindings)]=n}(t,i,n,l))}else s=function S6(t,i,e){let n;const o=i.directiveEnd;for(let s=1+i.directiveStylingLast;s0)&&(c=!0)):u=e,o)if(0!==l){const m=fr(t[a+1]);t[n+1]=Lp(m,a),0!==m&&(t[m+1]=C_(t[m+1],n)),t[a+1]=function p6(t,i){return 131071&t|i<<17}(t[a+1],n)}else t[n+1]=Lp(a,0),0!==a&&(t[a+1]=C_(t[a+1],n)),a=n;else t[n+1]=Lp(l,0),0===a?a=n:t[l+1]=C_(t[l+1],n),l=n;c&&(t[n+1]=I_(t[n+1])),dA(t,u,n,!0),dA(t,u,n,!1),function g6(t,i,e,n,o){const s=o?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof i&&Ka(s,i)>=0&&(e[n+1]=v_(e[n+1]))}(i,u,t,n,s),r=Lp(a,l),s?i.classBindings=r:i.styleBindings=r}(o,s,i,e,r,n)}}function b_(t,i,e,n,o){let s=null;const r=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let m=e[o+1];m===St&&(m=p?nn:void 0);let _=p?tm(m,n):u===n?m:void 0;if(c&&!Pp(_)&&(_=tm(l,n)),Pp(_)&&(a=_,r))return a;const b=t[o+1];o=r?fr(b):Yr(b)}if(null!==i){let l=s?i.residualClasses:i.residualStyles;null!=l&&(a=tm(l,n))}return a}function Pp(t){return void 0!==t}function xA(t,i){return 0!=(t.flags&(i?8:16))}function Le(t,i=""){const e=Ne(),n=Yt(),o=t+Ut,s=n.firstCreatePass?sl(n,o,1,i,null):n.data[o],r=AA(n,e,s,i,t);e[o]=r,Rd()&&sp(n,e,r,s),ss(s,!1)}let AA=(t,i,e,n,o)=>(ur(!0),function tp(t,i){return t.createText(i)}(i[At],n));function dt(t){return Pt("",t,""),dt}function Pt(t,i,e){const n=Ne(),o=al(n,t,i,e);return o!==St&&Rs(n,ji(),o),Pt}function Fp(t,i,e,n,o){const s=Ne(),r=ll(s,t,i,e,n,o);return r!==St&&Rs(s,ji(),r),Fp}function y_(t,i,e){Uo(uo,cs,al(Ne(),t,i,e),!0)}function x_(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!0),x_}const Xr=void 0;var X6=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Y6(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ml={};function Ki(t){const i=function J6(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=UA(i);if(e)return e;const n=i.split("-")[0];if(e=UA(n),e)return e;if("en"===n)return X6;throw new Ae(701,!1)}function UA(t){return t in ml||(ml[t]=Tn.ng&&Tn.ng.common&&Tn.ng.common.locales&&Tn.ng.common.locales[t]),ml[t]}var En=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(En||{});const _l="en-US";let $A=_l;function T_(t,i,e,n,o){if(t=vt(t),Array.isArray(t))for(let s=0;s>20;if(Qr(t)||!t.multi){const _=new _c(c,o,V),b=E_(l,i,o?u:u+m,p);-1===b?(Xg(zd(a,r),s,l),S_(s,t,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(_),r.push(_)):(e[b]=_,r[b]=_)}else{const _=E_(l,i,u+m,p),b=E_(l,i,u,u+m),P=b>=0&&e[b];if(o&&!P||!o&&!(_>=0&&e[_])){Xg(zd(a,r),s,l);const W=function X9(t,i,e,n,o){const s=new _c(t,e,V);return s.multi=[],s.index=i,s.componentProviders=0,gw(s,o,n&&!e),s}(o?Y9:Z9,e.length,o,n,c);!o&&P&&(e[b].providerFactory=W),S_(s,t,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(W),r.push(W)}else S_(s,t,_>-1?_:b,gw(e[o?b:_],c,!o&&n));!o&&n&&P&&e[b].componentProviders++}}}function S_(t,i,e,n){const o=Qr(i),s=function U5(t){return!!t.useClass}(i);if(o||s){const l=(s?vt(i.useClass):i).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){const u=c.indexOf(e);-1===u?c.push(e,[n,l]):c[u+1].push(n,l)}else c.push(e,l)}}}function gw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function E_(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>function Q9(t,i,e){const n=Yt();if(n.firstCreatePass){const o=zo(t);T_(e,n.data,n.blueprint,o,!0),T_(i,n.data,n.blueprint,o,!1)}}(n,o?o(t):t,i)}}class Jr{}class mw{}class k_ extends Jr{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kx(this);const o=lo(i);this._bootstrapComponents=Fs(o.bootstrap),this._r3Injector=jy(i,e,[{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver},...n],ai(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class M_ extends mw{constructor(i){super(),this.moduleType=i}create(i){return new k_(this.moduleType,i,[])}}class _w extends Jr{constructor(i){super(),this.componentFactoryResolver=new kx(this),this.instance=null;const e=new Xa([...i.providers,{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver}],i.parent||pp(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function O_(t,i,e=null){return new _w({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}let t7=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=wy(0,e.type),o=n.length>0?O_([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=nt({token:t,providedIn:"environment",factory:()=>new t(Ze(po))})}return t})();function Et(t){t.getStandaloneInjector=i=>i.get(t7).getOrCreateStandaloneInjector(t)}function Jt(t,i,e){const n=zi()+t,o=Ne();return o[n]===St?ls(o,n,e?i.call(e):i()):zc(o,n)}function He(t,i,e,n){return function ww(t,i,e,n,o,s){const r=i+e;return wi(t,r,o)?ls(t,r+1,s?n.call(s,o):n(o)):Xc(t,r+1)}(Ne(),zi(),t,i,e,n)}function mt(t,i,e,n,o){return Tw(Ne(),zi(),t,i,e,n,o)}function Rn(t,i,e,n,o,s){return function Sw(t,i,e,n,o,s,r,a){const l=i+e;return Dp(t,l,o,s,r)?ls(t,l+3,a?n.call(a,o,s,r):n(o,s,r)):Xc(t,l+3)}(Ne(),zi(),t,i,e,n,o,s)}function gr(t,i,e,n,o,s,r){return function Ew(t,i,e,n,o,s,r,a,l){const c=i+e;return Do(t,c,o,s,r,a)?ls(t,c+4,l?n.call(l,o,s,r,a):n(o,s,r,a)):Xc(t,c+4)}(Ne(),zi(),t,i,e,n,o,s,r)}function Hp(t,i,e,n,o,s,r,a){const l=zi()+t,c=Ne(),u=Do(c,l,e,n,o,s);return wi(c,l+4,r)||u?ls(c,l+5,a?i.call(a,e,n,o,s,r):i(e,n,o,s,r)):zc(c,l+5)}function ea(t,i,e,n,o,s,r,a,l){const c=zi()+t,u=Ne(),p=Do(u,c,e,n,o,s);return Zr(u,c+4,r,a)||p?ls(u,c+6,l?i.call(l,e,n,o,s,r,a):i(e,n,o,s,r,a)):zc(u,c+6)}function zp(t,i,e,n){return function Dw(t,i,e,n,o,s){let r=i+e,a=!1;for(let l=0;l=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];const s=n.factory||(n.factory=Kr(n.type)),a=Yi(V);try{const l=Hd(!1),c=s();return Hd(l),function t6(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,Ne(),o,c),c}finally{Yi(a)}}function Cl(t,i,e,n){const o=t+Ut,s=Ne(),r=Fa(s,o);return function Jc(t,i){return t[it].data[i].pure}(s,o)?Tw(s,zi(),i,r.transform,e,n,r):r.transform(e,n)}function _7(){return this._results[Symbol.iterator]()}class P_{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new ge)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=P_.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_7)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const o=function Eo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function mP(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n0&&(e[o-1][Ho]=i),n{class t{static#e=this.__NG_ELEMENT_ID__=y7}return t})();const v7=$o,b7=class extends v7{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){const o=function I7(t,i,e,n){const o=i.tView,a=xp(t,o,e,4096&t[kt]?4096:16,null,i,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[uc]=t[i.index];const c=t[ns];return null!==c&&(a[ns]=c.createEmbeddedView(o)),r_(o,a,e),a}(this._declarationLView,this._declarationTContainer,i,{injector:e,hydrationInfo:n});return new Bc(o)}};function y7(){return jp(_i(),Ne())}function jp(t,i){return 4&t.type?new b7(i,t,nl(t,i)):null}let go=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=E7}return t})();function E7(){return Rw(_i(),Ne())}const D7=go,Pw=class extends D7{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return nl(this._hostTNode,this._hostLView)}get injector(){return new Ui(this._hostTNode,this._hostLView)}get parentInjector(){const i=jd(this._hostTNode,this._hostLView);if(Qg(i)){const e=Cc(i,this._hostLView),n=Ic(i);return new Ui(e[it].data[n+8],e)}return new Ui(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=Fw(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-gi}createEmbeddedView(i,e,n){let o,s;"number"==typeof n?o=n:null!=n&&(o=n.index,s=n.injector);const a=i.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(a,o,false),a}createComponent(i,e,n,o,s){const r=i&&!function bc(t){return"function"==typeof t}(i);let a;if(r)a=e;else{const E=e||{};a=E.index,n=E.injector,o=E.projectableNodes,s=E.environmentInjector||E.ngModuleRef}const l=r?i:new Hc(Zt(i)),c=n||this.parentInjector;if(!s&&null==l.ngModule){const P=(r?c:this.parentInjector).get(po,null);P&&(s=P)}Zt(l.componentType??{});const _=l.create(c,o,null,s);return this.insertImpl(_.hostView,a,false),_}insert(i,e){return this.insertImpl(i,e,!1)}insertImpl(i,e,n){const o=i._lView;if(function ML(t){return Hi(t[Fn])}(o)){const l=this.indexOf(i);if(-1!==l)this.detach(l);else{const c=o[Fn],u=new Pw(c,c[xi],c[Fn]);u.detach(u.indexOf(i))}}const r=this._adjustIndex(e),a=this._lContainer;return C7(a,o,r,!n),i.attachToViewContainerRef(),Sb(F_(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=Fw(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);n&&(Kd(F_(this._lContainer),e),pm(n[it],n))}detach(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);return n&&null!=Kd(F_(this._lContainer),e)?new Bc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Fw(t){return t[8]}function F_(t){return t[8]||(t[8]=[])}function Rw(t,i){let e;const n=i[t.index];return Hi(n)?e=n:(e=Ix(n,i,null,t),i[t.index]=e,Ap(i,e)),Nw(e,i,t,n),new Pw(e,t,i)}let Nw=function Vw(t,i,e,n){if(t[is])return;let o;o=8&e.type?Sn(n):function k7(t,i){const e=t[At],n=e.createComment(""),o=Ji(i,t);return Wr(e,op(e,o),n,function d5(t,i){return t.nextSibling(i)}(e,o),!1),n}(i,e),t[is]=o};class R_{constructor(i){this.queryList=i,this.matches=null}clone(){return new R_(this.queryList)}setDirty(){this.queryList.setDirty()}}class N_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,o=[];for(let s=0;s0)n.push(r[a/2]);else{const c=s[a+1],u=i[-l];for(let p=gi;p{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=et(G_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const s=o();if(Kc(s))e.push(s);else if(Jx(s)){const r=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(r)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),a2=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const us=new Ye("LocaleId",{providedIn:"root",factory:()=>et(us,zt.Optional|zt.SkipSelf)||function sN(){return typeof $localize<"u"&&$localize.locale||_l}()});let Kp=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xo(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class lN{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let l2=(()=>{class t{compileModuleSync(e){return new M_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=Fs(lo(e).declarations).reduce((r,a)=>{const l=Zt(a);return l&&r.push(new Hc(l)),r},[]);return new lN(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const p2=new Ye(""),qp=new Ye("");let X_,Z_=(()=>{class t{constructor(e,n,o){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,X_||(function kN(t){X_=t}(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:o})}whenStable(e,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Tt),Ze(Y_),Ze(qp))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),Y_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return X_?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),mr=null;const h2=new Ye("AllowMultipleToken"),J_=new Ye("PlatformDestroyListeners"),e0=new Ye("appBootstrapListener");class g2{constructor(i,e){this.name=i,this.token=e}}function _2(t,i,e=[]){const n=`Platform: ${i}`,o=new Ye(n);return(s=[])=>{let r=t0();if(!r||r.injector.get(h2,!1)){const a=[...e,...s,{provide:o,useValue:!0}];t?t(a):function LN(t){if(mr&&!mr.get(h2,!1))throw new Ae(400,!1);(function f2(){!function mL(t){B1=t}(()=>{throw new Ae(600,!1)})})(),mr=t;const i=t.get(C2);(function m2(t){t.get(ky,null)?.forEach(e=>e())})(t)}(function I2(t=[],i){return $i.create({name:i,providers:[{provide:Dm,useValue:"platform"},{provide:J_,useValue:new Set([()=>mr=null])},...t]})}(a,n))}return function FN(t){const i=t0();if(!i)throw new Ae(401,!1);return i}()}}function t0(){return mr?.get(C2)??null}let C2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const o=function RN(t="zone.js",i){return"noop"===t?new TF:"zone.js"===t?new Tt(i):t}(n?.ngZone,function v2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{const s=function e7(t,i,e){return new k_(t,i,e)}(e.moduleType,this.injector,function w2(t){return[{provide:Tt,useFactory:t},{provide:Mc,multi:!0,useFactory:()=>{const i=et(VN,{optional:!0});return()=>i.initialize()}},{provide:A2,useFactory:NN},{provide:qy,useFactory:Wy}]}(()=>o)),r=s.injector.get(Ps,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{r.handleError(l)}});s.onDestroy(()=>{Wp(this._modules,s),a.unsubscribe()})}),function b2(t,i,e){try{const n=e();return Kc(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(r,o,()=>{const a=s.injector.get(q_);return a.runInitializers(),a.donePromise.then(()=>(function KA(t){wo(t,"Expected localeId to be defined"),"string"==typeof t&&($A=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(us,_l)||_l),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const o=y2({},n);return function MN(t,i,e){const n=new M_(e);return Promise.resolve(n)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(e){const n=e.injector.get(ta);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>n.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Ae(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ae(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(J_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(Ze($i))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function y2(t,i){return Array.isArray(i)?i.reduce(y2,t):{...t,...i}}let ta=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=et(A2),this.zoneIsStable=et(qy),this.componentTypes=[],this.components=[],this.isStable=et(Kp).hasPendingTasks.pipe(Ao(e=>e?ht(!1):this.zoneIsStable),function E4(t,i=_e){return t=t??D4,Me((e,n)=>{let o,s=!0;e.subscribe(Ue(n,r=>{const a=i(r);(s||!t(o,a))&&(s=!1,o=a,n.next(r))}))})}(),t1()),this._injector=et(po)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const o=e instanceof Ry;if(!this._injector.get(q_).done)throw!o&&function Ea(t){const i=Zt(t)||fi(t)||Bi(t);return null!==i&&i.standalone}(e),new Ae(405,!1);let r;r=o?e:this._injector.get(Cp).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const a=function ON(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Jr),c=r.create($i.NULL,[],n||r.selector,a),u=c.location.nativeElement,p=c.injector.get(p2,null);return p?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Wp(this.components,c),p?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ae(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Wp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(e0,[]);n.push(...this._bootstrapListeners),n.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Wp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ae(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const A2=new Ye("",{providedIn:"root",factory:()=>et(Ps).handleError.bind(void 0)});function NN(){const t=et(Tt),i=et(Ps);return e=>t.runOutsideAngular(()=>i.handleError(e))}let VN=(()=>{class t{constructor(){this.zone=et(Tt),this.applicationRef=et(ta)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let Ft=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=HN}return t})();function HN(t){return function zN(t,i,e){if($r(t)&&!e){const n=co(t.index,i);return new Bc(n,n)}return 47&t.type?new Bc(i[Yn],i):null}(_i(),Ne(),16==(16&t))}class D2{constructor(){}supports(i){return Ep(i)}create(i){return new qN(i)}}const GN=(t,i)=>i;class qN{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||GN}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,a,r,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,r,o),n=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,s,o)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,s,o)):i=this._addAfter(new WN(e,n),s,o),i}_verifyReinsertion(i,e,n,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?i=this._reinsertAfter(s,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const o=i._prevRemoved,s=i._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const o=null===e?this._itHead:e._next;return i._next=o,i._prev=e,null===o?this._itTail=i:o._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new k2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new k2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class WN{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class QN{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class k2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new QN,this.map.set(e,n)),n.add(i)}get(i,e){const o=this.map.get(i);return o?o.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function M2(t,i,e){const n=t.previousIndex;if(null===n)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const o=this._records.get(i);this._maybeAddToChanges(o,e);const s=o._prev,r=o._next;return s&&(s._next=r),r&&(r._prev=s),o._next=null,o._prev=null,o}const n=new YN(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class YN{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function L2(){return new Yp([new D2])}let Yp=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:L2});constructor(e){this.factories=e}static create(e,n){if(null!=n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||L2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(null!=n)return n;throw new Ae(901,!1)}}return t})();function P2(){return new yl([new O2])}let yl=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:P2});constructor(e){this.factories=e}static create(e,n){if(n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||P2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new Ae(901,!1)}}return t})();const e8=_2(null,"core",[]);let t8=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ta))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function xl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let l0=null;function _r(){return l0}class m8{}const Wt=new Ye("DocumentToken");let c0=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(I8)},providedIn:"platform"})}return t})();const _8=new Ye("Location Initialized");let I8=(()=>{class t extends c0{constructor(){super(),this._doc=et(Wt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function u0(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function U2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ns(t){return t&&"?"!==t[0]?"?"+t:t}let Ir=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(K2)},providedIn:"root"})}return t})();const $2=new Ye("appBaseHref");let K2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??et(Wt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return u0(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Ns(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=u0(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),d0=(()=>{class t{constructor(e){this._subject=new ge,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function b8(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(U2(q2(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Ns(n))}normalize(e){return t.stripTrailingSlash(function v8(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,q2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n,complete:o})}static#e=this.normalizeQueryParams=Ns;static#t=this.joinWithSlash=u0;static#n=this.stripTrailingSlash=U2;static#i=this.\u0275fac=function(n){return new(n||t)(Ze(Ir))};static#o=this.\u0275prov=nt({token:t,factory:function(){return function C8(){return new d0(Ze(Ir))}()},providedIn:"root"})}return t})();function q2(t){return t.replace(/\/index.html$/,"")}var qi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(qi||{}),xn=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(xn||{}),mo=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(mo||{}),Xn=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(Xn||{});function eh(t,i){return Mo(Ki(t)[En.DateFormat],i)}function th(t,i){return Mo(Ki(t)[En.TimeFormat],i)}function nh(t,i){return Mo(Ki(t)[En.DateTimeFormat],i)}function ko(t,i){const e=Ki(t),n=e[En.NumberSymbols][i];if(typeof n>"u"){if(i===Xn.CurrencyDecimal)return e[En.NumberSymbols][Xn.Decimal];if(i===Xn.CurrencyGroup)return e[En.NumberSymbols][Xn.Group]}return n}function Q2(t){if(!t[En.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[En.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Mo(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function h0(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const F8=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nu={},R8=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Vs=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Vs||{}),ln=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ln||{}),cn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(cn||{});function N8(t,i,e,n){let o=function G8(t){if(X2(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,s=1,r=1]=t.split("-").map(a=>+a);return ih(o,s-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(F8))return function q8(t){const i=new Date(0);let e=0,n=0;const o=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-e,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,r,a,l,c),i}(n)}const i=new Date(t);if(!X2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Bs(e,i)||i;let a,r=[];for(;i;){if(a=R8.exec(i),!a){r.push(i);break}{r=r.concat(a.slice(1));const u=r.pop();if(!u)break;i=u}}let l=o.getTimezoneOffset();n&&(l=Y2(n,l),o=function K8(t,i,e){const n=e?-1:1,o=t.getTimezoneOffset();return function $8(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(Y2(i,o)-o))}(o,n,!0));let c="";return r.forEach(u=>{const p=function U8(t){if(g0[t])return g0[t];let i;switch(t){case"G":case"GG":case"GGG":i=Dn(cn.Eras,xn.Abbreviated);break;case"GGGG":i=Dn(cn.Eras,xn.Wide);break;case"GGGGG":i=Dn(cn.Eras,xn.Narrow);break;case"y":i=ii(ln.FullYear,1,0,!1,!0);break;case"yy":i=ii(ln.FullYear,2,0,!0,!0);break;case"yyy":i=ii(ln.FullYear,3,0,!1,!0);break;case"yyyy":i=ii(ln.FullYear,4,0,!1,!0);break;case"Y":i=ah(1);break;case"YY":i=ah(2,!0);break;case"YYY":i=ah(3);break;case"YYYY":i=ah(4);break;case"M":case"L":i=ii(ln.Month,1,1);break;case"MM":case"LL":i=ii(ln.Month,2,1);break;case"MMM":i=Dn(cn.Months,xn.Abbreviated);break;case"MMMM":i=Dn(cn.Months,xn.Wide);break;case"MMMMM":i=Dn(cn.Months,xn.Narrow);break;case"LLL":i=Dn(cn.Months,xn.Abbreviated,qi.Standalone);break;case"LLLL":i=Dn(cn.Months,xn.Wide,qi.Standalone);break;case"LLLLL":i=Dn(cn.Months,xn.Narrow,qi.Standalone);break;case"w":i=f0(1);break;case"ww":i=f0(2);break;case"W":i=f0(1,!0);break;case"d":i=ii(ln.Date,1);break;case"dd":i=ii(ln.Date,2);break;case"c":case"cc":i=ii(ln.Day,1);break;case"ccc":i=Dn(cn.Days,xn.Abbreviated,qi.Standalone);break;case"cccc":i=Dn(cn.Days,xn.Wide,qi.Standalone);break;case"ccccc":i=Dn(cn.Days,xn.Narrow,qi.Standalone);break;case"cccccc":i=Dn(cn.Days,xn.Short,qi.Standalone);break;case"E":case"EE":case"EEE":i=Dn(cn.Days,xn.Abbreviated);break;case"EEEE":i=Dn(cn.Days,xn.Wide);break;case"EEEEE":i=Dn(cn.Days,xn.Narrow);break;case"EEEEEE":i=Dn(cn.Days,xn.Short);break;case"a":case"aa":case"aaa":i=Dn(cn.DayPeriods,xn.Abbreviated);break;case"aaaa":i=Dn(cn.DayPeriods,xn.Wide);break;case"aaaaa":i=Dn(cn.DayPeriods,xn.Narrow);break;case"b":case"bb":case"bbb":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Standalone,!0);break;case"bbbb":i=Dn(cn.DayPeriods,xn.Wide,qi.Standalone,!0);break;case"bbbbb":i=Dn(cn.DayPeriods,xn.Narrow,qi.Standalone,!0);break;case"B":case"BB":case"BBB":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Format,!0);break;case"BBBB":i=Dn(cn.DayPeriods,xn.Wide,qi.Format,!0);break;case"BBBBB":i=Dn(cn.DayPeriods,xn.Narrow,qi.Format,!0);break;case"h":i=ii(ln.Hours,1,-12);break;case"hh":i=ii(ln.Hours,2,-12);break;case"H":i=ii(ln.Hours,1);break;case"HH":i=ii(ln.Hours,2);break;case"m":i=ii(ln.Minutes,1);break;case"mm":i=ii(ln.Minutes,2);break;case"s":i=ii(ln.Seconds,1);break;case"ss":i=ii(ln.Seconds,2);break;case"S":i=ii(ln.FractionalSeconds,1);break;case"SS":i=ii(ln.FractionalSeconds,2);break;case"SSS":i=ii(ln.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=sh(Vs.Short);break;case"ZZZZZ":i=sh(Vs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=sh(Vs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=sh(Vs.Long);break;default:return null}return g0[t]=i,i}(u);c+=p?p(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ih(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Bs(t,i){const e=function x8(t){return Ki(t)[En.LocaleId]}(t);if(nu[e]=nu[e]||{},nu[e][i])return nu[e][i];let n="";switch(i){case"shortDate":n=eh(t,mo.Short);break;case"mediumDate":n=eh(t,mo.Medium);break;case"longDate":n=eh(t,mo.Long);break;case"fullDate":n=eh(t,mo.Full);break;case"shortTime":n=th(t,mo.Short);break;case"mediumTime":n=th(t,mo.Medium);break;case"longTime":n=th(t,mo.Long);break;case"fullTime":n=th(t,mo.Full);break;case"short":const o=Bs(t,"shortTime"),s=Bs(t,"shortDate");n=oh(nh(t,mo.Short),[o,s]);break;case"medium":const r=Bs(t,"mediumTime"),a=Bs(t,"mediumDate");n=oh(nh(t,mo.Medium),[r,a]);break;case"long":const l=Bs(t,"longTime"),c=Bs(t,"longDate");n=oh(nh(t,mo.Long),[l,c]);break;case"full":const u=Bs(t,"fullTime"),p=Bs(t,"fullDate");n=oh(nh(t,mo.Full),[u,p])}return n&&(nu[e][i]=n),n}function oh(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Ko(t,i,e="-",n,o){let s="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,s=e));let r=String(t);for(;r.length0||a>-e)&&(a+=e),t===ln.Hours)0===a&&-12===e&&(a=12);else if(t===ln.FractionalSeconds)return function V8(t,i){return Ko(t,3).substring(0,i)}(a,i);const l=ko(r,Xn.MinusSign);return Ko(a,i,l,n,o)}}function Dn(t,i,e=qi.Format,n=!1){return function(o,s){return function H8(t,i,e,n,o,s){switch(e){case cn.Months:return function T8(t,i,e){const n=Ki(t),s=Mo([n[En.MonthsFormat],n[En.MonthsStandalone]],i);return Mo(s,e)}(i,o,n)[t.getMonth()];case cn.Days:return function w8(t,i,e){const n=Ki(t),s=Mo([n[En.DaysFormat],n[En.DaysStandalone]],i);return Mo(s,e)}(i,o,n)[t.getDay()];case cn.DayPeriods:const r=t.getHours(),a=t.getMinutes();if(s){const c=function k8(t){const i=Ki(t);return Q2(i),(i[En.ExtraData][2]||[]).map(n=>"string"==typeof n?h0(n):[h0(n[0]),h0(n[1])])}(i),u=function M8(t,i,e){const n=Ki(t);Q2(n);const s=Mo([n[En.ExtraData][0],n[En.ExtraData][1]],i)||[];return Mo(s,e)||[]}(i,o,n),p=c.findIndex(m=>{if(Array.isArray(m)){const[_,b]=m,E=r>=_.hours&&a>=_.minutes,P=r0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Vs.Short:return(o>=0?"+":"")+Ko(r,2,s)+Ko(Math.abs(o%60),2,s);case Vs.ShortGMT:return"GMT"+(o>=0?"+":"")+Ko(r,1,s);case Vs.Long:return"GMT"+(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);case Vs.Extended:return 0===n?"Z":(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const z8=0,rh=4;function Z2(t){return ih(t.getFullYear(),t.getMonth(),t.getDate()+(rh-t.getDay()))}function f0(t,i=!1){return function(e,n){let o;if(i){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,r=e.getDate();o=1+Math.floor((r+s)/7)}else{const s=Z2(e),r=function j8(t){const i=ih(t,z8,1).getDay();return ih(t,0,1+(i<=rh?rh:rh+7)-i)}(s.getFullYear()),a=s.getTime()-r.getTime();o=1+Math.round(a/6048e5)}return Ko(o,t,ko(n,Xn.MinusSign))}}function ah(t,i=!1){return function(e,n){return Ko(Z2(e).getFullYear(),t,ko(n,Xn.MinusSign),i)}}const g0={};function Y2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function X2(t){return t instanceof Date&&!isNaN(t.valueOf())}function nT(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[o,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(s)}return null}const b0=/\s+/,iT=[];let Ct=(()=>{class t{constructor(e,n,o,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=o,this._renderer=s,this.initialClasses=iT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(b0):iT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(b0):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(b0).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(n){return new(n||t)(V(Yp),V(yl),V(bt),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class rV{constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((o,s,r)=>{if(null==o.previousIndex)n.createEmbeddedView(this._template,new rV(o.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===s?void 0:s);else if(null!==s){const a=n.get(s);n.move(a,r),sT(a,o)}});for(let o=0,s=n.length;o{sT(n.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(Yp))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function sT(t,i){t.context.$implicit=i.item}let gt=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new aV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rT("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class aV{constructor(){this.$implicit=null,this.ngIf=null}}function rT(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ai(i)}'.`)}class y0{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let wl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),ch=(()=>{class t{constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new y0(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),x0=(()=>{class t{constructor(e,n,o){o._addDefault(new y0(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),Ht=(()=>{class t{constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[o,s]=e.split("."),r=-1===o.indexOf("-")?void 0:dr.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,r):this._renderer.removeStyle(this._ngEl.nativeElement,o,r)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(V(bt),V(yl),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),on=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:r}=this;this._viewRef=n.createEmbeddedView(o,s,r?{injector:r}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(V(go))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]})}return t})();const CV=new Ye("DATE_PIPE_DEFAULT_TIMEZONE"),vV=new Ye("DATE_PIPE_DEFAULT_OPTIONS");let Hs=(()=>{class t{constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,s){if(null==e||""===e||e!=e)return null;try{return N8(e,n??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(r){throw function Go(t,i){return new Ae(2100,!1)}()}}static#e=this.\u0275fac=function(n){return new(n||t)(V(us,16),V(CV,24),V(vV,24))};static#t=this.\u0275pipe=Vi({name:"date",type:t,pure:!0,standalone:!0})}return t})(),Xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();const cT="browser";function ei(t){return t===cT}function uT(t){return"server"===t}let LV=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new PV(Ze(Wt),window)})}return t})();class PV{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function FV(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=n.currentNode;for(;o;){const s=o.shadowRoot;if(s){const r=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(r)return r}o=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],o-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class dT{}class oB extends m8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class E0 extends oB{static makeCurrent(){!function g8(t){l0||(l0=t)}(new E0)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function sB(){return su=su||document.querySelector("base"),su?su.getAttribute("href"):null}();return null==e?null:function rB(t){ph=ph||document.createElement("a"),ph.setAttribute("href",t);const i=ph.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return nT(document.cookie,i)}}let ph,su=null,lB=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const D0=new Ye("EventManagerPlugins");let mT=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,o){return this._findPluginFor(n).addEventListener(e,n,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new Ae(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(D0),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class _T{constructor(i){this._doc=i}}const k0="ng-app-id";let IT=(()=>{class t{constructor(e,n,o,s={}){this.doc=e,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uT(s),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(o=>o.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${k0}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(o=>{null!=o.textContent&&n.set(o.textContent,o)}),n}return null}changeUsageCount(e,n){const o=this.styleRef;if(o.has(e)){const s=o.get(e);return s.usage+=n,s.usage}return o.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===e)return o.delete(n),s.removeAttribute(k0),s;{const r=this.doc.createElement("style");return this.nonce&&r.setAttribute("nonce",this.nonce),r.textContent=n,this.platformIsServer&&r.setAttribute(k0,this.appId),r}}addStyleToHost(e,n){const o=this.getStyleElement(e,n);e.appendChild(o);const s=this.styleRef,r=s.get(n)?.elements;r?r.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(hp),Ze(Oy,8),Ze($n))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const M0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},O0=/%COMP%/g,pB=new Ye("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vT(t,i){return i.map(e=>e.replace(O0,t))}let L0=(()=>{class t{constructor(e,n,o,s,r,a,l,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=r,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uT(a),this.defaultRenderer=new P0(e,r,l,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===To.ShadowDom&&(n={...n,encapsulation:To.Emulated});const o=this.getOrCreateRenderer(e,n);return o instanceof yT?o.applyToHost(e):o instanceof F0&&o.applyStyles(),o}getOrCreateRenderer(e,n){const o=this.rendererByCompId;let s=o.get(n.id);if(!s){const r=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case To.Emulated:s=new yT(l,c,n,this.appId,u,r,a,p);break;case To.ShadowDom:return new mB(l,c,e,n,r,a,this.nonce,p);default:s=new F0(l,c,n,u,r,a,p)}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(mT),Ze(IT),Ze(hp),Ze(pB),Ze(Wt),Ze($n),Ze(Tt),Ze(Oy))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class P0{constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(M0[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(bT(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(bT(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?this.doc.querySelector(i):i;if(!n)throw new Ae(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;const s=M0[o];s?i.setAttributeNS(s,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const o=M0[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(dr.DashCase|dr.Important)?i.style.setProperty(e,n,o&dr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&dr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){if("string"==typeof i&&!(i=_r().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if("__ngUnwrap__"===e)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))&&e.preventDefault()}}}function bT(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class mB extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vT(o.id,o.styles);for(const u of c){const p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class F0 extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?vT(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class yT extends F0{constructor(i,e,n,o,s,r,a,l){const c=o+"-"+n.id;super(i,e,n,s,r,a,l,c),this.contentAttr=function hB(t){return"_ngcontent-%COMP%".replace(O0,t)}(c),this.hostAttr=function fB(t){return"_nghost-%COMP%".replace(O0,t)}(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let _B=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o){return e.addEventListener(n,o,!1),()=>this.removeEventListener(e,n,o)}removeEventListener(e,n,o){return e.removeEventListener(n,o)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const xT=["alt","control","meta","shift"],IB={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let vB=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,o){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(n.pop());let r="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),r="code."),xT.forEach(c=>{const u=n.indexOf(c);u>-1&&(n.splice(u,1),r+=c+".")}),r+=s,0!=n.length||0===s.length)return null;const l={};return l.domEventName=o,l.fullKey=r,l}static matchEventFullKeyCode(e,n){let o=IB[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(o=e.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),xT.forEach(r=>{r!==o&&(0,CB[r])(e)&&(s+=r+".")}),s+=o,s===n)}static eventCallback(e,n,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const AB=_2(e8,"browser",[{provide:$n,useValue:cT},{provide:ky,useValue:function bB(){E0.makeCurrent()},multi:!0},{provide:Wt,useFactory:function xB(){return function C5(t){Cm=t}(document),document},deps:[]}]),wB=new Ye(""),TT=[{provide:qp,useClass:class aB{addToWindow(i){Tn.getAngularTestability=(n,o=!0)=>{const s=i.findTestabilityInTree(n,o);if(null==s)throw new Ae(5103,!1);return s},Tn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Tn.getAllAngularRootElements=()=>i.getAllRootElements(),Tn.frameworkStabilizers||(Tn.frameworkStabilizers=[]),Tn.frameworkStabilizers.push(n=>{const o=Tn.getAllAngularTestabilities();let s=o.length,r=!1;const a=function(l){r=r||l,s--,0==s&&n(r)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:p2,useClass:Z_,deps:[Tt,Y_,qp]},{provide:Z_,useClass:Z_,deps:[Tt,Y_,qp]}],ST=[{provide:Dm,useValue:"root"},{provide:Ps,useFactory:function yB(){return new Ps},deps:[]},{provide:D0,useClass:_B,multi:!0,deps:[Wt,Tt,$n]},{provide:D0,useClass:vB,multi:!0,deps:[Wt]},L0,IT,mT,{provide:Pc,useExisting:L0},{provide:dT,useClass:lB,deps:[]},[]];let R0=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:hp,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wB,12))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[...ST,...TT],imports:[Xe,t8]})}return t})(),ET=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:function(n){let o=null;return o=n?new n:function SB(){return new ET(Ze(Wt))}(),o},providedIn:"root"})}return t})();typeof window<"u"&&window;const{isArray:OB}=Array,{getPrototypeOf:LB,prototype:PB,keys:FB}=Object;function OT(t){if(1===t.length){const i=t[0];if(OB(i))return{args:i,keys:null};if(function RB(t){return t&&"object"==typeof t&&LB(t)===PB}(i)){const e=FB(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:NB}=Array;function V0(t){return at(i=>function VB(t,i){return NB(i)?t(...i):t(i)}(t,i))}function LT(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}let PT=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt))};static#t=this.\u0275dir=ut({type:t})}return t})(),ia=(()=>{class t extends PT{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275dir=ut({type:t,features:[st]})}return t})();const un=new Ye("NgValueAccessor"),zB={provide:un,useExisting:ft(()=>B0),multi:!0},UB=new Ye("CompositionEventMode");let B0=(()=>{class t extends PT{constructor(e,n,o){super(e,n),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jB(){const t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt),V(UB,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){1&n&&me("input",function(r){return o._handleInput(r.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(r){return o._compositionEnd(r.target.value)})},features:[yt([zB]),st]})}return t})();const Si=new Ye("NgValidators"),br=new Ye("NgAsyncValidators");function KT(t){return null!=t}function GT(t){return Kc(t)?ri(t):t}function qT(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function WT(t,i){return i.map(e=>e(t))}function QT(t){return t.map(i=>function KB(t){return!t.validate}(i)?i:e=>i.validate(e))}function H0(t){return null!=t?function ZT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return qT(WT(e,i))}}(QT(t)):null}function z0(t){return null!=t?function YT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return function BB(...t){const i=Yv(t),{args:e,keys:n}=OT(t),o=new ce(s=>{const{length:r}=e;if(!r)return void s.complete();const a=new Array(r);let l=r,c=r;for(let u=0;u{p||(p=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!p)&&(c||s.next(n?LT(n,a):a),s.complete())}))}});return i?o.pipe(V0(i)):o}(WT(e,i).map(GT)).pipe(at(qT))}}(QT(t)):null}function XT(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function j0(t){return t?Array.isArray(t)?t:[t]:[]}function fh(t,i){return Array.isArray(t)?t.includes(i):t===i}function tS(t,i){const e=j0(i);return j0(t).forEach(o=>{fh(e,o)||e.push(o)}),e}function nS(t,i){return j0(i).filter(e=>!fh(t,e))}class iS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=H0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=z0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Wi extends iS{get formDirective(){return null}get path(){return null}}class ds extends iS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oS{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let sS=(()=>{class t extends oS{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(ds,2))};static#t=this.\u0275dir=ut({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){2&n&&Ii("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[st]})}return t})();const ru="VALID",mh="INVALID",Tl="PENDING",au="DISABLED";function _h(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class cS{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===ru}get invalid(){return this.status===mh}get pending(){return this.status==Tl}get disabled(){return this.status===au}get enabled(){return this.status!==au}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(tS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(tS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(nS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(nS(i,this._rawAsyncValidators))}hasValidator(i){return fh(this._rawValidators,i)}hasAsyncValidator(i){return fh(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tl,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=au,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=ru,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ru||this.status===Tl)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?au:ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tl,this._hasOwnPendingAsyncValidator=!0;const e=GT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?au:this.errors?mh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tl)?Tl:this._anyControlsHaveStatus(mh)?mh:ru}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){_h(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function ZB(t){return Array.isArray(t)?H0(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function YB(t){return Array.isArray(t)?z0(t):t||null}(this._rawAsyncValidators)}}const Sl=new Ye("CallSetDisabledState",{providedIn:"root",factory:()=>Ih}),Ih="always";function lu(t,i,e=Ih){(function W0(t,i){const e=function JT(t){return t._rawValidators}(t);null!==i.validator?t.setValidators(XT(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=function eS(t){return t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(XT(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const o=()=>t.updateValueAndValidity();bh(i._rawValidators,o),bh(i._rawAsyncValidators,o)})(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function eH(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&uS(t,i)})}(t,i),function nH(t,i){const e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function tH(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&uS(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function JB(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function bh(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function uS(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function hS(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function fS(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const gS=class extends cS{constructor(i=null,e,n){super(function K0(t){return(_h(t)?t.validators:t)||null}(e),function G0(t,i){return(_h(i)?i.asyncValidators:t)||null}(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_h(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=fS(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){hS(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){hS(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){fS(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},uH={provide:ds,useExisting:ft(()=>xh)},IS=(()=>Promise.resolve())();let xh=(()=>{class t extends ds{constructor(e,n,o,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this.control=new gS,this._registered=!1,this.name="",this.update=new ge,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=function Y0(t,i){if(!i)return null;let e,n,o;return Array.isArray(i),i.forEach(s=>{s.constructor===B0?e=s:function sH(t){return Object.getPrototypeOf(t.constructor)===ia}(s)?n=s:o=s}),o||n||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Z0(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){IS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,o=0!==n&&xl(n);IS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Ch(t,i){return[...i.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi,9),V(Si,10),V(br,10),V(un,10),V(Ft,8),V(Sl,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([uH]),st,Hn]})}return t})(),vS=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})(),FH=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[vS]})}return t})(),uu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sl,useValue:e.callSetDisabledState??Ih}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[FH]})}return t})();function El(t,i){return L(i)?si(t,i,1):si(t,1)}function zs(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>t.call(i,s,o++)&&n.next(s)))})}function du(t){return Me((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}class Ah{}class wh{}class qo{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const o=e.slice(0,n),s=o.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof qo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const o=("a"===i.op?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":const s=i.value;if(s){let r=this.headers.get(e);if(!r)return;r=r.filter(a=>-1===s.indexOf(a)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(i,e){const n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class NH{encodeKey(i){return VS(i)}encodeValue(i){return VS(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const BH=/%(\d[a-f0-9])/gi,HH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VS(t){return encodeURIComponent(t).replace(BH,(i,e)=>HH[e]??i)}function Th(t){return`${t}`}class yr{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new NH,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function VH(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[r,a]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],l=e.get(r)||[];l.push(a),e.set(r,l)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],o=Array.isArray(n)?n.map(Th):[Th(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new yr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Th(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(Th(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class zH{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function BS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function HS(t){return typeof Blob<"u"&&t instanceof Blob}function zS(t){return typeof FormData<"u"&&t instanceof FormData}class pu{constructor(i,e,n,o){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function jH(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qo),this.context||(this.context=new zH),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ap.set(m,i.setHeaders[m]),l)),i.setParams&&(c=Object.keys(i.setParams).reduce((p,m)=>p.set(m,i.setParams[m]),c)),new pu(e,n,s,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:r})}}var Dl=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Dl||{});class sI{constructor(i,e=200,n="OK"){this.headers=i.headers||new qo,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class rI extends sI{constructor(i={}){super(i),this.type=Dl.ResponseHeader}clone(i={}){return new rI({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class kl extends sI{constructor(i={}){super(i),this.type=Dl.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new kl({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class jS extends sI{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function aI(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let lI=(()=>{class t{constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof pu)s=e;else{let l,c;l=o.headers instanceof qo?o.headers:new qo(o.headers),o.params&&(c=o.params instanceof yr?o.params:new yr({fromObject:o.params})),s=new pu(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const r=ht(s).pipe(El(l=>this.handler.handle(l)));if(e instanceof pu||"events"===o.observe)return r;const a=r.pipe(zs(l=>l instanceof kl));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(at(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(at(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new yr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,aI(o,n))}post(e,n,o={}){return this.request("POST",e,aI(o,n))}put(e,n,o={}){return this.request("PUT",e,aI(o,n))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Ah))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function KS(t,i){return i(t)}function KH(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}const qH=new Ye(""),hu=new Ye(""),GS=new Ye("");function WH(){let t=null;return(i,e)=>{null===t&&(t=(et(qH,{optional:!0})??[]).reduceRight(KH,KS));const n=et(Kp),o=n.add();return t(i,e).pipe(du(()=>n.remove(o)))}}let qS=(()=>{class t extends Ah{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=et(Kp)}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(hu),...this.injector.get(GS,[])]));this.chain=o.reduceRight((s,r)=>function GH(t,i,e){return(n,o)=>e.runInContext(()=>i(n,s=>t(s,o)))}(s,r,this.injector),KS)}const n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(du(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wh),Ze(po))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const XH=/^\)\]\}',?\n/;let QS=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Ae(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?ri(n.\u0275loadImpl()):ht(null)).pipe(Ao(()=>new ce(s=>{const r=n.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((E,P)=>r.setRequestHeader(E,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&r.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();r.responseType="json"!==E?E:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const E=r.statusText||"OK",P=new qo(r.getAllResponseHeaders()),W=function JH(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new rI({headers:P,status:r.status,statusText:E,url:W}),l},u=()=>{let{headers:E,status:P,statusText:W,url:te}=c(),fe=null;204!==P&&(fe=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=fe?200:0);let Ce=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof fe){const ve=fe;fe=fe.replace(XH,"");try{fe=""!==fe?JSON.parse(fe):null}catch(ke){fe=ve,Ce&&(Ce=!1,fe={error:ke,text:fe})}}Ce?(s.next(new kl({body:fe,headers:E,status:P,statusText:W,url:te||void 0})),s.complete()):s.error(new jS({error:fe,headers:E,status:P,statusText:W,url:te||void 0}))},p=E=>{const{url:P}=c(),W=new jS({error:E,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});s.error(W)};let m=!1;const _=E=>{m||(s.next(c()),m=!0);let P={type:Dl.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),s.next(P)},b=E=>{let P={type:Dl.UploadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),s.next(P)};return r.addEventListener("load",u),r.addEventListener("error",p),r.addEventListener("timeout",p),r.addEventListener("abort",p),e.reportProgress&&(r.addEventListener("progress",_),null!==a&&r.upload&&r.upload.addEventListener("progress",b)),r.send(a),s.next({type:Dl.Sent}),()=>{r.removeEventListener("error",p),r.removeEventListener("abort",p),r.removeEventListener("load",u),r.removeEventListener("timeout",p),e.reportProgress&&(r.removeEventListener("progress",_),null!==a&&r.upload&&r.upload.removeEventListener("progress",b)),r.readyState!==r.DONE&&r.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(dT))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const cI=new Ye("XSRF_ENABLED"),ZS=new Ye("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),YS=new Ye("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class XS{}let nz=(()=>{class t{constructor(e,n,o){this.doc=e,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=nT(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze($n),Ze(ZS))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function iz(t,i){const e=t.url.toLowerCase();if(!et(cI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=et(XS).getToken(),o=et(YS);return null!=n&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var xr=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(xr||{});function oz(...t){const i=[lI,QS,qS,{provide:Ah,useExisting:qS},{provide:wh,useExisting:QS},{provide:hu,useValue:iz,multi:!0},{provide:cI,useValue:!0},{provide:XS,useClass:nz}];for(const e of t)i.push(...e.\u0275providers);return function Tm(t){return{\u0275providers:t}}(i)}const JS=new Ye("LEGACY_INTERCEPTOR_FN");function sz(){return function sa(t,i){return{\u0275kind:t,\u0275providers:i}}(xr.LegacyInterceptors,[{provide:JS,useFactory:WH},{provide:hu,useExisting:JS,multi:!0}])}let eE=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[oz(sz())]})}return t})();class tE{}class dz{}const js="*";function Oo(t,i){return{type:7,name:t,definitions:i,options:{}}}function On(t,i=null){return{type:4,styles:i,timings:t}}function nE(t,i=null){return{type:2,steps:t,options:i}}function en(t){return{type:6,styles:t,offset:null}}function Us(t,i,e){return{type:0,name:t,styles:i,options:e}}function Ln(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ml(t,i=null){return{type:8,animation:t,options:i}}function Eh(t,i=null){return{type:10,animation:t,options:i}}class fu{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class iE{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,o=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==s&&this._onFinish()}),r.onDestroy(()=>{++n==s&&this._onDestroy()}),r.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function oE(t){return new Ae(3e3,!1)}function Ar(t){switch(t.length){case 0:return new fu;case 1:return t[0];default:return new iE(t)}}function sE(t,i,e=new Map,n=new Map){const o=[],s=[];let r=-1,a=null;if(i.forEach(l=>{const c=l.get("offset"),u=c==r,p=u&&a||new Map;l.forEach((m,_)=>{let b=_,E=m;if("offset"!==_)switch(b=t.normalizePropertyName(b,o),E){case"!":E=e.get(_);break;case js:E=n.get(_);break;default:E=t.normalizeStyleValue(_,b,E,o)}p.set(b,E)}),u||s.push(p),a=p,r=c}),o.length)throw function Pz(t){return new Ae(3502,!1)}();return s}function dI(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&pI(e,"start",t)));break;case"done":t.onDone(()=>n(e&&pI(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&pI(e,"destroy",t)))}}function pI(t,i,e){const s=hI(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),r=t._data;return null!=r&&(s._data=r),s}function hI(t,i,e,n,o="",s=0,r){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:s,disabled:!!r}}function _o(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function rE(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}const Gz=(()=>typeof document>"u"?null:document.documentElement)();function fI(t){const i=t.parentNode||t.host||null;return i===Gz?null:i}let ra=null,aE=!1;function lE(t,i){for(;i;){if(i===t)return!0;i=fI(i)}return!1}function cE(t,i,e){if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]}let uE=(()=>{class t{validateStyleProperty(e){return function Wz(t){ra||(ra=function Qz(){return typeof document<"u"?document.body:null}()||{},aE=!!ra.style&&"WebkitAppearance"in ra.style);let i=!0;return ra.style&&!function qz(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in ra.style,!i&&aE&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in ra.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return lE(e,n)}getParentElement(e){return fI(e)}query(e,n,o){return cE(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,s,r,a=[],l){return new fu(o,s)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),gI=(()=>{class t{static#e=this.NOOP=new uE}return t})();const Zz=1e3,mI="ng-enter",Dh="ng-leave",kh="ng-trigger",Mh=".ng-trigger",pE="ng-animating",_I=".ng-animating";function $s(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:II(parseFloat(i[1]),i[2])}function II(t,i){return"s"===i?t*Zz:t}function Oh(t,i,e){return t.hasOwnProperty("duration")?t:function Xz(t,i,e){let o,s=0,r="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return i.push(oE()),{duration:0,delay:0,easing:""};o=II(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=II(parseFloat(l),a[4]));const c=a[5];c&&(r=c)}else o=t;if(!e){let a=!1,l=i.length;o<0&&(i.push(function pz(){return new Ae(3100,!1)}()),a=!0),s<0&&(i.push(function hz(){return new Ae(3101,!1)}()),a=!0),a&&i.splice(l,0,oE())}return{duration:o,delay:s,easing:r}}(t,i,e)}function gu(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function hE(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function wr(t,i=new Map,e){if(e)for(let[n,o]of e)i.set(n,o);for(let[n,o]of t)i.set(n,o);return i}function ps(t,i,e){i.forEach((n,o)=>{const s=vI(o);e&&!e.has(o)&&e.set(o,t.style[s]),t.style[s]=n})}function aa(t,i){i.forEach((e,n)=>{const o=vI(n);t.style[o]=""})}function mu(t){return Array.isArray(t)?1==t.length?t[0]:nE(t):t}const CI=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(t){let i=[];if("string"==typeof t){let e;for(;e=CI.exec(t);)i.push(e[1]);CI.lastIndex=0}return i}function _u(t,i,e){const n=t.toString(),o=n.replace(CI,(s,r)=>{let a=i[r];return null==a&&(e.push(function gz(t){return new Ae(3003,!1)}()),a=""),a.toString()});return o==n?t:o}function Lh(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const tj=/-+([a-z0-9])/g;function vI(t){return t.replace(tj,(...i)=>i[1].toUpperCase())}function Io(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function mz(t){return new Ae(3004,!1)}()}}function mE(t,i){return window.getComputedStyle(t)[i]}const Ph="*";function oj(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function sj(t,i,e){if(":"==t[0]){const l=function rj(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof l)return void i.push(l);t=l}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function Dz(t){return new Ae(3015,!1)}()),i;const o=n[1],s=n[2],r=n[3];i.push(_E(o,r));"<"==s[0]&&!(o==Ph&&r==Ph)&&i.push(_E(r,o))}(n,e,i)):e.push(t),e}const Fh=new Set(["true","1"]),Rh=new Set(["false","0"]);function _E(t,i){const e=Fh.has(t)||Rh.has(t),n=Fh.has(i)||Rh.has(i);return(o,s)=>{let r=t==Ph||t==o,a=i==Ph||i==s;return!r&&e&&"boolean"==typeof o&&(r=o?Fh.has(t):Rh.has(t)),!a&&n&&"boolean"==typeof s&&(a=s?Fh.has(i):Rh.has(i)),r&&a}}const aj=new RegExp("s*:selfs*,?","g");function bI(t,i,e,n){return new lj(t).build(i,e,n)}class lj{constructor(i){this._driver=i}build(i,e,n){const o=new dj(e);return this._resetContextStyleTimingState(o),Io(this,mu(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0;const s=[],r=[];return"@"==i.name.charAt(0)&&e.errors.push(function Iz(){return new Ae(3006,!1)}()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,o+=l.depCount,r.push(l)}else e.errors.push(function Cz(){return new Ae(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:r,queryCount:n,depCount:o,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{gE(l).forEach(c=>{r.hasOwnProperty(c)||s.add(c)})})}),s.size&&(Lh(s.values()),e.errors.push(function vz(t,i){return new Ae(3008,!1)}()))}return{type:0,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=Io(this,mu(i.animation),e);return{type:1,matchers:oj(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:la(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>Io(this,n,e)),options:la(i.options)}}visitGroup(i,e){const n=e.currentTime;let o=0;const s=i.steps.map(r=>{e.currentTime=n;const a=Io(this,r,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:s,options:la(i.options)}}visitAnimate(i,e){const n=function hj(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return yI(Oh(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=yI(0,0,"");return s.dynamic=!0,s.strValue=e,s}const o=Oh(e,i);return yI(o.duration,o.delay,o.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let o,s=i.styles?i.styles:en({});if(5==s.type)o=this.visitKeyframes(s,e);else{let r=i.styles,a=!1;if(!r){a=!0;const c={};n.easing&&(c.easing=n.easing),r=en(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(r,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of o)"string"==typeof a?a===js?n.push(a):e.errors.push(new Ae(3002,!1)):n.push(hE(a));let s=!1,r=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(r=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let o=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),i.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let p=!0;u&&(s!=o&&s>=u.startTime&&o<=u.endTime&&(e.errors.push(function yz(t,i,e,n,o){return new Ae(3010,!1)}()),p=!1),s=u.startTime),p&&c.set(l,{startTime:s,endTime:o}),e.options&&function ej(t,i,e){const n=i.params||{},o=gE(t);o.length&&o.forEach(s=>{n.hasOwnProperty(s)||e.push(function fz(t){return new Ae(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function xz(){return new Ae(3011,!1)}()),n;let s=0;const r=[];let a=!1,l=!1,c=0;const u=i.steps.map(W=>{const te=this._makeStyleAst(W,e);let fe=null!=te.offset?te.offset:function pj(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(te.styles),Ce=0;return null!=fe&&(s++,Ce=te.offset=fe),l=l||Ce<0||Ce>1,a=a||Ce0&&s{const fe=m>0?te==_?1:m*te:r[te],Ce=fe*P;e.currentTime=b+E.delay+Ce,E.duration=Ce,this._validateStyleAst(W,e),W.offset=fe,n.styles.push(W)}),n}visitReference(i,e){return{type:8,animation:Io(this,mu(i.animation),e),options:la(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:la(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:la(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;const[s,r]=function cj(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(aj,"")),t=t.replace(/@\*/g,Mh).replace(/@\w+/g,e=>Mh+"-"+e.slice(1)).replace(/:animating/g,_I),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+s:s,_o(e.collectedStyles,e.currentQuerySelector,new Map);const a=Io(this,mu(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:r,animation:a,originalSelector:i.selector,options:la(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Sz(){return new Ae(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Oh(i.timings,e.errors,!0);return{type:12,animation:Io(this,mu(i.animation),e),timings:n,options:null}}}class dj{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function la(t){return t?(t=gu(t)).params&&(t.params=function uj(t){return t?gu(t):null}(t.params)):t={},t}function yI(t,i,e){return{duration:t,delay:i,easing:e}}function xI(t,i,e,n,o,s,r=null,a=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:s,totalTime:o+s,easing:r,subTimeline:a}}class Nh{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const mj=new RegExp(":enter","g"),Ij=new RegExp(":leave","g");function AI(t,i,e,n,o,s=new Map,r=new Map,a,l,c=[]){return(new Cj).buildKeyframes(t,i,e,n,o,s,r,a,l,c)}class Cj{buildKeyframes(i,e,n,o,s,r,a,l,c,u=[]){c=c||new Nh;const p=new wI(i,e,c,o,s,u,[]);p.options=l;const m=l.delay?$s(l.delay):0;p.currentTimeline.delayNextStep(m),p.currentTimeline.setStyles([r],null,p.errors,l),Io(this,n,p);const _=p.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let E=_.length-1;E>=0;E--){const P=_[E];if(P.element===e){b=P;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,p.errors,l)}return _.length?_.map(b=>b.buildKeyframes()):[xI(e,[],[],[],0,m,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const o=e.createSubContext(i.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const o of i){const s=o?.delay;if(s){const r="number"==typeof s?s:$s(_u(s,o?.params??{},e.errors));n.delayNextStep(r)}}}_visitSubInstructions(i,e,n){let s=e.currentTimeline.currentTime;const r=null!=n.duration?$s(n.duration):null,a=null!=n.delay?$s(n.delay):null;return 0!==r&&i.forEach(l=>{const c=e.appendInstructionToTimeline(l,r,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(i,e){e.updateOptions(i.options,!0),Io(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let o=e;const s=i.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Vh);const r=$s(s.delay);o.delayNextStep(r)}i.steps.length&&(i.steps.forEach(r=>Io(this,r,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let o=e.currentTimeline.currentTime;const s=i.options&&i.options.delay?$s(i.options.delay):0;i.steps.forEach(r=>{const a=e.createSubContext(i.options);s&&a.delayNextStep(s),Io(this,r,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return Oh(e.params?_u(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();const s=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(s):n.setStyles(i.styles,s,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,o=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,i.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+s),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,o=i.options||{},s=o.delay?$s(o.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vh);let r=n;const a=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const p=e.createSubContext(i.options,c);s&&p.delayNextStep(s),c===e.element&&(l=p.currentTimeline),Io(this,i.animation,p),p.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,p.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,o=e.currentTimeline,s=i.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let l=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const p=u.currentTime;Io(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-p+(o.startTime-n.currentTimeline.startTime)}}const Vh={};class wI{constructor(i,e,n,o,s,r,a,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let o=this.options;null!=n.duration&&(o.duration=$s(n.duration)),null!=n.delay&&(o.delay=$s(n.delay));const s=n.params;if(s){let r=o.params;r||(r=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=_u(s[a],r,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){const o=e||this.element,s=new wI(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=Vh,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},s=new vj(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,s,r){let a=[];if(o&&a.push(this.element),i.length>0){i=(i=i.replace(mj,"."+this._enterClassName)).replace(Ij,"."+this._leaveClassName);let c=this._driver.query(this.element,i,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&0==a.length&&r.push(function Ez(t){return new Ae(3014,!1)}()),a}}class Bh{constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Bh(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||js),this._currentKeyframe.set(e,js);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},r=function bj(t,i){const e=new Map;let n;return t.forEach(o=>{if("*"===o){n=n||i.keys();for(let s of n)e.set(s,js)}else wr(o,e)}),e}(i,this._globalTimelineStyles);for(let[a,l]of r){const c=_u(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??js),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=wr(a,new Map,this._backFill);c.forEach((u,p)=>{"!"===u?i.add(p):u===js&&e.add(p)}),n||c.set("offset",l/this.duration),o.push(c)});const s=i.size?Lh(i.values()):[],r=e.size?Lh(e.values()):[];if(n){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return xI(this.element,o,s,r,this.duration,this.startTime,this.easing,!1)}}class vj extends Bh{constructor(i,e,n,o,s,r,a=!1){super(i,e,r.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,a=e/r,l=wr(i[0]);l.set("offset",0),s.push(l);const c=wr(i[0]);c.set("offset",vE(a)),s.push(c);const u=i.length-1;for(let p=1;p<=u;p++){let m=wr(i[p]);const _=m.get("offset");m.set("offset",vE((e+_*n)/r)),s.push(m)}n=r,e=0,o="",i=s}return xI(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}}function vE(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class TI{}const yj=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 xj extends TI{normalizePropertyName(i,e){return vI(i)}normalizeStyleValue(i,e,n,o){let s="";const r=n.toString().trim();if(yj.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function _z(t,i){return new Ae(3005,!1)}())}return r+s}}function bE(t,i,e,n,o,s,r,a,l,c,u,p,m){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:s,toState:n,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:m}}const SI={};class yE{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return function Aj(t,i,e,n,o){return t.some(s=>s(i,e,n,o))}(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return void 0!==i&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,s,r,a,l,c,u){const p=[],m=this.ast.options&&this.ast.options.params||SI,b=this.buildStyles(n,a&&a.params||SI,p),E=l&&l.params||SI,P=this.buildStyles(o,E,p),W=new Set,te=new Map,fe=new Map,Ce="void"===o,ve={params:wj(E,m),delay:this.ast.options?.delay},ke=u?[]:AI(i,e,this.ast.animation,s,r,b,P,ve,c,p);let Pe=0;if(ke.forEach(Ke=>{Pe=Math.max(Ke.duration+Ke.delay,Pe)}),p.length)return bE(e,this._triggerName,n,o,Ce,b,P,[],[],te,fe,Pe,p);ke.forEach(Ke=>{const pt=Ke.element,jt=_o(te,pt,new Set);Ke.preStyleProps.forEach(vn=>jt.add(vn));const Vt=_o(fe,pt,new Set);Ke.postStyleProps.forEach(vn=>Vt.add(vn)),pt!==e&&W.add(pt)});const $e=Lh(W.values());return bE(e,this._triggerName,n,o,Ce,b,P,ke,$e,te,fe,Pe)}}function wj(t,i){const e=gu(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class Tj{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,o=gu(this.defaultParams);return Object.keys(i).forEach(s=>{const r=i[s];null!==r&&(o[s]=r)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((r,a)=>{r&&(r=_u(r,o,e));const l=this.normalizer.normalizePropertyName(a,e);r=this.normalizer.normalizeStyleValue(a,l,r,e),n.set(a,r)})}),n}}class Ej{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new Tj(o.style,o.options&&o.options.params||{},n))}),xE(this.states,"true","1"),xE(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new yE(i,o,this.states))}),this.fallbackTransition=function Dj(t,i,e){return new yE(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,a)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(r=>r.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function xE(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const kj=new Nh;class Mj{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],s=bI(this._driver,e,n,[]);if(n.length)throw function Fz(t){return new Ae(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,e,n){const o=i.element,s=sE(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,s,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const o=[],s=this._animations.get(i);let r;const a=new Map;if(s?(r=AI(this._driver,e,s,mI,Dh,new Map,new Map,n,kj,o),r.forEach(u=>{const p=_o(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(o.push(function Rz(){return new Ae(3300,!1)}()),r=[]),o.length)throw function Nz(t){return new Ae(3504,!1)}();a.forEach((u,p)=>{u.forEach((m,_)=>{u.set(_,this._driver.computeStyle(p,_,js))})});const c=Ar(r.map(u=>{const p=a.get(u.element);return this._buildPlayer(u,new Map,p)}));return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function Vz(t){return new Ae(3301,!1)}();return e}listen(i,e,n,o){const s=hI(e,"","","");return dI(this._getPlayer(i),n,s,o),()=>{}}command(i,e,n,o){if("register"==n)return void this.register(i,o[0]);if("create"==n)return void this.create(i,e,o[0]||{});const s=this._getPlayer(i);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i)}}}const AE="ng-animate-queued",EI="ng-animate-disabled",Rj=[],wE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wo="__ng_removed";class DI{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function zj(t){return t??null}(n?i.value:i),n){const s=gu(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(o=>{null==n[o]&&(n[o]=e[o])})}}}const Iu="void",kI=new DI(Iu);class Vj{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Lo(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw function Bz(t,i){return new Ae(3302,!1)}();if(null==n||0==n.length)throw function Hz(t){return new Ae(3303,!1)}();if(!function jj(t){return"start"==t||"done"==t}(n))throw function zz(t,i){return new Ae(3400,!1)}();const s=_o(this._elementListeners,i,[]),r={name:e,phase:n,callback:o};s.push(r);const a=_o(this._engine.statesByElement,i,new Map);return a.has(e)||(Lo(i,kh),Lo(i,kh+"-"+e),a.set(e,kI)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(r);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function jz(t){return new Ae(3401,!1)}();return e}trigger(i,e,n,o=!0){const s=this._getTrigger(e),r=new MI(this.id,e,i);let a=this._engine.statesByElement.get(i);a||(Lo(i,kh),Lo(i,kh+"-"+e),this._engine.statesByElement.set(i,a=new Map));let l=a.get(e);const c=new DI(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=kI),c.value!==Iu&&l.value===c.value){if(!function Kj(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let o=0;o{aa(i,P),ps(i,W)})}return}const m=_o(this._engine.playersByElement,i,[]);m.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let _=s.matchTransition(l.value,c.value,i,c.params),b=!1;if(!_){if(!o)return;_=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:_,fromState:l,toState:c,player:r,isFallbackTransition:b}),b||(Lo(i,AE),r.onStart(()=>{Ol(i,AE)})),r.onDone(()=>{let E=this.players.indexOf(r);E>=0&&this.players.splice(E,1);const P=this._engine.playersByElement.get(i);if(P){let W=P.indexOf(r);W>=0&&P.splice(W,1)}}),this.players.push(r),m.push(r),r}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,Mh,!0);n.forEach(o=>{if(o[Wo])return;const s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(r=>r.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){const s=this._engine.statesByElement.get(i),r=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){const u=this.trigger(i,c,Iu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,r),n&&Ar(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const o=new Set;e.forEach(s=>{const r=s.name;if(o.has(r))return;o.add(r);const l=this._triggers.get(r).fallbackTransition,c=n.get(r)||kI,u=new DI(Iu),p=new MI(this.id,r,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:r,transition:l,fromState:c,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(i):[];if(s&&s.length)o=!0;else{let r=i;for(;r=r.parentNode;)if(n.statesByElement.get(r)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{const s=i[Wo];(!s||s===wE)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Lo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const o=n.player;if(o.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(a=>{if(a.name==n.triggerName){const l=hI(s,n.triggerName,n.fromState.value,n.toState.value);l._data=i,dI(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{const s=n.transition.ast.depCount,r=o.transition.ast.depCount;return 0==s||0==r?s-r:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class Bj{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Vj(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,i),r=!0;break}a=this.driver.getParentElement(a)}r||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);const o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let o of n.values())if(o.namespaceId){const s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}return e}trigger(i,e,n,o){if(Hh(e)){const s=this._fetchNamespace(i);if(s)return s.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Hh(e))return;const s=e[Wo];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(i){const r=this._fetchNamespace(i);r&&r.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Lo(i,EI)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Ol(i,EI))}removeNode(i,e,n){if(Hh(e)){const o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);const s=this.namespacesByHostElement.get(e);s&&s.id!==i&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,s){this.collectedLeaveElements.push(e),e[Wo]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,e,n,o,s){return Hh(e)?this._fetchNamespace(i).listen(e,n,o,s):()=>{}}_buildInstruction(i,e,n,o,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,s)}destroyInnerAnimations(i){let e=this.driver.query(i,Mh,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,_I,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Ar(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Wo];if(e&&e.setForRemoval){if(i[Wo]=wE,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(EI)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?Ar(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw function Uz(t){return new Ae(3402,!1)}()}_flushAnimations(i,e){const n=new Nh,o=[],s=new Map,r=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(We=>{u.add(We);const tt=this.driver.query(We,".ng-animate-queued",!0);for(let ct=0;ct{const ct=mI+E++;b.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))});const P=[],W=new Set,te=new Set;for(let We=0;WeW.add(Kt)):te.add(tt))}const fe=new Map,Ce=EE(m,Array.from(W));Ce.forEach((We,tt)=>{const ct=Dh+E++;fe.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))}),i.push(()=>{_.forEach((We,tt)=>{const ct=b.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),Ce.forEach((We,tt)=>{const ct=fe.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),P.forEach(We=>{this.processLeaveNode(We)})});const ve=[],ke=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ct=>{const Kt=ct.player,Pn=ct.element;if(ve.push(Kt),this.collectedEnterElements.length){const Ri=Pn[Wo];if(Ri&&Ri.setForMove){if(Ri.previousTriggersValues&&Ri.previousTriggersValues.has(ct.triggerName)){const wa=Ri.previousTriggersValues.get(ct.triggerName),Vo=this.statesByElement.get(ct.element);if(Vo&&Vo.has(ct.triggerName)){const ug=Vo.get(ct.triggerName);ug.value=wa,Vo.set(ct.triggerName,ug)}}return void Kt.destroy()}}const Zi=!p||!this.driver.containsElement(p,Pn),oi=fe.get(Pn),ro=b.get(Pn),wn=this._buildInstruction(ct,n,ro,oi,Zi);if(wn.errors&&wn.errors.length)return void ke.push(wn);if(Zi)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);if(ct.isFallbackTransition)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);const ec=[];wn.timelines.forEach(Ri=>{Ri.stretchStartingKeyframe=!0,this.disabledNodes.has(Ri.element)||ec.push(Ri)}),wn.timelines=ec,n.append(Pn,wn.timelines),r.push({instruction:wn,player:Kt,element:Pn}),wn.queriedElements.forEach(Ri=>_o(a,Ri,[]).push(Kt)),wn.preStyleProps.forEach((Ri,wa)=>{if(Ri.size){let Vo=l.get(wa);Vo||l.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))}}),wn.postStyleProps.forEach((Ri,wa)=>{let Vo=c.get(wa);Vo||c.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))})});if(ke.length){const We=[];ke.forEach(tt=>{We.push(function $z(t,i){return new Ae(3505,!1)}())}),ve.forEach(tt=>tt.destroy()),this.reportError(We)}const Pe=new Map,$e=new Map;r.forEach(We=>{const tt=We.element;n.has(tt)&&($e.set(tt,tt),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,Pe))}),o.forEach(We=>{const tt=We.element;this._getPreviousPlayers(tt,!1,We.namespaceId,We.triggerName,null).forEach(Kt=>{_o(Pe,tt,[]).push(Kt),Kt.destroy()})});const Ke=P.filter(We=>kE(We,l,c)),pt=new Map;SE(pt,this.driver,te,c,js).forEach(We=>{kE(We,l,c)&&Ke.push(We)});const Vt=new Map;_.forEach((We,tt)=>{SE(Vt,this.driver,new Set(We),l,"!")}),Ke.forEach(We=>{const tt=pt.get(We),ct=Vt.get(We);pt.set(We,new Map([...tt?.entries()??[],...ct?.entries()??[]]))});const vn=[],hi=[],wt={};r.forEach(We=>{const{element:tt,player:ct,instruction:Kt}=We;if(n.has(tt)){if(u.has(tt))return ct.onDestroy(()=>ps(tt,Kt.toStyles)),ct.disabled=!0,ct.overrideTotalTime(Kt.totalTime),void o.push(ct);let Pn=wt;if($e.size>1){let oi=tt;const ro=[];for(;oi=oi.parentNode;){const wn=$e.get(oi);if(wn){Pn=wn;break}ro.push(oi)}ro.forEach(wn=>$e.set(wn,Pn))}const Zi=this._buildAnimation(ct.namespaceId,Kt,Pe,s,Vt,pt);if(ct.setRealPlayer(Zi),Pn===wt)vn.push(ct);else{const oi=this.playersByElement.get(Pn);oi&&oi.length&&(ct.parentPlayer=Ar(oi)),o.push(ct)}}else aa(tt,Kt.fromStyles),ct.onDestroy(()=>ps(tt,Kt.toStyles)),hi.push(ct),u.has(tt)&&o.push(ct)}),hi.forEach(We=>{const tt=s.get(We.element);if(tt&&tt.length){const ct=Ar(tt);We.setRealPlayer(ct)}}),o.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!Zi.destroyed);Pn.length?Uj(this,tt,Pn):this.processLeaveNode(tt)}return P.length=0,vn.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const tt=this.players.indexOf(We);this.players.splice(tt,1)}),We.play()}),vn}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,s){let r=[];if(e){const a=this.playersByQueriedElement.get(i);a&&(r=a)}else{const a=this.playersByElement.get(i);if(a){const l=!s||s==Iu;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||r.push(c)})}}return(n||o)&&(r=r.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),r}_beforeAnimationBuild(i,e,n){const s=e.element,r=e.isRemovalTransition?void 0:i,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,p=_o(n,c,[]);this._getPreviousPlayers(c,u,r,a,e.toState).forEach(_=>{const b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),p.push(_)})}aa(s,e.fromStyles)}_buildAnimation(i,e,n,o,s,r){const a=e.triggerName,l=e.element,c=[],u=new Set,p=new Set,m=e.timelines.map(b=>{const E=b.element;u.add(E);const P=E[Wo];if(P&&P.removedBeforeQueried)return new fu(b.duration,b.delay);const W=E!==l,te=function $j(t){const i=[];return DE(t,i),i}((n.get(E)||Rj).map(Pe=>Pe.getRealPlayer())).filter(Pe=>!!Pe.element&&Pe.element===E),fe=s.get(E),Ce=r.get(E),ve=sE(this._normalizer,b.keyframes,fe,Ce),ke=this._buildPlayer(b,ve,te);if(b.subTimeline&&o&&p.add(E),W){const Pe=new MI(i,a,E);Pe.setRealPlayer(ke),c.push(Pe)}return ke});c.forEach(b=>{_o(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function Hj(t,i,e){let n=t.get(i);if(n){if(n.length){const o=n.indexOf(e);n.splice(o,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>Lo(b,pE));const _=Ar(m);return _.onDestroy(()=>{u.forEach(b=>Ol(b,pE)),ps(l,e.toStyles)}),p.forEach(b=>{_o(o,b,[]).push(_)}),_}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new fu(i.duration,i.delay)}}class MI{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new fu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>dI(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){_o(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Hh(t){return t&&1===t.nodeType}function TE(t,i){const e=t.style.display;return t.style.display=i??"none",e}function SE(t,i,e,n,o){const s=[];e.forEach(l=>s.push(TE(l)));const r=[];n.forEach((l,c)=>{const u=new Map;l.forEach(p=>{const m=i.computeStyle(c,p,o);u.set(p,m),(!m||0==m.length)&&(c[Wo]=Nj,r.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>TE(l,s[a++])),r}function EE(t,i){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==i.length)return e;const o=new Set(i),s=new Map;function r(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:r(c),s.set(a,l),l}return i.forEach(a=>{const l=r(a);1!==l&&e.get(l).push(a)}),e}function Lo(t,i){t.classList?.add(i)}function Ol(t,i){t.classList?.remove(i)}function Uj(t,i,e){Ar(e).onDone(()=>t.processLeaveNode(i))}function DE(t,i){for(let e=0;eo.add(s)):i.set(t,n),e.delete(t),!0}class zh{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Bj(i,e,n),this._timelineEngine=new Mj(i,e,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,n,o,s){const r=i+"-"+o;let a=this._triggerCache[r];if(!a){const l=[],u=bI(this._driver,s,l,[]);if(l.length)throw function Lz(t,i){return new Ae(3404,!1)}();a=function Sj(t,i,e){return new Ej(t,i,e)}(o,u,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,o,a)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if("@"==n.charAt(0)){const[s,r]=rE(n);this._timelineEngine.command(s,e,r,o)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,s){if("@"==n.charAt(0)){const[r,a]=rE(n);return this._timelineEngine.listen(r,e,a,s)}return this._transitionEngine.listen(i,e,n,o,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let qj=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ps(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ps(this._element,this._initialStyles),this._endStyles&&(ps(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(aa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(aa(this._element,this._endStyles),this._endStyles=null),ps(this._element,this._initialStyles),this._state=3)}}return t})();function OI(t){let i=null;return t.forEach((e,n)=>{(function Wj(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class ME{constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{"offset"!==o&&i.set(o,this._finished?n:mE(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Qj{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return lE(i,e)}getParentElement(i){return fI(i)}query(i,e,n){return cE(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,o,s,r=[]){const l={duration:n,delay:o,fill:0==o?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=r.filter(_=>_ instanceof ME);(function nj(t,i){return 0===t||0===i})(n,o)&&u.forEach(_=>{_.currentSnapshot.forEach((b,E)=>c.set(E,b))});let p=function Jz(t){return t.length?t[0]instanceof Map?t:t.map(i=>hE(i)):[]}(e).map(_=>wr(_));p=function ij(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((s,r)=>{n.has(r)||o.push(r),n.set(r,s)}),o.length)for(let s=1;sr.set(a,mE(t,a)))}}return i}(i,p,c);const m=function Gj(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=OI(i[0]),i.length>1&&(n=OI(i[i.length-1]))):i instanceof Map&&(e=OI(i)),e||n?new qj(t,e,n):null}(i,p);return new ME(i,p,l,m)}}let Zj=(()=>{class t extends tE{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:To.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?nE(e):e;return OE(this._renderer,null,n,"register",[o]),new Yj(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class Yj extends dz{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Xj(this._id,i,e||{},this._renderer)}}class Xj{constructor(i,e,n,o){this.id=i,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return OE(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function OE(t,i,e,n,o){return t.setProperty(i,`@@${e}:${n}`,o)}const LE="@.disabled";let Jj=(()=>{class t{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(s,r)=>{const a=r?.parentNode(s);a&&r.removeChild(a,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let u=this._rendererCache.get(s);return u||(u=new PE("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const r=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(r,a,e,u.name,u)};return n.data.animation.forEach(l),new eU(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){e>=0&&en(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[r,a]=s;r(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(zh),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class PE{constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==LE?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class eU extends PE{constructor(i,e,n,o,s){super(e,n,o,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const o=function tU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let s=e.slice(1),r="";return"@"!=s.charAt(0)&&([s,r]=function nU(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,o,s,r,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(i,e,n)}}const FE=[{provide:tE,useClass:Zj},{provide:TI,useFactory:function oU(){return new xj}},{provide:zh,useClass:(()=>{class t extends zh{constructor(e,n,o,s){super(e.body,n,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(gI),Ze(TI),Ze(ta))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})()},{provide:Pc,useFactory:function sU(t,i,e){return new Jj(t,i,e)},deps:[L0,zh,Tt]}],LI=[{provide:gI,useFactory:()=>new Qj},{provide:My,useValue:"BrowserAnimations"},...FE],RE=[{provide:gI,useClass:uE},{provide:My,useValue:"NoopAnimations"},...FE];let NE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?RE:LI}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:LI,imports:[R0]})}return t})();function Cu(...t){const i=ic(t),e=Yv(t),{args:n,keys:o}=OT(t);if(0===n.length)return ri([],i);const s=new ce(function aU(t,i,e=_e){return n=>{VE(i,()=>{const{length:o}=t,s=new Array(o);let r=o,a=o;for(let l=0;l{const c=ri(t[l],i);let u=!1;c.subscribe(Ue(n,p=>{s[l]=p,u||(u=!0,a--),a||n.next(e(s.slice()))},()=>{--r||n.complete()}))},n)},n)}}(n,i,o?r=>LT(o,r):_e));return e?s.pipe(V0(e)):s}function VE(t,i,e){t?ws(e,t,i):i()}const Uh=ae(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function PI(...t){return function lU(){return Ta(1)}()(ri(t,ic(t)))}function BE(t){return new ce(i=>{Ni(t()).subscribe(i)})}function Ll(t,i){const e=L(t)?t:()=>t,n=o=>o.error(e());return new ce(i?o=>i.schedule(n,0,o):n)}function FI(){return Me((t,i)=>{let e=null;t._refCount++;const n=Ue(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class HE extends ce{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Be(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new F;const e=this.getSubject();i.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=F.EMPTY)}return i}refCount(){return FI()(this)}}function Pl(t){return t<=0?()=>es:Me((i,e)=>{let n=0;i.subscribe(Ue(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function $h(t){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function zE(t=uU){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function uU(){return new Uh}function ca(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,Pl(1),e?$h(i):zE(()=>new Uh))}function Ei(t,i,e){const n=L(t)||i||e?{next:t,error:i,complete:e}:t;return n?Me((o,s)=>{var r;null===(r=n.subscribe)||void 0===r||r.call(n);let a=!0;o.subscribe(Ue(s,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),s.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),s.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),s.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):_e}function Ci(t){return Me((i,e)=>{let s,n=null,o=!1;n=i.subscribe(Ue(e,void 0,void 0,r=>{s=Ni(t(r,Ci(t)(i))),n?(n.unsubscribe(),n=null,s.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,s.subscribe(e))})}function RI(t){return t<=0?()=>es:Me((i,e)=>{let n=[];i.subscribe(Ue(e,o=>{n.push(o),t{for(const o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}const Ot="primary",vu=Symbol("RouteTitle");class mU{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Fl(t){return new mU(t)}function _U(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[s]===o)}return t===i}function UE(t){return t.length>0?t[t.length-1]:null}function Tr(t){return function rU(t){return!!t&&(t instanceof ce||L(t.lift)&&L(t.subscribe))}(t)?t:Kc(t)?ri(Promise.resolve(t)):ht(t)}const CU={exact:function GE(t,i,e){if(!ua(t.segments,i.segments)||!Kh(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!GE(t.children[n],i.children[n],e))return!1;return!0},subset:qE},$E={exact:function vU(t,i){return hs(t,i)},subset:function bU(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>jE(t[e],i[e]))},ignored:()=>!0};function KE(t,i,e){return CU[e.paths](t.root,i.root,e.matrixParams)&&$E[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function qE(t,i,e){return WE(t,i,i.segments,e)}function WE(t,i,e,n){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!ua(o,e)||i.hasChildren()||!Kh(o,e,n))}if(t.segments.length===e.length){if(!ua(t.segments,e)||!Kh(t.segments,e,n))return!1;for(const o in i.children)if(!t.children[o]||!qE(t.children[o],i.children[o],n))return!1;return!0}{const o=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(ua(t.segments,o)&&Kh(t.segments,o,n)&&t.children[Ot])&&WE(t.children[Ot],i,s,n)}}function Kh(t,i,e){return i.every((n,o)=>$E[e](t[o].parameters,n.parameters))}class Rl{constructor(i=new gn([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return AU.serialize(this)}}class gn{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gh(this)}}class bu{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Fl(this.parameters)),this._parameterMap}toString(){return YE(this)}}function ua(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let yu=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new NI},providedIn:"root"})}return t})();class NI{parse(i){const e=new FU(i);return new Rl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${xu(i.root,!0)}`,n=function SU(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(o=>`${qh(e)}=${qh(o)}`).join("&"):`${qh(e)}=${qh(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function wU(t){return encodeURI(t)}(i.fragment)}`:""}`}}const AU=new NI;function Gh(t){return t.segments.map(i=>YE(i)).join("/")}function xu(t,i){if(!t.hasChildren())return Gh(t);if(i){const e=t.children[Ot]?xu(t.children[Ot],!1):"",n=[];return Object.entries(t.children).forEach(([o,s])=>{o!==Ot&&n.push(`${o}:${xu(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function xU(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Ot&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Ot&&(e=e.concat(i(o,n)))}),e}(t,(n,o)=>o===Ot?[xu(t.children[Ot],!1)]:[`${o}:${xu(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ot]?`${Gh(t)}/${e[0]}`:`${Gh(t)}/(${e.join("//")})`}}function QE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qh(t){return QE(t).replace(/%3B/gi,";")}function VI(t){return QE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wh(t){return decodeURIComponent(t)}function ZE(t){return Wh(t.replace(/\+/g,"%20"))}function YE(t){return`${VI(t.path)}${function TU(t){return Object.keys(t).map(i=>`;${VI(i)}=${VI(t[i])}`).join("")}(t.parameters)}`}const EU=/^[^\/()?;#]+/;function BI(t){const i=t.match(EU);return i?i[0]:""}const DU=/^[^\/()?;=#]+/,MU=/^[^=?&#]+/,LU=/^[^&#]+/;class FU{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gn([],{}):new gn([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ot]=new gn(i,e)),n}parseSegment(){const i=BI(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new Ae(4009,!1);return this.capture(i),new bu(Wh(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=function kU(t){const i=t.match(DU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=BI(this.remaining);o&&(n=o,this.capture(n))}i[Wh(e)]=Wh(n)}parseQueryParam(i){const e=function OU(t){const i=t.match(MU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=function PU(t){const i=t.match(LU);return i?i[0]:""}(this.remaining);r&&(n=r,this.capture(n))}const o=ZE(e),s=ZE(n);if(i.hasOwnProperty(o)){let r=i[o];Array.isArray(r)||(r=[r],i[o]=r),r.push(s)}else i[o]=s}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=BI(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new Ae(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Ot);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[Ot]:new gn([],r),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new Ae(4011,!1)}}function XE(t){return t.segments.length>0?new gn([],{[Ot]:t}):t}function JE(t){const i={};for(const n of Object.keys(t.children)){const s=JE(t.children[n]);if(n===Ot&&0===s.segments.length&&s.hasChildren())for(const[r,a]of Object.entries(s.children))i[r]=a;else(s.segments.length>0||s.hasChildren())&&(i[n]=s)}return function RU(t){if(1===t.numberOfChildren&&t.children[Ot]){const i=t.children[Ot];return new gn(t.segments.concat(i.segments),i.children)}return t}(new gn(t.segments,i))}function da(t){return t instanceof Rl}function eD(t){let i;const o=XE(function e(s){const r={};for(const l of s.children){const c=e(l);r[l.outlet]=c}const a=new gn(s.url,r);return s===t&&(i=a),a}(t.root));return i??o}function tD(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(0===i.length)return HI(o,o,o,e,n);const s=function VU(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iD(!0,0,t);let i=0,e=!1;const n=t.reduce((o,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===r?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?i++:""!=a&&o.push(a))}),o):[...o,s]},[]);return new iD(e,i,n)}(i);if(s.toRoot())return HI(o,o,new gn([],{}),e,n);const r=function BU(t,i,e){if(t.isAbsolute)return new Zh(i,!0,0);if(!e)return new Zh(i,!1,NaN);if(null===e.parent)return new Zh(e,!0,0);const n=Qh(t.commands[0])?0:1;return function HU(t,i,e){let n=t,o=i,s=e;for(;s>o;){if(s-=o,n=n.parent,!n)throw new Ae(4005,!1);o=n.segments.length}return new Zh(n,!1,o-s)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(s,o,t),a=r.processChildren?wu(r.segmentGroup,r.index,s.commands):oD(r.segmentGroup,r.index,s.commands);return HI(o,r.segmentGroup,a,e,n)}function Qh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Au(t){return"object"==typeof t&&null!=t&&t.outlets}function HI(t,i,e,n,o){let r,s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),r=t===i?e:nD(t,i,e);const a=XE(JE(r));return new Rl(a,s,o)}function nD(t,i,e){const n={};return Object.entries(t.children).forEach(([o,s])=>{n[o]=s===i?e:nD(s,i,e)}),new gn(t.segments,n)}class iD{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Qh(n[0]))throw new Ae(4003,!1);const o=n.find(Au);if(o&&o!==UE(n))throw new Ae(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zh{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function oD(t,i,e){if(t||(t=new gn([],{})),0===t.segments.length&&t.hasChildren())return wu(t,i,e);const n=function jU(t,i,e){let n=0,o=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;const r=t.segments[o],a=e[n];if(Au(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!rD(l,c,r))return s;n+=2}else{if(!rD(l,{},r))return s;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexs!==Ot)&&t.children[Ot]&&1===t.numberOfChildren&&0===t.children[Ot].segments.length){const s=wu(t.children[Ot],i,e);return new gn(t.segments,s.children)}return Object.entries(n).forEach(([s,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=oD(t.children[s],i,r))}),Object.entries(t.children).forEach(([s,r])=>{void 0===n[s]&&(o[s]=r)}),new gn(t.segments,o)}}function zI(t,i,e){const n=t.segments.slice(0,i);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(i[e]=zI(new gn([],{}),0,n))}),i}function sD(t){const i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function rD(t,i,e){return t==e.path&&hs(i,e.parameters)}const Tu="imperative";class fs{constructor(i,e){this.id=i,this.url=e}}class Yh extends fs{constructor(i,e,n="imperative",o=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sr extends fs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Su extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nl extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=16}}class Xh extends fs{constructor(i,e,n,o){super(i,e),this.error=n,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aD extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $U extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KU extends fs{constructor(i,e,n,o,s){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class GU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WU{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QU{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ZU{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YU{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XU{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JU{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lD{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jI{}class UI{constructor(i){this.url=i}}class e${constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Eu,this.attachRef=null}}let Eu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new e$,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class cD{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=$I(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=$I(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=KI(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return KI(i,this._root).map(e=>e.value)}}function $I(t,i){if(t===i.value)return i;for(const e of i.children){const n=$I(t,e);if(n)return n}return null}function KI(t,i){if(t===i.value)return[i];for(const e of i.children){const n=KI(t,e);if(n.length)return n.unshift(i),n}return[]}class Ks{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vl(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class uD extends cD{constructor(i,e){super(i),this.snapshot=e,GI(this,i)}toString(){return this.snapshot.toString()}}function dD(t,i){const e=function t$(t,i){const r=new Jh([],{},{},"",{},Ot,i,null,{});return new hD("",new Ks(r,[]))}(0,i),n=new xo([new bu("",{})]),o=new xo({}),s=new xo({}),r=new xo({}),a=new xo(""),l=new Di(n,o,r,a,s,Ot,i,e.root);return l.snapshot=e.root,new uD(new Ks(l,[]),e)}class Di{constructor(i,e,n,o,s,r,a,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=s,this.outlet=r,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(at(c=>c[vu]))??ht(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(at(i=>Fl(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(at(i=>Fl(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pD(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const o=e[n],s=e[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(s.component)break;n--}}return function n$(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Jh{get title(){return this.data?.[vu]}constructor(i,e,n,o,s,r,a,l,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s,this.outlet=r,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Fl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hD extends cD{constructor(i,e){super(e),this.url=i,GI(this,e)}toString(){return fD(this._root)}}function GI(t,i){i.value._routerState=t,i.children.forEach(e=>GI(t,e))}function fD(t){const i=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${i}`}function qI(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),function IU(t,i){if(t.length!==i.length)return!1;for(let e=0;ehs(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||WI(t.parent,i.parent))}let QI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ot,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.parentContexts=et(Eu),this.location=et(go),this.changeDetector=et(Ft),this.environmentInjector=et(po),this.inputBinder=et(ef,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ae(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ae(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ae(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Ae(4013,!1);this._activatedRoute=e;const o=this.location,r=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new i$(e,a,o.injector);this.activated=o.createComponent(r,{index:o.length,injector:l,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]})}return t})();class i${constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Di?this.route:i===Eu?this.childContexts:this.parent.get(i,e)}}const ef=new Ye("");let gD=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:n}=e,o=Cu([n.queryParams,n.params,n.data]).pipe(Ao(([s,r,a],l)=>(a={...s,...r,...a},0===l?ht(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const r=function f8(t){const i=Zt(t);if(!i)return null;const e=new Hc(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(n.component);if(r)for(const{templateName:a}of r.inputs)e.activatedComponentRef.setInput(a,s[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Du(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const o=function s$(t,i,e){return i.children.map(n=>{for(const o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Du(t,n,o);return Du(t,n)})}(t,i,e);return new Ks(n,o)}{if(t.shouldAttach(i.value)){const s=t.retrieve(i.value);if(null!==s){const r=s.route;return r.value._futureSnapshot=i.value,r.children=i.children.map(a=>Du(t,a)),r}}const n=function r$(t){return new Di(new xo(t.url),new xo(t.params),new xo(t.queryParams),new xo(t.fragment),new xo(t.data),t.outlet,t.component,t)}(i.value),o=i.children.map(s=>Du(t,s));return new Ks(n,o)}}const ZI="ngNavigationCancelingError";function mD(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=da(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=_D(!1,0,i);return o.url=e,o.navigationBehaviorOptions=n,o}function _D(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[ZI]=!0,n.cancellationCode=i,e&&(n.url=e),n}function ID(t){return t&&t[ZI]}let CD=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Et],decls:1,vars:0,template:function(n,o){1&n&&le(0,"router-outlet")},dependencies:[QI],encapsulation:2})}return t})();function YI(t){const i=t.children&&t.children.map(YI),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ot&&(e.component=CD),e}function Qo(t){return t.outlet||Ot}function ku(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class f${constructor(i,e,n,o,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=s}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),qI(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{const r=s.value.outlet;this.deactivateRoutes(s,o[r],n),delete o[r]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(o===s)if(o.component){const r=n.getContext(o.outlet);r&&this.deactivateChildRoutes(i,e,r.children)}else this.deactivateChildRoutes(i,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);if(n&&n.outlet){const r=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:r,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],n),this.forwardEvent(new JU(s.value.snapshot))}),i.children.length&&this.forwardEvent(new YU(i.value.snapshot))}activateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(qI(o),o===s)if(o.component){const r=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,r.children)}else this.activateChildRoutes(i,e,n);else if(o.component){const r=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(a.contexts),r.attachRef=a.componentRef,r.route=a.route.value,r.outlet&&r.outlet.attach(a.componentRef,a.route.value),qI(a.route.value),this.activateChildRoutes(i,null,r.children)}else{const a=ku(o.snapshot);r.attachRef=null,r.route=o,r.injector=a,r.outlet&&r.outlet.activateWith(o,r.injector),this.activateChildRoutes(i,null,r.children)}}else this.activateChildRoutes(i,null,n)}}class vD{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class tf{constructor(i,e){this.component=i,this.route=e}}function g$(t,i,e){const n=t._root;return Mu(n,i?i._root:null,e,[n.value])}function Bl(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function R4(t){return null!==Cd(t)}(t)?i.get(t):t:n}function Mu(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Vl(i);return t.children.forEach(r=>{(function _$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,r=i?i.value:null,a=e?e.getContext(t.value.outlet):null;if(r&&s.routeConfig===r.routeConfig){const l=function I$(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!ua(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ua(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WI(t,i)||!hs(t.queryParams,i.queryParams);default:return!WI(t,i)}}(r,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vD(n)):(s.data=r.data,s._resolvedData=r._resolvedData),Mu(t,i,s.component?a?a.children:null:e,n,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new tf(a.outlet.component,r))}else r&&Ou(i,a,o),o.canActivateChecks.push(new vD(n)),Mu(t,null,s.component?a?a.children:null:e,n,o)})(r,s[r.value.outlet],e,n.concat([r.value]),o),delete s[r.value.outlet]}),Object.entries(s).forEach(([r,a])=>Ou(a,e.getContext(r),o)),o}function Ou(t,i,e){const n=Vl(t),o=t.value;Object.entries(n).forEach(([s,r])=>{Ou(r,o.component?i?i.children.getContext(s):null:i,e)}),e.canDeactivateChecks.push(new tf(o.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,o))}function Lu(t){return"function"==typeof t}function bD(t){return t instanceof Uh||"EmptyError"===t?.name}const nf=Symbol("INITIAL_VALUE");function Hl(){return Ao(t=>Cu(t.map(i=>i.pipe(Pl(1),function cU(...t){const i=ic(t);return Me((e,n)=>{(i?PI(t,e,i):PI(t,e)).subscribe(n)})}(nf)))).pipe(at(i=>{for(const e of i)if(!0!==e){if(e===nf)return nf;if(!1===e||e instanceof Rl)return e}return!0}),zs(i=>i!==nf),Pl(1)))}function yD(t){return function he(...t){return de(t)}(Ei(i=>{if(da(i))throw mD(0,i)}),at(i=>!0===i))}class sf{constructor(i){this.segmentGroup=i||null}}class xD{constructor(i){this.urlTree=i}}function zl(t){return Ll(new sf(t))}function AD(t){return Ll(new xD(t))}class V${constructor(i,e){this.urlSerializer=i,this.urlTree=e}noMatchError(i){return new Ae(4002,!1)}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return ht(n);if(o.numberOfChildren>1||!o.children[Ot])return Ll(new Ae(4e3,!1));o=o.children[Ot]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,o){const s=this.createSegmentGroup(i,e.root,n,o);return new Rl(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Object.entries(i).forEach(([o,s])=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);n[o]=e[a]}else n[o]=s}),n}createSegmentGroup(i,e,n,o){const s=this.createSegments(i,e.segments,n,o);let r={};return Object.entries(e.children).forEach(([a,l])=>{r[a]=this.createSegmentGroup(i,l,n,o)}),new gn(s,r)}createSegments(i,e,n,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,o):this.findOrReturn(s,n))}findPosParam(i,e,n){const o=n[e.path.substring(1)];if(!o)throw new Ae(4001,!1);return o}findOrReturn(i,e){let n=0;for(const o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}}const XI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B$(t,i,e,n,o){const s=JI(t,i,e);return s.matched?(n=function l$(t,i){return t.providers&&!t._injector&&(t._injector=O_(t.providers,i,`Route: ${t.path}`)),t._injector??i}(i,n),function F$(t,i,e,n){const o=i.canMatch;return o&&0!==o.length?ht(o.map(r=>{const a=Bl(r,t);return Tr(function A$(t){return t&&Lu(t.canMatch)}(a)?a.canMatch(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD()):ht(!0)}(n,i,e).pipe(at(r=>!0===r?s:{...XI}))):ht(s)}function JI(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...XI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(i.matcher||_U)(e,t,i);if(!o)return{...XI};const s={};Object.entries(o.posParams??{}).forEach(([a,l])=>{s[a]=l.path});const r=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:r,positionalParamSegments:o.posParams??{}}}function wD(t,i,e,n){return e.length>0&&function j$(t,i,e){return e.some(n=>rf(t,i,n)&&Qo(n)!==Ot)}(t,e,n)?{segmentGroup:new gn(i,z$(n,new gn(e,t.children))),slicedSegments:[]}:0===e.length&&function U$(t,i,e){return e.some(n=>rf(t,i,n))}(t,e,n)?{segmentGroup:new gn(t.segments,H$(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new gn(t.segments,t.children),slicedSegments:e}}function H$(t,i,e,n,o){const s={};for(const r of n)if(rf(t,e,r)&&!o[Qo(r)]){const a=new gn([],{});s[Qo(r)]=a}return{...o,...s}}function z$(t,i){const e={};e[Ot]=i;for(const n of t)if(""===n.path&&Qo(n)!==Ot){const o=new gn([],{});e[Qo(n)]=o}return e}function rf(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}class q${constructor(i,e,n,o,s,r,a){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=r,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new V$(this.urlSerializer,this.urlTree)}noMatchError(i){return new Ae(4002,!1)}recognize(){const i=wD(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Ot).pipe(Ci(e=>{if(e instanceof xD)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof sf?this.noMatchError(e):e}),at(e=>{const n=new Jh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ot,this.rootComponentType,null,{}),o=new Ks(n,e),s=new hD("",o),r=function NU(t,i,e=null,n=null){return tD(eD(t),i,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(s._root),{state:s,tree:r}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,Ot).pipe(Ci(n=>{throw n instanceof sf?this.noMatchError(n):n}))}inheritParamsAndData(i){const e=i.value,n=pD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(i,e,n,o){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,o,!0)}processChildren(i,e,n){const o=[];for(const s of Object.keys(n.children))"primary"===s?o.unshift(s):o.push(s);return ri(o).pipe(El(s=>{const r=n.children[s],a=function p$(t,i){const e=t.filter(n=>Qo(n)===i);return e.push(...t.filter(n=>Qo(n)!==i)),e}(e,s);return this.processSegmentGroup(i,a,r,s)}),function pU(t,i){return Me(function dU(t,i,e,n,o){return(s,r)=>{let a=e,l=i,c=0;s.subscribe(Ue(r,u=>{const p=c++;l=a?t(l,u,p):(a=!0,u),n&&r.next(l)},o&&(()=>{a&&r.next(l),r.complete()})))}}(t,i,arguments.length>=2,!0))}((s,r)=>(s.push(...r),s)),$h(null),function hU(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,RI(1),e?$h(i):zE(()=>new Uh))}(),si(s=>{if(null===s)return zl(n);const r=TD(s);return function W$(t){t.sort((i,e)=>i.value.outlet===Ot?-1:e.value.outlet===Ot?1:i.value.outlet.localeCompare(e.value.outlet))}(r),ht(r)}))}processSegment(i,e,n,o,s,r){return ri(e).pipe(El(a=>this.processSegmentAgainstRoute(a._injector??i,e,a,n,o,s,r).pipe(Ci(l=>{if(l instanceof sf)return ht(null);throw l}))),ca(a=>!!a),Ci(a=>{if(bD(a))return function K$(t,i,e){return 0===i.length&&!t.children[e]}(n,o,s)?ht([]):zl(n);throw a}))}processSegmentAgainstRoute(i,e,n,o,s,r,a){return function $$(t,i,e,n){return!!(Qo(t)===n||n!==Ot&&rf(i,e,t))&&("**"===t.path||JI(i,t,e).matched)}(n,o,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(i,o,n,s,r,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,s,r):zl(o):zl(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,o,r):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,o){const s=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?AD(s):this.applyRedirects.lineralizeSegments(n,s).pipe(si(r=>{const a=new gn(r,{});return this.processSegment(i,e,a,r,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=JI(e,o,s);if(!a)return zl(e);const p=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?AD(p):this.applyRedirects.lineralizeSegments(o,p).pipe(si(m=>this.processSegment(i,n,e,m.concat(c),r,!1)))}matchSegmentAgainstRoute(i,e,n,o,s,r){let a;if("**"===n.path){const l=o.length>0?UE(o).parameters:{};a=ht({snapshot:new Jh(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=B$(e,n,o,i).pipe(at(({matched:l,consumedSegments:c,remainingSegments:u,parameters:p})=>l?{snapshot:new Jh(c,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Ao(l=>null===l?zl(e):this.getChildConfig(i=n._injector??i,n,o).pipe(Ao(({routes:c})=>{const u=n._loadedInjector??i,{snapshot:p,consumedSegments:m,remainingSegments:_}=l,{segmentGroup:b,slicedSegments:E}=wD(e,m,_,c);if(0===E.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(at(W=>null===W?null:[new Ks(p,W)]));if(0===c.length&&0===E.length)return ht([new Ks(p,[])]);const P=Qo(n)===s;return this.processSegment(u,c,b,E,P?Ot:s,!0).pipe(at(W=>[new Ks(p,W)]))}))))}getChildConfig(i,e,n){return e.children?ht({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ht({routes:e._loadedRoutes,injector:e._loadedInjector}):function P$(t,i,e,n){const o=i.canLoad;return void 0===o||0===o.length?ht(!0):ht(o.map(r=>{const a=Bl(r,t);return Tr(function v$(t){return t&&Lu(t.canLoad)}(a)?a.canLoad(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD())}(i,e,n).pipe(si(o=>o?this.configLoader.loadChildren(i,e).pipe(Ei(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function N$(t){return Ll(_D(!1,3))}())):ht({routes:[],injector:i})}}function Q$(t){const i=t.value.routeConfig;return i&&""===i.path}function TD(t){const i=[],e=new Set;for(const n of t){if(!Q$(n)){i.push(n);continue}const o=i.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...n.children),e.add(o)):i.push(n)}for(const n of e){const o=TD(n.children);i.push(new Ks(n.value,o))}return i.filter(n=>!e.has(n))}function SD(t){return t.data||{}}function ED(t){return t.resolve||{}}function DD(t){return"string"==typeof t.title||null===t.title}function eC(t){return Ao(i=>{const e=t(i);return e?ri(e).pipe(at(()=>i)):ht(i)})}const jl=new Ye("ROUTES");let tC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=et(l2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ht(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Tr(e.loadComponent()).pipe(at(kD),Ei(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),du(()=>{this.componentLoaders.delete(e)})),o=new HE(n,()=>new re).pipe(FI());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ht({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const s=function nK(t,i,e,n){return Tr(t.loadChildren()).pipe(at(kD),si(o=>o instanceof mw||Array.isArray(o)?ht(o):ri(i.compileModuleAsync(o))),at(o=>{n&&n(t);let s,r,a=!1;return Array.isArray(o)?(r=o,!0):(s=o.create(e).injector,r=s.get(jl,[],{optional:!0,self:!0}).flat()),{routes:r.map(YI),injector:s}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(du(()=>{this.childrenLoaders.delete(n)})),r=new HE(s,()=>new re).pipe(FI());return this.childrenLoaders.set(n,r),r}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kD(t){return function iK(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let af=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=et(tC),this.environmentInjector=et(po),this.urlSerializer=et(yu),this.rootContexts=et(Eu),this.inputBindingEnabled=null!==et(ef,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ht(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new QU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new WU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,o){return this.transitions=new xo({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Tu,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(zs(s=>0!==s.id),at(s=>({...s,extractedUrl:e.urlHandlingStrategy.extract(s.rawUrl)})),Ao(s=>{this.currentTransition=s;let r=!1,a=!1;return ht(s).pipe(Ei(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Ao(l=>{const c=l.currentBrowserUrl.toString(),u=!e.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),es}if(e.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ht(l).pipe(Ao(m=>{const _=this.transitions?.getValue();return this.events.next(new Yh(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),_!==this.transitions?.getValue()?es:Promise.resolve(m)}),function Z$(t,i,e,n,o,s){return si(r=>function G$(t,i,e,n,o,s,r="emptyOnly"){return new q$(t,i,e,n,o,r,s).recognize()}(t,i,e,n,r.extractedUrl,o,s).pipe(at(({state:a,tree:l})=>({...r,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Ei(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const _=new aD(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(_)}));if(u&&e.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:_,source:b,restoredState:E,extras:P}=l,W=new Yh(m,this.urlSerializer.serialize(_),b,E);this.events.next(W);const te=dD(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:te,urlAfterRedirects:_,extras:{...P,skipLocationChange:!1,replaceUrl:!1}},ht(s)}{const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),es}}),Ei(l=>{const c=new $U(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),at(l=>(this.currentTransition=s={...l,guards:g$(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function T$(t,i){return si(e=>{const{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:r}}=e;return 0===r.length&&0===s.length?ht({...e,guardsResult:!0}):function S$(t,i,e,n){return ri(t).pipe(si(o=>function L$(t,i,e,n,o){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ht(s.map(a=>{const l=ku(i)??o,c=Bl(a,l);return Tr(function x$(t){return t&&Lu(t.canDeactivate)}(c)?c.canDeactivate(t,i,e,n):l.runInContext(()=>c(t,i,e,n))).pipe(ca())})).pipe(Hl()):ht(!0)}(o.component,o.route,e,i,n)),ca(o=>!0!==o,!0))}(r,n,o,t).pipe(si(a=>a&&function C$(t){return"boolean"==typeof t}(a)?function E$(t,i,e,n){return ri(i).pipe(El(o=>PI(function k$(t,i){return null!==t&&i&&i(new ZU(t)),ht(!0)}(o.route.parent,n),function D$(t,i){return null!==t&&i&&i(new XU(t)),ht(!0)}(o.route,n),function O$(t,i,e){const n=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(r=>function m$(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(r)).filter(r=>null!==r).map(r=>BE(()=>ht(r.guards.map(l=>{const c=ku(r.node)??e,u=Bl(l,c);return Tr(function y$(t){return t&&Lu(t.canActivateChild)}(u)?u.canActivateChild(n,t):c.runInContext(()=>u(n,t))).pipe(ca())})).pipe(Hl())));return ht(s).pipe(Hl())}(t,o.path,e),function M$(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ht(!0);const o=n.map(s=>BE(()=>{const r=ku(i)??e,a=Bl(s,r);return Tr(function b$(t){return t&&Lu(t.canActivate)}(a)?a.canActivate(i,t):r.runInContext(()=>a(i,t))).pipe(ca())}));return ht(o).pipe(Hl())}(t,o.route,e))),ca(o=>!0!==o,!0))}(n,s,t,i):ht(a)),at(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),Ei(l=>{if(s.guardsResult=l.guardsResult,da(l.guardsResult))throw mD(0,l.guardsResult);const c=new KU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),zs(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),eC(l=>{if(l.guards.canActivateChecks.length)return ht(l).pipe(Ei(c=>{const u=new GU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ao(c=>{let u=!1;return ht(c).pipe(function Y$(t,i){return si(e=>{const{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return ht(e);let s=0;return ri(o).pipe(El(r=>function X$(t,i,e,n){const o=t.routeConfig,s=t._resolve;return void 0!==o?.title&&!DD(o)&&(s[vu]=o.title),function J$(t,i,e,n){const o=function eK(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ht({});const s={};return ri(o).pipe(si(r=>function tK(t,i,e,n){const o=ku(i)??n,s=Bl(t,o);return Tr(s.resolve?s.resolve(i,e):o.runInContext(()=>s(i,e)))}(t[r],i,e,n).pipe(ca(),Ei(a=>{s[r]=a}))),RI(1),function fU(t){return at(()=>t)}(s),Ci(r=>bD(r)?es:Ll(r)))}(s,t,i,n).pipe(at(r=>(t._resolvedData=r,t.data=pD(t,e).resolve,o&&DD(o)&&(t.data[vu]=o.title),null)))}(r.route,n,t,i)),Ei(()=>s++),RI(1),si(r=>s===o.length?ht(e):es))})}(e.paramsInheritanceStrategy,this.environmentInjector),Ei({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),Ei(c=>{const u=new qU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),eC(l=>{const c=u=>{const p=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ei(m=>{u.component=m}),at(()=>{})));for(const m of u.children)p.push(...c(m));return p};return Cu(c(l.targetSnapshot.root)).pipe($h(),Pl(1))}),eC(()=>this.afterPreactivation()),at(l=>{const c=function o$(t,i,e){const n=Du(t,i._root,e?e._root:void 0);return new uD(n,i)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:c},s}),Ei(()=>{this.events.next(new jI)}),((t,i,e,n)=>at(o=>(new f$(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Pl(1),Ei({next:l=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Sr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),e.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{r=!0}}),function gU(t){return Me((i,e)=>{Ni(t).subscribe(Ue(e,()=>e.complete(),C)),!e.closed&&i.subscribe(e)})}(this.transitionAbortSubject.pipe(Ei(l=>{throw l}))),du(()=>{r||a||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Ci(l=>{if(a=!0,ID(l))this.events.next(new Su(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function a$(t){return ID(t)&&da(t.url)}(l)?this.events.next(new UI(l.url)):s.resolve(!1);else{this.events.next(new Xh(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(l))}catch(c){s.reject(c)}}return es}))}))}cancelNavigationTransition(e,n,o){const s=new Su(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(s),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MD(t){return t!==Tu}let OD=(()=>{class t{buildTitle(e){let n,o=e.root;for(;void 0!==o;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ot);return n}getResolvedTitleForRoute(e){return e.data[vu]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(oK)},providedIn:"root"})}return t})(),oK=(()=>{class t extends OD{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ET))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(aK)},providedIn:"root"})}return t})();class rK{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let aK=(()=>{class t extends rK{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lf=new Ye("",{providedIn:"root",factory:()=>({})});let lK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(cK)},providedIn:"root"})}return t})(),cK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pu=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Pu||{});function LD(t,i){t.events.pipe(zs(e=>e instanceof Sr||e instanceof Su||e instanceof Xh||e instanceof Nl),at(e=>e instanceof Sr||e instanceof Nl?Pu.COMPLETE:e instanceof Su&&(0===e.code||1===e.code)?Pu.REDIRECTING:Pu.FAILED),zs(e=>e!==Pu.REDIRECTING),Pl(1)).subscribe(()=>{i()})}function uK(t){throw t}function dK(t,i,e){return i.parse("/")}const pK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let io=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=et(a2),this.isNgZoneEnabled=!1,this._events=new re,this.options=et(lf,{optional:!0})||{},this.pendingTasks=et(Kp),this.errorHandler=this.options.errorHandler||uK,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dK,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=et(lK),this.routeReuseStrategy=et(sK),this.titleStrategy=et(OD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=et(jl,{optional:!0})?.flat()??[],this.navigationTransitions=et(af),this.urlSerializer=et(yu),this.location=et(d0),this.componentInputBindingEnabled=!!et(ef,{optional:!0}),this.eventsSubscription=new F,this.isNgZoneEnabled=et(Tt)instanceof Tt&&Tt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dD(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(PD(n)&&this._events.next(n));if(n instanceof Yh)MD(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(n instanceof Nl)this.rawUrlTree=o.rawUrl;else if(n instanceof aD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(n instanceof jI)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(n instanceof Su)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(o);else if(n instanceof UI){const s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),r={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||MD(o.source)};this.scheduleNavigation(s,Tu,null,r,{resolve:o.resolve,reject:o.reject,promise:o.promise})}n instanceof Xh&&this.restoreHistory(o,!0),n instanceof Sr&&(this.navigated=!0),PD(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Tu,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,o){const s={replaceUrl:!0},r=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,n,r,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(YI),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){const{relativeTo:o,queryParams:s,fragment:r,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:r;let p,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{p=eD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),p=this.currentUrlTree.root}return tD(p,e,u,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){const o=da(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Tu,null,n)}navigate(e,n={skipLocationChange:!1}){return function fK(t){for(let i=0;i{const s=e[o];return null!=s&&(n[o]=s),n},{})}scheduleNavigation(e,n,o,s,r){if(this.disposed)return Promise.resolve(!1);let a,l,c;r?(a=r.resolve,l=r.reject,c=r.promise):c=new Promise((p,m)=>{a=p,l=m});const u=this.pendingTasks.add();return LD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}setBrowserUrl(e,n){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){const r={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(o,"",r)}else{const s={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function PD(t){return!(t instanceof jI||t instanceof UI)}let pa=(()=>{class t{constructor(e,n,o,s,r,a){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=r,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=r.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Sr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,n,o,s,r){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||o||s||r||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function yy(t,i,e){return function H5(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?by:Ls}(i,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const o=this.renderer,s=this.el.nativeElement;null!==n?o.setAttribute(s,e,n):o.removeAttribute(s,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(Di),function $d(t){return function rP(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let o=0;for(;o{class t{get isActive(){return this._isActive}constructor(e,n,o,s,r){this.router=e,this.element=n,this.renderer=o,this.cdr=s,this.link=r,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ge,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Sr&&this.update()})}ngAfterContentInit(){ht(this.links.changes,ht(null)).pipe(Ta()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=ri(e).pipe(Ta()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const n=function gK(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(bt),V(hn),V(Ft),V(pa,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(1&n&&Gt(s,pa,5),2&n){let r;Se(r=Ee())&&(o.links=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]})}return t})();class FD{}let mK=(()=>{class t{constructor(e,n,o,s,r){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(zs(e=>e instanceof Sr),El(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const o=[];for(const s of n){s.providers&&!s._injector&&(s._injector=O_(s.providers,e,`Route: ${s.path}`));const r=s._injector??e,a=s._loadedInjector??r;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(r,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(a,s.children??s._loadedRoutes))}return ri(o).pipe(Ta())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;o=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ht(null);const s=o.pipe(si(r=>null===r?ht(void 0):(n._loadedRoutes=r.routes,n._loadedInjector=r.injector,this.processRoutes(r.injector??e,r.routes))));return n.loadComponent&&!n._loadedComponent?ri([s,this.loader.loadComponent(n)]).pipe(Ta()):s})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(io),Ze(l2),Ze(po),Ze(FD),Ze(tC))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const nC=new Ye("");let RD=(()=>{class t{constructor(e,n,o,s,r={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Yh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Sr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Nl&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){!function cx(){throw new Error("invalid")}()};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Gs(t,i){return{\u0275kind:t,\u0275providers:i}}function VD(){const t=et($i);return i=>{const e=t.get(ta);if(i!==e.components[0])return;const n=t.get(io),o=t.get(BD);1===t.get(iC)&&n.initialNavigation(),t.get(HD,null,zt.Optional)?.setUpPreloading(),t.get(nC,null,zt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const BD=new Ye("",{factory:()=>new re}),iC=new Ye("",{providedIn:"root",factory:()=>1}),HD=new Ye("");function vK(t){return Gs(0,[{provide:HD,useExisting:mK},{provide:FD,useExisting:t}])}const zD=new Ye("ROUTER_FORROOT_GUARD"),yK=[d0,{provide:yu,useClass:NI},io,Eu,{provide:Di,useFactory:function ND(t){return t.routerState.root},deps:[io]},tC,[]];function xK(){return new g2("Router",io)}let qn=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[yK,[],{provide:jl,multi:!0,useValue:e},{provide:zD,useFactory:SK,deps:[[io,new qd,new Wd]]},{provide:lf,useValue:n||{}},n?.useHash?{provide:Ir,useClass:G2}:{provide:Ir,useClass:K2},{provide:nC,useFactory:()=>{const t=et(LV),i=et(Tt),e=et(lf),n=et(af),o=et(yu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new RD(o,n,t,i,e)}},n?.preloadingStrategy?vK(n.preloadingStrategy).\u0275providers:[],{provide:g2,multi:!0,useFactory:xK},n?.initialNavigation?EK(n):[],n?.bindToComponentInputs?Gs(8,[gD,{provide:ef,useExisting:gD}]).\u0275providers:[],[{provide:jD,useFactory:VD},{provide:e0,multi:!0,useExisting:jD}]]}}static forChild(e){return{ngModule:t,providers:[{provide:jl,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(zD,8))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function SK(t){return"guarded"}function EK(t){return["disabled"===t.initialNavigation?Gs(3,[{provide:G_,multi:!0,useFactory:()=>{const i=et(io);return()=>{i.setUpLocationChangeListener()}}},{provide:iC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Gs(2,[{provide:iC,useValue:0},{provide:G_,multi:!0,deps:[$i],useFactory:i=>{const e=i.get(_8,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const o=i.get(io),s=i.get(BD);LD(o,()=>{n(!0)}),i.get(af).afterPreactivation=()=>(n(!0),s.closed?ht(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const jD=new Ye("");class kK{}class MK{}var Lt=function(t){return t[t.Passed="Passed"]="Passed",t[t.Failed="Failed"]="Failed",t[t.FailIgnored="FailIgnored"]="FailIgnored",t[t.Blocked="Blocked"]="Blocked",t[t.Stopped="Stopped"]="Stopped",t[t.Pending="Pending"]="Pending",t[t.InProgress="In Progress"]="InProgress",t[t.Canceled="Canceled"]="Canceled",t[t.Queued="Queued"]="Queued",t[t.FailedToQueue="Failed To Queue"]="FailedToQueue",t[t.Others="Others"]="Others",t}(Lt||{}),Er=function(t){return t[t.BusinessFlowsActivities=0]="BusinessFlowsActivities",t[t.ActivitiesActions=1]="ActivitiesActions",t[t.OutputValidation=2]="OutputValidation",t}(Er||{});class UD{}class OK{}class $D{}class LK{}var oC=function(t){return t[t.html=0]="html",t[t.htm=1]="htm",t[t.xls=2]="xls",t[t.xlsx=3]="xlsx",t[t.csv=4]="csv",t[t.json=5]="json",t[t.ppt=6]="ppt",t[t.jpg=7]="jpg",t[t.jpeg=8]="jpeg",t[t.png=9]="png",t[t.bmp=10]="bmp",t[t.txt=11]="txt",t[t.doc=12]="doc",t[t.docx=13]="docx",t[t.xml=14]="xml",t[t.pdf=15]="pdf",t[t.gif=16]="gif",t}(oC||{});let Co=(()=>{class t{constructor(){}getByKey(e){return JSON.parse(sessionStorage.getItem(e))}isExist(e){return null!=sessionStorage.getItem(e)}setItem(e,n){this.getByKey(e)||this.reomveByKey(e),sessionStorage.setItem(e,JSON.stringify(n))}setItemCache(e){this.runset=e}getItemCache(){return this.runset}reomveByKey(e){this.getByKey(e)&&sessionStorage.removeItem(e)}clearSession(){sessionStorage.clear()}msToTime1(e){var n=e%1e3,o=(e=(e-n)/1e3)%60,s=(e=(e-o)/60)%60,r=(e-s)/60;return(0==r?"00":r.toString())+":"+(0==s?"00":s.toString())+":"+(0==o?"00":o.toString())+"."+n}pad(e,n=2){return("00"+e).slice(-n)}msToTime(e){"seconds"==this.getByKey("timeFormat")&&(e*=1e3);var o=e%1e3,s=(e=(e-o)/1e3)%60,r=(e=(e-s)/60)%60;return this.pad((e-r)/60)+":"+this.pad(r)+":"+this.pad(s)+"."+this.pad(o,3)}replaceUnicodeChar(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u0021/g,"!")).replace(/u0022/g,'"')).replace(/u0023/g,"#")).replace(/u0024/g,"$")).replace(/u0025/g,"%")).replace(/u0026/g,"&")).replace(/u0027/g,"'")).replace(/u0028/g,"(")).replace(/u0029/g,")")).replace(/u002A/g,"*")).replace(/u002B/g,"+")).replace(/u002C/g,",")).replace(/u002D/g,"-")).replace(/u002E/g,".")).replace(/u002F/g,"/")).replace(/u003A/g,":")).replace(/u003B/g,";")).replace(/u003C/g,"<")).replace(/u003D/g,"=")).replace(/u003E/g,">")).replace(/u003F/g,"?")).replace(/u0040/g,"@")).replace(/u005B/g,"[")).replace(/u005C/g,"\\")).replace(/u005D/g,"]")).replace(/u005E/g,"^")).replace(/u005F/g,"_")).replace(/u0060/g,"`")).replace(/u007B/g,"{")).replace(/u007C/g,"|")).replace(/u007D/g,"}")).replace(/u007E/g,"~")).replace(/!/g,"!")).replace(/"/g,'"')).replace(/#/g,"#")).replace(/$/g,"$")).replace(/%/g,"%")).replace(/&/g,"&")).replace(/'/g,"'")).replace(/(/g,"(")).replace(/)/g,")")).replace(/*/g,"*")).replace(/+/g,"+")).replace(/,/g,",")).replace(/-/g,"-")).replace(/./g,".")).replace(///g,"/")).replace(/:/g,":")).replace(/;/g,";")).replace(/</g,"<")).replace(/=/g,"=")).replace(/>/g,">")).replace(/?/g,"?")).replace(/@/g,"@")).replace(/[/g,"[")).replace(/\/g,"\\")).replace(/]/g,"]")).replace(/^/g,"^")).replace(/_/g,"_")).replace(/`/g,"`")).replace(/{/g,"{")).replace(/|/g,"|")).replace(/}/g,"}")).replace(/~/g,"~")).trimStart()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KD(t,i,e,n,o,s,r){try{var a=t[s](r),l=a.value}catch(c){return void e(c)}a.done?i(l):Promise.resolve(l).then(n,o)}function Fu(t){return function(){var i=this,e=arguments;return new Promise(function(n,o){var s=t.apply(i,e);function r(l){KD(s,n,o,r,a,"next",l)}function a(l){KD(s,n,o,r,a,"throw",l)}r(void 0)})}}class PK extends F{constructor(i,e){super()}schedule(i,e=0){return this}}const uf={setInterval(t,i,...e){const{delegate:n}=uf;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=uf;return(i?.clearInterval||clearInterval)(t)},delegate:void 0},sC={now:()=>(sC.delegate||Date).now(),delegate:void 0};class Ru{constructor(i,e=Ru.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Ru.now=sC.now;const GD=new class RK extends Ru{constructor(i,e=Ru.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}(class FK extends PK{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return uf.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&uf.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let o,n=!1;try{this.work(i)}catch(s){n=!0,o=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}),NK=GD;function gs(t=1/0){let i;i=t&&"object"==typeof t?t:{count:t};const{count:e=1/0,delay:n,resetOnSuccess:o=!1}=i;return e<=0?_e:Me((s,r)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(Ue(r,p=>{o&&(a=0),r.next(p)},void 0,p=>{if(a++{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=n){const _="number"==typeof n?function BK(t=0,i,e=NK){let n=-1;return null!=i&&(Zv(i)?e=i:n=i),new ce(o=>{let s=function VK(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let r=0;return e.schedule(function(){o.closed||(o.next(r++),0<=n?this.schedule(void 0,n):o.complete())},s)})}(n):Ni(n(p,a)),b=Ue(r,()=>{b.unsubscribe(),m()},()=>{r.complete()});_.subscribe(b)}else m()}else r.error(p)})),u&&(l.unsubscribe(),l=null,c())};c()})}let ms=(()=>{class t{constructor(){this.baseAppUrl="",this.accountId=1,this.topBarTitle="",this.hideRightPanel=!1,this.imagePath="assets/screenshots/",this.artifactPath="assets/artifacts/",this.isServerLoading=!1}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ha=(()=>{class t{constructor(e,n){this.httpClient=e,this.globalVarService=n,this.httpOptions={headers:new qo({"Content-Type":"application/json"}),params:{}}}GetAccountHtmlReport(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReport",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBriefCase(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBriefCase/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParent(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParentAwait(e){var n=this;return Fu(function*(){return yield n.httpClient.post(n.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActivityById(e){var n=this;return Fu(function*(){return yield n.httpClient.get(n.globalVarService.baseAppUrl+"HtmlReport/GetActivityById/"+e,n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActionById(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetActionById/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBrief(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBrief/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActionsStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActionsStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActivitiesStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActivitiesStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}DownloadRunsetImages(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/DownloadRunsetImages",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}handleError(e){let n="";return n=e.error instanceof ErrorEvent?e.error.message:`Error Code: ${e.status}\nMessage: ${e.message}`,Ll(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qs=(()=>{class t{initService(e=!1){e&&(this.runset=null,this.businessFlows=[],this.activities=[],this.actions=[]),this.runset=this.getRunset(),this.businessFlows=this.getAllBusinessFlows(),this.activities=this.getAllActivities(),this.actions=this.getAllActions()}constructor(e,n,o){this._userDataManagerService=e,this.restServiceObj=n,this.globalVarService=o}populateChartsData(e,n){e.push(["Passed",n[0]]),e.push(["Failed",n[1]]),e.push(["Blocked",n[2]]),e.push(["Stopped",n[3]]),e.push(["Pending",n[4]]),e.push(["In Progress",n[5]]),e.push(["Canceled",n[6]])}getRunset(){return this._userDataManagerService.getItemCache()}getAllBusinessFlows(){return(null==this.businessFlows||this.businessFlows.length<=0)&&(this.businessFlows=this.getBusinessFlows()),this.businessFlows}getBusinessFlows(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)e.push(o);return e}getActivities(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)e.push(s);return e}getAllActivities(){return(null==this.activities||this.activities.length<=0)&&(this.activities=this.getActivities()),this.activities}getActions(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)if(null!=s.ActionsColl)for(let r of s.ActionsColl)e.push(r);return e}getAllActions(){return(null==this.actions||this.actions.length<=0)&&(this.actions=this.getActions()),this.actions}getRateArray(e){let n=[],o=this.businessFlows.filter(r=>r.RunStatus==e).length,s=this.businessFlows.length-o;return n.push(o),n.push(s),n}getOthersRateArray(e){}getRunnerExecutionStatus(e){let n=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Passed).length,o=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Failed).length,s=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Stopped).length,r=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Blocked).length,a=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Pending).length,l=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.InProgress).length,c=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Canceled).length,u=e.BusinessFlowsColl.length;return s>0?Lt.Stopped:r>0?Lt.Blocked:o>0?Lt.Failed:n==u?Lt.Passed:a==u||a==u?Lt.Pending:l==u?Lt.InProgress:c==u?Lt.Canceled:null}getRunnersExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.runset.RunnersColl)this.populateArrayByRunStatus(e,n.RunStatus);return e}getAllBusinessFlowsExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.businessFlows)this.populateArrayByRunStatus(e,n.RunStatus);return e}getRunnerBusinessFlowsExecutionStatusArray(e){let n=[0,0,0,0,0,0,0];for(let o of e.BusinessFlowsColl)this.populateArrayByRunStatus(n,o.RunStatus);return n}getActionsExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(this.runset),this.runset.TotalActionsPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)if(null!=r.ActionsColl&&r.ActionsColl.length)for(let a of r.ActionsColl)this.populateArrayByRunStatus(e,a.RunStatus);return e}return null}getActionsCount(e){let n=0;for(let o of e.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)null!=r.ActionsColl&&r.ActionsColl.length&&(n+=r.ActionsColl.length);return n}getActivitiesExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActivitiesCount(this.runset),this.runset.TotalActivitesPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)this.populateArrayByRunStatus(e,r.RunStatus);return e}return null}getActivitiesCount(e){let n=0;for(let o of e.RunnersColl)for(let s of o.BusinessFlowsColl)null!=s.ActivitiesColl&&s.ActivitiesColl.length>0&&(n+=s.ActivitiesColl.length);return n}populateArrayByRunStatus(e,n){switch("In Progress"==n.toString()&&(n=Lt.InProgress),n){case Lt.Passed:e[0]++;break;case Lt.Stopped:e[3]++;break;case Lt.Failed:e[1]++;break;case Lt.Pending:e[4]++;break;case Lt.Blocked:e[2]++;break;case Lt.InProgress:e[5]++;break;case Lt.Canceled:e[6]++}}getStatusClass(e,n=!0){let o="";return"Passed"==e?(o="passed-color",n?"fa fa-check-circle-o "+o:o):"Failed"==e?(o="failed-color",n?"fa fa-times-circle-o "+o:o):"Blocked"==e?(o="blocked-color",n?"fa fa-ban "+o:o):"Stopped"==e?(o="stopped-color",n?"fa fa-stop-circle-o "+o:o):"Pending"==e?(o="pending-color",n?"fa fa-clock-o "+o:o):"Skipped"==e?(o="skipped-color",n?"fa fa-minus-circle "+o:o):"In Progress"==e?(o="inprogress-color",n?"fa fa-hourglass-half "+o:o):"Canceled"==e?(o="canceled-color",n?"fa fa-stop-circle-o "+o:o):"Other"==e?"other-color":void 0}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Co),Ze(ha),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qD=(()=>{class t{constructor(){}load(...e){const n=[];return e.forEach(o=>n.push(this.loadScript(o))),Promise.all(n)}loadScript(e){return new Promise((n,o)=>{let s=document.createElement("script");s.setAttribute("data-complete","completeCallback"),s.setAttribute("data-cancel","cancelCallback"),s.setAttribute("data-error","errorCallback"),s.type="text/javascript",s.src=e,s.readyState?s.onreadystatechange=()=>{("loaded"===s.readyState||"complete"===s.readyState)&&(s.onreadystatechange=null,n({script:e,loaded:!0,status:"Loaded"}))}:s.onload=()=>{n({script:e,loaded:!0,status:"Loaded"})},s.onerror=r=>n({script:e,loaded:!1,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(s)})}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HK=(()=>{class t{constructor(e,n,o,s){this._http=e,this._userDataManagerService=n,this.calculatedDataService=o,this.fileLoader=s}getRunsetFromJsonByHttpRequest(){return null==this.runset&&(this.runset=this._http.get("assets/Execution_Data/executiondata.json"),this.runset.subscribe(e=>{const n={...e};this._userDataManagerService.setItem("0",n),this.calculatedDataService.initService()})),this.runset}GetExecutionData(){return new Promise((e,n)=>{let o=null;const s="assets/Execution_Data/executiondata.js?t="+Math.random().toString();this.fileLoader.load(s).then(r=>{typeof window.runsetData<"u"?(o=window.runsetData,o.TotalActionsPerExecution=this.calculatedDataService.getActionsCount(o),o.TotalActivitesPerExecution=this.calculatedDataService.getActivitiesCount(o),this._userDataManagerService.setItemCache(o),this.calculatedDataService.initService(),e(o)):e(null)}).catch(r=>console.log(r))})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(Co),Ze(qs),Ze(qD))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ws=(()=>{class t{constructor(){this.messageSource=new re,this.itemChangedSource=new re,this.refreshChangedSource=new re,this.bfActivitiesSourceChange=new re,this.loadbfActivities=new re,this.runnerStatLoad=new re,this.bfStatLoad=new re,this.activityStatLoad=new re,this.actionStatLoad=new re,this.messageSourceHasNewMessage=this.messageSource.asObservable(),this.onItemChangedMessage=this.itemChangedSource.asObservable(),this.onRefreshChangedMessage=this.refreshChangedSource.asObservable(),this.onBfActivitiesDataChange=this.bfActivitiesSourceChange.asObservable(),this.onloadbfActivities=this.loadbfActivities.asObservable(),this.onactivityStatLoad=this.activityStatLoad.asObservable(),this.onactionStatLoad=this.actionStatLoad.asObservable(),this.onrunnerStatLoad=this.runnerStatLoad.asObservable(),this.onbfStatLoad=this.bfStatLoad.asObservable()}newMessage(e){this.messageSource.next(e)}changeItem(e){this.itemChangedSource.next(e)}refreshScreen(e){this.refreshChangedSource.next(e)}bfActivitiesChange(e){this.bfActivitiesSourceChange.next(e)}loadbfActivitiesData(e){this.loadbfActivities.next(e)}loadactivityStat(e){this.activityStatLoad.next(e)}loadactionStat(e){this.actionStatLoad.next(e)}loadrunnerStat(e){this.runnerStatLoad.next(e)}loadbfStat(e){this.bfStatLoad.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),WD=(()=>{class t{constructor(){this.selectedRouteLink="",this.selectedGuid=""}GetMenuFromRunSet(e,n=null){const o=[],s={id:e.GUID,label:e.Name,routerLink:["/"],icon:"fa fa-play-circle",expanded:!0,title:e.Name,queryParams:n?{ExecutionId:n}:null};return this.CheckSelectedGuid(s.id,s.routerLink),this.SetRunners(e,s),o.push(s),o}SetRunners(e,n){return n.items=[],e.RunnersColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+o.Seq],icon:"fa fa-play-circle-o",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetBusinessFlow(o,r)}),n}SetBusinessFlow(e,n){e.BusinessFlowsColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+e.Seq+"/"+o.Seq],icon:"fa fa-sitemap",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetActivites(o,e,r)})}SetActivites(e,n,o){null!=e.ActivitiesColl&&e.ActivitiesColl.forEach(s=>{let r=this.getStatusIcon(s.RunStatus);const a={id:s.GUID,label:s.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/"+s.Seq],icon:"fa fa-bars",title:s.Name,styleClass:r};this.CheckSelectedGuid(a.id,a.routerLink),o.items.push(a),a.items=[],this.SetActions(s,a,n,e)})}SetActions(e,n,o,s){null!=e.ActionsColl&&e.ActionsColl.forEach(r=>{let a=this.getStatusIcon(r.RunStatus);const l={id:r.GUID,label:r.Name,routerLink:["/"+o.Seq+"/"+s.Seq+"/"+e.Seq+"/"+r.Seq],icon:"fa fa-bolt",title:r.Name,styleClass:a};this.CheckSelectedGuid(l.id,l.routerLink),n.items.push(l)})}SetActGroups(e,n,o){const s={id:"",label:"Activities Groups",icon:"activityGroup-menu-icon",items:[]};e.ActivitiesGroupsColl.forEach(r=>{const a={id:r.GUID,label:r.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/ag/ag/"+r.Name],icon:"fa fa-fw fa-exclamation-circle",title:r.Name};this.CheckSelectedGuid(a.id,a.routerLink),s.items.push(a)}),o.items.push(s)}GetShortName(e){return e.length>20?e.substring(0,20)+"...":e}CheckSelectedGuid(e,n){typeof this.selectedGuid<"u"&&this.selectedGuid&&""===this.selectedRouteLink&&this.selectedGuid===e&&(this.selectedRouteLink=n+"?Guid="+e)}getStatusIcon(e){let n=" "+e+"Status";return e==Lt.Failed||e==Lt.FailIgnored||e==Lt.Passed||e==Lt.Canceled?n:e==Lt.InProgress||n.search("Progress")?"InProgressStatus":e==Lt.Queued||e==Lt.Stopped?n:void 0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class be{static equals(i,e,n){return n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof i&&"object"==typeof e){var s,r,a,n=Array.isArray(i),o=Array.isArray(e);if(n&&o){if((r=i.length)!=e.length)return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[s],e[s]))return!1;return!0}if(n!=o)return!1;var l=this.isDate(i),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return i.getTime()==e.getTime();var u=i instanceof RegExp,p=e instanceof RegExp;if(u!=p)return!1;if(u&&p)return i.toString()==e.toString();var m=Object.keys(i);if((r=m.length)!==Object.keys(e).length)return!1;for(s=r;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,m[s]))return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[a=m[s]],e[a]))return!1;return!0}return i!=i&&e!=e}static resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),o=i;for(let s=0,r=n.length;s=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static insertIntoOrderedArray(i,e,n,o){if(n.length>0){let s=!1;for(let r=0;re){n.splice(r,0,i),s=!0;break}s||n.push(i)}else n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let o=0;o-1&&(i=i.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),i}static isDate(i){return"[object Date]"===Object.prototype.toString.call(i)}static isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!this.isDate(i)&&"object"==typeof i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}static compare(i,e,n,o=1){let s=-1;const r=this.isEmpty(i),a=this.isEmpty(e);return s=r&&a?0:r?o:a?-o:"string"==typeof i&&"string"==typeof e?i.localeCompare(e,n,{numeric:!0}):ie?1:0,s}static sort(i,e,n=1,o,s=1){return(1===s?n:s)*be.compare(i,e,o,n)}static merge(i,e){if(null!=i||null!=e)return null!=i&&"object"!=typeof i||null!=e&&"object"!=typeof e?null!=i&&"string"!=typeof i||null!=e&&"string"!=typeof e?e||i:[i||"",e||""].join(" "):{...i||{},...e||{}}}static isPrintableCharacter(i=""){return this.isNotEmpty(i)&&1===i.length&&i.match(/\S| /)}static getItemValue(i,...e){return this.isFunction(i)?i(...e):i}static findLastIndex(i,e){let n=-1;if(this.isNotEmpty(i))try{n=i.findLastIndex(e)}catch{n=i.lastIndexOf([...i].reverse().find(e))}return n}static findLast(i,e){let n;if(this.isNotEmpty(i))try{n=i.findLast(e)}catch{n=[...i].reverse().find(e)}return n}}var QD=0;function $t(t="pn_id_"){return`${t}${++QD}`}var Wn=function zK(){let t=[];const o=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:o,set:(s,r,a)=>{r&&(r.style.zIndex=String(((s,r)=>{let a=t.length>0?t[t.length-1]:{key:s,value:r},l=a.value+(a.key===s?0:r)+2;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(r=>r.value!==s)})(o(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const ZD=["*"];let vi=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),YD=(()=>class t{static AND="and";static OR="or"})(),df=(()=>{class t{filter(e,n,o,s,r){let a=[];if(e)for(let l of e)for(let c of n){let u=be.resolveFieldData(l,c);if(this.filters[s](u,o,r)){a.push(l);break}}return a}filters={startsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return be.removeAccents(e.toString()).toLocaleLowerCase(o).slice(0,s.length)===s},contains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1!==be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},notContains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1===be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},endsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o),r=be.removeAccents(e.toString()).toLocaleLowerCase(o);return-1!==r.indexOf(s,r.length-s.length)},equals:(e,n,o)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o)),notEquals:(e,n,o)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let o=0;onull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,o)=>this.filters.equals(e,n,o),isNot:(e,n,o)=>this.filters.notEquals(e,n,o),before:(e,n,o)=>this.filters.lt(e,n,o),after:(e,n,o)=>this.filters.gt(e,n,o),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dr=(()=>{class t{clickSource=new re;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ki=(()=>{class t{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[vi.STARTS_WITH,vi.CONTAINS,vi.NOT_CONTAINS,vi.ENDS_WITH,vi.EQUALS,vi.NOT_EQUALS],numeric:[vi.EQUALS,vi.NOT_EQUALS,vi.LESS_THAN,vi.LESS_THAN_OR_EQUAL_TO,vi.GREATER_THAN,vi.GREATER_THAN_OR_EQUAL_TO],date:[vi.DATE_IS,vi.DATE_IS_NOT,vi.DATE_BEFORE,vi.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new re;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-header"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),rC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-footer"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),sn=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(V($o))};static \u0275dir=ut({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),Qe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),di=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})(),j=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let o=n.trim().split(" ");for(let s=0;so.split(" ").forEach(s=>this.removeClass(e,s)))}static hasClass(e,n){return!(!e||!n)&&(e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return Array.from(e.querySelectorAll(n))}static findSingle(e,n){return this.isElement(e)?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,o=0;for(var s=0;s{if(W)return"relative"===getComputedStyle(W).getPropertyValue("position")?W:o(W.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=n.offsetHeight,a=n.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),m=o(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let _,b;a.top+r+s.height>u.height?(_=a.top-m.top-s.height,e.style.transformOrigin="bottom",a.top+_<0&&(_=-1*a.top)):(_=r+a.top-m.top,e.style.transformOrigin="top");const E=a.left+s.width-u.width;b=s.width>u.width?-1*(a.left-m.left):E>0?a.left-m.left-E:a.left-m.left,e.style.top=_+"px",e.style.left=b+"px"}static absolutePosition(e,n){const o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,r=o.width,a=n.offsetHeight,l=n.offsetWidth,c=n.getBoundingClientRect(),u=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),m=this.getViewport();let _,b;c.top+a+s>m.height?(_=c.top+u-s,e.style.transformOrigin="bottom",_<0&&(_=u)):(_=a+c.top+u,e.style.transformOrigin="top"),b=c.left+r>m.width?Math.max(0,c.left+p+l-r):c.left+p,e.style.top=_+"px",e.style.left=b+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let o=this.getParents(e);const s=/(auto|scroll)/,r=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let p=this.findSingle(a,u);p&&r(p)&&n.push(p)}}9!==a.nodeType&&r(a)&&n.push(a)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let o=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=o?parseFloat(o):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),a=r?parseFloat(r):0,l=e.getBoundingClientRect(),u=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,p=e.scrollTop,m=e.clientHeight,_=this.getOuterHeight(n);u<0?e.scrollTop=p+u:u+_>m&&(e.scrollTop=p+u-m+_)}static fadeIn(e,n){e.style.opacity=0;let o=+new Date,s=0,r=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-o)/n,e.style.opacity=s,o=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var o=1,a=50/n;let l=setInterval(()=>{(o-=a)<=0&&(o=0,clearInterval(l)),e.style.opacity=o},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,n){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let o=e.offsetWidth;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return o}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static width(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n}static getOuterHeight(e,n){let o=e.offsetHeight;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return o}static getHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),n}static getViewport(){let e=window,n=document,o=n.documentElement,s=n.getElementsByTagName("body")[0];return{width:e.innerWidth||o.clientWidth||s.clientWidth,height:e.innerHeight||o.clientHeight||s.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let o=e.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(n,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,n){if(this.isElement(n))n.appendChild(e);else{if(!(n&&n.el&&n.el.nativeElement))throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let o=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,o){e[n].apply(e,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableElements(e,n=""){let o=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),s=[];for(let r of o)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return s}static getFirstFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[0]:null}static getLastFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(e,n=!1){const o=t.getFocusableElements(e);let s=0;if(o&&o.length>0){const r=o.indexOf(o[0].ownerDocument.activeElement);n?s=-1==r||0===r?o.length-1:r-1:-1!=r&&r!==o.length-1&&(s=r+1)}return o[s]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:const o=typeof e;if("string"===o)return document.querySelector(e);if("object"===o&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const r=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return r&&9===r.nodeType||this.isExist(r)?r:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){const o=e.getAttribute(n);return isNaN(o)?"true"===o||"false"===o?"true"===o:o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})();class Vu{element;listener;scrollableParents;constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=j.getScrollableParents(this.element);for(let i=0;i{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=be.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[Et],ngContentSelectors:UK,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0})}return t})(),bi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Qi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function $K(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.collapseIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function KK(t,i){1&t&&le(0,"ChevronDownIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function GK(t,i){if(1&t&&(we(0),g(1,$K,1,4,"span",9),g(2,KK,1,2,"ChevronDownIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.collapseIcon),h(1),d("ngIf",!e.accordion.collapseIcon)}}function qK(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.expandIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function WK(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function QK(t,i){if(1&t&&(we(0),g(1,qK,1,4,"span",9),g(2,WK,1,2,"ChevronRightIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.expandIcon),h(1),d("ngIf",!e.accordion.expandIcon)}}function ZK(t,i){if(1&t&&(we(0),g(1,GK,3,2,"ng-container",3),g(2,QK,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.selected),h(1),d("ngIf",!e.selected)}}function YK(t,i){}function XK(t,i){1&t&&g(0,YK,0,0,"ng-template")}function JK(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.header," ")}}function eG(t,i){1&t&&ze(0)}function tG(t,i){1&t&&Kn(0,1,["*ngIf","hasHeaderFacet"])}function nG(t,i){1&t&&ze(0)}function iG(t,i){if(1&t&&(we(0),g(1,nG,1,0,"ng-container",6),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)}}const oG=["*",[["p-header"]]],sG=function(t){return{$implicit:t}},XD=function(t){return{transitionParams:t}},rG=function(t){return{value:"visible",params:t}},aG=function(t){return{value:"hidden",params:t}},lG=["*","p-header"],cG=["*"];let fa=(()=>{class t{el;changeDetector;id;header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}headerAriaLevel=2;selectedChange=new ge;headerFacet;templates;_selected=!1;get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}contentTemplate;headerTemplate;iconTemplate;loaded=!1;accordion;constructor(e,n,o){this.el=n,this.changeDetector=o,this.accordion=e,this.id=$t()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"icon":this.iconTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var o=0;o0}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ga)),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordionTab"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,4),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:"headerAriaLevel"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:lG,decls:12,vars:45,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],["role","heading",1,"p-accordion-header"],["role","button",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-accordion-header-text"]],template:function(n,o){1&n&&(Ti(oG),x(0,"div",0)(1,"div",1)(2,"a",2),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeydown(r)}),g(3,ZK,3,2,"ng-container",3),g(4,XK,1,0,null,4),g(5,JK,2,1,"span",5),g(6,eG,1,0,"ng-container",6),g(7,tG,1,0,"ng-content",3),A()(),x(8,"div",7)(9,"div",8),Kn(10),g(11,iG,2,1,"ng-container",3),A()()()),2&n&&(Ii("p-accordion-tab-active",o.selected),d("ngClass",o.tabStyleClass)("ngStyle",o.tabStyle),K("data-pc-name","accordiontab"),h(1),Ii("p-highlight",o.selected)("p-disabled",o.disabled),K("aria-level",o.headerAriaLevel)("data-p-disabled",o.disabled)("data-pc-section","header"),h(1),yn(o.headerStyle),d("ngClass",o.headerStyleClass),K("tabindex",o.disabled?null:0)("id",o.getTabHeaderActionId(o.id))("aria-controls",o.getTabContentId(o.id))("aria-expanded",o.selected)("aria-disabled",o.disabled)("data-pc-section","headeraction"),h(1),d("ngIf",!o.iconTemplate),h(1),d("ngTemplateOutlet",o.iconTemplate)("ngTemplateOutletContext",He(35,sG,o.selected)),h(1),d("ngIf",!o.hasHeaderFacet),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.hasHeaderFacet),h(1),d("@tabContent",o.selected?He(39,rG,He(37,XD,o.transitionOptions)):He(43,aG,He(41,XD,o.transitionOptions))),K("id",o.getTabContentId(o.id))("aria-hidden",!o.selected)("aria-labelledby",o.getTabHeaderActionId(o.id))("data-pc-section","toggleablecontent"),h(1),d("ngClass",o.contentStyleClass)("ngStyle",o.contentStyle),h(2),d("ngIf",o.contentTemplate&&(o.cache?o.loaded:o.selected)))},dependencies:function(){return[Ct,gt,on,Ht,Qi,bi]},styles:["@layer primeng{.p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}}\n"],encapsulation:2,data:{animation:[Oo("tabContent",[Us("hidden",en({height:"0",visibility:"hidden"})),Us("visible",en({height:"*",visibility:"visible"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),ga=(()=>{class t{el;changeDetector;multiple=!1;style;styleClass;expandIcon;collapseIcon;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}selectOnFocus=!1;get headerAriaLevel(){return this._headerAriaLevel}set headerAriaLevel(e){"number"==typeof e&&e>0?this._headerAriaLevel=e:2!==this._headerAriaLevel&&(this._headerAriaLevel=2)}onClose=new ge;onOpen=new ge;activeIndexChange=new ge;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,n){this.el=e,this.changeDetector=n}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e)}}onTabArrowDownKey(e){const n=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const n=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const n=this.findFirstHeaderAction();this.changeFocusedTab(n),e.preventDefault()}changeFocusedTab(e){e&&(j.focus(e),this.selectOnFocus&&this.tabs.forEach((n,o)=>{let s=this.multiple?this._activeIndex.includes(o):o===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),n.id==e.id&&(n.selected=!n.selected,this._activeIndex.includes(o)?this._activeIndex=this._activeIndex.filter(r=>r!==o):this._activeIndex.push(o))):n.id==e.id?(n.selected=!n.selected,this._activeIndex=o):n.selected=!1,n.selectedChange.emit(s),this.activeIndexChange.emit(this._activeIndex),n.changeDetector.markForCheck()}))}findNextHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){return this.findNextHeaderAction(this.el.nativeElement.firstElementChild.childNodes[0],!0)}findLastHeaderAction(){const e=this.el.nativeElement.firstElementChild.childNodes;return this.findPrevHeaderAction(e[e.length-1],!0)}onTabEndKey(e){const n=this.findLastHeaderAction();this.changeFocusedTab(n),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(n.selected){if(!this.multiple)return void(e=o);e.push(o)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordion"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,fa,5),2&n){let r;Se(r=Ee())&&(o.tabList=r)}},hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown",function(r){return o.onKeydown(r)})},inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex",selectOnFocus:"selectOnFocus",headerAriaLevel:"headerAriaLevel"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:cG,decls:2,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(n,o){1&n&&(Ti(),x(0,"div",0),Kn(1),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-accordion p-component")("ngStyle",o.style))},dependencies:[Ct,Ht],encapsulation:2,changeDetection:0})}return t})(),JD=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qi,bi,Qe]})}return t})();function uG(t,i){if(1&t&&(x(0,"div",8)(1,"span"),Le(2),A()()),2&t){const e=f(2).$implicit,n=f();h(1),Ve(n.getstatus(e.value)),h(1),dt(e.value)}}function dG(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit;h(1),dt(e.value)}}const pG=function(){return["Execution Status"]};function hG(t,i){if(1&t&&(x(0,"div",3),g(1,uG,3,4,"div",6),g(2,dG,2,1,"div",7),A()),2&t){const e=f().$implicit;h(1),d("ngSwitchCase",Jt(1,pG).includes(e.field)?e.field:"")}}function fG(t,i){1&t&&(x(0,"div",3),Le(1,"N/A"),A())}function gG(t,i){if(1&t&&(we(0,2),x(1,"div",3)(2,"strong"),Le(3),A()(),g(4,hG,3,2,"div",4),g(5,fG,2,0,"ng-template",null,5,In),Te()),2&t){const e=i.$implicit,n=Bt(6);d("ngSwitch",e.field),h(3),Pt(" ",e.field,": "),h(1),d("ngIf",e.value)("ngIfElse",n)}}let Ul=(()=>{class t{constructor(){}ngOnInit(){}getstatus(e){return"Passed"==e?"passed-color":"Failed"==e?"failed-color":"Blocked"==e?"blocked-color":"Stopped"==e?"stopped-color":"Pending"==e?"pending-color":"Skipped"==e?"skipped-color":"In Progress"==e?"inprogress-color":"Canceled"==e?"canceled-color":"Other"==e?"other-color":void 0}datepipe(e){e.includes("s")&&(e=e.replace("s",""));var n=new Date(0,0,0,0,0,0,0);return n.toLocaleString("HH:mm:ss.SSS"),n.setSeconds(e),n.setMilliseconds(e.split(".")[1]),n}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-general-details"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[1,"col-12","md:col-3","row"],["class","col-12 md:col-3 row",4,"ngIf","ngIfElse"],["elseBlock",""],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"numbers-style"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,gG,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.data))},dependencies:[Jn,gt,wl,ch,x0],styles:[".row[_ngcontent-%COMP%]{border:solid 1px #ffffff;background-color:#f5f5f6;padding:1rem}.row[_ngcontent-%COMP%]:nth-child(4n+1){background:#eaebeb!important}.row[_ngcontent-%COMP%]:nth-child(4n+3){background:#eaebeb!important}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}"]})}return t})();class ek extends re{constructor(i=1/0,e=1/0,n=sC){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:r}=this;e||(n.push(i),!o&&n.push(s.now()+r)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,s=o.slice();for(let r=0;ra=>t[r](i,a,e)):function CG(t){return L(t.addListener)&&L(t.removeListener)}(t)?mG.map(tk(t,i)):function vG(t){return L(t.on)&&L(t.off)}(t)?IG.map(tk(t,i)):[];if(!o&&dg(t))return si(r=>aC(r,i,e))(Ni(t));if(!o)throw new TypeError("Invalid event target");return new ce(r=>{const a=(...l)=>r.next(1s(a)})}function tk(t,i){return e=>n=>t[e](i,n)}function nk(t,i=GD){return Me((e,n)=>{let o=null,s=null,r=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=s;s=null,n.next(c)}};function l(){const c=r+t,u=i.now();if(u{s=c,r=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{s=o=null}))})}const yG=["*"];var An=function(t){return t.AnnotationChart="AnnotationChart",t.AreaChart="AreaChart",t.Bar="Bar",t.BarChart="BarChart",t.BubbleChart="BubbleChart",t.Calendar="Calendar",t.CandlestickChart="CandlestickChart",t.ColumnChart="ColumnChart",t.ComboChart="ComboChart",t.PieChart="PieChart",t.Gantt="Gantt",t.Gauge="Gauge",t.GeoChart="GeoChart",t.Histogram="Histogram",t.Line="Line",t.LineChart="LineChart",t.Map="Map",t.OrgChart="OrgChart",t.Sankey="Sankey",t.Scatter="Scatter",t.ScatterChart="ScatterChart",t.SteppedAreaChart="SteppedAreaChart",t.Table="Table",t.Timeline="Timeline",t.TreeMap="TreeMap",t.WordTree="wordtree",t}(An||{});const xG={[An.AnnotationChart]:"annotationchart",[An.AreaChart]:"corechart",[An.Bar]:"bar",[An.BarChart]:"corechart",[An.BubbleChart]:"corechart",[An.Calendar]:"calendar",[An.CandlestickChart]:"corechart",[An.ColumnChart]:"corechart",[An.ComboChart]:"corechart",[An.PieChart]:"corechart",[An.Gantt]:"gantt",[An.Gauge]:"gauge",[An.GeoChart]:"geochart",[An.Histogram]:"corechart",[An.Line]:"line",[An.LineChart]:"corechart",[An.Map]:"map",[An.OrgChart]:"orgchart",[An.Sankey]:"sankey",[An.Scatter]:"scatter",[An.ScatterChart]:"corechart",[An.SteppedAreaChart]:"corechart",[An.Table]:"table",[An.Timeline]:"timeline",[An.TreeMap]:"treemap",[An.WordTree]:"wordtree"},ok=new Ye("GOOGLE_CHARTS_CONFIG"),wG=new Ye("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>ht({version:"current",safeMode:!1,...et(ok,zt.Optional)||{}})});let pf=(()=>{class t{constructor(e,n,o){this.zone=e,this.localeId=n,this.config$=o,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new re}isGoogleChartsAvailable(){return!(typeof google>"u"||typeof google.charts>"u")}loadChartPackages(...e){return this.loadGoogleCharts().pipe(si(()=>this.config$),at(n=>({version:"current",safeMode:!1,...n||{}})),Ao(n=>new ce(o=>{google.charts.load(n.version,{packages:e,language:this.localeId,mapsApiKey:n.mapsApiKey,safeMode:n.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{o.next(),o.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return ht(void 0);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(n=>n.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(Ze(Tt),Ze(us),Ze(wG))},t.\u0275prov=nt({token:t,factory:t.\u0275fac}),t})(),sk=(()=>{class t{create(e,n,o){if(null==e)return;let s=!0;null!=n&&(s=!1);const r=google.visualization.arrayToDataTable(this.getDataAsTable(e,n),s);return o&&this.applyFormatters(r,o),r}getDataAsTable(e,n){return n?[n,...e]:e}applyFormatters(e,n){for(const o of n)o.formatter.format(e,o.colIndex)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),EG=(()=>{class t{constructor(e){this.loaderService=e,this.error=new ge,this.ready=new ge,this.stateChange=new ge,this.id=function TG(){return"_"+Math.random().toString(36).substr(2,9)}(),this.wrapperReadySubject=new ek(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(V(pf))},t.\u0275cmp=Oe({type:t,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,n){2&e&&x_("id",n.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[Hn],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),t})(),DG=(()=>{class t{constructor(e,n,o){this.element=e,this.loaderService=n,this.dataTableService=o,this.ready=new ge,this.error=new ge,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(o=>o.wrapperReady$),n=this.controlWrappers.map(o=>o.for).map(o=>Array.isArray(o)?Cu(o.map(s=>s.wrapperReady$)):o.wrapperReady$);Cu([...e,...n]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(n,o,s)=>{google.visualization.events.addListener(n,o,s)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",n=>this.error.emit(n))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const n=e.for.map(o=>o.chartWrapper);this.dashboard.bind(e.controlWrapper,n)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk))},t.\u0275cmp=Oe({type:t,selectors:[["dashboard"]],contentQueries:function(e,n,o){if(1&e&&Gt(o,EG,4),2&e){let s;Se(s=Ee())&&(n.controlWrappers=s)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[Hn],ngContentSelectors:yG,decls:1,vars:0,template:function(e,n){1&e&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0}),t})(),rk=(()=>{class t{constructor(e,n,o,s){this.element=e,this.scriptLoaderService=n,this.dataTableService=o,this.dashboard=s,this.options={},this.dynamicResize=!1,this.ready=new ge,this.error=new ge,this.select=new ge,this.mouseover=new ge,this.mouseleave=new ge,this.wrapperReadySubject=new ek(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){this.scriptLoaderService.loadChartPackages(function AG(t){return xG[t]}(this.type)).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let n=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),n=!0),e.type&&(this.wrapper.setChartType(this.type),n=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),n=!0),n&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,n){const o=this.registerChartEvent(this.chart,e,n);return this.eventListeners.set(o,{eventName:e,callback:n,handle:o}),o}removeEventListener(e){const n=this.eventListeners.get(e);n&&(google.visualization.events.removeListener(n.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=aC(window,"resize",{passive:!0}).pipe(nk(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return{title:this.title,width:this.width,height:this.height,...this.options}}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,n,o){return google.visualization.events.addListener(e,n,o)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk),V(DG,8))},t.\u0275cmp=Oe({type:t,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",options:"options",formatters:"formatters",dynamicResize:"dynamicResize"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[Hn],decls:0,vars:0,template:function(e,n){},styles:["[_nghost-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:block}"],changeDetection:0}),t})(),kG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:ok,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qe({type:t}),t.\u0275inj=Ge({providers:[pf]}),t})(),MG=(()=>{class t{constructor(e){this.communicatorService=e}ngOnInit(){this.InitGraph(),this.communicatorService.onactionStatLoad.subscribe(e=>{"Completed"==e&&"Actions"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Activities"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Runners"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Business Flows"==this.title&&this.InitGraph()})}InitGraph(){this.type="PieChart",this.title=this.chartTitle,this.data=this.executionData,this.columnNames=["Status","Percentage"],this.options={chartArea:{left:0,height:220,width:400},height:400,width:400,legend:{position:"labeled"},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"],is3D:!1,pieHole:.7,pieSliceText:"none",titleTextStyle:{fontFamily:"Arial",fontColor:"#000000",fontSize:12,bold:!0}},this.data=this.executionData}delay(e){return new Promise(n=>setTimeout(n,e))}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-chart"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function OG(t,i){if(1&t&&(x(0,"div")(1,"div",1),le(2,"app-google-chart",2)(3,"app-google-chart",2)(4,"app-google-chart",2)(5,"app-google-chart",2),A()()),2&t){const e=f();h(2),d("executionData",e.runnerData)("chartTitle",e.GingerRunnerTitle),h(1),d("executionData",e.businessFlowsData)("chartTitle",e.BusinessFlowsTitle),h(1),d("executionData",e.activitiesData)("chartTitle",e.ActivitiesTitle),h(1),d("executionData",e.actionsData)("chartTitle",e.ActionsTitle)}}let LG=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this._userDataManagerService=o,this.communicatorService=s,this.isStatisticsVisibleEvent=new ge,this.isStatisticsVisible=!1,this.lables=[Lt.Passed,Lt.Failed,Lt.Blocked,Lt.Stopped,Lt.Pending],this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.LoadActivityStat=!0,this.LoadActionStat=!0}ngOnInit(){}initComponents(){this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.RunsetJson=this._userDataManagerService.getItemCache(),this.LoadActivityStat=null==this._userDataManagerService.getByKey("LoadActivityStat")||this._userDataManagerService.getByKey("LoadActivityStat"),this.LoadActionStat=null==this._userDataManagerService.getByKey("LoadActionStat")||this._userDataManagerService.getByKey("LoadActionStat"),this.activitiesData=this._userDataManagerService.getByKey("ActivitiesStatistics"),this.actionsData=this._userDataManagerService.getByKey("ActionsStatistics"),this.executionDataGingerRunner=this.calculatedDataService.getRunnersExecutionStatusArray(),this.GingerRunnerTitle="Runners",this.calculatedDataService.populateChartsData(this.runnerData,this.executionDataGingerRunner),this.communicatorService.loadrunnerStat("Completed"),this.executionDataBusinessFlows=this.calculatedDataService.getAllBusinessFlowsExecutionStatusArray(),this.BusinessFlowsTitle="Business Flows",this.calculatedDataService.populateChartsData(this.businessFlowsData,this.executionDataBusinessFlows),this.communicatorService.loadbfStat("Completed"),this.ActivitiesTitle="Activities",this.ActionsTitle="Actions",(null==this.activitiesData||null==this.activitiesData||this.activitiesData.length<0||this.LoadActivityStat)&&(this.activitiesData=[],this.executionDataActivities=this.calculatedDataService.getActivitiesExecutionStatusArray(),null!=this.executionDataActivities?this.calculatedDataService.populateChartsData(this.activitiesData,this.executionDataActivities):this.restServiceObj.GetAllActivitiesStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.activitiesData,o),this._userDataManagerService.setItem("ActivitiesStatistics",this.activitiesData),this.communicatorService.loadactivityStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActivityStat","false")}})),(null==this.actionsData||null==this.actionsData||this.actionsData.length<0||this.LoadActivityStat)&&(this.actionsData=[],this.executionDataActions=this.calculatedDataService.getActionsExecutionStatusArray(),null!=this.executionDataActions?this.calculatedDataService.populateChartsData(this.actionsData,this.executionDataActions):this.restServiceObj.GetAllActionsStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.actionsData,o),this._userDataManagerService.setItem("ActionsStatistics",this.actionsData),this.communicatorService.loadactionStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActionStat","false")}})),null!=this.runnerData&&this.runnerData.length>0||this.businessFlowsData&&this.businessFlowsData.length>0||this.activitiesData&&this.activitiesData.length>0||this.actionsData&&this.actionsData.length>0?(this.isStatisticsVisibleEvent.emit(!0),this.isStatisticsVisible=!0):(this.isStatisticsVisibleEvent.emit(!1),this.isStatisticsVisible=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(Co),V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-execution-statistic"]],outputs:{isStatisticsVisibleEvent:"isStatisticsVisibleEvent"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex-container"],[3,"executionData","chartTitle"]],template:function(n,o){1&n&&g(0,OG,6,8,"div",0),2&n&&d("ngIf",o.isStatisticsVisible)},dependencies:[gt,MG],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:wrap}"]})}return t})(),_s=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oo=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){ei(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let n=this.getInk();if(!n||"none"===this.document.defaultView?.getComputedStyle(n,null).display)return;if(j.removeClass(n,"p-ink-active"),!j.getHeight(n)&&!j.getWidth(n)){let a=Math.max(j.getOuterWidth(this.el.nativeElement),j.getOuterHeight(this.el.nativeElement));n.style.height=a+"px",n.style.width=a+"px"}let o=j.getOffset(this.el.nativeElement),s=e.pageX-o.left+this.document.body.scrollTop-j.getWidth(n)/2,r=e.pageY-o.top+this.document.body.scrollLeft-j.getHeight(n)/2;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px"),j.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&j.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let hf=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(kr);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(e,n){this.el=e,this.document=n}ngAfterViewInit(){j.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[kr.button,kr.component];return this.icon&&!this.label&&be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly),this.loading&&(e.push(kr.disabled,kr.loading),!this.icon&&this.label&&e.push(kr.labelOnly),this.icon&&!this.label&&!be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(this.label){let e=this.document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=this.document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&j.addClass(e,n);let o=this.getIconClass();o&&j.addMultipleClasses(e,o),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=j.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=j.findSingle(this.htmlElement,".p-button-icon"),n=j.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?e.className=this.iconPos?"p-button-icon "+(n?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(n){return new(n||t)(V(bt),V(Wt))};static \u0275dir=ut({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,_s,Qe]})}return t})(),Mr=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ff=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mn=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ak=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const $G=["container"],KG=["inputfield"],GG=["contentWrapper"];function qG(t,i){if(1&t){const e=De();x(0,"TimesIcon",10),me("click",function(){return G(e),q(f(3).clear())}),A()}2&t&&d("styleClass","p-calendar-clear-icon")}function WG(t,i){}function QG(t,i){1&t&&g(0,WG,0,0,"ng-template")}function ZG(t,i){if(1&t){const e=De();x(0,"span",11),me("click",function(){return G(e),q(f(3).clear())}),g(1,QG,1,0,null,12),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function YG(t,i){if(1&t&&(we(0),g(1,qG,1,1,"TimesIcon",8),g(2,ZG,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function XG(t,i){1&t&&le(0,"span",15),2&t&&d("ngClass",f(3).icon)}function JG(t,i){1&t&&le(0,"CalendarIcon")}function eq(t,i){}function tq(t,i){1&t&&g(0,eq,0,0,"ng-template")}function nq(t,i){if(1&t&&(we(0),g(1,JG,1,0,"CalendarIcon",6),g(2,tq,1,0,null,12),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.triggerIconTemplate),h(1),d("ngTemplateOutlet",e.triggerIconTemplate)}}function iq(t,i){if(1&t){const e=De();x(0,"button",13),me("click",function(o){G(e),f();const s=Bt(1);return q(f().onButtonClick(o,s))}),g(1,XG,1,1,"span",14),g(2,nq,3,2,"ng-container",6),A()}if(2&t){const e=f(2);d("disabled",e.disabled),K("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId),h(1),d("ngIf",e.icon),h(1),d("ngIf",!e.icon)}}function oq(t,i){if(1&t){const e=De();x(0,"input",4,5),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("click",function(){return G(e),q(f().onInputClick())})("blur",function(o){return G(e),q(f().onInputBlur(o))})("input",function(o){return G(e),q(f().onUserInput(o))}),A(),g(2,YG,3,2,"ng-container",6),g(3,iq,3,6,"button",7)}if(2&t){const e=f();Ve(e.inputStyleClass),d("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),K("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),h(2),d("ngIf",e.showClear&&!e.disabled&&null!=e.value),h(1),d("ngIf",e.showIcon)}}function sq(t,i){1&t&&ze(0)}function rq(t,i){1&t&&le(0,"ChevronLeftIcon",37),2&t&&d("styleClass","p-datepicker-prev-icon")}function aq(t,i){}function lq(t,i){1&t&&g(0,aq,0,0,"ng-template")}function cq(t,i){if(1&t&&(x(0,"span",38),g(1,lq,1,0,null,12),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.previousIconTemplate)}}function uq(t,i){if(1&t){const e=De();x(0,"button",35),me("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(4).onPrevButtonClick(o))}),g(1,rq,1,1,"ChevronLeftIcon",32),g(2,cq,2,1,"span",36),A()}if(2&t){const e=f(4);K("aria-label",e.prevIconAriaLabel),h(1),d("ngIf",!e.previousIconTemplate),h(1),d("ngIf",e.previousIconTemplate)}}function dq(t,i){if(1&t){const e=De();x(0,"button",39),me("click",function(o){return G(e),q(f(4).switchToMonthView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseMonth")),h(1),Pt(" ",n.getMonthName(e.month)," ")}}function pq(t,i){if(1&t){const e=De();x(0,"button",40),me("click",function(o){return G(e),q(f(4).switchToYearView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseYear")),h(1),Pt(" ",n.getYear(e)," ")}}function hq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(5);h(1),Fp("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function fq(t,i){1&t&&ze(0)}const lC=function(t){return{$implicit:t}};function gq(t,i){if(1&t&&(x(0,"span",41),g(1,hq,2,2,"ng-container",6),g(2,fq,1,0,"ng-container",42),A()),2&t){const e=f(4);h(1),d("ngIf",!e.decadeTemplate),h(1),d("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",He(3,lC,e.yearPickerValues))}}function mq(t,i){1&t&&le(0,"ChevronRightIcon",37),2&t&&d("styleClass","p-datepicker-next-icon")}function _q(t,i){}function Iq(t,i){1&t&&g(0,_q,0,0,"ng-template")}function Cq(t,i){if(1&t&&(x(0,"span",43),g(1,Iq,1,0,null,12),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.nextIconTemplate)}}function vq(t,i){if(1&t&&(x(0,"th",49)(1,"span"),Le(2),A()()),2&t){const e=f(5);h(2),dt(e.getTranslation("weekHeader"))}}function bq(t,i){if(1&t&&(x(0,"th",50)(1,"span"),Le(2),A()()),2&t){const e=i.$implicit;h(2),dt(e)}}function yq(t,i){if(1&t&&(x(0,"td",53)(1,"span",54),Le(2),A()()),2&t){const e=f().index,n=f(2).$implicit;h(2),Pt(" ",n.weekNumbers[e]," ")}}function xq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2).$implicit;h(1),dt(e.day)}}function Aq(t,i){1&t&&ze(0)}function wq(t,i){if(1&t&&(we(0),g(1,Aq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Tq(t,i){1&t&&ze(0)}function Sq(t,i){if(1&t&&(we(0),g(1,Tq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.disabledDateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Eq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f(2).$implicit;h(1),Pt(" ",e.day," ")}}const cC=function(t,i){return{"p-highlight":t,"p-disabled":i}};function Dq(t,i){if(1&t){const e=De();we(0),x(1,"span",55),me("click",function(o){G(e);const s=f().$implicit;return q(f(6).onDateSelect(o,s))})("keydown",function(o){G(e);const s=f().$implicit,r=f(3).index;return q(f(3).onDateCellKeydown(o,s,r))}),g(2,xq,2,1,"ng-container",6),g(3,wq,2,4,"ng-container",6),g(4,Sq,2,4,"ng-container",6),A(),g(5,Eq,2,1,"div",56),Te()}if(2&t){const e=f().$implicit,n=f(6);h(1),d("ngClass",mt(5,cC,n.isSelected(e)&&e.selectable,!e.selectable)),h(1),d("ngIf",!n.dateTemplate&&(e.selectable||!n.disabledDateTemplate)),h(1),d("ngIf",e.selectable||!n.disabledDateTemplate),h(1),d("ngIf",!e.selectable),h(1),d("ngIf",n.isSelected(e))}}const kq=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function Mq(t,i){if(1&t&&(x(0,"td",15),g(1,Dq,6,8,"ng-container",6),A()),2&t){const e=i.$implicit,n=f(6);d("ngClass",mt(3,kq,e.otherMonth,e.today)),K("aria-label",e.day),h(1),d("ngIf",!e.otherMonth||n.showOtherMonths)}}function Oq(t,i){if(1&t&&(x(0,"tr"),g(1,yq,3,1,"td",51),g(2,Mq,2,6,"td",52),A()),2&t){const e=i.$implicit,n=f(5);h(1),d("ngIf",n.showWeek),h(1),d("ngForOf",e)}}function Lq(t,i){if(1&t&&(x(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),g(4,vq,3,1,"th",46),g(5,bq,3,1,"th",47),A()(),x(6,"tbody"),g(7,Oq,3,2,"tr",48),A()()()),2&t){const e=f().$implicit,n=f(3);h(4),d("ngIf",n.showWeek),h(1),d("ngForOf",n.weekDays),h(2),d("ngForOf",e.dates)}}function Pq(t,i){if(1&t){const e=De();x(0,"div",24)(1,"div",25),g(2,uq,3,3,"button",26),x(3,"div",27),g(4,dq,2,3,"button",28),g(5,pq,2,3,"button",29),g(6,gq,3,5,"span",30),A(),x(7,"button",31),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).onNextButtonClick(o))}),g(8,mq,1,1,"ChevronRightIcon",32),g(9,Cq,2,1,"span",33),A()(),g(10,Lq,8,3,"div",34),A()}if(2&t){const e=i.index,n=f(3);h(2),d("ngIf",0===e),h(2),d("ngIf","date"===n.currentView),h(1),d("ngIf","year"!==n.currentView),h(1),d("ngIf","year"===n.currentView),h(1),fo("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),K("aria-label",n.nextIconAriaLabel),h(1),d("ngIf",!n.nextIconTemplate),h(1),d("ngIf",n.nextIconTemplate),h(1),d("ngIf","date"===n.currentView)}}function Fq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Rq(t,i){if(1&t){const e=De();x(0,"span",60),me("click",function(o){const r=G(e).index;return q(f(4).onMonthSelect(o,r))})("keydown",function(o){const r=G(e).index;return q(f(4).onMonthCellKeydown(o,r))}),Le(1),g(2,Fq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(4);d("ngClass",mt(3,cC,o.isMonthSelected(n),o.isMonthDisabled(n))),h(1),Pt(" ",e," "),h(1),d("ngIf",o.isMonthSelected(n))}}function Nq(t,i){if(1&t&&(x(0,"div",58),g(1,Rq,3,6,"span",59),A()),2&t){const e=f(3);h(1),d("ngForOf",e.monthPickerValues())}}function Vq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Bq(t,i){if(1&t){const e=De();x(0,"span",63),me("click",function(o){const r=G(e).$implicit;return q(f(4).onYearSelect(o,r))})("keydown",function(o){const r=G(e).$implicit;return q(f(4).onYearCellKeydown(o,r))}),Le(1),g(2,Vq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=f(4);d("ngClass",mt(3,cC,n.isYearSelected(e),n.isYearDisabled(e))),h(1),Pt(" ",e," "),h(1),d("ngIf",n.isYearSelected(e))}}function Hq(t,i){if(1&t&&(x(0,"div",61),g(1,Bq,3,6,"span",62),A()),2&t){const e=f(3);h(1),d("ngForOf",e.yearPickerValues())}}function zq(t,i){if(1&t&&(we(0),x(1,"div",20),g(2,Pq,11,10,"div",21),A(),g(3,Nq,2,1,"div",22),g(4,Hq,2,1,"div",23),Te()),2&t){const e=f(2);h(2),d("ngForOf",e.months),h(1),d("ngIf","month"===e.currentView),h(1),d("ngIf","year"===e.currentView)}}function jq(t,i){1&t&&le(0,"ChevronUpIcon")}function Uq(t,i){}function $q(t,i){1&t&&g(0,Uq,0,0,"ng-template")}function Kq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Gq(t,i){1&t&&le(0,"ChevronDownIcon")}function qq(t,i){}function Wq(t,i){1&t&&g(0,qq,0,0,"ng-template")}function Qq(t,i){1&t&&le(0,"ChevronUpIcon")}function Zq(t,i){}function Yq(t,i){1&t&&g(0,Zq,0,0,"ng-template")}function Xq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Jq(t,i){1&t&&le(0,"ChevronDownIcon")}function eW(t,i){}function tW(t,i){1&t&&g(0,eW,0,0,"ng-template")}function nW(t,i){if(1&t&&(x(0,"div",67)(1,"span"),Le(2),A()()),2&t){const e=f(3);h(2),dt(e.timeSeparator)}}function iW(t,i){1&t&&le(0,"ChevronUpIcon")}function oW(t,i){}function sW(t,i){1&t&&g(0,oW,0,0,"ng-template")}function rW(t,i){1&t&&(we(0),Le(1,"0"),Te())}function aW(t,i){1&t&&le(0,"ChevronDownIcon")}function lW(t,i){}function cW(t,i){1&t&&g(0,lW,0,0,"ng-template")}function uW(t,i){if(1&t){const e=De();x(0,"div",72)(1,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).incrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).incrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(2,iW,1,0,"ChevronUpIcon",6),g(3,sW,1,0,null,12),A(),x(4,"span"),g(5,rW,2,0,"ng-container",6),Le(6),A(),x(7,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).decrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).decrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(8,aW,1,0,"ChevronDownIcon",6),g(9,cW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("nextSecond")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentSecond<10),h(1),dt(e.currentSecond),h(1),K("aria-label",e.getTranslation("prevSecond")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function dW(t,i){1&t&&le(0,"ChevronUpIcon")}function pW(t,i){}function hW(t,i){1&t&&g(0,pW,0,0,"ng-template")}function fW(t,i){1&t&&le(0,"ChevronDownIcon")}function gW(t,i){}function mW(t,i){1&t&&g(0,gW,0,0,"ng-template")}function _W(t,i){if(1&t){const e=De();x(0,"div",73)(1,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(2,dW,1,0,"ChevronUpIcon",6),g(3,hW,1,0,null,12),A(),x(4,"span"),Le(5),A(),x(6,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(7,fW,1,0,"ChevronDownIcon",6),g(8,mW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("am")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),dt(e.pm?"PM":"AM"),h(1),K("aria-label",e.getTranslation("pm")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function IW(t,i){if(1&t){const e=De();x(0,"div",64)(1,"div",65)(2,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).incrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(3,jq,1,0,"ChevronUpIcon",6),g(4,$q,1,0,null,12),A(),x(5,"span"),g(6,Kq,2,0,"ng-container",6),Le(7),A(),x(8,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).decrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(9,Gq,1,0,"ChevronDownIcon",6),g(10,Wq,1,0,null,12),A()(),x(11,"div",67)(12,"span"),Le(13),A()(),x(14,"div",68)(15,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).incrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(16,Qq,1,0,"ChevronUpIcon",6),g(17,Yq,1,0,null,12),A(),x(18,"span"),g(19,Xq,2,0,"ng-container",6),Le(20),A(),x(21,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).decrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(22,Jq,1,0,"ChevronDownIcon",6),g(23,tW,1,0,null,12),A()(),g(24,nW,3,1,"div",69),g(25,uW,10,8,"div",70),g(26,_W,9,7,"div",71),A()}if(2&t){const e=f(2);h(2),K("aria-label",e.getTranslation("nextHour")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentHour<10),h(1),dt(e.currentHour),h(1),K("aria-label",e.getTranslation("prevHour")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(3),dt(e.timeSeparator),h(2),K("aria-label",e.getTranslation("nextMinute")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentMinute<10),h(1),dt(e.currentMinute),h(1),K("aria-label",e.getTranslation("prevMinute")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf","12"==e.hourFormat)}}const lk=function(t){return[t]};function CW(t,i){if(1&t){const e=De();x(0,"div",75)(1,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onTodayButtonClick(o))}),A(),x(2,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onClearButtonClick(o))}),A()()}if(2&t){const e=f(2);h(1),d("label",e.getTranslation("today"))("ngClass",He(4,lk,e.todayButtonStyleClass)),h(1),d("label",e.getTranslation("clear"))("ngClass",He(6,lk,e.clearButtonStyleClass))}}function vW(t,i){1&t&&ze(0)}const bW=function(t,i,e,n,o,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":o,"p-datepicker-touch-ui":s}},ck=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},yW=function(t){return{value:"visibleTouchUI",params:t}},xW=function(t){return{value:"visible",params:t}};function AW(t,i){if(1&t){const e=De();x(0,"div",16,17),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationDone(o))})("click",function(o){return G(e),q(f().onOverlayClick(o))}),Kn(2),g(3,sq,1,0,"ng-container",12),g(4,zq,5,3,"ng-container",6),g(5,IW,27,20,"div",18),g(6,CW,3,8,"div",19),Kn(7,1),g(8,vW,1,0,"ng-container",12),A()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngStyle",e.panelStyle)("ngClass",ea(14,bW,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?He(24,yW,mt(21,ck,e.showTransitionOptions,e.hideTransitionOptions)):He(29,xW,mt(26,ck,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),h(3),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",!e.timeOnly),h(1),d("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),h(1),d("ngIf",e.showButtonBar),h(2),d("ngTemplateOutlet",e.footerTemplate)}}const wW=[[["p-header"]],[["p-footer"]]],TW=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},SW=["p-header","p-footer"],EW={provide:un,useExisting:ft(()=>DW),multi:!0};let DW=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const n=e.split(":"),o=parseInt(n[0]),s=parseInt(n[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new ge;onBlur=new ge;onClose=new ge;onSelect=new ge;onClear=new ge;onInput=new ge;onTodayClick=new ge;onClearClick=new ge;onMonthChange=new ge;onYearChange=new ge;onClickOutside=new ge;onShow=new ge;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.zone=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=$t(),this.panelId=this.attributeSelector+"_panel";const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=j.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let o=e;o<=n;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(di.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(n+o);return e}createMonths(e,n){this.months=this.months=[];for(let o=0;o11&&(s=s%11-1,r=n+1),this.months.push(this.createMonth(s,r))}}getWeekNumber(e){let n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1}createMonth(e,n){let o=[],s=this.getFirstDayOfMonthIndex(e,n),r=this.getDaysCountInMonth(e,n),a=this.getDaysCountInPrevMonth(e,n),l=1,c=new Date,u=[],p=Math.ceil((r+s)/7);for(let m=0;mr){let E=this.getNextMonthAndYear(e,n);_.push({day:l-r,month:E.month,year:E.year,otherMonth:!0,today:this.isToday(c,l-r,E.month,E.year),selectable:this.isSelectable(l-r,E.month,E.year,!0)})}else _.push({day:l,month:e,year:n,today:this.isToday(c,l,e,n),selectable:this.isSelectable(l,e,n,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(_[0].year,_[0].month,_[0].day))),o.push(_)}return{month:e,year:n,dates:o,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYeare[e.length-1]){let n=e[e.length-1]-e[0];this.populateYearOptions(e[0]+n,e[e.length-1]+n)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let n=new Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate=o.getTime()?s=n:(o=n,s=null),this.updateModel([o,s])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(n);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let o=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,n){let o,s;return 0===e?(o=11,s=n-1):(o=e-1,s=n),{month:o,year:s}}getNextMonthAndYear(e,n){let o,s;return 11===e?(o=0,s=n+1):(o=e+1,s=n),{month:o,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let o of this.value)if(n=this.isDateEquals(o,e),n)break;return n}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[n,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=n&&s<=(o??n)}return!1}isMonthDisabled(e){for(let n=1;n=r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,o,s){return e.getDate()===n&&e.getMonth()===o&&e.getFullYear()===s}isSelectable(e,n,o,s){let r=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(r=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(j.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,o){const s=e.currentTarget,r=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.nextElementSibling;l?j.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];j.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=r.previousElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")||j.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=r.nextElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")?this.navigateToMonth(!1,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+3:r-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+2:r-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let s=j.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r=s[s.length-1];r.tabIndex="0",r.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=j.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;n=j.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(e=n[n.length-1])}else e=j.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let n;if("month"===this.currentView){let o=j.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=j.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let o=j.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=j.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(n=j.findSingle(e,"span.p-highlight"),!n){let o=j.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");n=o||j.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||n.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=j.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==o||0===o)if(this.focusTrap)n[n.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else n[o-1].focus();else if(-1==o)if(this.timeOnly)n[0].focus();else{let s=0;for(let r=0;ra||this.minDate.getHours()===a&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?o-24:o:"12"==this.hourFormat&&(this.currentHour<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.validateTime(o,this.currentMinute,this.currentSecond,s)&&(this.currentHour=o,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,n,o){this.disabled||(this.repeat(e,null,n,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,o,s){let r=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,s),this.cd.markForCheck()},r),o){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let n=this.currentHour-this.stepHour,o=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),n=n<=0?12+n:n),this.validateTime(n,this.currentMinute,this.currentSecond,o)&&(this.currentHour=n,this.pm=o),e.preventDefault()}incrementMinute(e){let n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let o=this.parseValueFromString(n);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);n=[];for(let s of o)n.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");n=[];for(let s=0;s{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),j.blockBodyScroll())}disableModality(){this.mask&&(j.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let n,e=this.document.body.children;for(let o=0;o{const p=o+1{let _=""+p;if(s(u))for(;_.lengths(u)?_[p]:m[p];let l="",c=!1;if(e)for(o=0;o11&&12!=o&&(o-=12),n+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,n+=":",n+=s<10?"0"+s:s,this.showSeconds&&(n+=":",n+=r<10?"0"+r:r),"12"==this.hourFormat&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(n[0]),r=parseInt(n[1]),a=this.showSeconds?parseInt(n[2]):null;if(isNaN(s)||isNaN(r)||s>23||r>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:r,second:a}}parseDate(e,n){if(null==n||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let o,s,r,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,p=-1,m=-1,_=!1,E=fe=>{let Ce=o+1{let Ce=E(fe),ve="@"===fe?14:"!"===fe?20:"y"===fe&&Ce?4:"o"===fe?3:2,Pe=new RegExp("^\\d{"+("y"===fe?ve:1)+","+ve+"}"),$e=e.substring(a).match(Pe);if(!$e)throw"Missing number at position "+a;return a+=$e[0].length,parseInt($e[0],10)},W=(fe,Ce,ve)=>{let ke=-1,Pe=E(fe)?ve:Ce,$e=[];for(let Ke=0;Ke-(Ke[1].length-pt[1].length));for(let Ke=0;Ke<$e.length;Ke++){let pt=$e[Ke][1];if(e.substr(a,pt.length).toLowerCase()===pt.toLowerCase()){ke=$e[Ke][0],a+=pt.length;break}}if(-1!==ke)return ke+1;throw"Unknown name at position "+a},te=()=>{if(e.charAt(a)!==n.charAt(o))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(p=1),o=0;o-1)for(u=1,p=m;s=this.getDaysCountInMonth(c,u-1),!(p<=s);)u++,p-=s;if("year"===this.view&&(u=-1===u?1:u,p=-1===p?1:p),b=this.daylightSavingAdjust(new Date(c,u-1,p)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==p)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let n=new Date,o={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,o),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return j.hasClass(e.target,"p-datepicker-prev")||j.hasClass(e.target,"p-datepicker-prev-icon")||j.hasClass(e.target,"p-datepicker-next")||j.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(Tt),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-calendar"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($G,5),je(KG,5),je(GG,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputfieldViewChild=s.first),Se(s=Ee())&&(o.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focus)("p-calendar-clearable",o.showClear&&!o.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[yt([EW])],ngContentSelectors:SW,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(n,o){1&n&&(Ti(wW),x(0,"span",0,1),g(2,oq,4,20,"ng-template",2),g(3,AW,9,31,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngClass",gr(6,TW,o.showIcon,o.timeOnly,o.disabled,o.focus||o.overlayVisible))("ngStyle",o.style),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:function(){return[Ct,Jn,gt,on,Ht,hf,oo,Mr,Qi,ff,bi,mn,ak]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Us("visibleTouchUI",en({transform:"translate(-50%,-50%)",opacity:1})),Ln("void => visible",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}",en({opacity:1,transform:"*"}))]),Ln("visible => void",[On("{{hideTransitionParams}}",en({opacity:0}))]),Ln("void => visibleTouchUI",[en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),On("{{showTransitionParams}}")]),Ln("visibleTouchUI => void",[On("{{hideTransitionParams}}",en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),uk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,Mr,Qi,ff,bi,mn,ak,Mi,Qe]})}return t})(),uC=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=j.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),gf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kW=["overlay"],MW=["content"];function OW(t,i){1&t&&ze(0)}const LW=function(t,i,e){return{showTransitionParams:t,hideTransitionParams:i,transform:e}},PW=function(t){return{value:"visible",params:t}},FW=function(t){return{mode:t}},RW=function(t){return{$implicit:t}};function NW(t,i){if(1&t){const e=De();x(0,"div",1,3),me("click",function(o){return G(e),q(f(2).onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){return G(e),q(f(2).onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){return G(e),q(f(2).onOverlayContentAnimationDone(o))}),Kn(2),g(3,OW,1,0,"ng-container",4),A()}if(2&t){const e=f(2);Ve(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",He(11,PW,Rn(7,LW,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),h(3),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",He(15,RW,He(13,FW,e.overlayMode)))}}const VW=function(t,i,e,n,o,s,r,a,l,c,u,p,m,_){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":i,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":o,"p-overlay-bottom":s,"p-overlay-bottom-start":r,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":p,"p-overlay-right-start":m,"p-overlay-right-end":_}};function BW(t,i){if(1&t){const e=De();x(0,"div",1,2),me("click",function(){return G(e),q(f().onOverlayClick())}),g(2,NW,4,17,"div",0),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass",zp(5,VW,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),h(2),d("ngIf",e.visible)}}const HW=["*"],zW={provide:un,useExisting:ft(()=>mf),multi:!0},jW=Ml([en({transform:"{{transform}}",opacity:0}),On("{{showTransitionParams}}")]),UW=Ml([On("{{hideTransitionParams}}",en({transform:"{{transform}}",opacity:0}))]);let mf=(()=>{class t{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return be.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return be.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return be.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return be.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new ge;onBeforeShow=new ge;onShow=new ge;onBeforeHide=new ge;onHide=new ge;onAnimationStart=new ge;onAnimationDone=new ge;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(ei(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return j.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,n,o,s,r,a,l,c){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.config=r,this.overlayService=a,this.cd=l,this.zone=c,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,n=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.addClass(this.document?.body,"p-overflow-hidden")}hide(e,n=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&j.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Wn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),j.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&j.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const n=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(n,!0),this.bindListeners();break;case"void":this.hide(n,!0),this.unbindListeners(),j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(n),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",e)}handleEvents(e,n){this[e].emit(n),this.options&&this.options[e]&&this.options[e](n),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](n)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&o}):o)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===e.code&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(ki),V(Dr),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-overlay"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(kW,5),je(MW,5)),2&n){let s;Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[yt([zW])],ngContentSelectors:HW,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(Ti(),g(0,BW,3,20,"div",0)),2&n&&d("ngIf",o.modalVisible)},dependencies:[Ct,gt,on,Ht],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[Oo("overlayContentAnimation",[Ln(":enter",[Eh(jW)]),Ln(":leave",[Eh(UW)])])]},changeDetection:0})}return t})(),$l=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Qe]})}return t})();const $W=["element"],KW=["content"];function GW(t,i){1&t&&ze(0)}const dC=function(t,i){return{$implicit:t,options:i}};function qW(t,i){if(1&t&&(we(0),g(1,GW,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(2,dC,e.loadedItems,e.getContentOptions()))}}function WW(t,i){1&t&&ze(0)}function QW(t,i){if(1&t&&(we(0),g(1,WW,1,0,"ng-container",7),Te()),2&t){const e=i.$implicit,n=i.index,o=f(3);h(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",mt(2,dC,e,o.getOptions(n)))}}const ZW=function(t){return{"p-scroller-loading":t}};function YW(t,i){if(1&t&&(x(0,"div",8,9),g(2,QW,2,5,"ng-container",10),A()),2&t){const e=f(2);d("ngClass",He(5,ZW,e.d_loading))("ngStyle",e.contentStyle),K("data-pc-section","content"),h(2),d("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function XW(t,i){1&t&&le(0,"div",11),2&t&&(d("ngStyle",f(2).spacerStyle),K("data-pc-section","spacer"))}function JW(t,i){1&t&&ze(0)}const eQ=function(t){return{numCols:t}},dk=function(t){return{options:t}};function tQ(t,i){if(1&t&&(we(0),g(1,JW,1,0,"ng-container",7),Te()),2&t){const e=i.index,n=f(4);h(1),d("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",He(4,dk,n.getLoaderOptions(e,n.both&&He(2,eQ,n._numItemsInViewport.cols))))}}function nQ(t,i){if(1&t&&(we(0),g(1,tQ,2,6,"ng-container",14),Te()),2&t){const e=f(3);h(1),d("ngForOf",e.loaderArr)}}function iQ(t,i){1&t&&ze(0)}const oQ=function(){return{styleClass:"p-scroller-loading-icon"}};function sQ(t,i){if(1&t&&(we(0),g(1,iQ,1,0,"ng-container",7),Te()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",He(3,dk,Jt(2,oQ)))}}function rQ(t,i){1&t&&le(0,"SpinnerIcon",16),2&t&&(d("styleClass","p-scroller-loading-icon"),K("data-pc-section","loadingIcon"))}function aQ(t,i){if(1&t&&(g(0,sQ,2,5,"ng-container",0),g(1,rQ,1,2,"ng-template",null,15,In)),2&t){const e=Bt(2);d("ngIf",f(3).loaderIconTemplate)("ngIfElse",e)}}const lQ=function(t){return{"p-component-overlay":t}};function cQ(t,i){if(1&t&&(x(0,"div",12),g(1,nQ,2,1,"ng-container",0),g(2,aQ,3,2,"ng-template",null,13,In),A()),2&t){const e=Bt(3),n=f(2);d("ngClass",He(4,lQ,!n.loaderTemplate)),K("data-pc-section","loader"),h(1),d("ngIf",n.loaderTemplate)("ngIfElse",e)}}const uQ=function(t,i,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":i,"p-horizontal-scroll":e}};function dQ(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("scroll",function(o){return G(e),q(f().onContainerScroll(o))}),g(3,qW,2,5,"ng-container",0),g(4,YW,3,7,"ng-template",null,4,In),g(6,XW,1,2,"div",5),g(7,cQ,4,6,"div",6),A(),Te()}if(2&t){const e=Bt(5),n=f();h(1),Ve(n._styleClass),d("ngStyle",n._style)("ngClass",Rn(12,uQ,n.inline,n.both,n.horizontal)),K("id",n._id)("tabindex",n.tabindex)("data-pc-name","scroller")("data-pc-section","root"),h(2),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngIf",n._showSpacer),h(1),d("ngIf",!n.loaderDisabled&&n._showLoader&&n.d_loading)}}function pQ(t,i){1&t&&ze(0)}const hQ=function(t,i){return{rows:t,columns:i}};function fQ(t,i){if(1&t&&(we(0),g(1,pQ,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(5,dC,e.items,mt(2,hQ,e._items,e.loadedColumns)))}}function gQ(t,i){if(1&t&&(Kn(0),g(1,fQ,2,8,"ng-container",17)),2&t){const e=f();h(1),d("ngIf",e.contentTemplate)}}const mQ=["*"];let Bu=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([n,o])=>this[`_${n}`]!==o&&(this[`_${n}`]=o))}onLazyLoad=new ge;onScroll=new ge;onScrollIndexChange=new ge;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.zone=r}ngOnInit(){this.setInitialState()}ngOnChanges(e){let n=!1;if(e.loading){const{previousValue:o,currentValue:s}=e.loading;this.lazy&&o!==s&&s!==this.d_loading&&(this.d_loading=s,n=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:o,currentValue:s}=e.numToleratedItems;o!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){const{previousValue:o,currentValue:s}=e.options;this.lazy&&o?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,n=!0),o?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!n&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){ei(this.platformId)&&j.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=j.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=j.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||j.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,n="auto"){const{numToleratedItems:o}=this.calculateNumItems(),s=this.getContentPosition(),r=(u=0,p)=>u<=p?0:u,a=(u,p,m)=>u*p+m,l=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:n});let c=0;this.both?(c={rows:r(e[0],o[0]),cols:r(e[1],o[1])},l(a(c.cols,this._itemSize[1],s.left),a(c.rows,this._itemSize[0],s.top))):(c=r(e,o),this.horizontal?l(a(c,this._itemSize,s.left),0):l(0,a(c,this._itemSize,s.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(e,n,o="auto"){if(n){const{first:s,viewport:r}=this.getRenderedRange(),a=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:o}),c="to-end"===n;if("to-start"===n){if(this.both)r.first.rows-s.rows>e[0]?a(r.first.cols*this._itemSize[1],(r.first.rows-1)*this._itemSize[0]):r.first.cols-s.cols>e[1]&&a((r.first.cols-1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.first-s>e){const u=(r.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)r.last.rows-s.rows<=e[0]+1?a(r.first.cols*this._itemSize[1],(r.first.rows+1)*this._itemSize[0]):r.last.cols-s.cols<=e[1]+1&&a((r.first.cols+1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.last-s<=e+1){const u=(r.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,o)}getRenderedRange(){const e=(s,r)=>Math.floor(s/(r||s));let n=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:s,scrollLeft:r}=this.elementViewChild.nativeElement;this.both?(n={rows:e(s,this._itemSize[0]),cols:e(r,this._itemSize[1])},o={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols}):(n=e(this.horizontal?r:s,this._itemSize),o=n+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:n,last:o}}}calculateNumItems(){const e=this.getContentPosition(),n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,o=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,s=(c,u)=>Math.ceil(c/(u||c)),r=c=>Math.ceil(c/2),a=this.both?{rows:s(o,this._itemSize[0]),cols:s(n,this._itemSize[1])}:s(this.horizontal?n:o,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[r(a.rows),r(a.cols)]:r(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:n}=this.calculateNumItems(),o=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,n]=[j.getWidth(this.contentEl),j.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),n!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,s]=[j.getWidth(this.elementViewChild.nativeElement),j.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=othis.elementViewChild.nativeElement.style[r]=a;this.both||this.horizontal?(s("height",o),s("width",n)):s("height",o)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),n=(o,s,r,a=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(s||[]).length*r+a+"px"};this.both?(n("height",this._items,this._itemSize[0],e.y),n("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?n("width",this._columns||this._items,this._itemSize,e.x):n("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const n=e?e.first:this.first,o=(r,a)=>r*a,s=(r=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${r}px, ${a}px, 0)`};if(this.both)s(o(n.cols,this._itemSize[1]),o(n.rows,this._itemSize[0]));else{const r=o(n,this._itemSize);this.horizontal?s(r,0):s(0,r)}}}onScrollPositionChange(e){const n=e.target,o=this.getContentPosition(),s=(P,W)=>P?P>W?P-W:P:0,r=(P,W)=>Math.floor(P/(W||P)),a=(P,W,te,fe,Ce,ve)=>P<=Ce?Ce:ve?te-fe-Ce:W+Ce-1,l=(P,W,te,fe,Ce,ve,ke)=>P<=ve?0:Math.max(0,ke?PW?te:P-2*ve),c=(P,W,te,fe,Ce,ve=!1)=>{let ke=W+fe+2*Ce;return P>=Ce&&(ke+=Ce+1),this.getLast(ke,ve)},u=s(n.scrollTop,o.top),p=s(n.scrollLeft,o.left);let m=this.both?{rows:0,cols:0}:0,_=this.last,b=!1,E=this.lastScrollPos;if(this.both){const P=this.lastScrollPos.top<=u,W=this.lastScrollPos.left<=p;if(!this._appendOnly||this._appendOnly&&(P||W)){const te={rows:r(u,this._itemSize[0]),cols:r(p,this._itemSize[1])},fe={rows:a(te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],P),cols:a(te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],W)};m={rows:l(te.rows,fe.rows,this.first.rows,0,0,this.d_numToleratedItems[0],P),cols:l(te.cols,fe.cols,this.first.cols,0,0,this.d_numToleratedItems[1],W)},_={rows:c(te.rows,m.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(te.cols,m.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||_.rows!==this.last.rows||m.cols!==this.first.cols||_.cols!==this.last.cols||this.isRangeChanged,E={top:u,left:p}}}else{const P=this.horizontal?p:u,W=this.lastScrollPos<=P;if(!this._appendOnly||this._appendOnly&&W){const te=r(P,this._itemSize);m=l(te,a(te,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,W),this.first,0,0,this.d_numToleratedItems,W),_=c(te,m,0,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||_!==this.last||this.isRangeChanged,E=P}}return{first:m,last:_,isRangeChanged:b,scrollPos:E}}onScrollChange(e){const{first:n,last:o,isRangeChanged:s,scrollPos:r}=this.onScrollPositionChange(e);if(s){const a={first:n,last:o};if(this.setContentPosition(a),this.first=n,this.last=o,this.lastScrollPos=r,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):n,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:n}=this.onScrollPositionChange(e);(n||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){ei(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,n=j.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,n,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(j.isVisible(this.elementViewChild?.nativeElement)){const[e,n]=[j.getWidth(this.elementViewChild?.nativeElement),j.getHeight(this.elementViewChild?.nativeElement)],[o,s]=[e!==this.defaultWidth,n!==this.defaultHeight];(this.both?o||s:this.horizontal?o:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=n,this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,n){return this.options&&this.options[e]?this.options[e](n):this[e].emit(n)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,n)=>this.getLoaderOptions(e,n),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const n=(this._items||[]).length,o=this.both?this.first.rows+e:this.first+e;return{index:o,count:n,first:0===o,last:o===n-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(e,n){const o=this.loaderArr.length;return{index:e,count:o,first:0===e,last:e===o-1,even:e%2==0,odd:e%2!=0,...n}}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-scroller"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($W,5),je(KW,5)),2&n){let s;Se(s=Ee())&&(o.elementViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Hn],ngContentSelectors:mQ,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(n,o){if(1&n&&(Ti(),g(0,dQ,8,16,"ng-container",0),g(1,gQ,2,1,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",!o._disabled)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,_s]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return t})(),Oi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,_s,Qe]})}return t})(),Kl=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:$t()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.config=s,this.renderer=r,this.viewContainer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(j.hasClass(e.relatedTarget,"p-tooltip")||j.hasClass(e.relatedTarget,"p-tooltip-text")||j.hasClass(e.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?j.appendChild(this.container,this.el.nativeElement):j.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",n=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),j.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Wn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Wn.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof $o){const n=this.viewContainer.createEmbeddedView(e);n.detectChanges(),n.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+j.getWindowScrollLeft(),top:e.top+j.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+j.getOuterWidth(this.el.nativeElement),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-j.getOuterWidth(this.container),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top-j.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top+j.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return j.hasClass(e,"p-inputwrapper")?j.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,o=e.left,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getViewport();return o+s>a.width||o<0||n<0||n+r>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):j.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Wn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(ki),V(hn),V(go))};static \u0275dir=ut({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.escape",function(r){return o.onPressEscape(r)},0,Qy)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Hn]})}return t})(),Nn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),Qs=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function _Q(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function IQ(t,i){1&t&&ze(0)}const Hu=function(t){return{height:t}},CQ=function(t,i,e){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},pC=function(t){return{$implicit:t}},vQ=["container"],bQ=["filter"],yQ=["focusInput"],xQ=["editableInput"],AQ=["items"],wQ=["scroller"],TQ=["overlay"],SQ=["firstHiddenFocusableEl"],EQ=["lastHiddenFocusableEl"];function DQ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.label())}}function kQ(t,i){1&t&&ze(0)}function MQ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(3);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.placeholder)}}function OQ(t,i){if(1&t&&g(0,MQ,2,1,"span",4),2&t){const e=f(2);d("ngIf",e.label()===e.placeholder||e.label()&&!e.placeholder)}}function LQ(t,i){if(1&t){const e=De();x(0,"span",10,11),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),g(2,DQ,2,1,"ng-container",12),g(3,kQ,1,0,"ng-container",13),g(4,OQ,1,1,"ng-template",null,14,In),A()}if(2&t){const e=Bt(5),n=f();d("ngClass",n.inputClass)("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("autofocus",n.autofocus),K("aria-disabled",n.disabled)("id",n.inputId)("aria-label",n.ariaLabel||("p-emptylabel"===n.label()?void 0:n.label()))("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible)("aria-controls",n.id+"_list")("tabindex",n.disabled?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0),h(2),d("ngIf",!n.selectedItemTemplate)("ngIfElse",e),h(1),d("ngTemplateOutlet",n.selectedItemTemplate)("ngTemplateOutletContext",He(19,pC,n.modelValue()))}}function PQ(t,i){if(1&t){const e=De();x(0,"input",15,16),me("input",function(o){return G(e),q(f().onEditableInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))}),A()}if(2&t){const e=f();d("ngClass",e.inputClass)("disabled",e.disabled),K("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function FQ(t,i){if(1&t){const e=De();x(0,"TimesIcon",19),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-dropdown-clear-icon"),K("data-pc-section","clearicon"))}function RQ(t,i){}function NQ(t,i){1&t&&g(0,RQ,0,0,"ng-template")}function VQ(t,i){if(1&t){const e=De();x(0,"span",20),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,NQ,1,0,null,21),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function BQ(t,i){if(1&t&&(we(0),g(1,FQ,1,2,"TimesIcon",17),g(2,VQ,2,2,"span",18),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function HQ(t,i){1&t&&le(0,"span",24),2&t&&d("ngClass",f(2).dropdownIcon)}function zQ(t,i){1&t&&le(0,"ChevronDownIcon",25),2&t&&d("styleClass","p-dropdown-trigger-icon")}function jQ(t,i){if(1&t&&(we(0),g(1,HQ,1,1,"span",22),g(2,zQ,1,1,"ChevronDownIcon",23),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function UQ(t,i){}function $Q(t,i){1&t&&g(0,UQ,0,0,"ng-template")}function KQ(t,i){if(1&t&&(x(0,"span",26),g(1,$Q,1,0,null,21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function GQ(t,i){1&t&&ze(0)}function qQ(t,i){1&t&&ze(0)}const pk=function(t){return{options:t}};function WQ(t,i){if(1&t&&(we(0),g(1,qQ,1,0,"ng-container",13),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,pk,e.filterOptions))}}function QQ(t,i){1&t&&le(0,"SearchIcon",25),2&t&&d("styleClass","p-dropdown-filter-icon")}function ZQ(t,i){}function YQ(t,i){1&t&&g(0,ZQ,0,0,"ng-template")}function XQ(t,i){if(1&t&&(x(0,"span",41),g(1,YQ,1,0,null,21),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function JQ(t,i){if(1&t){const e=De();x(0,"div",37)(1,"input",38,39),me("input",function(o){return G(e),q(f(3).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,QQ,1,1,"SearchIcon",23),g(4,XQ,2,1,"span",40),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||""),K("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function eZ(t,i){if(1&t&&(x(0,"div",35),me("click",function(n){return n.stopPropagation()}),g(1,WQ,2,4,"ng-container",12),g(2,JQ,5,7,"ng-template",null,36,In),A()),2&t){const e=Bt(3),n=f(2);h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function tZ(t,i){1&t&&ze(0)}const hk=function(t,i){return{$implicit:t,options:i}};function nZ(t,i){if(1&t&&g(0,tZ,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,hk,e,n))}}function iZ(t,i){1&t&&ze(0)}function oZ(t,i){if(1&t&&g(0,iZ,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,pk,e))}}function sZ(t,i){1&t&&(we(0),g(1,oZ,1,4,"ng-template",44),Te())}function rZ(t,i){if(1&t){const e=De();x(0,"p-scroller",42,43),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,nZ,1,5,"ng-template",9),g(3,sZ,2,0,"ng-container",4),A()}if(2&t){const e=f(2);yn(He(8,Hu,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function aZ(t,i){1&t&&ze(0)}const lZ=function(){return{}};function cZ(t,i){if(1&t&&(we(0),g(1,aZ,1,0,"ng-container",13),Te()),2&t){f();const e=Bt(9),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,hk,n.visibleOptions(),Jt(2,lZ)))}}function uZ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function dZ(t,i){1&t&&ze(0)}function pZ(t,i){if(1&t&&(we(0),x(1,"li",49),g(2,uZ,2,1,"span",4),g(3,dZ,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,Hu,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,pC,o.optionGroup))}}function hZ(t,i){if(1&t){const e=De();we(0),x(1,"p-dropdownItem",50),me("onClick",function(o){G(e);const s=f().$implicit;return q(f(3).onOptionSelect(o,s))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function fZ(t,i){if(1&t&&(g(0,pZ,4,9,"ng-container",4),g(1,hZ,2,9,"ng-container",4)),2&t){const e=i.$implicit;d("ngIf",e.group),h(1),d("ngIf",!e.group)}}function gZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function mZ(t,i){1&t&&ze(0,null,52)}function _Z(t,i){if(1&t&&(x(0,"li",51),g(1,gZ,2,1,"ng-container",12),g(2,mZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function IZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function CZ(t,i){1&t&&ze(0,null,53)}function vZ(t,i){if(1&t&&(x(0,"li",51),g(1,IZ,2,1,"ng-container",12),g(2,CZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function bZ(t,i){if(1&t&&(x(0,"ul",45,46),g(2,fZ,2,2,"ng-template",47),g(3,_Z,3,6,"li",48),g(4,vZ,3,6,"li",48),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",o.filterValue&&o.isEmpty()),h(1),d("ngIf",!o.filterValue&&o.isEmpty())}}function yZ(t,i){1&t&&ze(0)}function xZ(t,i){if(1&t){const e=De();x(0,"div",27)(1,"span",28,29),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,GQ,1,0,"ng-container",21),g(4,eZ,4,2,"div",30),x(5,"div",31),g(6,rZ,4,10,"p-scroller",32),g(7,cZ,2,6,"ng-container",4),g(8,bZ,5,7,"ng-template",null,33,In),A(),g(10,yZ,1,0,"ng-container",21),x(11,"span",28,34),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",e.filter),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngTemplateOutlet",e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const AZ={provide:un,useExisting:ft(()=>fk),multi:!0};let wZ=(()=>{class t{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new ge;onMouseEnter=new ge;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),g(1,_Q,2,1,"span",1),g(2,IQ,1,0,"ng-container",2),A()),2&n&&(d("id",o.id)("ngStyle",He(13,Hu,o.itemSize+"px"))("ngClass",Rn(15,CQ,o.selected,o.disabled,o.focused)),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(19,pC,o.option)))},dependencies:[Ct,gt,on,Ht,oo],encapsulation:2})}return t})(),fk=(()=>{class t{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get options(){return this._options()}set options(e){this._options.set(e)}onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onShow=new ge;onHide=new ge;onClear=new ge;onLazyLoad=new ge;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=bn(null);modelValue=bn(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=bn(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=bn(-1);labelId;listId;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&be.isNotEmpty(this.modelValue())&&""!==this.modelValue()&&this.showClear&&!this.disabled}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder&&e===this.placeholder,"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||e&&"p-emptylabel"!==e&&0!==e.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterBy||this.filterFields||this.optionValue?this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):this.options.filter(o=>-1!==o.toLowerCase().indexOf(this._filterValue().toLowerCase()));if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{const e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions()[e]):this.placeholder||"p-emptylabel"});constructor(e,n,o,s,r,a){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,a_(()=>{this.modelValue()&&this.editable&&this.updateEditableLabel()})}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&j.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&!this.modelValue()){const e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,o=!0,s=!1){const r=this.getOptionValue(n);this.updateModel(r,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o&&this.hide(!0),!1===s&&this.onChange.emit({originalEvent:e,value:r})}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder&&!this.modelValue()&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=void 0===this.getOptionLabel(this.modelValue())?this.editableInputViewChild.nativeElement.value:this.getOptionLabel(this.modelValue()))}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&void 0!==e?.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==e.target.tagName&&"clearicon"!==e.target.getAttribute("data-pc-section")&&!e.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.cd.detectChanges()))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}onEditableInput(e){const n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:n})}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n){if(!this.disabled&&!this.readonly)switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){const o=this.visibleOptions()[n];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(),e.preventDefault()}else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1)):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!n&&this.onEnterKey(e)}onEnterKey(e){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.hide()}else this.onArrowDownKey(e);e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild.el.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild.nativeElement;j.focus(n)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),this.cd.markForCheck()}applyFocus(){this.editable?j.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():j.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e)}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dropdown"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(vQ,5),je(bQ,5),je(yQ,5),je(xQ,5),je(AQ,5),je(wQ,5),je(TQ,5),je(SQ,5),je(EQ,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.editableInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[yt([AZ])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultPlaceholder",""],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,LQ,6,21,"span",2),g(3,PQ,2,5,"input",3),g(4,BQ,3,2,"ng-container",4),x(5,"div",5),g(6,jQ,3,2,"ng-container",4),g(7,KQ,2,1,"span",6),A(),x(8,"p-overlay",7,8),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(10,xZ,13,19,"ng-template",9),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),d("ngIf",!o.editable),h(1),d("ngIf",o.editable),h(1),d("ngIf",o.isVisibleClearIcon),h(1),K("aria-expanded",o.overlayVisible)("data-pc-section","trigger"),h(1),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,Bu,uC,mn,bi,Qs,wZ]},styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_f=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,gf,mn,bi,Qs,$l,Qe,Oi]})}return t})(),Or=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),If=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),hC=(()=>{class t{el;ngModel;cd;filled;constructor(e,n,o){this.el=e,this.ngModel=n,this.cd=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(n){return new(n||t)(V(bt),V(xh,8),V(Ft))};static \u0275dir=ut({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(n,o){1&n&&me("input",function(r){return o.onInput(r)}),2&n&&Ii("p-filled",o.filled)}})}return t})(),Zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const TZ=["input"];function SZ(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("ngClass","p-inputnumber-clear-icon"),K("data-pc-section","clearIcon"))}function EZ(t,i){}function DZ(t,i){1&t&&g(0,EZ,0,0,"ng-template")}function kZ(t,i){if(1&t){const e=De();x(0,"span",9),me("click",function(){return G(e),q(f(2).clear())}),g(1,DZ,1,0,null,10),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function MZ(t,i){if(1&t&&(we(0),g(1,SZ,1,2,"TimesIcon",6),g(2,kZ,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function OZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function LZ(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function PZ(t,i){}function FZ(t,i){1&t&&g(0,PZ,0,0,"ng-template")}function RZ(t,i){if(1&t&&(we(0),g(1,LZ,1,1,"AngleUpIcon",3),g(2,FZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function NZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function VZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function BZ(t,i){}function HZ(t,i){1&t&&g(0,BZ,0,0,"ng-template")}function zZ(t,i){if(1&t&&(we(0),g(1,VZ,1,1,"AngleDownIcon",3),g(2,HZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const gk=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},mk=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function jZ(t,i){if(1&t){const e=De();x(0,"span",11)(1,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(2,OZ,1,2,"span",13),g(3,RZ,3,2,"ng-container",3),A(),x(4,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(5,NZ,1,2,"span",13),g(6,zZ,3,2,"ng-container",3),A()()}if(2&t){const e=f();K("data-pc-section","buttonGroup"),h(1),Ve(e.incrementButtonClass),d("ngClass",Jt(17,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon),h(1),Ve(e.decrementButtonClass),d("ngClass",Jt(18,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section",e.decrementbutton),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}function UZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function $Z(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function KZ(t,i){}function GZ(t,i){1&t&&g(0,KZ,0,0,"ng-template")}function qZ(t,i){if(1&t&&(we(0),g(1,$Z,1,1,"AngleUpIcon",3),g(2,GZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function WZ(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(1,UZ,1,2,"span",13),g(2,qZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.incrementButtonClass),d("ngClass",Jt(8,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon)}}function QZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function ZZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function YZ(t,i){}function XZ(t,i){1&t&&g(0,YZ,0,0,"ng-template")}function JZ(t,i){if(1&t&&(we(0),g(1,ZZ,1,1,"AngleDownIcon",3),g(2,XZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function eY(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(1,QZ,1,2,"span",13),g(2,JZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.decrementButtonClass),d("ngClass",Jt(8,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","decrementbutton"),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}const tY=function(t,i,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},nY={provide:un,useExisting:ft(()=>_k),multi:!0};let _k=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new ge;onFocus=new ge;onBlur=new ge;onKeyDown=new ge;onClear=new ge;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,n,o,s){this.document=e,this.el=n,this.cd=o,this.injector=s}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(o=>!!e[o])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template}})}ngOnInit(){this.ngControl=this.injector.get(ds,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(e.map((o,s)=>[o,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=o=>n.get(o)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let o=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(o=this.prefix+o),this.suffix&&(o+=this.suffix),o}return e.toString()}return""}parseValue(e){let n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if("-"===n)return n;let o=+n;return isNaN(o)?null:o}return null}repeat(e,n,o){if(this.readonly)return;let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let o=this.step*n,s=this.parseValue(this.input?.nativeElement.value)||0,r=this.validateValue(s+o);this.maxlength&&this.maxlength0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n-1)+s.slice(n)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Delete":if(e.preventDefault(),n===o){const a=s.charAt(n),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,r=s.slice(0,n)+s.slice(n+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(n+1,n+1):r=s.slice(0,n)+s.slice(n+1);else if(l>0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n)+s.slice(n+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault())}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let n=e.which||e.keyCode,o=String.fromCharCode(n);const s=this.isDecimalSign(o),r=this.isMinusSign(o);13!=n&&e.preventDefault();const a=this.parseValue(this.input.nativeElement.value+o),l=null!=a?a.toString():"";this.maxlength&&l.length>this.maxlength||(48<=n&&n<=57||r||s)&&this.insert(e,o,{isDecimalSign:s,isMinusSign:r})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(n){this.maxlength&&(n=n.toString().substring(0,this.maxlength));let o=this.parseValue(n);null!=o&&this.insert(e,o.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const n=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:o,suffixCharIndex:s,currencyCharIndex:r}}insert(e,n,o={isDecimalSign:!1,isMinusSign:!1}){const s=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let r=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:p,currencyCharIndex:m}=this.getCharIndexes(l);let _;if(o.isMinusSign)0===r&&(_=l,(-1===u||0!==a)&&(_=this.insertText(l,n,0,a)),this.updateValue(e,_,n,"insert"));else if(o.isDecimalSign)c>0&&r===c?this.updateValue(e,l,n,"insert"):(c>r&&c0&&r>c){if(r+n.length-(c+1)<=b){const P=m>=r?m-1:p>=r?p:l.length;_=l.slice(0,r)+n+l.slice(r+n.length,P)+l.slice(P),this.updateValue(e,_,n,E)}}else _=this.insertText(l,n,r,a),this.updateValue(e,_,n,E)}}insertText(e,n,o,s){if(2===("."===n?n:n.split(".")).length){const a=e.slice(o,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,o)+this.formatValue(n)+e.slice(s):e||this.formatValue(n)}return s-o===e.length?this.formatValue(n):0===o?n+e.slice(s):s===e.length?e.slice(0,o)+n:e.slice(0,o)+n+e.slice(s)}deleteRange(e,n,o){let s;return s=o-n===e.length?"":0===n?e.slice(o):o===e.length?e.slice(0,n):e.slice(0,n)+e.slice(o),s}initCursor(){let e=this.input?.nativeElement.selectionStart,n=this.input?.nativeElement.value,o=n.length,s=null,r=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=r;let a=n.charAt(e);if(this.isNumeralChar(a))return e+r;let l=e-1;for(;l>=0;){if(a=n.charAt(l),this.isNumeralChar(a)){s=l+r;break}l--}if(null!==s)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,n,o,s){n=n||"";let r=this.input?.nativeElement.value,a=this.formatValue(e),l=r.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft),V($i))};static \u0275cmp=Oe({type:t,selectors:[["p-inputNumber"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(TZ,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-inputnumber-clearable",o.showClear&&"vertical"!=o.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[yt([nY]),Hn],decls:7,vars:39,consts:[[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("input",function(r){return o.onUserInput(r)})("keydown",function(r){return o.onInputKeyDown(r)})("keypress",function(r){return o.onInputKeyPress(r)})("paste",function(r){return o.onPaste(r)})("click",function(){return o.onInputClick()})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A(),g(3,MZ,3,2,"ng-container",3),g(4,jZ,7,19,"span",4),g(5,WZ,3,9,"button",5),g(6,eY,3,9,"button",5),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(35,tY,o.showButtons&&"stacked"===o.buttonLayout,o.showButtons&&"horizontal"===o.buttonLayout,o.showButtons&&"vertical"===o.buttonLayout))("ngStyle",o.style),K("data-pc-name","inputnumber")("data-pc-section","root"),h(1),Ve(o.inputStyleClass),d("ngClass","p-inputnumber-input")("ngStyle",o.inputStyle)("value",o.formattedValue())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("aria-valuemin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("placeholder",o.placeholder)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("title",o.title)("size",o.size)("name",o.name)("autocomplete",o.autocomplete)("maxlength",o.maxlength)("tabindex",o.tabindex)("aria-required",o.ariaRequired)("required",o.required)("min",o.min)("max",o.max)("data-pc-section","input"),h(2),d("ngIf","vertical"!=o.buttonLayout&&o.showClear&&o.value),h(1),d("ngIf",o.showButtons&&"stacked"===o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout))},dependencies:function(){return[Ct,gt,on,Ht,hC,hf,mn,If,Or]},styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),fC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Mi,mn,If,Or,Qe]})}return t})(),gC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),_C=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Zo=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function iY(t,i){1&t&&ze(0)}const IC=function(t){return{$implicit:t}};function oY(t,i){if(1&t&&(x(0,"div",15),g(1,iY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","start"),h(1),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function sY(t,i){if(1&t&&(x(0,"span",17),Le(1),A()),2&t){const e=f(2);h(1),dt(e.currentPageReport)}}function rY(t,i){1&t&&le(0,"AngleDoubleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function aY(t,i){}function lY(t,i){1&t&&g(0,aY,0,0,"ng-template")}function cY(t,i){if(1&t&&(x(0,"span",20),g(1,lY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const Cf=function(t){return{"p-disabled":t}};function uY(t,i){if(1&t){const e=De();x(0,"button",18),me("click",function(o){return G(e),q(f(2).changePageToFirst(o))}),g(1,rY,1,1,"AngleDoubleLeftIcon",6),g(2,cY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isFirstPage()||e.empty())("ngClass",He(5,Cf,e.isFirstPage()||e.empty())),K("aria-label","firstPageLabel"),h(1),d("ngIf",!e.firstPageLinkIconTemplate),h(1),d("ngIf",e.firstPageLinkIconTemplate)}}function dY(t,i){1&t&&le(0,"AngleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function pY(t,i){}function hY(t,i){1&t&&g(0,pY,0,0,"ng-template")}function fY(t,i){if(1&t&&(x(0,"span",20),g(1,hY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const gY=function(t){return{"p-highlight":t}};function mY(t,i){if(1&t){const e=De();x(0,"button",24),me("click",function(o){const r=G(e).$implicit;return q(f(3).onPageLinkClick(o,r-1))}),Le(1),A()}if(2&t){const e=i.$implicit,n=f(3);d("ngClass",He(2,gY,e-1==n.getPage())),h(1),Pt(" ",n.getLocalization(e)," ")}}function _Y(t,i){if(1&t&&(x(0,"span",22),g(1,mY,2,4,"button",23),A()),2&t){const e=f(2);h(1),d("ngForOf",e.pageLinks)}}function IY(t,i){1&t&&Le(0),2&t&&dt(f(3).currentPageReport)}function CY(t,i){if(1&t){const e=De();x(0,"p-dropdown",25),me("onChange",function(o){return G(e),q(f(2).onPageDropdownChange(o))}),g(1,IY,1,1,"ng-template",26),A()}if(2&t){const e=f(2);d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),K("aria-label","jumpToPageDropdownLabel")}}function vY(t,i){1&t&&le(0,"AngleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function bY(t,i){}function yY(t,i){1&t&&g(0,bY,0,0,"ng-template")}function xY(t,i){if(1&t&&(x(0,"span",20),g(1,yY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function AY(t,i){1&t&&le(0,"AngleDoubleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function wY(t,i){}function TY(t,i){1&t&&g(0,wY,0,0,"ng-template")}function SY(t,i){if(1&t&&(x(0,"span",20),g(1,TY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function EY(t,i){if(1&t){const e=De();x(0,"button",27),me("click",function(o){return G(e),q(f(2).changePageToLast(o))}),g(1,AY,1,1,"AngleDoubleRightIcon",6),g(2,SY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isLastPage()||e.empty())("ngClass",He(4,Cf,e.isLastPage()||e.empty())),h(1),d("ngIf",!e.lastPageLinkIconTemplate),h(1),d("ngIf",e.lastPageLinkIconTemplate)}}function DY(t,i){if(1&t){const e=De();x(0,"p-inputNumber",28),me("ngModelChange",function(o){return G(e),q(f(2).changePage(o-1))}),A()}if(2&t){const e=f(2);d("ngModel",e.currentPage())("disabled",e.empty())}}function kY(t,i){1&t&&ze(0)}function MY(t,i){if(1&t&&g(0,kY,1,0,"ng-container",16),2&t){const e=i.$implicit;d("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",He(2,IC,e))}}function OY(t,i){1&t&&(we(0),g(1,MY,1,4,"ng-template",31),Te())}function LY(t,i){if(1&t){const e=De();x(0,"p-dropdown",29),me("ngModelChange",function(o){return G(e),q(f(2).rows=o)})("onChange",function(o){return G(e),q(f(2).onRppChange(o))}),g(1,OY,2,0,"ng-container",30),A()}if(2&t){const e=f(2);d("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),h(1),d("ngIf",e.dropdownItemTemplate)}}function PY(t,i){1&t&&ze(0)}function FY(t,i){if(1&t&&(x(0,"div",32),g(1,PY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","end"),h(1),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function RY(t,i){if(1&t){const e=De();x(0,"div",1),g(1,oY,2,5,"div",2),g(2,sY,2,1,"span",3),g(3,uY,3,7,"button",4),x(4,"button",5),me("click",function(o){return G(e),q(f().changePageToPrev(o))}),g(5,dY,1,1,"AngleLeftIcon",6),g(6,fY,2,1,"span",7),A(),g(7,_Y,2,1,"span",8),g(8,CY,2,6,"p-dropdown",9),x(9,"button",10),me("click",function(o){return G(e),q(f().changePageToNext(o))}),g(10,vY,1,1,"AngleRightIcon",6),g(11,xY,2,1,"span",7),A(),g(12,EY,3,6,"button",11),g(13,DY,1,2,"p-inputNumber",12),g(14,LY,2,6,"p-dropdown",13),g(15,FY,2,5,"div",14),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass","p-paginator p-component"),K("data-pc-section","paginator")("data-pc-section","root"),h(1),d("ngIf",e.templateLeft),h(1),d("ngIf",e.showCurrentPageReport),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("disabled",e.isFirstPage()||e.empty())("ngClass",He(25,Cf,e.isFirstPage()||e.empty())),K("aria-label","prevPageLabel"),h(1),d("ngIf",!e.previousPageLinkIconTemplate),h(1),d("ngIf",e.previousPageLinkIconTemplate),h(1),d("ngIf",e.showPageLinks),h(1),d("ngIf",e.showJumpToPageDropdown),h(1),d("disabled",e.isLastPage()||e.empty())("ngClass",He(27,Cf,e.isLastPage()||e.empty())),K("aria-label","lastPageLabel"),h(1),d("ngIf",!e.nextPageLinkIconTemplate),h(1),d("ngIf",e.nextPageLinkIconTemplate),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("ngIf",e.showJumpToPageInput),h(1),d("ngIf",e.rowsPerPageOptions),h(1),d("ngIf",e.templateRight)}}let NY=(()=>{class t{cd;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new ge;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const n=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(n.map((s,r)=>[r,s]));return e>9?String(e).split("").map(r=>o.get(Number(r))).join(""):o.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),n=Math.min(this.pageLinkSize,e),o=Math.max(0,Math.ceil(this.getPage()-n/2)),s=Math.min(e-1,o+n-1);return o=Math.max(0,o-(this.pageLinkSize-(s-o+1))),[o,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),o=e[1];for(let s=e[0];s<=o;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,n){this.changePage(n),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-paginator"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Hn],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(n,o){1&n&&g(0,RY,16,29,"div",0),2&n&&d("ngIf",!!o.alwaysShow||o.pageLinks&&o.pageLinks.length>1)},dependencies:function(){return[Ct,Jn,gt,on,Ht,fk,sn,_k,sS,xh,oo,gC,mC,_C,Zo]},styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),vf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,_f,fC,uu,Qe,dn,gC,mC,_C,Zo,_f,fC,uu,Qe]})}return t})();const VY=["container"];function BY(t,i){1&t&&le(0,"span",8),2&t&&(Ve(f(2).$implicit.icon),d("ngClass","p-button-icon p-button-icon-left"),K("data-pc-section","icon"))}function HY(t,i){if(1&t&&(we(0),g(1,BY,1,4,"span",6),x(2,"span",7),Le(3),A(),Te()),2&t){const e=f().$implicit,n=f();h(1),d("ngIf",e.icon),h(1),K("data-pc-section","label"),h(1),dt(n.getOptionLabel(e))}}function zY(t,i){1&t&&ze(0)}const jY=function(t,i){return{$implicit:t,index:i}};function UY(t,i){if(1&t&&g(0,zY,1,0,"ng-container",9),2&t){const e=f(),n=e.$implicit,o=e.index;d("ngTemplateOutlet",f().selectButtonTemplate)("ngTemplateOutletContext",mt(2,jY,n,o))}}const $Y=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function KY(t,i){if(1&t){const e=De();x(0,"div",3),me("click",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onOptionSelect(o,r,a))})("keydown",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onKeyDown(o,r,a))})("focus",function(o){const r=G(e).index;return q(f().onFocus(o,r))})("blur",function(){return G(e),q(f().onBlur())}),g(1,HY,4,3,"ng-container",4),g(2,UY,1,5,"ng-template",null,5,In),A()}if(2&t){const e=i.$implicit,n=i.index,o=Bt(3),s=f();Ve(e.styleClass),d("role",s.multiple?"checkbox":"radio")("ngClass",Rn(14,$Y,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),K("tabindex",n===s.focusedIndex?"0":"-1")("aria-label",e.label)("aria-checked",s.isSelected(e))("aria-disabled",s.optionDisabled)("aria-pressed",s.isSelected(e))("title",e.title)("aria-labelledby",s.getOptionLabel(e))("data-pc-section","button"),h(1),d("ngIf",!s.itemTemplate)("ngIfElse",o)}}const GY={provide:un,useExisting:ft(()=>qY),multi:!0};let qY=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new ge;onChange=new ge;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,n,o){if(this.disabled||this.isOptionDisabled(n))return;let s=this.isSelected(n);if(s&&this.unselectable)return;let a,r=this.getOptionValue(n);if(this.multiple)a=s?this.value.filter(l=>!be.equals(l,r,this.equalityKey)):this.value?[...this.value,r]:[r];else{if(s&&!this.allowEmpty)return;a=s?null:r}this.focusedIndex=o,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:n,index:o})}onKeyDown(e,n,o){switch(e.code){case"Space":this.onOptionSelect(e,n,o),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}}changeTabIndexes(e,n){let o,s;for(let r=0;r<=this.container.nativeElement.children.length-1;r++)"0"===this.container.nativeElement.children[r].getAttribute("tabindex")&&(o={elem:this.container.nativeElement.children[r],index:r});s="prev"===n?0===o.index?this.container.nativeElement.children.length-1:o.index-1:o.index===this.container.nativeElement.children.length-1?0:o.index+1,this.focusedIndex=s,this.container.nativeElement.children[s].focus()}onFocus(e,n){this.focusedIndex=n}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!be.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1;const o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let s of this.value)if(be.equals(s,o,this.dataKey)){n=!0;break}}else n=be.equals(this.getOptionValue(e),this.value,this.equalityKey);return n}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-selectButton"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,5),2&n){let r;Se(r=Ee())&&(o.itemTemplate=r.first)}},viewQuery:function(n,o){if(1&n&&je(VY,5),2&n){let s;Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:"unselectable",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[yt([GY])],decls:3,vars:8,consts:[["role","group",3,"ngClass","ngStyle"],["container",""],["pRipple","","class","p-button p-component",3,"role","class","ngClass","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","",1,"p-button","p-component",3,"role","ngClass","click","keydown","focus","blur"],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,KY,4,18,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",o.style),K("aria-labelledby",o.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),h(2),d("ngForOf",o.options))},dependencies:[Ct,Jn,gt,on,Ht,oo],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return t})(),Ik=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,Qe]})}return t})(),yi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function WY(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxTrueIcon),K("data-pc-section","checkIcon"))}function QY(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","checkIcon"))}function ZY(t,i){}function YY(t,i){1&t&&g(0,ZY,0,0,"ng-template")}function XY(t,i){if(1&t&&(x(0,"span",12),g(1,YY,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","checkIcon"),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function JY(t,i){if(1&t&&(we(0),g(1,QY,1,2,"CheckIcon",9),g(2,XY,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function eX(t,i){if(1&t&&(we(0),g(1,WY,1,2,"span",7),g(2,JY,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxTrueIcon),h(1),d("ngIf",!e.checkboxTrueIcon)}}function tX(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxFalseIcon),K("data-pc-section","uncheckIcon"))}function nX(t,i){1&t&&le(0,"TimesIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","uncheckIcon"))}function iX(t,i){}function oX(t,i){1&t&&g(0,iX,0,0,"ng-template")}function sX(t,i){if(1&t&&(x(0,"span",12),g(1,oX,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","uncheckIcon"),h(1),d("ngTemplateOutlet",e.uncheckIconTemplate)}}function rX(t,i){if(1&t&&(we(0),g(1,nX,1,2,"TimesIcon",9),g(2,sX,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.uncheckIconTemplate),h(1),d("ngIf",e.uncheckIconTemplate)}}function aX(t,i){if(1&t&&(we(0),g(1,tX,1,2,"span",7),g(2,rX,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxFalseIcon),h(1),d("ngIf",!e.checkboxFalseIcon)}}const lX=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function cX(t,i){if(1&t&&(x(0,"label",14),Le(1),A()),2&t){const e=f();d("ngClass",Rn(3,lX,null!=e.value,e.disabled,e.focused)),K("for",e.inputId),h(1),dt(e.label)}}const uX=function(t,i){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},dX=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},pX={provide:un,useExisting:ft(()=>hX),multi:!0};let hX=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabel;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new ge;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.focus())}onKeyDown(e){"Enter"===e.key&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[yt([pX])],decls:8,vars:26,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none",3,"name","readonly","disabled","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-tristatecheckbox-label",3,"ngClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-tristatecheckbox-label",3,"ngClass"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.onClick(a,l))}),x(1,"div",1)(2,"input",2,3),me("keydown",function(a){return o.onKeyDown(a)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,eX,3,2,"ng-container",5),g(6,aX,3,2,"ng-container",5),A()(),g(7,cX,2,7,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(19,uX,o.disabled,o.focused)),K("data-pc-name","tristatecheckbox")("data-pc-section","root"),h(2),d("name",o.name)("readonly",o.readonly)("disabled",o.disabled),K("id",o.inputId)("tabindex",o.tabindex)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(22,dX,null!=o.value,o.disabled,o.focused)),K("aria-checked",!0===o.value),h(1),d("ngIf",!0===o.value),h(1),d("ngIf",!1===o.value),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi,mn]},encapsulation:2,changeDetection:0})}return t})(),fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,yi,mn,Qe]})}return t})(),CC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),gX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Ck=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[st,Et],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),A(),x(6,"defs")(7,"clipPath",5),le(8,"rect",6),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(6),d("id",o.pathId))},encapsulation:2})}return t})(),vk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.59836 13.2009C2.44634 13.2009 2.29432 13.1449 2.1743 13.0248L0.174024 11.0246C-0.0580081 10.7925 -0.0580081 10.4085 0.174024 10.1764C0.406057 9.94441 0.79011 9.94441 1.02214 10.1764L2.59836 11.7527L4.17458 10.1764C4.40662 9.94441 4.79067 9.94441 5.0227 10.1764C5.25473 10.4085 5.25473 10.7925 5.0227 11.0246L3.02242 13.0248C2.90241 13.1449 2.75038 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),bk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.59864 3.99958C4.44662 3.99958 4.2946 3.94357 4.17458 3.82356L2.59836 2.24734L1.02214 3.82356C0.79011 4.05559 0.406057 4.05559 0.174024 3.82356C-0.0580081 3.59152 -0.0580081 3.20747 0.174024 2.97544L2.1743 0.97516C2.40634 0.743127 2.79039 0.743127 3.02242 0.97516L5.0227 2.97544C5.25473 3.20747 5.25473 3.59152 5.0227 3.82356C4.90268 3.94357 4.75066 3.99958 4.59864 3.99958Z","fill","currentColor"],["d","M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),mX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const _X=["container"],IX=["resizeHelper"],CX=["reorderIndicatorUp"],vX=["reorderIndicatorDown"],bX=["wrapper"],yX=["table"],xX=["thead"],AX=["tfoot"],wX=["scroller"];function TX(t,i){1&t&&le(0,"i"),2&t&&Ve("p-datatable-loading-icon "+f(2).loadingIcon)}function SX(t,i){1&t&&le(0,"SpinnerIcon",19),2&t&&d("spin",!0)("styleClass","p-datatable-loading-icon")}function EX(t,i){}function DX(t,i){1&t&&g(0,EX,0,0,"ng-template")}function kX(t,i){if(1&t&&(x(0,"span",20),g(1,DX,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function MX(t,i){if(1&t&&(we(0),g(1,SX,1,2,"SpinnerIcon",17),g(2,kX,2,1,"span",18),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function OX(t,i){if(1&t&&(x(0,"div",15),g(1,TX,1,2,"i",16),g(2,MX,3,2,"ng-container",8),A()),2&t){const e=f();h(1),d("ngIf",e.loadingIcon),h(1),d("ngIf",!e.loadingIcon)}}function LX(t,i){1&t&&ze(0)}function PX(t,i){if(1&t&&(x(0,"div",22),g(1,LX,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.captionTemplate)}}function FX(t,i){1&t&&ze(0)}function RX(t,i){1&t&&g(0,FX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function NX(t,i){1&t&&g(0,RX,1,1,"ng-template",24)}function VX(t,i){1&t&&ze(0)}function BX(t,i){1&t&&g(0,VX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function HX(t,i){1&t&&g(0,BX,1,1,"ng-template",25)}function zX(t,i){1&t&&ze(0)}function jX(t,i){1&t&&g(0,zX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function UX(t,i){1&t&&g(0,jX,1,1,"ng-template",26)}function $X(t,i){1&t&&ze(0)}function KX(t,i){1&t&&g(0,$X,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function GX(t,i){1&t&&g(0,KX,1,1,"ng-template",27)}function qX(t,i){if(1&t){const e=De();x(0,"p-paginator",23),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,NX,1,0,null,8),g(2,HX,1,0,null,8),g(3,UX,1,0,null,8),g(4,GX,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function WX(t,i){1&t&&ze(0)}const yk=function(t,i){return{$implicit:t,options:i}};function QX(t,i){if(1&t&&g(0,WX,1,0,"ng-container",31),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(10))("ngTemplateOutletContext",mt(2,yk,e,n))}}const ZX=function(t){return{height:t}};function YX(t,i){if(1&t){const e=De();x(0,"p-scroller",28,29),me("onLazyLoad",function(o){return G(e),q(f().onLazyItemLoad(o))}),g(2,QX,1,5,"ng-template",30),A()}if(2&t){const e=f();yn(He(15,ZX,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),d("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function XX(t,i){1&t&&ze(0)}const JX=function(t){return{columns:t}};function eJ(t,i){if(1&t&&(we(0),g(1,XX,1,0,"ng-container",31),Te()),2&t){const e=f(),n=Bt(10);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(4,yk,e.processedData,He(2,JX,e.columns)))}}function tJ(t,i){1&t&&ze(0)}function nJ(t,i){1&t&&ze(0)}function iJ(t,i){if(1&t&&le(0,"tbody",40),2&t){const e=f().options,n=f();d("value",n.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",n.frozenBodyTemplate)("frozen",!0)}}function oJ(t,i){if(1&t&&le(0,"tbody",41),2&t){const e=f().options;yn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function sJ(t,i){1&t&&ze(0)}const Lr=function(t){return{$implicit:t}};function rJ(t,i){if(1&t&&(x(0,"tfoot",42,43),g(2,sJ,1,0,"ng-container",31),A()),2&t){const e=f().options,n=f();h(2),d("ngTemplateOutlet",n.footerGroupedTemplate||n.footerTemplate)("ngTemplateOutletContext",He(2,Lr,e.columns))}}const aJ=function(t,i,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":i,"p-datatable-resizable-table-fit":e}};function lJ(t,i){if(1&t&&(x(0,"table",32,33),g(2,tJ,1,0,"ng-container",31),x(3,"thead",34,35),g(5,nJ,1,0,"ng-container",31),A(),g(6,iJ,1,5,"tbody",36),le(7,"tbody",37),g(8,oJ,1,2,"tbody",38),g(9,rJ,3,4,"tfoot",39),A()),2&t){const e=i.options,n=f();yn(n.tableStyle),Ve(n.tableStyleClass),d("ngClass",Rn(20,aJ,n.scrollable,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode)),K("id",n.id+"-table"),h(2),d("ngTemplateOutlet",n.colGroupTemplate)("ngTemplateOutletContext",He(24,Lr,e.columns)),h(3),d("ngTemplateOutlet",n.headerGroupedTemplate||n.headerTemplate)("ngTemplateOutletContext",He(26,Lr,e.columns)),h(1),d("ngIf",n.frozenValue||n.frozenBodyTemplate),h(1),yn(e.contentStyle),d("ngClass",e.contentStyleClass)("value",n.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",n.bodyTemplate)("scrollerOptions",e),h(1),d("ngIf",e.spacerStyle),h(1),d("ngIf",n.footerGroupedTemplate||n.footerTemplate)}}function cJ(t,i){1&t&&ze(0)}function uJ(t,i){1&t&&g(0,cJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function dJ(t,i){1&t&&g(0,uJ,1,1,"ng-template",24)}function pJ(t,i){1&t&&ze(0)}function hJ(t,i){1&t&&g(0,pJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function fJ(t,i){1&t&&g(0,hJ,1,1,"ng-template",25)}function gJ(t,i){1&t&&ze(0)}function mJ(t,i){1&t&&g(0,gJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function _J(t,i){1&t&&g(0,mJ,1,1,"ng-template",26)}function IJ(t,i){1&t&&ze(0)}function CJ(t,i){1&t&&g(0,IJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function vJ(t,i){1&t&&g(0,CJ,1,1,"ng-template",27)}function bJ(t,i){if(1&t){const e=De();x(0,"p-paginator",44),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,dJ,1,0,null,8),g(2,fJ,1,0,null,8),g(3,_J,1,0,null,8),g(4,vJ,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function yJ(t,i){1&t&&ze(0)}function xJ(t,i){if(1&t&&(x(0,"div",45),g(1,yJ,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.summaryTemplate)}}function AJ(t,i){1&t&&le(0,"div",46,47)}function wJ(t,i){1&t&&le(0,"ArrowDownIcon")}function TJ(t,i){}function SJ(t,i){1&t&&g(0,TJ,0,0,"ng-template")}function EJ(t,i){if(1&t&&(x(0,"span",48,49),g(2,wJ,1,0,"ArrowDownIcon",8),g(3,SJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorUpIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function DJ(t,i){1&t&&le(0,"ArrowUpIcon")}function kJ(t,i){}function MJ(t,i){1&t&&g(0,kJ,0,0,"ng-template")}function OJ(t,i){if(1&t&&(x(0,"span",50,51),g(2,DJ,1,0,"ArrowUpIcon",8),g(3,MJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorDownIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const LJ=function(t,i,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":i,"p-datatable-flex-scrollable":e}},PJ=function(t){return{maxHeight:t}},FJ=["pTableBody",""];function RJ(t,i){1&t&&ze(0)}const bC=function(t,i,e,n,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o}};function NJ(t,i){if(1&t&&(we(0,3),g(1,RJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function VJ(t,i){1&t&&ze(0)}function BJ(t,i){if(1&t&&(we(0),g(1,VJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function HJ(t,i){1&t&&ze(0)}const zJ=function(t,i,e,n,o,s,r){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o,rowgroup:s,rowspan:r}};function jJ(t,i){if(1&t&&(we(0),g(1,HJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",function Aw(t,i,e,n,o,s,r,a,l,c){const u=zi()+t,p=Ne();let m=Do(p,u,e,n,o,s);return Dp(p,u+4,r,a,l)||m?ls(p,u+7,c?i.call(c,e,n,o,s,r,a,l):i(e,n,o,s,r,a,l)):zc(p,u+7)}(2,zJ,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen,s.shouldRenderRowspan(s.value,n,o),s.calculateRowGroupSize(s.value,n,o)))}}function UJ(t,i){1&t&&ze(0)}function $J(t,i){if(1&t&&(we(0,3),g(1,UJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function KJ(t,i){if(1&t&&(g(0,NJ,2,8,"ng-container",2),g(1,BJ,2,8,"ng-container",0),g(2,jJ,2,10,"ng-container",0),g(3,$J,2,8,"ng-container",2)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",o.dt.groupHeaderTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,n)),h(1),d("ngIf","rowspan"!==o.dt.rowGroupMode),h(1),d("ngIf","rowspan"===o.dt.rowGroupMode),h(1),d("ngIf",o.dt.groupFooterTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,e,n))}}function GJ(t,i){if(1&t&&(we(0),g(1,KJ,4,4,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function qJ(t,i){1&t&&ze(0)}const bf=function(t,i,e,n,o,s){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:o,frozen:s}};function WJ(t,i){if(1&t&&(we(0),g(1,qJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.template)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function QJ(t,i){1&t&&ze(0)}function ZJ(t,i){if(1&t&&(we(0,3),g(1,QJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function YJ(t,i){1&t&&ze(0)}function XJ(t,i){1&t&&ze(0)}function JJ(t,i){if(1&t&&(we(0,3),g(1,XJ,1,0,"ng-container",4),Te()),2&t){const e=f(2),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}const xk=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function eee(t,i){if(1&t&&(we(0),g(1,YJ,1,0,"ng-container",4),g(2,JJ,2,9,"ng-container",2),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",gr(3,xk,n,s.getRowIndex(o),s.columns,s.frozen)),h(1),d("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,n,s.getRowIndex(o)))}}function tee(t,i){if(1&t&&(g(0,WJ,2,9,"ng-container",0),g(1,ZJ,2,9,"ng-container",2),g(2,eee,3,8,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",!o.dt.groupHeaderTemplate),h(1),d("ngIf",o.dt.groupHeaderTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(n))),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function nee(t,i){if(1&t&&(we(0),g(1,tee,3,3,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function iee(t,i){1&t&&ze(0)}function oee(t,i){1&t&&ze(0)}function see(t,i){if(1&t&&(we(0),g(1,oee,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",gr(2,xk,n,s.getRowIndex(o),s.columns,s.frozen))}}function ree(t,i){if(1&t&&(g(0,iee,1,0,"ng-container",4),g(1,see,2,7,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ea(3,bf,e,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(e),"row"===o.dt.editMode&&o.dt.isRowEditing(e),o.frozen)),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function aee(t,i){if(1&t&&(we(0),g(1,ree,2,10,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function lee(t,i){1&t&&ze(0)}const Ak=function(t,i){return{$implicit:t,frozen:i}};function cee(t,i){if(1&t&&(we(0),g(1,lee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}function uee(t,i){1&t&&ze(0)}function dee(t,i){if(1&t&&(we(0),g(1,uee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}let yC=(()=>{class t{sortSource=new re;selectionSource=new re;contextMenuSource=new re;valueSource=new re;totalRecordsSource=new re;columnsSource=new re;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),xC=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new ge;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,n)=>n;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new ge;selectionChange=new ge;onRowSelect=new ge;onRowUnselect=new ge;onPage=new ge;onSort=new ge;onFilter=new ge;onLazyLoad=new ge;onRowExpand=new ge;onRowCollapse=new ge;onContextMenuSelect=new ge;onColResize=new ge;onColReorder=new ge;onRowReorder=new ge;onEditInit=new ge;onEditComplete=new ge;onEditCancel=new ge;onHeaderCheckboxToggle=new ge;sortFunction=new ge;firstChange=new ge;rowsChange=new ge;onStateSave=new ge;onStateRestore=new ge;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=$t();styleElement;responsiveStyleElement;window;constructor(e,n,o,s,r,a,l,c,u,p){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.config=p,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const n=e||this.processedData;if(n&&this.paginator){const o=this.lazy?0:this.first;return n.slice(o,o+this.rows)}return n}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(be.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(be.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let n=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let o=n.metaKey||n.ctrlKey,s=this.getSortMeta(e.field);s?o?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&n){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:n}):(this.value.sort((s,r)=>{let a=be.resolveFieldData(s,e),l=be.resolveFieldData(r,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):al?1:0,n*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let o={field:e,order:n};this.onSort.emit(o),this.tableService.onSort(o)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,o,s){const r=be.resolveFieldData(e,o[s].field),a=be.resolveFieldData(n,o[s].field);return 0===be.compare(r,a,this.filterLocale)?o.length-1>s?this.multisortField(e,n,o,s+1):0:this.compareValuesOnSort(r,a,o[s].order)}compareValuesOnSort(e,n,o){return be.sort(e,n,o,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let n=0;nb!=m),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row"})}else this.isSingleSelectionMode()?(this._selection=r,this.selectionChange.emit(r),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(p?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,r],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})):(this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let p=this.findIndexInSelection(r);this._selection=this.selection.filter((m,_)=>_!=p),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const n=e.rowData,o=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(n),r=this.dataKey?String(be.resolveFieldData(n,this.dataKey)):null;if(!s){if(!this.isRowSelectable(n,o))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),r&&(this.selectionKeys={},this.selectionKeys[r]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),r&&(this.selectionKeys[r]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let o,s;this.anchorRowIndex>n?(o=n,s=this.anchorRowIndex):this.anchorRowIndexr?(n=this.anchorRowIndex,o=this.rangeRowIndex):sm!=c);let u=this.dataKey?String(be.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[be.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length)for(let o=0;ol!=r),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const o=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let s=this.selectionPageOnly&&this._selection?this._selection.filter(r=>!o.some(a=>this.equals(r,a))):[];n&&(s=this.frozenValue?[...s,...this.frozenValue,...o]:[...s,...o],s=this.rowSelectable?s.filter((r,a)=>this.rowSelectable({data:r,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:be.equals(e,n,this.dataKey)}filter(e,n,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let n=0;nthis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let n of e)n.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let n,o="",s=this.columns;e&&e.selectionOnly?n=this.selection||[]:e&&e.allValues?n=this.value||[]:(n=this.filteredValue||this.value,this.frozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let l=0;l{o+="\n";for(let u=0;u{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(j.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===j.find(n,".ng-invalid.ng-dirty").length){let o=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[o]}}cancelRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let o=String(be.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[o]?(delete this.expandedRowKeys[o],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[o]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;j.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,o=this.resizeColumnElement.offsetWidth+e;if(o>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;o>15&&a>15&&this.resizeTableCells(o,a)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(o,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",j.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const n=j.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return j.find(n,"tr > th").forEach(s=>e.push(j.getOuterWidth(s))),e}onColumnDragStart(e,n){this.reorderIconWidth=j.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=j.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let o=j.getOffset(this.containerViewChild?.nativeElement),s=j.getOffset(n);if(this.draggedColumn!=n){j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),j.indexWithinGroup(n,"preorderablecolumn");let l=s.left-o.left,u=s.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-o.top+n.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,n){if(e.preventDefault(),this.draggedColumn){let o=j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=j.indexWithinGroup(n,"preorderablecolumn"),r=o!=s;if(r&&(s-o==1&&-1===this.dropPosition||o-s==1&&1===this.dropPosition)&&(r=!1),r&&so&&-1===this.dropPosition&&(s-=1),r&&(be.reorderArray(this.columns,o,s),this.onColReorder.emit({dragIndex:o,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement&&this.resizeColumnElement.isSameNode(this.draggedColumn)){let a="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();be.reorderArray(a,o+1,s+1),this.updateStyleElement(a,o,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,n){let o=j.index(this.resizeColumnElement),s="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(s,o,e,n)}updateStyleElement(e,n,o,s){this.destroyStyleElement(),this.createStyleElement();let r="";e.forEach((a,l)=>{let c=l===n?o:s&&l===n+1?s:a;r+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {\n width: ${c}px !important; max-width: ${c}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",r)}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,o){if(this.rowDragging&&this.draggedRowIndex!==n){let s=j.getOffset(o).top,r=e.pageY,a=s+j.getOuterHeight(o)/2,l=o.previousElementSibling;rthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;be.reorderArray(this.value,this.draggedRowIndex,o),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:o})}this.onRowDragLeave(e,n),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!ei(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const n=this.getStorage().getItem(this.stateKey),o=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let r=JSON.parse(n,function(r,a){return"string"==typeof a&&o.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=r.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=r.rows,this.rowsChange.emit(this.rows))),r.sortField&&(this.restoringSort=!0,this._sortField=r.sortField,this._sortOrder=r.sortOrder),r.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=r.multiSortMeta),r.filters&&(this.restoringFilter=!0,this.filters=r.filters),this.resizableColumns&&(this.columnWidthsState=r.columnWidths,this.tableWidthState=r.tableWidth),r.expandedRowKeys&&(this.expandedRowKeys=r.expandedRowKeys),r.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(r.selection)),this.stateRestored=!0,this.onStateRestore.emit(r)}}saveColumnWidths(e){let n=[];j.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(s=>n.push(j.getOuterWidth(s))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=j.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),be.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((o,s)=>{n+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {\n width: ${o}px !important; max-width: ${o}px !important\n }\n `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(o=>{n.push(o.field||o.key)}),e.columnOrder=n}}restoreColumnOrder(){const n=this.getStorage().getItem(this.stateKey);if(n){let s=JSON.parse(n).columnOrder;if(s){let r=[];s.map(a=>{let l=this.findColumnByKey(a);l&&r.push(l)}),this.columnOrderStateRestored=!0,this.columns=r}}}findColumnByKey(e){if(!this.columns)return null;for(let n of this.columns)if(n.key===e||n.field===e)return n}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){ei(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(bt),V(Tt),V(yC),V(Ft),V(df),V(Dr),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-table"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(_X,5),je(IX,5),je(CX,5),je(vX,5),je(bX,5),je(yX,5),je(xX,5),je(AX,5),je(wX,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.resizeHelperViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorUpViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorDownViewChild=s.first),Se(s=Ee())&&(o.wrapperViewChild=s.first),Se(s=Ee())&&(o.tableViewChild=s.first),Se(s=Ee())&&(o.tableHeaderViewChild=s.first),Se(s=Ee())&&(o.tableFooterViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[yt([yC]),Hn],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],["role","rowgroup",1,"p-datatable-thead"],["thead",""],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,OX,3,2,"div",2),g(3,PX,2,1,"div",3),g(4,qX,5,23,"p-paginator",4),x(5,"div",5,6),g(7,YX,3,17,"p-scroller",7),g(8,eJ,2,7,"ng-container",8),g(9,lJ,10,28,"ng-template",null,9,In),A(),g(11,bJ,5,23,"p-paginator",10),g(12,xJ,2,1,"div",11),g(13,AJ,2,0,"div",12),g(14,EJ,4,2,"span",13),g(15,OJ,4,2,"span",14),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(16,LJ,o.rowHover||o.selectionMode,o.scrollable,o.scrollable&&"flex"===o.scrollHeight)),K("id",o.id),h(2),d("ngIf",o.loading&&o.showLoader),h(1),d("ngIf",o.captionTemplate),h(1),d("ngIf",o.paginator&&("top"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngStyle",He(20,PJ,o.virtualScroll?"":o.scrollHeight)),h(2),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.paginator&&("bottom"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngIf",o.summaryTemplate),h(1),d("ngIf",o.resizableColumns),h(1),d("ngIf",o.reorderableColumns),h(1),d("ngIf",o.reorderableColumns))},dependencies:function(){return[Ct,gt,on,Ht,NY,sn,Bu,CC,vC,_s,rte]},styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return t})(),rte=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,n,o,s){this.dt=e,this.tableService=n,this.cd=o,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o+1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}calculateRowGroupSize(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=s,a=0;for(;s===r;){a++;let l=e[++o];if(!l)break;r=be.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=j.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=j.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,n){return this.dt.virtualScroll&&(n=n||this.scrollerOptions)?n[e]:null}getRowIndex(e){const n=this.dt.paginator?this.dt.first+e:e,o=this.getScrollerOption("getItemOptions");return o?o(n).index:n}static \u0275fac=function(n){return new(n||t)(V(xC),V(yC),V(Ft),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:FJ,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(g(0,GJ,2,2,"ng-container",0),g(1,nee,2,2,"ng-container",0),g(2,aee,2,2,"ng-container",0),g(3,cee,2,5,"ng-container",0),g(4,dee,2,5,"ng-container",0)),2&n&&(d("ngIf",!o.dt.expandedRowTemplate),h(1),d("ngIf",o.dt.expandedRowTemplate&&!(o.frozen&&o.dt.frozenExpandedRowTemplate)),h(1),d("ngIf",o.dt.frozenExpandedRowTemplate&&o.frozen),h(1),d("ngIf",o.dt.loading),h(1),d("ngIf",o.dt.isEmpty()&&!o.dt.loading))},dependencies:[Jn,gt,on],encapsulation:2})}return t})(),ate=(()=>{class t{dt;data;pRowTogglerDisabled;constructor(e){this.dt=e}onClick(e){this.isEnabled()&&(this.dt.toggleRow(this.data,e),e.preventDefault())}isEnabled(){return!0!==this.pRowTogglerDisabled}static \u0275fac=function(n){return new(n||t)(V(xC))};static \u0275dir=ut({type:t,selectors:[["","pRowToggler",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("click",function(r){return o.onClick(r)})},inputs:{data:["pRowToggler","data"],pRowTogglerDisabled:"pRowTogglerDisabled"}})}return t})(),wk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,Zs,_f,uu,Mi,Ik,uk,fC,fX,Oi,CC,vC,_s,Ck,bk,vk,yi,gX,mX,Qe,Oi]})}return t})(),Tk=(()=>{class t{el;pFocusTrapDisabled=!1;constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const n=j.getNextFocusableElement(this.el.nativeElement,e.shiftKey);n&&(n.focus(),n.select?.())}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.tab",function(r){return o.onkeydown(r)})("keydown.shift.tab",function(r){return o.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}})}return t})(),Sk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),AC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),wC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const lte=["titlebar"],cte=["content"],ute=["footer"];function dte(t,i){if(1&t){const e=De();x(0,"div",11),me("mousedown",function(o){return G(e),q(f(3).initResize(o))}),A()}}function pte(t,i){if(1&t&&(x(0,"span",18),Le(1),A()),2&t){const e=f(4);d("id",e.getAriaLabelledBy()),h(1),dt(e.header)}}function hte(t,i){1&t&&(x(0,"span",18),Kn(1,1),A()),2&t&&d("id",f(4).getAriaLabelledBy())}function fte(t,i){1&t&&ze(0)}function gte(t,i){if(1&t&&le(0,"span",22),2&t){const e=f(5);d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function mte(t,i){1&t&&le(0,"WindowMaximizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function _te(t,i){1&t&&le(0,"WindowMinimizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function Ite(t,i){if(1&t&&(we(0),g(1,mte,1,1,"WindowMaximizeIcon",23),g(2,_te,1,1,"WindowMinimizeIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.maximized&&!e.maximizeIconTemplate),h(1),d("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function Cte(t,i){}function vte(t,i){1&t&&g(0,Cte,0,0,"ng-template")}function bte(t,i){if(1&t&&(we(0),g(1,vte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.maximizeIconTemplate)}}function yte(t,i){}function xte(t,i){1&t&&g(0,yte,0,0,"ng-template")}function Ate(t,i){if(1&t&&(we(0),g(1,xte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.minimizeIconTemplate)}}const wte=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function Tte(t,i){if(1&t){const e=De();x(0,"button",19),me("click",function(){return G(e),q(f(4).maximize())})("keydown.enter",function(){return G(e),q(f(4).maximize())}),g(1,gte,1,1,"span",20),g(2,Ite,3,2,"ng-container",21),g(3,bte,2,1,"ng-container",21),g(4,Ate,2,1,"ng-container",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,wte)),h(1),d("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),h(1),d("ngIf",!e.maximizeIcon),h(1),d("ngIf",!e.maximized),h(1),d("ngIf",e.maximized)}}function Ste(t,i){1&t&&le(0,"span",27),2&t&&d("ngClass",f(6).closeIcon)}function Ete(t,i){1&t&&le(0,"TimesIcon",24),2&t&&d("styleClass","p-dialog-header-close-icon")}function Dte(t,i){if(1&t&&(we(0),g(1,Ste,1,1,"span",26),g(2,Ete,1,1,"TimesIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",e.closeIcon),h(1),d("ngIf",!e.closeIcon)}}function kte(t,i){}function Mte(t,i){1&t&&g(0,kte,0,0,"ng-template")}function Ote(t,i){if(1&t&&(x(0,"span"),g(1,Mte,1,0,null,9),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}const Lte=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function Pte(t,i){if(1&t){const e=De();x(0,"button",25),me("click",function(o){return G(e),q(f(4).close(o))})("keydown.enter",function(o){return G(e),q(f(4).close(o))}),g(1,Dte,3,2,"ng-container",21),g(2,Ote,2,1,"span",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,Lte)),K("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),h(1),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Fte(t,i){if(1&t){const e=De();x(0,"div",12,13),me("mousedown",function(o){return G(e),q(f(3).initDrag(o))}),g(2,pte,2,2,"span",14),g(3,hte,2,1,"span",14),g(4,fte,1,0,"ng-container",9),x(5,"div",15),g(6,Tte,5,6,"button",16),g(7,Pte,3,6,"button",17),A()()}if(2&t){const e=f(3);h(2),d("ngIf",!e.headerFacet&&!e.headerTemplate),h(1),d("ngIf",e.headerFacet),h(1),d("ngTemplateOutlet",e.headerTemplate),h(2),d("ngIf",e.maximizable),h(1),d("ngIf",e.closable)}}function Rte(t,i){1&t&&ze(0)}function Nte(t,i){1&t&&ze(0)}function Vte(t,i){if(1&t&&(x(0,"div",28,29),Kn(2,2),g(3,Nte,1,0,"ng-container",9),A()),2&t){const e=f(3);h(3),d("ngTemplateOutlet",e.footerTemplate)}}const Bte=function(t,i,e,n){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},Hte=function(t,i){return{transform:t,transition:i}},zte=function(t){return{value:"visible",params:t}};function jte(t,i){if(1&t){const e=De();x(0,"div",3,4),me("@animation.start",function(o){return G(e),q(f(2).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(2).onAnimationEnd(o))}),g(2,dte,1,0,"div",5),g(3,Fte,8,5,"div",6),x(4,"div",7,8),Kn(6),g(7,Rte,1,0,"ng-container",9),A(),g(8,Vte,4,1,"div",10),A()}if(2&t){const e=f(2);Ve(e.styleClass),d("ngClass",gr(16,Bte,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",He(24,zte,mt(21,Hte,e.transformOptions,e.transitionOptions))),K("aria-labelledby",e.ariaLabelledBy)("aria-modal",!0),h(2),d("ngIf",e.resizable),h(1),d("ngIf",e.showHeader),h(1),Ve(e.contentStyleClass),d("ngClass","p-dialog-content")("ngStyle",e.contentStyle),h(3),d("ngTemplateOutlet",e.contentTemplate),h(1),d("ngIf",e.footerFacet||e.footerTemplate)}}const Ute=function(t,i,e,n,o,s,r,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":o,"p-dialog-top-left":s,"p-dialog-top-right":r,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function $te(t,i){if(1&t&&(x(0,"div",1),g(1,jte,9,26,"div",2),A()),2&t){const e=f();Ve(e.maskStyleClass),d("ngClass",zp(4,Ute,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),h(1),d("ngIf",e.visible)}}const Kte=["*",[["p-header"]],[["p-footer"]]],Gte=["*","p-header","p-footer"],qte=Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}")]),Wte=Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Qte=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="-1";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onShow=new ge;onHide=new ge;visibleChange=new ge;onResizeInit=new ge;onResizeEnd=new ge;onDragEnd=new ge;onMaximize=new ge;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy;documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=$t();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.zone=r,this.cd=a,this.config=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return null!==this.header?$t()+"_header":null}focus(){let e=j.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&j.blockBodyScroll()}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&j.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?j.blockBodyScroll():j.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Wn.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(ei(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`\n @media screen and (max-width: ${n}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[n]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){j.hasClass(e.target,"p-dialog-header-icon")||j.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",j.addClass(this.document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let n=j.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==o||0===o?n[n.length-1].focus():n[o-1].focus():-1==o||o===n.length-1?n[0].focus():n[o+1].focus()}else n[0].focus()}}onDrag(e){if(this.dragging){const n=j.getOuterWidth(this.container),o=j.getOuterHeight(this.container),s=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=getComputedStyle(this.container),c=parseFloat(l.marginLeft),u=parseFloat(l.marginTop),p=a.left+s-c,m=a.top+r-u,_=j.getViewport();this.container.style.position="fixed",this.keepInViewport?(p>=this.minX&&p+n<_.width&&(this._style.left=`${p}px`,this.lastPageX=e.pageX,this.container.style.left=`${p}px`),m>=this.minY&&m+o<_.height&&(this._style.top=`${m}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${p}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,j.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getOuterHeight(this.contentViewChild?.nativeElement),l=s+n,c=r+o,u=this.container.style.minWidth,p=this.container.style.minHeight,m=this.container.getBoundingClientRect(),_=j.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=n,c+=o),(!u||l>parseInt(u))&&m.left+l<_.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!p||c>parseInt(p))&&m.top+c<_.height&&(this.contentViewChild.nativeElement.style.height=a+c-r+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",n=>{27==n.which&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):j.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&j.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&j.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(j.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&j.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dialog"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(lte,5),je(cte,5),je(ute,5)),2&n){let s;Se(s=Ee())&&(o.headerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:Gte,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(n,o){1&n&&(Ti(Kte),g(0,$te,2,15,"div",0)),2&n&&d("ngIf",o.maskVisible)},dependencies:function(){return[Ct,gt,on,Ht,Tk,oo,mn,AC,wC]},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[Eh(qte)]),Ln("visible => void",[Eh(Wte)])])]},changeDetection:0})}return t})(),Ek=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Sk,dn,mn,AC,wC,Qe]})}return t})();function Zte(t,i){if(1&t&&(x(0,"div"),le(1,"app-activities-table",3),A()),2&t){const e=f();h(1),d("activities",e.activities)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("fieldsLinksArr",e.fieldsLinksArr)}}function Yte(t,i){if(1&t&&(x(0,"div"),le(1,"app-actions-table",4),A()),2&t){const e=f();h(1),d("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("activitySeq",e.activitySeq)}}function Xte(t,i){if(1&t&&(x(0,"div"),le(1,"app-table",5),A()),2&t){const e=f();h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)("statusFieldName","Status")}}function Jte(t,i){1&t&&(x(0,"div",6),le(1,"div",7),A())}let Dk=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this.globalVarService=o,this._userDataManagerService=s,this.tableExpenderType1=Er}ngOnInit(){if(this.tableExpenderType==Er.BusinessFlowsActivities)this.totalactivitiesCount=0,this.RunsetJson=this._userDataManagerService.getItemCache(),this.CollectBfActivitiesData(this.entity);else if(this.tableExpenderType==Er.ActivitiesActions){const e=this.entity.Seq;this.activitySeq=e,this.actions=this.entity.ActionsColl,this.routerLinkEntityPath=e+"/",this.fieldsLinksArr=[{field:"Name",link:this.routerLinkEntityPath,param:"Seq"}]}else this.tableExpenderType==Er.OutputValidation&&(this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}],this.outputValuesData=this.getOutputValues(this.entity.OutputValues))}checkIfLastRun(e){return e===this.totalactivitiesCount}CollectBfActivitiesData(e){this.hideRepoLoader=!0;let n=0;e.ActivitiesGroupsColl.forEach(s=>{this.totalactivitiesCount=this.totalactivitiesCount+s.ExecutedActivitiesGUID.length});const o=this.globalVarService.totalRecPerActivityPull;e.NumberOfActivities=0,e.ActivitiesGroupsColl.forEach(s=>{let r=0;e.ActivitiesColl=[];const a={};a.ExecutionId=this.RunsetJson.ExecutionId,a.ParentId=s.GUID,a.From=r*o,a.Take=o,a.IsLoadActions=!1,this.restServiceObj.GetActivitiesByParent(a).subscribe(l=>{r++;const c=JSON.parse(l.response),u=c.TotalRec;for(e.NumberOfActivities+=u,e.ActivitiesColl.push(...c.ResponseColl),n+=c.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1);r*o{if(m.isSuccsess){const _=JSON.parse(m.response);e.ActivitiesColl.push(..._.ResponseColl),n+=_.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1)}})}})})}orderActivites(){this.entity.ActivitiesColl=this.entity.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}InitActivitieData(){if(null!=this.entity&&null!=this.entity.ActivitiesColl){this.orderActivites();var e=this.entity;const n=e.Seq;this.activities=e.ActivitiesColl;for(let o of e.ActivitiesColl)o.NumberOfActions=o.ActionsColl.length;this.fieldsLinksArr=[{field:"Name",link:n+"/",param:"Seq"},{field:"ActivityGroupName",link:n+"/ag/ag/",param:"ActivityGroupName"}]}}getOutputValues(e){let n=[];for(let o of e){let s=o.split("_:_"),r=new $D;r.ParameterName=s[0],r.ActualValue=s[1],r.ExpectedValue=s[2],r.Status=s[3],n.push(r)}return n}getActivityGroupName(e){for(let n of this.entity.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table-expended-section"]],inputs:{tableExpenderType:"tableExpenderType",entity:"entity"},decls:5,vars:5,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[3,"activities","addExpender","tableExpenderType","fieldsLinksArr"],[3,"addExpender","tableExpenderType","actions","fieldsLinksArr","activitySeq"],[3,"cols","data","statusFieldName"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zte,2,4,"div",1),g(2,Yte,2,5,"div",1),g(3,Xte,2,3,"div",1),A(),g(4,Jte,2,0,"div",2)),2&n&&(d("ngSwitch",o.tableExpenderType),h(1),d("ngSwitchCase",o.tableExpenderType1.BusinessFlowsActivities),h(1),d("ngSwitchCase",o.tableExpenderType1.ActivitiesActions),h(1),d("ngSwitchCase",o.tableExpenderType1.OutputValidation),h(1),d("ngIf",o.hideRepoLoader))}})}return t})();const ene=["mask"],tne=["container"],nne=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ine=function(t){return{value:"visible",params:t}};function one(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",7),me("@animation.start",function(o){return G(e),q(f(3).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(3).onAnimationEnd(o))})("maskHide",function(){return G(e),q(f(3).onMaskHide())})("activeItemChange",function(o){return G(e),q(f(3).onActiveItemChange(o))}),A()}if(2&t){const e=f(3);d("@animation",He(8,ine,mt(5,nne,e.showTransitionOptions,e.hideTransitionOptions)))("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)("ngStyle",e.containerStyle)}}const sne=function(t){return{"p-galleria-mask p-component-overlay p-component-overlay-enter":!0,"p-galleria-visible":t}};function rne(t,i){if(1&t&&(x(0,"div",4,5),g(2,one,1,10,"p-galleriaContent",6),A()),2&t){const e=f(2);Ve(e.maskClass),d("ngClass",He(6,sne,e.visible)),K("role",e.fullScreen?"dialog":"region")("aria-modal",e.fullScreen?"true":void 0),h(2),d("ngIf",e.visible)}}function ane(t,i){if(1&t&&(x(0,"div",null,2),g(2,rne,3,8,"div",3),A()),2&t){const e=f();h(2),d("ngIf",e.maskVisible)}}function lne(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",8),me("activeItemChange",function(o){return G(e),q(f().onActiveItemChange(o))}),A()}if(2&t){const e=f();d("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)}}const cne=["closeButton"];function une(t,i){1&t&&le(0,"TimesIcon",11),2&t&&d("styleClass","p-galleria-close-icon")}function dne(t,i){}function pne(t,i){1&t&&g(0,dne,0,0,"ng-template")}function hne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(){return G(e),q(f(2).maskHide.emit())}),g(1,une,1,1,"TimesIcon",9),g(2,pne,1,0,null,10),A()}if(2&t){const e=f(2);K("aria-label",e.closeAriaLabel())("data-pc-section","closebutton"),h(1),d("ngIf",!e.galleria.closeIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.closeIconTemplate)}}function fne(t,i){if(1&t&&(x(0,"div",12),le(1,"p-galleriaItemSlot",13),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}function gne(t,i){if(1&t){const e=De();x(0,"p-galleriaThumbnails",14),me("onActiveIndexChange",function(o){return G(e),q(f(2).onActiveIndexChange(o))})("stopSlideShow",function(){return G(e),q(f(2).stopSlideShow())}),A()}if(2&t){const e=f(2);d("containerId",e.id)("value",e.value)("activeIndex",e.activeIndex)("templates",e.galleria.templates)("numVisible",e.numVisible)("responsiveOptions",e.galleria.responsiveOptions)("circular",e.galleria.circular)("isVertical",e.isVertical())("contentHeight",e.galleria.verticalThumbnailViewPortHeight)("showThumbnailNavigators",e.galleria.showThumbnailNavigators)("slideShowActive",e.slideShowActive)}}function mne(t,i){if(1&t&&(x(0,"div",15),le(1,"p-galleriaItemSlot",16),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}const _ne=function(t,i,e){return{"p-galleria p-component":!0,"p-galleria-fullscreen":t,"p-galleria-indicator-onitem":i,"p-galleria-item-nav-onhover":e}},Ine=function(){return{}};function Cne(t,i){if(1&t){const e=De();x(0,"div",1),g(1,hne,3,4,"button",2),g(2,fne,2,1,"div",3),x(3,"div",4)(4,"p-galleriaItem",5),me("onActiveIndexChange",function(o){return G(e),q(f().onActiveIndexChange(o))})("startSlideShow",function(){return G(e),q(f().startSlideShow())})("stopSlideShow",function(){return G(e),q(f().stopSlideShow())}),A(),g(5,gne,1,11,"p-galleriaThumbnails",6),A(),g(6,mne,2,1,"div",7),A()}if(2&t){const e=f();Ve(e.galleriaClass()),d("ngClass",Rn(22,_ne,e.galleria.fullScreen,e.galleria.showIndicatorsOnItem,e.galleria.showItemNavigatorsOnHover&&!e.galleria.fullScreen))("ngStyle",e.galleria.fullScreen?Jt(26,Ine):e.galleria.containerStyle),K("id",e.id),h(1),d("ngIf",e.galleria.fullScreen),h(1),d("ngIf",e.galleria.templates&&e.galleria.headerFacet),h(1),K("aria-live",e.galleria.autoPlay?"polite":"off"),h(1),d("id",e.id)("value",e.value)("activeIndex",e.activeIndex)("circular",e.galleria.circular)("templates",e.galleria.templates)("showIndicators",e.galleria.showIndicators)("changeItemOnIndicatorHover",e.galleria.changeItemOnIndicatorHover)("indicatorFacet",e.galleria.indicatorFacet)("captionFacet",e.galleria.captionFacet)("showItemNavigators",e.galleria.showItemNavigators)("autoPlay",e.galleria.autoPlay)("slideShowActive",e.slideShowActive),h(1),d("ngIf",e.galleria.showThumbnails),h(1),d("ngIf",e.galleria.templates&&e.galleria.footerFacet)}}function vne(t,i){1&t&&ze(0)}function bne(t,i){if(1&t&&(we(0),g(1,vne,1,0,"ng-container",1),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",e.context)}}function yne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-item-prev-icon")}function xne(t,i){}function Ane(t,i){1&t&&g(0,xne,0,0,"ng-template")}const wne=function(t){return{"p-galleria-item-prev p-galleria-item-nav p-link":!0,"p-disabled":t}};function Tne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,yne,1,1,"ChevronLeftIcon",9),g(2,Ane,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,wne,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),h(1),d("ngIf",!e.galleria.itemPreviousIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemPreviousIconTemplate)}}function Sne(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&d("styleClass","p-galleria-item-next-icon")}function Ene(t,i){}function Dne(t,i){1&t&&g(0,Ene,0,0,"ng-template")}const kne=function(t){return{"p-galleria-item-next p-galleria-item-nav p-link":!0,"p-disabled":t}};function Mne(t,i){if(1&t){const e=De();x(0,"button",12),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Sne,1,1,"ChevronRightIcon",9),g(2,Dne,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,kne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),h(1),d("ngIf",!e.galleria.itemNextIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemNextIconTemplate)}}function One(t,i){if(1&t&&(x(0,"div",13),le(1,"p-galleriaItemSlot",14),A()),2&t){const e=f();h(1),d("item",e.activeItem)("templates",e.templates)}}function Lne(t,i){1&t&&le(0,"button",20)}const Pne=function(t){return{"p-galleria-indicator":!0,"p-highlight":t}};function Fne(t,i){if(1&t){const e=De();x(0,"li",17),me("click",function(){const s=G(e).index;return q(f(2).onIndicatorClick(s))})("mouseenter",function(){const s=G(e).index;return q(f(2).onIndicatorMouseEnter(s))})("keydown",function(o){const r=G(e).index;return q(f(2).onIndicatorKeyDown(o,r))}),g(1,Lne,1,0,"button",18),le(2,"p-galleriaItemSlot",19),A()}if(2&t){const e=i.index,n=f(2);d("ngClass",He(7,Pne,n.isIndicatorItemActive(e))),K("aria-label",n.ariaPageLabel(e+1))("aria-selected",n.activeIndex===e)("aria-controls",n.id+"_item_"+e),h(1),d("ngIf",!n.indicatorFacet),h(1),d("index",e)("templates",n.templates)}}function Rne(t,i){if(1&t&&(x(0,"ul",15),g(1,Fne,3,9,"li",16),A()),2&t){const e=f();h(1),d("ngForOf",e.value)}}const Nne=["itemsContainer"];function Vne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Bne(t,i){1&t&&le(0,"ChevronUpIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Hne(t,i){if(1&t&&(we(0),g(1,Vne,1,1,"ChevronLeftIcon",10),g(2,Bne,1,1,"ChevronUpIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function zne(t,i){}function jne(t,i){1&t&&g(0,zne,0,0,"ng-template")}const Une=function(t){return{"p-galleria-thumbnail-prev p-link":!0,"p-disabled":t}};function $ne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,Hne,3,2,"ng-container",8),g(2,jne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Une,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),K("aria-label",e.ariaPrevButtonLabel()),h(1),d("ngIf",!e.galleria.previousThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.previousThumbnailIconTemplate)}}const Kne=function(t,i,e,n){return{"p-galleria-thumbnail-item":!0,"p-galleria-thumbnail-item-current":t,"p-galleria-thumbnail-item-active":i,"p-galleria-thumbnail-item-start":e,"p-galleria-thumbnail-item-end":n}};function Gne(t,i){if(1&t){const e=De();x(0,"div",12),me("keydown",function(o){const r=G(e).index;return q(f().onThumbnailKeydown(o,r))}),x(1,"div",13),me("click",function(){const s=G(e).index;return q(f().onItemClick(s))})("touchend",function(){const s=G(e).index;return q(f().onItemClick(s))})("keydown.enter",function(){const s=G(e).index;return q(f().onItemClick(s))}),le(2,"p-galleriaItemSlot",14),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",gr(10,Kne,o.activeIndex===n,o.isItemActive(n),o.firstItemAciveIndex()===n,o.lastItemActiveIndex()===n)),K("aria-selected",o.activeIndex===n)("aria-controls",o.containerId+"_item_"+n)("data-pc-section","thumbnailitem")("data-p-active",o.activeIndex===n),h(1),K("tabindex",o.activeIndex===n?0:-1)("aria-current",o.activeIndex===n?"page":void 0)("aria-label",o.ariaPageLabel(n+1)),h(1),d("item",e)("templates",o.templates)}}function qne(t,i){1&t&&le(0,"ChevronRightIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Wne(t,i){1&t&&le(0,"ChevronDownIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Qne(t,i){if(1&t&&(we(0),g(1,qne,1,1,"ChevronRightIcon",15),g(2,Wne,1,1,"ChevronDownIcon",15),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function Zne(t,i){}function Yne(t,i){1&t&&g(0,Zne,0,0,"ng-template")}const Xne=function(t){return{"p-galleria-thumbnail-next p-link":!0,"p-disabled":t}};function Jne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Qne,3,2,"ng-container",8),g(2,Yne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Xne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),K("aria-label",e.ariaNextButtonLabel()),h(1),d("ngIf",!e.galleria.nextThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.nextThumbnailIconTemplate)}}const eie=function(t){return{height:t}};let yf=(()=>{class t{document;platformId;element;cd;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}fullScreen=!1;id;value;numVisible=3;responsiveOptions;showItemNavigators=!1;showThumbnailNavigators=!0;showItemNavigatorsOnHover=!1;changeItemOnIndicatorHover=!1;circular=!1;autoPlay=!1;shouldStopAutoplayByClick=!0;transitionInterval=4e3;showThumbnails=!0;thumbnailsPosition="bottom";verticalThumbnailViewPortHeight="300px";showIndicators=!1;showIndicatorsOnItem=!1;indicatorsPosition="bottom";baseZIndex=0;maskClass;containerClass;containerStyle;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}activeIndexChange=new ge;visibleChange=new ge;mask;container;templates;_visible=!1;_activeIndex=0;headerFacet;footerFacet;indicatorFacet;captionFacet;closeIconTemplate;previousThumbnailIconTemplate;nextThumbnailIconTemplate;itemPreviousIconTemplate;itemNextIconTemplate;maskVisible=!1;constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.element=o,this.cd=s,this.config=r}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerFacet=e.template;break;case"footer":this.footerFacet=e.template;break;case"indicator":this.indicatorFacet=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"itemnexticon":this.itemNextIconTemplate=e.template;break;case"itempreviousicon":this.itemPreviousIconTemplate=e.template;break;case"previousthumbnailicon":this.previousThumbnailIconTemplate=e.template;break;case"nextthumbnailicon":this.nextThumbnailIconTemplate=e.template;break;case"caption":this.captionFacet=e.template}})}ngOnChanges(e){e.value&&e.value.currentValue?.length{j.focus(j.findSingle(this.container.nativeElement,'[data-pc-section="closebutton"]'))},25);break;case"void":j.addClass(this.mask?.nativeElement,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&this.disableModality()}enableModality(){j.blockBodyScroll(),this.cd.markForCheck(),this.mask&&Wn.set("modal",this.mask.nativeElement,this.baseZIndex||this.config.zIndex.modal)}disableModality(){j.unblockBodyScroll(),this.maskVisible=!1,this.cd.markForCheck(),this.mask&&Wn.clear(this.mask.nativeElement)}ngOnDestroy(){this.fullScreen&&j.removeClass(this.document.body,"p-overflow-hidden"),this.mask&&this.disableModality()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleria"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ene,5),je(tne,5)),2&n){let s;Se(s=Ee())&&(o.mask=s.first),Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{activeIndex:"activeIndex",fullScreen:"fullScreen",id:"id",value:"value",numVisible:"numVisible",responsiveOptions:"responsiveOptions",showItemNavigators:"showItemNavigators",showThumbnailNavigators:"showThumbnailNavigators",showItemNavigatorsOnHover:"showItemNavigatorsOnHover",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",circular:"circular",autoPlay:"autoPlay",shouldStopAutoplayByClick:"shouldStopAutoplayByClick",transitionInterval:"transitionInterval",showThumbnails:"showThumbnails",thumbnailsPosition:"thumbnailsPosition",verticalThumbnailViewPortHeight:"verticalThumbnailViewPortHeight",showIndicators:"showIndicators",showIndicatorsOnItem:"showIndicatorsOnItem",indicatorsPosition:"indicatorsPosition",baseZIndex:"baseZIndex",maskClass:"maskClass",containerClass:"containerClass",containerStyle:"containerStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",visible:"visible"},outputs:{activeIndexChange:"activeIndexChange",visibleChange:"visibleChange"},features:[Hn],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["windowed",""],["container",""],[3,"ngClass","class",4,"ngIf"],[3,"ngClass"],["mask",""],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange",4,"ngIf"],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange"],[3,"value","activeIndex","numVisible","activeItemChange"]],template:function(n,o){if(1&n&&(g(0,ane,3,1,"div",0),g(1,lne,1,3,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",o.fullScreen)("ngIfElse",s)}},dependencies:function(){return[Ct,gt,Ht,tie]},styles:["@layer primeng{.p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[en({transform:"scale(0.7)",opacity:0}),On("{{showTransitionParams}}")]),Ln("visible => void",[On("{{hideTransitionParams}}",en({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),tie=(()=>{class t{galleria;cd;differs;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}value=[];numVisible;maskHide=new ge;activeItemChange=new ge;closeButton;id;_activeIndex=0;slideShowActive=!0;interval;styleClass;differ;constructor(e,n,o,s){this.galleria=e,this.cd=n,this.differs=o,this.config=s,this.id=this.galleria.id||$t(),this.differ=this.differs.find(this.galleria).create()}ngDoCheck(){const e=this.differ.diff(this.galleria);e&&e.forEachItem.length>0&&this.cd.markForCheck()}galleriaClass(){const e=this.galleria.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.galleria.thumbnailsPosition),n=this.galleria.showIndicators&&this.getPositionClass("p-galleria-indicators",this.galleria.indicatorsPosition);return(this.galleria.containerClass?this.galleria.containerClass+" ":"")+(e?e+" ":"")+(n?n+" ":"")}startSlideShow(){ei(this.galleria.platformId)&&(this.interval=setInterval(()=>{let e=this.galleria.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1;this.onActiveIndexChange(e),this.activeIndex=e},this.galleria.transitionInterval),this.slideShowActive=!0)}stopSlideShow(){this.galleria.autoPlay&&!this.galleria.shouldStopAutoplayByClick||(this.interval&&clearInterval(this.interval),this.slideShowActive=!1)}getPositionClass(e,n){const s=["top","left","bottom","right"].find(r=>r===n);return s?`${e}-${s}`:""}isVertical(){return"left"===this.galleria.thumbnailsPosition||"right"===this.galleria.thumbnailsPosition}onActiveIndexChange(e){this.activeIndex!==e&&(this.activeIndex=e,this.activeItemChange.emit(this.activeIndex))}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Ft),V(yl),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaContent"]],viewQuery:function(n,o){if(1&n&&je(cne,5),2&n){let s;Se(s=Ee())&&(o.closeButton=s.first)}},inputs:{activeIndex:"activeIndex",value:"value",numVisible:"numVisible"},outputs:{maskHide:"maskHide",activeItemChange:"activeItemChange"},decls:1,vars:1,consts:[["pFocusTrap","",3,"ngClass","ngStyle","class",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle"],["type","button","class","p-galleria-close p-link","pRipple","",3,"click",4,"ngIf"],["class","p-galleria-header",4,"ngIf"],[1,"p-galleria-content"],[3,"id","value","activeIndex","circular","templates","showIndicators","changeItemOnIndicatorHover","indicatorFacet","captionFacet","showItemNavigators","autoPlay","slideShowActive","onActiveIndexChange","startSlideShow","stopSlideShow"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow",4,"ngIf"],["class","p-galleria-footer",4,"ngIf"],["type","button","pRipple","",1,"p-galleria-close","p-link",3,"click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-galleria-header"],["type","header",3,"templates"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow"],[1,"p-galleria-footer"],["type","footer",3,"templates"]],template:function(n,o){1&n&&g(0,Cne,7,27,"div",0),2&n&&d("ngIf",o.value&&o.value.length>0)},dependencies:function(){return[Ct,gt,on,Ht,oo,mn,Tk,TC,nie,iie]},encapsulation:2,changeDetection:0})}return t})(),TC=(()=>{class t{templates;index;get item(){return this._item}set item(e){this._item=e,this.templates&&this.templates.forEach(n=>{if(n.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=n.template}})}type;contentTemplate;context;_item;ngAfterContentInit(){this.templates?.forEach(e=>{if(e.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=e.template;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=e.template;break;default:this.context={},this.contentTemplate=e.template}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItemSlot"]],inputs:{templates:"templates",index:"index",item:"item",type:"type"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&g(0,bne,2,2,"ng-container",0),2&n&&d("ngIf",o.contentTemplate)},dependencies:[gt,on],encapsulation:2,changeDetection:0})}return t})(),nie=(()=>{class t{galleria;id;circular=!1;value;showItemNavigators=!1;showIndicators=!0;slideShowActive=!0;changeItemOnIndicatorHover=!0;autoPlay=!1;templates;indicatorFacet;captionFacet;startSlideShow=new ge;stopSlideShow=new ge;onActiveIndexChange=new ge;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}get activeItem(){return this.value&&this.value[this._activeIndex]}_activeIndex=0;constructor(e){this.galleria=e}ngOnChanges({autoPlay:e}){e?.currentValue&&this.startSlideShow.emit(),e&&!1===e.currentValue&&this.stopTheSlideShow()}next(){this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1)}prev(){this.onActiveIndexChange.emit(this.circular&&0===this.activeIndex?this.value.length-1:0!==this.activeIndex?this.activeIndex-1:0)}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}navForward(e){this.stopTheSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()}navBackward(e){this.stopTheSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()}onIndicatorClick(e){this.stopTheSlideShow(),this.onActiveIndexChange.emit(e)}onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopTheSlideShow(),this.onActiveIndexChange.emit(e))}onIndicatorKeyDown(e,n){switch(e.code){case"Enter":case"Space":this.stopTheSlideShow(),this.onActiveIndexChange.emit(n),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1}isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex}isIndicatorItemActive(e){return this.activeIndex===e}ariaSlideLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slide:void 0}ariaSlideNumber(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItem"]],inputs:{id:"id",circular:"circular",value:"value",showItemNavigators:"showItemNavigators",showIndicators:"showIndicators",slideShowActive:"slideShowActive",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",autoPlay:"autoPlay",templates:"templates",indicatorFacet:"indicatorFacet",captionFacet:"captionFacet",activeIndex:"activeIndex"},outputs:{startSlideShow:"startSlideShow",stopSlideShow:"stopSlideShow",onActiveIndexChange:"onActiveIndexChange"},features:[Hn],decls:8,vars:11,consts:[[1,"p-galleria-item-wrapper"],[1,"p-galleria-item-container"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],["role","group",3,"id"],["type","item",1,"p-galleria-item",3,"item","templates"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click",4,"ngIf"],["class","p-galleria-caption",4,"ngIf"],["class","p-galleria-indicators p-reset",4,"ngIf"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click"],[1,"p-galleria-caption"],["type","caption",3,"item","templates"],[1,"p-galleria-indicators","p-reset"],["tabindex","0",3,"ngClass","click","mouseenter","keydown",4,"ngFor","ngForOf"],["tabindex","0",3,"ngClass","click","mouseenter","keydown"],["type","button","tabIndex","-1","class","p-link",4,"ngIf"],["type","indicator",3,"index","templates"],["type","button","tabIndex","-1",1,"p-link"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,Tne,3,6,"button",2),x(3,"div",3),le(4,"p-galleriaItemSlot",4),A(),g(5,Mne,3,6,"button",5),g(6,One,2,2,"div",6),A(),g(7,Rne,2,1,"ul",7),A()),2&n&&(h(2),d("ngIf",o.showItemNavigators),h(1),fo("width","100%"),d("id",o.id+"_item_"+o.activeIndex),K("aria-label",o.ariaSlideNumber(o.activeIndex+1))("aria-roledescription",o.ariaSlideLabel()),h(1),d("item",o.activeItem)("templates",o.templates),h(1),d("ngIf",o.showItemNavigators),h(1),d("ngIf",o.captionFacet),h(1),d("ngIf",o.showIndicators))},dependencies:function(){return[Ct,Jn,gt,on,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),iie=(()=>{class t{galleria;document;platformId;renderer;cd;containerId;value;isVertical=!1;slideShowActive=!1;circular=!1;responsiveOptions;contentHeight="300px";showThumbnailNavigators=!0;templates;onActiveIndexChange=new ge;stopSlideShow=new ge;itemsContainer;get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e,this._oldNumVisible=this.d_numVisible,this.d_numVisible=e}get activeIndex(){return this._activeIndex}set activeIndex(e){this._oldactiveIndex=this._activeIndex,this._activeIndex=e}index;startPos=null;thumbnailsStyle=null;sortedResponsiveOptions=null;totalShiftedItems=0;page=0;documentResizeListener;_numVisible=0;d_numVisible=0;_oldNumVisible=0;_activeIndex=0;_oldactiveIndex=0;constructor(e,n,o,s,r){this.galleria=e,this.document=n,this.platformId=o,this.renderer=s,this.cd=r}ngOnInit(){this.createStyle(),this.responsiveOptions&&this.bindDocumentListeners()}ngAfterContentChecked(){let e=this.totalShiftedItems;(this._oldNumVisible!==this.d_numVisible||this._oldactiveIndex!==this._activeIndex)&&this.itemsContainer&&(e=this._activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex(){const s=n.breakpoint,r=o.breakpoint;let a=null;return a=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof s&&"string"==typeof r?s.localeCompare(r,void 0,{numeric:!0}):sr?1:0,-1*a});for(let n=0;n=e&&(n=s)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible,this.cd.markForCheck())}}getTabIndex(e){return this.isItemActive(e)?0:null}navForward(e){this.stopTheSlideShow();let n=this._activeIndex+1;n+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItemsthis.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1),this.onActiveIndexChange.emit(this.circular&&0===this._activeIndex?this.value.length-1:n),e.cancelable&&e.preventDefault()}onItemClick(e){this.stopTheSlideShow();let n=e;if(n!==this._activeIndex){const o=n+this.totalShiftedItems;let s=0;n0&&-1*this.totalShiftedItems!=0&&this.step(s)):(s=this.getMedianItemIndex()-o,s<0&&-1*this.totalShiftedItems!0===j.getAttribute(r,"data-p-active")),o=j.findSingle(this.itemsContainer.nativeElement,'[tabindex="0"]'),s=e.findIndex(r=>r===o.parentElement);e[s].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"}findFocusedIndicatorIndex(){const e=[...j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]')],n=j.findSingle(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(o=>o===n.parentElement)}changedFocusedIndicator(e,n){const o=j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]');o[e].children[0].tabIndex="-1",o[n].children[0].tabIndex="0",o[n].children[0].focus()}step(e){let n=this.totalShiftedItems+e;e<0&&-1*n+this.d_numVisible>this.value.length-1?n=this.d_numVisible-this.value.length:e>0&&n>0&&(n=0),this.circular&&(e<0&&this.value.length-1===this._activeIndex?n=0:e>0&&0===this._activeIndex&&(n=this.d_numVisible-this.value.length)),this.itemsContainer&&(j.removeClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${n*(100/this.d_numVisible)}%, 0)`:`translate3d(${n*(100/this.d_numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=n}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}changePageOnTouch(e,n){n<0?this.navForward(e):this.navBackward(e)}getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0}getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1}onTransitionEnd(){this.itemsContainer&&this.itemsContainer.nativeElement&&(j.addClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="")}onTouchEnd(e){let n=e.changedTouches[0];this.changePageOnTouch(e,this.isVertical?n.pageY-this.startPos.y:n.pageX-this.startPos.x)}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchStart(e){let n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}}isNavBackwardDisabled(){return!this.circular&&0===this._activeIndex||this.value.length<=this.d_numVisible}isNavForwardDisabled(){return!this.circular&&this._activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}firstItemAciveIndex(){return-1*this.totalShiftedItems}lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1}isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e}bindDocumentListeners(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView||"window","resize",()=>{this.calculatePosition()}))}unbindDocumentListeners(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle)}ariaPrevButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.prevPageLabel:void 0}ariaNextButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.nextPageLabel:void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Wt),V($n),V(hn),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaThumbnails"]],viewQuery:function(n,o){if(1&n&&je(Nne,5),2&n){let s;Se(s=Ee())&&(o.itemsContainer=s.first)}},inputs:{containerId:"containerId",value:"value",isVertical:"isVertical",slideShowActive:"slideShowActive",circular:"circular",responsiveOptions:"responsiveOptions",contentHeight:"contentHeight",showThumbnailNavigators:"showThumbnailNavigators",templates:"templates",numVisible:"numVisible",activeIndex:"activeIndex"},outputs:{onActiveIndexChange:"onActiveIndexChange",stopSlideShow:"stopSlideShow"},decls:8,vars:6,consts:[[1,"p-galleria-thumbnail-wrapper"],[1,"p-galleria-thumbnail-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-galleria-thumbnail-items-container",3,"ngStyle"],["role","tablist",1,"p-galleria-thumbnail-items",3,"transitionend","touchstart","touchmove"],["itemsContainer",""],[3,"ngClass","keydown",4,"ngFor","ngForOf"],["type","button","pRipple","",3,"ngClass","disabled","click"],[4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"ngClass","keydown"],[1,"p-galleria-thumbnail-item-content",3,"click","touchend","keydown.enter"],["type","thumbnail",3,"item","templates"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,$ne,3,7,"button",2),x(3,"div",3)(4,"div",4,5),me("transitionend",function(){return o.onTransitionEnd()})("touchstart",function(r){return o.onTouchStart(r)})("touchmove",function(r){return o.onTouchMove(r)}),g(6,Gne,3,15,"div",6),A()(),g(7,Jne,3,7,"button",2),A()()),2&n&&(h(2),d("ngIf",o.showThumbnailNavigators),h(1),d("ngStyle",He(4,eie,o.isVertical?o.contentHeight:"")),h(3),d("ngForOf",o.value),h(1),d("ngIf",o.showThumbnailNavigators))},dependencies:function(){return[Ct,Jn,gt,on,Ht,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),kk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,mn,Qi,Mr,AC,wC,Sk,Xe,Qe]})}return t})();const oie=["galleria"],sie=function(t){return{width:t}};function rie(t,i){if(1&t&&le(0,"img",7),2&t){const e=i.$implicit,n=f(2);d("src",e.itemImageSrc,Ls)("ngStyle",He(2,sie,n.fullscreen?"":"100%"))}}function aie(t,i){if(1&t&&(x(0,"div"),le(1,"img",8),A()),2&t){const e=i.$implicit;y_("grid grid-nogutter justify-content-center ",e.title,""),h(1),d("src",e.thumbnailImageSrc,Ls)}}function lie(t,i){if(1&t&&(x(0,"span",13)(1,"span"),Le(2),A(),x(3,"span"),Le(4),A(),le(5,"span"),A()),2&t){const e=f(4);h(2),Fp("",e.activeIndex+1,"/",e.images.length,""),h(2),dt(e.images[e.activeIndex].alt),h(1),y_("title ",e.getStatusWithIcon(e.images[e.activeIndex].title),"")}}function cie(t,i){if(1&t){const e=De();x(0,"div",10),g(1,lie,6,6,"span",11),x(2,"button",12),me("click",function(){return G(e),q(f(3).toggleFullScreen())}),A()()}if(2&t){const e=f(3);h(1),d("ngIf",e.images),h(1),Ve(e.fullScreenIcon())}}function uie(t,i){1&t&&g(0,cie,3,4,"ng-template",9)}const die=function(t,i){return{footerMargin:t,smallThumbnail:i}},pie=function(){return{"max-width":"100%"}};function hie(t,i){if(1&t){const e=De();x(0,"div",1)(1,"p-galleria",2,3),me("valueChange",function(o){return G(e),q(f().images=o)})("activeIndexChange",function(o){return G(e),q(f().activeIndex=o)}),g(3,rie,1,4,"ng-template",4),g(4,aie,2,4,"ng-template",5),g(5,uie,1,0,null,6),A()()}if(2&t){const e=f();d("ngClass",mt(14,die,e.showFooter,!e.showFooter)),h(1),d("value",e.images)("activeIndex",e.activeIndex)("numVisible",10)("showThumbnails",e.showThumbnails)("showItemNavigators",!1)("showItemNavigatorsOnHover",!1)("circular",!0)("autoPlay",!1)("transitionInterval",3e3)("containerStyle",Jt(17,pie))("containerClass",e.galleriaClass())("thumbnailsPosition",e.top),h(4),d("ngIf",e.showFooter)}}let SC=(()=>{class t{constructor(e,n,o,s,r,a){this.globalVarService=e,this._userDataManagerService=n,this.route=o,this.calculatedDataService=s,this.communicatorService=r,this.cd=a,this.isScreenshotVisibleEvent=new ge,this.showFooter=!0,this.autoplaychecked=!1,this.fullscreen=!1,this.activeIndex=0,this.position="left",this.responsiveOptions=[{breakpoint:"1024px",numVisible:5},{breakpoint:"768px",numVisible:3},{breakpoint:"560px",numVisible:1}]}ngOnInit(){this.showThumbnails=this._thumbnails,this.route.params.subscribe(e=>{this.paramChanged(),this.bindDocumentListeners()}),this.communicatorService.onBfActivitiesDataChange.subscribe(e=>{"Last Loading Data"===e&&(this.paramChanged(),this.bindDocumentListeners())})}handleChange(e){this.bindDocumentListeners()}setThumbnails(){}paramChanged(){"action"==this.EntityType?this.setScurrentAction():("businessflow"==this.EntityType||"activity"==this.EntityType)&&this.setAllActions(),this.images=[];for(const e of this.actions)for(const n of e.ScreenShots)this.images.push({itemImageSrc:this.globalVarService.imagePath+n,thumbnailImageSrc:this.globalVarService.imagePath+n,alt:e.Path,title:e.RunStatus.toString()});this.isScreenshotVisibleEvent.emit(null!=this.images&&this.images.length>0)}getStatusWithIcon(e){return this.calculatedDataService.getStatusClass(e)}onThumbnailButtonClick(){this.showThumbnails=!this.showThumbnails}toggleFullScreen(){this.fullscreen?this.closePreviewFullScreen():this.openPreviewFullScreen(),this.cd.detach()}openPreviewFullScreen(){let e=this.galleria?.element.nativeElement.querySelector(".p-galleria");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}onFullScreenChange(){this.fullscreen=!this.fullscreen,this.cd.detectChanges(),this.cd.reattach()}closePreviewFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}bindDocumentListeners(){this.onFullScreenListener=this.onFullScreenChange.bind(this),document.addEventListener("fullscreenchange",this.onFullScreenListener),document.addEventListener("mozfullscreenchange",this.onFullScreenListener),document.addEventListener("webkitfullscreenchange",this.onFullScreenListener),document.addEventListener("msfullscreenchange",this.onFullScreenListener)}unbindDocumentListeners(){document.removeEventListener("fullscreenchange",this.onFullScreenListener),document.removeEventListener("mozfullscreenchange",this.onFullScreenListener),document.removeEventListener("webkitfullscreenchange",this.onFullScreenListener),document.removeEventListener("msfullscreenchange",this.onFullScreenListener),this.onFullScreenListener=null}ngOnDestroy(){this.unbindDocumentListeners()}galleriaClass(){return"custom-galleria "+(this.fullscreen?"fullscreen":"")}fullScreenIcon(){return"pi "+(this.fullscreen?"fullscreen-button pi-window-minimize":"fullscreen-button pi-window-maximize")}setAllActions(){const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");if(this.actions=[],e&&n&&o){const r=e.RunnersColl.filter(a=>a.Seq===n)[0].BusinessFlowsColl.filter(a=>a.Seq===o)[0];for(const a of r.ActivitiesColl)for(const l of a.ActionsColl)l.Path=a.ActivityGroupName+" / "+a.Name,this.actions.push(l)}}setScurrentAction(){this.actions=[];const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");var s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");if(null!=r&&0==r&&(r=this.Action_seq),null!=s&&0==s&&(s=this.Activity_seq),e&&n&&o&&s&&r){const c=e.RunnersColl.filter(u=>u.Seq===n)[0].BusinessFlowsColl.filter(u=>u.Seq===o)[0].ActivitiesColl.filter(u=>u.Seq===s)[0];this.actions.push(c.ActionsColl.filter(u=>u.Seq===r)[0])}}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V(Co),V(Di),V(qs),V(Ws),V(Ft))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["screenshot-carousel"]],viewQuery:function(n,o){if(1&n&&je(oie,5),2&n){let s;Se(s=Ee())&&(o.galleria=s.first)}},inputs:{_height:"_height",_thumbnails:"_thumbnails",autoplay:"autoplay",EntityType:"EntityType",Action_seq:"Action_seq",Activity_seq:"Activity_seq",showFooter:"showFooter"},outputs:{isScreenshotVisibleEvent:"isScreenshotVisibleEvent"},decls:1,vars:1,consts:[["class","screenshot-carousel",3,"ngClass",4,"ngIf"],[1,"screenshot-carousel",3,"ngClass"],[3,"value","activeIndex","numVisible","showThumbnails","showItemNavigators","showItemNavigatorsOnHover","circular","autoPlay","transitionInterval","containerStyle","containerClass","thumbnailsPosition","valueChange","activeIndexChange"],["galleria",""],["pTemplate","item"],["pTemplate","thumbnail"],[4,"ngIf"],[3,"src","ngStyle"],[2,"width","100px",3,"src"],["pTemplate","footer"],[1,"custom-galleria-footer"],["class","title-container",4,"ngIf"],["type","button",3,"click"],[1,"title-container"]],template:function(n,o){1&n&&g(0,hie,6,18,"div",0),2&n&&d("ngIf",null!=o.images&&o.images.length>0)},dependencies:[Ct,gt,Ht,sn,yf],styles:[".screenshot-carousel .passed-color{color:#109717;text-align:center} .screenshot-carousel .failed-color{color:#dc3812;text-align:center} .screenshot-carousel .blocked-color{color:#a21025;text-align:center} .screenshot-carousel .stopped-color{color:#ed5588;text-align:center} .screenshot-carousel .pending-color{color:#f90;text-align:center} .screenshot-carousel .skipped-color{color:#737373;text-align:center} .screenshot-carousel .inprogress-color{color:#eab330;text-align:center} .screenshot-carousel .canceled-color{color:#ca0088;text-align:center} p-galleriaitemslot .Passed{border-top:5px solid #109717!important} p-galleriaitemslot .Failed{border-top:5px solid #DC3812!important} p-galleriaitemslot .Blocked{border-top:5px solid #A21025!important} p-galleriaitemslot .Stopped{border-top:5px solid #ED5588!important} p-galleriaitemslot .Pending{border-top:5px solid #FF9900!important} p-galleriaitemslot .Skipped{border-top:5px solid #737373!important} p-galleriaitemslot .InProgress{border-top:5px solid #EAB330!important} p-galleriaitemslot .Canceled{border-top:5px solid #CA0088!important} .footerMargin .p-galleria-item-wrapper{margin-bottom:90px!important} .smallThumbnail .p-galleria-item-wrapper{width:100px!important}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen{display:flex;flex-direction:column}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen .p-galleria-content{flex-grow:1;justify-content:center}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-content{position:relative}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-wrapper{position:absolute;bottom:0;left:0;width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-items-container{width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer{display:flex;align-items:center;background-color:#fff;color:#000;border:1px solid;padding:5px}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button{background-color:transparent;color:#000;border:0 none;border-radius:0;margin:.2rem 0}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button.fullscreen-button{margin-left:auto}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button:hover{background-color:#ffffff1a}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span{font-size:1.2rem;padding-left:.829rem}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span.title{font-weight:700;font-size:1.5rem}"]})}return t})();function fie(t,i){1&t&&le(0,"div")}function gie(t,i){1&t&&le(0,"th",9)}function mie(t,i){if(1&t&&(x(0,"th"),Le(1),A()),2&t){const e=i.$implicit;h(1),Pt(" ",e.header," ")}}function _ie(t,i){if(1&t&&(x(0,"tr"),g(1,fie,1,0,"div",6),g(2,gie,1,0,"ng-template",null,7,In),g(4,mie,2,1,"th",8),A()),2&t){const e=i.$implicit,n=Bt(3),o=f();h(1),d("ngIf",o.addExpender)("ngIfThen",n),h(3),d("ngForOf",e)}}function Iie(t,i){1&t&&le(0,"div")}function Cie(t,i){if(1&t&&(x(0,"td")(1,"a",12),le(2,"i",13),A()()),2&t){const e=f(),n=e.$implicit,o=e.expanded;h(1),d("pRowToggler",n),h(1),d("ngClass",o?"pi pi-chevron-down":"pi pi-chevron-right")}}const vie=function(t){return{Guid:t}};function bie(t,i){if(1&t&&(x(0,"div")(1,"b")(2,"a",21),Le(3),A()()()),2&t){const e=f().$implicit,n=f(2).$implicit,o=f();h(2),__("routerLink","",e.link,"",o.getParamsURL(n,e),""),d("queryParams",He(4,vie,n.GUID)),h(1),Pt(" ",n[e.field]," ")}}function yie(t,i){if(1&t&&(x(0,"div"),g(1,bie,4,6,"div",16),A()),2&t){const e=i.$implicit;h(1),d("ngSwitchCase",e.field)}}function xie(t,i){if(1&t&&(x(0,"div"),Le(1),Il(2,"date"),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",Cl(2,1,n[e.field],"short")," ")}}function Aie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.msToTime(n[e.field])," ")}}function wie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}const Tie=function(t,i,e,n,o,s,r,a,l){return{"passed-color":t,"failed-color":i,"blocked-color":e,"stopped-color":n,"pending-color":o,"skipped-color":s,"inprogress-color":r,"canceled-color":a,"other-color":l}};function Sie(t,i){if(1&t&&(x(0,"div")(1,"div",13),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(1),d("ngClass",zp(2,Tie,["Passed"===e[n.statusFieldName],"Failed"===e[n.statusFieldName],"Blocked"===e[n.statusFieldName],"Stopped"===e[n.statusFieldName],"Pending"===e[n.statusFieldName],"Skipped"===e[n.statusFieldName],"In Progress"===e[n.statusFieldName],"Canceled"===e[n.statusFieldName],"Other"===e[n.statusFieldName]])),h(1),Pt(" ",e[n.statusFieldName]," ")}}function Eie(t,i){if(1&t&&(x(0,"div"),g(1,Sie,3,12,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.statusFieldName)}}function Die(t,i){if(1&t&&(x(0,"div")(1,"div",23),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(2),Pt(" ",e[n.errorFieldName]," ")}}function kie(t,i){if(1&t&&(x(0,"div"),g(1,Die,3,1,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.errorFieldName)}}function Mie(t,i){if(1&t&&(x(0,"div")(1,"div",24),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}function Oie(t,i){if(1&t&&(x(0,"div"),g(1,Mie,3,1,"div",16),A()),2&t){const e=f().$implicit,n=f(2);h(1),d("ngSwitchCase",n.boldAndCenterFields.includes(e.field)?e.field:"")}}function Lie(t,i){if(1&t){const e=De();x(0,"div")(1,"screenshot-carousel",25),me("isScreenshotVisibleEvent",function(o){return G(e),q(f(4).setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f(3).$implicit,n=f();h(1),d("showFooter",!1)("Activity_seq",n.activitySeq)("Action_seq",e.Seq)("EntityType",n.EntityType)("_height",100)("_thumbnails",!1)}}function Pie(t,i){1&t&&(x(0,"div"),g(1,Lie,2,6,"div",16),A()),2&t&&(h(1),d("ngSwitchCase","Screenshots"))}function Fie(t,i){if(1&t&&(x(0,"div",24),Le(1),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"% ")}}function Rie(t,i){if(1&t&&(x(0,"div")(1,"pre",29),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.getXML(n[e.field]),"\n ")}}function Nie(t,i){if(1&t&&(x(0,"div",30),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field]," ")}}function Vie(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"")}}function Bie(t,i){if(1&t&&(x(0,"div"),g(1,Rie,3,1,"div",26),g(2,Nie,2,1,"div",27),g(3,Vie,2,1,"ng-template",null,28,In),A()),2&t){const e=Bt(4),n=f().$implicit,o=f().$implicit,s=f();h(1),d("ngIf",o[n.field].includes("{class t{constructor(e,n,o){this.communicatorService=e,this.globalVarService=n,this._userDataManagerService=o,this.addExpender=!1,this.ShouldImagePop=!1,this.imagePopSrc="",this.imagePopName="",this.showScreenshotPanel=!0,this.EntityType="action"}ngOnInit(){}printf(e){console.log(e)}msToTime(e){return this._userDataManagerService.msToTime(e)}getParamsURL(e,n){var o="";if(!n.params)return e[n.param];for(let s of n.params)o=o+e[s]+"/";return o}onRouterCLick(e){console.log(e)}showImage(e){this.ShouldImagePop=!0,this.imagePopSrc=this.globalVarService.imagePath+e,this.imagePopName=e}getXML(e){let n;return n="\n"+e,n}isJson(e){try{JSON.parse(e)}catch{return console.log("not json"),!1}return console.log("is json"),!0}getJson(e){try{return JSON.parse(e)}catch{console.log("not json")}}trackByFunction(e,n){return n?n.field:null}setScreenshotVisiblity(e){this.showScreenshotPanel=e}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table"]],inputs:{cols:"cols",data:"data",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",errorFieldName:"errorFieldName",statusFieldName:"statusFieldName",boldAndCenterFields:"boldAndCenterFields",activitySeq:"activitySeq"},decls:6,vars:9,consts:[["dataKey","Seq",3,"columns","value"],["pTemplate","header"],["pTemplate","body"],["pTemplate","rowexpansion"],[3,"header","visible","responsive","visibleChange"],[2,"height","40vw",3,"src"],[4,"ngIf","ngIfThen"],["addExpenderBlock",""],[4,"ngFor","ngForOf"],[2,"width","3em"],["addExpenderBlock1",""],["class","row",3,"ngSwitch",4,"ngFor","ngForOf"],["href","#",3,"pRowToggler"],[3,"ngClass"],[1,"row",3,"ngSwitch"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngIf"],["class","bold-and-center",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["data","rowData",3,"routerLink","queryParams"],[1,"numbers-style"],[1,"failed-color"],[1,"bold-and-center"],[3,"showFooter","Activity_seq","Action_seq","EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],[4,"ngIf","ngIfElse"],["style"," display: inline-block;width: 180px;white-space: nowrap;overflow: hidden !important;text-overflow: ellipsis;",4,"ngIf","ngIfElse"],["elseBlock1",""],["lang","xml"],[2,"display","inline-block","width","180px","white-space","nowrap","overflow","hidden !important","text-overflow","ellipsis"],[1,"p-fluid",2,"font-size","16px","padding","20px"],[3,"tableExpenderType","entity"]],template:function(n,o){1&n&&(x(0,"p-table",0),g(1,_ie,5,3,"ng-template",1),g(2,Gie,5,3,"ng-template",2),g(3,qie,4,3,"ng-template",3),A(),x(4,"p-dialog",4),me("visibleChange",function(r){return o.ShouldImagePop=r}),le(5,"img",5),A()),2&n&&(d("columns",o.cols)("value",o.data),h(4),yn(Jt(8,Wie)),d("header",o.imagePopName)("visible",o.ShouldImagePop)("responsive",!0),h(1),d("src",o.imagePopSrc,Ls))},dependencies:[Ct,Jn,gt,wl,ch,x0,sn,xC,ate,pa,Qte,Dk,SC,Hs],styles:[".bold-and-center[_ngcontent-%COMP%]{font-weight:700;text-align:center}.alignCenter[_ngcontent-%COMP%]{text-align:center}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}.row[_ngcontent-%COMP%]{text-align:center}.item1[_ngcontent-%COMP%]{width:90%;text-align:left;margin-bottom:10px}"],data:{animation:[Oo("rowExpansionTrigger",[Us("void",en({transform:"translateX(-10%)",opacity:0})),Us("active",en({transform:"translateX(0)",opacity:1})),Ln("* <=> *",On("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}})}return t})();const Qie=["exeStatistics"];function Zie(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Run set Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),Pt(" ",e.RunsetJson.Name,"")}}function Yie(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runsetDetails)}}function Xie(t,i){if(1&t){const e=De();x(0,"p-accordionTab",13)(1,"app-execution-statistic",14,15),me("isStatisticsVisibleEvent",function(o){return G(e),q(f().setStatisticsVisiblity(o))}),A()()}2&t&&d("selected",!0)}const Jie=function(){return["BusinessFlowSeq"]};function eoe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.runnersCols)("data",e.runnersData)("fieldsLinksArr",e.fieldsLinksArr)("statusFieldName","BusinessFlowExecutionStaus")("boldAndCenterFields",Jt(6,Jie))}}function toe(t,i){1&t&&(x(0,"div",18),le(1,"div",19),A())}function noe(t,i){if(1&t&&(x(0,"p"),Le(1),A()),2&t){const e=f();h(1),dt(e.ErrorMessage)}}const ioe=function(t,i){return{hideDiv:t,showDiv:i}};let ooe=(()=>{class t{constructor(e,n,o,s,r,a,l,c,u,p,m,_){this.executionDataService=e,this.datePipe=n,this.communicatorService=o,this.reportHelperService=s,this.activeRoute=r,this.router=a,this.fileLoader=l,this.globalVarService=u,this.restServiceObj=p,this.userDataManagerService=m,this.calculatedDataService=_,this.runnersData=[],this.ErrorMessage="",this.showStatisticsPanel=!0,this.globalVarService.baseAppUrl=c.baseUrl,this.globalVarService.totalRecPerActivityPull=c.totalRecPerActivityPull,this.globalVarService.topBarTitle=c.topBarTitle}ngAfterViewInit(){null!=this.executionStatisticComponent&&null!=this.RunsetJson&&this.executionStatisticComponent.initComponents()}ngOnInit(){this.communicatorService.onRefreshChangedMessage.subscribe(e=>{"RefreshData"===e&&this.showRunset(!0)}),this.reportHelperService.selectedGuid="",this.reportHelperService.selectedRouteLink="",this.activeRoute.queryParams.subscribe(e=>{const n=e.Routed_Guid;console.log("found selected guid "+n),this.reportHelperService.selectedGuid=typeof n<"u"&&n?n:""}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"BusinessFlowName",link:"",params:["Seq","BusinessFlowSeq"]}],null==this.RunsetJson&&this.showRunset(),this.runnersCols=[{field:"Seq",header:"Runner Number"},{field:"Name",header:"Ginger Runner Name"},{field:"Environment",header:"Ginger Runner Environment Name"},{field:"BusinessFlowSeq",header:"Business Flow Execution Sequence"},{field:"BusinessFlowName",header:"Business Flow Name"},{field:"BusinessFlowDescription",header:"Business Flow Description"},{field:"BusinessFlowRunDescription",header:"Business Flow Run Description"},{field:"BusinessFlowExecutionStaus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Passed Rate"}]}showRunset(e=!1){this.hideRepoLoader=!0,this.showReport=!1;var n=this.activeRoute.snapshot.queryParamMap.get("ExecutionId");const o=this.activeRoute.snapshot.paramMap.get("BusinessFlowId"),s=this.activeRoute.snapshot.paramMap.get("ExecutionId");null!=s&&(n=s),null==n?n=localStorage.getItem("executionId"):localStorage.setItem("executionId",n),console.log("run set query guid is :"+n),n?(this.globalVarService.imagePath="images/",this.globalVarService.isServerLoading=!0,this.globalVarService.executionServerId=n,this.RunsetJson=this.userDataManagerService.getItemCache(),null==this.RunsetJson||this.RunsetJson.GUID!=n?this.restServiceObj.GetAccountHtmlReportBriefCase(n).subscribe(r=>{if(r.isSuccsess){if(this.showReport=!0,console.log(r.response),this.RunsetJson=JSON.parse(r.response),this.RunsetJson.Name=this.userDataManagerService.replaceUnicodeChar(this.RunsetJson.Name),this.RunsetJson.RunnersColl.length<=0)return void console.log("error on loading report");this.userDataManagerService.setItemCache(this.RunsetJson),this.RunsetJson.RunStatus==Lt.InProgress&&(this.userDataManagerService.setItem("LoadActivityStat","true"),this.userDataManagerService.setItem("LoadActionStat","true")),this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController(),null!=o&&this.RunsetJson.RunnersColl.forEach(a=>{a.BusinessFlowsColl.forEach(l=>{l.InstanceGUID==o&&this.router.navigateByUrl(a.Seq+"/"+l.Seq)})}),e&&null!=this.RunsetJson&&this.router.navigateByUrl("/?ExecutionId="+this.RunsetJson.ExecutionId)}else null==r.response||"NotFound"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="No record found"):"0"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Account Report Service is down"):"DatabaseDown"==r.response&&(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Postgres Database is down")}):(this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController())):(this.userDataManagerService.setItem("timeFormat","seconds"),this.globalVarService.imagePath="assets/screenshots/",this.executionDataService.GetExecutionData().then(r=>{this.hideRepoLoader=!1,null!=r?(this.showReport=!0,this.RunsetJson={...r},this.initController()):this.showReport=!1}))}GetFirstActivitesReponse(e){return this.restServiceObj.GetActivitiesByParentAwait(e)}downloadImages(e){this.restServiceObj.DownloadRunsetImages(e).subscribe(n=>{console.log(n.isSuccsess)})}initController(e=null){const n=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,e);this.communicatorService.newMessage(n),this.populateRunnerDetails(),null!=this.executionStatisticComponent&&this.executionStatisticComponent.initComponents(),this.runsetDetails=[{field:"Name",value:this.RunsetJson.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.RunsetJson.StartTimeStamp,"short")},{field:"RunSet Description",value:this.RunsetJson.Description},{field:"Execution End Time",value:this.datePipe.transform(this.RunsetJson.EndTimeStamp,"short")},{field:"RunSet Run Description",value:this.RunsetJson.RunDescription},{field:"Executed by User",value:this.RunsetJson.ExecutedbyUser},{field:"Execution Duration",value:this.userDataManagerService.msToTime(this.RunsetJson.Elapsed)},{field:"Execution Status",value:this.RunsetJson.RunStatus},{field:"Executed on Machine",value:this.RunsetJson.MachineName},{field:"Run Set Execution Rate",value:this.RunsetJson.ExecutionRate+"%"},{field:"Run Set Execution Pass Rate",value:this.RunsetJson.PassRate+"%"},{field:"Environment Name",value:this.RunsetJson.Environment},{field:"Ginger Version",value:this.RunsetJson.GingerVersion}],""!==this.reportHelperService.selectedRouteLink&&(console.log("route to guid :"+this.reportHelperService.selectedRouteLink),setTimeout(()=>{this.router.navigateByUrl(this.reportHelperService.selectedRouteLink)},5e3))}setStatisticsVisiblity(e){this.showStatisticsPanel=e}populateRunnerDetails(){this.runnersData=[];for(const e of this.RunsetJson.RunnersColl){let n=new MK;for(const o of e.BusinessFlowsColl)n={Name:e.Name,Environment:e.Environment,Seq:e.Seq,GUID:e.GUID,BusinessFlowSeq:o.Seq,BusinessFlowName:o.Name,BusinessFlowDescription:o.Description,PassRate:o.PassRate,BusinessFlowExecutionStaus:o.RunStatus,BusinessFlowRunDescription:o.RunDescription,ExecutionRate:o.ExecutionRate},this.runnersData.push(n)}}getStatus(e=!0){if(null!=this.RunsetJson&&null!=this.RunsetJson.RunStatus)return this.calculatedDataService.getStatusClass(this.RunsetJson.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(HK),V(Hs),V(Ws),V(WD),V(Di),V(io),V(qD),V("environmentObj"),V(ms),V(ha),V(Co),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["runset-report"]],viewQuery:function(n,o){if(1&n&&je(Qie,5),2&n){let s;Se(s=Ee())&&(o.executionStatisticComponent=s.first)}},decls:8,vars:11,consts:[[3,"ngClass"],["class","entityName",4,"ngIf"],[3,"multiple"],["header","EXECUTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle"],[2,"font-weight","bold"],["header","EXECUTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected"],[3,"isStatisticsVisibleEvent"],["exeStatistics",""],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data","fieldsLinksArr","statusFieldName","boldAndCenterFields"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zie,5,4,"h4",1),x(2,"p-accordion",2),g(3,Yie,2,2,"p-accordionTab",3),g(4,Xie,3,1,"p-accordionTab",4),g(5,eoe,2,7,"p-accordionTab",5),A()(),g(6,toe,2,0,"div",6),g(7,noe,2,1,"p",7)),2&n&&(d("ngClass",mt(8,ioe,!1===o.showReport,!0===o.showReport)),h(1),d("ngIf",o.RunsetJson),h(1),d("multiple",!0),h(1),d("ngIf",null!=o.runsetDetails&&o.runsetDetails.length>0),h(1),d("ngIf",1==o.showStatisticsPanel),h(1),d("ngIf",o.runnersData.length>0),h(1),d("ngIf",o.hideRepoLoader),h(1),d("ngIf",0==o.showReport&&0==o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,LG,Is],styles:[".lables[_ngcontent-%COMP%]{font-weight:700}.loader[_ngcontent-%COMP%]{position:absolute;top:40%;left:40%;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #0066b2;width:40px;height:40px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return t})(),Mk=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"dashboard"],[1,"ui-m"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),le(2,"runset-report"),A()())},dependencies:[ooe],encapsulation:2})}return t})();const soe=function(){return["NumberOfActions"]};let EC=(()=>{class t{constructor(){}ngOnInit(){this.activitiesCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group Name"},{field:"Name",header:"Activity Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"RunStatus",header:"Execution Status"},{field:"NumberOfActions",header:"Number Of Actions"},{field:"ExecutionRate",header:"Actions Execution Rate"},{field:"PassRate",header:"Actions Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activities-table"]],inputs:{activities:"activities",activitiesGroups:"activitiesGroups",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.activitiesCols)("data",o.activities)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,soe))},dependencies:[Is]})}return t})();const roe=function(){return["CurrentRetryIteration","NumberOfActions"]};let Ok=(()=>{class t{constructor(){}ngOnInit(){this.actionsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Action Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"ActionType",header:"Action Type"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"CurrentRetryIteration",header:"Current Retry Iteration"},{field:"RunStatus",header:"Execution Status"},{field:"Error",header:"Error Details"},{field:"ExInfo",header:"Extra Details"},{field:"Screenshots",header:"Screenshot"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-actions-table"]],inputs:{actions:"actions",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",activitySeq:"activitySeq"},decls:1,vars:9,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields","activitySeq"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.actionsCols)("data",o.actions)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(8,roe))("activitySeq",o.activitySeq)},dependencies:[Is]})}return t})();function Ys(){}const aoe=function(){let t=0;return function(){return t++}}();function tn(t){return null===t||typeof t>"u"}function kn(t){if(Array.isArray&&Array.isArray(t))return!0;const i=Object.prototype.toString.call(t);return"[object"===i.slice(0,7)&&"Array]"===i.slice(-6)}function qt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Po(t,i){return ti(t)?t:i}function Nt(t,i){return typeof t>"u"?i:t}const Lk=(t,i)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*i:+t;function Mn(t,i,e){if(t&&"function"==typeof t.call)return t.apply(e,i)}function _n(t,i,e,n){let o,s,r;if(kn(t))if(s=t.length,n)for(o=s-1;o>=0;o--)i.call(e,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function Pr(t,i){return(Fk[i]||(Fk[i]=function doe(t){const i=function poe(t){const i=t.split("."),e=[];let n="";for(const o of i)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}(t);return e=>{for(const n of i){if(""===n)break;e=e&&e[n]}return e}}(i)))(t)}function DC(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Fo=t=>typeof t<"u",Fr=t=>"function"==typeof t,Rk=(t,i)=>{if(t.size!==i.size)return!1;for(const e of t)if(!i.has(e))return!1;return!0},Vn=Math.PI,Cn=2*Vn,foe=Cn+Vn,wf=Number.POSITIVE_INFINITY,goe=Vn/180,Qn=Vn/2,Uu=Vn/4,Nk=2*Vn/3,Ro=Math.log10,Cs=Math.sign;function Vk(t){const i=Math.round(t);t=$u(t,i,t/1e3)?i:t;const e=Math.pow(10,Math.floor(Ro(t))),n=t/e;return(n<=1?1:n<=2?2:n<=5?5:10)*e}function Gl(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $u(t,i,e){return Math.abs(t-i)l&&c=Math.min(i,e)-n&&t<=Math.max(i,e)+n}function OC(t,i,e){e=e||(r=>t[r]1;)s=o+n>>1,e(s)?o=s:n=s;return{lo:o,hi:n}}const Js=(t,i,e,n)=>OC(t,e,n?o=>t[o][i]<=e:o=>t[o][i]OC(t,e,n=>t[n][i]>=e),jk=["push","pop","shift","splice","unshift"];function Uk(t,i){const e=t._chartjs;if(!e)return;const n=e.listeners,o=n.indexOf(i);-1!==o&&n.splice(o,1),!(n.length>0)&&(jk.forEach(s=>{delete t[s]}),delete t._chartjs)}function $k(t){const i=new Set;let e,n;for(e=0,n=t.length;e"u"?function(t){return t()}:window.requestAnimationFrame;function Gk(t,i,e){const n=e||(r=>Array.prototype.slice.call(r));let o=!1,s=[];return function(...r){s=n(r),o||(o=!0,Kk.call(window,()=>{o=!1,t.apply(i,s)}))}}const LC=t=>"start"===t?"left":"end"===t?"right":"center",Li=(t,i,e)=>"start"===t?i:"end"===t?e:(i+e)/2;function qk(t,i,e){const n=i.length;let o=0,s=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:u,minDefined:p,maxDefined:m}=r.getUserBounds();p&&(o=pi(Math.min(Js(a,r.axis,c).lo,e?n:Js(i,l,r.getPixelForValue(c)).lo),0,n-1)),s=m?pi(Math.max(Js(a,r.axis,u,!0).hi+1,e?0:Js(i,l,r.getPixelForValue(u),!0).hi+1),o,n)-o:n-o}return{start:o,count:s}}function Wk(t){const{xScale:i,yScale:e,_scaleRanges:n}=t,o={xmin:i.min,xmax:i.max,ymin:e.min,ymax:e.max};if(!n)return t._scaleRanges=o,!0;const s=n.xmin!==i.min||n.xmax!==i.max||n.ymin!==e.min||n.ymax!==e.max;return Object.assign(n,o),s}const Tf=t=>0===t||1===t,Qk=(t,i,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-i)*Cn/e),Zk=(t,i,e)=>Math.pow(2,-10*t)*Math.sin((t-i)*Cn/e)+1,Gu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Qn),easeOutSine:t=>Math.sin(t*Qn),easeInOutSine:t=>-.5*(Math.cos(Vn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Tf(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Tf(t)?t:Qk(t,.075,.3),easeOutElastic:t=>Tf(t)?t:Zk(t,.075,.3),easeInOutElastic:t=>Tf(t)?t:t<.5?.5*Qk(2*t,.1125,.45):.5+.5*Zk(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let i=1.70158;return(t/=.5)<1?t*t*((1+(i*=1.525))*t-i)*.5:.5*((t-=2)*t*((1+(i*=1.525))*t+i)+2)},easeInBounce:t=>1-Gu.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*Gu.easeInBounce(2*t):.5*Gu.easeOutBounce(2*t-1)+.5};function qu(t){return t+.5|0}const Rr=(t,i,e)=>Math.max(Math.min(t,e),i);function Wu(t){return Rr(qu(2.55*t),0,255)}function Nr(t){return Rr(qu(255*t),0,255)}function er(t){return Rr(qu(t/2.55)/100,0,1)}function Yk(t){return Rr(qu(100*t),0,100)}const No={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},PC=[..."0123456789ABCDEF"],woe=t=>PC[15&t],Toe=t=>PC[(240&t)>>4]+PC[15&t],Sf=t=>(240&t)>>4==(15&t);const Moe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Xk(t,i,e){const n=i*Math.min(e,1-e),o=(s,r=(s+t/30)%12)=>e-n*Math.max(Math.min(r-3,9-r,1),-1);return[o(0),o(8),o(4)]}function Ooe(t,i,e){const n=(o,s=(o+t/60)%6)=>e-e*i*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Loe(t,i,e){const n=Xk(t,1,.5);let o;for(i+e>1&&(o=1/(i+e),i*=o,e*=o),o=0;o<3;o++)n[o]*=1-i-e,n[o]+=i;return n}function FC(t){const e=t.r/255,n=t.g/255,o=t.b/255,s=Math.max(e,n,o),r=Math.min(e,n,o),a=(s+r)/2;let l,c,u;return s!==r&&(u=s-r,c=a>.5?u/(2-s-r):u/(s+r),l=function Poe(t,i,e,n,o){return t===o?(i-e)/n+(it<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,ql=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Df(t,i,e){if(t){let n=FC(t);n[i]=Math.max(0,Math.min(n[i]+n[i]*e,0===i?360:1)),n=NC(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function n3(t,i){return t&&Object.assign(i||{},t)}function o3(t){var i={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(i={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(i.a=Nr(t[3]))):(i=n3(t,{r:0,g:0,b:0,a:1})).a=Nr(i.a),i}function Goe(t){return"r"===t.charAt(0)?function Uoe(t){const i=joe.exec(t);let n,o,s,e=255;if(i){if(i[7]!==n){const r=+i[7];e=i[8]?Wu(r):Rr(255*r,0,255)}return n=+i[1],o=+i[3],s=+i[5],n=255&(i[2]?Wu(n):Rr(n,0,255)),o=255&(i[4]?Wu(o):Rr(o,0,255)),s=255&(i[6]?Wu(s):Rr(s,0,255)),{r:n,g:o,b:s,a:e}}}(t):function Noe(t){const i=Moe.exec(t);let n,e=255;if(!i)return;i[5]!==n&&(e=i[6]?Wu(+i[5]):Nr(+i[5]));const o=Jk(+i[2]),s=+i[3]/100,r=+i[4]/100;return n="hwb"===i[1]?function Foe(t,i,e){return RC(Loe,t,i,e)}(o,s,r):"hsv"===i[1]?function Roe(t,i,e){return RC(Ooe,t,i,e)}(o,s,r):NC(o,s,r),{r:n[0],g:n[1],b:n[2],a:e}}(t)}class kf{constructor(i){if(i instanceof kf)return i;const e=typeof i;let n;"object"===e?n=o3(i):"string"===e&&(n=function Eoe(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*No[t[1]],g:255&17*No[t[2]],b:255&17*No[t[3]],a:5===i?17*No[t[4]]:255}:(7===i||9===i)&&(e={r:No[t[1]]<<4|No[t[2]],g:No[t[3]]<<4|No[t[4]],b:No[t[5]]<<4|No[t[6]],a:9===i?No[t[7]]<<4|No[t[8]]:255})),e}(i)||function zoe(t){Ef||(Ef=function Hoe(){const t={},i=Object.keys(t3),e=Object.keys(e3);let n,o,s,r,a;for(n=0;n>16&255,s>>8&255,255&s]}return t}(),Ef.transparent=[0,0,0,0]);const i=Ef[t.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255}}(i)||Goe(i)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var i=n3(this._rgb);return i&&(i.a=er(i.a)),i}set rgb(i){this._rgb=o3(i)}rgbString(){return this._valid?function $oe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${er(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function koe(t){var i=(t=>Sf(t.r)&&Sf(t.g)&&Sf(t.b)&&Sf(t.a))(t)?woe:Toe;return t?"#"+i(t.r)+i(t.g)+i(t.b)+((t,i)=>t<255?i(t):"")(t.a,i):void 0}(this._rgb):void 0}hslString(){return this._valid?function Boe(t){if(!t)return;const i=FC(t),e=i[0],n=Yk(i[1]),o=Yk(i[2]);return t.a<255?`hsla(${e}, ${n}%, ${o}%, ${er(t.a)})`:`hsl(${e}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(i,e){if(i){const n=this.rgb,o=i.rgb;let s;const r=e===s?.5:e,a=2*r-1,l=n.a-o.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,n.r=255&c*n.r+s*o.r+.5,n.g=255&c*n.g+s*o.g+.5,n.b=255&c*n.b+s*o.b+.5,n.a=r*n.a+(1-r)*o.a,this.rgb=n}return this}interpolate(i,e){return i&&(this._rgb=function Koe(t,i,e){const n=ql(er(t.r)),o=ql(er(t.g)),s=ql(er(t.b));return{r:Nr(VC(n+e*(ql(er(i.r))-n))),g:Nr(VC(o+e*(ql(er(i.g))-o))),b:Nr(VC(s+e*(ql(er(i.b))-s))),a:t.a+e*(i.a-t.a)}}(this._rgb,i._rgb,e)),this}clone(){return new kf(this.rgb)}alpha(i){return this._rgb.a=Nr(i),this}clearer(i){return this._rgb.a*=1-i,this}greyscale(){const i=this._rgb,e=qu(.3*i.r+.59*i.g+.11*i.b);return i.r=i.g=i.b=e,this}opaquer(i){return this._rgb.a*=1+i,this}negate(){const i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Df(this._rgb,2,i),this}darken(i){return Df(this._rgb,2,-i),this}saturate(i){return Df(this._rgb,1,i),this}desaturate(i){return Df(this._rgb,1,-i),this}rotate(i){return function Voe(t,i){var e=FC(t);e[0]=Jk(e[0]+i),e=NC(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,i),this}}function s3(t){return new kf(t)}function r3(t){if(t&&"object"==typeof t){const i=t.toString();return"[object CanvasPattern]"===i||"[object CanvasGradient]"===i}return!1}function a3(t){return r3(t)?t:s3(t)}function BC(t){return r3(t)?t:s3(t).saturate(.5).darken(.1).hexString()}const ma=Object.create(null),HC=Object.create(null);function Qu(t,i){if(!i)return t;const e=i.split(".");for(let n=0,o=e.length;ne.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,n)=>BC(n.backgroundColor),this.hoverBorderColor=(e,n)=>BC(n.borderColor),this.hoverColor=(e,n)=>BC(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i)}set(i,e){return zC(this,i,e)}get(i){return Qu(this,i)}describe(i,e){return zC(HC,i,e)}override(i,e){return zC(ma,i,e)}route(i,e,n,o){const s=Qu(this,i),r=Qu(this,n),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[o];return qt(l)?Object.assign({},c,l):Nt(l,c)},set(l){this[a]=l}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Mf(t,i,e,n,o){let s=i[o];return s||(s=i[o]=t.measureText(o).width,e.push(o)),s>n&&(n=s),n}function Qoe(t,i,e,n){let o=(n=n||{}).data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==i&&(o=n.data={},s=n.garbageCollect=[],n.font=i),t.save(),t.font=i;let r=0;const a=e.length;let l,c,u,p,m;for(l=0;le.length){for(l=0;l<_;l++)delete o[s[l]];s.splice(0,_)}return r}function _a(t,i,e){const n=t.currentDevicePixelRatio,o=0!==e?Math.max(e/2,.5):0;return Math.round((i-o)*n)/n+o}function l3(t,i){(i=i||t.getContext("2d")).save(),i.resetTransform(),i.clearRect(0,0,t.width,t.height),i.restore()}function jC(t,i,e,n){c3(t,i,e,n,null)}function c3(t,i,e,n,o){let s,r,a,l,c,u;const p=i.pointStyle,m=i.rotation,_=i.radius;let b=(m||0)*goe;if(p&&"object"==typeof p&&(s=p.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(e,n),t.rotate(b),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(_)||_<=0)){switch(t.beginPath(),p){default:o?t.ellipse(e,n,o/2,_,0,0,Cn):t.arc(e,n,_,0,Cn),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),t.closePath();break;case"rectRounded":c=.516*_,l=_-c,r=Math.cos(b+Uu)*l,a=Math.sin(b+Uu)*l,t.arc(e-r,n-a,c,b-Vn,b-Qn),t.arc(e+a,n-r,c,b-Qn,b),t.arc(e+r,n+a,c,b,b+Qn),t.arc(e-a,n+r,c,b+Qn,b+Vn),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*_,u=o?o/2:l,t.rect(e-u,n-l,2*u,2*l);break}b+=Uu;case"rectRot":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+a,n-r),t.lineTo(e+r,n+a),t.lineTo(e-a,n+r),t.closePath();break;case"crossRot":b+=Uu;case"cross":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"star":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r),b+=Uu,r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"line":r=o?o/2:Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(b)*_,n+Math.sin(b)*_)}t.fill(),i.borderWidth>0&&t.stroke()}}function Zu(t,i,e){return e=e||.5,!i||t&&t.x>i.left-e&&t.xi.top-e&&t.y0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=o.string,function Xoe(t,i){i.translation&&t.translate(i.translation[0],i.translation[1]),tn(i.rotation)||t.rotate(i.rotation),i.color&&(t.fillStyle=i.color),i.textAlign&&(t.textAlign=i.textAlign),i.textBaseline&&(t.textBaseline=i.textBaseline)}(t,s),l=0;l+t||0;function UC(t,i){const e={},n=qt(i),o=n?Object.keys(i):i,s=qt(t)?n?r=>Nt(t[r],t[i[r]]):r=>t[r]:()=>t;for(const r of o)e[r]=ise(s(r));return e}function u3(t){return UC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ca(t){return UC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Pi(t){const i=u3(t);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ui(t,i){let e=Nt((t=t||{}).size,(i=i||Qt.font).size);"string"==typeof e&&(e=parseInt(e,10));let n=Nt(t.style,i.style);n&&!(""+n).match(tse)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const o={family:Nt(t.family,i.family),lineHeight:nse(Nt(t.lineHeight,i.lineHeight),e),size:e,style:n,weight:Nt(t.weight,i.weight),string:""};return o.string=function Woe(t){return!t||tn(t.size)||tn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Xu(t,i,e,n){let s,r,a,o=!0;for(s=0,r=t.length;st[0])){Fo(n)||(n=g3("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:e,_fallback:n,_getTarget:o,override:r=>$C([r,...t],i,e,n)};return new Proxy(s,{deleteProperty:(r,a)=>(delete r[a],delete r._keys,delete t[0][a],!0),get:(r,a)=>p3(r,a,()=>function pse(t,i,e,n){let o;for(const s of i)if(o=g3(sse(s,t),e),Fo(o))return KC(t,o)?GC(e,n,t,o):o}(a,i,t,r)),getOwnPropertyDescriptor:(r,a)=>Reflect.getOwnPropertyDescriptor(r._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(r,a)=>m3(r).includes(a),ownKeys:r=>m3(r),set(r,a,l){const c=r._storage||(r._storage=o());return r[a]=c[a]=l,delete r._keys,!0}})}function Wl(t,i,e,n){const o={_cacheable:!1,_proxy:t,_context:i,_subProxy:e,_stack:new Set,_descriptors:d3(t,n),setContext:s=>Wl(t,s,e,n),override:s=>Wl(t.override(s),i,e,n)};return new Proxy(o,{deleteProperty:(s,r)=>(delete s[r],delete t[r],!0),get:(s,r,a)=>p3(s,r,()=>function rse(t,i,e){const{_proxy:n,_context:o,_subProxy:s,_descriptors:r}=t;let a=n[i];return Fr(a)&&r.isScriptable(i)&&(a=function ase(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_stack:a}=e;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),i=i(s,r||n),a.delete(t),KC(t,i)&&(i=GC(o._scopes,o,t,i)),i}(i,a,t,e)),kn(a)&&a.length&&(a=function lse(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_descriptors:a}=e;if(Fo(s.index)&&n(t))i=i[s.index%i.length];else if(qt(i[0])){const l=i,c=o._scopes.filter(u=>u!==l);i=[];for(const u of l){const p=GC(c,o,t,u);i.push(Wl(p,s,r&&r[t],a))}}return i}(i,a,t,r.isIndexable)),KC(i,a)&&(a=Wl(a,o,s&&s[i],r)),a}(s,r,a)),getOwnPropertyDescriptor:(s,r)=>s._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(s,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(s,r,a)=>(t[r]=a,delete s[r],!0)})}function d3(t,i={scriptable:!0,indexable:!0}){const{_scriptable:e=i.scriptable,_indexable:n=i.indexable,_allKeys:o=i.allKeys}=t;return{allKeys:o,scriptable:e,indexable:n,isScriptable:Fr(e)?e:()=>e,isIndexable:Fr(n)?n:()=>n}}const sse=(t,i)=>t?t+DC(i):i,KC=(t,i)=>qt(i)&&"adapters"!==t&&(null===Object.getPrototypeOf(i)||i.constructor===Object);function p3(t,i,e){if(Object.prototype.hasOwnProperty.call(t,i))return t[i];const n=e();return t[i]=n,n}function h3(t,i,e){return Fr(t)?t(i,e):t}const cse=(t,i)=>!0===t?i:"string"==typeof t?Pr(i,t):void 0;function use(t,i,e,n,o){for(const s of i){const r=cse(e,s);if(r){t.add(r);const a=h3(r._fallback,e,o);if(Fo(a)&&a!==e&&a!==n)return a}else if(!1===r&&Fo(n)&&e!==n)return null}return!1}function GC(t,i,e,n){const o=i._rootScopes,s=h3(i._fallback,e,n),r=[...t,...o],a=new Set;a.add(n);let l=f3(a,r,e,s||e,n);return!(null===l||Fo(s)&&s!==e&&(l=f3(a,r,s,l,n),null===l))&&$C(Array.from(a),[""],o,s,()=>function dse(t,i,e){const n=t._getTarget();i in n||(n[i]={});const o=n[i];return kn(o)&&qt(e)?e:o}(i,e,n))}function f3(t,i,e,n,o){for(;e;)e=use(t,i,e,n,o);return e}function g3(t,i){for(const e of i){if(!e)continue;const n=e[t];if(Fo(n))return n}}function m3(t){let i=t._keys;return i||(i=t._keys=function hse(t){const i=new Set;for(const e of t)for(const n of Object.keys(e).filter(o=>!o.startsWith("_")))i.add(n);return Array.from(i)}(t._scopes)),i}function _3(t,i,e,n){const{iScale:o}=t,{key:s="r"}=this._parsing,r=new Array(n);let a,l,c,u;for(a=0,l=n;ai"x"===t?"y":"x";function gse(t,i,e,n){const o=t.skip?i:t,s=i,r=e.skip?i:e,a=MC(s,o),l=MC(r,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const p=n*c,m=n*u;return{previous:{x:s.x-p*(r.x-o.x),y:s.y-p*(r.y-o.y)},next:{x:s.x+m*(r.x-o.x),y:s.y+m*(r.y-o.y)}}}function Pf(t,i,e){return Math.max(Math.min(t,e),i)}function vse(t,i,e,n,o){let s,r,a,l;if(i.spanGaps&&(t=t.filter(c=>!c.skip)),"monotone"===i.cubicInterpolationMode)!function Ise(t,i="x"){const e=I3(i),n=t.length,o=Array(n).fill(0),s=Array(n);let r,a,l,c=Ql(t,0);for(r=0;rwindow.getComputedStyle(t,null),yse=["top","right","bottom","left"];function va(t,i,e){const n={};e=e?"-"+e:"";for(let o=0;o<4;o++){const s=yse[o];n[s]=parseFloat(t[i+"-"+s+e])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const xse=(t,i,e)=>(t>0||i>0)&&(!e||!e.shadowRoot);function ba(t,i){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:n}=i,o=Rf(e),s="border-box"===o.boxSizing,r=va(o,"padding"),a=va(o,"border","width"),{x:l,y:c,box:u}=function Ase(t,i){const e=t.touches,n=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=n;let a,l,r=!1;if(xse(o,s,t.target))a=o,l=s;else{const c=i.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,r=!0}return{x:a,y:l,box:r}}(t,e),p=r.left+(u&&a.left),m=r.top+(u&&a.top);let{width:_,height:b}=i;return s&&(_-=r.width+a.width,b-=r.height+a.height),{x:Math.round((l-p)/_*e.width/n),y:Math.round((c-m)/b*e.height/n)}}const WC=t=>Math.round(10*t)/10;function v3(t,i,e){const n=i||1,o=Math.floor(t.height*n),s=Math.floor(t.width*n);t.height=o/n,t.width=s/n;const r=t.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==o||r.width!==s)&&(t.currentDevicePixelRatio=n,r.height=o,r.width=s,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Sse=function(){let t=!1;try{const i={get passive(){return t=!0,!1}};window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return t}();function b3(t,i){const e=function bse(t,i){return Rf(t).getPropertyValue(i)}(t,i),n=e&&e.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ya(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:t.y+e*(i.y-t.y)}}function Ese(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:"middle"===n?e<.5?t.y:i.y:"after"===n?e<1?t.y:i.y:e>0?i.y:t.y}}function Dse(t,i,e,n){const o={x:t.cp2x,y:t.cp2y},s={x:i.cp1x,y:i.cp1y},r=ya(t,o,e),a=ya(o,s,e),l=ya(s,i,e),c=ya(r,a,e),u=ya(a,l,e);return ya(c,u,e)}const y3=new Map;function Ju(t,i,e){return function kse(t,i){i=i||{};const e=t+JSON.stringify(i);let n=y3.get(e);return n||(n=new Intl.NumberFormat(t,i),y3.set(e,n)),n}(i,e).format(t)}function Zl(t,i,e){return t?function(t,i){return{x:e=>t+t+i-e,setWidth(e){i=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(i,e):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,i)=>t+i,leftForLtr:(t,i)=>t}}function x3(t,i){let e,n;("ltr"===i||"rtl"===i)&&(e=t.canvas.style,n=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",i,"important"),t.prevTextDirection=n)}function A3(t,i){void 0!==i&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",i[0],i[1]))}function w3(t){return"angle"===t?{between:Ku,compare:Ioe,normalize:vo}:{between:Xs,compare:(i,e)=>i-e,normalize:i=>i}}function T3({start:t,end:i,count:e,loop:n,style:o}){return{start:t%e,end:i%e,loop:n&&(i-t+1)%e==0,style:o}}function S3(t,i,e){if(!e)return[t];const{property:n,start:o,end:s}=e,r=i.length,{compare:a,between:l,normalize:c}=w3(n),{start:u,end:p,loop:m,style:_}=function Lse(t,i,e){const{property:n,start:o,end:s}=e,{between:r,normalize:a}=w3(n),l=i.length;let m,_,{start:c,end:u,loop:p}=t;if(p){for(c+=l,u+=l,m=0,_=l;m<_&&r(a(i[c%l][n]),o,s);++m)c--,u--;c%=l,u%=l}return ua({chart:i,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Kk.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let e=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const s=n.items;let l,r=s.length-1,a=!1;for(;r>=0;--r)l=s[r],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(i),a=!0):(s[r]=s[s.length-1],s.pop());a&&(o.draw(),this._notify(o,n,i,"progress")),s.length||(n.running=!1,this._notify(o,n,i,"complete"),n.initial=!1),e+=s.length}),this._lastDate=i,0===e&&(this._running=!1)}_getAnims(i){const e=this._charts;let n=e.get(i);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(i,n)),n}listen(i,e,n){this._getAnims(i).listeners[e].push(n)}add(i,e){!e||!e.length||this._getAnims(i).items.push(...e)}has(i){return this._getAnims(i).items.length>0}start(i){const e=this._charts.get(i);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(i){if(!this._running)return!1;const e=this._charts.get(i);return!(!e||!e.running||!e.items.length)}stop(i){const e=this._charts.get(i);if(!e||!e.items.length)return;const n=e.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();e.items=[],this._notify(i,e,Date.now(),"complete")}remove(i){return this._charts.delete(i)}};const M3="transparent",Hse={boolean:(t,i,e)=>e>.5?i:t,color(t,i,e){const n=a3(t||M3),o=n.valid&&a3(i||M3);return o&&o.valid?o.mix(n,e).hexString():i},number:(t,i,e)=>t+(i-t)*e};class zse{constructor(i,e,n,o){const s=e[n];o=Xu([i.to,o,s,i.from]);const r=Xu([i.from,s,o]);this._active=!0,this._fn=i.fn||Hse[i.type||typeof r],this._easing=Gu[i.easing]||Gu.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=e,this._prop=n,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(i,e,n){if(this._active){this._notify(!1);const o=this._target[this._prop],s=n-this._start,r=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=s,this._loop=!!i.loop,this._to=Xu([i.to,e,o,i.from]),this._from=Xu([i.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){const e=i-this._start,n=this._duration,o=this._prop,s=this._from,r=this._loop,a=this._to;let l;if(this._active=s!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,a,l))}wait(){const i=this._promises||(this._promises=[]);return new Promise((e,n)=>{i.push({res:e,rej:n})})}_notify(i){const e=i?"res":"rej",n=this._promises||[];for(let o=0;o"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Qt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Qt.describe("animations",{_fallback:"animation"}),Qt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class O3{constructor(i,e){this._chart=i,this._properties=new Map,this.configure(e)}configure(i){if(!qt(i))return;const e=this._properties;Object.getOwnPropertyNames(i).forEach(n=>{const o=i[n];if(!qt(o))return;const s={};for(const r of $se)s[r]=o[r];(kn(o.properties)&&o.properties||[n]).forEach(r=>{(r===n||!e.has(r))&&e.set(r,s)})})}_animateOptions(i,e){const n=e.options,o=function Gse(t,i){if(!i)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=i}(i,n);if(!o)return[];const s=this._createAnimations(o,n);return n.$shared&&function Kse(t,i){const e=[],n=Object.keys(i);for(let o=0;o{i.options=n},()=>{}),s}_createAnimations(i,e){const n=this._properties,o=[],s=i.$animations||(i.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(i,e));continue}const u=e[c];let p=s[c];const m=n.get(c);if(p){if(m&&p.active()){p.update(m,u,a);continue}p.cancel()}m&&m.duration?(s[c]=p=new zse(m,i,c,u),o.push(p)):i[c]=u}return o}update(i,e){if(0===this._properties.size)return void Object.assign(i,e);const n=this._createAnimations(i,e);return n.length?(tr.add(this._chart,n),!0):void 0}}function L3(t,i){const e=t&&t.options||{},n=e.reverse,o=void 0===e.min?i:0,s=void 0===e.max?i:0;return{start:n?s:o,end:n?o:s}}function P3(t,i){const e=[],n=t._getSortedDatasetMetas(i);let o,s;for(o=0,s=n.length;o0||!e&&s<0)return o.index}return null}function V3(t,i){const{chart:e,_cachedMeta:n}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:r,index:a}=n,l=s.axis,c=r.axis,u=function Zse(t,i,e){return`${t.id}.${i.id}.${e.stack||e.type}`}(s,r,n),p=i.length;let m;for(let _=0;_e[n].axis===i).shift()}function ed(t,i){const e=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){i=i||t._parsed;for(const o of i){const s=o._stacks;if(!s||void 0===s[n]||void 0===s[n][e])return;delete s[n][e]}}}const ZC=t=>"reset"===t||"none"===t,B3=(t,i)=>i?t:Object.assign({},t);let vs=(()=>{class t{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=R3(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&ed(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),s=(m,_,b,E)=>"x"===m?_:"r"===m?E:b,r=n.xAxisID=Nt(o.xAxisID,QC(e,"x")),a=n.yAxisID=Nt(o.yAxisID,QC(e,"y")),l=n.rAxisID=Nt(o.rAxisID,QC(e,"r")),c=n.indexAxis,u=n.iAxisID=s(c,r,a,l),p=n.vAxisID=s(c,a,r,l);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Uk(this._data,this),e._stacked&&ed(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(qt(n))this._data=function Qse(t){const i=Object.keys(t),e=new Array(i.length);let n,o,s;for(n=0,o=i.length;n{const n="_onData"+DC(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){const r=o.apply(this,s);return t._chartjs.listeners.forEach(a=>{"function"==typeof a[n]&&a[n](...s)}),r}})}))}(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=R3(n.vScale,n),n.stack!==o.stack&&(s=!0,ed(n),n.stack=o.stack),this._resyncElements(e),(s||r!==n._stacked)&&V3(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:s}=this,{iScale:r,_stacked:a}=o,l=r.axis;let p,m,_,c=0===e&&n===s.length||o._sorted,u=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=s,o._sorted=!0,_=s;else{_=kn(s[e])?this.parseArrayData(o,s,e,n):qt(s[e])?this.parseObjectData(o,s,e,n):this.parsePrimitiveData(o,s,e,n);const b=()=>null===m[l]||u&&m[l]t&&!i.hidden&&i._stacked&&{keys:P3(this.chart,!0),values:null})(n,o),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:m}=function Yse(t){const{min:i,max:e,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?i:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}(l);let _,b;function E(){b=s[_];const P=b[l.axis];return!ti(b[e.axis])||p>P||m=0;--_)if(!E()){this.updateRangeFromParsed(u,e,b,c);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let s,r,a;for(s=0,r=n.length;s=0&&ethis.getContext(o,s),m);return P.$shared&&(P.$shared=c,r[a]=Object.freeze(B3(P,c))),P}_resolveAnimations(e,n,o){const s=this.chart,r=this._cachedDataOpts,a=`animation-${n}`,l=r[a];if(l)return l;let c;if(!1!==s.options.animation){const p=this.chart.config,m=p.datasetAnimationScopeKeys(this._type,n),_=p.getOptionScopes(this.getDataset(),m);c=p.createResolver(_,this.getContext(e,o,n))}const u=new O3(s,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||ZC(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(o),a=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,o),{sharedOptions:r,includeOptions:a}}updateElement(e,n,o,s){ZC(s)?Object.assign(e,o):this._resolveAnimations(n,s).update(e,o)}updateSharedOptions(e,n,o){e&&!ZC(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,o,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const s=o.length,r=n.length,a=Math.min(r,s);a&&this.parse(0,a),r>s?this._insertElements(s,r-s,e):r{for(u.length+=n,l=u.length-1;l>=a;l--)u[l]=u[l-n]};for(c(r),l=e;lo-s))}return t._cache.$bar}(i,t.type);let o,s,r,a,n=i._length;const l=()=>{32767===r||-32768===r||(Fo(a)&&(n=Math.min(n,Math.abs(r-a)||n)),a=r)};for(o=0,s=e.length;oMath.abs(a)&&(l=a,c=r),i[e.axis]=c,i._custom={barStart:l,barEnd:c,start:o,end:s,min:r,max:a}}(t,i,e,n):i[e.axis]=e.parse(t,n),i}function z3(t,i,e,n){const o=t.iScale,s=t.vScale,r=o.getLabels(),a=o===s,l=[];let c,u,p,m;for(c=e,u=e+n;ct.x,e="left",n="right"):(i=t.base{class t extends vs{parsePrimitiveData(e,n,o,s){return z3(e,n,o,s)}parseArrayData(e,n,o,s){return z3(e,n,o,s)}parseObjectData(e,n,o,s){const{iScale:r,vScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u="x"===r.axis?l:c,p="x"===a.axis?l:c,m=[];let _,b,E,P;for(_=o,b=o+s;_c.controller.options.grouped),r=o.options.stacked,a=[],l=c=>{const u=c.controller.getParsed(n),p=u&&u[c.vScale.axis];if(tn(p)||isNaN(p))return!0};for(const c of s)if((void 0===n||!l(c))&&((!1===r||-1===a.indexOf(c.stack)||void 0===r&&void 0===c.stack)&&a.push(c.stack),c.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,o){const s=this._getStacks(e,o),r=void 0!==n?s.indexOf(n):-1;return-1===r?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,s=[];let r,a;for(r=0,a=n.data.length;r=e?1:-1)}(E,n,a)*r,p===a&&(W-=E/2);const te=n.getPixelForDecimal(0),fe=n.getPixelForDecimal(1),Ce=Math.min(te,fe),ve=Math.max(te,fe);W=Math.max(Math.min(W,ve),Ce),b=W+E}if(W===n.getPixelForValue(a)){const te=Cs(E)*n.getLineWidthForValue(a)/2;W+=te,E-=te}return{size:E,base:W,head:b,center:b+E/2}}_calculateBarIndexPixels(e,n){const o=n.scale,s=this.options,r=s.skipNull,a=Nt(s.maxBarThickness,1/0);let l,c;if(n.grouped){const u=r?this._getStackCount(e):n.stackCount,p="flex"===s.barThickness?function sre(t,i,e,n){const o=i.pixels,s=o[t];let r=t>0?o[t-1]:null,a=t{class t extends vs{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,o,s){const r=super.parsePrimitiveData(e,n,o,s);for(let a=0;a=0;--o)n=Math.max(n,e[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:o,yScale:s}=n,r=this.getParsed(e),a=o.getLabelForValue(r.x),l=s.getLabelForValue(r.y),c=r._custom;return{label:n.label,value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,s),p=a.axis,m=l.axis;for(let _=n;_""}}}},t})(),$3=(()=>{class t extends vs{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=o;else{let a,l,r=c=>+o[c];if(qt(o[e])){const{key:c="value"}=this._parsing;r=u=>+Pr(o[u],c)}for(a=e,l=e+n;a"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/i)(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:p,rotation:m}=this._getRotationExtents(),{ratioX:_,ratioY:b,offsetX:E,offsetY:P}=function fre(t,i,e){let n=1,o=1,s=0,r=0;if(iKu(fe,a,l,!0)?1:Math.max(Ce,Ce*e,ve,ve*e),b=(fe,Ce,ve)=>Ku(fe,a,l,!0)?-1:Math.min(Ce,Ce*e,ve,ve*e),E=_(0,c,p),P=_(Qn,u,m),W=b(Vn,c,p),te=b(Vn+Qn,u,m);n=(E-W)/2,o=(P-te)/2,s=-(E+W)/2,r=-(P+te)/2}return{ratioX:n,ratioY:o,offsetX:s,offsetY:r}}(m,p,c),fe=Math.max(Math.min((o.width-a)/_,(o.height-a)/b)/2,0),Ce=Lk(this.options.radius,fe),ke=(Ce-Math.max(Ce*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=E*Ce,this.offsetY=P*Ce,s.total=this.calculateTotal(),this.outerRadius=Ce-ke*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-ke*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const o=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||null===s._parsed[e]||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Cn)}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,l=a.chartArea,p=(l.left+l.right)/2,m=(l.top+l.bottom)/2,_=r&&a.options.animation.animateScale,b=_?0:this.innerRadius,E=_?0:this.outerRadius,{sharedOptions:P,includeOptions:W}=this._getSharedOptions(n,s);let fe,te=this._getRotation();for(fe=0;fe0&&!isNaN(e)?Cn*(Math.abs(e)/n):0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e],o.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const o=this.chart;let s,r,a,l,c;if(!e)for(s=0,r=o.data.datasets.length;s"spacing"!==i,_indexable:i=>"spacing"!==i},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(i){let e=i.label;const n=": "+i.formattedValue;return kn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}},t})(),gre=(()=>{class t extends vs{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:s=[],_dataset:r}=n,a=this.chart._animationsDisabled;let{start:l,count:c}=qk(n,s,a);this._drawStart=l,this._drawCount=c,Wk(n)&&(l=0,c=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=s;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!a,options:u},e),this.updateElements(s,l,c,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,s),_=a.axis,b=l.axis,{spanGaps:E,segment:P}=this.options,W=Gl(E)?E:Number.POSITIVE_INFINITY,te=this.chart._animationsDisabled||r||"none"===s;let fe=n>0&&this.getParsed(n-1);for(let Ce=n;Ce0&&Math.abs(ke[_]-fe[_])>W,P&&(Pe.parsed=ke,Pe.raw=u.data[Ce]),m&&(Pe.options=p||this.resolveDataElementOptions(Ce,ve.active?"active":s)),te||this.updateElement(ve,Ce,Pe,s),fe=ke}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return o;const r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t.id="line",t.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},t.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},t})(),mre=(()=>{class t extends vs{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e].r,o.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((o,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(rn.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,o=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),l=(r-Math.max(o.cutoutPercentage?r/100*o.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,c=a.options.animation,u=this._cachedMeta.rScale,p=u.xCenter,m=u.yCenter,_=u.getIndexAngle(0)-.5*Vn;let E,b=_;const P=360/this.countVisibleElements();for(E=0;E{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,o){return this.chart.getDataVisibility(e)?Yo(this.resolveDataElementOptions(e,n).angle||o):0}}return t.id="polarArea",t.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:i=>i.chart.data.labels[i.dataIndex]+": "+i.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},t})(),_re=(()=>{class t extends $3{}return t.id="pie",t.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},t})(),Ire=(()=>{class t extends vs{getLabelAndValue(e){const n=this._cachedMeta.vScale,o=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta,o=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(o.points=s,"resize"!==e){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0),this.updateElement(o,void 0,{_loop:!0,_fullLoop:r.length===s.length,options:a},e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,o,s){const r=this._cachedMeta.rScale,a="reset"===s;for(let l=n;l{o[s]=n[s]&&n[s].active()?n[s]._to:this[s]}),o}}Xo.defaults={},Xo.defaultRoutes=void 0;const K3={values:t=>kn(t)?t:""+t,numeric(t,i,e){if(0===t)return"0";const n=this.chart.options.locale;let o,s=t;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=function Cre(t,i){let e=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const r=Ro(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ju(t,n,l)},logarithmic(t,i,e){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(Ro(t)));return 1===n||2===n||5===n?K3.numeric.call(this,t,i,e):""}};var Nf={formatters:K3};function Vf(t,i,e,n,o){const s=Nt(n,0),r=Math.min(Nt(o,t.length),t.length);let l,c,u,a=0;for(e=Math.ceil(e),o&&(l=o-n,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);ci.lineWidth,tickColor:(t,i)=>i.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Nf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Qt.route("scale.ticks","color","","color"),Qt.route("scale.grid","color","","borderColor"),Qt.route("scale.grid","borderColor","","borderColor"),Qt.route("scale.title","color","","color"),Qt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Qt.describe("scales",{_fallback:"scale"}),Qt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const G3=(t,i,e)=>"top"===i||"left"===i?t[i]+e:t[i]-e;function q3(t,i){const e=[],n=t.length/i,o=t.length;let s=0;for(;sr+a)))return l}function td(t){return t.drawTicks?t.tickLength:0}function W3(t,i){if(!t.display)return 0;const e=ui(t.font,i),n=Pi(t.padding);return(kn(t.text)?t.text.length:1)*e.lineHeight+n.height}function Mre(t,i,e){let n=LC(t);return(e&&"right"!==i||!e&&"right"===i)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class xa extends Xo{constructor(i){super(),this.id=i.id,this.type=i.type,this.options=void 0,this.ctx=i.ctx,this.chart=i.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(i){this.options=i.setContext(this.getContext()),this.axis=i.axis,this._userMin=this.parse(i.min),this._userMax=this.parse(i.max),this._suggestedMin=this.parse(i.suggestedMin),this._suggestedMax=this.parse(i.suggestedMax)}parse(i,e){return i}getUserBounds(){let{_userMin:i,_userMax:e,_suggestedMin:n,_suggestedMax:o}=this;return i=Po(i,Number.POSITIVE_INFINITY),e=Po(e,Number.NEGATIVE_INFINITY),n=Po(n,Number.POSITIVE_INFINITY),o=Po(o,Number.NEGATIVE_INFINITY),{min:Po(i,n),max:Po(e,o),minDefined:ti(i),maxDefined:ti(e)}}getMinMax(i){let r,{min:e,max:n,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:e,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;ln?n:e,n=o&&e>n?e:n,{min:Po(e,Po(n,e)),max:Po(n,Po(e,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mn(this.options.beforeUpdate,[this])}update(i,e,n){const{beginAtZero:o,grace:s,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function ose(t,i,e){const{min:n,max:o}=t,s=Lk(i,(o-n)/2),r=(a,l)=>e&&0===a?0:a+l;return{min:r(n,-Math.abs(s)),max:r(o,s)}}(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=an)return function Are(t,i,e,n){let r,o=0,s=e[0];for(n=Math.ceil(n),r=0;ro-s).pop(),i}(n);for(let r=0,a=s.length-1;ro)return l}return Math.max(o,1)}(o,i,n);if(s>0){let u,p;const m=s>1?Math.round((a-r)/(s-1)):null;for(Vf(i,l,c,tn(m)?0:r-m,r),u=0,p=s-1;u=s||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const u=this._getLabelSizes(),p=u.widest.width,m=u.highest.height,_=pi(this.chart.width-p,0,this.maxWidth);a=i.offset?this.maxWidth/n:_/(n-1),p+6>a&&(a=_/(n-(i.offset?.5:1)),l=this.maxHeight-td(i.grid)-e.padding-W3(i.title,this.chart.options.font),c=Math.sqrt(p*p+m*m),r=kC(Math.min(Math.asin(pi((u.highest.height+6)/a,-1,1)),Math.asin(pi(l/c,-1,1))-Math.asin(pi(m/c,-1,1)))),r=Math.max(o,Math.min(s,r))),this.labelRotation=r}afterCalculateLabelRotation(){Mn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mn(this.options.beforeFit,[this])}fit(){const i={width:0,height:0},{chart:e,options:{ticks:n,title:o,grid:s}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=W3(o,e.options.font);if(a?(i.width=this.maxWidth,i.height=td(s)+l):(i.height=this.maxHeight,i.width=td(s)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:p,highest:m}=this._getLabelSizes(),_=2*n.padding,b=Yo(this.labelRotation),E=Math.cos(b),P=Math.sin(b);a?i.height=Math.min(this.maxHeight,i.height+(n.mirror?0:P*p.width+E*m.height)+_):i.width=Math.min(this.maxWidth,i.width+(n.mirror?0:E*p.width+P*m.height)+_),this._calculatePadding(c,u,P,E)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,e,n,o){const{ticks:{align:s,padding:r},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,_=0;l?c?(m=o*i.width,_=n*e.height):(m=n*i.height,_=o*e.width):"start"===s?_=e.width:"end"===s?m=i.width:"inner"!==s&&(m=i.width/2,_=e.width/2),this.paddingLeft=Math.max((m-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((_-p+r)*this.width/(this.width-p),0)}else{let u=e.height/2,p=i.height/2;"start"===s?(u=0,p=i.height):"end"===s&&(u=e.height,p=0),this.paddingTop=u+r,this.paddingBottom=p+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mn(this.options.afterFit,[this])}isHorizontal(){const{axis:i,position:e}=this.options;return"top"===e||"bottom"===e||"x"===i}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(i),e=0,n=i.length;e{const n=e.gc,o=n.length/2;let s;if(o>i){for(s=0;s({width:s[Pe]||0,height:r[Pe]||0});return{first:ke(0),last:ke(e-1),widest:ke(Ce),highest:ke(ve),widths:s,heights:r}}getLabelForValue(i){return i}getPixelForValue(i,e){return NaN}getValueForPixel(i){}getPixelForTick(i){const e=this.ticks;return i<0||i>e.length-1?null:this.getPixelForValue(e[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);const e=this._startPixel+i*this._length;return function Coe(t){return pi(t,-32768,32767)}(this._alignToPixels?_a(this.chart,e,0):e)}getDecimalForPixel(i){const e=(i-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:i,max:e}=this;return i<0&&e<0?e:i>0&&e>0?i:0}getContext(i){const e=this.ticks||[];if(i>=0&&ia*o?a/n:l/o:l*o0}_computeGridLineItems(i){const e=this.axis,n=this.chart,o=this.options,{grid:s,position:r}=o,a=s.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),p=td(s),m=[],_=s.setContext(this.getContext()),b=_.drawBorder?_.borderWidth:0,E=b/2,P=function(wt){return _a(n,wt,b)};let W,te,fe,Ce,ve,ke,Pe,$e,Ke,pt,jt,Vt;if("top"===r)W=P(this.bottom),ke=this.bottom-p,$e=W-E,pt=P(i.top)+E,Vt=i.bottom;else if("bottom"===r)W=P(this.top),pt=i.top,Vt=P(i.bottom)-E,ke=W+E,$e=this.top+p;else if("left"===r)W=P(this.right),ve=this.right-p,Pe=W-E,Ke=P(i.left)+E,jt=i.right;else if("right"===r)W=P(this.left),Ke=i.left,jt=P(i.right)-E,ve=W+E,Pe=this.left+p;else if("x"===e){if("center"===r)W=P((i.top+i.bottom)/2+.5);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}pt=i.top,Vt=i.bottom,ke=W+E,$e=ke+p}else if("y"===e){if("center"===r)W=P((i.left+i.right)/2);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}ve=W-E,Pe=ve-p,Ke=i.left,jt=i.right}const vn=Nt(o.ticks.maxTicksLimit,u),hi=Math.max(1,Math.ceil(u/vn));for(te=0;tes.value===i);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(i){const e=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i));let s,r;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(e.display)for(s=0,r=o.length;s{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]:[{z:e,draw:o=>{this.draw(o)}}]}getMatchingVisibleMetas(i){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let s,r;for(s=0,r=e.length;s{const n=e.split("."),o=n.pop(),s=[t].concat(n).join("."),r=i[e].split("."),a=r.pop(),l=r.join(".");Qt.route(s,o,l,a)})}(i,t.defaultRoutes),t.descriptors&&Qt.describe(i,t.descriptors)}(i,r,n),this.override&&Qt.override(i.id,i.overrides)),r}get(i){return this.items[i]}unregister(i){const e=this.items,n=i.id,o=this.scope;n in e&&delete e[n],o&&n in Qt[o]&&(delete Qt[o][n],this.override&&delete ma[n])}}var bs=new class Rre{constructor(){this.controllers=new Bf(vs,"datasets",!0),this.elements=new Bf(Xo,"elements"),this.plugins=new Bf(Object,"plugins"),this.scales=new Bf(xa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,e,n){[...e].forEach(o=>{const s=n||this._getRegistryForType(o);n||s.isForType(o)||s===this.plugins&&o.id?this._exec(i,s,o):_n(o,r=>{const a=n||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,e,n){const o=DC(i);Mn(n["before"+o],[],n),e[i](n),Mn(n["after"+o],[],n)}_getRegistryForType(i){for(let e=0;e{class t extends vs{update(e){const n=this._cachedMeta,{data:o=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:a}=qk(n,o,s);if(this._drawStart=r,this._drawCount=a,Wk(n)&&(r=0,a=o.length),this.options.showLine){const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:u},e)}this.updateElements(o,r,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=bs.getElement("line")),super.addElements()}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,p=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(p),_=this.includeOptions(s,m),b=a.axis,E=l.axis,{spanGaps:P,segment:W}=this.options,te=Gl(P)?P:Number.POSITIVE_INFINITY,fe=this.chart._animationsDisabled||r||"none"===s;let Ce=n>0&&this.getParsed(n-1);for(let ve=n;ve0&&Math.abs(Pe[b]-Ce[b])>te,W&&($e.parsed=Pe,$e.raw=u.data[ve]),_&&($e.options=m||this.resolveDataElementOptions(ve,ke.active?"active":s)),fe||this.updateElement(ke,ve,$e,s),Ce=Pe}this.updateSharedOptions(m,s,p)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,a)/2}}return t.id="scatter",t.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},t.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:i=>"("+i.label+", "+i.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},t})()});function Aa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Vre={_date:(()=>{class t{constructor(e){this.options=e||{}}init(e){}formats(){return Aa()}parse(e,n){return Aa()}format(e,n){return Aa()}add(e,n,o){return Aa()}diff(e,n,o){return Aa()}startOf(e,n,o){return Aa()}endOf(e,n){return Aa()}}return t.override=function(i){Object.assign(t.prototype,i)},t})()};function Bre(t,i,e,n){const{controller:o,data:s,_sorted:r}=t,a=o._cachedMeta.iScale;if(a&&i===a.axis&&"r"!==i&&r&&s.length){const l=a._reversePixels?voe:Js;if(!n)return l(s,i,e);if(o._sharedOptions){const c=s[0],u="function"==typeof c.getRange&&c.getRange(i);if(u){const p=l(s,i,e-u),m=l(s,i,e+u);return{lo:p.lo,hi:m.hi}}}}return{lo:0,hi:s.length-1}}function nd(t,i,e,n,o){const s=t.getSortedVisibleDatasetMetas(),r=e[i];for(let a=0,l=s.length;a{l[r](i[e],o)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(i.x,i.y,o))}),n&&!a?[]:s}var Ure={evaluateInteractionItems:nd,modes:{index(t,i,e,n){const o=ba(i,t),s=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,p=c.data[u];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:u})}),l):[]},dataset(t,i,e,n){const o=ba(i,t),s=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uXC(t,ba(i,t),e.axis||"xy",n,e.includeInvisible||!1),nearest:(t,i,e,n)=>JC(t,ba(i,t),e.axis||"xy",e.intersect,n,e.includeInvisible||!1),x:(t,i,e,n)=>Q3(t,ba(i,t),"x",e.intersect,n),y:(t,i,e,n)=>Q3(t,ba(i,t),"y",e.intersect,n)}};const Z3=["left","top","right","bottom"];function id(t,i){return t.filter(e=>e.pos===i)}function Y3(t,i){return t.filter(e=>-1===Z3.indexOf(e.pos)&&e.box.axis===i)}function od(t,i){return t.sort((e,n)=>{const o=i?n:e,s=i?e:n;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function X3(t,i,e,n){return Math.max(t[e],i[e])+Math.max(t[n],i[n])}function J3(t,i){t.top=Math.max(t.top,i.top),t.left=Math.max(t.left,i.left),t.bottom=Math.max(t.bottom,i.bottom),t.right=Math.max(t.right,i.right)}function Wre(t,i,e,n){const{pos:o,box:s}=e,r=t.maxPadding;if(!qt(o)){e.size&&(t[o]-=e.size);const p=n[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?s.height:s.width),e.size=p.size/p.count,t[o]+=e.size}s.getPadding&&J3(r,s.getPadding());const a=Math.max(0,i.outerWidth-X3(r,t,"left","right")),l=Math.max(0,i.outerHeight-X3(r,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function Zre(t,i){const e=i.maxPadding;return function n(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(r=>{s[r]=Math.max(i[r],e[r])}),s}(t?["left","right"]:["top","bottom"])}function sd(t,i,e,n){const o=[];let s,r,a,l,c,u;for(s=0,r=t.length,c=0;sc.box.fullSize),!0),n=od(id(i,"left"),!0),o=od(id(i,"right")),s=od(id(i,"top"),!0),r=od(id(i,"bottom")),a=Y3(i,"x"),l=Y3(i,"y");return{fullSize:e,leftAndTop:n.concat(s),rightAndBottom:o.concat(l).concat(r).concat(a),chartArea:id(i,"chartArea"),vertical:n.concat(o).concat(l),horizontal:s.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;_n(t.boxes,E=>{"function"==typeof E.beforeLayout&&E.beforeLayout()});const u=l.reduce((E,P)=>P.box.options&&!1===P.box.options.display?E:E+1,0)||1,p=Object.freeze({outerWidth:i,outerHeight:e,padding:o,availableWidth:s,availableHeight:r,vBoxMaxWidth:s/2/u,hBoxMaxHeight:r/2}),m=Object.assign({},o);J3(m,Pi(n));const _=Object.assign({maxPadding:m,w:s,h:r,x:o.left,y:o.top},o),b=function Gre(t,i){const e=function Kre(t){const i={};for(const e of t){const{stack:n,pos:o,stackWeight:s}=e;if(!n||!Z3.includes(o))continue;const r=i[n]||(i[n]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=s}return i}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=i;let s,r,a;for(s=0,r=t.length;s{const P=E.box;Object.assign(P,t.chartArea),P.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class tM{acquireContext(i,e){}releaseContext(i){return!1}addEventListener(i,e,n){}removeEventListener(i,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(i,e,n,o){return e=Math.max(0,e||i.width),n=n||i.height,{width:e,height:Math.max(0,o?Math.floor(e/o):n)}}isAttached(i){return!0}updateConfig(i){}}class Yre extends tM{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}}const zf="$chartjs",Xre={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nM=t=>null===t||""===t,iM=!!Sse&&{passive:!0};function tae(t,i,e){t.canvas.removeEventListener(i,e,iM)}function jf(t,i){for(const e of t)if(e===i||e.contains(i))return!0}function iae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.addedNodes,n),r=r&&!jf(a.removedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function oae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.removedNodes,n),r=r&&!jf(a.addedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}const rd=new Map;let oM=0;function sM(){const t=window.devicePixelRatio;t!==oM&&(oM=t,rd.forEach((i,e)=>{e.currentDevicePixelRatio!==t&&i()}))}function aae(t,i,e){const n=t.canvas,o=n&&qC(n);if(!o)return;const s=Gk((a,l)=>{const c=o.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;0===c&&0===u||s(c,u)});return r.observe(o),function sae(t,i){rd.size||window.addEventListener("resize",sM),rd.set(t,i)}(t,s),r}function ev(t,i,e){e&&e.disconnect(),"resize"===i&&function rae(t){rd.delete(t),rd.size||window.removeEventListener("resize",sM)}(t)}function lae(t,i,e){const n=t.canvas,o=Gk(s=>{null!==t.ctx&&e(function nae(t,i){const e=Xre[t.type]||t.type,{x:n,y:o}=ba(t,i);return{type:e,chart:i,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(s,t))},t,s=>{const r=s[0];return[r,r.offsetX,r.offsetY]});return function eae(t,i,e){t.addEventListener(i,e,iM)}(n,i,o),o}class cae extends tM{acquireContext(i,e){const n=i&&i.getContext&&i.getContext("2d");return n&&n.canvas===i?(function Jre(t,i){const e=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[zf]={initial:{height:n,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",nM(o)){const s=b3(t,"width");void 0!==s&&(t.width=s)}if(nM(n))if(""===t.style.height)t.height=t.width/(i||2);else{const s=b3(t,"height");void 0!==s&&(t.height=s)}}(i,e),n):null}releaseContext(i){const e=i.canvas;if(!e[zf])return!1;const n=e[zf].initial;["height","width"].forEach(s=>{const r=n[s];tn(r)?e.removeAttribute(s):e.setAttribute(s,r)});const o=n.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[zf],!0}addEventListener(i,e,n){this.removeEventListener(i,e),(i.$proxies||(i.$proxies={}))[e]=({attach:iae,detach:oae,resize:aae}[e]||lae)(i,e,n)}removeEventListener(i,e){const n=i.$proxies||(i.$proxies={}),o=n[e];o&&(({attach:ev,detach:ev,resize:ev}[e]||tae)(i,e,o),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,e,n,o){return function Tse(t,i,e,n){const o=Rf(t),s=va(o,"margin"),r=Ff(o.maxWidth,t,"clientWidth")||wf,a=Ff(o.maxHeight,t,"clientHeight")||wf,l=function wse(t,i,e){let n,o;if(void 0===i||void 0===e){const s=qC(t);if(s){const r=s.getBoundingClientRect(),a=Rf(s),l=va(a,"border","width"),c=va(a,"padding");i=r.width-c.width-l.width,e=r.height-c.height-l.height,n=Ff(a.maxWidth,s,"clientWidth"),o=Ff(a.maxHeight,s,"clientHeight")}else i=t.clientWidth,e=t.clientHeight}return{width:i,height:e,maxWidth:n||wf,maxHeight:o||wf}}(t,i,e);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const p=va(o,"border","width"),m=va(o,"padding");c-=m.width+p.width,u-=m.height+p.height}return c=Math.max(0,c-s.width),u=Math.max(0,n?Math.floor(c/n):u-s.height),c=WC(Math.min(c,r,l.maxWidth)),u=WC(Math.min(u,a,l.maxHeight)),c&&!u&&(u=WC(c/2)),{width:c,height:u}}(i,e,n,o)}isAttached(i){const e=qC(i);return!(!e||!e.isConnected)}}class dae{constructor(){this._init=[]}notify(i,e,n,o){"beforeInit"===e&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install"));const s=o?this._descriptors(i).filter(o):this._descriptors(i),r=this._notify(s,i,e,n);return"afterDestroy"===e&&(this._notify(s,i,"stop"),this._notify(this._init,i,"uninstall")),r}_notify(i,e,n,o){o=o||{};for(const s of i){const r=s.plugin;if(!1===Mn(r[n],[e,o,s.options],r)&&o.cancelable)return!1}return!0}invalidate(){tn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),e}_createDescriptors(i,e){const n=i&&i.config,o=Nt(n.options&&n.options.plugins,{}),s=function pae(t){const i={},e=[],n=Object.keys(bs.plugins.items);for(let s=0;ss.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(o(e,n),i,"stop"),this._notify(o(n,e),i,"start")}}function hae(t,i){return i||!1!==t?!0===t?{}:t:null}function gae(t,{plugin:i,local:e},n,o){const s=t.pluginScopeKeys(i),r=t.getOptionScopes(n,s);return e&&i.defaults&&r.push(i.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function tv(t,i){return((i.datasets||{})[t]||{}).indexAxis||i.indexAxis||(Qt.datasets[t]||{}).indexAxis||"x"}function nv(t,i){return"x"===t||"y"===t?t:i.axis||function Iae(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(i.position)||t.charAt(0).toLowerCase()}function rM(t){const i=t.options||(t.options={});i.plugins=Nt(i.plugins,{}),i.scales=function Cae(t,i){const e=ma[t.type]||{scales:{}},n=i.scales||{},o=tv(t.type,i),s=Object.create(null),r=Object.create(null);return Object.keys(n).forEach(a=>{const l=n[a];if(!qt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=nv(a,l),u=function _ae(t,i){return t===i?"_index_":"_value_"}(c,o),p=e.scales||{};s[c]=s[c]||a,r[a]=ju(Object.create(null),[{axis:c},l,p[c],p[u]])}),t.data.datasets.forEach(a=>{const l=a.type||t.type,c=a.indexAxis||tv(l,i),p=(ma[l]||{}).scales||{};Object.keys(p).forEach(m=>{const _=function mae(t,i){let e=t;return"_index_"===t?e=i:"_value_"===t&&(e="x"===i?"y":"x"),e}(m,c),b=a[_+"AxisID"]||s[_]||_;r[b]=r[b]||Object.create(null),ju(r[b],[{axis:_},n[b],p[m]])})}),Object.keys(r).forEach(a=>{const l=r[a];ju(l,[Qt.scales[l.type],Qt.scale])}),r}(t,i)}function aM(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lM=new Map,cM=new Set;function Uf(t,i){let e=lM.get(t);return e||(e=i(),lM.set(t,e),cM.add(e)),e}const ad=(t,i,e)=>{const n=Pr(i,e);void 0!==n&&t.add(n)};class bae{constructor(i){this._config=function vae(t){return(t=t||{}).data=aM(t.data),rM(t),t}(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=aM(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){const i=this._config;this.clearCache(),rM(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Uf(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,e){return Uf(`${i}.transition.${e}`,()=>[[`datasets.${i}.transitions.${e}`,`transitions.${e}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,e){return Uf(`${i}-${e}`,()=>[[`datasets.${i}.elements.${e}`,`datasets.${i}`,`elements.${e}`,""]])}pluginScopeKeys(i){const e=i.id;return Uf(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,e){const n=this._scopeCache;let o=n.get(i);return(!o||e)&&(o=new Map,n.set(i,o)),o}getOptionScopes(i,e,n){const{options:o,type:s}=this,r=this._cachedScopes(i,n),a=r.get(e);if(a)return a;const l=new Set;e.forEach(u=>{i&&(l.add(i),u.forEach(p=>ad(l,i,p))),u.forEach(p=>ad(l,o,p)),u.forEach(p=>ad(l,ma[s]||{},p)),u.forEach(p=>ad(l,Qt,p)),u.forEach(p=>ad(l,HC,p))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),cM.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:i,type:e}=this;return[i,ma[e]||{},Qt.datasets[e]||{},{type:e},Qt,HC]}resolveNamedOptions(i,e,n,o=[""]){const s={$shared:!0},{resolver:r,subPrefixes:a}=uM(this._resolverCache,i,o);let l=r;(function xae(t,i){const{isScriptable:e,isIndexable:n}=d3(t);for(const o of i){const s=e(o),r=n(o),a=(r||s)&&t[o];if(s&&(Fr(a)||yae(a))||r&&kn(a))return!0}return!1})(r,e)&&(s.$shared=!1,l=Wl(r,n=Fr(n)?n():n,this.createResolver(i,n,a)));for(const c of e)s[c]=l[c];return s}createResolver(i,e,n=[""],o){const{resolver:s}=uM(this._resolverCache,i,n);return qt(e)?Wl(s,e,void 0,o):s}}function uM(t,i,e){let n=t.get(i);n||(n=new Map,t.set(i,n));const o=e.join();let s=n.get(o);return s||(s={resolver:$C(i,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,s)),s}const yae=t=>qt(t)&&Object.getOwnPropertyNames(t).reduce((i,e)=>i||Fr(t[e]),!1),wae=["top","bottom","left","right","chartArea"];function dM(t,i){return"top"===t||"bottom"===t||-1===wae.indexOf(t)&&"x"===i}function pM(t,i){return function(e,n){return e[t]===n[t]?e[i]-n[i]:e[t]-n[t]}}function hM(t){const i=t.chart,e=i.options.animation;i.notifyPlugins("afterRender"),Mn(e&&e.onComplete,[t],i)}function Tae(t){const i=t.chart,e=i.options.animation;Mn(e&&e.onProgress,[t],i)}function fM(t){return C3()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const $f={},gM=t=>{const i=fM(t);return Object.values($f).filter(e=>e.canvas===i).pop()};function Sae(t,i,e){const n=Object.keys(t);for(const o of n){const s=+o;if(s>=i){const r=t[o];delete t[o],(e>0||s>i)&&(t[s+e]=r)}}}class iv{constructor(i,e){const n=this.config=new bae(e),o=fM(i),s=gM(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function uae(t){return!C3()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Yre:cae}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=aoe(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function xoe(t,i){let e;return function(...n){return i?(clearTimeout(e),e=setTimeout(t,i,n)):t.apply(this,n),i}}(p=>this.update(p),r.resizeDelay||0),this._dataChanges=[],$f[this.id]=this,a&&l?(tr.listen(this,"complete",hM),tr.listen(this,"progress",Tae),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:i,maintainAspectRatio:e},width:n,height:o,_aspectRatio:s}=this;return tn(i)?e&&s?s:o?n/o:null:i}get data(){return this.config.data}set data(i){this.config.data=i}get options(){return this._options}set options(i){this.config.options=i}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():v3(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return l3(this.canvas,this.ctx),this}stop(){return tr.stop(this),this}resize(i,e){tr.running(this)?this._resizeBeforeDraw={width:i,height:e}:this._resize(i,e)}_resize(i,e){const n=this.options,r=this.platform.getMaximumSize(this.canvas,i,e,n.maintainAspectRatio&&this.aspectRatio),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,v3(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Mn(n.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){_n(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const i=this.options,e=i.scales,n=this.scales,o=Object.keys(n).reduce((r,a)=>(r[a]=!1,r),{});let s=[];e&&(s=s.concat(Object.keys(e).map(r=>{const a=e[r],l=nv(r,a),c="r"===l,u="x"===l;return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),_n(s,r=>{const a=r.options,l=a.id,c=nv(l,a),u=Nt(a.type,r.dtype);(void 0===a.position||dM(a.position,c)!==dM(r.dposition))&&(a.position=r.dposition),o[l]=!0;let p=null;l in n&&n[l].type===u?p=n[l]:(p=new(bs.getScale(u))({id:l,type:u,ctx:this.ctx,chart:this}),n[p.id]=p),p.init(a,i)}),_n(o,(r,a)=>{r||delete n[a]}),_n(n,r=>{Fi.configure(this,r,r.options),Fi.addBox(this,r)})}_updateMetasets(){const i=this._metasets,e=this.data.datasets.length,n=i.length;if(i.sort((o,s)=>o.index-s.index),n>e){for(let o=e;oe.length&&delete this._stacks,i.forEach((n,o)=>{0===e.filter(s=>s===n._dataset).length&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const i=[],e=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=e.length;n{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(i){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:i,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(i),this.notifyPlugins("afterUpdate",{mode:i}),this._layers.sort(pM("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_n(this.scales,i=>{Fi.removeBox(this,i)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const i=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(i.events);(!Rk(e,n)||!!this._responsiveListeners!==i.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:i}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:s}of e)Sae(i,o,"_removeElements"===n?-s:s)}_getUniformDataChanges(){const i=this._dataChanges;if(!i||!i.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=s=>new Set(i.filter(r=>r[0]===s).map((r,a)=>a+","+r.splice(1).join(","))),o=n(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(i){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Fi.update(this,this.width,this.height,i);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],_n(this.boxes,o=>{n&&"chartArea"===o.position||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(i){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:i,cancelable:!0})){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(i[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(i){const e=this.ctx,n=i._clip,o=!n.disabled,s=this.chartArea,r={meta:i,index:i.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(o&&Of(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),i.controller.draw(),o&&Lf(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(i){return Zu(i,this.chartArea,this._minPadding)}getElementsAtEventForMode(i,e,n,o){const s=Ure.modes[e];return"function"==typeof s?s(this,i,n,o):[]}getDatasetMeta(i){const e=this.data.datasets[i],n=this._metasets;let o=n.filter(s=>s&&s._dataset===e).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:i,_dataset:e,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(i){const e=this.data.datasets[i];if(!e)return!1;const n=this.getDatasetMeta(i);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(i,e){this.getDatasetMeta(i).hidden=!e}toggleDataVisibility(i){this._hiddenIndices[i]=!this._hiddenIndices[i]}getDataVisibility(i){return!this._hiddenIndices[i]}_updateVisibility(i,e,n){const o=n?"show":"hide",s=this.getDatasetMeta(i),r=s.controller._resolveAnimations(void 0,o);Fo(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(i,n),r.update(s,{visible:n}),this.update(a=>a.datasetIndex===i?o:void 0))}hide(i,e){this._updateVisibility(i,e,!1)}show(i,e){this._updateVisibility(i,e,!0)}_destroyDatasetMeta(i){const e=this._metasets[i];e&&e.controller&&e.controller._destroy(),delete this._metasets[i]}_stop(){let i,e;for(this.stop(),tr.remove(this),i=0,e=this.data.datasets.length;i{e.addEventListener(this,s,r),i[s]=r},o=(s,r,a)=>{s.offsetX=r,s.offsetY=a,this._eventHandler(s)};_n(this.options.events,s=>n(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const i=this._responsiveListeners,e=this.platform,n=(l,c)=>{e.addEventListener(this,l,c),i[l]=c},o=(l,c)=>{i[l]&&(e.removeEventListener(this,l,c),delete i[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",s),n("detach",r)};r=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){_n(this._listeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._listeners={},_n(this._responsiveListeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._responsiveListeners=void 0}updateHoverStyle(i,e,n){const o=n?"set":"remove";let s,r,a,l;for("dataset"===e&&(s=this.getDatasetMeta(i[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=i.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[r],index:r}});!xf(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(i,e,n){return this._plugins.notify(this,i,e,n)}_updateHoverStyles(i,e,n){const o=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),r=s(e,i),a=n?i:s(i,e);r.length&&this.updateHoverStyle(r,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(i,e){const n={event:i,replay:e,cancelable:!0,inChartArea:this.isPointInArea(i)},o=r=>(r.options.events||this.options.events).includes(i.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const s=this._handleEvent(i,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(s||n.changed)&&this.render(),this}_handleEvent(i,e,n){const{_active:o=[],options:s}=this,a=this._getActiveElements(i,o,n,e),l=function hoe(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(i),c=function Eae(t,i,e,n){return e&&"mouseout"!==t.type?n?i:t:null}(i,this._lastEvent,n,l);n&&(this._lastEvent=null,Mn(s.onHover,[i,a,this],this),l&&Mn(s.onClick,[i,a,this],this));const u=!xf(a,o);return(u||e)&&(this._active=a,this._updateHoverStyles(a,o,e)),this._lastEvent=c,u}_getActiveElements(i,e,n,o){if("mouseout"===i.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(i,s.mode,s,o)}}const mM=()=>_n(iv.instances,t=>t._plugins.invalidate()),Br=!0;function _M(t,i,e){const{startAngle:n,pixelMargin:o,x:s,y:r,outerRadius:a,innerRadius:l}=i;let c=o/a;t.beginPath(),t.arc(s,r,a,n-c,e+c),l>o?(c=o/l,t.arc(s,r,l,e+c,n-c,!0)):t.arc(s,r,o,e+Qn,n-Qn),t.closePath(),t.clip()}function Yl(t,i,e,n){return{x:e+t*Math.cos(i),y:n+t*Math.sin(i)}}function ov(t,i,e,n,o,s){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=i,p=Math.max(i.outerRadius+n+e-c,0),m=u>0?u+n+e+c:0;let _=0;const b=o-l;if(n){const tt=((u>0?u-n:0)+(p>0?p-n:0))/2;_=(b-(0!==tt?b*tt/(tt+n):b))/2}const P=(b-Math.max(.001,b*p-e/Vn)/p)/2,W=l+P+_,te=o-P-_,{outerStart:fe,outerEnd:Ce,innerStart:ve,innerEnd:ke}=function kae(t,i,e,n){const o=function Dae(t){return UC(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),s=(e-i)/2,r=Math.min(s,n*i/2),a=l=>{const c=(e-Math.min(s,l))*n/2;return pi(l,0,Math.min(s,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:pi(o.innerStart,0,r),innerEnd:pi(o.innerEnd,0,r)}}(i,m,p,te-W),Pe=p-fe,$e=p-Ce,Ke=W+fe/Pe,pt=te-Ce/$e,jt=m+ve,Vt=m+ke,vn=W+ve/jt,hi=te-ke/Vt;if(t.beginPath(),s){if(t.arc(r,a,p,Ke,pt),Ce>0){const tt=Yl($e,pt,r,a);t.arc(tt.x,tt.y,Ce,pt,te+Qn)}const wt=Yl(Vt,te,r,a);if(t.lineTo(wt.x,wt.y),ke>0){const tt=Yl(Vt,hi,r,a);t.arc(tt.x,tt.y,ke,te+Qn,hi+Math.PI)}if(t.arc(r,a,m,te-ke/m,W+ve/m,!0),ve>0){const tt=Yl(jt,vn,r,a);t.arc(tt.x,tt.y,ve,vn+Math.PI,W-Qn)}const We=Yl(Pe,W,r,a);if(t.lineTo(We.x,We.y),fe>0){const tt=Yl(Pe,Ke,r,a);t.arc(tt.x,tt.y,fe,W-Qn,Ke)}}else{t.moveTo(r,a);const wt=Math.cos(Ke)*p+r,We=Math.sin(Ke)*p+a;t.lineTo(wt,We);const tt=Math.cos(pt)*p+r,ct=Math.sin(pt)*p+a;t.lineTo(tt,ct)}t.closePath()}Object.defineProperties(iv,{defaults:{enumerable:Br,value:Qt},instances:{enumerable:Br,value:$f},overrides:{enumerable:Br,value:ma},registry:{enumerable:Br,value:bs},version:{enumerable:Br,value:"3.9.1"},getChart:{enumerable:Br,value:gM},register:{enumerable:Br,value:(...t)=>{bs.add(...t),mM()}},unregister:{enumerable:Br,value:(...t)=>{bs.remove(...t),mM()}}});class Kf extends Xo{constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,e,n){const o=this.getProps(["x","y"],n),{angle:s,distance:r}=zk(o,{x:i,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),m=this.options.spacing/2,b=Nt(p,l-a)>=Cn||Ku(s,a,l),E=Xs(r,c+m,u+m);return b&&E}getCenterPoint(i){const{x:e,y:n,startAngle:o,endAngle:s,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],i),{offset:l,spacing:c}=this.options,u=(o+s)/2,p=(r+a+c+l)/2;return{x:e+Math.cos(u)*p,y:n+Math.sin(u)*p}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:e,circumference:n}=this,o=(e.offset||0)/2,s=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Cn?Math.floor(n/Cn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=0;if(o){a=o/2;const c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=Vn&&(a=o)}i.fillStyle=e.backgroundColor,i.strokeStyle=e.borderColor;const l=function Mae(t,i,e,n,o){const{fullCircles:s,startAngle:r,circumference:a}=i;let l=i.endAngle;if(s){ov(t,i,e,n,r+Cn,o);for(let c=0;ca&&s>a)?n+c-l:c-l}}function Rae(t,i,e,n){const{points:o,options:s}=i,{count:r,start:a,loop:l,ilen:c}=CM(o,e,n),u=function Fae(t){return t.stepped?Zoe:t.tension||"monotone"===t.cubicInterpolationMode?Yoe:Pae}(s);let _,b,E,{move:p=!0,reverse:m}=n||{};for(_=0;_<=c;++_)b=o[(a+(m?c-_:_))%r],!b.skip&&(p?(t.moveTo(b.x,b.y),p=!1):u(t,E,b,m,s.stepped),E=b);return l&&(b=o[(a+(m?c:0))%r],u(t,E,b,m,s.stepped)),!!l}function Nae(t,i,e,n){const o=i.points,{count:s,start:r,ilen:a}=CM(o,e,n),{move:l=!0,reverse:c}=n||{};let m,_,b,E,P,W,u=0,p=0;const te=Ce=>(r+(c?a-Ce:Ce))%s,fe=()=>{E!==P&&(t.lineTo(u,P),t.lineTo(u,E),t.lineTo(u,W))};for(l&&(_=o[te(0)],t.moveTo(_.x,_.y)),m=0;m<=a;++m){if(_=o[te(m)],_.skip)continue;const Ce=_.x,ve=_.y,ke=0|Ce;ke===b?(veP&&(P=ve),u=(p*u+Ce)/++p):(fe(),t.lineTo(Ce,ve),b=ke,p=0,E=P=ve),W=ve}fe()}function sv(t){const i=t.options;return t._decimated||t._loop||i.tension||"monotone"===i.cubicInterpolationMode||i.stepped||i.borderDash&&i.borderDash.length?Rae:Nae}Kf.id="arc",Kf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Kf.defaultRoutes={backgroundColor:"backgroundColor"};const zae="function"==typeof Path2D;let Gf=(()=>{class t extends Xo{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;!o.tension&&"monotone"!==o.cubicInterpolationMode||o.stepped||this._pointsUpdated||(vse(this._points,o,e,o.spanGaps?this._loop:this._fullLoop,n),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Rse(t,i){const e=t.points,n=t.options.spanGaps,o=e.length;if(!o)return[];const s=!!t._loop,{start:r,end:a}=function Pse(t,i,e,n){let o=0,s=i-1;if(e&&!n)for(;oo&&t[s%i].skip;)s--;return s%=i,{start:o,end:s}}(e,o,s,n);return function D3(t,i,e,n){return n&&n.setContext&&e?function Nse(t,i,e,n){const o=t._chart.getContext(),s=k3(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=e.length,c=[];let u=s,p=i[0].start,m=p;function _(b,E,P,W){const te=a?-1:1;if(b!==E){for(b+=l;e[b%l].skip;)b-=te;for(;e[E%l].skip;)E+=te;b%l!=E%l&&(c.push({start:b%l,end:E%l,loop:P,style:W}),u=W,p=E%l)}}for(const b of i){p=a?p:b.start;let P,E=e[p%l];for(m=p+1;m<=b.end;m++){const W=e[m%l];P=k3(n.setContext(Vr(o,{type:"segment",p0:E,p1:W,p0DataIndex:(m-1)%l,p1DataIndex:m%l,datasetIndex:r}))),Vse(P,u)&&_(p,m-1,b.loop,u),E=W,u=P}p"borderDash"!==i&&"fill"!==i},t})();function vM(t,i,e,n){const o=t.options,{[e]:s}=t.getProps([e],n);return Math.abs(i-s){class t extends Xo{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,o){const s=this.options,{x:r,y:a}=this.getProps(["x","y"],o);return Math.pow(e-r,2)+Math.pow(n-a,2){yM(i)})}var Jae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,i,e)=>{if(!e.enabled)return void xM(t);const n=t.width;t.data.datasets.forEach((o,s)=>{const{_data:r,indexAxis:a}=o,l=t.getDatasetMeta(s),c=r||o.data;if("y"===Xu([a,t.options.indexAxis])||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type||t.options.parsing)return;let b,{start:p,count:m}=function Xae(t,i){const e=i.length;let o,n=0;const{iScale:s}=t,{min:r,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(n=pi(Js(i,s.axis,r).lo,0,e-1)),o=c?pi(Js(i,s.axis,a).hi+1,n,e)-n:e-n,{start:n,count:o}}(l,c);if(m<=(e.threshold||4*n))yM(o);else{switch(tn(r)&&(o._data=c,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(E){this._data=E}})),e.algorithm){case"lttb":b=function Zae(t,i,e,n,o){const s=o.samples||n;if(s>=e)return t.slice(i,i+e);const r=[],a=(e-2)/(s-2);let l=0;const c=i+e-1;let p,m,_,b,E,u=i;for(r[l++]=t[u],p=0;p_&&(_=b,m=t[te],E=te);r[l++]=m,u=E}return r[l++]=t[c],r}(c,p,m,n,e);break;case"min-max":b=function Yae(t,i,e,n){let r,a,l,c,u,p,m,_,b,E,o=0,s=0;const P=[],te=t[i].x,Ce=t[i+e-1].x-te;for(r=i;rE&&(E=c,m=r),o=(s*o+a.x)/++s;else{const ke=r-1;if(!tn(p)&&!tn(m)){const Pe=Math.min(p,m),$e=Math.max(p,m);Pe!==_&&Pe!==ke&&P.push({...t[Pe],x:o}),$e!==_&&$e!==ke&&P.push({...t[$e],x:o})}r>0&&ke!==_&&P.push(t[ke]),P.push(a),u=ve,s=0,b=E=c,p=m=_=r}}return P}(c,p,m,n);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=b}})},destroy(t){xM(t)}};function lv(t,i,e,n){if(n)return;let o=i[t],s=e[t];return"angle"===t&&(o=vo(o),s=vo(s)),{property:t,start:o,end:s}}function cv(t,i,e){for(;i>t;i--){const n=e[i];if(!isNaN(n.x)&&!isNaN(n.y))break}return i}function AM(t,i,e,n){return t&&i?n(t[e],i[e]):t?t[e]:i?i[e]:0}function wM(t,i){let e=[],n=!1;return kn(t)?(n=!0,e=t):e=function tle(t,i){const{x:e=null,y:n=null}=t||{},o=i.points,s=[];return i.segments.forEach(({start:r,end:a})=>{a=cv(r,a,o);const l=o[r],c=o[a];null!==n?(s.push({x:l.x,y:n}),s.push({x:c.x,y:n})):null!==e&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}(t,i),e.length?new Gf({points:e,options:{tension:0},_loop:n,_fullLoop:n}):null}function TM(t){return t&&!1!==t.fill}function nle(t,i,e){let o=t[i].fill;const s=[i];let r;if(!e)return o;for(;!1!==o&&-1===s.indexOf(o);){if(!ti(o))return o;if(r=t[o],!r)return!1;if(r.visible)return o;s.push(o),o=r.fill}return!1}function ile(t,i,e){const n=function ale(t){const i=t.options,e=i.fill;let n=Nt(e&&e.target,e);return void 0===n&&(n=!!i.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(qt(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return ti(o)&&Math.floor(o)===o?function ole(t,i,e,n){return("-"===t||"+"===t)&&(e=i+e),!(e===i||e<0||e>=n)&&e}(n[0],i,o,e):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function ule(t,i,e){const n=[];for(let o=0;o=0;--r){const a=o[r].$filler;a&&(a.line.updateControlPoints(s,a.axis),n&&a.fill&&uv(t.ctx,a,s))}},beforeDatasetsDraw(t,i,e){if("beforeDatasetsDraw"!==e.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const s=n[o].$filler;TM(s)&&uv(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,i,e){const n=i.meta.$filler;!TM(n)||"beforeDatasetDraw"!==e.drawTime||uv(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const MM=(t,i)=>{let{boxHeight:e=i,boxWidth:n=i}=t;return t.usePointStyle&&(e=Math.min(e,i),n=t.pointStyleWidth||Math.min(n,i)),{boxWidth:n,boxHeight:e,itemHeight:Math.max(i,e)}};class OM extends Xo{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e,n){this.maxWidth=i,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const i=this.options.labels||{};let e=Mn(i.generateLabels,[this.chart],this)||[];i.filter&&(e=e.filter(n=>i.filter(n,this.chart.data))),i.sort&&(e=e.sort((n,o)=>i.sort(n,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:i,ctx:e}=this;if(!i.display)return void(this.width=this.height=0);const n=i.labels,o=ui(n.font),s=o.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=MM(n,s);let c,u;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(u,i.maxHeight||this.maxHeight)}_fitRows(i,e,n,o){const{ctx:s,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let p=i;s.textAlign="left",s.textBaseline="middle";let m=-1,_=-u;return this.legendItems.forEach((b,E)=>{const P=n+e/2+s.measureText(b.text).width;(0===E||c[c.length-1]+P+2*a>r)&&(p+=u,c[c.length-(E>0?0:1)]=0,_+=u,m++),l[E]={left:0,top:_,row:m,width:P,height:o},c[c.length-1]+=P+a}),p}_fitCols(i,e,n,o){const{ctx:s,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-i;let p=a,m=0,_=0,b=0,E=0;return this.legendItems.forEach((P,W)=>{const te=n+e/2+s.measureText(P.text).width;W>0&&_+o+2*a>u&&(p+=m+a,c.push({width:m,height:_}),b+=m+a,E++,m=_=0),l[W]={left:b,top:_,col:E,width:te,height:o},m=Math.max(m,te),_+=o+a}),p+=m,c.push({width:m,height:_}),p}adjustHitBoxes(){if(!this.options.display)return;const i=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:o},rtl:s}}=this,r=Zl(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Li(n,this.left+o,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=Li(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+i+o,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+o}else{let a=0,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const i=this.ctx;Of(i,this),this._draw(),Lf(i)}}_draw(){const{options:i,columnSizes:e,lineWidths:n,ctx:o}=this,{align:s,labels:r}=i,a=Qt.color,l=Zl(i.rtl,this.left,this.width),c=ui(r.font),{color:u,padding:p}=r,m=c.size,_=m/2;let b;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:E,boxHeight:P,itemHeight:W}=MM(r,m),Ce=this.isHorizontal(),ve=this._computeTitleHeight();b=Ce?{x:Li(s,this.left+p,this.right-n[0]),y:this.top+p+ve,line:0}:{x:this.left+p,y:Li(s,this.top+ve+p,this.bottom-e[0].height),line:0},x3(this.ctx,i.textDirection);const ke=W+p;this.legendItems.forEach((Pe,$e)=>{o.strokeStyle=Pe.fontColor||u,o.fillStyle=Pe.fontColor||u;const Ke=o.measureText(Pe.text).width,pt=l.textAlign(Pe.textAlign||(Pe.textAlign=r.textAlign)),jt=E+_+Ke;let Vt=b.x,vn=b.y;l.setWidth(this.width),Ce?$e>0&&Vt+jt+p>this.right&&(vn=b.y+=ke,b.line++,Vt=b.x=Li(s,this.left+p,this.right-n[b.line])):$e>0&&vn+ke>this.bottom&&(Vt=b.x=Vt+e[b.line].width+p,b.line++,vn=b.y=Li(s,this.top+ve+p,this.bottom-e[b.line].height)),function(Pe,$e,Ke){if(isNaN(E)||E<=0||isNaN(P)||P<0)return;o.save();const pt=Nt(Ke.lineWidth,1);if(o.fillStyle=Nt(Ke.fillStyle,a),o.lineCap=Nt(Ke.lineCap,"butt"),o.lineDashOffset=Nt(Ke.lineDashOffset,0),o.lineJoin=Nt(Ke.lineJoin,"miter"),o.lineWidth=pt,o.strokeStyle=Nt(Ke.strokeStyle,a),o.setLineDash(Nt(Ke.lineDash,[])),r.usePointStyle){const jt={radius:P*Math.SQRT2/2,pointStyle:Ke.pointStyle,rotation:Ke.rotation,borderWidth:pt},Vt=l.xPlus(Pe,E/2);c3(o,jt,Vt,$e+_,r.pointStyleWidth&&E)}else{const jt=$e+Math.max((m-P)/2,0),Vt=l.leftForLtr(Pe,E),vn=Ca(Ke.borderRadius);o.beginPath(),Object.values(vn).some(hi=>0!==hi)?Yu(o,{x:Vt,y:jt,w:E,h:P,radius:vn}):o.rect(Vt,jt,E,P),o.fill(),0!==pt&&o.stroke()}o.restore()}(l.x(Vt),vn,Pe),Vt=((t,i,e,n)=>t===(n?"left":"right")?e:"center"===t?(i+e)/2:i)(pt,Vt+E+_,Ce?Vt+jt:this.right,i.rtl),function(Pe,$e,Ke){Ia(o,Ke.text,Pe,$e+W/2,c,{strikethrough:Ke.hidden,textAlign:l.textAlign(Ke.textAlign)})}(l.x(Vt),vn,Pe),Ce?b.x+=jt+p:b.y+=ke}),A3(this.ctx,i.textDirection)}drawTitle(){const i=this.options,e=i.title,n=ui(e.font),o=Pi(e.padding);if(!e.display)return;const s=Zl(i.rtl,this.left,this.width),r=this.ctx,a=e.position,c=o.top+n.size/2;let u,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),u=this.top+c,p=Li(i.align,p,this.right-m);else{const b=this.columnSizes.reduce((E,P)=>Math.max(E,P.height),0);u=c+Li(i.align,this.top,this.bottom-b-i.labels.padding-this._computeTitleHeight())}const _=Li(a,p,p+m);r.textAlign=s.textAlign(LC(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,Ia(r,e.text,_,u,n)}_computeTitleHeight(){const i=this.options.title,e=ui(i.font),n=Pi(i.padding);return i.display?e.lineHeight+n.height:0}_getLegendItemAt(i,e){let n,o,s;if(Xs(i,this.left,this.right)&&Xs(e,this.top,this.bottom))for(s=this.legendHitBoxes,n=0;nnull!==t&&null!==i&&t.datasetIndex===i.datasetIndex&&t.index===i.index)(o,n);o&&!s&&Mn(e.onLeave,[i,o,this],this),this._hoveredItem=n,n&&!s&&Mn(e.onHover,[i,n,this],this)}else n&&Mn(e.onClick,[i,n,this],this)}}var yle={id:"legend",_element:OM,start(t,i,e){const n=t.legend=new OM({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n)},stop(t){Fi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,i,e){const n=t.legend;Fi.configure(t,n,e),n.options=e},afterUpdate(t){const i=t.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(t,i){i.replay||t.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,i,e){const n=i.datasetIndex,o=e.chart;o.isDatasetVisible(n)?(o.hide(n),i.hidden=!0):(o.show(n),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const i=t.data.datasets,{labels:{usePointStyle:e,pointStyle:n,textAlign:o,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map(r=>{const a=r.controller.getStyle(e?0:void 0),l=Pi(a.borderWidth);return{text:i[r.index].label,fillStyle:a.backgroundColor,fontColor:s,hidden:!r.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:n||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:r.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dv extends Xo{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=i,this.height=this.bottom=e;const o=kn(n.text)?n.text.length:1;this._padding=Pi(n.padding);const s=o*ui(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const i=this.options.position;return"top"===i||"bottom"===i}_drawArgs(i){const{top:e,left:n,bottom:o,right:s,options:r}=this,a=r.align;let c,u,p,l=0;return this.isHorizontal()?(u=Li(a,n,s),p=e+i,c=s-n):("left"===r.position?(u=n+i,p=Li(a,o,e),l=-.5*Vn):(u=s-i,p=Li(a,e,o),l=.5*Vn),c=o-e),{titleX:u,titleY:p,maxWidth:c,rotation:l}}draw(){const i=this.ctx,e=this.options;if(!e.display)return;const n=ui(e.font),s=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Ia(i,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:c,textAlign:LC(e.align),textBaseline:"middle",translation:[r,a]})}}var Ale={id:"title",_element:dv,start(t,i,e){!function xle(t,i){const e=new dv({ctx:t.ctx,options:i,chart:t});Fi.configure(t,e,i),Fi.addBox(t,e),t.titleBlock=e}(t,e)},stop(t){Fi.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,i,e){const n=t.titleBlock;Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Wf=new WeakMap;var wle={id:"subtitle",start(t,i,e){const n=new dv({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n),Wf.set(t,n)},stop(t){Fi.removeBox(t,Wf.get(t)),Wf.delete(t)},beforeUpdate(t,i,e){const n=Wf.get(t);Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ld={average(t){if(!t.length)return!1;let i,e,n=0,o=0,s=0;for(i=0,e=t.length;i-1?t.split("\n"):t}function Tle(t,i){const{element:e,datasetIndex:n,index:o}=i,s=t.getDatasetMeta(n).controller,{label:r,value:a}=s.getLabelAndValue(o);return{chart:t,label:r,parsed:s.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:s.getDataset(),dataIndex:o,datasetIndex:n,element:e}}function LM(t,i){const e=t.chart.ctx,{body:n,footer:o,title:s}=t,{boxWidth:r,boxHeight:a}=i,l=ui(i.bodyFont),c=ui(i.titleFont),u=ui(i.footerFont),p=s.length,m=o.length,_=n.length,b=Pi(i.padding);let E=b.height,P=0,W=n.reduce((Ce,ve)=>Ce+ve.before.length+ve.lines.length+ve.after.length,0);W+=t.beforeBody.length+t.afterBody.length,p&&(E+=p*c.lineHeight+(p-1)*i.titleSpacing+i.titleMarginBottom),W&&(E+=_*(i.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(W-_)*l.lineHeight+(W-1)*i.bodySpacing),m&&(E+=i.footerMarginTop+m*u.lineHeight+(m-1)*i.footerSpacing);let te=0;const fe=function(Ce){P=Math.max(P,e.measureText(Ce).width+te)};return e.save(),e.font=c.string,_n(t.title,fe),e.font=l.string,_n(t.beforeBody.concat(t.afterBody),fe),te=i.displayColors?r+2+i.boxPadding:0,_n(n,Ce=>{_n(Ce.before,fe),_n(Ce.lines,fe),_n(Ce.after,fe)}),te=0,e.font=u.string,_n(t.footer,fe),e.restore(),P+=b.width,{width:P,height:E}}function Dle(t,i,e,n){const{x:o,width:s}=e,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=o<=(a+l)/2?"left":"right":o<=s/2?c="left":o>=r-s/2&&(c="right"),function Ele(t,i,e,n){const{x:o,width:s}=n,r=e.caretSize+e.caretPadding;if("left"===t&&o+s+r>i.width||"right"===t&&o-s-r<0)return!0}(c,t,i,e)&&(c="center"),c}function PM(t,i,e){const n=e.yAlign||i.yAlign||function Sle(t,i){const{y:e,height:n}=i;return et.height-n/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||i.xAlign||Dle(t,i,e,n),yAlign:n}}function FM(t,i,e,n){const{caretSize:o,caretPadding:s,cornerRadius:r}=t,{xAlign:a,yAlign:l}=e,c=o+s,{topLeft:u,topRight:p,bottomLeft:m,bottomRight:_}=Ca(r);let b=function kle(t,i){let{x:e,width:n}=t;return"right"===i?e-=n:"center"===i&&(e-=n/2),e}(i,a);const E=function Mle(t,i,e){let{y:n,height:o}=t;return"top"===i?n+=e:n-="bottom"===i?o+e:o/2,n}(i,l,c);return"center"===l?"left"===a?b+=c:"right"===a&&(b-=c):"left"===a?b-=Math.max(u,m)+o:"right"===a&&(b+=Math.max(p,_)+o),{x:pi(b,0,n.width-i.width),y:pi(E,0,n.height-i.height)}}function Qf(t,i,e){const n=Pi(e.padding);return"center"===i?t.x+t.width/2:"right"===i?t.x+t.width-n.right:t.x+n.left}function RM(t){return ys([],nr(t))}function NM(t,i){const e=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return e?t.override(e):t}let VM=(()=>{class t extends Xo{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&n.options.animation&&o.animations,r=new O3(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=function Ole(t,i,e){return Vr(t,{tooltip:i,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,s=o.beforeTitle.apply(this,[e]),r=o.title.apply(this,[e]),a=o.afterTitle.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}getBeforeBody(e,n){return RM(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:o}=n,s=[];return _n(e,r=>{const a={before:[],lines:[],after:[]},l=NM(o,r);ys(a.before,nr(l.beforeLabel.call(this,r))),ys(a.lines,l.label.call(this,r)),ys(a.after,nr(l.afterLabel.call(this,r))),s.push(a)}),s}getAfterBody(e,n){return RM(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:o}=n,s=o.beforeFooter.apply(this,[e]),r=o.footer.apply(this,[e]),a=o.afterFooter.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}_createItems(e){const n=this._active,o=this.chart.data,s=[],r=[],a=[];let c,u,l=[];for(c=0,u=n.length;ce.filter(p,m,_,o))),e.itemSort&&(l=l.sort((p,m)=>e.itemSort(p,m,o))),_n(l,p=>{const m=NM(e.callbacks,p);s.push(m.labelColor.call(this,p)),r.push(m.labelPointStyle.call(this,p)),a.push(m.labelTextColor.call(this,p))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(e,n){const o=this.options.setContext(this.getContext()),s=this._active;let r,a=[];if(s.length){const l=ld[o.position].call(this,s,this._eventPosition);a=this._createItems(o),this.title=this.getTitle(a,o),this.beforeBody=this.getBeforeBody(a,o),this.body=this.getBody(a,o),this.afterBody=this.getAfterBody(a,o),this.footer=this.getFooter(a,o);const c=this._size=LM(this,o),u=Object.assign({},l,c),p=PM(this.chart,o,u),m=FM(o,u,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,r={opacity:1,x:m.x,y:m.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,s){const r=this.getCaretPosition(e,o,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,o){const{xAlign:s,yAlign:r}=this,{caretSize:a,cornerRadius:l}=o,{topLeft:c,topRight:u,bottomLeft:p,bottomRight:m}=Ca(l),{x:_,y:b}=e,{width:E,height:P}=n;let W,te,fe,Ce,ve,ke;return"center"===r?(ve=b+P/2,"left"===s?(W=_,te=W-a,Ce=ve+a,ke=ve-a):(W=_+E,te=W+a,Ce=ve-a,ke=ve+a),fe=W):(te="left"===s?_+Math.max(c,p)+a:"right"===s?_+E-Math.max(u,m)-a:this.caretX,"top"===r?(Ce=b,ve=Ce-a,W=te-a,fe=te+a):(Ce=b+P,ve=Ce+a,W=te+a,fe=te-a),ke=Ce),{x1:W,x2:te,x3:fe,y1:Ce,y2:ve,y3:ke}}drawTitle(e,n,o){const s=this.title,r=s.length;let a,l,c;if(r){const u=Zl(o.rtl,this.x,this.width);for(e.x=Qf(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",a=ui(o.titleFont),l=o.titleSpacing,n.fillStyle=o.titleColor,n.font=a.string,c=0;c0!==Ce)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Yu(e,{x:W,y:P,w:u,h:c,radius:fe}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Yu(e,{x:te,y:P+1,w:u-2,h:c-2,radius:fe}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(W,P,u,c),e.strokeRect(W,P,u,c),e.fillStyle=a.backgroundColor,e.fillRect(te,P+1,u-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:s}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:p}=o,m=ui(o.bodyFont);let _=m.lineHeight,b=0;const E=Zl(o.rtl,this.x,this.width),P=function(Ke){n.fillText(Ke,E.x(e.x+b),e.y+_/2),e.y+=_+r},W=E.textAlign(a);let te,fe,Ce,ve,ke,Pe,$e;for(n.textAlign=a,n.textBaseline="middle",n.font=m.string,e.x=Qf(this,W,o),n.fillStyle=o.bodyColor,_n(this.beforeBody,P),b=l&&"right"!==W?"center"===a?u/2+p:u+2+p:0,ve=0,Pe=s.length;ve0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,s=o&&o.x,r=o&&o.y;if(s||r){const a=ld[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=LM(this,e),c=Object.assign({},a,this._size),u=PM(n,e,c),p=FM(e,c,u,n);(s._to!==p.x||r._to!==p.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const a=Pi(n.padding);n.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=o,this.drawBackground(r,e,s,n),x3(e,n.textDirection),r.y+=a.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),A3(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,s=e.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),r=!xf(o,s),a=this._positionChanged(s,n);(r||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],a=this._getActiveElements(e,r,n,o),l=this._positionChanged(a,e),c=n||!xf(a,r)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,o,s){const r=this.options;if("mouseout"===e.type)return[];if(!s)return n;const a=this.chart.getElementsAtEventForMode(e,r.mode,r,o);return r.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:o,caretY:s,options:r}=this,a=ld[r.position].call(this,e,n);return!1!==a&&(o!==a.x||s!==a.y)}}return t.positioners=ld,t})();var Ple=Object.freeze({__proto__:null,Decimation:Jae,Filler:Cle,Legend:yle,SubTitle:wle,Title:Ale,Tooltip:{id:"tooltip",_element:VM,positioners:ld,afterInit(t,i,e){e&&(t.tooltip=new VM({chart:t,options:e}))},beforeUpdate(t,i,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,i,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const i=t.tooltip;if(i&&i._willRender()){const e={tooltip:i};if(!1===t.notifyPlugins("beforeTooltipDraw",e))return;i.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,i){t.tooltip&&t.tooltip.handleEvent(i.event,i.replay,i.inChartArea)&&(i.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,i)=>i.bodyFont.size,boxWidth:(t,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ys,title(t){if(t.length>0){const i=t[0],e=i.chart.data.labels,n=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return i.dataset.label||"";if(i.label)return i.label;if(n>0&&i.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Zf extends xa{constructor(i){super(i),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(i){const e=this._addedLabels;if(e.length){const n=this.getLabels();for(const{index:o,label:s}of e)n[o]===s&&n.splice(o,1);this._addedLabels=[]}super.init(i)}parse(i,e){if(tn(i))return null;const n=this.getLabels();return((t,i)=>null===t?null:pi(Math.round(t),0,i))(e=isFinite(e)&&n[e]===i?e:function Rle(t,i,e,n){const o=t.indexOf(i);return-1===o?((t,i,e,n)=>("string"==typeof i?(e=t.push(i)-1,n.unshift({index:e,label:i})):isNaN(i)&&(e=null),e))(t,i,e,n):o!==t.lastIndexOf(i)?e:o}(n,i,Nt(e,i),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(i||(n=0),e||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const i=this.min,e=this.max,n=this.options.offset,o=[];let s=this.getLabels();s=0===i&&e===s.length-1?s:s.slice(i,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let r=i;r<=e;r++)o.push({value:r});return o}getLabelForValue(i){const e=this.getLabels();return i>=0&&ie.length-1?null:this.getPixelForValue(e[i].value)}getValueForPixel(i){return Math.round(this._startValue+this.getDecimalForPixel(i)*this._valueRange)}getBasePixel(){return this.bottom}}function BM(t,i,{horizontal:e,minRotation:n}){const o=Yo(n),s=(e?Math.sin(o):Math.cos(o))||.001;return Math.min(i/s,.75*i*(""+t).length)}Zf.id="category",Zf.defaults={ticks:{callback:Zf.prototype.getLabelForValue}};class Yf extends xa{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,e){return tn(i)||("number"==typeof i||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){const{beginAtZero:i}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:s}=this;const r=l=>o=e?o:l,a=l=>s=n?s:l;if(i){const l=Cs(o),c=Cs(s);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(o===s){let l=1;(s>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(.05*s)),a(s+l),i||r(o-l)}this.min=o,this.max=s}getTickLimit(){const i=this.options.ticks;let o,{maxTicksLimit:e,stepSize:n}=i;return n?(o=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const i=this.options,e=i.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function Vle(t,i){const e=[],{bounds:o,step:s,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:p,includeBounds:m}=t,_=s||1,b=u-1,{min:E,max:P}=i,W=!tn(r),te=!tn(a),fe=!tn(c),Ce=(P-E)/(p+1);let ke,Pe,$e,Ke,ve=Vk((P-E)/b/_)*_;if(ve<1e-14&&!W&&!te)return[{value:E},{value:P}];Ke=Math.ceil(P/ve)-Math.floor(E/ve),Ke>b&&(ve=Vk(Ke*ve/b/_)*_),tn(l)||(ke=Math.pow(10,l),ve=Math.ceil(ve*ke)/ke),"ticks"===o?(Pe=Math.floor(E/ve)*ve,$e=Math.ceil(P/ve)*ve):(Pe=E,$e=P),W&&te&&s&&function _oe(t,i){const e=Math.round(t);return e-i<=t&&e+i>=t}((a-r)/s,ve/1e3)?(Ke=Math.round(Math.min((a-r)/ve,u)),ve=(a-r)/Ke,Pe=r,$e=a):fe?(Pe=W?r:Pe,$e=te?a:$e,Ke=c-1,ve=($e-Pe)/Ke):(Ke=($e-Pe)/ve,Ke=$u(Ke,Math.round(Ke),ve/1e3)?Math.round(Ke):Math.ceil(Ke));const pt=Math.max(Hk(ve),Hk(Pe));ke=Math.pow(10,tn(l)?pt:l),Pe=Math.round(Pe*ke)/ke,$e=Math.round($e*ke)/ke;let jt=0;for(W&&(m&&Pe!==r?(e.push({value:r}),Pe0?n:null;this._zero=!0}determineDataLimits(){const{min:i,max:e}=this.getMinMax(!0);this.min=ti(i)?Math.max(0,i):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let n=this.min,o=this.max;const s=l=>n=i?n:l,r=l=>o=e?o:l,a=(l,c)=>Math.pow(10,Math.floor(Ro(l))+c);n===o&&(n<=0?(s(1),r(10)):(s(a(n,-1)),r(a(o,1)))),n<=0&&s(a(o,-1)),o<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&s(a(n,-1)),this.min=n,this.max=o}buildTicks(){const i=this.options,n=function Ble(t,i){const e=Math.floor(Ro(i.max)),n=Math.ceil(i.max/Math.pow(10,e)),o=[];let s=Po(t.min,Math.pow(10,Math.floor(Ro(i.min)))),r=Math.floor(Ro(s)),a=Math.floor(s/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:s,major:HM(s)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),s=Math.round(a*Math.pow(10,r)*l)/l}while(ro?{start:i-e,end:i}:{start:i,end:i+e}}function jle(t,i,e,n,o){const s=Math.abs(Math.sin(e)),r=Math.abs(Math.cos(e));let a=0,l=0;n.starti.r&&(a=(n.end-i.r)/s,t.r=Math.max(t.r,i.r+a)),o.starti.b&&(l=(o.end-i.b)/r,t.b=Math.max(t.b,i.b+l))}function $le(t){return 0===t||180===t?"center":t<180?"left":"right"}function Kle(t,i,e){return"right"===e?t-=i:"center"===e&&(t-=i/2),t}function Gle(t,i,e){return 90===e||270===e?t-=i/2:(e>270||e<90)&&(t-=i),t}function jM(t,i,e,n){const{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,i,0,Cn);else{let s=t.getPointPosition(0,i);o.moveTo(s.x,s.y);for(let r=1;r{const o=Mn(this.options.pointLabels.callback,[e,n],this);return o||0===o?o:""}).filter((e,n)=>this.chart.getDataVisibility(n))}fit(){const i=this.options;i.display&&i.pointLabels.display?function zle(t){const i={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},i),n=[],o=[],s=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?Vn/s:0;for(let l=0;l=0&&i=0;o--){const s=n.setContext(t.getPointLabelContext(o)),r=ui(s.font),{x:a,y:l,textAlign:c,left:u,top:p,right:m,bottom:_}=t._pointLabelItems[o],{backdropColor:b}=s;if(!tn(b)){const E=Ca(s.borderRadius),P=Pi(s.backdropPadding);e.fillStyle=b;const W=u-P.left,te=p-P.top,fe=m-u+P.width,Ce=_-p+P.height;Object.values(E).some(ve=>0!==ve)?(e.beginPath(),Yu(e,{x:W,y:te,w:fe,h:Ce,radius:E}),e.fill()):e.fillRect(W,te,fe,Ce)}Ia(e,t._pointLabels[o],a,l+r.lineHeight/2,r,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),o.display&&this.ticks.forEach((c,u)=>{0!==u&&(a=this.getDistanceFromCenterForValue(c.value),function Wle(t,i,e,n){const o=t.ctx,s=i.circular,{color:r,lineWidth:a}=i;!s&&!n||!r||!a||e<0||(o.save(),o.strokeStyle=r,o.lineWidth=a,o.setLineDash(i.borderDash),o.lineDashOffset=i.borderDashOffset,o.beginPath(),jM(t,e,s,n),o.closePath(),o.stroke(),o.restore())}(this,o.setContext(this.getContext(u-1)),a,s))}),n.display){for(i.save(),r=s-1;r>=0;r--){const c=n.setContext(this.getPointLabelContext(r)),{color:u,lineWidth:p}=c;!p||!u||(i.lineWidth=p,i.strokeStyle=u,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(l.x,l.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){const i=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let s,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(o),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const c=n.setContext(this.getContext(l)),u=ui(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=u.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;const p=Pi(c.backdropPadding);i.fillRect(-r/2-p.left,-s-u.size/2-p.top,r+p.width,u.size+p.height)}Ia(i,a.label,0,-s,u,{color:c.color})}),i.restore()}drawTitle(){}}cd.id="radialLinear",cd.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},cd.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},cd.descriptors={angleLines:{_fallback:"grid"}};const Xf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},so=Object.keys(Xf);function Zle(t,i){return t-i}function UM(t,i){if(tn(i))return null;const e=t._adapter,{parser:n,round:o,isoWeekday:s}=t._parseOpts;let r=i;return"function"==typeof n&&(r=n(r)),ti(r)||(r="string"==typeof n?e.parse(r,n):e.parse(r)),null===r?null:(o&&(r="week"!==o||!Gl(s)&&!0!==s?e.startOf(r,o):e.startOf(r,"isoWeek",s)),+r)}function $M(t,i,e,n){const o=so.length;for(let s=so.indexOf(t);s=i?e[n]:e[o]]=!0}}else t[i]=!0}function GM(t,i,e){const n=[],o={},s=i.length;let r,a;for(r=0;r=0&&(i[l].major=!0);return i}(t,n,o,e):n}let gv=(()=>{class t extends xa{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const o=e.time||(e.time={}),s=this._adapter=new Vre._date(e.adapters.date);s.init(n),ju(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:UM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:s,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!l&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!a||!l)&&(c(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&c(this.getMinMax(!1))),s=ti(s)&&!isNaN(s)?s:+n.startOf(Date.now(),o),r=ti(r)&&!isNaN(r)?r:+n.endOf(Date.now(),o)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,s="labels"===o.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,l=function boe(t,i,e){let n=0,o=t.length;for(;nn&&t[o-1]>e;)o--;return n>0||o=so.indexOf(e);s--){const r=so[s];if(Xf[r].common&&t._adapter.diff(o,n,r)>=i-1)return r}return so[e?so.indexOf(e):0]}(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=o.major.enabled&&"year"!==this._unit?function Xle(t){for(let i=so.indexOf(t)+1,e=so.length;i+e.value))}initOffsets(e){let s,r,n=0,o=0;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),n=1===e.length?1-s:(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),o=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=pi(n,0,a),o=pi(o,0,a),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,s=this.options,r=s.time,a=r.unit||$M(r.minUnit,n,o,this._getLabelCapacity(n)),l=Nt(r.stepSize,1),c="week"===a&&r.isoWeekday,u=Gl(c)||!0===c,p={};let _,b,m=n;if(u&&(m=+e.startOf(m,"isoWeek",c)),m=+e.startOf(m,u?"day":a),e.diff(o,n,a)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+a);const E="data"===s.ticks.source&&this.getDataTimestamps();for(_=m,b=0;_P-W).map(P=>+P)}getLabelForValue(e){const o=this.options.time;return this._adapter.format(e,o.tooltipFormat?o.tooltipFormat:o.displayFormats.datetime)}_tickFormatFunction(e,n,o,s){const r=this.options,a=r.time.displayFormats,l=this._unit,c=this._majorUnit,p=c&&a[c],m=o[n],b=this._adapter.format(e,s||(c&&p&&m&&m.major?p:l&&a[l])),E=r.ticks.callback;return E?Mn(E,[b,n,o],this):b}generateTickLabels(e){let n,o,s;for(n=0,o=e.length;n0?l:1}getDataTimestamps(){let n,o,e=this._cache.data||[];if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,o=s.length;n=t[n].pos&&i<=t[o].pos&&({lo:n,hi:o}=Js(t,"pos",i)),({pos:s,time:a}=t[n]),({pos:r,time:l}=t[o])):(i>=t[n].time&&i<=t[o].time&&({lo:n,hi:o}=Js(t,"time",i)),({time:s,pos:a}=t[n]),({time:r,pos:l}=t[o]));const c=r-s;return c?a+(l-a)*(i-s)/c:a}class mv extends gv{constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const i=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(i);this._minPos=Jf(e,this.min),this._tableRange=Jf(e,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){const{min:e,max:n}=this,o=[],s=[];let r,a,l,c,u;for(r=0,a=i.length;r=e&&c<=n&&o.push(c);if(o.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=o.length;r{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const nce=["list"];function ice(t,i){1&t&&le(0,"li",5)}function oce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function sce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function rce(t,i){if(1&t&&(we(0),g(1,oce,1,2,"AngleDownIcon",19),g(2,sce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function ace(t,i){}function lce(t,i){1&t&&g(0,ace,0,0,"ng-template")}function cce(t,i){if(1&t&&(we(0),g(1,rce,3,2,"ng-container",8),g(2,lce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function uce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function dce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function pce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function hce(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit;d("ngClass",e.badgeStyleClass),h(1),dt(e.badge)}}const WM=function(t){return{"p-disabled":t}};function fce(t,i){if(1&t&&(x(0,"a",13),g(1,cce,3,2,"ng-container",8),g(2,uce,1,2,"span",14),g(3,dce,2,1,"span",15),g(4,pce,1,1,"ng-template",null,16,In),g(6,hce,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("ngClass",He(10,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==(null==n.item?null:n.item.escape))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function gce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function mce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function _ce(t,i){if(1&t&&(we(0),g(1,gce,1,2,"AngleDownIcon",19),g(2,mce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Ice(t,i){}function Cce(t,i){1&t&&g(0,Ice,0,0,"ng-template")}function vce(t,i){if(1&t&&(we(0),g(1,_ce,3,2,"ng-container",8),g(2,Cce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function bce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function yce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function xce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Ace(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}const QM=function(){return{exact:!1}};function wce(t,i){if(1&t&&(x(0,"a",25),g(1,vce,3,2,"ng-container",8),g(2,bce,1,2,"span",14),g(3,yce,2,1,"span",15),g(4,xce,1,1,"ng-template",null,26,In),g(6,Ace,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(20,QM))("ngClass",He(21,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("title",o.getItemProp(n,"title"))("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function Tce(t,i){if(1&t&&(we(0),g(1,fce,7,12,"a",11),g(2,wce,7,23,"a",12),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function Sce(t,i){}function Ece(t,i){1&t&&g(0,Sce,0,0,"ng-template")}const Dce=function(t){return{$implicit:t}};function kce(t,i){if(1&t&&(we(0),g(1,Ece,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,Dce,e.item))}}function Mce(t,i){if(1&t){const e=De();x(0,"p-panelMenuSub",28),me("itemToggle",function(o){return G(e),q(f(3).onItemToggle(o))}),A()}if(2&t){const e=f(2).$implicit,n=f();d("id",n.getItemId(e)+"_list")("panelId",n.panelId)("items",e.items)("itemTemplate",n.itemTemplate)("transitionOptions",n.transitionOptions)("focusedItemId",n.focusedItemId)("activeItemPath",n.activeItemPath)("level",n.level+1)("parentExpanded",!!n.parentExpanded&&n.isItemExpanded(e))}}function Oce(t,i){if(1&t){const e=De();x(0,"li",6)(1,"div",7),me("click",function(o){G(e);const s=f().$implicit;return q(f().onItemClick(o,s))}),g(2,Tce,3,2,"ng-container",8),g(3,kce,2,4,"ng-container",8),A(),x(4,"div",9),g(5,Mce,1,9,"p-panelMenuSub",10),A()()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();Ve(s.getItemProp(n,"styleClass")),Ii("p-hidden",!1===n.visible)("p-focus",s.isItemFocused(n)&&!s.isItemDisabled(n)),d("ngClass",s.getItemClass(n))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("aria-label",s.getItemProp(n,"label"))("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o))("data-p-disabled",s.isItemDisabled(n)),h(2),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("@submenu",s.getAnimation(n)),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Lce(t,i){if(1&t&&(g(0,ice,1,0,"li",3),g(1,Oce,6,21,"li",4)),2&t){const e=i.$implicit,n=f();d("ngIf",e.separator),h(1),d("ngIf",!e.separator&&n.isItemVisible(e))}}const Pce=function(t){return{"p-submenu-list":!0,"p-panelmenu-root-list":t}},Fce=["submenu"],Rce=["container"];function Nce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Vce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Bce(t,i){if(1&t&&(we(0),g(1,Nce,1,1,"ChevronDownIcon",17),g(2,Vce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Hce(t,i){}function zce(t,i){1&t&&g(0,Hce,0,0,"ng-template")}function jce(t,i){if(1&t&&(we(0),g(1,Bce,3,2,"ng-container",11),g(2,zce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function Uce(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function $ce(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function Kce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Gce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function qce(t,i){if(1&t&&(x(0,"a",10),g(1,jce,3,2,"ng-container",11),g(2,Uce,1,2,"span",12),g(3,$ce,2,1,"span",13),g(4,Kce,1,1,"ng-template",null,14,In),g(6,Gce,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("tabindex",-1)("title",o.getItemProp(n,"title"))("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}function Wce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Qce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Zce(t,i){if(1&t&&(we(0),g(1,Wce,1,1,"ChevronDownIcon",17),g(2,Qce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Yce(t,i){}function Xce(t,i){1&t&&g(0,Yce,0,0,"ng-template")}function Jce(t,i){if(1&t&&(we(0),g(1,Zce,3,2,"ng-container",11),g(2,Xce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function eue(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function tue(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function nue(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function iue(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function oue(t,i){if(1&t&&(x(0,"a",23),g(1,Jce,3,2,"ng-container",11),g(2,eue,1,2,"span",12),g(3,tue,2,1,"span",13),g(4,nue,1,1,"ng-template",null,24,In),g(6,iue,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(18,QM))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("tabindex",-1)("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}const sue=function(t){return{"p-panelmenu-expanded":t}};function rue(t,i){if(1&t){const e=De();x(0,"div",25),me("@rootItem.done",function(){return G(e),q(f(3).onToggleDone())}),x(1,"div",26)(2,"p-panelMenuList",27),me("headerFocus",function(o){return G(e),q(f(3).updateFocusedHeader(o))}),A()()()}if(2&t){const e=f(2),n=e.$implicit,o=e.index,s=f();d("ngClass",He(14,sue,s.isItemActive(n)))("@rootItem",s.getAnimation(n)),K("id",s.getContentId(n,o))("aria-labelledby",s.getHeaderId(n,o))("data-pc-section","toggleablecontent"),h(1),K("data-pc-section","menucontent"),h(1),d("panelId",s.getPanelId(o,n))("items",s.getItemProp(n,"items"))("itemTemplate",s.itemTemplate)("transitionOptions",s.transitionOptions)("root",!0)("activeItem",s.activeItem())("tabindex",s.tabindex)("parentExpanded",s.isItemActive(n))}}const aue=function(t,i){return{"p-component p-panelmenu-header":!0,"p-highlight":t,"p-disabled":i}};function lue(t,i){if(1&t){const e=De();x(0,"div",4)(1,"div",5),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderClick(o,r,a))})("keydown",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderKeyDown(o,r,a))}),x(2,"div",6),g(3,qce,7,10,"a",7),g(4,oue,7,19,"a",8),A()(),g(5,rue,3,16,"div",9),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();d("ngClass",s.getItemProp(n,"headerClass"))("ngStyle",s.getItemProp(n,"style")),K("data-pc-section","panel"),h(1),Ve(s.getItemProp(n,"styleClass")),d("ngClass",mt(21,aue,s.isItemActive(n),s.isItemDisabled(n)))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tabindex",0)("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getHeaderId(n,o))("aria-expanded",s.isItemActive(n))("aria-label",s.getItemProp(n,"label"))("aria-controls",s.getContentId(n,o))("aria-disabled",s.isItemDisabled(n))("data-p-highlight",s.isItemActive(n))("data-p-disabled",s.isItemDisabled(n))("data-pc-section","header"),h(2),d("ngIf",!s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.isItemGroup(n))}}function cue(t,i){if(1&t&&(we(0),g(1,lue,6,24,"div",3),Te()),2&t){const e=i.$implicit,n=f();h(1),d("ngIf",n.isItemVisible(e))}}let due=(()=>{class t{panelMenu;el;panelId;focusedItemId;items;itemTemplate;level=0;activeItemPath;root;tabindex;transitionOptions;parentExpanded;itemToggle=new ge;menuFocus=new ge;menuBlur=new ge;menuKeyDown=new ge;listViewChild;constructor(e,n){this.panelMenu=e,this.el=n}getItemId(e){return e.item?.id??`${this.panelId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{"p-menuitem":!0,"p-disabled":this.isItemDisabled(e)}}getItemProp(e,n,o){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemExpanded(e){return e.expanded}isItemActive(e){return this.isItemExpanded(e)||this.activeItemPath.some(n=>n&&n.key===e.key)}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}getAnimation(e){return this.isItemActive(e)?{value:"visible",params:{transitionParams:this.transitionOptions,height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}onItemClick(e,n){this.isItemDisabled(n)||(this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemToggle.emit({processedItem:n,expanded:!this.isItemActive(n)}))}onItemToggle(e){this.itemToggle.emit(e)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ZM)),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuSub"]],viewQuery:function(n,o){if(1&n&&je(nce,5),2&n){let s;Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",focusedItemId:"focusedItemId",items:"items",itemTemplate:"itemTemplate",level:"level",activeItemPath:"activeItemPath",root:"root",tabindex:"tabindex",transitionOptions:"transitionOptions",parentExpanded:"parentExpanded"},outputs:{itemToggle:"itemToggle",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeyDown:"menuKeyDown"},decls:3,vars:8,consts:[["role","tree",3,"ngClass","tabindex","focusin","focusout","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",4,"ngIf"],["role","treeitem",3,"ngClass","class","p-hidden","p-focus","ngStyle","pTooltip","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator"],["role","treeitem",3,"ngClass","ngStyle","pTooltip","tooltipOptions"],[1,"p-menuitem-content",3,"click"],[4,"ngIf"],[1,"p-toggleable-content"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle",4,"ngIf"],["class","p-menuitem-link",3,"ngClass","target",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],[1,"p-menuitem-link",3,"ngClass","target"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle"]],template:function(n,o){1&n&&(x(0,"ul",0,1),me("focusin",function(r){return o.menuFocus.emit(r)})("focusout",function(r){return o.menuBlur.emit(r)})("keydown",function(r){return o.menuKeyDown.emit(r)}),g(2,Lce,2,2,"ng-template",2),A()),2&n&&(d("ngClass",He(6,Pce,o.root))("tabindex",-1),K("aria-activedescendant",o.focusedItemId)("data-pc-section","menu")("aria-hidden",!o.parentExpanded),h(2),d("ngForOf",o.items))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,Or,Zo,t]},encapsulation:2,data:{animation:[Oo("submenu",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]}})}return t})(),pue=(()=>{class t{panelId;id;items;itemTemplate;parentExpanded;expanded;transitionOptions;root;tabindex;activeItem;itemToggle=new ge;headerFocus=new ge;subMenuViewChild;searchTimeout;searchValue;focused;focusedItem=bn(null);activeItemPath=bn([]);processedItems=bn([]);visibleItems=Ds(()=>{const e=this.processedItems();return this.flatItems(e)});get focusedItemId(){const e=this.focusedItem();return e&&e.item?.id?e.item.id:be.isNotEmpty(this.focusedItem())?`${this.panelId}_${this.focusedItem().key}`:void 0}ngOnChanges(e){e&&e.items&&e.items.currentValue&&this.processedItems.set(this.createProcessedItems(e.items.currentValue||[]))}getItemProp(e,n){return e&&e.item?be.getItemValue(e.item[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemActive(e){return this.activeItemPath().some(n=>n.key===e.parentKey)}isItemGroup(e){return be.isNotEmpty(e.items)}isElementInPanel(e,n){const o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)}isItemMatched(e){return this.isValidItem(e)&&this.getItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isVisibleItem(e){return!!e&&(0===e.level||this.isItemActive(e))&&this.isItemVisible(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e)&&!e.separator}findFirstItem(){return this.visibleItems().find(e=>this.isValidItem(e))}findLastItem(){return be.findLast(this.visibleItems(),e=>this.isValidItem(e))}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={icon:a.icon,expanded:a.expanded,separator:a.separator,item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}findProcessedItemByItemKey(e,n,o=0){if((n=n||this.processedItems())&&n.length)for(let s=0;s{this.isVisibleItem(o)&&(n.push(o),this.flatItems(o.items,n))}),n}changeFocusedItem(e){const{originalEvent:n,processedItem:o,focusOnNext:s,selfCheck:r,allowHeaderFocus:a=!0}=e;be.isNotEmpty(this.focusedItem())&&this.focusedItem().key!==o.key?(this.focusedItem.set(o),this.scrollInView()):a&&this.headerFocus.emit({originalEvent:n,focusOnNext:s,selfCheck:r})}scrollInView(){const e=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`);e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"nearest"})}onFocus(e){this.focused=!0;const n=this.focusedItem()||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem());null!==e.relatedTarget&&this.focusedItem.set(n)}onBlur(e){this.focused=!1,this.focusedItem.set(null),this.searchValue=""}onItemToggle(e){const{processedItem:n,expanded:o}=e;n.expanded=!n.expanded;const s=this.activeItemPath().filter(r=>r.parentKey!==n.parentKey);o&&s.push(n),this.activeItemPath.set(s),this.processedItems.mutate(r=>r.map(a=>a===n?n:a)),this.focusedItem.set(n)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findNextItem(this.focusedItem()):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()}onArrowUpKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findPrevItem(this.focusedItem()):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()}onArrowLeftKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.activeItemPath().some(o=>o.key===this.focusedItem().key)){const o=this.activeItemPath().filter(s=>s.key!==this.focusedItem().key);this.activeItemPath.set(o)}else{const o=be.isNotEmpty(this.focusedItem().parent)?this.focusedItem().parent:this.focusedItem();this.focusedItem.set(o)}e.preventDefault()}}onArrowRightKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.isItemGroup(this.focusedItem()))if(this.activeItemPath().some(s=>s.key===this.focusedItem().key))this.onArrowDownKey(e);else{const s=this.activeItemPath().filter(r=>r.parentKey!==this.focusedItem().parentKey);s.push(this.focusedItem()),this.activeItemPath.set(s)}e.preventDefault()}}onHomeKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()}onEndKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()}onEnterKey(e){if(be.isNotEmpty(this.focusedItem())){const n=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&(j.findSingle(n,'[data-pc-section="action"]')||j.findSingle(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(nthis.isValidItem(s)):void 0)||e}findPrevItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(n>0?be.findLast(this.visibleItems().slice(0,n),s=>this.isValidItem(s)):void 0)||e}searchItems(e,n){this.searchValue=(this.searchValue||"")+n;let o=null,s=!1;if(be.isNotEmpty(this.focusedItem())){const r=this.visibleItems().findIndex(a=>a.key===this.focusedItem().key);o=this.visibleItems().slice(r).find(a=>this.isItemMatched(a)),o=be.isEmpty(o)?this.visibleItems().slice(0,r).find(a=>this.isItemMatched(a)):o}else o=this.visibleItems().find(r=>this.isItemMatched(r));return be.isNotEmpty(o)&&(s=!0),be.isEmpty(o)&&be.isEmpty(this.focusedItem())&&(o=this.findFirstItem()),be.isNotEmpty(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuList"]],viewQuery:function(n,o){if(1&n&&je(Fce,5),2&n){let s;Se(s=Ee())&&(o.subMenuViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",id:"id",items:"items",itemTemplate:"itemTemplate",parentExpanded:"parentExpanded",expanded:"expanded",transitionOptions:"transitionOptions",root:"root",tabindex:"tabindex",activeItem:"activeItem"},outputs:{itemToggle:"itemToggle",headerFocus:"headerFocus"},features:[Hn],decls:2,vars:10,consts:[[3,"root","id","panelId","tabindex","itemTemplate","focusedItemId","activeItemPath","transitionOptions","items","parentExpanded","itemToggle","keydown","menuFocus","menuBlur"],["submenu",""]],template:function(n,o){1&n&&(x(0,"p-panelMenuSub",0,1),me("itemToggle",function(r){return o.onItemToggle(r)})("keydown",function(r){return o.onKeyDown(r)})("menuFocus",function(r){return o.onFocus(r)})("menuBlur",function(r){return o.onBlur(r)}),A()),2&n&&d("root",!0)("id",o.panelId+"_list")("panelId",o.panelId)("tabindex",o.tabindex)("itemTemplate",o.itemTemplate)("focusedItemId",o.focused?o.focusedItemId:void 0)("activeItemPath",o.activeItemPath())("transitionOptions",o.transitionOptions)("items",o.processedItems())("parentExpanded",o.parentExpanded)},dependencies:[due],styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,changeDetection:0})}return t})(),ZM=(()=>{class t{cd;model;style;styleClass;multiple=!1;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";id;tabindex=0;templates;containerViewChild;submenuIconTemplate;itemTemplate;animating;activeItem=bn(null);ngOnInit(){this.id=this.id||$t()}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}constructor(e){this.cd=e}collapseAll(){for(let e of this.model)e.expanded&&(e.expanded=!1);this.cd.detectChanges()}onToggleDone(){this.animating=!1}changeActiveItem(e,n,o,s=!1){if(!this.isItemDisabled(n)){const r=s?n:this.activeItem&&be.equals(n,this.activeItem)?null:n;this.activeItem.set(r)}}getAnimation(e){return e.expanded?{value:"visible",params:{transitionParams:this.animating?this.transitionOptions:"0ms",height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemActive(e){return e.expanded}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemGroup(e){return be.isNotEmpty(e.items)}getPanelId(e,n){return n&&n.id?n.id:`${this.id}_${e}`}getHeaderId(e,n){return e.id?e.id+"_header":`${this.getPanelId(n)}_header`}getContentId(e,n){return e.id?e.id+"_content":`${this.getPanelId(n)}_content`}updateFocusedHeader(e){const{originalEvent:n,focusOnNext:o,selfCheck:s}=e,r=n.currentTarget.closest('[data-pc-section="panel"]'),a=s?j.findSingle(r,'[data-pc-section="header"]'):o?this.findNextHeader(r):this.findPrevHeader(r);a?this.changeFocusedHeader(n,a):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)}changeFocusedHeader(e,n){n&&j.focus(n)}findNextHeader(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeader(s.parentElement):s:null}findPrevHeader(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeader(s.parentElement):s:null}findFirstHeader(){return this.findNextHeader(this.containerViewChild.nativeElement.firstElementChild,!0)}findLastHeader(){return this.findPrevHeader(this.containerViewChild.nativeElement.lastElementChild,!0)}onHeaderClick(e,n,o){if(this.isItemDisabled(n))e.preventDefault();else{if(n.command&&n.command({originalEvent:e,item:n}),!this.multiple)for(let s of this.model)n!==s&&s.expanded&&(s.expanded=!1);n.expanded=!n.expanded,this.changeActiveItem(e,n,o),this.animating=!0,j.focus(e.currentTarget)}}onHeaderKeyDown(e,n,o){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"Space":this.onHeaderEnterKey(e,n,o)}}onHeaderArrowDownKey(e){const n=!0===j.getAttribute(e.currentTarget,"data-p-highlight")?j.findSingle(e.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;n?j.focus(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()}onHeaderArrowUpKey(e){const n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=!0===j.getAttribute(n,"data-p-highlight")?j.findSingle(n.nextElementSibling,'[data-pc-section="menu"]'):null;o?j.focus(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()}onHeaderHomeKey(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()}onHeaderEndKey(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()}onHeaderEnterKey(e,n,o){const s=j.findSingle(e.currentTarget,'[data-pc-section="headeraction"]');s?s.click():this.onHeaderClick(e,n,o),e.preventDefault()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Rce,5),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",multiple:"multiple",transitionOptions:"transitionOptions",id:"id",tabindex:"tabindex"},decls:3,vars:5,consts:[[3,"ngStyle","ngClass"],["container",""],[4,"ngFor","ngForOf"],["class","p-panelmenu-panel",3,"ngClass","ngStyle",4,"ngIf"],[1,"p-panelmenu-panel",3,"ngClass","ngStyle"],["role","button",3,"ngClass","ngStyle","pTooltip","tabindex","tooltipOptions","click","keydown"],[1,"p-panelmenu-header-content"],["class","p-panelmenu-header-action",3,"target",4,"ngIf"],["class","p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["class","p-toggleable-content","role","region",3,"ngClass",4,"ngIf"],[1,"p-panelmenu-header-action",3,"target"],[4,"ngIf"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],["role","region",1,"p-toggleable-content",3,"ngClass"],[1,"p-panelmenu-content"],[3,"panelId","items","itemTemplate","transitionOptions","root","activeItem","tabindex","parentExpanded","headerFocus"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,cue,2,1,"ng-container",2),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass","p-panelmenu p-component"),h(2),d("ngForOf",o.model))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,bi,Qi,pue]},styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,data:{animation:[Oo("rootItem",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),YM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qe,Or,Zo,bi,Qi,qn,Nn,Qe]})}return t})(),eg=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["MinusIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},dependencies:[Xe],encapsulation:2})}return t})(),JM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,dn,Oi,_s,CC,vC,Ck,bk,vk,yi,eg,bi,Qi,Qe,Oi]})}return t})();const Hde=["input"],zde=function(t,i,e){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":t,"p-disabled":i,"p-focus":e}},jde={provide:un,useExisting:ft(()=>Ude),multi:!0};let Ude=(()=>{class t{cd;style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;onChange=new ge;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),e.preventDefault(),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-inputSwitch"]],viewQuery:function(n,o){if(1&n&&je(Hde,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[yt([jde])],decls:5,vars:22,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","focus","blur"],["input",""],[1,"p-inputswitch-slider"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),le(4,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(18,zde,o.checked(),o.disabled,o.focused))("ngStyle",o.style),K("data-pc-name","inputswitch")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("checked",o.checked())("disabled",o.disabled),K("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),h(2),K("data-pc-section","slider"))},dependencies:[Ct,Ht],styles:['@layer primeng{.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}}\n'],encapsulation:2,changeDetection:0})}return t})(),_v=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const $de=["sublist"];function Kde(t,i){if(1&t&&le(0,"li",6),2&t){const e=f().$implicit,n=f(2);yn(n.getItemProp(e,"style")),d("ngClass",n.getSeparatorItemClass(e)),K("id",n.getItemId(e))("data-pc-section","separator")}}function Gde(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function qde(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function Wde(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function Qde(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function Zde(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function Yde(t,i){}function Xde(t,i){1&t&&g(0,Yde,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function Jde(t,i){if(1&t&&(we(0),g(1,Zde,1,3,"AngleRightIcon",23),g(2,Xde,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const eO=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function epe(t,i){if(1&t&&(x(0,"a",14),g(1,Gde,1,5,"span",15),g(2,qde,2,2,"span",16),g(3,Wde,1,2,"ng-template",null,17,In),g(5,Qde,2,2,"span",18),g(6,Jde,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("target",o.getItemProp(n,"target"))("ngClass",He(12,eO,o.getItemProp(n,"disabled"))),K("href",o.getItemProp(n,"url"),Ls)("aria-hidden",!0)("data-automationid",o.getItemProp(n,"automationId"))("data-pc-section","action")("tabindex",-1),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function tpe(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function npe(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function ipe(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function ope(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function spe(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function rpe(t,i){}function ape(t,i){1&t&&g(0,rpe,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function lpe(t,i){if(1&t&&(we(0),g(1,spe,1,3,"AngleRightIcon",23),g(2,ape,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const cpe=function(){return{exact:!1}};function upe(t,i){if(1&t&&(x(0,"a",26),g(1,tpe,1,5,"span",15),g(2,npe,2,2,"span",16),g(3,ipe,1,2,"ng-template",null,17,In),g(5,ope,2,2,"span",18),g(6,lpe,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(21,cpe))("target",o.getItemProp(n,"target"))("ngClass",He(22,eO,o.getItemProp(n,"disabled")))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("data-automationid",o.getItemProp(n,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function dpe(t,i){if(1&t&&(we(0),g(1,epe,7,14,"a",12),g(2,upe,7,24,"a",13),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function ppe(t,i){}function hpe(t,i){1&t&&g(0,ppe,0,0,"ng-template")}const fpe=function(t){return{$implicit:t}};function gpe(t,i){if(1&t&&(we(0),g(1,hpe,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,fpe,e.item))}}function mpe(t,i){if(1&t){const e=De();x(0,"p-contextMenuSub",28),me("itemClick",function(o){return G(e),q(f(4).itemClick.emit(o))})("itemMouseEnter",function(o){return G(e),q(f(4).onItemMouseEnter(o))}),A()}if(2&t){const e=f(2).$implicit,n=f(2);d("items",e.items)("itemTemplate",n.itemTemplate)("menuId",n.menuId)("visible",n.isItemActive(e)&&n.isItemGroup(e))("activeItemPath",n.activeItemPath)("focusedItemId",n.focusedItemId)("level",n.level+1)}}function _pe(t,i){if(1&t){const e=De();x(0,"li",7,8)(2,"div",9),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onItemClick(o,s))})("mouseenter",function(o){G(e);const s=f().$implicit;return q(f(2).onItemMouseEnter({$event:o,processedItem:s}))}),g(3,dpe,3,2,"ng-container",10),g(4,gpe,2,4,"ng-container",10),A(),g(5,mpe,1,7,"p-contextMenuSub",11),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);Ve(s.getItemProp(n,"styleClass")),d("ngStyle",s.getItemProp(n,"style"))("ngClass",s.getItemClass(n))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("data-pc-section","menuitem")("data-p-highlight",s.isItemActive(n))("data-p-focused",s.isItemFocused(n))("data-p-disabled",s.isItemDisabled(n))("aria-label",s.getItemLabel(n))("aria-disabled",s.isItemDisabled(n)||void 0)("aria-haspopup",s.isItemGroup(n)&&!s.getItemProp(n,"to")?"menu":void 0)("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o)),h(2),K("data-pc-section","content"),h(1),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Ipe(t,i){if(1&t&&(g(0,Kde,1,5,"li",4),g(1,_pe,6,21,"li",5)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isItemVisible(e)&&n.getItemProp(e,"separator")),h(1),d("ngIf",n.isItemVisible(e)&&!n.getItemProp(e,"separator"))}}const Cpe=function(t,i){return{"p-submenu-list":t,"p-contextmenu-root-list":i}};function vpe(t,i){if(1&t){const e=De();x(0,"ul",1,2),me("@overlayAnimation.start",function(o){G(e);const s=Bt(1);return q(f().onEnter(o,s))})("keydown",function(o){return G(e),q(f().menuKeydown.emit(o))})("focus",function(o){return G(e),q(f().menuFocus.emit(o))})("blur",function(o){return G(e),q(f().menuBlur.emit(o))}),g(2,Ipe,2,2,"ng-template",3),A()}if(2&t){const e=f();d("ngClass",mt(10,Cpe,!e.root,e.root))("@overlayAnimation",e.visible)("tabindex",e.tabindex),K("id",e.menuId+"_list")("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy)("aria-activedescendant",e.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),h(2),d("ngForOf",e.items)}}const bpe=["rootmenu"],ype=["container"],xpe=function(){return{"p-contextmenu p-component":!0,"p-contextmenu-overlay":!0}},Ape=function(){return{value:"visible"}};function wpe(t,i){if(1&t){const e=De();x(0,"div",1,2),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(2,"p-contextMenuSub",3,4),me("itemClick",function(o){return G(e),q(f().onItemClick(o))})("menuFocus",function(o){return G(e),q(f().onMenuFocus(o))})("menuBlur",function(o){return G(e),q(f().onMenuBlur(o))})("menuKeydown",function(o){return G(e),q(f().onKeyDown(o))})("itemMouseEnter",function(o){return G(e),q(f().onItemMouseEnter(o))}),A()()}if(2&t){const e=f();Ve(e.styleClass),d("ngClass",Jt(20,xpe))("ngStyle",e.style)("@overlayAnimation",Jt(21,Ape)),K("data-pc-section","root")("data-pc-name","contextmenu")("id",e.id),h(2),d("root",!0)("items",e.processedItems)("itemTemplate",e.itemTemplate)("menuId",e.id)("tabindex",e.disabled?-1:e.tabindex)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("visible",e.submenuVisible())("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())}}let Tpe=(()=>{class t{document;el;renderer;cd;contextMenu;ref;visible=!1;items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;tabindex=0;itemClick=new ge;itemMouseEnter=new ge;menuFocus=new ge;menuBlur=new ge;menuKeydown=new ge;sublistViewChild;constructor(e,n,o,s,r,a){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.contextMenu=r,this.ref=a}getItemProp(e,n,o=null){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(e),"p-menuitem-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)}}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(n=>n.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}onItemMouseEnter(e){const{event:n,processedItem:o}=e;this.itemMouseEnter.emit({originalEvent:n,processedItem:o})}onItemClick(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemClick.emit({originalEvent:e,processedItem:n,isFocus:!0})}onEnter(e,n){"void"===e.fromState&&e.toState&&this.position(e.element)}position(e){const n=e.parentElement.parentElement,o=j.getOffset(e.parentElement.parentElement),s=j.getViewport(),r=e.offsetParent?e.offsetWidth:j.getHiddenElementOuterWidth(e),a=j.getOuterWidth(n.children[0]);e.style.top="0px",e.style.left=parseInt(o.left,10)+a+r>s.width-j.calculateScrollbarWidth()?-1*r+"px":a+"px"}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ft(()=>tO)),V(go))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenuSub"]],viewQuery:function(n,o){if(1&n&&je($de,5),2&n){let s;Se(s=Ee())&&(o.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",items:"items",itemTemplate:"itemTemplate",root:"root",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",popup:"popup",menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:"level",focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",tabindex:"tabindex"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},decls:1,vars:1,consts:[["role","menu",3,"ngClass","tabindex","keydown","focus","blur",4,"ngIf"],["role","menu",3,"ngClass","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter"]],template:function(n,o){1&n&&g(0,vpe,3,13,"ul",0),2&n&&d("ngIf",!!o.root||o.visible)},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,oo,Kl,Zo,t]},encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0})]),Ln(":leave",[en({opacity:0})])])]}})}return t})(),tO=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}triggerEvent="contextmenu";target;global;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;id;ariaLabel;ariaLabelledBy;onShow=new ge;onHide=new ge;templates;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;container;outsideClickListener;resizeListener;triggerEventListener;documentClickListener;documentTriggerListener;pageX;pageY;visible=bn(!1);relativeAlign;window;focused=!1;activeItemPath=bn([]);focusedItemInfo=bn({index:-1,level:0,parentKey:"",item:null});submenuVisible=bn(!1);searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){const e=this.activeItemPath().find(n=>n.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:-1!==e.index?`${this.id}${be.isNotEmpty(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView,a_(()=>{const c=this.activeItemPath();be.isNotEmpty(c)?this.bindGlobalListeners():this.visible()||this.unbindGlobalListeners()})}ngOnInit(){this.id=this.id||$t(),this.bindTriggerEventListener()}bindTriggerEventListener(){ei(this.platformId)&&(this.triggerEventListener||(this.global?this.triggerEventListener=this.renderer.listen(this.document,this.triggerEvent,e=>{this.show(e)}):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,e=>{this.show(e)}))))}bindGlobalListeners(){if(ei(this.platformId)){if(!this.documentClickListener){const e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&!n.ctrlKey&&2!==n.button&&"click"!==this.triggerEvent&&this.hide()}),this.documentTriggerListener=this.renderer.listen(e,this.triggerEvent,n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&this.hide()})}this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()}))}}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&be.isNotEmpty(e.items)}isSelected(e){return this.activeItemPath().some(n=>n.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&be.isNotEmpty(e.items)}onItemClick(e){const{processedItem:n}=e,o=this.isProcessedItemGroup(n);if(this.isSelected(n)){const{index:r,key:a,level:l,parentKey:c,item:u}=n;this.activeItemPath.set(this.activeItemPath().filter(p=>a!==p.key&&a.startsWith(p.key))),this.focusedItemInfo.set({index:r,level:l,parentKey:c,item:u}),j.focus(this.rootmenu.sublistViewChild.nativeElement)}else o?this.onItemChange(e):this.hide()}onItemMouseEnter(e){this.onItemChange(e)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}onArrowRightKey(e){const n=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(n)&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide(),e.preventDefault()}else{const n=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}}onArrowLeftKey(e){const n=this.visibleItems[this.focusedItemInfo().index],o=this.activeItemPath().find(a=>a.key===n.parentKey);be.isEmpty(n.parent)||(this.focusedItemInfo.set({index:-1,parentKey:o?o.parentKey:"",item:n.item}),this.searchValue="",this.onArrowDownKey(e));const r=this.activeItemPath().filter(a=>a.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(r),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide();const n=this.findVisibleItem(this.findFirstFocusedItemIndex());this.focusedItemInfo.mutate(o=>{o.index=this.findFirstFocusedItemIndex(),o.item=n.item}),e.preventDefault()}onTabKey(e){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()}onEnterKey(e){if(-1!==this.focusedItemInfo().index){const n=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&j.findSingle(n,'a[data-pc-section="action"]');o?o.click():n&&n.click();const s=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(s)||this.focusedItemInfo.mutate(a=>{a.index=this.findFirstFocusedItemIndex()})}e.preventDefault()}onItemChange(e){const{processedItem:n,isFocus:o}=e;if(be.isEmpty(n))return;const{index:s,key:r,level:a,parentKey:l,items:c}=n,u=be.isNotEmpty(c),p=this.activeItemPath().filter(m=>m.parentKey!==l&&m.parentKey!==r);u&&(p.push(n),this.submenuVisible.set(!0)),this.focusedItemInfo.set({index:s,level:a,parentKey:l,item:n.item}),this.activeItemPath.set(p),o&&j.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;const n=-1!==this.focusedItemInfo().index?this.focusedItemInfo():{index:-1,level:0,parentKey:"",item:null};this.focusedItemInfo.set(n)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue=""}onOverlayAnimationStart(e){"visible"===e.toState&&(this.container=e.element,this.position(),this.moveOnTop(),this.appendOverlay(),this.bindGlobalListeners(),this.onShow.emit(),j.focus(this.rootmenu.sublistViewChild.nativeElement))}onOverlayAnimationEnd(e){"void"===e.toState&&this.onOverlayHide()}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.containerViewChild.nativeElement):j.appendChild(this.containerViewChild.nativeElement,this.appendTo))}moveOnTop(){this.autoZIndex&&this.containerViewChild&&Wn.set("menu",this.containerViewChild.nativeElement,this.baseZIndex+this.config.zIndex.menu)}onOverlayHide(){this.unbindGlobalListeners(),this.cd.destroyed||(this.target=null),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.onHide.emit()}hide(){this.visible.set(!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null})}toggle(e){this.visible()?this.hide():this.show(e)}show(e){this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.pageX=e.pageX,this.pageY=e.pageY,this.visible()?this.position():this.visible.set(!0),e.stopPropagation(),e.preventDefault()}position(){let e=this.pageX+1,n=this.pageY+1,o=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetWidth:j.getHiddenElementOuterWidth(this.containerViewChild.nativeElement),s=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetHeight:j.getHiddenElementOuterHeight(this.containerViewChild.nativeElement),r=j.getViewport();e+o-this.document.scrollingElement.scrollLeft>r.width&&(e-=o),n+s-this.document.scrollingElement.scrollTop>r.height&&(n-=s),ethis.isItemMatched(r)),o=-1===o?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(r=>this.isItemMatched(r)):o+this.focusedItemInfo().index):o=this.visibleItems.findIndex(r=>this.isItemMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedItemInfo().index&&(o=this.findFirstFocusedItemIndex()),-1!==o&&this.changeFocusedItemIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}findVisibleItem(e){return be.isNotEmpty(this.visibleItems)?this.visibleItems[e]:null}findLastFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return be.findLastIndex(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){const n=e>0?be.findLastIndex(this.visibleItems.slice(0,e),o=>this.isValidItem(o)):-1;return n>-1?n:e}findNextItemIndex(e){const n=ethis.isValidItem(o)):-1;return n>-1?n+e+1:e}findFirstFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,n){const o=this.findVisibleItem(n);this.focusedItemInfo().index!==n&&(this.focusedItemInfo.mutate(s=>{s.index=n,s.item=o.item}),this.scrollInView())}scrollInView(e=-1){const o=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedItemId}"]`);o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"})}bindResizeListener(){ei(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()})))}isOutsideClicked(e){return!(this.containerViewChild.nativeElement.isSameNode(e.target)||this.containerViewChild.nativeElement.contains(e.target))}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindTriggerEventListener(){this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null)}removeAppendedElements(){this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.containerViewChild.nativeElement):j.removeChild(this.containerViewChild.nativeElement,this.appendTo))}ngOnDestroy(){this.unbindGlobalListeners(),this.unbindTriggerEventListener(),this.removeAppendedElements()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(bpe,5),je(ype,5)),2&n){let s;Se(s=Ee())&&(o.rootmenu=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",triggerEvent:"triggerEvent",target:"target",global:"global",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],["container",""],[3,"root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","visible","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function(n,o){1&n&&g(0,wpe,4,22,"div",0),2&n&&d("ngIf",o.visible())},dependencies:[Ct,gt,Ht,Tpe],styles:["@layer primeng{.p-contextmenu{position:absolute}.p-contextmenu ul{margin:0;padding:0;list-style:none}.p-contextmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1}.p-contextmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-contextmenu .p-menuitem-text{line-height:1}.p-contextmenu .p-menuitem{position:relative}.p-contextmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-contextmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0}),On("250ms")]),Ln(":leave",[On(".1s linear",en({opacity:0}))])])]},changeDetection:0})}return t})(),nO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),Spe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[Hs],imports:[R0,JD,NE,JM,wk,qM,qn,kG,YM,Ek,_v,kk,nO]})}return t})();Dg(Dk,[gt,wl,ch,Is,EC,Ok],[]);const Epe=function(){return["NumberOfActivities"]};let Dpe=(()=>{class t{constructor(){}ngOnInit(){for(let e of this.businessFlows)null!=e.ActivitiesColl&&(e.NumberOfActivities=e.ActivitiesColl.length);this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}],this.businessFlowGeneralDetailsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Business Flow Name"},{field:"Description",header:"Business Flow Description"},{field:"Description",header:"Business Flow Run Description"},{field:"Environment",header:"Environment Used"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"NumberOfActivities",header:"Number Of Activities"},{field:"RunStatus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow-table"]],inputs:{businessFlows:"businessFlows",tableExpenderType:"tableExpenderType"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.businessFlowGeneralDetailsCols)("data",o.businessFlows)("addExpender",!0)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,Epe))},dependencies:[Is]})}return t})(),kpe=(()=>{class t{constructor(){}ngOnInit(){this.title=this.chartTitle,this.data=this.executionData,this.type="PieChart",this.columnNames=["Browser","Percentage"],this.options={pieHole:.7,legend:{position:"labeled"},chartArea:{left:0,height:220,width:400},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"]},this.width=400,this.height=400}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-doughnut"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function Mpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Runner Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.runner.Name)}}function Ope(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runnerDetails)}}function Lpe(t,i){if(1&t&&(x(0,"p-accordionTab",10)(1,"div",11),le(2,"app-google-doughnut",12),A(),le(3,"app-business-flow-table",13),A()),2&t){const e=f();d("selected",!0),h(2),d("executionData",e.runnerData),h(1),d("businessFlows",e.businessFlows)("tableExpenderType",e.tableExpenderType)}}function Ppe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.gingerRunnerAgentMappingCols)("data",e.agentMappings)}}let Fpe=(()=>{class t{constructor(e,n,o,s,r){this.route=e,this.calculatedDataService=n,this._userDataManagerService=o,this.communicatorService=s,this.datePipe=r,this.runnerData=[],this.tableExpenderType=Er.BusinessFlowsActivities,this.gingerRunnerGeneralDetailsData=[],this.agentMappings=[]}ngOnInit(){this.getRunner(),this.businessFlows=this.runner.BusinessFlowsColl;let e=this.calculatedDataService.getRunnerBusinessFlowsExecutionStatusArray(this.runner);this.calculatedDataService.populateChartsData(this.runnerData,e),this.getAgentMapping(),this.gingerRunnerAgentMappingCols=[{field:"TargetApplication",header:"Target Application"},{field:"AgentName",header:"Agents Mapping"}],this.runnerDetails=[{field:"Business Flow Execution Sequence",value:this.runner.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.runner.StartTimeStamp,"short")},{field:"Ginger Runner Name",value:this.runner.Name},{field:"Execution End Time",value:this.datePipe.transform(this.runner.EndTimeStamp,"short")},{field:"Runner Description",value:this.runner.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.runner.Elapsed)},{field:"Ginger Runner Environment Name",value:this.runner.Environment},{field:"Execution Status",value:this.runner.RunStatus},{field:"Number Of Business Flows",value:this.runner.BusinessFlowsColl.length},{field:"Business Flows Execution Rate",value:this.runner.ExecutionRate+"%"},{field:"Business Flows Pass Rate",value:this.runner.PassRate+"%"}]}getAgentMapping(){for(let n of this.runner.ApplicationAgentsMappingList){var e=n.split("_:_");let o=new kK;o.AgentName=e[0],o.TargetApplication=e[1],this.agentMappings.push(o)}}getRunner(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner");this.runner=e.RunnersColl.filter(o=>o.Seq==n)[0]}getStatus(e=!0){if(null!=this.runner&&null!=this.runner.RunStatus)return this.calculatedDataService.getStatusClass(this.runner.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(qs),V(Co),V(Ws),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-runner-report"]],inputs:{runner:"runner"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected",4,"ngIf"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle-o"],[2,"font-weight","bold"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected"],[3,"data"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],["id","chart_div","align","center"],[3,"executionData"],[3,"businessFlows","tableExpenderType"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,Mpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Ope,2,2,"p-accordionTab",2),g(3,Lpe,4,4,"p-accordionTab",3),g(4,Ppe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.runner),h(1),d("multiple",!0),h(1),d("ngIf",o.runnerDetails.length>0),h(1),d("ngIf",o.runnerData.length>0||o.businessFlows.length>0),h(1),d("ngIf",o.agentMappings.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Dpe,kpe]})}return t})();const Rpe=function(){return["NumberOfActions"]};function Npe(t,i){if(1&t&&le(0,"app-table",1),2&t){const e=f();d("cols",e.outputValidationCols)("data",e.outputValidations)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(6,Rpe))}}let Vpe=(()=>{class t{constructor(){}ngOnInit(){this.outputValidationCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group"},{field:"ActivityName",header:"Activity Name"},{field:"ActionName",header:"Action"},{field:"StartTimeStamp",header:"Start Time"},{field:"EndTimeStamp",header:"End Time"},{field:"Elapsed",header:"Duration"},{field:"RunStatus",header:"Status"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["output-validation"]],inputs:{outputValidations:"outputValidations",tableExpenderType:"tableExpenderType",addExpender:"addExpender"},decls:1,vars:1,consts:[[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields",4,"ngIf"],[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&g(0,Npe,1,7,"app-table",0),2&n&&d("ngIf",o.outputValidations.length>0)},dependencies:[gt,Is]})}return t})();function Bpe(t,i){if(1&t&&(x(0,"h4",9),le(1,"span",10),Le(2," Business Flow Report: "),x(3,"span",11),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.businessFlow.Name)}}function Hpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-general-details",13),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.businessFlowDetails)}}function zpe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-activities-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)("tableExpenderType",e.tableExpenderType)("addExpender",!0)}}function jpe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}function Upe(t,i){if(1&t&&(x(0,"p-accordionTab",18),le(1,"output-validation",19),A()),2&t){const e=f();d("selected",!0),h(1),d("outputValidations",e.outputValidations)("tableExpenderType",e.outputValidationtableExpenderType)("addExpender",!0)}}function $pe(t,i){1&t&&(x(0,"div",20),le(1,"div",21),A())}const Kpe=function(t,i){return{hideDiv:t,showDiv:i,"accordion-header":!0}};let Gpe=(()=>{class t{constructor(e,n,o,s,r,a,l,c){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.restServiceObj=s,this.globalVarService=r,this.communicatorService=a,this.reportHelperService=l,this.calculatedDataService=c,this.showScreenshotPanel=!0,this.EntityType="businessflow",this.actions=[],this.outputValidations=new Array,this.tableExpenderType=Er.ActivitiesActions,this.outputValidationtableExpenderType=Er.OutputValidation}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}setScreenshotVisiblity(e){this.showScreenshotPanel=e}paramChanged(){let e;this.getBusinessFlow(),this.totalactivitiesCount=0,this.actions=[],this.outputValidations=[],this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"ActivityGroupName",link:"ag/ag/",param:"ActivityGroupName"}],null!=this.businessFlow.ExternalID&&""!=this.businessFlow.ExternalID&&(e=this.businessFlow.ExternalID),null!=this.businessFlow.ExternalID2&&""!=this.businessFlow.ExternalID&&(e=null!=e?e+" / "+this.businessFlow.ExternalID2:this.businessFlow.ExternalID2),this.businessFlowDetails=[],this.businessFlowDetails=[{field:"Execution Sequence",value:this.businessFlow.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.businessFlow.StartTimeStamp,"short")},{field:"Business Flow Name",value:this.businessFlow.Name},{field:"Execution End Time",value:this.datePipe.transform(this.businessFlow.EndTimeStamp,"short")},{field:"Business Flow Description",value:this.businessFlow.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.businessFlow.Elapsed)},{field:"Business Flow Run Description",value:this.businessFlow.RunDescription},{field:"Execution Status",value:this.businessFlow.RunStatus},{field:"Environment Name",value:this.businessFlow.Environment},{field:"Business Flow Activities Pass Rate",value:this.businessFlow.PassRate+"%"},{field:"Business Flow Activities Execution Rate",value:this.businessFlow.ExecutionRate+"%"}],null!=e&&this.businessFlowDetails.push({field:"Mapped ALM Entity ID",value:e}),null==this.businessFlow.ActivitiesColl||0==this.businessFlow.ActivitiesColl.length?(this.CollectBfActivitiesData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.totalactivitiesCount})):(this.InitActivitieData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.businessFlow.ActivitiesColl.length})),this.communicatorService.onBfActivitiesDataChange.subscribe(n=>{"Last Loading Data"===n&&(this.AddBusinessFlowToRunsetJson(),this.InitActivitieData(),this.hideRepoLoader=!1)}),this.variablesData=this.getVariables()}orderActivites(){this.businessFlow.ActivitiesColl=this.businessFlow.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}AddBusinessFlowToRunsetJson(){this.orderActivites(),this.RunsetJson.RunnersColl.forEach(e=>{e.BusinessFlowsColl.forEach(n=>{n.GUID==this.businessFlow.GUID&&(n.ActivitiesColl=this.businessFlow.ActivitiesColl)})}),this._userDataManagerService.setItemCache(this.RunsetJson)}InitActivitieData(){this.count=1;for(const n of this.businessFlow.ActivitiesColl)n.NumberOfActions=n.ActionsColl.length,n.ActionsColl.forEach(o=>{this.globalVarService.isServerLoading?this.getActionFromServer(o.GUID,n):this.getOutputValidations(o,n)});this.activities=this.businessFlow.ActivitiesColl;const e=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,this.RunsetJson.ExecutionId);this.communicatorService.newMessage(e),e.forEach(n=>{n.items.forEach(o=>{o.items.forEach(s=>{s.id==this.businessFlow.GUID&&(o.expanded=!0,s.expanded=!0)})})})}CollectBfActivitiesData(){this.hideRepoLoader=!0;let e=0;this.businessFlow.ActivitiesGroupsColl.forEach(o=>{this.totalactivitiesCount=this.totalactivitiesCount+o.ExecutedActivitiesGUID.length});const n=this.globalVarService.totalRecPerActivityPull;this.businessFlow.NumberOfActivities=0,this.businessFlow.ActivitiesGroupsColl.forEach(o=>{let s=0;this.businessFlow.ActivitiesColl=[];const r={};r.ExecutionId=this.RunsetJson.ExecutionId,r.ParentId=o.GUID,r.From=s*n,r.Take=n,r.IsLoadActions=!0,this.restServiceObj.GetActivitiesByParent(r).subscribe(a=>{s++;const l=JSON.parse(a.response),c=l.TotalRec;for(this.businessFlow.NumberOfActivities+=c,this.businessFlow.ActivitiesColl.push(...l.ResponseColl),e+=l.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data");s*n{if(p.isSuccsess){const m=JSON.parse(p.response);this.businessFlow.ActivitiesColl.push(...m.ResponseColl),e+=m.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data")}})}})})}checkIfLastRun(e){return e===this.totalactivitiesCount}getActionFromServer(e,n){this.restServiceObj.GetActionById(e).subscribe(s=>{const r=JSON.parse(s.response);this.getOutputValidations(r,n)})}getOutputValidations(e,n){if((e.RunStatus==Lt.Passed||e.RunStatus==Lt.Failed||e.RunStatus==Lt.FailIgnored)&&e.OutputValues&&e.OutputValues.length>0&&e.OutputValues.some(s=>!s.endsWith("NA"))){var o=new LK;o.Seq=this.count++,o.ActionName=e.Name,o.ActivityGroupName=n.ActivityGroupName,o.ActivityName=n.Name,o.StartTimeStamp=e.StartTimeStamp,o.EndTimeStamp=e.EndTimeStamp,o.Elapsed=e.Elapsed,o.RunStatus=e.RunStatus,o.OutputValues=e.OutputValues.filter(s=>!s.endsWith("NA")),this.outputValidations.push(o)}}getActivityGroupName(e){for(const n of this.businessFlow.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}getBusinessFlow(){const e=+this.route.snapshot.paramMap.get("Runner"),n=+this.route.snapshot.paramMap.get("BusinessFlow");this.RunsetJson=this._userDataManagerService.getItemCache();const o=this.RunsetJson.RunnersColl.filter(s=>s.Seq==e)[0];this.businessFlow=o.BusinessFlowsColl.filter(s=>s.Seq==n)[0]}getVariables(){let e=[];if(this.businessFlow.VariablesBeforeExec)for(var n=0;n0&&(s.EndValue=this.businessFlow.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getStatus(e=!0){if(null!=this.businessFlow&&null!=this.businessFlow.RunStatus)return this.calculatedDataService.getStatusClass(this.businessFlow.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ha),V(ms),V(Ws),V(WD),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow"]],inputs:{businessFlow:"businessFlow"},decls:9,vars:15,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIONS SCREENSHOTS",3,"selected","ngClass"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[1,"entityName"],[1,"fa","fa-sitemap"],[2,"font-weight","bold"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected"],[3,"data"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr","tableExpenderType","addExpender"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected"],[3,"outputValidations","tableExpenderType","addExpender"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(g(0,Bpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Hpe,2,2,"p-accordionTab",2),g(3,zpe,2,5,"p-accordionTab",3),x(4,"p-accordionTab",4)(5,"screenshot-carousel",5),me("isScreenshotVisibleEvent",function(r){return o.setScreenshotVisiblity(r)}),A()(),g(6,jpe,2,3,"p-accordionTab",6),g(7,Upe,2,4,"p-accordionTab",7),A(),g(8,$pe,2,0,"div",8)),2&n&&(d("ngIf",o.businessFlow),h(1),d("multiple",!0),h(1),d("ngIf",o.businessFlowDetails.length>0),h(1),d("ngIf",null!=o.activities&&o.activities.length>0),h(1),d("selected",!0)("ngClass",mt(12,Kpe,!1===o.showScreenshotPanel,!0===o.showScreenshotPanel)),h(1),d("EntityType",o.EntityType)("_height",1e3)("_thumbnails",!0),h(1),d("ngIf",o.variablesData.length>0),h(1),d("ngIf",o.outputValidations.length>0),h(1),d("ngIf",o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,Is,EC,Vpe,SC]})}return t})();function qpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Activity Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.activity.Name)}}function Wpe(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityDetails)}}function Qpe(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-actions-table",11),A()),2&t){const e=f();d("selected",!0),h(1),d("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("addExpender",!1)}}function Zpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}let Ype=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a}runAsyncLogic(e){var n=this;return Fu(function*(){const o=yield n.getActivityDataFromServer(e),s=JSON.parse(o.response);n.activity.VariablesAfterExec=s.VariablesAfterExec,n.activity.VariablesBeforeExec=s.VariablesBeforeExec,n.variablesData=n.getVariables()})()}getActivityDataFromServer(e){var n=this;return Fu(function*(){return yield n.restServiceObj.GetActivityById(e)})()}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}paramChanged(){let e;this.getActivity(),null!=this.activity.ExternalID&&""!=this.activity.ExternalID&&(e=this.activity.ExternalID),null!=this.activity.ExternalID2&&""!=this.activity.ExternalID&&(e=null!=e?e+" / "+this.activity.ExternalID2:this.activity.ExternalID2),this.actions=this.activity.ActionsColl,this.variablesData=this.getVariables(),this.activityDetails=[{field:"Execution Sequence",value:this.activity.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.activity.StartTimeStamp,"short")},{field:"Activity Group Name",value:this.activity.ActivityGroupName},{field:"Execution End Time",value:this.datePipe.transform(this.activity.EndTimeStamp,"short")},{field:"Description",value:this.activity.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activity.Elapsed)},{field:"Activity Name",value:this.activity.Name},{field:"Execution Status",value:this.activity.RunStatus},{field:"Actions Pass Rate",value:this.activity.PassRate+"%"},{field:"Actions Execution Rate",value:this.activity.ExecutionRate+"%"},{field:"Number Of Actions",value:this.activity.ActionsColl.length}],null!=e&&this.activityDetails.push({field:"Mapped ALM Entity ID",value:e}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}]}getVariables(){let e=[];if(this.activity.VariablesBeforeExec&&this.activity.VariablesBeforeExec.length>0)for(var n=0;n0&&(s.EndValue=this.activity.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getActivity(){var e=this;return Fu(function*(){const n=+e.route.snapshot.paramMap.get("Runner"),o=+e.route.snapshot.paramMap.get("BusinessFlow"),s=+e.route.snapshot.paramMap.get("Activity"),l=e._userDataManagerService.getItemCache().RunnersColl.filter(c=>c.Seq==n)[0].BusinessFlowsColl.filter(c=>c.Seq==o)[0];e.activity=l.ActivitiesColl.filter(c=>c.Seq==s)[0],e.globalVarService.isServerLoading&&(yield e.runAsyncLogic(e.activity.GUID))})()}getStatus(e=!0){if(null!=this.activity&&null!=this.activity.RunStatus)return this.calculatedDataService.getStatusClass(this.activity.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-report"]],inputs:{activity:"activity"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTIVITY GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bars"],[2,"font-weight","bold"],["header","ACTIVITY GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"actions","fieldsLinksArr","addExpender"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,qpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Wpe,2,2,"p-accordionTab",2),g(3,Qpe,2,4,"p-accordionTab",3),g(4,Zpe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.activity),h(1),d("multiple",!0),h(1),d("ngIf",o.activityDetails.length>0),h(1),d("ngIf",o.actions.length>0),h(1),d("ngIf",o.variablesData.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Ok]})}return t})();function Xpe(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("contextmenu",function(o){const r=G(e).$implicit;return q(f().onContextMenu(o,r.Value,r.Key))})("dblclick",function(){const s=G(e).$implicit;return q(f().DownLoad(s.Value,s.Key))}),le(3,"span",4),x(4,"p",5),Le(5),A()(),le(6,"p-contextMenu",6),Te()}if(2&t){const e=i.$implicit,n=Bt(2),o=f();h(3),d("innerHtml",o.getIcon(e.Value),hr),h(2),dt(e.Key),h(1),d("target",n)("model",o.contextMenuItems)}}let Jpe=(()=>{class t{constructor(e,n,o){this.globalVarService=e,this.activeRoute=o;var s=localStorage.getItem("executionId");this.globalVarService.artifactPath=s?"artifacts/":null}ngOnInit(){}onContextMenu(e,n,o){this.contextMenuItems=[],this.contextMenuItems.push({label:"Download",icon:"fas fa-external-link-alt",command:()=>this.DownLoad(n,o)})}ViewContent(){}getIcon(e){const o=e.split(".").pop();return oC[o]===oC.json?"":""}DownLoad(e,n){let o=document.createElement("a");o.setAttribute("type","hidden"),o.href=null!=this.globalVarService.artifactPath?this.globalVarService.artifactPath+e:e,o.download=e,o.target="_blank",document.body.appendChild(o),o.click(),o.remove()}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V("environmentObj"),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["artifacts"]],inputs:{action:"action"},decls:2,vars:1,consts:[[1,"grid"],[4,"ngFor","ngForOf"],[1,"col-12","md:col-3","xl:col-2",3,"contextmenu","dblclick"],["art",""],[1,"fileicon",3,"innerHtml"],[1,"text-900","text-lg","font-medium","hideTxt",2,"padding-top","10px"],[3,"target","model"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Xpe,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.action.Artifacts))},dependencies:[Jn,tO],styles:[".hideTxt[_ngcontent-%COMP%]{display:inline-block;width:220px;white-space:pre-line;overflow:hidden!important;text-overflow:ellipsis;line-height:1rem} .fileicon img{font-size:3rem;width:60px} .fileicon i{font-size:6rem}"]})}return t})();function ehe(t,i){if(1&t&&(x(0,"h4",7),le(1,"span",8),Le(2," Action Report: "),x(3,"span",9),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.action.Name)}}function the(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-general-details",11),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.actionDetails)}}function nhe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.inputValuesCols)("data",e.inputValuesData)}}function ihe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)}}function ohe(t,i){if(1&t&&(x(0,"p-accordionTab",15),le(1,"artifacts",16),A()),2&t){const e=f();d("selected",!0),h(1),d("action",e.action)}}function she(t,i){if(1&t){const e=De();x(0,"p-accordionTab",17)(1,"screenshot-carousel",18),me("isScreenshotVisibleEvent",function(o){return G(e),q(f().setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f();d("selected",!0),h(1),d("EntityType",e.EntityType)("_height",1e3)("_thumbnails",!0)}}let rhe=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a,this.EntityType="action",this.showScreenshotPanel=!0}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.inputValuesCols=[{field:"Name",header:"Name"},{field:"Value",header:"Value"},{field:"CalculatedValue",header:"Calculated Value"}],this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}]}paramChanged(){this.getAction(),this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues(),this.actionDetails=[{field:"Execution Sequence",value:this.action.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.action.StartTimeStamp,"short")},{field:"Action Name",value:this.action.Name},{field:"Execution End Time",value:this.datePipe.transform(this.action.EndTimeStamp,"short")},{field:"Description",value:this.action.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.action.Elapsed)},{field:"Run Description",value:this.action.RunDescription},{field:"Execution Status",value:this.action.RunStatus},{field:"Action Type",value:this.action.ActionType},{field:"Current Retry Iteration",value:this.action.CurrentRetryIteration},{field:"Error Details",value:this.action.Error},{field:"Additional information",value:this.action.ExInfo},{field:"Screenshots",value:this.action.ScreenShots.length}]}getInputValues(){let e=[];for(let n of this.action.InputValues){let o=n.split("_:_"),s=new OK;s.Name=o[0],s.Value=this._userDataManagerService.replaceUnicodeChar(o[1]),s.CalculatedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),e.push(s)}return e}getOutputValues(){let e=[];for(let n of this.action.OutputValues){let o=n.split("_:_"),s=new $D;s.ParameterName=o[0],s.ActualValue=this._userDataManagerService.replaceUnicodeChar(o[1]),s.ExpectedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),s.Status=o[3],e.push(s)}return e}setScreenshotVisiblity(e){this.showScreenshotPanel=e}getAction(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow"),s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");let c=e.RunnersColl.filter(u=>u.Seq==n)[0].BusinessFlowsColl.filter(u=>u.Seq==o)[0].ActivitiesColl.filter(u=>u.Seq==s)[0];this.action=c.ActionsColl.filter(u=>u.Seq==r)[0],this.globalVarService.isServerLoading&&this.getActionFromServer(this.action.GUID)}getActionFromServer(e){this.restServiceObj.GetActionById(e).subscribe(n=>{const o=JSON.parse(n.response);this.action.InputValues=o.InputValues,this.action.OutputValues=o.OutputValues,this.action.FlowControls=o.FlowControls,this.action.Artifacts=o.Artifacts,this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues()})}getStatus(e=!0){if(null!=this.action&&null!=this.action.RunStatus)return this.calculatedDataService.getStatusClass(this.action.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-action-report"]],inputs:{action:"action"},decls:7,vars:7,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bolt"],[2,"font-weight","bold"],["header","ACTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected"],[3,"action"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"]],template:function(n,o){1&n&&(g(0,ehe,5,4,"h4",0),x(1,"p-accordion",1),g(2,the,2,2,"p-accordionTab",2),g(3,nhe,2,3,"p-accordionTab",3),g(4,ihe,2,3,"p-accordionTab",4),g(5,ohe,2,2,"p-accordionTab",5),g(6,she,2,4,"p-accordionTab",6),A()),2&n&&(d("ngIf",o.action),h(1),d("multiple",!0),h(1),d("ngIf",o.actionDetails.length>0),h(1),d("ngIf",!!o.action.InputValues&&o.action.InputValues.length),h(1),d("ngIf",!!o.action.OutputValues&&o.action.OutputValues.length),h(1),d("ngIf",!!o.action.Artifacts&&o.action.Artifacts.length),h(1),d("ngIf",!!o.action.ScreenShots&&o.action.ScreenShots.length))},dependencies:[Ct,gt,ga,fa,Ul,Is,SC,Jpe]})}return t})();function ahe(t,i){if(1&t&&(x(0,"p-accordionTab",4),le(1,"app-general-details",5),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityGroupDetails)}}function lhe(t,i){if(1&t&&(x(0,"p-accordionTab",6),le(1,"app-activities-table",7),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)}}const dhe=qn.forRoot([{path:"",component:Mk},{path:"BusinessFlow/:ExecutionId/:BusinessFlowId",component:Mk},{path:":Runner",component:Fpe},{path:":Runner/:BusinessFlow",component:Gpe},{path:":Runner/:BusinessFlow/ag/ag/:ActivityGroupName",component:(()=>{class t{constructor(e,n,o){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.activities=[]}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()})}paramChanged(){let e;this.getActivityGroupByName(),null!=this.activityGroup.ExternalID&&""!=this.activityGroup.ExternalID&&(e=this.activityGroup.ExternalID),null!=this.activityGroup.ExternalID2&&""!=this.activityGroup.ExternalID&&(e=null!=e?e+" / "+this.activityGroup.ExternalID2:this.activityGroup.ExternalID2),this.activityGroupDetails=[{field:"Activity Group Name",value:this.activityGroup.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.activityGroup.StartTimeStamp,"short")},{field:"Description",value:this.activityGroup.Description},{field:"Execution End Time",value:this.datePipe.transform(this.activityGroup.EndTimeStamp,"short")},{field:"Automation Percentage",value:this.activityGroup.AutomationPercentage},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activityGroup.Elapsed)},{field:"Execution Status",value:this.activityGroup.RunStatus}],null!=e&&this.activityGroupDetails.push({field:"Mapped ALM Entity ID",value:e});for(let n of this.businessFlow.ActivitiesGroupsColl)if(n.Name==this.activityGroupName)for(let o of this.businessFlow.ActivitiesColl)n.ExecutedActivitiesGUID.includes(o.GUID)&&(o.ActivityGroupName=n.Name,o.NumberOfActions=o.ActionsColl.length,this.activities.push(o));this.fieldsLinksArr=[{field:"Name",link:"../../../",param:"Seq"}]}getActivityGroupByName(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");this.activityGroupName=this.route.snapshot.paramMap.get("ActivityGroupName");let s=e.RunnersColl.filter(r=>r.Seq==n)[0];this.businessFlow=s.BusinessFlowsColl.filter(r=>r.Seq==o)[0],this.activityGroup=this.businessFlow.ActivitiesGroupsColl.filter(r=>r.Name==this.activityGroupName)[0]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-group-report"]],decls:6,vars:3,consts:[[1,"fa","fa-fw","fa-exclamation-circle"],[3,"multiple"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr"]],template:function(n,o){1&n&&(x(0,"h4"),le(1,"span",0),Le(2," Activity Group Report"),A(),x(3,"p-accordion",1),g(4,ahe,2,2,"p-accordionTab",2),g(5,lhe,2,3,"p-accordionTab",3),A()),2&n&&(h(3),d("multiple",!0),h(1),d("ngIf",o.activityGroupDetails.length>0),h(1),d("ngIf",o.activities.length>0))},dependencies:[Ct,gt,ga,fa,Ul,EC]})}return t})()},{path:":Runner/:BusinessFlow/:Activity",component:Ype},{path:":Runner/:BusinessFlow/:Activity/:Action",component:rhe}],{scrollPositionRestoration:"enabled"});let ir=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const phe=["container"],hhe=["focusInput"],fhe=["multiIn"],ghe=["multiContainer"],mhe=["ddBtn"],_he=["items"],Ihe=["scroller"],Che=["overlay"];function vhe(t,i){if(1&t){const e=De();x(0,"input",12,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()}if(2&t){const e=f();Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("type",e.type)("autocomplete",e.autocomplete)("required",e.required)("name",e.name)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("value",e.inputValue())("id",e.inputId)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function bhe(t,i){if(1&t){const e=De();x(0,"TimesIcon",16),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-autocomplete-clear-icon"),K("aria-hidden",!0))}function yhe(t,i){}function xhe(t,i){1&t&&g(0,yhe,0,0,"ng-template")}function Ahe(t,i){if(1&t){const e=De();x(0,"span",17),me("click",function(){return G(e),q(f(2).clear())}),g(1,xhe,1,0,null,9),A()}if(2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function whe(t,i){if(1&t&&(we(0),g(1,bhe,1,2,"TimesIcon",14),g(2,Ahe,2,2,"span",15),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function The(t,i){1&t&&ze(0)}function She(t,i){if(1&t&&(x(0,"span",30),Le(1),A()),2&t){const e=f().$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function Ehe(t,i){1&t&&le(0,"TimesCircleIcon",31),2&t&&(d("styleClass","p-autocomplete-token-icon"),K("aria-hidden",!0))}function Dhe(t,i){}function khe(t,i){1&t&&g(0,Dhe,0,0,"ng-template")}function Mhe(t,i){if(1&t&&(x(0,"span",32),g(1,khe,1,0,null,9),A()),2&t){const e=f(3);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeIconTemplate)}}const Ohe=function(t){return{"p-autocomplete-token":!0,"p-focus":t}},Iv=function(t){return{$implicit:t}};function Lhe(t,i){if(1&t){const e=De();x(0,"li",23,24),g(2,The,1,0,"ng-container",25),g(3,She,2,1,"span",26),x(4,"span",27),me("click",function(o){const r=G(e).index;return q(f(2).removeOption(o,r))}),g(5,Ehe,1,2,"TimesCircleIcon",28),g(6,Mhe,2,2,"span",29),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",He(11,Ohe,o.focusedMultipleOptionIndex()===n)),K("id",o.id+"_multiple_option_"+n)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",n+1)("aria-selected",!0),h(2),d("ngTemplateOutlet",o.selectedItemTemplate)("ngTemplateOutletContext",He(13,Iv,e)),h(1),d("ngIf",!o.selectedItemTemplate),h(2),d("ngIf",!o.removeIconTemplate),h(1),d("ngIf",o.removeIconTemplate)}}function Phe(t,i){if(1&t){const e=De();x(0,"ul",18,19),me("focus",function(o){return G(e),q(f().onMultipleContainerFocus(o))})("blur",function(o){return G(e),q(f().onMultipleContainerBlur(o))})("keydown",function(o){return G(e),q(f().onMultipleContainerKeyDown(o))}),g(2,Lhe,7,15,"li",20),x(3,"li",21)(4,"input",22,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()()()}if(2&t){const e=f();Ve(e.multiContainerClass),d("tabindex",-1),K("aria-orientation","horizontal")("aria-activedescendant",e.focused?e.focusedMultipleOptionId:void 0),h(2),d("ngForOf",e.modelValue()),h(2),Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("autocomplete",e.autocomplete)("required",e.required)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("type",e.type)("id",e.inputId)("name",e.name)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function Fhe(t,i){1&t&&le(0,"SpinnerIcon",35),2&t&&(d("styleClass","p-autocomplete-loader")("spin",!0),K("aria-hidden",!0))}function Rhe(t,i){}function Nhe(t,i){1&t&&g(0,Rhe,0,0,"ng-template")}function Vhe(t,i){if(1&t&&(x(0,"span",36),g(1,Nhe,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function Bhe(t,i){if(1&t&&(we(0),g(1,Fhe,1,3,"SpinnerIcon",33),g(2,Vhe,2,2,"span",34),Te()),2&t){const e=f();h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function Hhe(t,i){1&t&&le(0,"span",40),2&t&&(d("ngClass",f(2).dropdownIcon),K("aria-hidden",!0))}function zhe(t,i){1&t&&le(0,"ChevronDownIcon")}function jhe(t,i){}function Uhe(t,i){1&t&&g(0,jhe,0,0,"ng-template")}function $he(t,i){if(1&t&&(we(0),g(1,zhe,1,0,"ChevronDownIcon",3),g(2,Uhe,1,0,null,9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.dropdownIconTemplate),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function Khe(t,i){if(1&t){const e=De();x(0,"button",37,38),me("click",function(o){return G(e),q(f().handleDropdownClick(o))}),g(2,Hhe,1,2,"span",39),g(3,$he,3,2,"ng-container",3),A()}if(2&t){const e=f();d("disabled",e.disabled),K("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),h(2),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Ghe(t,i){1&t&&ze(0)}function qhe(t,i){1&t&&ze(0)}const iO=function(t,i){return{$implicit:t,options:i}};function Whe(t,i){if(1&t&&g(0,qhe,1,0,"ng-container",25),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(14))("ngTemplateOutletContext",mt(2,iO,e,n))}}function Qhe(t,i){1&t&&ze(0)}const Zhe=function(t){return{options:t}};function Yhe(t,i){if(1&t&&g(0,Qhe,1,0,"ng-container",25),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,Zhe,e))}}function Xhe(t,i){1&t&&(we(0),g(1,Yhe,1,4,"ng-template",44),Te())}const tg=function(t){return{height:t}};function Jhe(t,i){if(1&t){const e=De();x(0,"p-scroller",41,42),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,Whe,1,5,"ng-template",43),g(3,Xhe,2,0,"ng-container",3),A()}if(2&t){const e=f();yn(He(8,tg,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function efe(t,i){1&t&&ze(0)}const tfe=function(){return{}};function nfe(t,i){if(1&t&&(we(0),g(1,efe,1,0,"ng-container",25),Te()),2&t){const e=f(),n=Bt(14);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,iO,e.visibleOptions(),Jt(2,tfe)))}}function ife(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function ofe(t,i){1&t&&ze(0)}function sfe(t,i){if(1&t&&(we(0),x(1,"li",50),g(2,ife,2,1,"span",3),g(3,ofe,1,0,"ng-container",25),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,tg,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Iv,o.optionGroup))}}function rfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function afe(t,i){1&t&&ze(0)}const lfe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},cfe=function(t,i){return{$implicit:t,index:i}};function ufe(t,i){if(1&t){const e=De();we(0),x(1,"li",51),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionSelect(o,s))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),g(2,rfe,2,1,"span",3),g(3,afe,1,0,"ng-container",25),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,tg,s.itemSize+"px"))("ngClass",Rn(14,lfe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("data-p-focused",r.focusedOptionIndex()===r.getOptionIndex(o,s))("aria-setsize",r.ariaSetSize)("aria-posinset",r.getAriaPosInset(r.getOptionIndex(o,s))),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,cfe,n,s.getOptions?s.getOptions(o):o))}}function dfe(t,i){if(1&t&&(g(0,sfe,4,9,"ng-container",3),g(1,ufe,4,21,"ng-container",3)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function pfe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.searchResultMessageText," ")}}function hfe(t,i){1&t&&ze(0,null,54)}function ffe(t,i){if(1&t&&(x(0,"li",52),g(1,pfe,2,1,"ng-container",53),g(2,hfe,2,0,"ng-container",9),A()),2&t){const e=f().options,n=f();d("ngStyle",He(4,tg,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function gfe(t,i){1&t&&ze(0)}function mfe(t,i){if(1&t&&(x(0,"ul",45,46),g(2,dfe,2,2,"ng-template",47),g(3,ffe,3,6,"li",48),A(),g(4,gfe,1,0,"ng-container",25),x(5,"span",49),Le(6),A()),2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",!e||e&&0===e.length&&o.showEmptyMessage),h(1),d("ngTemplateOutlet",o.footerTemplate)("ngTemplateOutletContext",He(9,Iv,e)),h(2),Pt(" ",o.selectedMessageText," ")}}const _fe={provide:un,useExisting:ft(()=>Ife),multi:!0};let Ife=(()=>{class t{document;el;renderer;cd;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;optionDisabled;focusOnHover;completeMethod=new ge;onSelect=new ge;onUnselect=new ge;onFocus=new ge;onBlur=new ge;onDropdownClick=new ge;onClear=new ge;onKeyUp=new ge;onShow=new ge;onHide=new ge;onLazyLoad=new ge;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions=bn(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;filled;loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=bn(null);focusedMultipleOptionIndex=bn(-1);focusedOptionIndex=bn(-1);visibleOptions=Ds(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=Ds(()=>{const e=this.modelValue();return this.filled=be.isNotEmpty(this.modelValue()),e?"object"==typeof e?this.getOptionLabel(e)??e:e:""});get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue()||be.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return"p-autocomplete-multiple-container p-component p-inputtext"}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return be.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.config=r,this.overlayService=a,this.zone=l}ngOnInit(){this.id=this.id||$t()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"removetokenicon":this.removeIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}handleSuggestionsChange(){if(this.loading){this._suggestions()||this.emptyTemplate?this.show():this.hide();const e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){return be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,n){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===n.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return this.multiple?e.target===this.multiContainerEL.nativeElement||this.multiContainerEL.nativeElement.contains(e.target):e.target===this.inputEL.nativeElement}isDropdownClicked(e){return!!this.dropdownButton?.nativeElement&&(e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target))}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&j.focus(this.inputEL.nativeElement)}handleDropdownClick(e){let n;this.overlayVisible?this.hide(!0):(j.focus(this.inputEL.nativeElement),n=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,n,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:n})}onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let n=e.target.value;this.multiple||this.updateModel(n),0!==n.length||this.multiple?n.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,n,"input")},this.delay)):this.hide():(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2))}onInputChange(e){if(this.forceSelection){let n=!1;if(this.visibleOptions()){const o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));void 0!==o&&(n=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}n||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}}onArrowDownKey(e){if(!this.overlayVisible)return;const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){const n=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(be.isEmpty(n.value)&&this.hasSelectedOption()?(j.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){const{currentTarget:n}=e;n.setSelectionRange(0,e.shiftKey?n.value.length:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){const{currentTarget:n}=e,o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(be.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){const n=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:n})}e.stopPropagation()}}onArrowLeftKeyOnMultiple(e){const n=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(n)}onArrowRightKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex();n++,this.focusedMultipleOptionIndex.set(n),n>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),j.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,n,o=!0){const s=this.getOptionValue(n);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(n)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:n}),o&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}search(e,n,o){null!=n&&("input"===o&&0===n.trim().length||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:n})))}removeOption(e,n){const o=this.modelValue()[n],s=this.modelValue().filter((r,a)=>a!==n).map(r=>this.getOptionValue(r));this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),j.focus(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.value&&this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=this.multiple?"":this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions()[n],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.inputEL.nativeElement),e&&j.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){const n=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&j.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{n()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.filled=!(!this.value||!this.value.length),this.updateModel(e),this.cd.markForCheck()}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?be.resolveFieldData(e,this.field||this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState&&(this.itemsWrapper=j.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ki),V(Dr),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-autoComplete"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(phe,5),je(hhe,5),je(fhe,5),je(ghe,5),je(mhe,5),je(_he,5),je(Ihe,5),je(Che,5)),2&n){let s;Se(s=Ee())&&(o.containerEL=s.first),Se(s=Ee())&&(o.inputEL=s.first),Se(s=Ee())&&(o.multiInputEl=s.first),Se(s=Ee())&&(o.multiContainerEL=s.first),Se(s=Ee())&&(o.dropdownButton=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused&&!o.disabled||o.autofocus||o.overlayVisible)("p-autocomplete-clearable",o.showClear&&!o.disabled)},inputs:{minLength:"minLength",delay:"delay",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:"readonly",disabled:"disabled",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",maxlength:"maxlength",name:"name",required:"required",size:"size",appendTo:"appendTo",autoHighlight:"autoHighlight",forceSelection:"forceSelection",type:"type",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:"unique",group:"group",completeOnFocus:"completeOnFocus",showClear:"showClear",field:"field",dropdown:"dropdown",showEmptyMessage:"showEmptyMessage",dropdownMode:"dropdownMode",multiple:"multiple",tabindex:"tabindex",dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:"autofocus",autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",optionDisabled:"optionDisabled",focusOnHover:"focusOnHover"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[yt([_fe])],decls:15,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["focusInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"tabindex","focus","blur","keydown"],["multiContainer",""],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"autofocus","ngClass","ngStyle","autocomplete","required","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["role","option",3,"ngClass"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"disabled","click"],["ddBtn",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"ngStyle","ngClass","click","mouseenter"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,vhe,2,23,"input",2),g(3,whe,3,2,"ng-container",3),g(4,Phe,6,28,"ul",4),g(5,Bhe,3,2,"ng-container",3),g(6,Khe,4,5,"button",5),x(7,"p-overlay",6,7),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),x(9,"div",8),g(10,Ghe,1,0,"ng-container",9),g(11,Jhe,4,10,"p-scroller",10),g(12,nfe,2,6,"ng-container",3),g(13,mfe,7,11,"ng-template",null,11,In),A()()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),h(2),d("ngIf",!o.multiple),h(1),d("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),h(1),d("ngIf",o.multiple),h(1),d("ngIf",o.loading),h(1),d("ngIf",o.dropdown),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions),h(2),Ve(o.panelStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight),d("ngClass",o.panelClass)("ngStyle",o.panelStyle),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,hf,oo,Bu,uC,ir,_s,mn,bi]},styles:["@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:-moz-fit-content;width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Cfe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Zs,Mi,Qe,dn,Oi,gf,ir,_s,mn,bi,$l,Qe,Oi,gf]})}return t})(),oO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["HomeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4175 6.79971C13.2874 6.80029 13.1608 6.75807 13.057 6.67955L12.4162 6.19913V12.6073C12.4141 12.7659 12.3502 12.9176 12.2379 13.0298C12.1257 13.142 11.9741 13.206 11.8154 13.208H8.61206C8.61179 13.208 8.61151 13.208 8.61123 13.2081C8.61095 13.208 8.61068 13.208 8.6104 13.208H5.41076C5.40952 13.208 5.40829 13.2081 5.40705 13.2081C5.40581 13.2081 5.40458 13.208 5.40334 13.208H2.20287C2.04418 13.206 1.89257 13.142 1.78035 13.0298C1.66813 12.9176 1.60416 12.7659 1.60209 12.6073V6.19914L0.961256 6.67955C0.833786 6.77515 0.673559 6.8162 0.515823 6.79367C0.358086 6.77114 0.215762 6.68686 0.120159 6.55939C0.0245566 6.43192 -0.0164931 6.2717 0.00604063 6.11396C0.0285744 5.95622 0.112846 5.8139 0.240316 5.7183L1.83796 4.52007L1.84689 4.51337L6.64868 0.912027C6.75267 0.834032 6.87915 0.79187 7.00915 0.79187C7.13914 0.79187 7.26562 0.834032 7.36962 0.912027L12.1719 4.51372L12.1799 4.51971L13.778 5.7183C13.8943 5.81278 13.9711 5.94732 13.9934 6.09553C14.0156 6.24373 13.9816 6.39489 13.8981 6.51934C13.8471 6.60184 13.7766 6.67054 13.6928 6.71942C13.609 6.76831 13.5144 6.79587 13.4175 6.79971ZM6.00783 12.0065H8.01045V7.60074H6.00783V12.0065ZM9.21201 12.0065V6.99995C9.20994 6.84126 9.14598 6.68965 9.03375 6.57743C8.92153 6.46521 8.76992 6.40124 8.61123 6.39917H5.40705C5.24836 6.40124 5.09675 6.46521 4.98453 6.57743C4.8723 6.68965 4.80834 6.84126 4.80627 6.99995V12.0065H2.80366V5.29836L7.00915 2.14564L11.2146 5.29836V12.0065H9.21201Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),sge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qi,oO,Qe,qn,Nn,Qe]})}return t})(),uge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),Lge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Qi,Mr,bi,ff,Xe,Qe]})}return t})();const Pge=["input"];function Fge(t,i){1&t&&le(0,"span",10),2&t&&(d("ngClass",f(3).checkboxIcon),K("data-pc-section","icon"))}function Rge(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","icon"))}function Nge(t,i){if(1&t&&(we(0),g(1,Fge,1,2,"span",8),g(2,Rge,1,2,"CheckIcon",9),Te()),2&t){const e=f(2);h(1),d("ngIf",e.checkboxIcon),h(1),d("ngIf",!e.checkboxIcon)}}function Vge(t,i){}function Bge(t,i){1&t&&g(0,Vge,0,0,"ng-template")}function Hge(t,i){if(1&t&&(x(0,"span",12),g(1,Bge,1,0,null,13),A()),2&t){const e=f(2);K("data-pc-section","icon"),h(1),d("ngTemplateOutlet",e.checkboxIconTemplate)}}function zge(t,i){if(1&t&&(we(0),g(1,Nge,3,2,"ng-container",5),g(2,Hge,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkboxIconTemplate),h(1),d("ngIf",e.checkboxIconTemplate)}}const jge=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function Uge(t,i){if(1&t){const e=De();x(0,"label",14),me("click",function(o){return G(e),q(f().onClick(o))}),Le(1),A()}if(2&t){const e=f();Ve(e.labelStyleClass),d("ngClass",Rn(6,jge,e.checked(),e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),Pt(" ",e.label,"")}}const $ge=function(t,i,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},Kge=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},Gge={provide:un,useExisting:ft(()=>qge),multi:!0};let qge=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new ge;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()&&(this.checkboxIconTemplate=e.template)})}onClick(e){if(!this.disabled&&!this.readonly){let n;this.inputViewChild.nativeElement.focus(),this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(o=>!be.equals(o,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:be.contains(this.value,this.model)}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-checkbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Pge,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([Gge])],decls:7,vars:35,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"value","checked","disabled","readonly","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,zge,3,2,"ng-container",5),A()(),g(6,Uge,2,10,"label",6)),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(27,$ge,o.checked(),o.disabled,o.focused)),K("data-pc-name","checkbox")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("value",o.value)("checked",o.checked())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("name",o.name)("tabindex",o.tabindex)("required",o.required)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-checked",o.checked())("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(31,Kge,o.checked(),o.disabled,o.focused)),K("data-p-highlight",o.checked())("data-p-disabled",o.disabled)("data-p-focused",o.focused)("data-pc-section","input"),h(1),d("ngIf",o.checked()),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return t})(),Wge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,Qe]})}return t})();const Qge=["inputtext"],Zge=["container"];function Yge(t,i){1&t&&ze(0)}function Xge(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f().$implicit,n=f();K("data-pc-section","label"),h(1),dt(n.field?n.resolveFieldData(e,n.field):e)}}function Jge(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",15),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),A()}2&t&&(d("styleClass","p-chips-token-icon"),K("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function eme(t,i){}function tme(t,i){1&t&&g(0,eme,0,0,"ng-template")}function nme(t,i){if(1&t){const e=De();x(0,"span",16),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),g(1,tme,1,0,null,17),A()}if(2&t){const e=f(3);K("data-pc-section","removeTokenIcon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function ime(t,i){if(1&t&&(we(0),g(1,Jge,1,3,"TimesCircleIcon",13),g(2,nme,2,3,"span",14),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}const ome=function(t){return{"p-chips-token":!0,"p-focus":t}},sme=function(t){return{$implicit:t}};function rme(t,i){if(1&t){const e=De();x(0,"li",8,9),me("click",function(o){const r=G(e).$implicit;return q(f().onItemClick(o,r))}),g(2,Yge,1,0,"ng-container",10),g(3,Xge,2,2,"span",11),g(4,ime,3,2,"ng-container",7),A()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",He(12,ome,o.focusedIndex===n)),K("id",o.id+"_chips_item_"+n)("ariaLabel",e)("aria-selected",!0)("aria-setsize",o.value.length)("aria-pointset",n+1)("data-p-focused",o.focusedIndex===n)("data-pc-section","token"),h(2),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",He(14,sme,e)),h(1),d("ngIf",!o.itemTemplate),h(1),d("ngIf",!o.disabled)}}function ame(t,i){if(1&t){const e=De();x(0,"TimesIcon",15),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&d("styleClass","p-chips-clear-icon")}function lme(t,i){}function cme(t,i){1&t&&g(0,lme,0,0,"ng-template")}function ume(t,i){if(1&t){const e=De();x(0,"span",19),me("click",function(){return G(e),q(f(2).clear())}),g(1,cme,1,0,null,17),A()}if(2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function dme(t,i){if(1&t&&(x(0,"li"),g(1,ame,1,1,"TimesIcon",13),g(2,ume,2,1,"span",18),A()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const pme=function(t,i,e,n){return{"p-chips p-component p-input-wrapper":!0,"p-disabled":t,"p-focus":i,"p-inputwrapper-filled":e,"p-inputwrapper-focus":n}},hme=function(){return{"p-inputtext p-chips-multiple-container":!0}},fme=function(t){return{"p-chips-clearable":t}},gme={provide:un,useExisting:ft(()=>mme),multi:!0};let mme=(()=>{class t{document;el;cd;style;styleClass;disabled;field;placeholder;max;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;onAdd=new ge;onRemove=new ge;onFocus=new ge;onBlur=new ge;onChipClick=new ge;onClear=new ge;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=$t();focused;focusedIndex;filled;get focusedOptionId(){return null!==this.focusedIndex?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(e,n,o){this.document=e,this.el=n,this.cd=o}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template}}),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(e)}}onArrowLeftKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex=null===this.focusedIndex?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(e){null!==this.focusedIndex&&this.removeItem(e,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(e){this.disabled||(this.separator&&((e.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(o=>{this.addItem(e,o,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){this.filled=!(!this.value||0===this.value.length)||this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(e,n){this.onChipClick.emit({originalEvent:e,value:n})}writeValue(e){this.value=e,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}resolveFieldData(e,n){if(e&&n){if(-1==n.indexOf("."))return e[n];{let r=n.split("."),a=e;for(var o=0,s=r.length;or!=n),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:e,value:o}),this.updateFilledState(),this.updateMaxedOut()}addItem(e,n,o){this.value=this.value||[],n&&n.trim().length&&(this.allowDuplicate||-1===this.value.indexOf(n))&&!this.isMaxedOut&&(this.value=[...this.value,n],this.onModelChange(this.value),this.onAdd.emit({originalEvent:e,value:n})),this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",o&&e.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(e){const n=e.target.value;switch(e.code){case"Backspace":0===n.length&&this.value&&this.value.length>0&&this.removeItem(e,null!==this.focusedIndex?this.focusedIndex:this.value.length-1);break;case"Enter":n&&n.trim().length&&!this.isMaxedOut&&this.addItem(e,n,!0);break;case"ArrowLeft":0===n.length&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":e.stopPropagation();break;default:this.separator&&(this.separator===e.key||e.key.match(this.separator))&&this.addItem(e,n,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-chips"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(Qge,5),je(Zge,5)),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-chips-clearable",o.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[yt([gme])],decls:8,vars:31,consts:[[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"ngClass","click","focus","blur","keydown"],["container",""],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text",3,"disabled","ngStyle","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],["role","option",3,"ngClass","click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"ul",1,2),me("click",function(){return o.onWrapperClick()})("focus",function(){return o.onContainerFocus()})("blur",function(){return o.onContainerBlur()})("keydown",function(r){return o.onContainerKeyDown(r)}),g(3,rme,5,16,"li",3),x(4,"li",4)(5,"input",5,6),me("keydown",function(r){return o.onKeyDown(r)})("input",function(){return o.onInput()})("paste",function(r){return o.onPaste(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A()(),g(7,dme,3,2,"li",7),A()()),2&n&&(Ve(o.styleClass),d("ngClass",gr(23,pme,o.disabled,o.focused,o.value&&o.value.length||(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value)&&(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value.length),o.focused))("ngStyle",o.style),K("data-pc-name","chips")("data-pc-section","root"),h(1),d("ngClass",Jt(28,hme)),K("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),h(2),d("ngForOf",o.value),h(1),d("ngClass",He(29,fme,o.showClear&&!o.disabled)),K("data-pc-section","inputToken"),h(1),Ve(o.inputStyleClass),d("disabled",o.disabled||o.isMaxedOut)("ngStyle",o.inputStyle),K("id",o.inputId)("placeholder",o.value&&o.value.length?null:o.placeholder)("tabindex",o.tabindex),h(2),d("ngIf",null!=o.value&&o.filled&&!o.disabled&&o.showClear))},dependencies:function(){return[Ct,Jn,gt,on,Ht,ir,mn]},styles:["@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),_me=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Qe,ir,mn,Zs,Qe]})}return t})();Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}",en({transform:"none",opacity:1}))]),Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Jme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,dn,mn,yi,Mi,Qe]})}return t})();const e_e=["container"],t_e=["input"],n_e=["colorSelector"],i_e=["colorHandle"],o_e=["hue"],s_e=["hueHandle"],r_e=function(t){return{"p-disabled":t}};function a_e(t,i){if(1&t){const e=De();x(0,"input",4,5),me("click",function(){return G(e),q(f().onInputClick())})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("focus",function(){return G(e),q(f().onInputFocus())}),A()}if(2&t){const e=f();fo("background-color",e.inputBgColor),d("ngClass",He(7,r_e,e.disabled))("disabled",e.disabled),K("tabindex",e.tabindex)("id",e.inputId)("data-pc-section","input")}}const l_e=function(t,i){return{"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":t,"p-disabled":i}},c_e=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},u_e=function(t){return{value:"visible",params:t}};function d_e(t,i){if(1&t){const e=De();x(0,"div",6),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(1,"div",7)(2,"div",8,9),me("touchstart",function(o){return G(e),q(f().onColorDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())})("mousedown",function(o){return G(e),q(f().onColorMousedown(o))}),x(4,"div",10),le(5,"div",11,12),A()(),x(7,"div",13,14),me("mousedown",function(o){return G(e),q(f().onHueMousedown(o))})("touchstart",function(o){return G(e),q(f().onHueDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())}),le(9,"div",15,16),A()()()}if(2&t){const e=f();d("ngClass",mt(10,l_e,!e.inline,e.disabled))("@overlayAnimation",He(16,u_e,mt(13,c_e,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("data-pc-section","panel"),h(1),K("data-pc-section","content"),h(1),K("data-pc-section","selector"),h(2),K("data-pc-section","color"),h(1),K("data-pc-section","colorHandle"),h(2),K("data-pc-section","hue"),h(2),K("data-pc-section","hueHandle")}}const p_e=function(t,i){return{"p-colorpicker p-component":!0,"p-colorpicker-overlay":t,"p-colorpicker-dragging":i}},h_e={provide:un,useExisting:ft(()=>f_e),multi:!0};let f_e=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;style;styleClass;inline;format="hex";appendTo;disabled;tabindex;inputId;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onChange=new ge;onShow=new ge;onHide=new ge;containerViewChild;inputViewChild;value={h:0,s:100,b:100};inputBgColor;shown;overlayVisible;defaultColor="ff0000";onModelChange=()=>{};onModelTouched=()=>{};documentClickListener;documentResizeListener;documentMousemoveListener;documentMouseupListener;documentHueMoveListener;scrollHandler;selfClick;colorDragging;hueDragging;overlay;colorSelectorViewChild;colorHandleViewChild;hueViewChild;hueHandleViewChild;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueDragStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorDragStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,n){let o=n?n.pageY:e.pageY,s=this.hueViewChild?.nativeElement.getBoundingClientRect().top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,o-s)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onDrag(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,n){let o=n?n.pageX:e.pageX,s=n?n.pageY:e.pageY,r=this.colorSelectorViewChild?.nativeElement.getBoundingClientRect(),a=r.top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0),c=Math.floor(100*Math.max(0,Math.min(150,o-(r.left+this.document.body.scrollLeft)))/150),u=Math.floor(100*(150-Math.max(0,Math.min(150,s-a)))/150);this.value=this.validateHSB({h:this.value.h,s:c,b:u}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){const e={s:100,b:100};e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild?.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inline||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&Wn.clear(e.element),this.onHide.emit({})}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):j.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.overlay)}alignOverlay(){this.appendTo?j.absolutePosition(this.overlay,this.inputViewChild?.nativeElement):j.relativePosition(this.overlay,this.inputViewChild?.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.code){case"Space":this.togglePanel(),e.preventDefault();break;case"Escape":case"Tab":this.hide()}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){this.documentMousemoveListener||(this.documentMousemoveListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousemove",n=>{this.colorDragging&&this.pickColor(n),this.hueDragging&&this.pickHue(n)}))}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){this.documentMouseupListener||(this.documentMouseupListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}))}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var n=6-e.length;if(n>0){for(var o=[],s=0;s-1?e.substring(1):e,16);return{r:n>>16,g:(65280&n)>>8,b:255&n}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var n={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),s=Math.max(e.r,e.g,e.b),r=s-o;return n.b=s,n.s=0!=s?255*r/s:0,n.h=0!=n.s?e.r==s?(e.g-e.b)/r:e.g==s?2+(e.b-e.r)/r:4+(e.r-e.g)/r:-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n}HSBtoRGB(e){var n={r:0,g:0,b:0};let o=e.h,s=255*e.s/100,r=255*e.b/100;if(0==s)n={r,g:r,b:r};else{let a=r,l=(255-s)*r/255,c=o%60*(a-l)/60;360==o&&(o=0),o<60?(n.r=a,n.b=l,n.g=l+c):o<120?(n.g=a,n.b=l,n.r=a-c):o<180?(n.g=a,n.r=l,n.b=l+c):o<240?(n.b=a,n.r=l,n.g=a-c):o<300?(n.b=a,n.g=l,n.r=l+c):o<360?(n.r=a,n.g=l,n.b=a-c):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}RGBtoHEX(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var o in n)1==n[o].length&&(n[o]="0"+n[o]);return n.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-colorPicker"]],viewQuery:function(n,o){if(1&n&&(je(e_e,5),je(t_e,5),je(n_e,5),je(i_e,5),je(o_e,5),je(s_e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.colorSelector=s.first),Se(s=Ee())&&(o.colorHandle=s.first),Se(s=Ee())&&(o.hue=s.first),Se(s=Ee())&&(o.hueHandle=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",inline:"inline",format:"format",appendTo:"appendTo",disabled:"disabled",tabindex:"tabindex",inputId:"inputId",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[yt([h_e])],decls:4,vars:11,consts:[[3,"ngStyle","ngClass"],["container",""],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly",3,"ngClass","disabled","backgroundColor","click","keydown","focus",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview","p-inputtext",3,"ngClass","disabled","click","keydown","focus"],["input",""],[3,"ngClass","click"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],["colorSelector",""],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],["colorHandle",""],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],["hue",""],[1,"p-colorpicker-hue-handle"],["hueHandle",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,a_e,2,9,"input",2),g(3,d_e,11,18,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(8,p_e,!o.inline,o.colorDragging||o.hueDragging)),K("data-pc-name","colorpicker")("data-pc-section","root"),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{position:relative;width:193px;height:166px}.p-colorpicker-overlay-panel{position:absolute;top:0;left:0}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{width:150px;height:150px;top:8px;left:8px;position:absolute}.p-colorpicker-panel .p-colorpicker-color{width:150px;height:150px}.p-colorpicker-panel .p-colorpicker-color-handle{position:absolute;top:0;left:150px;border-radius:100%;width:10px;height:10px;border-width:1px;border-style:solid;margin:-5px 0 0 -5px;cursor:pointer;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue{width:17px;height:150px;top:8px;left:167px;position:absolute;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue-handle{position:absolute;top:150px;left:0;width:21px;margin-left:-2px;margin-top:-5px;height:10px;border-width:2px;border-style:solid;opacity:.85;cursor:pointer}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),g_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),m_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ThLargeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.90909 6.36364H4.45455C4.96087 6.36364 5.44645 6.1625 5.80448 5.80448C6.1625 5.44645 6.36364 4.96087 6.36364 4.45455V1.90909C6.36364 1.40277 6.1625 0.917184 5.80448 0.55916C5.44645 0.201136 4.96087 0 4.45455 0H1.90909C1.40277 0 0.917184 0.201136 0.55916 0.55916C0.201136 0.917184 0 1.40277 0 1.90909V4.45455C0 4.96087 0.201136 5.44645 0.55916 5.80448C0.917184 6.1625 1.40277 6.36364 1.90909 6.36364ZM1.46154 1.46154C1.58041 1.34268 1.741 1.27492 1.90909 1.27273H4.45455C4.62264 1.27492 4.78322 1.34268 4.90209 1.46154C5.02096 1.58041 5.08871 1.741 5.09091 1.90909V4.45455C5.08871 4.62264 5.02096 4.78322 4.90209 4.90209C4.78322 5.02096 4.62264 5.08871 4.45455 5.09091H1.90909C1.741 5.08871 1.58041 5.02096 1.46154 4.90209C1.34268 4.78322 1.27492 4.62264 1.27273 4.45455V1.90909C1.27492 1.741 1.34268 1.58041 1.46154 1.46154ZM1.90909 14H4.45455C4.96087 14 5.44645 13.7989 5.80448 13.4408C6.1625 13.0828 6.36364 12.5972 6.36364 12.0909V9.54544C6.36364 9.03912 6.1625 8.55354 5.80448 8.19551C5.44645 7.83749 4.96087 7.63635 4.45455 7.63635H1.90909C1.40277 7.63635 0.917184 7.83749 0.55916 8.19551C0.201136 8.55354 0 9.03912 0 9.54544V12.0909C0 12.5972 0.201136 13.0828 0.55916 13.4408C0.917184 13.7989 1.40277 14 1.90909 14ZM1.46154 9.0979C1.58041 8.97903 1.741 8.91128 1.90909 8.90908H4.45455C4.62264 8.91128 4.78322 8.97903 4.90209 9.0979C5.02096 9.21677 5.08871 9.37735 5.09091 9.54544V12.0909C5.08871 12.259 5.02096 12.4196 4.90209 12.5384C4.78322 12.6573 4.62264 12.7251 4.45455 12.7273H1.90909C1.741 12.7251 1.58041 12.6573 1.46154 12.5384C1.34268 12.4196 1.27492 12.259 1.27273 12.0909V9.54544C1.27492 9.37735 1.34268 9.21677 1.46154 9.0979ZM12.0909 6.36364H9.54544C9.03912 6.36364 8.55354 6.1625 8.19551 5.80448C7.83749 5.44645 7.63635 4.96087 7.63635 4.45455V1.90909C7.63635 1.40277 7.83749 0.917184 8.19551 0.55916C8.55354 0.201136 9.03912 0 9.54544 0H12.0909C12.5972 0 13.0828 0.201136 13.4408 0.55916C13.7989 0.917184 14 1.40277 14 1.90909V4.45455C14 4.96087 13.7989 5.44645 13.4408 5.80448C13.0828 6.1625 12.5972 6.36364 12.0909 6.36364ZM9.54544 1.27273C9.37735 1.27492 9.21677 1.34268 9.0979 1.46154C8.97903 1.58041 8.91128 1.741 8.90908 1.90909V4.45455C8.91128 4.62264 8.97903 4.78322 9.0979 4.90209C9.21677 5.02096 9.37735 5.08871 9.54544 5.09091H12.0909C12.259 5.08871 12.4196 5.02096 12.5384 4.90209C12.6573 4.78322 12.7251 4.62264 12.7273 4.45455V1.90909C12.7251 1.741 12.6573 1.58041 12.5384 1.46154C12.4196 1.34268 12.259 1.27492 12.0909 1.27273H9.54544ZM9.54544 14H12.0909C12.5972 14 13.0828 13.7989 13.4408 13.4408C13.7989 13.0828 14 12.5972 14 12.0909V9.54544C14 9.03912 13.7989 8.55354 13.4408 8.19551C13.0828 7.83749 12.5972 7.63635 12.0909 7.63635H9.54544C9.03912 7.63635 8.55354 7.83749 8.19551 8.19551C7.83749 8.55354 7.63635 9.03912 7.63635 9.54544V12.0909C7.63635 12.5972 7.83749 13.0828 8.19551 13.4408C8.55354 13.7989 9.03912 14 9.54544 14ZM9.0979 9.0979C9.21677 8.97903 9.37735 8.91128 9.54544 8.90908H12.0909C12.259 8.91128 12.4196 8.97903 12.5384 9.0979C12.6573 9.21677 12.7251 9.37735 12.7273 9.54544V12.0909C12.7251 12.259 12.6573 12.4196 12.5384 12.5384C12.4196 12.6573 12.259 12.7251 12.0909 12.7273H9.54544C9.37735 12.7251 9.21677 12.6573 9.0979 12.5384C8.97903 12.4196 8.91128 12.259 8.90908 12.0909V9.54544C8.91128 9.37735 8.97903 9.21677 9.0979 9.0979Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),lO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BarsIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),k_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,vf,_s,lO,m_e,Qe]})}return t})();var M_e=z(7536);function O_e(t,i){1&t&&ze(0)}function L_e(t,i){if(1&t&&(x(0,"div",3),Kn(1),g(2,O_e,1,0,"ng-container",4),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)}}function P_e(t,i){1&t&&(x(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),Le(4,"Heading"),A(),x(5,"option",8),Le(6,"Subheading"),A(),x(7,"option",9),Le(8,"Normal"),A()(),x(9,"select",10)(10,"option",9),Le(11,"Sans Serif"),A(),x(12,"option",11),Le(13,"Serif"),A(),x(14,"option",12),Le(15,"Monospace"),A()()(),x(16,"span",5),le(17,"button",13)(18,"button",14)(19,"button",15),A(),x(20,"span",5),le(21,"select",16)(22,"select",17),A(),x(23,"span",5),le(24,"button",18)(25,"button",19),x(26,"select",20),le(27,"option",9),x(28,"option",21),Le(29,"center"),A(),x(30,"option",22),Le(31,"right"),A(),x(32,"option",23),Le(33,"justify"),A()()(),x(34,"span",5),le(35,"button",24)(36,"button",25)(37,"button",26),A(),x(38,"span",5),le(39,"button",27),A()())}const F_e=[[["p-header"]]],R_e=["p-header"],N_e={provide:un,useExisting:ft(()=>V_e),multi:!0};let V_e=(()=>{class t{el;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new ge;onTextChange=new ge;onSelectionChange=new ge;templates;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;constructor(e){this.el=e}ngAfterViewInit(){this.initQuillElements(),this.isAttachedQuillEditorToDOM&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.isAttachedQuillEditorToDOM&&this.initQuillEditor(),this.delayedCommand&&this.isAttachedQuillEditorToDOM&&(this.delayedCommand(),this.delayedCommand=null)}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()&&(this.headerTemplate=e.template)})}writeValue(e){if(this.value=e,this.quill)if(e){const n=()=>{this.quill.setContents(this.quill.clipboard.convert(this.value))};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}else{const n=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}initQuillEditor(){this.initQuillElements();const{toolbarElement:e,editorElement:n}=this.quillElements;let o={toolbar:e},s=this.modules?{...o,...this.modules}:o;this.quill=new M_e(n,{modules:s,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(r,a,l)=>{if("user"===l){let c=j.findSingle(n,".ql-editor").innerHTML,u=this.quill.getText().trim();"


"===c&&(c=null),this.onTextChange.emit({htmlValue:c,textValue:u,delta:r,source:l}),this.onModelChange(c),this.onModelTouched()}}),this.quill.on("selection-change",(r,a,l)=>{this.onSelectionChange.emit({range:r,oldRange:a,source:l})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:j.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:j.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-editor"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.toolbar=r.first),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[yt([N_e])],ngContentSelectors:R_e,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(n,o){1&n&&(Ti(F_e),x(0,"div",0),g(1,L_e,3,1,"div",1),g(2,P_e,40,0,"div",1),le(3,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-editor-container"),h(1),d("ngIf",o.toolbar||o.headerTemplate),h(1),d("ngIf",!o.toolbar&&!o.headerTemplate),h(1),d("ngStyle",o.style))},dependencies:[Ct,gt,on,Ht],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0})}return t})(),B_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),ng=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Z_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,eg,ng,Qe]})}return t})(),Y_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["UploadIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[st,Et],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3),A(),x(5,"defs")(6,"clipPath",4),le(7,"rect",5),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(5),d("id",o.pathId))},encapsulation:2})}return t})(),bv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),yv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn]})}return t})(),xv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),hIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,eE,Qe,Mi,xv,yv,dn,ng,Y_e,mn,Qe,Mi,xv,yv]})}return t})(),xIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,mn,Mi,Qe]})}return t})();const AIe=["input"];function wIe(t,i){if(1&t){const e=De();x(0,"TimesIcon",5),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-inputmask-clear-icon"),K("data-pc-section","clearIcon"))}function TIe(t,i){}function SIe(t,i){1&t&&g(0,TIe,0,0,"ng-template")}function EIe(t,i){if(1&t){const e=De();x(0,"span",6),me("click",function(){return G(e),q(f(2).clear())}),g(1,SIe,1,0,null,7),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function DIe(t,i){if(1&t&&(we(0),g(1,wIe,1,2,"TimesIcon",3),g(2,EIe,2,2,"span",4),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const kIe={provide:un,useExisting:ft(()=>MIe),multi:!0};let MIe=(()=>{class t{document;platformId;el;cd;type="text";slotChar="_";autoClear=!0;showClear=!1;style;inputId;styleClass;placeholder;size;maxlength;tabindex;title;ariaLabel;ariaLabelledBy;ariaRequired;disabled;readonly;unmask;name;required;characterPattern="[A-Za-z]";autoFocus;autocomplete;keepBuffer=!1;get mask(){return this._mask}set mask(e){this._mask=e,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}onComplete=new ge;onFocus=new ge;onBlur=new ge;onInput=new ge;onKeydown=new ge;onClear=new ge;inputViewChild;templates;clearIconTemplate;value;_mask;onModelChange=()=>{};onModelTouched=()=>{};input;filled;defs;tests;partialPosition;firstNonMaskPos;lastRequiredNonMaskPos;len;oldVal;buffer;defaultBuffer;focusText;caretTimeoutId;androidChrome=!0;focused;constructor(e,n,o,s){this.document=e,this.platformId=n,this.el=o,this.cd=s}ngOnInit(){if(ei(this.platformId)){let e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e)}this.initMask()}ngAfterContentInit(){this.templates.forEach(e=>{"clearicon"===e.getType()&&(this.clearIconTemplate=e.template)})}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let e=this.mask.split("");for(let n=0;n=0&&!this.tests[e];);return e}shiftL(e,n){let o,s;if(!(e<0)){for(o=e,s=this.seekNext(n);on.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}else{for(this.checkVal(!0);o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}}onInputBlur(e){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(e),this.inputViewChild?.nativeElement.value!=this.focusText||this.inputViewChild?.nativeElement.value!=this.value){this.updateModel(e);let n=this.document.createEvent("HTMLEvents");n.initEvent("change",!0,!1),this.inputViewChild?.nativeElement.dispatchEvent(n)}}onInputKeydown(e){if(this.readonly)return;let o,s,r,a,n=e.which||e.keyCode;ei(this.platformId)&&(a=/iphone/i.test(j.getUserAgent())),this.oldVal=this.inputViewChild?.nativeElement.value,this.onKeydown.emit(e),8===n||46===n||a&&127===n?(o=this.caret(),s=o.begin,r=o.end,r-s==0&&(s=46!==n?this.seekPrev(s):r=this.seekNext(s-1),r=46===n?this.seekNext(r):r),this.clearBuffer(s,r),this.shiftL(s,this.keepBuffer?r-2:r-1),this.updateModel(e),this.onInput.emit(e),e.preventDefault()):13===n?(this.onInputBlur(e),this.updateModel(e)):27===n&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}onKeyPress(e){if(!this.readonly){var s,r,a,l,n=e.which||e.keyCode,o=this.caret();e.ctrlKey||e.altKey||e.metaKey||n<32||n>34&&n<41||(n&&13!==n&&(o.end-o.begin!=0&&(this.clearBuffer(o.begin,o.end),this.shiftL(o.begin,o.end-1)),(s=this.seekNext(o.begin-1)){this.caret(a)},0):this.caret(a),o.begin<=this.lastRequiredNonMaskPos&&(l=this.isCompleted()),this.onInput.emit(e))),e.preventDefault()),this.updateModel(e),this.updateFilledState(),l&&this.onComplete.emit())}}clearBuffer(e,n){if(!this.keepBuffer){let o;for(o=e;on.length){this.clearBuffer(s+1,this.len);break}}else this.buffer[s]===n.charAt(a)&&a++,s{this.inputViewChild?.nativeElement===this.inputViewChild?.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),n==this.mask?.replace("?","").length?this.caret(0,n):this.caret(n))},10),this.onFocus.emit(e)}onInputChange(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.onInput.emit(e)}handleInputChange(e){this.readonly||setTimeout(()=>{var n=this.checkVal(!0);this.caret(n),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}getUnmaskedValue(){let e=[];for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,gf,mn,Qe]})}return t})(),LIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const PIe=["headerchkbox"],FIe=["filter"],RIe=["lastHiddenFocusableElement"],NIe=["firstHiddenFocusableElement"],VIe=["scroller"],BIe=["list"];function HIe(t,i){1&t&&ze(0)}const ig=function(t,i){return{$implicit:t,options:i}};function zIe(t,i){if(1&t&&(x(0,"div",12),Kn(1),g(2,HIe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function jIe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function UIe(t,i){}function $Ie(t,i){1&t&&g(0,UIe,0,0,"ng-template")}function KIe(t,i){if(1&t&&(x(0,"span",25),g(1,$Ie,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function GIe(t,i){if(1&t&&(we(0),g(1,jIe,1,2,"CheckIcon",22),g(2,KIe,2,2,"span",23),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const cO=function(t){return{"p-checkbox-disabled":t}},qIe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function WIe(t,i){if(1&t){const e=De();x(0,"div",17),me("click",function(o){return G(e),q(f(2).onToggleAll(o))})("keydown",function(o){return G(e),q(f(2).onHeaderCheckboxKeyDown(o))}),x(1,"div",18)(2,"input",19,20),me("focus",function(o){return G(e),q(f(2).onHeaderCheckboxFocus(o))})("blur",function(o){return G(e),q(f(2).onHeaderCheckboxBlur(o))}),A()(),x(4,"div",21),g(5,GIe,3,2,"ng-container",6),A()()}if(2&t){const e=f(2);d("ngClass",He(8,cO,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(10,qIe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function QIe(t,i){1&t&&ze(0)}const uO=function(t){return{options:t}};function ZIe(t,i){if(1&t&&(we(0),g(1,QIe,1,0,"ng-container",13),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,uO,e.filterOptions))}}function YIe(t,i){1&t&&le(0,"SearchIcon",24),2&t&&(d("styleClass","p-listbox-filter-icon"),K("aria-hidden",!0))}function XIe(t,i){}function JIe(t,i){1&t&&g(0,XIe,0,0,"ng-template")}function eCe(t,i){if(1&t&&(x(0,"span",33),g(1,JIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function tCe(t,i){if(1&t){const e=De();x(0,"div",29)(1,"input",30,31),me("input",function(o){return G(e),q(f(3).onFilterChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,YIe,1,2,"SearchIcon",22),g(4,eCe,2,2,"span",32),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||"")("disabled",e.disabled)("tabindex",e.disabled||e.focused?-1:e.tabindex),K("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function nCe(t,i){if(1&t&&(g(0,tCe,5,9,"div",27),x(1,"span",28),Le(2),A()),2&t){const e=f(2);d("ngIf",e.filter),h(1),K("data-p-hidden-accessible",!0),h(1),Pt(" ",e.filterResultMessageText," ")}}function iCe(t,i){if(1&t&&(x(0,"div",12),g(1,WIe,6,14,"div",14),g(2,ZIe,2,4,"ng-container",15),g(3,nCe,3,3,"ng-template",null,16,In),A()),2&t){const e=Bt(4),n=f();h(1),d("ngIf",n.checkbox&&n.multiple&&n.showToggleAll),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function oCe(t,i){1&t&&ze(0)}function sCe(t,i){if(1&t&&g(0,oCe,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,ig,e,n))}}function rCe(t,i){1&t&&ze(0)}function aCe(t,i){if(1&t&&g(0,rCe,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,uO,e))}}function lCe(t,i){1&t&&(we(0),g(1,aCe,1,4,"ng-template",37),Te())}const Av=function(t){return{height:t}};function cCe(t,i){if(1&t){const e=De();x(0,"p-scroller",34,35),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,sCe,1,5,"ng-template",36),g(3,lCe,2,0,"ng-container",6),A()}if(2&t){const e=f();yn(He(9,Av,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function uCe(t,i){1&t&&ze(0)}const dCe=function(){return{}};function pCe(t,i){if(1&t&&(we(0),g(1,uCe,1,0,"ng-container",13),Te()),2&t){const e=f(),n=Bt(9);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,ig,e.visibleOptions(),Jt(2,dCe)))}}function hCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function fCe(t,i){1&t&&ze(0)}const gCe=function(t){return{$implicit:t}};function mCe(t,i){if(1&t&&(we(0),x(1,"li",42),g(2,hCe,2,1,"span",6),g(3,fCe,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,Av,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,gCe,o.optionGroup))}}function _Ce(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function ICe(t,i){}function CCe(t,i){1&t&&g(0,ICe,0,0,"ng-template")}function vCe(t,i){if(1&t&&(x(0,"span",25),g(1,CCe,1,0,null,26),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function bCe(t,i){if(1&t&&(we(0),g(1,_Ce,1,2,"CheckIcon",22),g(2,vCe,2,2,"span",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const yCe=function(t){return{"p-highlight":t}};function xCe(t,i){if(1&t&&(x(0,"div",45)(1,"div",46),g(2,bCe,3,2,"ng-container",6),A()()),2&t){const e=f(2).$implicit,n=f(2);d("ngClass",He(3,cO,n.disabled||n.isOptionDisabled(e))),h(1),d("ngClass",He(5,yCe,n.isSelected(e))),h(1),d("ngIf",n.isSelected(e))}}function ACe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function wCe(t,i){1&t&&ze(0)}const TCe=function(t,i,e){return{"p-listbox-item":!0,"p-highlight":t,"p-focus":i,"p-disabled":e}},SCe=function(t,i){return{$implicit:t,index:i}};function ECe(t,i){if(1&t){const e=De();we(0),x(1,"li",43),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index,l=f().options,c=f();return q(c.onOptionSelect(o,r,c.getOptionIndex(a,l)))})("dblclick",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionDoubleClick(o,s))})("mousedown",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseDown(o,a.getOptionIndex(s,r)))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))})("touchend",function(){return G(e),q(f(3).onOptionTouchEnd())}),g(2,xCe,3,7,"div",44),g(3,ACe,2,1,"span",6),g(4,wCe,1,0,"ng-container",13),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,Av,s.itemSize+"px"))("ngClass",Rn(14,TCe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n)))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(o,s))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("aria-setsize",r.ariaSetSize),h(1),d("ngIf",r.checkbox&&r.multiple),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,SCe,n,r.getOptionIndex(o,s)))}}function DCe(t,i){if(1&t&&(g(0,mCe,4,9,"ng-container",6),g(1,ECe,5,21,"ng-container",6)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function kCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyFilterMessageText," ")}}function MCe(t,i){1&t&&ze(0,null,48)}function OCe(t,i){if(1&t&&(x(0,"li",47),g(1,kCe,2,1,"ng-container",15),g(2,MCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),h(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function LCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyMessageText," ")}}function PCe(t,i){1&t&&ze(0,null,49)}function FCe(t,i){if(1&t&&(x(0,"li",47),g(1,LCe,2,1,"ng-container",15),g(2,PCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),h(1),d("ngTemplateOutlet",e.emptyTemplate)}}function RCe(t,i){if(1&t){const e=De();x(0,"ul",38,39),me("focus",function(o){return G(e),q(f().onListFocus(o))})("blur",function(o){return G(e),q(f().onListBlur(o))})("keydown",function(o){return G(e),q(f().onListKeyDown(o))}),g(2,DCe,2,2,"ng-template",40),g(3,OCe,3,3,"li",41),g(4,FCe,3,3,"li",41),A()}if(2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("tabindex",-1)("ngClass",n.contentStyleClass),K("aria-multiselectable",!0)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-label",o.ariaLabel)("aria-multiselectable",o.multiple)("aria-disabled",o.disabled),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function NCe(t,i){1&t&&ze(0)}function VCe(t,i){if(1&t&&(x(0,"div",50),Kn(1,1),g(2,NCe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function BCe(t,i){if(1&t&&(x(0,"span",10),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.emptyMessageText," ")}}const HCe=[[["p-header"]],[["p-footer"]]],zCe=["p-header","p-footer"],jCe={provide:un,useExisting:ft(()=>UCe),multi:!0};let UCe=(()=>{class t{el;cd;filterService;config;renderer;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;focusOnHover;filterMessage;filterFields;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;scrollHeight="200px";tabindex=0;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!1;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel="label";optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}onChange=new ge;onClick=new ge;onDblClick=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onSelectAllChange=new ge;headerCheckboxViewChild;filterViewChild;lastHiddenFocusableElement;firstHiddenFocusableElement;scroller;listViewChild;headerFacet;footerFacet;templates;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;_filterValue=bn(null);_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;focused;get containerClass(){return{"p-listbox p-component":!0,"p-focus":this.focused,"p-disabled":this.disabled}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get filterResultMessageText(){return be.isNotEmpty(this.visibleOptions())?this.filterMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptyFilterMessageText}get filterMessageText(){return this.filterMessage||this.config.translation.searchMessage||""}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptyFilterMessageText(){return this.emptyFilterMessage||this.config.translation.emptySearchMessage||this.config.translation.emptyFilterMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}get searchFields(){return this.filterFields||[this.optionLabel]}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}searchValue;searchTimeout;_selectAll=null;_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);modelValue=bn(null);visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this._options()):this._options()||[];return this._filterValue()?this.filterService.filter(e,this.searchFields,this._filterValue(),this.filterMatchMode,this.filterLocale):e});constructor(e,n,o,s,r){this.el=e,this.cd=n,this.filterService=o,this.config=s,this.renderer=r}ngOnInit(){this.id=this.id||$t(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template}})}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&!this.multiple){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()])}}updateModel(e,n){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.onChange.emit({originalEvent:n,value:this.value})}removeOption(e){return this.modelValue().filter(n=>!be.equals(n,this.getOptionValue(e),this.equalityKey()))}onOptionSelect(e,n,o=-1){this.disabled||this.isOptionDisabled(n)||(e&&this.onClick.emit({originalEvent:e,value:n}),this.multiple?this.onOptionSelectMultiple(e,n):this.onOptionSelectSingle(e,n),this.optionTouched=!1,-1!==o&&this.focusedOptionIndex.set(o))}onOptionSelectMultiple(e,n){let o=this.isSelected(n),s=null;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;o?s=a?this.removeOption(n):[this.getOptionValue(n)]:(s=a&&this.modelValue()||[],s=[...s,this.getOptionValue(n)])}else s=o?this.removeOption(n):[...this.modelValue()||[],this.getOptionValue(n)];this.updateModel(s,e)}onOptionSelectSingle(e,n){let o=this.isSelected(n),s=!1,r=null;!this.optionTouched&&this.metaKeySelection?o?(e.metaKey||e.ctrlKey)&&(r=null,s=!0):(r=this.getOptionValue(n),s=!0):(r=o?null:this.getOptionValue(n),s=!0),s&&this.updateModel(r,e)}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}onToggleAll(e){if(!this.disabled&&!this.readonly){if(j.focus(this.headerCheckboxViewChild.nativeElement),null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:this.value})}e.preventDefault()}}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}onOptionTouchEnd(){this.disabled||(this.optionTouched=!0)}onOptionMouseDown(e,n){this.changeFocusedOptionIndex(e,n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onOptionDoubleClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onFirstHiddenFocus(e){j.focus(this.listViewChild.nativeElement);const n=j.getFirstFocusableElement(this.el.nativeElement,':not([data-p-hidden-focusable="true"])');this.lastHiddenFocusableElement.nativeElement.tabIndex=be.isEmpty(n)?"-1":void 0,this.firstHiddenFocusableElement.nativeElement.tabIndex=-1}onLastHiddenFocus(e){if(e.relatedTarget===this.listViewChild.nativeElement){const o=j.getFirstFocusableElement(this.el.nativeElement,":not(.p-hidden-focusable)");j.focus(o),this.firstHiddenFocusableElement.nativeElement.tabIndex=void 0}else j.focus(this.firstHiddenFocusableElement.nativeElement);this.lastHiddenFocusableElement.nativeElement.tabIndex=-1}onFocusout(e){!this.el.nativeElement.contains(e.relatedTarget)&&this.lastHiddenFocusableElement&&this.firstHiddenFocusableElement&&(this.firstHiddenFocusableElement.nativeElement.tabIndex=this.lastHiddenFocusableElement.nativeElement.tabIndex=void 0)}onListFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.onFocus.emit(e)}onListBlur(e){this.focused=!1,this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.searchValue=""}onHeaderCheckboxFocus(e){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e);break;case"Tab":this.onHeaderCheckboxTabKeyDown(e)}}onHeaderCheckboxTabKeyDown(e){j.focus(this.listViewChild.nativeElement),e.preventDefault()}onFilterChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onFilterBlur(e){this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1)}onListKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onSpaceKey(e);break;case"Tab":break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(this.multiple&&"KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey()}}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowUpKey(e){const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onHomeKey(e,n=!1){if(n)e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1);else{let o=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findLastOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onPageDownKey(e){this.scrollInView(0),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onEnterKey(e){-1!==this.focusedOptionIndex()&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()])),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onShiftKey(){const e=this.focusedOptionIndex();this.startRangeIndex.set(e)}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions()[n]))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}scrollInView(e=-1){const o=j.findSingle(this.listViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroll&&this.scroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex())}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}equalityKey(){return this.optionValue?null:this.dataKey}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){const n=this.getOptionValue(e);return this.multiple?(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey())):be.equals(this.modelValue(),n,this.equalityKey())}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue.set(null)}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft),V(df),V(ki),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-listbox"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(PIe,5),je(FIe,5),je(RIe,5),je(NIe,5),je(VIe,5),je(BIe,5)),2&n){let s;Se(s=Ee())&&(o.headerCheckboxViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElement=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElement=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",focusOnHover:"focusOnHover",filterMessage:"filterMessage",filterFields:"filterFields",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",scrollHeight:"scrollHeight",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue",selectAll:"selectAll"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onSelectAllChange:"onSelectAllChange"},features:[yt([jCe])],ngContentSelectors:zCe,decls:16,vars:24,consts:[[3,"ngClass","ngStyle","focusout"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"tabindex","focus"],["firstHiddenFocusableElement",""],["class","p-listbox-header",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInItems",""],["class","p-listbox-footer",4,"ngIf"],["role","status","aria-live","polite","class","p-hidden-accessible",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["lastHiddenFocusableElement",""],[1,"p-listbox-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"disabled","focus","blur"],["headerchkbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],["class","p-listbox-filter-container",4,"ngIf"],["role","status","attr.aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-filter-container"],["type","text","role","searchbox",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","tabindex","input","keydown","blur"],["filterInput",""],["class","p-listbox-filter-icon",4,"ngIf"],[1,"p-listbox-filter-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-listbox-list",3,"tabindex","ngClass","focus","blur","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-listbox-empty-message","role","option",4,"ngIf"],["role","option",1,"p-listbox-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-listbox-item",3,"ngStyle","ngClass","ariaPosInset","click","dblclick","mousedown","mouseenter","touchend"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-checkbox-box",3,"ngClass"],["role","option",1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(n,o){1&n&&(Ti(HCe),x(0,"div",0),me("focusout",function(r){return o.onFocusout(r)}),x(1,"span",1,2),me("focus",function(r){return o.onFirstHiddenFocus(r)}),A(),g(3,zIe,3,5,"div",3),g(4,iCe,5,3,"div",3),x(5,"div",4),g(6,cCe,4,11,"p-scroller",5),g(7,pCe,2,6,"ng-container",6),g(8,RCe,5,12,"ng-template",null,7,In),A(),g(10,VCe,3,5,"div",8),g(11,BCe,2,1,"span",9),x(12,"span",10),Le(13),A(),x(14,"span",1,11),me("focus",function(r){return o.onLastHiddenFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",o.headerFacet||o.headerTemplate),h(1),d("ngIf",o.checkbox&&o.multiple&&o.showToggleAll||o.filter),h(1),Ve(o.listStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight||"auto"),d("ngClass","p-listbox-list-wrapper")("ngStyle",o.listStyle),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.footerFacet||o.footerTemplate),h(1),d("ngIf",o.isEmpty()),h(2),Pt(" ",o.selectedMessageText," "),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0))},dependencies:function(){return[Ct,Jn,gt,on,Ht,sn,oo,Bu,Qs,yi]},styles:["@layer primeng{.p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),$Ce=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,Qs,yi,Qe,Oi]})}return t})(),Tve=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,Or,Zo,qn,Nn,Qe]})}return t})(),s1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,qn,Nn]})}return t})(),j1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,lO,Or,Zo,qn,Nn,Qe]})}return t})(),K1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,bv,ir,vv]})}return t})();function G1e(t,i){1&t&&le(0,"CheckIcon",7),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function q1e(t,i){}function W1e(t,i){1&t&&g(0,q1e,0,0,"ng-template")}function Q1e(t,i){if(1&t&&(x(0,"span",8),g(1,W1e,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function Z1e(t,i){if(1&t&&(we(0),g(1,G1e,1,2,"CheckIcon",5),g(2,Q1e,2,2,"span",6),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function Y1e(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function X1e(t,i){1&t&&ze(0)}const ud=function(t){return{height:t}},J1e=function(t,i,e){return{"p-multiselect-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},ebe=function(t){return{"p-highlight":t}},Sv=function(t){return{$implicit:t}},tbe=["container"],nbe=["overlay"],ibe=["filterInput"],obe=["focusInput"],sbe=["items"],rbe=["scroller"],abe=["lastHiddenFocusableEl"],lbe=["firstHiddenFocusableEl"],cbe=["headerCheckbox"];function ube(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt(e.label()||"empty")}}function dbe(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",20),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),A()}2&t&&(d("styleClass","p-multiselect-token-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function pbe(t,i){1&t&&ze(0)}function hbe(t,i){if(1&t){const e=De();x(0,"span",21),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),g(1,pbe,1,0,"ng-container",22),A()}if(2&t){const e=f(5);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function fbe(t,i){if(1&t&&(we(0),g(1,dbe,1,3,"TimesCircleIcon",18),g(2,hbe,2,3,"span",19),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}function gbe(t,i){if(1&t&&(x(0,"div",15,16)(2,"span",17),Le(3),A(),g(4,fbe,3,2,"ng-container",7),A()),2&t){const e=i.$implicit,n=f(3);h(3),dt(n.getLabelByValue(e)),h(1),d("ngIf",!n.disabled)}}function mbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),dt(e.placeholder||e.defaultLabel||"empty")}}function _be(t,i){if(1&t&&(we(0),g(1,gbe,5,2,"div",14),g(2,mbe,2,1,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngForOf",e.chipSelectedItems()),h(1),d("ngIf",!e.modelValue()||0===e.modelValue().length)}}function Ibe(t,i){if(1&t&&(we(0),g(1,ube,2,1,"ng-container",7),g(2,_be,3,2,"ng-container",7),Te()),2&t){const e=f();h(1),d("ngIf","comma"===e.display),h(1),d("ngIf","chip"===e.display)}}function Cbe(t,i){1&t&&ze(0)}function vbe(t,i){if(1&t){const e=De();x(0,"TimesIcon",20),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-multiselect-clear-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function bbe(t,i){}function ybe(t,i){1&t&&g(0,bbe,0,0,"ng-template")}function xbe(t,i){if(1&t){const e=De();x(0,"span",24),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,ybe,1,0,null,22),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function Abe(t,i){if(1&t&&(we(0),g(1,vbe,1,3,"TimesIcon",18),g(2,xbe,2,3,"span",23),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function wbe(t,i){1&t&&le(0,"span",27),2&t&&(d("ngClass",f(2).dropdownIcon),K("data-pc-section","triggericon")("aria-hidden",!0))}function Tbe(t,i){1&t&&le(0,"ChevronDownIcon",28),2&t&&(d("styleClass","p-multiselect-trigger-icon"),K("data-pc-section","triggericon")("aria-hidden",!0))}function Sbe(t,i){if(1&t&&(we(0),g(1,wbe,1,3,"span",25),g(2,Tbe,1,3,"ChevronDownIcon",26),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Ebe(t,i){}function Dbe(t,i){1&t&&g(0,Ebe,0,0,"ng-template")}function kbe(t,i){if(1&t&&(x(0,"span",29),g(1,Dbe,1,0,null,22),A()),2&t){const e=f();K("data-pc-section","triggericon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function Mbe(t,i){1&t&&ze(0)}function Obe(t,i){1&t&&ze(0)}const gO=function(t){return{options:t}};function Lbe(t,i){if(1&t&&(we(0),g(1,Obe,1,0,"ng-container",8),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,gO,e.filterOptions))}}function Pbe(t,i){1&t&&le(0,"CheckIcon",28),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function Fbe(t,i){}function Rbe(t,i){1&t&&g(0,Fbe,0,0,"ng-template")}function Nbe(t,i){if(1&t&&(x(0,"span",51),g(1,Rbe,1,0,null,8),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)("ngTemplateOutletContext",He(3,Sv,e.allSelected()))}}function Vbe(t,i){if(1&t&&(we(0),g(1,Pbe,1,2,"CheckIcon",26),g(2,Nbe,2,5,"span",50),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const Bbe=function(t){return{"p-checkbox-disabled":t}},Hbe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function zbe(t,i){if(1&t){const e=De();x(0,"div",46),me("click",function(o){return G(e),q(f(4).onToggleAll(o))})("keydown",function(o){return G(e),q(f(4).onHeaderCheckboxKeyDown(o))}),x(1,"div",2)(2,"input",47,48),me("focus",function(){return G(e),q(f(4).onHeaderCheckboxFocus())})("blur",function(){return G(e),q(f(4).onHeaderCheckboxBlur())}),A()(),x(4,"div",49),g(5,Vbe,3,2,"ng-container",7),A()()}if(2&t){const e=f(4);d("ngClass",He(9,Bbe,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("readonly",e.readonly)("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(11,Hbe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function jbe(t,i){1&t&&le(0,"SearchIcon",28),2&t&&d("styleClass","p-multiselect-filter-icon")}function Ube(t,i){}function $be(t,i){1&t&&g(0,Ube,0,0,"ng-template")}function Kbe(t,i){if(1&t&&(x(0,"span",56),g(1,$be,1,0,null,22),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function Gbe(t,i){if(1&t){const e=De();x(0,"div",52)(1,"input",53,54),me("input",function(o){return G(e),q(f(4).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(4).onFilterKeyDown(o))})("click",function(o){return G(e),q(f(4).onInputClick(o))})("blur",function(o){return G(e),q(f(4).onFilterBlur(o))}),A(),g(3,jbe,1,1,"SearchIcon",26),g(4,Kbe,2,1,"span",55),A()}if(2&t){const e=f(4);h(1),d("value",e._filterValue()||"")("disabled",e.disabled),K("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function qbe(t,i){1&t&&le(0,"TimesIcon",28),2&t&&d("styleClass","p-multiselect-close-icon")}function Wbe(t,i){}function Qbe(t,i){1&t&&g(0,Wbe,0,0,"ng-template")}function Zbe(t,i){if(1&t&&(x(0,"span",57),g(1,Qbe,1,0,null,22),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}function Ybe(t,i){if(1&t){const e=De();g(0,zbe,6,15,"div",42),g(1,Gbe,5,10,"div",43),x(2,"button",44),me("click",function(o){return G(e),q(f(3).close(o))}),g(3,qbe,1,1,"TimesIcon",26),g(4,Zbe,2,1,"span",45),A()}if(2&t){const e=f(3);d("ngIf",e.showToggleAll&&!e.selectionLimit),h(1),d("ngIf",e.filter),h(2),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Xbe(t,i){if(1&t&&(x(0,"div",39),Kn(1),g(2,Mbe,1,0,"ng-container",22),g(3,Lbe,2,4,"ng-container",40),g(4,Ybe,5,4,"ng-template",null,41,In),A()),2&t){const e=Bt(5),n=f(2);h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function Jbe(t,i){1&t&&ze(0)}const mO=function(t,i){return{$implicit:t,options:i}};function eye(t,i){if(1&t&&g(0,Jbe,1,0,"ng-container",8),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(8))("ngTemplateOutletContext",mt(2,mO,e,n))}}function tye(t,i){1&t&&ze(0)}function nye(t,i){if(1&t&&g(0,tye,1,0,"ng-container",8),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,gO,e))}}function iye(t,i){1&t&&(we(0),g(1,nye,1,4,"ng-template",60),Te())}function oye(t,i){if(1&t){const e=De();x(0,"p-scroller",58,59),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,eye,1,5,"ng-template",13),g(3,iye,2,0,"ng-container",7),A()}if(2&t){const e=f(2);yn(He(9,ud,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function sye(t,i){1&t&&ze(0)}const rye=function(){return{}};function aye(t,i){if(1&t&&(we(0),g(1,sye,1,0,"ng-container",8),Te()),2&t){f();const e=Bt(8),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,mO,n.visibleOptions(),Jt(2,rye)))}}function lye(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function cye(t,i){1&t&&ze(0)}function uye(t,i){if(1&t&&(we(0),x(1,"li",65),g(2,lye,2,1,"span",7),g(3,cye,1,0,"ng-container",8),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,ud,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Sv,o.optionGroup))}}function dye(t,i){if(1&t){const e=De();we(0),x(1,"p-multiSelectItem",66),me("onClick",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionSelect(o,!1,a.getOptionIndex(s,r)))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("checkIconTemplate",r.checkIconTemplate)("itemSize",s.itemSize)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function pye(t,i){if(1&t&&(g(0,uye,4,9,"ng-container",7),g(1,dye,2,11,"ng-container",7)),2&t){const e=i.$implicit,n=f(3);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function hye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function fye(t,i){1&t&&ze(0,null,68)}function gye(t,i){if(1&t&&(x(0,"li",67),g(1,hye,2,1,"ng-container",40),g(2,fye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function mye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function _ye(t,i){1&t&&ze(0,null,69)}function Iye(t,i){if(1&t&&(x(0,"li",67),g(1,mye,2,1,"ng-container",40),g(2,_ye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function Cye(t,i){if(1&t&&(x(0,"ul",61,62),g(2,pye,2,2,"ng-template",63),g(3,gye,3,6,"li",64),g(4,Iye,3,6,"li",64),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function vye(t,i){1&t&&ze(0)}function bye(t,i){if(1&t&&(x(0,"div",70),Kn(1,1),g(2,vye,1,0,"ng-container",22),A()),2&t){const e=f(2);h(2),d("ngTemplateOutlet",e.footerTemplate)}}function yye(t,i){if(1&t){const e=De();x(0,"div",30)(1,"span",31,32),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,Xbe,6,3,"div",33),x(4,"div",34),g(5,oye,4,11,"p-scroller",35),g(6,aye,2,6,"ng-container",7),g(7,Cye,5,6,"ng-template",null,36,In),A(),g(9,bye,3,1,"div",37),x(10,"span",31,38),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-multiselect-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden","true")("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",e.showHeader),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngIf",e.footerFacet||e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const xye=[[["p-header"]],[["p-footer"]]],Aye=function(t,i){return{$implicit:t,removeChip:i}},wye=["p-header","p-footer"],Tye={provide:un,useExisting:ft(()=>Eye),multi:!0};let Sye=(()=>{class t{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;template;checkIconTemplate;onClick=new ge;onMouseEnter=new ge;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected})}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",focused:"focused",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkIconTemplate:"checkIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:6,vars:26,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","id","click","mouseenter"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),x(1,"div",1)(2,"div",2),g(3,Z1e,3,2,"ng-container",3),A()(),g(4,Y1e,2,1,"span",3),g(5,X1e,1,0,"ng-container",4),A()),2&n&&(d("ngStyle",He(16,ud,o.itemSize+"px"))("ngClass",Rn(18,J1e,o.selected,o.disabled,o.focused))("id",o.id),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(2),d("ngClass",He(22,ebe,o.selected)),K("aria-checked",o.selected),h(1),d("ngIf",o.selected),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(24,Sv,o.option)))},dependencies:function(){return[Ct,gt,on,Ht,oo,yi]},encapsulation:2})}return t})(),Eye=(()=>{class t{el;renderer;cd;zone;filterService;config;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel="{0} items selected";showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="off";showClear=!1;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.warn("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder=e}get placeholder(){return this._placeholder}get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!1;filterFields;selectOnFocus=!1;autoOptionFocus=!0;onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onClear=new ge;onPanelShow=new ge;onPanelHide=new ge;onLazyLoad=new ge;onRemove=new ge;onSelectAllChange=new ge;containerViewChild;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;templates;searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder;_itemSize;_selectionLimit;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;headerCheckboxFocus;filterOptions;maxSelectionLimitReached;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=bn(null);_filterValue=bn(null);_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);get containerClass(){return{"p-multiselect p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-multiselect-clearable":this.showClear&&!this.disabled,"p-multiselect-chip":"chip"===this.display,"p-focus":this.focused,"p-inputwrapper-filled":be.isNotEmpty(this.modelValue()),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){return{"p-multiselect-label p-inputtext":!0,"p-placeholder":(this.placeholder||this.defaultLabel)&&(this.label()===this.placeholder||this.label()===this.defaultLabel),"p-multiselect-label-empty":!this.selectedItemsTemplate&&("p-emptylabel"===this.label()||0===this.label().length)}}get panelClass(){return{"p-multiselect-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get labelClass(){return{"p-multiselect-label":!0,"p-placeholder":this.label()===this.placeholder||this.label()===this.defaultLabel,"p-multiselect-label-empty":!(this.placeholder||this.defaultLabel||this.modelValue()&&0!==this.modelValue().length)}}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&""!==this.modelValue()&&be.isNotEmpty(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale);if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{let e;const n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(be.isNotEmpty(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let o=0;obe.isNotEmpty(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,o,s,r,a,l){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,this.overlayService=l}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());const e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,o=-1){const{originalEvent:s,option:r}=e;if(this.disabled||this.isOptionDisabled(r))return;let l=null;l=this.isSelected(r)?this.modelValue().filter(c=>!be.equals(c,this.getOptionValue(r),this.equalityKey())):[...this.modelValue()||[],this.getOptionValue(r)],this.updateModel(l,s),-1!==o&&this.focusedOptionIndex.set(o),n&&j.focus(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:l,itemValue:r})}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}searchFields(){return this.filterFields||[this.optionLabel]}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return(this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}isSelected(e){const n=this.getOptionValue(e);return(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){const o=(this.group?this.flatOptions(this._options()):this._options()||[]).find(s=>!this.isOptionGroup(s)&&be.equals(this.getOptionValue(s),e,this.equalityKey()));return o?this.getOptionLabel(o):null}getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue().length+""):this.selectedItemsLabel}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled)return void e.preventDefault();const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if("KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){const{currentTarget:o}=e;if(n)o.setSelectionRange(0,e.shiftKey?o.value.length:0),this.focusedOptionIndex.set(-1);else{let s=e.metaKey||e.ctrlKey,r=this.findFirstOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,r,this.startRangeIndex()),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){const{currentTarget:o}=e;if(n){const s=o.value.length;o.setSelectionRange(e.shiftKey?0:s,s),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,r=this.findLastFocusedOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,this.startRangeIndex(),r),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?-1!==this.focusedOptionIndex()&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(-1!==this.focusedOptionIndex()&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if("INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]'))return void e.preventDefault();(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onInputFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!this.disabled&&!this.readonly){if(null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e)}j.focus(this.headerCheckboxViewChild.nativeElement),this.headerCheckboxFocus=!0,e.preventDefault(),e.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}writeValue(e){this.value=e,this.modelValue.set(this.value),this.checkSelectionLimit(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){const n=be.isNotEmpty(this.modelValue())?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-multiselect-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched()}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.checkSelectionLimit(),this.updateModel(null,e),this.onClear.emit(),e.stopPropagation()}removeOption(e,n){let o=this.modelValue().filter(s=>!be.equals(s,e,this.equalityKey()));this.updateModel(o,n),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}activateFilter(){if(this.hasFilter()&&this._options){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let n=[];for(let o of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(o),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&n.push({...o,[this.optionGroupChildren]:s})}this._filteredOptions=n}else this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelect"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,rC,5),Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(tbe,5),je(nbe,5),je(ibe,5),je(obe,5),je(sbe,5),je(rbe,5),je(abe,5),je(lbe,5),je(cbe,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.filterInputChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.headerCheckboxViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:"focusOnHover",filterFields:"filterFields",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[yt([Tye])],ngContentSelectors:wye,decls:16,vars:41,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["role","combobox",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","focus","blur","keydown"],["focusInput",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-multiselect-trigger"],["class","p-multiselect-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],["lastHiddenFocusableEl",""],[1,"p-multiselect-header"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],["type","checkbox",3,"readonly","disabled","focus","blur"],["headerCheckbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","searchbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input","keydown","click","blur"],["filterInput",""],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","checkIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function(n,o){1&n&&(Ti(xye),x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),x(2,"div",2)(3,"input",3,4),me("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keydown",function(r){return o.onKeyDown(r)}),A()(),x(5,"div",5)(6,"div",6),g(7,Ibe,3,2,"ng-container",7),g(8,Cbe,1,0,"ng-container",8),A(),g(9,Abe,3,2,"ng-container",7),A(),x(10,"div",9),g(11,Sbe,3,2,"ng-container",7),g(12,kbe,2,3,"span",10),A(),x(13,"p-overlay",11,12),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(15,yye,12,18,"ng-template",13),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),K("data-p-hidden-accessible",!0),h(1),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),K("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",o.overlayVisible)("aria-controls",o.id+"_list")("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0),h(2),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),h(1),d("ngClass",o.labelClass),h(1),d("ngIf",!o.selectedItemsTemplate),h(1),d("ngTemplateOutlet",o.selectedItemsTemplate)("ngTemplateOutletContext",mt(38,Aye,o.modelValue(),o.removeOption.bind(o))),h(1),d("ngIf",o.isVisibleClearIcon),h(2),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,oo,Bu,yi,Qs,ir,mn,bi,Sye]},styles:["@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Dye=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,yi,Qs,ir,mn,bi,yi,$l,Qe,Oi]})}return t})();const kye=typeof Intl<"u"&&Intl.v8BreakIterator;class Ev{constructor(i){this._platformId=i,this.isBrowser=this._platformId?ei(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!kye)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}let dd;function Dv(t){return function Mye(){if(null==dd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dd=!0}))}finally{dd=dd||!1}return dd}()?t:!!t.capture}Ev.ngInjectableDef=o1({factory:function(){return new Ev(et($n,8))},token:Ev,providedIn:"root"});const xs={NORMAL:0,NEGATED:1,INVERTED:2};xs[xs.NORMAL]="NORMAL",xs[xs.NEGATED]="NEGATED",xs[xs.INVERTED]="INVERTED";const sg=Dv({passive:!1,capture:!0});class kv{constructor(i,e){this._ngZone=i,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new re,this.pointerUp=new re,this._preventScrollListener=n=>{this._activeDragInstances.size&&n.preventDefault()},this._document=e}registerDropContainer(i){if(!this._dropInstances.has(i)){if(this.getDropContainer(i.id))throw Error(`Drop instance with id "${i.id}" has already been registered.`);this._dropInstances.add(i)}}registerDragItem(i){this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventScrollListener,sg)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventScrollListener,sg)}startDragging(i,e){if(this._activeDragInstances.add(i),1===this._activeDragInstances.size){const n=e.type.startsWith("touch"),s=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:r=>this.pointerMove.next(r),options:sg}).set(s,{handler:r=>this.pointerUp.next(r),options:!0}),n||this._globalListeners.set("wheel",{handler:this._preventScrollListener,options:sg}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(i){this._activeDragInstances.delete(i),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances.has(i)}getDropContainer(i){return Array.from(this._dropInstances).find(e=>e.id===i)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,e)=>{this._document.removeEventListener(e,i.handler,i.options)}),this._globalListeners.clear()}}kv.ngInjectableDef=o1({factory:function(){return new kv(et(Tt),et(Wt))},token:kv,providedIn:"root"});const Lye=new Ye("CDK_DRAG_CONFIG",{providedIn:"root",factory:function Pye(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}});class rg{}let TO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.70786 6.59831C6.80043 6.63674 6.89974 6.65629 6.99997 6.65581C7.19621 6.64081 7.37877 6.54953 7.50853 6.40153L11.0685 2.8416C11.1364 2.69925 11.1586 2.53932 11.132 2.38384C11.1053 2.22837 11.0311 2.08498 10.9195 1.97343C10.808 1.86188 10.6646 1.78766 10.5091 1.76099C10.3536 1.73431 10.1937 1.75649 10.0513 1.82448L6.99997 4.87585L3.9486 1.82448C3.80625 1.75649 3.64632 1.73431 3.49084 1.76099C3.33536 1.78766 3.19197 1.86188 3.08043 1.97343C2.96888 2.08498 2.89466 2.22837 2.86798 2.38384C2.84131 2.53932 2.86349 2.69925 2.93147 2.8416L6.46089 6.43205C6.53132 6.50336 6.61528 6.55989 6.70786 6.59831ZM6.70786 12.1925C6.80043 12.2309 6.89974 12.2505 6.99997 12.25C7.10241 12.2465 7.20306 12.2222 7.29575 12.1785C7.38845 12.1348 7.47124 12.0726 7.53905 11.9957L11.0685 8.46629C11.1614 8.32292 11.2036 8.15249 11.1881 7.98233C11.1727 7.81216 11.1005 7.6521 10.9833 7.52781C10.866 7.40353 10.7104 7.3222 10.5415 7.29688C10.3725 7.27155 10.1999 7.30369 10.0513 7.38814L6.99997 10.4395L3.9486 7.38814C3.80006 7.30369 3.62747 7.27155 3.45849 7.29688C3.28951 7.3222 3.13393 7.40353 3.01667 7.52781C2.89942 7.6521 2.82729 7.81216 2.81184 7.98233C2.79639 8.15249 2.83852 8.32292 2.93148 8.46629L6.4609 12.0262C6.53133 12.0975 6.61529 12.1541 6.70786 12.1925Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),SO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.1504 6.67719C10.2417 6.71508 10.3396 6.73436 10.4385 6.73389C10.6338 6.74289 10.8249 6.67441 10.97 6.54334C11.1109 6.4023 11.19 6.21112 11.19 6.01178C11.19 5.81245 11.1109 5.62127 10.97 5.48023L7.45977 1.96998C7.31873 1.82912 7.12755 1.75 6.92821 1.75C6.72888 1.75 6.5377 1.82912 6.39666 1.96998L2.9165 5.45014C2.83353 5.58905 2.79755 5.751 2.81392 5.91196C2.83028 6.07293 2.89811 6.22433 3.00734 6.34369C3.11656 6.46306 3.26137 6.54402 3.42025 6.57456C3.57914 6.60511 3.74364 6.5836 3.88934 6.51325L6.89813 3.50446L9.90691 6.51325C9.97636 6.58357 10.0592 6.6393 10.1504 6.67719ZM9.93702 11.9993C10.065 12.1452 10.245 12.2352 10.4385 12.25C10.632 12.2352 10.812 12.1452 10.9399 11.9993C11.0633 11.8614 11.1315 11.6828 11.1315 11.4978C11.1315 11.3128 11.0633 11.1342 10.9399 10.9963L7.48987 7.48609C7.34883 7.34523 7.15765 7.26611 6.95832 7.26611C6.75899 7.26611 6.5678 7.34523 6.42677 7.48609L2.91652 10.9963C2.84948 11.1367 2.82761 11.2944 2.85391 11.4477C2.88022 11.601 2.9534 11.7424 3.06339 11.8524C3.17338 11.9624 3.31477 12.0356 3.46808 12.0619C3.62139 12.0882 3.77908 12.0663 3.91945 11.9993L6.92823 8.99048L9.93702 11.9993Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),rxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,rg,TO,SO,If,Or,Qs,Qe,rg]})}return t})(),yxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,bi,ff,Qe,Qe]})}return t})(),Mxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,mn,Qe]})}return t})(),Qxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,ng,eg,Qe]})}return t})(),kO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),MO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const Zxe=["input"];function Yxe(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-password-clear-icon"),K("data-pc-section","clearIcon"))}function Xxe(t,i){}function Jxe(t,i){1&t&&g(0,Xxe,0,0,"ng-template")}function eAe(t,i){if(1&t){const e=De();we(0),g(1,Yxe,1,2,"TimesIcon",5),x(2,"span",6),me("click",function(){return G(e),q(f().clear())}),g(3,Jxe,1,0,null,7),A(),Te()}if(2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function tAe(t,i){if(1&t){const e=De();x(0,"EyeSlashIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","hideIcon")}function nAe(t,i){}function iAe(t,i){1&t&&g(0,nAe,0,0,"ng-template")}function oAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,iAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.hideIconTemplate)}}function sAe(t,i){if(1&t&&(we(0),g(1,tAe,1,1,"EyeSlashIcon",9),g(2,oAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.hideIconTemplate),h(1),d("ngIf",e.hideIconTemplate)}}function rAe(t,i){if(1&t){const e=De();x(0,"EyeIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","showIcon")}function aAe(t,i){}function lAe(t,i){1&t&&g(0,aAe,0,0,"ng-template")}function cAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,lAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.showIconTemplate)}}function uAe(t,i){if(1&t&&(we(0),g(1,rAe,1,1,"EyeIcon",9),g(2,cAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.showIconTemplate),h(1),d("ngIf",e.showIconTemplate)}}function dAe(t,i){if(1&t&&(we(0),g(1,sAe,3,2,"ng-container",3),g(2,uAe,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.unmasked),h(1),d("ngIf",!e.unmasked)}}function pAe(t,i){1&t&&ze(0)}function hAe(t,i){1&t&&ze(0)}function fAe(t,i){if(1&t&&(we(0),g(1,hAe,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)}}const gAe=function(t){return{width:t}};function mAe(t,i){if(1&t&&(x(0,"div",15),le(1,"div",0),Il(2,"mapper"),A(),x(3,"div",16),Le(4),A()),2&t){const e=f(2);K("data-pc-section","meter"),h(1),d("ngClass",Cl(2,6,e.meter,e.strengthClass))("ngStyle",He(9,gAe,e.meter?e.meter.width:"")),K("data-pc-section","meterLabel"),h(2),K("data-pc-section","info"),h(1),dt(e.infoText)}}function _Ae(t,i){1&t&&ze(0)}const IAe=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},CAe=function(t){return{value:"visible",params:t}};function vAe(t,i){if(1&t){const e=De();x(0,"div",11,12),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onAnimationEnd(o))}),g(2,pAe,1,0,"ng-container",7),g(3,fAe,2,1,"ng-container",13),g(4,mAe,5,11,"ng-template",null,14,In),g(6,_Ae,1,0,"ng-container",7),A()}if(2&t){const e=Bt(5),n=f();d("ngClass","p-password-panel p-component")("@overlayAnimation",He(10,CAe,mt(7,IAe,n.showTransitionOptions,n.hideTransitionOptions))),K("data-pc-section","panel"),h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngTemplateOutlet",n.footerTemplate)}}let bAe=(()=>{class t{transform(e,n,...o){return n(e,...o)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Vi({name:"mapper",type:t,pure:!0})}return t})();const yAe={provide:un,useExisting:ft(()=>xAe),multi:!0};let xAe=(()=>{class t{document;platformId;renderer;cd;config;el;overlayService;ariaLabel;ariaLabelledBy;label;disabled;promptLabel;mediumRegex="^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})";strongRegex="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})";weakLabel;mediumLabel;maxLength;strongLabel;inputId;feedback=!0;appendTo;toggleMask;inputStyleClass;styleClass;style;inputStyle;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autocomplete;placeholder;showClear=!1;onFocus=new ge;onBlur=new ge;onClear=new ge;input;contentTemplate;footerTemplate;headerTemplate;clearIconTemplate;hideIconTemplate;showIconTemplate;templates;overlayVisible=!1;meter;infoText;focused=!1;unmasked=!1;mediumCheckRegExp;strongCheckRegExp;resizeListener;scrollHandler;overlay;value=null;onModelChange=()=>{};onModelTouched=()=>{};translationSubscription;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.config=r,this.el=a,this.overlayService=l}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"hideicon":this.hideIconTemplate=e.template;break;case"showicon":this.showIconTemplate=e.template}})}ngOnInit(){this.infoText=this.promptText(),this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.updateUI(this.value||"")})}onAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.appendContainer(),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener();break;case"void":this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null}}onAnimationEnd(e){"void"===e.toState&&Wn.clear(e.element)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).appendChild(this.overlay))}alignOverlay(){this.appendTo?(this.overlay.style.minWidth=j.getOuterWidth(this.input.nativeElement)+"px",j.absolutePosition(this.overlay,this.input.nativeElement)):j.relativePosition(this.overlay,this.input.nativeElement)}onInput(e){this.value=e.target.value,this.onModelChange(this.value)}onInputFocus(e){this.focused=!0,this.feedback&&(this.overlayVisible=!0),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.onModelTouched(),this.onBlur.emit(e)}onKeyUp(e){if(this.feedback){if(this.updateUI(e.target.value),"Escape"===e.code)return void(this.overlayVisible&&(this.overlayVisible=!1));this.overlayVisible||(this.overlayVisible=!0)}}updateUI(e){let n=null,o=null;switch(this.testStrength(e)){case 1:n=this.weakText(),o={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText(),o={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText(),o={strength:"strong",width:"100%"};break;default:n=this.promptText(),o=null}this.meter=o,this.infoText=n}onMaskToggle(){this.unmasked=!this.unmasked}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}testStrength(e){let n=0;return this.strongCheckRegExp.test(e)?n=3:this.mediumCheckRegExp.test(e)?n=2:e.length&&(n=1),n}writeValue(e){this.value=void 0===e?null:e,this.feedback&&this.updateUI(this.value||""),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindScrollListener(){ei(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new Vu(this.input.nativeElement,()=>{this.overlayVisible&&(this.overlayVisible=!1)})),this.scrollHandler.bindScrollListener())}bindResizeListener(){ei(this.platformId)&&!this.resizeListener&&(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",()=>{this.overlayVisible&&!j.isTouchDevice()&&(this.overlayVisible=!1)}))}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}containerClass(e){return{"p-password p-component p-inputwrapper":!0,"p-input-icon-right":e}}inputFieldClass(e){return{"p-password-input":!0,"p-disabled":e}}strengthClass(e){return`p-password-strength ${e?e.strength:""}`}filled(){return null!=this.value&&this.value.toString().length>0}promptText(){return this.promptLabel||this.getTranslation(di.PASSWORD_PROMPT)}weakText(){return this.weakLabel||this.getTranslation(di.WEAK)}mediumText(){return this.mediumLabel||this.getTranslation(di.MEDIUM)}strongText(){return this.strongLabel||this.getTranslation(di.STRONG)}restoreAppend(){this.overlay&&this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).removeChild(this.overlay))}inputType(e){return e?"text":"password"}getTranslation(e){return this.config.getTranslation(e)}clear(){this.value=null,this.onModelChange(this.value),this.writeValue(this.value),this.onClear.emit()}ngOnDestroy(){this.overlay&&(Wn.clear(this.overlay),this.overlay=null),this.restoreAppend(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(ki),V(bt),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-password"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Zxe,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:8,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled())("p-inputwrapper-focus",o.focused)("p-password-clearable",o.showClear)("p-password-mask",o.toggleMask)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",label:"label",disabled:"disabled",promptLabel:"promptLabel",mediumRegex:"mediumRegex",strongRegex:"strongRegex",weakLabel:"weakLabel",mediumLabel:"mediumLabel",maxLength:"maxLength",strongLabel:"strongLabel",inputId:"inputId",feedback:"feedback",appendTo:"appendTo",toggleMask:"toggleMask",inputStyleClass:"inputStyleClass",styleClass:"styleClass",style:"style",inputStyle:"inputStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autocomplete:"autocomplete",placeholder:"placeholder",showClear:"showClear"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClear:"onClear"},features:[yt([yAe])],decls:9,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","",3,"ngClass","ngStyle","value","input","focus","blur","keyup"],["input",""],[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],[1,"p-password-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass","click"],[3,"click",4,"ngIf"],[3,"click"],[3,"ngClass","click"],["overlay",""],[4,"ngIf","ngIfElse"],["content",""],[1,"p-password-meter"],["className","p-password-info"]],template:function(n,o){1&n&&(x(0,"div",0),Il(1,"mapper"),x(2,"input",1,2),me("input",function(r){return o.onInput(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keyup",function(r){return o.onKeyUp(r)}),Il(4,"mapper"),Il(5,"mapper"),A(),g(6,eAe,4,3,"ng-container",3),g(7,dAe,3,2,"ng-container",3),g(8,vAe,7,12,"div",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Cl(1,23,o.toggleMask,o.containerClass))("ngStyle",o.style),K("data-pc-name","password")("data-pc-section","root"),h(2),Ve(o.inputStyleClass),d("ngClass",Cl(4,26,o.disabled,o.inputFieldClass))("ngStyle",o.inputStyle)("value",o.value),K("label",o.label)("aria-label",o.ariaLabel)("aria-labelledBy",o.ariaLabelledBy)("id",o.inputId)("type",Cl(5,29,o.unmasked,o.inputType))("placeholder",o.placeholder)("autocomplete",o.autocomplete)("maxlength",o.maxLength)("data-pc-section","input"),h(4),d("ngIf",o.showClear&&null!=o.value),h(1),d("ngIf",o.toggleMask),h(1),d("ngIf",o.overlayVisible))},dependencies:function(){return[Ct,gt,on,Ht,hC,mn,MO,kO,bAe]},styles:["@layer primeng{.p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}.p-password-input::-ms-reveal,.p-password-input::-ms-clear{display:none}.p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-password-clearable.p-password-mask .p-password-clear-icon{margin-top:unset}.p-password-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),AAe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,mn,MO,kO,Qe]})}return t})();const Nwe={zIndex:1200};let Vwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({providers:[{provide:Lye,useValue:Nwe}],imports:[Xe,Mi,Qe,dn,rg,TO,gC,mC,SO,Or,_C,Zo,If,Qs,oO,Qe,rg]})}return t})();const Bwe=["input"],Hwe=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function zwe(t,i){if(1&t){const e=De();x(0,"label",7),me("click",function(o){return G(e),q(f().select(o))}),Le(1),A()}if(2&t){const e=f(),n=Bt(3);Ve(e.labelStyleClass),d("ngClass",Rn(6,Hwe,n.checked,e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),dt(e.label)}}const jwe=function(t,i,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},Uwe=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},$we={provide:un,useExisting:ft(()=>Gwe),multi:!0};let Kwe=(()=>{class t{accessors=[];add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gwe=(()=>{class t{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new ge;onFocus=new ge;onBlur=new ge;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(e,n,o){this.cd=e,this.injector=n,this.registry=o}ngOnInit(){this.control=this.injector.get(ds),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,o){e.preventDefault(),!this.disabled&&(this.select(e),o&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(n){return new(n||t)(V(Ft),V($i),V(Kwe))};static \u0275cmp=Oe({type:t,selectors:[["p-radioButton"]],viewQuery:function(n,o){if(1&n&&je(Bwe,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([$we])],decls:7,vars:29,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","value","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.handleClick(a,l,!0))}),x(1,"div",1)(2,"input",2,3),me("focus",function(a){return o.onInputFocus(a)})("blur",function(a){return o.onInputBlur(a)}),A()(),x(4,"div",4),le(5,"span",5),A()(),g(6,zwe,2,10,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(21,jwe,o.checked,o.disabled,o.focused)),K("data-pc-name","radiobutton")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper"),h(1),d("checked",o.checked)("disabled",o.disabled)("value",o.value),K("id",o.inputId)("name",o.name)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("tabindex",o.tabindex)("aria-checked",o.checked)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(25,Uwe,o.checked,o.disabled,o.focused)),K("data-pc-section","input"),h(1),K("data-pc-section","icon"),h(1),d("ngIf",o.label))},dependencies:[Ct,gt,Ht],encapsulation:2,changeDetection:0})}return t})(),qwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),FO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BanIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7 0C5.61553 0 4.26215 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.00303296 5.6003 -0.13559 7.00776 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C14 5.14348 13.2625 3.36301 11.9497 2.05025C10.637 0.737498 8.85652 0 7 0ZM1.16667 7C1.16549 5.65478 1.63303 4.35118 2.48889 3.31333L10.6867 11.5111C9.83309 12.2112 8.79816 12.6544 7.70243 12.789C6.60669 12.9236 5.49527 12.744 4.49764 12.2713C3.50001 11.7986 2.65724 11.0521 2.06751 10.1188C1.47778 9.18558 1.16537 8.10397 1.16667 7ZM11.5111 10.6867L3.31334 2.48889C4.43144 1.57388 5.84966 1.10701 7.29265 1.1789C8.73565 1.2508 10.1004 1.85633 11.1221 2.87795C12.1437 3.89956 12.7492 5.26435 12.8211 6.70735C12.893 8.15034 12.4261 9.56856 11.5111 10.6867Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),RO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.9741 13.6721C10.8806 13.6719 10.7886 13.6483 10.7066 13.6033L7.00002 11.6545L3.29345 13.6033C3.19926 13.6539 3.09281 13.6771 2.98612 13.6703C2.87943 13.6636 2.77676 13.6271 2.6897 13.5651C2.60277 13.5014 2.53529 13.4147 2.4948 13.3148C2.45431 13.215 2.44241 13.1058 2.46042 12.9995L3.17881 8.87264L0.167699 5.95324C0.0922333 5.8777 0.039368 5.78258 0.0150625 5.67861C-0.00924303 5.57463 -0.00402231 5.46594 0.030136 5.36477C0.0621323 5.26323 0.122141 5.17278 0.203259 5.10383C0.284377 5.03488 0.383311 4.99023 0.488681 4.97501L4.63087 4.37126L6.48797 0.618832C6.54083 0.530159 6.61581 0.456732 6.70556 0.405741C6.79532 0.35475 6.89678 0.327942 7.00002 0.327942C7.10325 0.327942 7.20471 0.35475 7.29447 0.405741C7.38422 0.456732 7.4592 0.530159 7.51206 0.618832L9.36916 4.37126L13.5114 4.97501C13.6167 4.99023 13.7157 5.03488 13.7968 5.10383C13.8779 5.17278 13.9379 5.26323 13.9699 5.36477C14.0041 5.46594 14.0093 5.57463 13.985 5.67861C13.9607 5.78258 13.9078 5.8777 13.8323 5.95324L10.8212 8.87264L11.532 12.9995C11.55 13.1058 11.5381 13.215 11.4976 13.3148C11.4571 13.4147 11.3896 13.5014 11.3027 13.5651C11.2059 13.632 11.0917 13.6692 10.9741 13.6721ZM7.00002 10.4393C7.09251 10.4404 7.18371 10.4613 7.2675 10.5005L10.2098 12.029L9.65193 8.75036C9.6368 8.6584 9.64343 8.56418 9.6713 8.47526C9.69918 8.38633 9.74751 8.30518 9.81242 8.23832L12.1969 5.94559L8.90298 5.45648C8.81188 5.44198 8.72555 5.406 8.65113 5.35152C8.57671 5.29703 8.51633 5.2256 8.475 5.14314L7.00002 2.1626L5.52503 5.15078C5.4837 5.23324 5.42332 5.30467 5.3489 5.35916C5.27448 5.41365 5.18815 5.44963 5.09705 5.46412L1.80318 5.94559L4.18761 8.23832C4.25252 8.30518 4.30085 8.38633 4.32873 8.47526C4.3566 8.56418 4.36323 8.6584 4.3481 8.75036L3.7902 12.0519L6.73253 10.5234C6.81451 10.4762 6.9058 10.4475 7.00002 10.4393Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),NO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarFillIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.9718 5.36453C13.9398 5.26298 13.8798 5.17252 13.7986 5.10356C13.7175 5.0346 13.6186 4.98994 13.5132 4.97472L9.37043 4.37088L7.51307 0.617955C7.46021 0.529271 7.38522 0.455834 7.29545 0.404836C7.20568 0.353838 7.1042 0.327026 7.00096 0.327026C6.89771 0.327026 6.79624 0.353838 6.70647 0.404836C6.6167 0.455834 6.54171 0.529271 6.48885 0.617955L4.63149 4.37088L0.488746 4.97472C0.383363 4.98994 0.284416 5.0346 0.203286 5.10356C0.122157 5.17252 0.0621407 5.26298 0.03014 5.36453C-0.00402286 5.46571 -0.00924428 5.57442 0.0150645 5.67841C0.0393733 5.7824 0.0922457 5.87753 0.167722 5.95308L3.17924 8.87287L2.4684 13.0003C2.45038 13.1066 2.46229 13.2158 2.50278 13.3157C2.54328 13.4156 2.61077 13.5022 2.6977 13.5659C2.78477 13.628 2.88746 13.6644 2.99416 13.6712C3.10087 13.678 3.20733 13.6547 3.30153 13.6042L7.00096 11.6551L10.708 13.6042C10.79 13.6491 10.882 13.6728 10.9755 13.673C11.0958 13.6716 11.2129 13.6343 11.3119 13.5659C11.3988 13.5022 11.4663 13.4156 11.5068 13.3157C11.5473 13.2158 11.5592 13.1066 11.5412 13.0003L10.8227 8.87287L13.8266 5.95308C13.9033 5.87835 13.9577 5.7836 13.9833 5.67957C14.009 5.57554 14.005 5.4664 13.9718 5.36453Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function Wwe(t,i){if(1&t&&le(0,"span",10),2&t){const e=f(3);d("ngClass",e.iconCancelClass)("ngStyle",e.iconCancelStyle)}}function Qwe(t,i){if(1&t&&le(0,"BanIcon",11),2&t){const e=f(3);d("styleClass","p-rating-icon p-rating-cancel")("ngStyle",e.iconCancelStyle),K("data-pc-section","cancelIcon")}}const Zwe=function(t){return{"p-focus":t}};function Ywe(t,i){if(1&t){const e=De();x(0,"div",5),me("click",function(o){return G(e),q(f(2).onOptionClick(o,0))}),x(1,"span",6)(2,"input",7),me("focus",function(o){return G(e),q(f(2).onInputFocus(o,0))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){return G(e),q(f(2).onChange(o,0))}),A()(),g(3,Wwe,1,2,"span",8),g(4,Qwe,1,3,"BanIcon",9),A()}if(2&t){const e=f(2);d("ngClass",He(10,Zwe,0===e.focusedOptionIndex()&&e.isFocusVisible)),K("data-pc-section","cancelItem"),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",e.name)("checked",0===e.value)("disabled",e.disabled)("readonly",e.readonly),K("aria-label",e.cancelAriaLabel()),h(1),d("ngIf",e.iconCancelClass),h(1),d("ngIf",!e.iconCancelClass)}}function Xwe(t,i){if(1&t&&le(0,"span",16),2&t){const e=f(4);d("ngStyle",e.iconOffStyle)("ngClass",e.iconOffClass),K("data-pc-section","offIcon")}}function Jwe(t,i){1&t&&le(0,"StarIcon",17),2&t&&(d("ngStyle",f(4).iconOffStyle)("styleClass","p-rating-icon"),K("data-pc-section","offIcon"))}function e2e(t,i){if(1&t&&(we(0),g(1,Xwe,1,3,"span",14),g(2,Jwe,1,3,"StarIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOffClass),h(1),d("ngIf",!e.iconOffClass)}}function t2e(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4);d("ngStyle",e.iconOnStyle)("ngClass",e.iconOnClass),K("data-pc-section","onIcon")}}function n2e(t,i){1&t&&le(0,"StarFillIcon",17),2&t&&(d("ngStyle",f(4).iconOnStyle)("styleClass","p-rating-icon p-rating-icon-active"),K("data-pc-section","onIcon"))}function i2e(t,i){if(1&t&&(we(0),g(1,t2e,1,3,"span",18),g(2,n2e,1,3,"StarFillIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOnClass),h(1),d("ngIf",!e.iconOnClass)}}const o2e=function(t,i){return{"p-rating-item-active":t,"p-focus":i}};function s2e(t,i){if(1&t){const e=De();x(0,"div",12),me("click",function(o){const r=G(e).$implicit;return q(f(2).onOptionClick(o,r+1))}),x(1,"span",6)(2,"input",7),me("focus",function(o){const r=G(e).$implicit;return q(f(2).onInputFocus(o,r+1))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){const r=G(e).$implicit;return q(f(2).onChange(o,r+1))}),A()(),g(3,e2e,3,2,"ng-container",13),g(4,i2e,3,2,"ng-container",13),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",mt(9,o2e,e+1<=o.value,e+1===o.focusedOptionIndex()&&o.isFocusVisible)),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",o.name)("checked",0===o.value)("disabled",o.disabled)("readonly",o.readonly),K("aria-label",o.starAriaLabel(e+1)),h(1),d("ngIf",!o.value||n>=o.value),h(1),d("ngIf",o.value&&nf2e),multi:!0};let f2e=(()=>{class t{cd;config;disabled;readonly;stars=5;cancel=!0;iconOnClass;iconOnStyle;iconOffClass;iconOffStyle;iconCancelClass;iconCancelStyle;onRate=new ge;onCancel=new ge;onFocus=new ge;onBlur=new ge;templates;onIconTemplate;offIconTemplate;cancelIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};starsArray;isFocusVisibleItem=!0;focusedOptionIndex=bn(-1);name;constructor(e,n){this.cd=e,this.config=n}ngOnInit(){this.name=this.name||$t(),this.starsArray=[];for(let e=0;e{switch(e.getType()){case"onicon":this.onIconTemplate=e.template;break;case"officon":this.offIconTemplate=e.template;break;case"cancelicon":this.cancelIconTemplate=e.template}})}onOptionClick(e,n){if(!this.readonly&&!this.disabled){this.onOptionSelect(e,n),this.isFocusVisibleItem=!1;const o=j.getFirstFocusableElement(e.currentTarget,"");o&&j.focus(o)}}onOptionSelect(e,n){this.focusedOptionIndex.set(n),this.updateModel(e,n||null)}onChange(e,n){this.onOptionSelect(e,n),this.isFocusVisibleItem=!0}onInputBlur(e){this.focusedOptionIndex.set(-1),this.onBlur.emit(e)}onInputFocus(e,n){this.focusedOptionIndex.set(n),this.onFocus.emit(e)}updateModel(e,n){this.value=n,this.onModelChange(this.value),this.onModelTouched(),n?this.onRate.emit({originalEvent:e,value:n}):this.onCancel.emit()}cancelAriaLabel(){return this.config.translation.clear}starAriaLabel(e){return 1===e?this.config.translation.aria.star:this.config.translation.aria.stars.replace(/{star}/g,e)}getIconTemplate(e){return!this.value||e>=this.value?this.offIconTemplate:this.onIconTemplate}writeValue(e){this.value=e,this.cd.detectChanges()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get isCustomIcon(){return this.templates&&this.templates.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-rating"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",readonly:"readonly",stars:"stars",cancel:"cancel",iconOnClass:"iconOnClass",iconOnStyle:"iconOnStyle",iconOffClass:"iconOffClass",iconOffStyle:"iconOffStyle",iconCancelClass:"iconCancelClass",iconCancelStyle:"iconCancelStyle"},outputs:{onRate:"onRate",onCancel:"onCancel",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([h2e])],decls:4,vars:8,consts:[[1,"p-rating",3,"ngClass"],[4,"ngIf","ngIfElse"],["customTemplate",""],["class","p-rating-item p-rating-cancel-item",3,"ngClass","click",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-rating-item","p-rating-cancel-item",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","radio","value","0",3,"name","checked","disabled","readonly","focus","blur","change"],["class","p-rating-icon p-rating-cancel",3,"ngClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle",4,"ngIf"],[1,"p-rating-icon","p-rating-cancel",3,"ngClass","ngStyle"],[3,"styleClass","ngStyle"],[1,"p-rating-item",3,"ngClass","click"],[4,"ngIf"],["class","p-rating-icon",3,"ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","styleClass",4,"ngIf"],[1,"p-rating-icon",3,"ngStyle","ngClass"],[3,"ngStyle","styleClass"],["class","p-rating-icon p-rating-icon-active",3,"ngStyle","ngClass",4,"ngIf"],[1,"p-rating-icon","p-rating-icon-active",3,"ngStyle","ngClass"],["class","p-rating-icon p-rating-cancel",3,"ngStyle","click",4,"ngIf"],["class","p-rating-icon",3,"click",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngStyle","click"],[4,"ngTemplateOutlet"],[1,"p-rating-icon",3,"click"]],template:function(n,o){if(1&n&&(x(0,"div",0),g(1,r2e,3,2,"ng-container",1),g(2,d2e,2,2,"ng-template",null,2,In),A()),2&n){const s=Bt(3);d("ngClass",mt(5,p2e,o.readonly,o.disabled)),K("data-pc-name","rating")("data-pc-section","root"),h(1),d("ngIf",!o.isCustomIcon)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,NO,RO,FO]},styles:["@layer primeng{.p-rating{display:inline-flex}.p-rating-icon{cursor:pointer}.p-rating.p-rating-readonly .p-rating-icon{cursor:default}}\n"],encapsulation:2,changeDetection:0})}return t})(),g2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,NO,RO,FO,Qe]})}return t})();const m2e=["container"],_2e=["content"],I2e=["xBar"],C2e=["yBar"];function v2e(t,i){1&t&&ze(0)}const b2e=["*"];let y2e=(()=>{class t{platformId;el;zone;cd;document;renderer;style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;templates;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;contentTemplate;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.cd=s,this.document=r,this.renderer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement;const s=this.document.defaultView;let r=s.getComputedStyle(e),a=s.getComputedStyle(o),l=j.getHeight(e)-parseInt(a.height,10);"none"!=r["max-height"]&&0==l&&(e.style.height=n.offsetHeight+parseInt(a.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement,s=n.scrollWidth,r=n.clientWidth,a=-1*(e.clientHeight-o.clientHeight);this.scrollXRatio=r/s;let l=this.yBarViewChild.nativeElement,c=n.scrollHeight,u=n.clientHeight,p=-1*(e.clientWidth-l.clientWidth);this.scrollYRatio=u/c,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)o.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(o,"p-scrollpanel-hidden");else{o.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(o,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollXRatio,10);o.style.cssText="width:"+m+"%; left:"+n.scrollLeft*(100-m)/(s-r)+"%;bottom:"+a+"px;"}if(this.scrollYRatio>=1)l.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(l,"p-scrollpanel-hidden");else{l.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(l,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollYRatio,10);l.style.cssText="height:"+m+"%; top: calc("+n.scrollTop*(100-m)/(c-u)+"% - "+o.clientHeight+"px);right:"+p+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){"horizontal"===this.orientation&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(Ft),V(Wt),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(m2e,5),je(_2e,5),je(I2e,5),je(C2e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.xBarViewChild=s.first),Se(s=Ee())&&(o.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",step:"step"},ngContentSelectors:b2e,decls:11,vars:14,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],["content",""],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["xBar",""],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"],["yBar",""]],template:function(n,o){1&n&&(Ti(),x(0,"div",0,1)(2,"div",2)(3,"div",3,4),me("mouseenter",function(){return o.moveBar()})("scroll",function(r){return o.onScroll(r)}),Kn(5),g(6,v2e,1,0,"ng-container",5),A()(),x(7,"div",6,7),me("mousedown",function(r){return o.onXBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)})("blur",function(){return o.onBlur()}),A(),x(9,"div",8,9),me("mousedown",function(r){return o.onYBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass","p-scrollpanel p-component")("ngStyle",o.style),K("data-pc-name","scrollpanel"),h(2),K("data-pc-section","wrapper"),h(1),K("data-pc-section","content"),h(3),d("ngTemplateOutlet",o.contentTemplate),h(1),K("aria-orientation","horizontal")("aria-valuenow",o.lastScrollLeft)("data-pc-section","barx"),h(2),K("aria-orientation","vertical")("aria-valuenow",o.lastScrollTop)("data-pc-section","bary"))},dependencies:[Ct,on,Ht],styles:["@layer primeng{.p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}}\n"],encapsulation:2,changeDetection:0})}return t})(),x2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),A2e=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CaretLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.5553 13C10.411 13.0006 10.2704 12.9538 10.1554 12.8667L3.04473 7.53369C2.96193 7.4716 2.89474 7.39108 2.84845 7.29852C2.80217 7.20595 2.77808 7.10388 2.77808 7.00039C2.77808 6.8969 2.80217 6.79484 2.84845 6.70227C2.89474 6.60971 2.96193 6.52919 3.04473 6.4671L10.1554 1.13412C10.2549 1.05916 10.3734 1.0136 10.4976 1.0026C10.6217 0.991605 10.7464 1.01561 10.8575 1.0719C10.9668 1.12856 11.0584 1.21398 11.1226 1.31893C11.1869 1.42388 11.2212 1.54438 11.222 1.66742V12.3334C11.2212 12.4564 11.1869 12.5769 11.1226 12.6819C11.0584 12.7868 10.9668 12.8722 10.8575 12.9289C10.7629 12.9735 10.6599 12.9977 10.5553 13ZM4.55574 7.00039L9.88871 11.0001V3.00066L4.55574 7.00039Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),eTe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,A2e,qn,Nn,Qe]})}return t})();const tTe=["sliderHandle"],nTe=["sliderHandleStart"],iTe=["sliderHandleEnd"],oTe=function(t,i){return{left:t,width:i}};function sTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,oTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const rTe=function(t,i){return{bottom:t,height:i}};function aTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,rTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const lTe=function(t){return{height:t}};function cTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,lTe,e.handleValue+"%")),K("data-pc-section","range")}}const uTe=function(t){return{width:t}};function dTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,uTe,e.handleValue+"%")),K("data-pc-section","range")}}const Pv=function(t,i){return{left:t,bottom:i}};function pTe(t,i){if(1&t){const e=De();x(0,"span",6,7),me("touchstart",function(o){return G(e),q(f().onDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(o){return G(e),q(f().onDragEnd(o))})("mousedown",function(o){return G(e),q(f().onMouseDown(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(11,Pv,"horizontal"==e.orientation?e.handleValue+"%":null,"vertical"==e.orientation?e.handleValue+"%":null)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","handle")}}const BO=function(t){return{"p-slider-handle-active":t}};function hTe(t,i){if(1&t){const e=De();x(0,"span",8,9),me("keydown",function(o){return G(e),q(f().onKeyDown(o,0))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,0))})("touchstart",function(o){return G(e),q(f().onDragStart(o,0))})("touchmove",function(o){return G(e),q(f().onDrag(o,0))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeStartLeft,e.rangeStartBottom))("ngClass",He(15,BO,0==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[0]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","startHandler")}}function fTe(t,i){if(1&t){const e=De();x(0,"span",10,11),me("keydown",function(o){return G(e),q(f().onKeyDown(o,1))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,1))})("touchstart",function(o){return G(e),q(f().onDragStart(o,1))})("touchmove",function(o){return G(e),q(f().onDrag(o,1))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeEndLeft,e.rangeEndBottom))("ngClass",He(15,BO,1==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[1]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","endHandler")}}const gTe=function(t,i,e,n){return{"p-slider p-component":!0,"p-disabled":t,"p-slider-horizontal":i,"p-slider-vertical":e,"p-slider-animate":n}},mTe={provide:un,useExisting:ft(()=>_Te),multi:!0};let _Te=(()=>{class t{document;platformId;el;renderer;ngZone;cd;animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;onChange=new ge;onSlideEnd=new ge;sliderHandle;sliderHandleStart;sliderHandleEnd;value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.ngZone=r,this.cd=a}onMouseDown(e,n){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,this.bindDragListeners(),e.target.focus(),e.preventDefault(),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(e,n){if(!this.disabled){var o=e.changedTouches[0];this.startHandleValue=this.range?this.handleValues[n]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,"horizontal"===this.orientation?(this.startx=parseInt(o.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(o.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault()}}onDrag(e){if(!this.disabled){var o,n=e.changedTouches[0];o="horizontal"===this.orientation?Math.floor(100*(parseInt(n.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(n.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(e,o),e.preventDefault()}}onDragEnd(e){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault())}onBarClick(e){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(e),this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(e,n){switch(this.handleIndex=n,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,n),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,n),e.preventDefault();break;case"PageDown":this.decrementValue(e,n,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,n,!0),e.preventDefault();break;case"Home":this.updateValue(this.min,e),e.preventDefault();break;case"End":this.updateValue(this.max,e),e.preventDefault()}}decrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]-this.step:this.values[n]-1:this.step?this.value-this.step:!this.step&&o?this.value-10:this.value-1,this.updateValue(s,e),e.preventDefault()}incrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]+this.step:this.values[n]+1:this.step?this.value+this.step:!this.step&&o?this.value+10:this.value+1,this.updateValue(s,e),e.preventDefault()}handleChange(e){let n=this.calculateHandleValue(e);this.setValueFromHandle(e,n)}bindDragListeners(){ei(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const e=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(e,"mousemove",n=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(n)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(e,"mouseup",n=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:n,values:this.values}:{originalEvent:n,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(e,n){let o=this.getValueFromHandle(n);this.range?this.step?this.handleStepChange(o,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=n,this.updateValue(o,e)):this.step?this.handleStepChange(o,this.value):(this.handleValue=n,this.updateValue(o,e)),this.cd.markForCheck()}handleStepChange(e,n){let o=e-n,s=n,r=this.step;o<0?s=n+Math.ceil(e/r-n/r)*r:o>0&&(s=n+Math.floor(e/r-n/r)*r),this.updateValue(s),this.updateHandleValue()}writeValue(e){this.range?this.values=e||[0,0]:this.value=e||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let e=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=e.left+j.getWindowScrollLeft(),this.initY=e.top+j.getWindowScrollTop(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(e){return"horizontal"===this.orientation?100*(e.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-e.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.valuethis.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(e,n){if(this.range){let o=e;0==this.handleIndex?(othis.values[1]&&o>this.max&&(o=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(o>this.max?(o=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):othis.max&&(e=this.max,this.handleValue=100),this.value=this.getNormalizedValue(e),this.onModelChange(this.value),this.onChange.emit({event:n,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(e){return e/100*(this.max-this.min)+this.min}getDecimalsCount(e){return e&&Math.floor(e)!==e&&e.toString().split(".")[1].length||0}getNormalizedValue(e){let n=this.getDecimalsCount(this.step);return n>0?+parseFloat(e.toString()).toFixed(n):Math.floor(e)}ngOnDestroy(){this.unbindDragListeners()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-slider"]],viewQuery:function(n,o){if(1&n&&(je(tTe,5),je(nTe,5),je(iTe,5)),2&n){let s;Se(s=Ee())&&(o.sliderHandle=s.first),Se(s=Ee())&&(o.sliderHandleStart=s.first),Se(s=Ee())&&(o.sliderHandleEnd=s.first)}},hostAttrs:[1,"p-element"],inputs:{animate:"animate",disabled:"disabled",min:"min",max:"max",orientation:"orientation",step:"step",range:"range",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex"},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[yt([mTe])],decls:8,vars:18,consts:[[3,"ngStyle","ngClass","click"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"ngStyle","touchstart","touchmove","touchend","mousedown","keydown"],["sliderHandle",""],["role","slider",1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleStart",""],[1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleEnd",""]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onBarClick(r)}),g(1,sTe,1,5,"span",1),g(2,aTe,1,5,"span",1),g(3,cTe,1,4,"span",1),g(4,dTe,1,4,"span",1),g(5,pTe,2,14,"span",2),g(6,hTe,2,17,"span",3),g(7,fTe,2,17,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",gr(13,gTe,o.disabled,"horizontal"==o.orientation,"vertical"==o.orientation,o.animate)),K("data-pc-name","slider")("data-pc-section","root"),h(1),d("ngIf",o.range&&"horizontal"==o.orientation),h(1),d("ngIf",o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"horizontal"==o.orientation),h(1),d("ngIf",!o.range),h(1),d("ngIf",o.range),h(1),d("ngIf",o.range))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-slider{position:relative}.p-slider .p-slider-handle{position:absolute;cursor:grab;touch-action:none;display:block}.p-slider-range{position:absolute;display:block}.p-slider-horizontal .p-slider-range{top:0;left:0;height:100%}.p-slider-horizontal .p-slider-handle{top:50%}.p-slider-vertical{height:100px}.p-slider-vertical .p-slider-handle{left:50%}.p-slider-vertical .p-slider-range{bottom:0;left:0;width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),ITe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const CTe=["inputfield"],vTe=function(t){return{"ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},bTe=function(t){return{"ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},yTe={provide:un,useExisting:ft(()=>xTe),multi:!0};let xTe=(()=>{class t{el;cd;onChange=new ge;onFocus=new ge;onBlur=new ge;min;max;maxlength;size;placeholder;inputId;disabled;readonly;tabindex;required;name;ariaLabelledBy;inputStyle;inputStyleClass;formatInput;decimalSeparator;thousandSeparator;precision;value;_step=1;formattedValue;onModelChange=()=>{};onModelTouched=()=>{};keyPattern=/[0-9\+\-]/;timer;focus;filled;negativeSeparator="-";localeDecimalSeparator;localeThousandSeparator;thousandRegExp;calculatedPrecision;inputfieldViewChild;get step(){return this._step}set step(e){if(this._step=e,null!=this._step){let n=this.step.toString().split(/[,]|[.]/);this.calculatedPrecision=n[1]?n[1].length:void 0}}constructor(e,n){this.el=e,this.cd=n}ngOnInit(){this.formatInput&&(this.localeDecimalSeparator=1.1.toLocaleString().substring(1,2),this.localeThousandSeparator=1e3.toLocaleString().substring(1,2),this.thousandRegExp=new RegExp(`[${this.thousandSeparator||this.localeThousandSeparator}]`,"gim"),this.decimalSeparator&&this.thousandSeparator&&this.decimalSeparator===this.thousandSeparator&&console.warn("thousandSeparator and decimalSeparator cannot have the same value."))}repeat(e,n,o){let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let s,o=this.step*n,r=this.getPrecision();s=this.value?"string"==typeof this.value?this.parseValue(this.value):this.value:0,this.value=r?parseFloat(this.toFixed(s+o,r)):s+o,void 0!==this.maxlength&&this.value.toString().length>this.maxlength&&(this.value=s),void 0!==this.min&&this.valuethis.max&&(this.value=this.max),this.formatValue(),this.onModelChange(this.value),this.onChange.emit(e)}getPrecision(){return void 0===this.precision?this.calculatedPrecision:this.precision}toFixed(e,n){let o=Math.pow(10,n||0);return String(Math.round(e*o)/o)}onUpButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,1),this.updateFilledState(),e.preventDefault())}onUpButtonMouseup(e){this.disabled||this.clearTimer()}onUpButtonMouseleave(e){this.disabled||this.clearTimer()}onDownButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,-1),this.updateFilledState(),e.preventDefault())}onDownButtonMouseup(e){this.disabled||this.clearTimer()}onDownButtonMouseleave(e){this.disabled||this.clearTimer()}onInputKeydown(e){38==e.which?(this.spin(e,1),e.preventDefault()):40==e.which&&(this.spin(e,-1),e.preventDefault())}onInputChange(e){this.onChange.emit(e)}onInput(e){this.value=this.parseValue(e.target.value),this.onModelChange(this.value),this.updateFilledState()}onInputBlur(e){this.focus=!1,this.formatValue(),this.onModelTouched(),this.onBlur.emit(e)}onInputFocus(e){this.focus=!0,this.onFocus.emit(e)}parseValue(e){let n,o=this.getPrecision();return""===e.trim()?n=null:(this.formatInput&&(e=e.replace(this.thousandRegExp,"")),o?(e=e.replace(this.formatInput?this.decimalSeparator||this.localeDecimalSeparator:",","."),n=parseFloat(e)):n=parseInt(e,10),isNaN(n)?n=null:(null!==this.max&&n>this.max&&(n=this.max),null!==this.min&&n3&&(e[0]=e[0].replace(new RegExp(`[${this.localeThousandSeparator}]`,"gim"),this.thousandSeparator)),e=e.join(""))),this.formattedValue=e.toString()):this.formattedValue=null,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.formattedValue)}clearTimer(){this.timer&&clearInterval(this.timer)}writeValue(e){this.value=e,this.formatValue(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}updateFilledState(){this.filled=void 0!==this.value&&null!=this.value}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-spinner"]],viewQuery:function(n,o){if(1&n&&je(CTe,5),2&n){let s;Se(s=Ee())&&(o.inputfieldViewChild=s.first)}},hostAttrs:[1,"p-element"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("ui-inputwrapper-filled",o.filled)("ui-inputwrapper-focus",o.focus)},inputs:{min:"min",max:"max",maxlength:"maxlength",size:"size",placeholder:"placeholder",inputId:"inputId",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",required:"required",name:"name",ariaLabelledBy:"ariaLabelledBy",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",formatInput:"formatInput",decimalSeparator:"decimalSeparator",thousandSeparator:"thousandSeparator",precision:"precision",step:"step"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([yTe])],decls:7,vars:28,consts:[[1,"ui-spinner","ui-widget","ui-corner-all"],["type","text",3,"value","disabled","readonly","ngStyle","ngClass","keydown","blur","input","change","focus"],["inputfield",""],["type","button","tabindex","-1",3,"ngClass","disabled","mouseleave","mousedown","mouseup"],[1,"ui-spinner-button-icon","pi","pi-caret-up","ui-clickable"],[1,"ui-spinner-button-icon","pi","pi-caret-down","ui-clickable"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("keydown",function(r){return o.onInputKeydown(r)})("blur",function(r){return o.onInputBlur(r)})("input",function(r){return o.onInput(r)})("change",function(r){return o.onInputChange(r)})("focus",function(r){return o.onInputFocus(r)}),A(),x(3,"button",3),me("mouseleave",function(r){return o.onUpButtonMouseleave(r)})("mousedown",function(r){return o.onUpButtonMousedown(r)})("mouseup",function(r){return o.onUpButtonMouseup(r)}),le(4,"span",4),A(),x(5,"button",3),me("mouseleave",function(r){return o.onDownButtonMouseleave(r)})("mousedown",function(r){return o.onDownButtonMousedown(r)})("mouseup",function(r){return o.onDownButtonMouseup(r)}),le(6,"span",5),A()()),2&n&&(h(1),Ve(o.inputStyleClass),d("value",o.formattedValue||null)("disabled",o.disabled)("readonly",o.readonly)("ngStyle",o.inputStyle)("ngClass","ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all"),K("id",o.inputId)("name",o.name)("aria-valumin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("aria-labelledby",o.ariaLabelledBy)("size",o.size)("maxlength",o.maxlength)("tabindex",o.tabindex)("placeholder",o.placeholder)("required",o.required),h(2),d("ngClass",He(24,vTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly),h(2),d("ngClass",He(26,bTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly))},dependencies:[Ct,Ht],styles:["@layer primeng{.ui-spinner{display:inline-block;overflow:visible;padding:0;position:relative;vertical-align:middle}.ui-spinner-input{vertical-align:middle;padding-right:1.5em}.ui-spinner-button{cursor:default;display:block;height:50%;margin:0;overflow:hidden;padding:0;position:absolute;right:0;text-align:center;vertical-align:middle;width:1.5em}.ui-spinner .ui-spinner-button-icon{position:absolute;top:50%;left:50%;margin-top:-.5em;margin-left:-.5em;width:1em}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-fluid .ui-spinner{width:100%}.ui-fluid .ui-spinner .ui-spinner-input{padding-right:2em;width:100%}.ui-fluid .ui-spinner .ui-spinner-button{width:1.5em}.ui-fluid .ui-spinner .ui-spinner-button .ui-spinner-button-icon{left:.7em}}\n"],encapsulation:2,changeDetection:0})}return t})(),ATe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs]})}return t})(),Fv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),iSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Fv,bi,Mi,Fv]})}return t})(),pSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,qn,Nn]})}return t})(),LSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Qe,dn,Nn,Mr,Qi,qn,Qe,Nn]})}return t})(),sEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Nn,dn,mn,Mr,Qi,Qe]})}return t})(),rEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,uu]})}return t})(),gEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn,Qe]})}return t})();const mEe=function(t,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i}};function _Ee(t,i){if(1&t&&le(0,"span",3),2&t){const e=f();Ve(e.checked?e.onIcon:e.offIcon),d("ngClass",mt(4,mEe,"left"===e.iconPos,"right"===e.iconPos)),K("data-pc-section","icon")}}function IEe(t,i){if(1&t&&(x(0,"span",4),Le(1),A()),2&t){const e=f();K("data-pc-section","label"),h(1),dt(e.checked?e.hasOnLabel?e.onLabel:"":e.hasOffLabel?e.offLabel:"")}}const CEe=function(t,i,e){return{"p-button p-togglebutton p-component":!0,"p-button-icon-only":t,"p-highlight":i,"p-disabled":e}},vEe={provide:un,useExisting:ft(()=>bEe),multi:!0};let bEe=(()=>{class t{cd;onLabel;offLabel;onIcon;offIcon;ariaLabel;ariaLabelledBy;disabled;style;styleClass;inputId;tabindex;iconPos="left";onChange=new ge;checked=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}toggle(e){this.disabled||(this.checked=!this.checked,this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onKeyDown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}onBlur(){this.onModelTouched()}writeValue(e){this.checked=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.onLabel&&this.onLabel.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-toggleButton"]],hostAttrs:[1,"p-element"],inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",style:"style",styleClass:"styleClass",inputId:"inputId",tabindex:"tabindex",iconPos:"iconPos"},outputs:{onChange:"onChange"},features:[yt([vEe])],decls:3,vars:16,consts:[["role","switch","pRipple","",3,"ngClass","ngStyle","click","keydown"],[3,"class","ngClass",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeyDown(r)}),g(1,_Ee,1,7,"span",1),g(2,IEe,2,2,"span",2),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(12,CEe,o.onIcon&&o.offIcon&&!o.hasOnLabel&&!o.hasOffLabel,o.checked,o.disabled))("ngStyle",o.style),K("tabindex",o.disabled?null:"0")("aria-checked",o.checked)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-name","togglebutton")("data-pc-section","root"),h(1),d("ngIf",o.onIcon||o.offIcon),h(1),d("ngIf",o.onLabel||o.offLabel))},dependencies:[Ct,gt,Ht,oo],styles:['@layer primeng{.p-button[_ngcontent-%COMP%]{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label[_ngcontent-%COMP%]{flex:1 1 auto}.p-button-icon-right[_ngcontent-%COMP%]{order:1}.p-button[_ngcontent-%COMP%]:disabled{cursor:default;pointer-events:none}.p-button-icon-only[_ngcontent-%COMP%]{justify-content:center}.p-button-icon-only[_ngcontent-%COMP%]:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical[_ngcontent-%COMP%]{flex-direction:column}.p-button-icon-bottom[_ngcontent-%COMP%]{order:2}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]{margin:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:last-child){border-right:0 none}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:focus{position:relative;z-index:1}p-button[iconpos=right][_ngcontent-%COMP%] spinnericon[_ngcontent-%COMP%]{order:1}}'],changeDetection:0})}return t})(),yEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn]})}return t})(),TEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),ske=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,yi,bi,Qi,eg,Qs,_s,ng,Qe,Oi]})}return t})(),dke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Oi,Qe,Oi]})}return t})();const pke=["split"],hke=["area1"],fke=["area2"],gke=["layoutMenuScroller"],mke=function(t,i,e,n,o,s){return{"layout-wrapper-overlay-sidebar":t,"layout-wrapper-slim-sidebar":i,"layout-wrapper-horizontal-sidebar":e,"layout-wrapper-overlay-sidebar-active":n,"layout-wrapper-sidebar-inactive":o,"layout-wrapper-sidebar-mobile-active":s}},_ke=function(){return{height:"100%"}};let Rv=(()=>{class t{constructor(e){this.renderer=e,this.direction="horizontal",this.sizes={percent:{area1:12,area2:88},pixel:{area1:120,area2:"*",area3:160},useTransition:!0,av1:!0,av2:!0},this.action={area1:12,area2:88,useTransition:!1,av1:!0,av2:!0},this.layoutMode="static",this.megaMenuMode="dark",this.menuMode="light",this.profileMode="inline"}dragEnd(e,{sizes:n}){"percent"===e?(this.action.area1=n[0],this.action.area2=n[1]):"pixel"===e&&(this.sizes.pixel.area1=n[0],this.sizes.pixel.area2=n[1],this.sizes.pixel.area3=n[2])}ngAfterViewInit(){setTimeout(()=>{this.layoutMenuScrollerViewChild.moveBar()},100)}onLayoutClick(){this.topbarItemClick||(this.activeTopbarItem=null,this.topbarMenuActive=!1),this.rightPanelClick||(this.rightPanelActive=!1),this.megaMenuClick||(this.megaMenuActive=!1),!this.usermenuClick&&this.isSlim()&&(this.usermenuActive=!1,this.activeProfileItem=null),this.menuClick||((this.isHorizontal()||this.isSlim())&&(this.resetMenu=!0),(this.overlayMenuActive||this.staticMenuMobileActive)&&this.hideOverlayMenu(),this.menuHoverActive=!1),this.topbarItemClick=!1,this.menuClick=!1,this.rightPanelClick=!1,this.megaMenuClick=!1,this.usermenuClick=!1}onMenuButtonClick(e){this.menuClick=!0,this.topbarMenuActive=!1,"overlay"===this.layoutMode?this.overlayMenuActive=!this.overlayMenuActive:this.isDesktop()?(this.staticMenuDesktopInactive=!this.staticMenuDesktopInactive,88==this.action.area2&&12==this.action.area1?(this.action.area2=100,this.action.area1=0):100==this.action.area2&&0==this.action.area1&&(this.action.area2=88,this.action.area1=12)):this.staticMenuMobileActive=!this.staticMenuMobileActive,e.preventDefault()}onMenuClick(e){this.menuClick=!0,this.resetMenu=!1}onTopbarMenuButtonClick(e){this.topbarItemClick=!0,this.topbarMenuActive=!this.topbarMenuActive,this.hideOverlayMenu(),e.preventDefault()}onTopbarItemClick(e,n){this.topbarItemClick=!0,this.activeTopbarItem=this.activeTopbarItem===n?null:n,e.preventDefault()}onTopbarSubItemClick(e){e.preventDefault()}onRightPanelButtonClick(e){this.rightPanelClick=!0,this.rightPanelActive=!this.rightPanelActive,e.preventDefault()}onRightPanelClick(){this.rightPanelClick=!0}onMegaMenuButtonClick(e){this.megaMenuClick=!0,this.megaMenuActive=!this.megaMenuActive,e.preventDefault()}onMegaMenuClick(){this.megaMenuClick=!0}hideOverlayMenu(){this.overlayMenuActive=!1,this.staticMenuMobileActive=!1}isTablet(){const e=window.innerWidth;return e<=1024&&e>640}isDesktop(){return window.innerWidth>1024}isMobile(){return window.innerWidth<=640}isHorizontal(){return"horizontal"===this.layoutMode}isSlim(){return"slim"===this.layoutMode}isOverlay(){return"overlay"===this.layoutMode}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-root"]],viewQuery:function(n,o){if(1&n&&(je(pke,5),je(hke,5),je(fke,5),je(gke,7)),2&n){let s;Se(s=Ee())&&(o.split=s.first),Se(s=Ee())&&(o.area1=s.first),Se(s=Ee())&&(o.area2=s.first),Se(s=Ee())&&(o.layoutMenuScrollerViewChild=s.first)}},decls:17,vars:17,consts:[[1,"layout-wrapper",3,"ngClass","click"],[1,"ui-g-12","ui-md-12","reportSection",2,"padding-left","0px"],["unit","percent",3,"direction","useTransition","dragEnd"],["split","asSplit"],[1,"area1",2,"overflow","auto","width","auto","height","auto","margin-top","38px",3,"size","visible"],["area1","asSplitArea"],[1,"layout-sidebar",3,"click"],["layoutMenuScroller",""],[1,"sidebar-scroll-content"],[2,"overflow","auto","height","auto","width","auto",3,"size","visible"],["area2","asSplitArea"],[1,"layout-main"],[1,"layout-main-content"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(){return o.onLayoutClick()}),le(1,"app-topbar"),x(2,"div",1)(3,"as-split",2,3),me("dragEnd",function(r){return o.dragEnd("percent",r)}),x(5,"as-split-area",4,5)(7,"div",6),me("click",function(r){return o.onMenuClick(r)}),x(8,"p-scrollPanel",null,7)(10,"div",8),le(11,"ginger-report-menu"),A()()()(),x(12,"as-split-area",9,10)(14,"div",11)(15,"div",12),le(16,"router-outlet"),A()()()()()()),2&n&&(d("ngClass",ea(9,mke,o.isOverlay(),o.isSlim(),o.isHorizontal(),o.overlayMenuActive,o.staticMenuDesktopInactive,o.staticMenuMobileActive)),h(3),d("direction",o.direction)("useTransition",o.action.useTransition),h(2),d("size",o.action.area1)("visible",o.action.av1),h(3),yn(Jt(16,_ke)),h(4),d("size",o.action.area2)("visible",o.action.av2))},styles:[".reportSection .as-horizontal>.as-split-gutter>.as-split-gutter-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAB3SURBVChT3ZGxDcAgDASfNAzADiwA+2/AAJRUDMAADo8lZIkmUbpcgV+2dYVBSklijEJCCAJArvmgtcYC7z2X4LixOoa1eWCdzLOlzt47y+a509EzxkCtFTlnMB9O5v85yboj2fecQUeGl390OEspOjV8derIAtxNg4Qs31DpLQAAAABJRU5ErkJggg==)} .reportSection .as-horizontal>.as-split-gutter{height:auto!important;margin-top:0} .reportSection .layout-main{margin-left:0!important} .reportSection .layout-sidebar{position:relative!important;width:auto;top:25px;border-right:unset;height:99%} .reportSection .ui-panelmenu-content .ui-widget-content{height:1000px!important} .reportSection .layout-sidebar .ui-scrollpanel .sidebar-scroll-content{width:auto;padding-right:0} .reportSection .ui-panelmenu .ui-menuitem-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important} .reportSection a.p-menuitem-link-active{font-weight:700!important}"]})}return t})(),Ike=(()=>{class t{constructor(e,n,o,s,r){this.app=e,this.router=n,this.activeRoute=o,this.communicatorService=s,this.userDataManagerService=r,this.logoLink="#3423"}ngOnInit(){this.activeRoute.queryParams.subscribe(e=>{const n=e.ExecutionId;typeof n<"u"&&n&&(this.logoLink=`#/?ExecutionId=${n}`)})}refreshReport(){this.userDataManagerService.setItemCache(null),this.communicatorService.refreshScreen("RefreshData")}static#e=this.\u0275fac=function(n){return new(n||t)(V(Rv),V(io),V(Di),V(Ws),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-topbar"]],decls:7,vars:1,consts:[[1,"layout-topbar",2,"border-bottom","4px solid transparent","border-image","linear-gradient(to right, #ec008c, #f77341 63%, #fdb515)","border-image-slice","1","z-index","9999"],[1,"logo",3,"href"],["src","assets/layout/images/amdocs_icon.png","alt","Amdocs-logo","height","30",1,"amdocs_icon"],["src","assets/layout/images/amdocs.png","alt","Amdocs-logo"],["id","menu-button","href","#",3,"click"],[1,"fa","fa-align-left"],["type","button","pButton","","icon","pi pi-refresh","pTooltip","Refresh report data","tooltipPosition","right",1,"p-button","refreshBtn",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"a",1),le(2,"img",2)(3,"img",3),A(),x(4,"a",4),me("click",function(r){return o.app.onMenuButtonClick(r)}),le(5,"i",5),A(),x(6,"button",6),me("click",function(){return o.refreshReport()}),A()()),2&n&&(h(1),g_("href",o.logoLink,Ls))},dependencies:[Kl,hf],styles:[".refreshBtn[_ngcontent-%COMP%]{border-radius:40px;height:40px;width:40px!important;font-size:2em;position:absolute;right:10px;top:8px;background-color:#ffbf3f;color:#000;border:#FFBF3F}.p-button[_ngcontent-%COMP%]:enabled:hover{background-color:#f8e08e;color:#000}"]})}return t})();const $O={production:!0},Cke=["gutterEls"];function vke(t,i){if(1&t){const e=De();x(0,"div",2,3),me("keydown",function(o){G(e);const s=f().index;return q(f().startKeyboardDrag(o,2*s+1,s+1))})("mousedown",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("touchstart",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("mouseup",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))})("touchend",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))}),le(2,"div",4),A()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f();fo("flex-basis",s.gutterSize,"px")("order",2*n+1),K("aria-label",s.gutterAriaLabel)("aria-orientation",s.direction)("aria-valuemin",o.minSize)("aria-valuemax",o.maxSize)("aria-valuenow",o.size)("aria-valuetext",s.getAriaAreaSizeText(o.size))}}function bke(t,i){1&t&&g(0,vke,3,10,"div",1),2&t&&d("ngIf",!1===i.last)}const yke=["*"];function fd(t){if(void 0!==t.changedTouches&&t.changedTouches.length>0)return{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(void 0!==t.clientX&&void 0!==t.clientY)return{x:t.clientX,y:t.clientY};if(void 0!==t.currentTarget){const i=t.currentTarget;return{x:i.offsetLeft,y:i.offsetTop}}return null}function KO(t,i,e){return Math.abs(t.x-i.x)<=e&&Math.abs(t.y-i.y)<=e}function GO(t,i){const e=t.nativeElement.getBoundingClientRect();return"horizontal"===i?e.width:e.height}function gd(t){return"boolean"==typeof t?t:"false"!==t}function jr(t,i){return null==t?i:(t=Number(t),!isNaN(t)&&t>=0?t:i)}function qO(t,i){if("percent"===t){const e=i.reduce((n,o)=>null!==o?n+o:n,0);return i.every(n=>null!==n)&&e>99.9&&e<100.1}if("pixel"===t)return 1===i.filter(e=>null===e).length}function lg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.minSize?null:t.component.minSize>t.size?t.size:t.component.minSize}function cg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.maxSize?null:t.component.maxSize{const r=function Ake(t,i,e,n){return 0===e?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:i.sizePercentAtStart,pixelRemain:0}:0===i.sizePixelAtStart&&e<0?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:e}:"percent"===t?function wke(t,i,e){const o=(t.sizePixelAtStart+i)/e*100;if(i>0){if(null!==t.area.maxSize&&o>t.area.maxSize){const s=t.area.maxSize/100*e;return{areaSnapshot:t,pixelAbsorb:s,percentAfterAbsorption:t.area.maxSize,pixelRemain:t.sizePixelAtStart+i-s}}return{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:o>100?100:o,pixelRemain:0}}if(i<0){if(null!==t.area.minSize&&o0?null!==t.area.maxSize&&n>t.area.maxSize?{areaSnapshot:t,pixelAbsorb:t.area.maxSize-t.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:n-t.area.maxSize}:{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:-1,pixelRemain:0}:i<0?null!==t.area.minSize&&n{class t{set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=jr(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=jr(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=gd(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=gd(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=gd(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=jr(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new ce(e=>this.transitionEndSubscriber=e).pipe(nk(20))}constructor(e,n,o,s,r){this.ngZone=e,this.elRef=n,this.cdRef=o,this.renderer=s,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new ge(!1),this.dragEnd=new ge(!1),this.gutterClick=new ge(!1),this.gutterDblClick=new ge(!1),this.dragProgressSubject=new re,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=r?Object.assign(this._config,r):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const n={component:e,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===e.visible?(this.displayedAreas.push(n),this.build(!0,!0)):this.hiddenAreas.push(n)}removeArea(e){if(this.displayedAreas.some(n=>n.component===e)){const n=this.displayedAreas.find(o=>o.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(n),1),this.build(!0,!0)}else if(this.hiddenAreas.some(n=>n.component===e)){const n=this.hiddenAreas.find(o=>o.component===e);this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1)}}updateArea(e,n,o){!0===e.visible&&this.build(n,o)}showArea(e){const n=this.hiddenAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1);this.displayedAreas.push(...o),this.build(!0,!0)}hideArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.displayedAreas.splice(this.displayedAreas.indexOf(n),1);o.forEach(s=>{s.order=0,s.size=0}),this.hiddenAreas.push(...o),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const n=e.map(s=>jr(s,null));return!1!==qO(this.unit,n)&&(this.displayedAreas.forEach((s,r)=>s.component._size=n[r]),this.build(!1,!0),!0)}build(e,n){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(o=>null!==o.component.order)&&this.displayedAreas.sort((o,s)=>o.component.order-s.component.order),this.displayedAreas.forEach((o,s)=>{o.order=2*s,o.component.setStyleOrder(o.order)})),!0===n){const o=qO(this.unit,this.displayedAreas.map(s=>s.component.size));switch(this.unit){case"percent":{const s=100/this.displayedAreas.length;this.displayedAreas.forEach(r=>{r.size=o?r.component.size:s,r.minSize=lg(r),r.maxSize=cg(r)});break}case"pixel":if(o)this.displayedAreas.forEach(s=>{s.size=s.component.size,s.minSize=lg(s),s.maxSize=cg(s)});else{const s=this.displayedAreas.filter(r=>null===r.component.size);if(0===s.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((r,a)=>{r.size=0===a?null:r.component.size,r.minSize=0===a?null:lg(r),r.maxSize=0===a?null:cg(r)});else if(s.length>1){let r=!1;this.displayedAreas.forEach(a=>{null===a.component.size?!1===r?(a.size=null,a.minSize=null,a.maxSize=null,r=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=lg(a),a.maxSize=cg(a))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(n=>{n.component.setStyleFlex(0,0,`calc( ${n.size}% - ${n.size/100*e}px )`,null!==n.minSize&&n.minSize===n.size,null!==n.maxSize&&n.maxSize===n.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,n){const o=fd(e);this.startPoint&&KO(this.startPoint,o,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",n),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",n),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(e,n,o){if(!0===this.disabled||!0===this.isWaitingClear)return;const s=function xke(t,i){if("horizontal"===i)switch(t.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===i)switch(t.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const e=t.currentTarget,n="PageUp"===t.key||"PageDown"===t.key?500:50;let o=e.offsetLeft,s=e.offsetTop;switch(t.key){case"ArrowLeft":o-=n;break;case"ArrowRight":o+=n;break;case"ArrowUp":s-=n;break;case"ArrowDown":s+=n;break;case"PageUp":"vertical"===i?s-=n:o+=n;break;case"PageDown":"vertical"===i?s+=n:o-=n;break;default:return null}return{x:o,y:s}}(e,this.direction);null!==s&&(this.endPoint=s,this.startPoint=fd(e),e.preventDefault(),e.stopPropagation(),this.setupForDragEvent(n,o),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(e,n,o){e.preventDefault(),e.stopPropagation(),this.startPoint=fd(e),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(n,o),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(e,n){this.snapshot={gutterNum:n,lastSteppedOffset:0,allAreasSizePixel:GO(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(o=>{const s={area:o,sizePixelAtStart:GO(o.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?o.size:-1};o.ordere&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[s]):this.snapshot.areasAfterGutter.push(s))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((o,s)=>o+s.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(e){e.preventDefault(),e.stopPropagation();const n=fd(e);null!==this._clickTimeout&&!KO(this.startPoint,n,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=fd(e),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let e="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(e=-e);const n=Math.round(e/this.gutterStep)*this.gutterStep;if(n===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=n;let o=Jl(this.unit,this.snapshot.areasBeforeGutter,-n,this.snapshot.allAreasSizePixel),s=Jl(this.unit,this.snapshot.areasAfterGutter,n,this.snapshot.allAreasSizePixel);if(0!==o.remain&&0!==s.remain?Math.abs(o.remain)===Math.abs(s.remain)||(Math.abs(o.remain)>Math.abs(s.remain)?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)):0!==o.remain?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):0!==s.remain&&(o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const r=[...o.list,...s.list],a=r.find(l=>0!==l.percentAfterAbsorption&&l.percentAfterAbsorption!==l.areaSnapshot.area.minSize&&l.percentAfterAbsorption!==l.areaSnapshot.area.maxSize);a&&(a.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-r.filter(l=>l!==a).reduce((l,c)=>l+c.percentAfterAbsorption,0))}o.list.forEach(r=>WO(this.unit,r)),s.list.forEach(r=>WO(this.unit,r)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(n=>n.component.unlockEvents());this.dragListeners.length>0;){const n=this.dragListeners.pop();n&&n()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(e,n){const o=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:n,sizes:o}):"end"===e?this.dragEnd.emit({gutterNum:n,sizes:o}):"click"===e?this.gutterClick.emit({gutterNum:n,sizes:o}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:n,sizes:o}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(o)):"progress"===e&&this.dragProgressSubject.next({gutterNum:n,sizes:o})}ngOnDestroy(){this.stopDragging()}collapseArea(e,n,o){const s=this.displayedAreas.find(l=>l.component===e);if(void 0===s)return;const r="right"===o?1:-1;s.sizeBeforeCollapse||(s.sizeBeforeCollapse=s.size,s.gutterBeforeCollapse=r),s.size=n;const a=this.gutterEls.find(l=>l.nativeElement.style.order===`${s.order+r}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}expandArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n||!n.sizeBeforeCollapse)return;n.size=n.sizeBeforeCollapse,n.sizeBeforeCollapse=null;const o=this.gutterEls.find(s=>s.nativeElement.style.order===`${n.order+n.gutterBeforeCollapse}`);o&&this.renderer.removeClass(o.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}getAriaAreaSizeText(e){return null===e?null:e.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(Ft),V(hn),V(Ske,8))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["as-split"]],viewQuery:function(n,o){if(1&n&&je(Cke,5),2&n){let s;Se(s=Ee())&&(o.gutterEls=s)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:yke,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(n,o){1&n&&(Ti(),Kn(0),g(1,bke,1,1,"ng-template",0)),2&n&&(h(1),d("ngForOf",o.displayedAreas))},dependencies:[Jn,gt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return t})(),Eke=(()=>{class t{set order(e){this._order=jr(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=jr(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=jr(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=jr(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=gd(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=gd(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(e,n,o,s){this.ngZone=e,this.elRef=n,this.renderer=o,this.split=s,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",n=>{"flex-basis"===n.propertyName&&this.split.notify("transitionEnd",-1)})});const e=this.renderer.createElement("div");this.renderer.addClass(e,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,e)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,e)})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,n,o,s,r){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",n),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",o),!0===s?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===r?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(e=0,n="right"){this.split.collapseArea(this,e,n)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(hn),V(QO))};static#t=this.\u0275dir=ut({type:t,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return t})(),Dke=(()=>{class t{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[Xe]})}return t})();const kke=function(){return{width:"auto"}};let Mke=(()=>{class t{constructor(e,n){this.communicatorService=e,this.route=n,this.guid="",this.executionGeneralDetailsData=[]}ngOnInit(){this.communicatorService.messageSourceHasNewMessage.subscribe(e=>{console.log("messge arrived to menu"),console.log(e),this.items=e}),this.route.queryParams.subscribe(e=>{this.guid="",this.guid=e.Guid,typeof this.guid<"u"&&this.guid&&this.searchForSelectedRecNode(this.items)})}searchForSelectedRecNode(e){let n=!1;if(null==e)n=!1;else for(const o of e){if(o.id===this.guid){n=!0;break}if(typeof o.items<"u"&&null!=o.items&&this.searchForSelectedRecNode(o.items)){o.expanded=!0,n=!0;break}}return n}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ginger-report-menu"]],decls:1,vars:5,consts:[[3,"model","multiple"]],template:function(n,o){1&n&&le(0,"p-panelMenu",0),2&n&&(yn(Jt(4,kke)),d("model",o.items)("multiple",!1))},dependencies:[ZM],styles:[".p-panelmenu .p-panelmenu-header-action .p-menuitem-icon{margin-left:.2rem!important;margin-right:.5rem!important} .p-panelmenu .p-component{padding-top:10px}"]})}return t})(),Oke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t,bootstrap:[Rv]});static#n=this.\u0275inj=Ge({providers:[{provide:"environmentObj",useValue:$O},{provide:Ir,useClass:G2}],imports:[R0,uu,dhe,eE,NE,JD,Cfe,sge,Mi,uk,uge,Lge,qM,Wge,_me,Jme,g_e,nO,k_e,Ek,_f,B_e,Z_e,hIe,kk,xIe,OIe,_v,Zs,LIe,$Ce,Tve,s1e,j1e,K1e,yv,Dye,rxe,yxe,Mxe,vf,Qxe,YM,AAe,Vwe,xv,qwe,g2e,x2e,Ik,eTe,ITe,ATe,iSe,pSe,wk,LSe,sEe,rEe,Fv,gEe,yEe,TEe,Nn,ske,JM,dke,Spe,_v,Xe,Dke.forRoot()]})}return t})();Dg(Rv,function(){return[Ct,QI,y2e,Mke,QO,Eke,Ike]},[]),AB().bootstrapModule(Oke).catch(t=>console.error(t))},7536:function(tc){tc.exports=function(xe){var z={};function L(ae){if(z[ae])return z[ae].exports;var H=z[ae]={exports:{},id:ae,loaded:!1};return xe[ae].call(H.exports,H,H.exports,L),H.loaded=!0,H.exports}return L.m=xe,L.c=z,L.p="",L(0)}([function(xe,z,L){xe.exports=L(53)},function(xe,z,L){"use strict";var H=ue(L(2)),F=ue(L(18)),N=L(29),O=ue(N),I=ue(L(30)),T=ue(L(42)),k=ue(L(34)),D=ue(L(31)),M=ue(L(32)),ee=ue(L(43)),ne=ue(L(33)),Q=ue(L(44)),se=ue(L(51)),U=ue(L(52));function ue(pe){return pe&&pe.__esModule?pe:{default:pe}}F.default.register({"blots/block":O.default,"blots/block/embed":N.BlockEmbed,"blots/break":I.default,"blots/container":T.default,"blots/cursor":k.default,"blots/embed":D.default,"blots/inline":M.default,"blots/scroll":ee.default,"blots/text":ne.default,"modules/clipboard":Q.default,"modules/history":se.default,"modules/keyboard":U.default}),H.default.register(O.default,I.default,k.default,M.default,ee.default,ne.default),xe.exports=F.default},function(xe,z,L){"use strict";var ae=L(3),H=L(7),Z=L(12),F=L(13),N=L(14),O=L(15),S=L(16),I=L(17),v=L(8),T=L(10),C=L(11),k=L(9),y=L(6),D={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:ae.default,Format:H.default,Leaf:Z.default,Embed:S.default,Scroll:F.default,Block:O.default,Inline:N.default,Text:I.default,Attributor:{Attribute:v.default,Class:T.default,Style:C.default,Store:k.default}};Object.defineProperty(z,"__esModule",{value:!0}),z.default=D},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(4),Z=L(5),F=L(6),N=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.prototype.appendChild=function(v){this.insertBefore(v)},I.prototype.attach=function(){var v=this;S.prototype.attach.call(this),this.children=new H.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(T){try{var C=O(T);v.insertBefore(C,v.children.head)}catch(k){if(k instanceof F.ParchmentError)return;throw k}})},I.prototype.deleteAt=function(v,T){if(0===v&&T===this.length())return this.remove();this.children.forEachAt(v,T,function(C,k,y){C.deleteAt(k,y)})},I.prototype.descendant=function(v,T){var C=this.children.find(T),k=C[0],y=C[1];return null==v.blotName&&v(k)||null!=v.blotName&&k instanceof v?[k,y]:k instanceof I?k.descendant(v,y):[null,-1]},I.prototype.descendants=function(v,T,C){void 0===T&&(T=0),void 0===C&&(C=Number.MAX_VALUE);var k=[],y=C;return this.children.forEachAt(T,C,function(D,w,M){(null==v.blotName&&v(D)||null!=v.blotName&&D instanceof v)&&k.push(D),D instanceof I&&(k=k.concat(D.descendants(v,w,y))),y-=M}),k},I.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),S.prototype.detach.call(this)},I.prototype.formatAt=function(v,T,C,k){this.children.forEachAt(v,T,function(y,D,w){y.formatAt(D,w,C,k)})},I.prototype.insertAt=function(v,T,C){var k=this.children.find(v),y=k[0];if(y)y.insertAt(k[1],T,C);else{var w=null==C?F.create("text",T):F.create(T,C);this.appendChild(w)}},I.prototype.insertBefore=function(v,T){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(C){return v instanceof C}))throw new F.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,T)},I.prototype.length=function(){return this.children.reduce(function(v,T){return v+T.length()},0)},I.prototype.moveChildren=function(v,T){this.children.forEach(function(C){v.insertBefore(C,T)})},I.prototype.optimize=function(){if(S.prototype.optimize.call(this),0===this.children.length)if(null!=this.statics.defaultChild){var v=F.create(this.statics.defaultChild);this.appendChild(v),v.optimize()}else this.remove()},I.prototype.path=function(v,T){void 0===T&&(T=!1);var C=this.children.find(v,T),k=C[0],y=C[1],D=[[this,v]];return k instanceof I?D.concat(k.path(y,T)):(null!=k&&D.push([k,y]),D)},I.prototype.removeChild=function(v){this.children.remove(v)},I.prototype.replace=function(v){v instanceof I&&v.moveChildren(this),S.prototype.replace.call(this,v)},I.prototype.split=function(v,T){if(void 0===T&&(T=!1),!T){if(0===v)return this;if(v===this.length())return this.next}var C=this.clone();return this.parent.insertBefore(C,this.next),this.children.forEachAt(v,this.length(),function(k,y,D){k=k.split(y,T),C.appendChild(k)}),C},I.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},I.prototype.update=function(v){var T=this,C=[],k=[];v.forEach(function(y){y.target===T.domNode&&"childList"===y.type&&(C.push.apply(C,y.addedNodes),k.push.apply(k,y.removedNodes))}),k.forEach(function(y){if(!(null!=y.parentNode&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var D=F.find(y);null!=D&&(null==D.domNode.parentNode||D.domNode.parentNode===T.domNode)&&D.detach()}}),C.filter(function(y){return y.parentNode==T.domNode}).sort(function(y,D){return y===D?0:y.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var D=null;null!=y.nextSibling&&(D=F.find(y.nextSibling));var w=O(y);(w.next!=D||null==w.next)&&(null!=w.parent&&w.parent.removeChild(T),T.insertBefore(w,D))})},I}(Z.default);function O(S){var I=F.find(S);if(null==I)try{I=F.create(S)}catch{I=F.create(F.Scope.INLINE),[].slice.call(S.childNodes).forEach(function(T){I.domNode.appendChild(T)}),S.parentNode.replaceChild(I.domNode,S),I.attach()}return I}Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z){"use strict";var L=function(){function ae(){this.head=this.tail=void 0,this.length=0}return ae.prototype.append=function(){for(var H=[],Z=0;Z1&&this.append.apply(this,H.slice(1))},ae.prototype.contains=function(H){for(var Z,F=this.iterator();Z=F();)if(Z===H)return!0;return!1},ae.prototype.insertBefore=function(H,Z){H.next=Z,null!=Z?(H.prev=Z.prev,null!=Z.prev&&(Z.prev.next=H),Z.prev=H,Z===this.head&&(this.head=H)):null!=this.tail?(this.tail.next=H,H.prev=this.tail,this.tail=H):(H.prev=void 0,this.head=this.tail=H),this.length+=1},ae.prototype.offset=function(H){for(var Z=0,F=this.head;null!=F;){if(F===H)return Z;Z+=F.length(),F=F.next}return-1},ae.prototype.remove=function(H){this.contains(H)&&(null!=H.prev&&(H.prev.next=H.next),null!=H.next&&(H.next.prev=H.prev),H===this.head&&(this.head=H.next),H===this.tail&&(this.tail=H.prev),this.length-=1)},ae.prototype.iterator=function(H){return void 0===H&&(H=this.head),function(){var Z=H;return null!=H&&(H=H.next),Z}},ae.prototype.find=function(H,Z){void 0===Z&&(Z=!1);for(var F,N=this.iterator();F=N();){var O=F.length();if(Hv?F(I,H-v,Math.min(Z,v+C-H)):F(I,0,Math.min(C,H+Z-v)),v+=C}},ae.prototype.map=function(H){return this.reduce(function(Z,F){return Z.push(H(F)),Z},[])},ae.prototype.reduce=function(H,Z){for(var F,N=this.iterator();F=N();)Z=H(Z,F);return Z},ae}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=L},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F){this.domNode=F,this.attach()}return Object.defineProperty(Z.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),Z.create=function(F){if(null==this.tagName)throw new ae.ParchmentError("Blot definition missing tagName");var N;return Array.isArray(this.tagName)?("string"==typeof F&&(F=F.toUpperCase(),parseInt(F).toString()===F&&(F=parseInt(F))),N="number"==typeof F?document.createElement(this.tagName[F-1]):this.tagName.indexOf(F)>-1?document.createElement(F):document.createElement(this.tagName[0])):N=document.createElement(this.tagName),this.className&&N.classList.add(this.className),N},Z.prototype.attach=function(){this.domNode[ae.DATA_KEY]={blot:this}},Z.prototype.clone=function(){var F=this.domNode.cloneNode();return ae.create(F)},Z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[ae.DATA_KEY]},Z.prototype.deleteAt=function(F,N){this.isolate(F,N).remove()},Z.prototype.formatAt=function(F,N,O,S){var I=this.isolate(F,N);if(null!=ae.query(O,ae.Scope.BLOT)&&S)I.wrap(O,S);else if(null!=ae.query(O,ae.Scope.ATTRIBUTE)){var v=ae.create(this.statics.scope);I.wrap(v),v.format(O,S)}},Z.prototype.insertAt=function(F,N,O){var S=null==O?ae.create("text",N):ae.create(N,O),I=this.split(F);this.parent.insertBefore(S,I)},Z.prototype.insertInto=function(F,N){if(null!=this.parent&&this.parent.children.remove(this),F.children.insertBefore(this,N),null!=N)var O=N.domNode;(null==this.next||this.domNode.nextSibling!=O)&&F.domNode.insertBefore(this.domNode,typeof O<"u"?O:null),this.parent=F},Z.prototype.isolate=function(F,N){var O=this.split(F);return O.split(N),O},Z.prototype.length=function(){return 1},Z.prototype.offset=function(F){return void 0===F&&(F=this.parent),null==this.parent||this==F?0:this.parent.children.offset(this)+this.parent.offset(F)},Z.prototype.optimize=function(){null!=this.domNode[ae.DATA_KEY]&&delete this.domNode[ae.DATA_KEY].mutations},Z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},Z.prototype.replace=function(F){null!=F.parent&&(F.parent.insertBefore(this,F.next),F.remove())},Z.prototype.replaceWith=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return O.replace(this),O},Z.prototype.split=function(F,N){return 0===F?this:this.next},Z.prototype.update=function(F){void 0===F&&(F=[])},Z.prototype.wrap=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return null!=this.parent&&this.parent.insertBefore(O,this.next),O.appendChild(this),O},Z}();H.blotName="abstract",Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z){"use strict";var L=this&&this.__extends||function(C,k){for(var y in k)k.hasOwnProperty(y)&&(C[y]=k[y]);function D(){this.constructor=C}C.prototype=null===k?Object.create(k):(D.prototype=k.prototype,new D)},ae=function(C){function k(y){var D;return(D=C.call(this,y="[Parchment] "+y)||this).message=y,D.name=D.constructor.name,D}return L(k,C),k}(Error);z.ParchmentError=ae;var O,C,H={},Z={},F={},N={};function v(C,k){var y;if(void 0===k&&(k=O.ANY),"string"==typeof C)y=N[C]||H[C];else if(C instanceof Text)y=N.text;else if("number"==typeof C)C&O.LEVEL&O.BLOCK?y=N.block:C&O.LEVEL&O.INLINE&&(y=N.inline);else if(C instanceof HTMLElement){var D=(C.getAttribute("class")||"").split(/\s+/);for(var w in D)if(y=Z[D[w]])break;y=y||F[C.tagName]}return null==y?null:k&O.LEVEL&y.scope&&k&O.TYPE&y.scope?y:null}z.DATA_KEY="__blot",(C=O=z.Scope||(z.Scope={}))[C.TYPE=3]="TYPE",C[C.LEVEL=12]="LEVEL",C[C.ATTRIBUTE=13]="ATTRIBUTE",C[C.BLOT=14]="BLOT",C[C.INLINE=7]="INLINE",C[C.BLOCK=11]="BLOCK",C[C.BLOCK_BLOT=10]="BLOCK_BLOT",C[C.INLINE_BLOT=6]="INLINE_BLOT",C[C.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",C[C.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",C[C.ANY=15]="ANY",z.create=function S(C,k){var y=v(C);if(null==y)throw new ae("Unable to create "+C+" blot");var D=y,w=C instanceof Node?C:D.create(k);return new D(w,k)},z.find=function I(C,k){return void 0===k&&(k=!1),null==C?null:null!=C[z.DATA_KEY]?C[z.DATA_KEY].blot:k?I(C.parentNode,k):null},z.query=v,z.register=function T(){for(var C=[],k=0;k1)return C.map(function(w){return T(w)});var y=C[0];if("string"!=typeof y.blotName&&"string"!=typeof y.attrName)throw new ae("Invalid definition");if("abstract"===y.blotName)throw new ae("Cannot register abstract class");return N[y.blotName||y.attrName]=y,"string"==typeof y.keyName?H[y.keyName]=y:(null!=y.className&&(Z[y.className]=y),null!=y.tagName&&(y.tagName=Array.isArray(y.tagName)?y.tagName.map(function(w){return w.toUpperCase()}):y.tagName.toUpperCase(),(Array.isArray(y.tagName)?y.tagName:[y.tagName]).forEach(function(w){(null==F[w]||null==y.className)&&(F[w]=y)}))),y}},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(8),Z=L(9),F=L(3),N=L(6),O=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.formats=function(v){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?v.tagName.toLowerCase():void 0)},I.prototype.attach=function(){S.prototype.attach.call(this),this.attributes=new Z.default(this.domNode)},I.prototype.format=function(v,T){var C=N.query(v);C instanceof H.default?this.attributes.attribute(C,T):T&&null!=C&&(v!==this.statics.blotName||this.formats()[v]!==T)&&this.replaceWith(v,T)},I.prototype.formats=function(){var v=this.attributes.values(),T=this.statics.formats(this.domNode);return null!=T&&(v[this.statics.blotName]=T),v},I.prototype.replaceWith=function(v,T){var C=S.prototype.replaceWith.call(this,v,T);return this.attributes.copy(C),C},I.prototype.update=function(v){var T=this;S.prototype.update.call(this,v),v.some(function(C){return C.target===T.domNode&&"attributes"===C.type})&&this.attributes.build()},I.prototype.wrap=function(v,T){var C=S.prototype.wrap.call(this,v,T);return C instanceof I&&C.statics.scope===this.statics.scope&&this.attributes.move(C),C},I}(F.default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F,N,O){void 0===O&&(O={}),this.attrName=F,this.keyName=N,this.scope=null!=O.scope?O.scope&ae.Scope.LEVEL|ae.Scope.TYPE&ae.Scope.ATTRIBUTE:ae.Scope.ATTRIBUTE,null!=O.whitelist&&(this.whitelist=O.whitelist)}return Z.keys=function(F){return[].map.call(F.attributes,function(N){return N.name})},Z.prototype.add=function(F,N){return!!this.canAdd(F,N)&&(F.setAttribute(this.keyName,N),!0)},Z.prototype.canAdd=function(F,N){return null!=ae.query(F,ae.Scope.BLOT&(this.scope|ae.Scope.TYPE))&&(null==this.whitelist||this.whitelist.indexOf(N)>-1)},Z.prototype.remove=function(F){F.removeAttribute(this.keyName)},Z.prototype.value=function(F){var N=F.getAttribute(this.keyName);return this.canAdd(F,N)?N:""},Z}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z,L){"use strict";var ae=L(8),H=L(10),Z=L(11),F=L(6),N=function(){function O(S){this.attributes={},this.domNode=S,this.build()}return O.prototype.attribute=function(S,I){I?S.add(this.domNode,I)&&(null!=S.value(this.domNode)?this.attributes[S.attrName]=S:delete this.attributes[S.attrName]):(S.remove(this.domNode),delete this.attributes[S.attrName])},O.prototype.build=function(){var S=this;this.attributes={};var I=ae.default.keys(this.domNode),v=H.default.keys(this.domNode),T=Z.default.keys(this.domNode);I.concat(v).concat(T).forEach(function(C){var k=F.query(C,F.Scope.ATTRIBUTE);k instanceof ae.default&&(S.attributes[k.attrName]=k)})},O.prototype.copy=function(S){var I=this;Object.keys(this.attributes).forEach(function(v){var T=I.attributes[v].value(I.domNode);S.format(v,T)})},O.prototype.move=function(S){var I=this;this.copy(S),Object.keys(this.attributes).forEach(function(v){I.attributes[v].remove(I.domNode)}),this.attributes={}},O.prototype.values=function(){var S=this;return Object.keys(this.attributes).reduce(function(I,v){return I[v]=S.attributes[v].value(S.domNode),I},{})},O}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N,O){return(N.getAttribute("class")||"").split(/\s+/).filter(function(I){return 0===I.indexOf(O+"-")})}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("class")||"").split(/\s+/).map(function(I){return I.split("-").slice(0,-1).join("-")})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(this.remove(S),S.classList.add(this.keyName+"-"+I),!0)},O.prototype.remove=function(S){Z(S,this.keyName).forEach(function(v){S.classList.remove(v)}),0===S.classList.length&&S.removeAttribute("class")},O.prototype.value=function(S){var v=(Z(S,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(S,v)?v:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N){var O=N.split("-"),S=O.slice(1).map(function(I){return I[0].toUpperCase()+I.slice(1)}).join("");return O[0]+S}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("style")||"").split(";").map(function(I){return I.split(":")[0].trim()})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(S.style[Z(this.keyName)]=I,!0)},O.prototype.remove=function(S){S.style[Z(this.keyName)]="",S.getAttribute("style")||S.removeAttribute("style")},O.prototype.value=function(S){var I=S.style[Z(this.keyName)];return this.canAdd(S,I)?I:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(5),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.value=function(S){return!0},O.prototype.index=function(S,I){return S!==this.domNode?-1:Math.min(I,1)},O.prototype.position=function(S,I){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return S>0&&(v+=1),[this.parent.domNode,v]},O.prototype.value=function(){return(S={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,S;var S},O}(H.default);F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(3),Z=L(6),F={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},O=function(S){function I(v){var T=S.call(this,v)||this;return T.parent=null,T.observer=new MutationObserver(function(C){T.update(C)}),T.observer.observe(T.domNode,F),T}return ae(I,S),I.prototype.detach=function(){S.prototype.detach.call(this),this.observer.disconnect()},I.prototype.deleteAt=function(v,T){this.update(),0===v&&T===this.length()?this.children.forEach(function(C){C.remove()}):S.prototype.deleteAt.call(this,v,T)},I.prototype.formatAt=function(v,T,C,k){this.update(),S.prototype.formatAt.call(this,v,T,C,k)},I.prototype.insertAt=function(v,T,C){this.update(),S.prototype.insertAt.call(this,v,T,C)},I.prototype.optimize=function(v){var T=this;void 0===v&&(v=[]),S.prototype.optimize.call(this);for(var C=[].slice.call(this.observer.takeRecords());C.length>0;)v.push(C.pop());for(var k=function(M,$){void 0===$&&($=!0),null!=M&&M!==T&&null!=M.domNode.parentNode&&(null==M.domNode[Z.DATA_KEY].mutations&&(M.domNode[Z.DATA_KEY].mutations=[]),$&&k(M.parent))},y=function(M){null==M.domNode[Z.DATA_KEY]||null==M.domNode[Z.DATA_KEY].mutations||(M instanceof H.default&&M.children.forEach(y),M.optimize())},D=v,w=0;D.length>0;w+=1){if(w>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(D.forEach(function(M){var $=Z.find(M.target,!0);null!=$&&($.domNode===M.target&&("childList"===M.type?(k(Z.find(M.previousSibling,!1)),[].forEach.call(M.addedNodes,function(ee){var B=Z.find(ee,!1);k(B,!1),B instanceof H.default&&B.children.forEach(function(ne){k(ne,!1)})})):"attributes"===M.type&&k($.prev)),k($))}),this.children.forEach(y),C=(D=[].slice.call(this.observer.takeRecords())).slice();C.length>0;)v.push(C.pop())}},I.prototype.update=function(v){var T=this;(v=v||this.observer.takeRecords()).map(function(C){var k=Z.find(C.target,!0);if(null!=k)return null==k.domNode[Z.DATA_KEY].mutations?(k.domNode[Z.DATA_KEY].mutations=[C],k):(k.domNode[Z.DATA_KEY].mutations.push(C),null)}).forEach(function(C){null==C||C===T||null==C.domNode[Z.DATA_KEY]||C.update(C.domNode[Z.DATA_KEY].mutations||[])}),null!=this.domNode[Z.DATA_KEY].mutations&&S.prototype.update.call(this,this.domNode[Z.DATA_KEY].mutations),this.optimize(v)},I}(H.default);O.blotName="scroll",O.defaultChild="block",O.scope=Z.Scope.BLOCK_BLOT,O.tagName="DIV",Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(O,S){for(var I in S)S.hasOwnProperty(I)&&(O[I]=S[I]);function v(){this.constructor=O}O.prototype=null===S?Object.create(S):(v.prototype=S.prototype,new v)},H=L(7),Z=L(6);var N=function(O){function S(){return O.apply(this,arguments)||this}return ae(S,O),S.formats=function(I){if(I.tagName!==S.tagName)return O.formats.call(this,I)},S.prototype.format=function(I,v){var T=this;I!==this.statics.blotName||v?O.prototype.format.call(this,I,v):(this.children.forEach(function(C){C instanceof H.default||(C=C.wrap(S.blotName,!0)),T.attributes.copy(C)}),this.unwrap())},S.prototype.formatAt=function(I,v,T,C){null!=this.formats()[T]||Z.query(T,Z.Scope.ATTRIBUTE)?this.isolate(I,v).format(T,C):O.prototype.formatAt.call(this,I,v,T,C)},S.prototype.optimize=function(){O.prototype.optimize.call(this);var I=this.formats();if(0===Object.keys(I).length)return this.unwrap();var v=this.next;v instanceof S&&v.prev===this&&function F(O,S){if(Object.keys(O).length!==Object.keys(S).length)return!1;for(var I in O)if(O[I]!==S[I])return!1;return!0}(I,v.formats())&&(v.moveChildren(this),v.remove())},S}(H.default);N.blotName="inline",N.scope=Z.Scope.INLINE_BLOT,N.tagName="SPAN",Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(7),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.formats=function(S){var I=Z.query(O.blotName).tagName;if(S.tagName!==I)return N.formats.call(this,S)},O.prototype.format=function(S,I){null!=Z.query(S,Z.Scope.BLOCK)&&(S!==this.statics.blotName||I?N.prototype.format.call(this,S,I):this.replaceWith(O.blotName))},O.prototype.formatAt=function(S,I,v,T){null!=Z.query(v,Z.Scope.BLOCK)?this.format(v,T):N.prototype.formatAt.call(this,S,I,v,T)},O.prototype.insertAt=function(S,I,v){if(null==v||null!=Z.query(I,Z.Scope.INLINE))N.prototype.insertAt.call(this,S,I,v);else{var T=this.split(S),C=Z.create(I,v);T.parent.insertBefore(C,T)}},O}(H.default);F.blotName="block",F.scope=Z.Scope.BLOCK_BLOT,F.tagName="P",Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(F,N){for(var O in N)N.hasOwnProperty(O)&&(F[O]=N[O]);function S(){this.constructor=F}F.prototype=null===N?Object.create(N):(S.prototype=N.prototype,new S)},Z=function(F){function N(){return F.apply(this,arguments)||this}return ae(N,F),N.formats=function(O){},N.prototype.format=function(O,S){F.prototype.formatAt.call(this,0,this.length(),O,S)},N.prototype.formatAt=function(O,S,I,v){0===O&&S===this.length()?this.format(I,v):F.prototype.formatAt.call(this,O,S,I,v)},N.prototype.formats=function(){return this.statics.formats(this.domNode)},N}(L(12).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=Z},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(12),Z=L(6),F=function(N){function O(S){var I=N.call(this,S)||this;return I.text=I.statics.value(I.domNode),I}return ae(O,N),O.create=function(S){return document.createTextNode(S)},O.value=function(S){return S.data},O.prototype.deleteAt=function(S,I){this.domNode.data=this.text=this.text.slice(0,S)+this.text.slice(S+I)},O.prototype.index=function(S,I){return this.domNode===S?I:-1},O.prototype.insertAt=function(S,I,v){null==v?(this.text=this.text.slice(0,S)+I+this.text.slice(S),this.domNode.data=this.text):N.prototype.insertAt.call(this,S,I,v)},O.prototype.length=function(){return this.text.length},O.prototype.optimize=function(){N.prototype.optimize.call(this),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof O&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},O.prototype.position=function(S,I){return void 0===I&&(I=!1),[this.domNode,S]},O.prototype.split=function(S,I){if(void 0===I&&(I=!1),!I){if(0===S)return this;if(S===this.length())return this.next}var v=Z.create(this.domNode.splitText(S));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},O.prototype.update=function(S){var I=this;S.some(function(v){return"characterData"===v.type&&v.target===I.domNode})&&(this.text=this.statics.value(this.domNode))},O.prototype.value=function(){return this.text},O}(H.default);F.blotName="text",F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.overload=z.expandConfig=void 0;var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},H=function(ce,ie){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return function de(ce,ie){var J=[],oe=!0,Ie=!1,re=void 0;try{for(var Be,ye=ce[Symbol.iterator]();!(oe=(Be=ye.next()).done)&&(J.push(Be.value),!ie||J.length!==ie);oe=!0);}catch(Me){Ie=!0,re=Me}finally{try{!oe&&ye.return&&ye.return()}finally{if(Ie)throw re}}return J}(ce,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function de(ce,ie){for(var J=0;J1&&void 0!==arguments[1]?arguments[1]:{};if(function se(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,de),this.options=ue(ce,J),this.container=this.options.container,this.scrollingContainer=this.options.scrollingContainer||document.body,null==this.container)return X.error("Invalid Quill container",ce);this.options.debug&&de.debug(this.options.debug);var oe=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new v.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new S.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(re){re===v.default.events.TEXT_CHANGE&&ie.root.classList.toggle("ql-blank",ie.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(re,ye){var Be=ie.selection.lastRange,Me=Be&&0===Be.length?Be.index:void 0;pe.call(ie,function(){return ie.editor.update(null,ye,Me)},re)});var Ie=this.clipboard.convert("
"+oe+"


");this.setContents(Ie),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return Z(de,null,[{key:"debug",value:function(ie){!0===ie&&(ie="log"),B.default.level(ie)}},{key:"import",value:function(ie){return null==this.imports[ie]&&X.error("Cannot import "+ie+". Are you sure it was registered?"),this.imports[ie]}},{key:"register",value:function(ie,J){var oe=this,Ie=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof ie){var re=ie.attrName||ie.blotName;"string"==typeof re?this.register("formats/"+re,ie,J):Object.keys(ie).forEach(function(ye){oe.register(ye,ie[ye],J)})}else null!=this.imports[ie]&&!Ie&&X.warn("Overwriting "+ie+" with",J),this.imports[ie]=J,(ie.startsWith("blots/")||ie.startsWith("formats/"))&&"abstract"!==J.blotName&&y.default.register(J)}}]),Z(de,[{key:"addContainer",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof ie){var oe=ie;(ie=document.createElement("div")).classList.add(oe)}return this.container.insertBefore(ie,J),ie}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return pe.call(this,function(){return Ie.editor.deleteText(ie,J)},oe=ye[3],ie=ye[0],-1*(J=ye[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ie=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(ie),this.container.classList.toggle("ql-disabled",!ie),ie||this.blur()}},{key:"focus",value:function(){var ie=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ie,this.selection.scrollIntoView()}},{key:"format",value:function(ie,J){var oe=this;return pe.call(this,function(){var re=oe.getSelection(!0),ye=new N.default;if(null==re)return ye;if(y.default.query(ie,y.default.Scope.BLOCK))ye=oe.editor.formatLine(re.index,re.length,R({},ie,J));else{if(0===re.length)return oe.selection.format(ie,J),ye;ye=oe.editor.formatText(re.index,re.length,R({},ie,J))}return oe.setSelection(re,v.default.sources.SILENT),ye},arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API)}},{key:"formatLine",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatLine(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"formatText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatText(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"getBounds",value:function(ie){return"number"==typeof ie?this.selection.getBounds(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(ie.index,ie.length)}},{key:"getContents",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getContents(ie=Ie[0],J=Ie[1])}},{key:"getFormat",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection();return"number"==typeof ie?this.editor.getFormat(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(ie.index,ie.length)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getModule",value:function(ie){return this.theme.modules[ie]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getText(ie=Ie[0],J=Ie[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ie,J,oe){var Ie=this;return pe.call(this,function(){return Ie.editor.insertEmbed(ie,J,oe)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:de.sources.API,ie)}},{key:"insertText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,0,oe,Ie,re),Ue=H(Me,4);return Be=Ue[2],pe.call(this,function(){return ye.editor.insertText(ie,J,Be)},re=Ue[3],ie=Ue[0],J.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(ie,J,oe){this.clipboard.dangerouslyPasteHTML(ie,J,oe)}},{key:"removeFormat",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return J=ye[1],pe.call(this,function(){return Ie.editor.removeFormat(ie,J)},oe=ye[3],ie=ye[0])}},{key:"setContents",value:function(ie){var J=this;return pe.call(this,function(){ie=new N.default(ie);var Ie=J.getLength(),re=J.editor.deleteText(0,Ie),ye=J.editor.applyDelta(ie),Be=ye.ops[ye.ops.length-1];return null!=Be&&"string"==typeof Be.insert&&"\n"===Be.insert[Be.insert.length-1]&&(J.editor.deleteText(J.getLength()-1,1),ye.delete(1)),re.compose(ye)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API)}},{key:"setSelection",value:function(ie,J,oe){if(null==ie)this.selection.setRange(null,J||de.sources.API);else{var Ie=_e(ie,J,oe),re=H(Ie,4);oe=re[3],this.selection.setRange(new D.Range(ie=re[0],J=re[1]),oe)}this.selection.scrollIntoView()}},{key:"setText",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API,oe=(new N.default).insert(ie);return this.setContents(oe,J)}},{key:"update",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,J=this.scroll.update(ie);return this.selection.update(ie),J}},{key:"updateContents",value:function(ie){var J=this,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API;return pe.call(this,function(){return ie=new N.default(ie),J.editor.applyDelta(ie,oe)},oe,!0)}}]),de}();function ue(de,ce){if((ce=(0,$.default)(!0,{container:de,modules:{clipboard:!0,keyboard:!0,history:!0}},ce)).theme&&ce.theme!==U.DEFAULTS.theme){if(ce.theme=U.import("themes/"+ce.theme),null==ce.theme)throw new Error("Invalid theme "+ce.theme+". Did you register it?")}else ce.theme=Y.default;var ie=(0,$.default)(!0,{},ce.theme.DEFAULTS);[ie,ce].forEach(function(Ie){Ie.modules=Ie.modules||{},Object.keys(Ie.modules).forEach(function(re){!0===Ie.modules[re]&&(Ie.modules[re]={})})});var oe=Object.keys(ie.modules).concat(Object.keys(ce.modules)).reduce(function(Ie,re){var ye=U.import("modules/"+re);return null==ye?X.error("Cannot load "+re+" module. Are you sure you registered it?"):Ie[re]=ye.DEFAULTS||{},Ie},{});return null!=ce.modules&&ce.modules.toolbar&&ce.modules.toolbar.constructor!==Object&&(ce.modules.toolbar={container:ce.modules.toolbar}),ce=(0,$.default)(!0,{},U.DEFAULTS,{modules:oe},ie,ce),["bounds","container","scrollingContainer"].forEach(function(Ie){"string"==typeof ce[Ie]&&(ce[Ie]=document.querySelector(ce[Ie]))}),ce.modules=Object.keys(ce.modules).reduce(function(Ie,re){return ce.modules[re]&&(Ie[re]=ce.modules[re]),Ie},{}),ce}function pe(de,ce,ie,J){if(this.options.strict&&!this.isEnabled()&&ce===v.default.sources.USER)return new N.default;var oe=null==ie?null:this.getSelection(),Ie=this.editor.delta,re=de();if(null!=oe&&ce===v.default.sources.USER&&(!0===ie&&(ie=oe.index),null==J?oe=he(oe,re,ce):0!==J&&(oe=he(oe,ie,J,ce)),this.setSelection(oe,v.default.sources.SILENT)),re.length()>0){var ye,Me,Be=[v.default.events.TEXT_CHANGE,re,Ie,ce];(ye=this.emitter).emit.apply(ye,[v.default.events.EDITOR_CHANGE].concat(Be)),ce!==v.default.sources.SILENT&&(Me=this.emitter).emit.apply(Me,Be)}return re}function _e(de,ce,ie,J,oe){var Ie={};return"number"==typeof de.index&&"number"==typeof de.length?"number"!=typeof ce?(oe=J,J=ie,ie=ce,ce=de.length,de=de.index):(ce=de.length,de=de.index):"number"!=typeof ce&&(oe=J,J=ie,ie=ce,ce=0),"object"===(typeof ie>"u"?"undefined":ae(ie))?(Ie=ie,oe=J):"string"==typeof ie&&(null!=J?Ie[ie]=J:oe=ie),[de,ce,Ie,oe=oe||v.default.sources.API]}function he(de,ce,ie,J){if(null==de)return null;var oe=void 0,Ie=void 0;if(ce instanceof N.default){var re=[de.index,de.index+de.length].map(function(Ue){return ce.transformPosition(Ue,J===v.default.sources.USER)}),ye=H(re,2);oe=ye[0],Ie=ye[1]}else{var Be=[de.index,de.index+de.length].map(function(Ue){return Ue=0?Ue+ie:Math.max(ce,Ue+ie)}),Me=H(Be,2);oe=Me[0],Ie=Me[1]}return new D.Range(oe,Ie-oe)}U.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},U.events=v.default.events,U.sources=v.default.sources,U.version="1.1.8",U.imports={delta:N.default,parchment:y.default,"core/module":C.default,"core/theme":Y.default},z.expandConfig=ue,z.overload=_e,z.default=U},function(xe,z){"use strict";var ae,L=document.createElement("div");L.classList.toggle("test-class",!1),L.classList.contains("test-class")&&(ae=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(H,Z){return arguments.length>1&&!this.contains(H)==!Z?Z:ae.call(this,H)}),String.prototype.startsWith||(String.prototype.startsWith=function(ae,H){return this.substr(H=H||0,ae.length)===ae}),String.prototype.endsWith||(String.prototype.endsWith=function(ae,H){var Z=this.toString();("number"!=typeof H||!isFinite(H)||Math.floor(H)!==H||H>Z.length)&&(H=Z.length);var F=Z.indexOf(ae,H-=ae.length);return-1!==F&&F===H}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(H){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof H)throw new TypeError("predicate must be a function");for(var O,Z=Object(this),F=Z.length>>>0,N=arguments[1],S=0;S0&&(v.attributes=I),this.push(v))},O.prototype.delete=function(S){return S<=0?this:this.push({delete:S})},O.prototype.retain=function(S,I){if(S<=0)return this;var v={retain:S};return null!=I&&"object"==typeof I&&Object.keys(I).length>0&&(v.attributes=I),this.push(v)},O.prototype.push=function(S){var I=this.ops.length,v=this.ops[I-1];if(S=Z(!0,{},S),"object"==typeof v){if("number"==typeof S.delete&&"number"==typeof v.delete)return this.ops[I-1]={delete:v.delete+S.delete},this;if("number"==typeof v.delete&&null!=S.insert&&"object"!=typeof(v=this.ops[(I-=1)-1]))return this.ops.unshift(S),this;if(H(S.attributes,v.attributes)){if("string"==typeof S.insert&&"string"==typeof v.insert)return this.ops[I-1]={insert:v.insert+S.insert},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this;if("number"==typeof S.retain&&"number"==typeof v.retain)return this.ops[I-1]={retain:v.retain+S.retain},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this}}return I===this.ops.length?this.ops.push(S):this.ops.splice(I,0,S),this},O.prototype.filter=function(S){return this.ops.filter(S)},O.prototype.forEach=function(S){this.ops.forEach(S)},O.prototype.map=function(S){return this.ops.map(S)},O.prototype.partition=function(S){var I=[],v=[];return this.forEach(function(T){(S(T)?I:v).push(T)}),[I,v]},O.prototype.reduce=function(S,I){return this.ops.reduce(S,I)},O.prototype.chop=function(){var S=this.ops[this.ops.length-1];return S&&S.retain&&!S.attributes&&this.ops.pop(),this},O.prototype.length=function(){return this.reduce(function(S,I){return S+F.length(I)},0)},O.prototype.slice=function(S,I){S=S||0,"number"!=typeof I&&(I=1/0);for(var v=[],T=F.iterator(this.ops),C=0;C0&&(I.push(S.ops[0]),I.ops=I.ops.concat(S.ops.slice(1))),I},O.prototype.diff=function(S,I){if(this.ops===S.ops)return new O;var v=[this,S].map(function(D){return D.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:N;var M=ops===S.ops?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")}),T=new O,C=ae(v[0],v[1],I),k=F.iterator(this.ops),y=F.iterator(S.ops);return C.forEach(function(D){for(var w=D[1].length;w>0;){var M=0;switch(D[0]){case ae.INSERT:M=Math.min(y.peekLength(),w),T.push(y.next(M));break;case ae.DELETE:M=Math.min(w,k.peekLength()),k.next(M),T.delete(M);break;case ae.EQUAL:M=Math.min(k.peekLength(),y.peekLength(),w);var $=k.next(M),ee=y.next(M);H($.insert,ee.insert)?T.retain(M,F.attributes.diff($.attributes,ee.attributes)):T.push(ee).delete(M)}w-=M}}),T.chop()},O.prototype.eachLine=function(S,I){I=I||"\n";for(var v=F.iterator(this.ops),T=new O;v.hasNext();){if("insert"!==v.peekType())return;var C=v.peek(),k=F.length(C)-v.peekLength(),y="string"==typeof C.insert?C.insert.indexOf(I,k)-k:-1;y<0?T.push(v.next()):y>0?T.push(v.next(y)):(S(T,v.next(1).attributes||{}),T=new O)}T.length()>0&&S(T,{})},O.prototype.transform=function(S,I){if(I=!!I,"number"==typeof S)return this.transformPosition(S,I);for(var v=F.iterator(this.ops),T=F.iterator(S.ops),C=new O;v.hasNext()||T.hasNext();)if("insert"!==v.peekType()||!I&&"insert"===T.peekType())if("insert"===T.peekType())C.push(T.next());else{var k=Math.min(v.peekLength(),T.peekLength()),y=v.next(k),D=T.next(k);if(y.delete)continue;D.delete?C.push(D):C.retain(k,F.attributes.transform(y.attributes,D.attributes,I))}else C.retain(F.length(v.next()));return C.chop()},O.prototype.transformPosition=function(S,I){I=!!I;for(var v=F.iterator(this.ops),T=0;v.hasNext()&&T<=S;){var C=v.peekLength(),k=v.peekType();v.next(),"delete"!==k?("insert"===k&&(TM.length?w:M,B=w.length>M.length?M:w,ne=ee.indexOf(B);if(-1!=ne)return $=[[ae,ee.substring(0,ne)],[H,B],[ae,ee.substring(ne+B.length)]],w.length>M.length&&($[0][0]=$[2][0]=L),$;if(1==B.length)return[[L,w],[ae,M]];var Y=function v(w,M){var $=w.length>M.length?w:M,ee=w.length>M.length?M:w;if($.length<4||2*ee.length<$.length)return null;function B(pe,_e,he){for(var J,oe,Ie,re,de=pe.substring(he,he+Math.floor(pe.length/4)),ce=-1,ie="";-1!=(ce=_e.indexOf(de,ce+1));){var ye=S(pe.substring(he),_e.substring(ce)),Be=I(pe.substring(0,he),_e.substring(0,ce));ie.length=pe.length?[J,oe,Ie,re,ie]:null}var Q,R,se,X,U,ne=B($,ee,Math.ceil($.length/4)),Y=B($,ee,Math.ceil($.length/2));return ne||Y?(Q=Y?ne&&ne[4].length>Y[4].length?ne:Y:ne,w.length>M.length?(R=Q[0],se=Q[1],X=Q[2],U=Q[3]):(X=Q[0],U=Q[1],R=Q[2],se=Q[3]),[R,se,X,U,Q[4]]):null}(w,M);if(Y){var R=Y[1],X=Y[3],U=Y[4],ue=Z(Y[0],Y[2]),pe=Z(R,X);return ue.concat([[H,U]],pe)}return function N(w,M){for(var $=w.length,ee=M.length,B=Math.ceil(($+ee)/2),ne=B,Y=2*B,Q=new Array(Y),R=new Array(Y),se=0;se$)pe+=2;else if(oe>ee)ue+=2;else if(U&&(Ie=ne+X-ce)>=0&&Ie=(re=$-R[Ie]))return O(w,M,J,oe)}for(var ye=-de+_e;ye<=de-he;ye+=2){for(var re,Ie=ne+ye,Be=(re=ye==-de||ye!=de&&R[Ie-1]$)he+=2;else if(Be>ee)_e+=2;else if(!U){var J;if((ie=ne+X-ye)>=0&&ie=(re=$-re)))return O(w,M,J,oe)}}}return[[L,w],[ae,M]]}(w,M)}(w=w.substring(0,w.length-ee),M=M.substring(0,M.length-ee));return B&&Y.unshift([H,B]),ne&&Y.push([H,ne]),T(Y),null!=$&&(Y=function y(w,M){var $=function k(w,M){if(0===M)return[H,w];for(var $=0,ee=0;ee0&&ee.splice(B+2,0,[Y[0],Q]),D(ee,B,3)}return w}(Y,$)),Y}function O(w,M,$,ee){var B=w.substring(0,$),ne=M.substring(0,ee),Y=w.substring($),Q=M.substring(ee),R=Z(B,ne),se=Z(Y,Q);return R.concat(se)}function S(w,M){if(!w||!M||w.charAt(0)!=M.charAt(0))return 0;for(var $=0,ee=Math.min(w.length,M.length),B=ee,ne=0;$1?(0!==$&&0!==ee&&(0!==(Y=S(ne,B))&&(M-$-ee>0&&w[M-$-ee-1][0]==H?w[M-$-ee-1][1]+=ne.substring(0,Y):(w.splice(0,0,[H,ne.substring(0,Y)]),M++),ne=ne.substring(Y),B=B.substring(Y)),0!==(Y=I(ne,B))&&(w[M][1]=ne.substring(ne.length-Y)+w[M][1],ne=ne.substring(0,ne.length-Y),B=B.substring(0,B.length-Y))),0===$?w.splice(M-ee,$+ee,[ae,ne]):0===ee?w.splice(M-$,$+ee,[L,B]):w.splice(M-$-ee,$+ee,[L,B],[ae,ne]),M=M-$-ee+($?1:0)+(ee?1:0)+1):0!==M&&w[M-1][0]==H?(w[M-1][1]+=w[M][1],w.splice(M,1)):M++,ee=0,$=0,B="",ne=""}""===w[w.length-1][1]&&w.pop();var Q=!1;for(M=1;M=0&&ee>=M-1;ee--)if(ee+1=0;C--)if(y[C]!=D[C])return!1;for(C=y.length-1;C>=0;C--)if(!F(I[k=y[C]],v[k],T))return!1;return typeof I==typeof v}(I,v,T))};function N(I){return null==I}function O(I){return!(!I||"object"!=typeof I||"number"!=typeof I.length||"function"!=typeof I.copy||"function"!=typeof I.slice||I.length>0&&"number"!=typeof I[0])}},function(xe,z){function L(ae){var H=[];for(var Z in ae)H.push(Z);return H}(xe.exports="function"==typeof Object.keys?Object.keys:L).shim=L},function(xe,z){var L="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function ae(Z){return"[object Arguments]"==Object.prototype.toString.call(Z)}function H(Z){return Z&&"object"==typeof Z&&"number"==typeof Z.length&&Object.prototype.hasOwnProperty.call(Z,"callee")&&!Object.prototype.propertyIsEnumerable.call(Z,"callee")||!1}(z=xe.exports=L?ae:H).supported=ae,z.unsupported=H},function(xe,z){"use strict";var L=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,H=function(N){return"function"==typeof Array.isArray?Array.isArray(N):"[object Array]"===ae.call(N)},Z=function(N){if(!N||"[object Object]"!==ae.call(N))return!1;var I,O=L.call(N,"constructor"),S=N.constructor&&N.constructor.prototype&&L.call(N.constructor.prototype,"isPrototypeOf");if(N.constructor&&!O&&!S)return!1;for(I in N);return typeof I>"u"||L.call(N,I)};xe.exports=function F(){var N,O,S,I,v,T,C=arguments[0],k=1,y=arguments.length,D=!1;for("boolean"==typeof C?(D=C,C=arguments[1]||{},k=2):("object"!=typeof C&&"function"!=typeof C||null==C)&&(C={});k0?I:void 0},diff:function(N,O){"object"!=typeof N&&(N={}),"object"!=typeof O&&(O={});var S=Object.keys(N).concat(Object.keys(O)).reduce(function(I,v){return ae(N[v],O[v])||(I[v]=void 0===O[v]?null:O[v]),I},{});return Object.keys(S).length>0?S:void 0},transform:function(N,O,S){if("object"!=typeof N)return O;if("object"==typeof O){if(!S)return O;var I=Object.keys(O).reduce(function(v,T){return void 0===N[T]&&(v[T]=O[T]),v},{});return Object.keys(I).length>0?I:void 0}}},iterator:function(N){return new F(N)},length:function(N){return"number"==typeof N.delete?N.delete:"number"==typeof N.retain?N.retain:"string"==typeof N.insert?N.insert.length:1}};function F(N){this.ops=N,this.index=0,this.offset=0}F.prototype.hasNext=function(){return this.peekLength()<1/0},F.prototype.next=function(N){N||(N=1/0);var O=this.ops[this.index];if(O){var S=this.offset,I=Z.length(O);if(N>=I-S?(N=I-S,this.index+=1,this.offset=0):this.offset+=N,"number"==typeof O.delete)return{delete:N};var v={};return O.attributes&&(v.attributes=O.attributes),"number"==typeof O.retain?v.retain=N:v.insert="string"==typeof O.insert?O.insert.substr(S,N):O.insert,v}return{retain:1/0}},F.prototype.peek=function(){return this.ops[this.index]},F.prototype.peekLength=function(){return this.ops[this.index]?Z.length(this.ops[this.index])-this.offset:1/0},F.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},xe.exports=Z},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pe){return typeof pe}:function(pe){return pe&&"function"==typeof Symbol&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},H=function(_e,he){if(Array.isArray(_e))return _e;if(Symbol.iterator in Object(_e))return function pe(_e,he){var de=[],ce=!0,ie=!1,J=void 0;try{for(var Ie,oe=_e[Symbol.iterator]();!(ce=(Ie=oe.next()).done)&&(de.push(Ie.value),!he||de.length!==he);ce=!0);}catch(re){ie=!0,J=re}finally{try{!ce&&oe.return&&oe.return()}finally{if(ie)throw J}}return de}(_e,he);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function pe(_e,he){for(var de=0;de=ie&&!ye.endsWith("\n")&&(ce=!0),de.scroll.insertAt(J,ye);var Be=de.scroll.line(J),Me=H(Be,2),Ue=Me[0],Bn=Me[1],at=(0,Y.default)({},(0,D.bubbleFormats)(Ue));if(Ue instanceof w.default){var Fe=Ue.descendant(v.default.Leaf,Bn),Re=H(Fe,1);at=(0,Y.default)(at,(0,D.bubbleFormats)(Re[0]))}re=S.default.attributes.diff(at,re)||{}}else if("object"===ae(oe.insert)){var rt=Object.keys(oe.insert)[0];if(null==rt)return J;de.scroll.insertAt(J,rt,oe.insert[rt])}ie+=Ie}return Object.keys(re).forEach(function(ot){de.scroll.formatAt(J,Ie,ot,re[ot])}),J+Ie},0),he.reduce(function(J,oe){return"number"==typeof oe.delete?(de.scroll.deleteAt(J,oe.delete),J):J+(oe.retain||oe.insert.length||1)},0),this.scroll.batch=!1,this.scroll.optimize(),this.update(he)}},{key:"deleteText",value:function(he,de){return this.scroll.deleteAt(he,de),this.update((new N.default).retain(he).delete(de))}},{key:"formatLine",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(ie).forEach(function(J){var oe=ce.scroll.lines(he,Math.max(de,1)),Ie=de;oe.forEach(function(re){var ye=re.length();if(re instanceof C.default){var Be=he-re.offset(ce.scroll),Me=re.newlineIndex(Be+Ie)-Be+1;re.formatAt(Be,Me,J,ie[J])}else re.format(J,ie[J]);Ie-=ye})}),this.scroll.optimize(),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"formatText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de,J,ie[J])}),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"getContents",value:function(he,de){return this.delta.slice(he,he+de)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(he,de){return he.concat(de.delta())},new N.default)}},{key:"getFormat",value:function(he){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ce=[],ie=[];0===de?this.scroll.path(he).forEach(function(oe){var re=H(oe,1)[0];re instanceof w.default?ce.push(re):re instanceof v.default.Leaf&&ie.push(re)}):(ce=this.scroll.lines(he,de),ie=this.scroll.descendants(v.default.Leaf,he,de));var J=[ce,ie].map(function(oe){if(0===oe.length)return{};for(var Ie=(0,D.bubbleFormats)(oe.shift());Object.keys(Ie).length>0;){var re=oe.shift();if(null==re)return Ie;Ie=U((0,D.bubbleFormats)(re),Ie)}return Ie});return Y.default.apply(Y.default,J)}},{key:"getText",value:function(he,de){return this.getContents(he,de).filter(function(ce){return"string"==typeof ce.insert}).map(function(ce){return ce.insert}).join("")}},{key:"insertEmbed",value:function(he,de,ce){return this.scroll.insertAt(he,de,ce),this.update((new N.default).retain(he).insert(function R(pe,_e,he){return _e in pe?Object.defineProperty(pe,_e,{value:he,enumerable:!0,configurable:!0,writable:!0}):pe[_e]=he,pe}({},de,ce)))}},{key:"insertText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return de=de.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(he,de),Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de.length,J,ie[J])}),this.update((new N.default).retain(he).insert(de,(0,$.default)(ie)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var he=this.scroll.children.head;return he.length()<=1&&0==Object.keys(he.formats()).length}},{key:"removeFormat",value:function(he,de){var ce=this.getText(he,de),ie=this.scroll.line(he+de),J=H(ie,2),oe=J[0],Ie=J[1],re=0,ye=new N.default;null!=oe&&(re=oe instanceof C.default?oe.newlineIndex(Ie)-Ie+1:oe.length()-Ie,ye=oe.delta().slice(Ie,Ie+re-1).insert("\n"));var Me=this.getContents(he,de+re).diff((new N.default).insert(ce).concat(ye)),Ue=(new N.default).retain(he).concat(Me);return this.applyDelta(Ue)}},{key:"update",value:function(he){var oe,Ie,re,ye,Be,Me,ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,J=this.delta;return 1===ce.length&&"characterData"===ce[0].type&&v.default.find(ce[0].target)?(oe=v.default.find(ce[0].target),Ie=(0,D.bubbleFormats)(oe),re=oe.offset(this.scroll),ye=ce[0].oldValue.replace(y.default.CONTENTS,""),Be=(new N.default).insert(ye),Me=(new N.default).insert(oe.value()),he=(new N.default).retain(re).concat(Be.diff(Me,ie)).reduce(function(Bn,at){return at.insert?Bn.insert(at.insert,Ie):Bn.push(at)},new N.default),this.delta=J.compose(he)):(this.delta=this.getDelta(),(!he||!(0,B.default)(J.compose(he),this.delta))&&(he=J.diff(this.delta,ie))),he}}]),pe}();function U(pe,_e){return Object.keys(_e).reduce(function(he,de){return null==pe[de]||(_e[de]===pe[de]?he[de]=_e[de]:Array.isArray(_e[de])?_e[de].indexOf(pe[de])<0&&(he[de]=_e[de].concat([pe[de]])):he[de]=[_e[de],pe[de]]),he},{})}z.default=X},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Code=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R=R+se)){var pe=this.newlineIndex(R,!0)+1,_e=ue-pe+1,he=this.isolate(pe,_e),de=he.next;he.format(X,U),de instanceof Y&&de.formatAt(0,R-pe+se-_e,X,U)}}}},{key:"insertAt",value:function(R,se,X){if(null==X){var U=this.descendant(y.default,R),ue=ae(U,2);ue[0].insertAt(ue[1],se)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?R:R+1}},{key:"newlineIndex",value:function(R){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,R).lastIndexOf("\n");var X=this.domNode.textContent.slice(R).indexOf("\n");return X>-1?R+X:-1}},{key:"optimize",value:function(){this.domNode.textContent.endsWith("\n")||this.appendChild(S.default.create("text","\n")),Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"optimize",this).call(this);var R=this.next;null!=R&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(),R.moveChildren(this),R.remove())}},{key:"replace",value:function(R){Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(se){var X=S.default.find(se);null==X?se.parentNode.removeChild(se):X instanceof S.default.Embed?X.remove():X.unwrap()})}}],[{key:"create",value:function(R){var se=Z(Y.__proto__||Object.getPrototypeOf(Y),"create",this).call(this,R);return se.setAttribute("spellcheck",!1),se}},{key:"formats",value:function(){return!0}}]),Y}(v.default);B.blotName="code-block",B.tagName="PRE",B.TAB=" ",z.Code=ee,z.default=B},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BlockEmbed=z.bubbleFormats=void 0;var ae=function(){function X(U,ue){for(var pe=0;pe0&&(pe1&&void 0!==arguments[1]&&arguments[1];if(_e&&(0===pe||pe>=this.length()-1)){var he=this.clone();return 0===pe?(this.parent.insertBefore(he,this),this):(this.parent.insertBefore(he,this.next),he)}var de=H(U.prototype.__proto__||Object.getPrototypeOf(U.prototype),"split",this).call(this,pe,_e);return this.cache={},de}}]),U}(I.default.Block);function se(X){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==X||("function"==typeof X.formats&&(U=(0,F.default)(U,X.formats())),null==X.parent||"scroll"==X.parent.blotName||X.parent.statics.scope!==X.statics.scope)?U:se(X.parent,U)}R.blotName="block",R.tagName="P",R.defaultChild="break",R.allowedChildren=[D.default,k.default,M.default],z.bubbleFormats=se,z.BlockEmbed=Q,z.default=R},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y0){var $=this.parent.isolate(this.offset(),this.length());this.moveChildren($),$.wrap(this)}}}],[{key:"compare",value:function($,ee){var B=w.order.indexOf($),ne=w.order.indexOf(ee);return B>=0||ne>=0?B-ne:$===ee?0:$1?N-1:0),S=1;S"u"&&(C=!0),typeof k>"u"&&(k=1/0),function ee(B,ne){if(null===B)return null;if(0===ne)return B;var Y,Q;if("object"!=typeof B)return B;if(B instanceof ae)Y=new ae;else if(B instanceof H)Y=new H;else if(B instanceof Z)Y=new Z(function(re,ye){B.then(function(Be){re(ee(Be,ne-1))},function(Be){ye(ee(Be,ne-1))})});else if(F.__isArray(B))Y=[];else if(F.__isRegExp(B))Y=new RegExp(B.source,v(B)),B.lastIndex&&(Y.lastIndex=B.lastIndex);else if(F.__isDate(B))Y=new Date(B.getTime());else{if($&&Buffer.isBuffer(B))return Y=new Buffer(B.length),B.copy(Y),Y;B instanceof Error?Y=Object.create(B):typeof y>"u"?(Q=Object.getPrototypeOf(B),Y=Object.create(Q)):(Y=Object.create(y),Q=y)}if(C){var R=w.indexOf(B);if(-1!=R)return M[R];w.push(B),M.push(Y)}if(B instanceof ae)for(var se=B.keys();!(X=se.next()).done;){var U=ee(X.value,ne-1),ue=ee(B.get(X.value),ne-1);Y.set(U,ue)}if(B instanceof H)for(var pe=B.keys();;){var X;if((X=pe.next()).done)break;var _e=ee(X.value,ne-1);Y.add(_e)}for(var he in B){var de;Q&&(de=Object.getOwnPropertyDescriptor(Q,he)),(!de||null!=de.set)&&(Y[he]=ee(B[he],ne-1))}if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(B);for(he=0;he1&&void 0!==arguments[1]?arguments[1]:{};(function L(H,Z){if(!(H instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,H),this.quill=Z,this.options=F};ae.DEFAULTS={},z.default=ae},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Range=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R1&&void 0!==arguments[1]?arguments[1]:0;w(this,ne),this.index=Y,this.length=Q},ee=function(){function ne(Y,Q){var R=this;w(this,ne),this.emitter=Q,this.scroll=Y,this.composing=!1,this.root=this.scroll.domNode,this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){R.composing=!1}),this.cursor=F.default.create("cursor",this),this.lastRange=this.savedRange=new $(0,0),["keyup","mouseup","mouseleave","touchend","touchleave","focus","blur"].forEach(function(se){R.root.addEventListener(se,function(){setTimeout(R.update.bind(R,T.default.sources.USER),100)})}),this.emitter.on(T.default.events.EDITOR_CHANGE,function(se,X){se===T.default.events.TEXT_CHANGE&&X.length()>0&&R.update(T.default.sources.SILENT)}),this.emitter.on(T.default.events.SCROLL_BEFORE_UPDATE,function(){var se=R.getNativeRange();null!=se&&se.start.node!==R.cursor.textNode&&R.emitter.once(T.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(se.start.node,se.start.offset,se.end.node,se.end.offset)}catch{}})}),this.update(T.default.sources.SILENT)}return H(ne,[{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Q,R){if(null==this.scroll.whitelist||this.scroll.whitelist[Q]){this.scroll.update();var se=this.getNativeRange();if(null!=se&&se.native.collapsed&&!F.default.query(Q,F.default.Scope.BLOCK)){if(se.start.node!==this.cursor.textNode){var X=F.default.find(se.start.node,!1);if(null==X)return;if(X instanceof F.default.Leaf){var U=X.split(se.start.offset);X.parent.insertBefore(this.cursor,U)}else X.insertBefore(this.cursor,se.start.node);this.cursor.attach()}this.cursor.format(Q,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Q){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,se=this.scroll.length();Q=Math.min(Q,se-1),R=Math.min(Q+R,se-1)-Q;var X=void 0,U=void 0,ue=this.scroll.leaf(Q),pe=ae(ue,2),_e=pe[0],he=pe[1];if(null==_e)return null;var de=_e.position(he,!0),ce=ae(de,2);U=ce[0],he=ce[1];var ie=document.createRange();if(R>0){ie.setStart(U,he);var J=this.scroll.leaf(Q+R),oe=ae(J,2);if(null==(_e=oe[0]))return null;var Ie=_e.position(he=oe[1],!0),re=ae(Ie,2);ie.setEnd(U=re[0],he=re[1]),X=ie.getBoundingClientRect()}else{var ye="left",Be=void 0;U instanceof Text?(he0&&(ye="right")),X={height:Be.height,left:Be[ye],width:0,top:Be.top}}var Me=this.root.parentNode.getBoundingClientRect();return{left:X.left-Me.left,right:X.left+X.width-Me.left,top:X.top-Me.top,bottom:X.top+X.height-Me.top,height:X.height,width:X.width}}},{key:"getNativeRange",value:function(){var Q=document.getSelection();if(null==Q||Q.rangeCount<=0)return null;var R=Q.getRangeAt(0);if(null==R||!B(this.root,R.startContainer)||!R.collapsed&&!B(this.root,R.endContainer))return null;var se={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[se.start,se.end].forEach(function(X){for(var U=X.node,ue=X.offset;!(U instanceof Text)&&U.childNodes.length>0;)if(U.childNodes.length>ue)U=U.childNodes[ue],ue=0;else{if(U.childNodes.length!==ue)break;ue=(U=U.lastChild)instanceof Text?U.data.length:U.childNodes.length+1}X.node=U,X.offset=ue}),M.info("getNativeRange",se),se}},{key:"getRange",value:function(){var Q=this,R=this.getNativeRange();if(null==R)return[null,null];var se=[[R.start.node,R.start.offset]];R.native.collapsed||se.push([R.end.node,R.end.offset]);var X=se.map(function(pe){var _e=ae(pe,2),he=_e[0],de=_e[1],ce=F.default.find(he,!0),ie=ce.offset(Q.scroll);return 0===de?ie:ce instanceof F.default.Container?ie+ce.length():ie+ce.index(he,de)}),U=Math.min.apply(Math,D(X)),ue=Math.max.apply(Math,D(X));return ue=Math.min(ue,this.scroll.length()-1),[new $(U,ue-U),R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"scrollIntoView",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastRange;if(null!=Q){var R=this.getBounds(Q.index,Q.length);if(null!=R)if(this.root.offsetHeight2&&void 0!==arguments[2]?arguments[2]:Q,X=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,U=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(M.info("setNativeRange",Q,R,se,X),null==Q||null!=this.root.parentNode&&null!=Q.parentNode&&null!=se.parentNode){var ue=document.getSelection();if(null!=ue)if(null!=Q){this.hasFocus()||this.root.focus();var pe=(this.getNativeRange()||{}).native;if(null==pe||U||Q!==pe.startContainer||R!==pe.startOffset||se!==pe.endContainer||X!==pe.endOffset){var _e=document.createRange();_e.setStart(Q,R),_e.setEnd(se,X),ue.removeAllRanges(),ue.addRange(_e)}}else ue.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Q){var U,ue,pe,R=this,se=arguments.length>1&&void 0!==arguments[1]&&arguments[1],X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.default.sources.API;"string"==typeof se&&(X=se,se=!1),M.info("setRange",Q),null!=Q?(U=Q.collapsed?[Q.index]:[Q.index,Q.index+Q.length],ue=[],pe=R.scroll.length(),U.forEach(function(_e,he){_e=Math.min(pe-1,_e);var ce=R.scroll.leaf(_e),ie=ae(ce,2),oe=ie[1],Ie=ie[0].position(oe,0!==he),re=ae(Ie,2);ue.push(re[0],oe=re[1])}),ue.length<2&&(ue=ue.concat(ue)),R.setNativeRange.apply(R,D(ue).concat([se]))):this.setNativeRange(null),this.update(X)}},{key:"update",value:function(){var R,Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.default.sources.USER,se=this.lastRange,X=this.getRange(),U=ae(X,2);if(this.lastRange=U[0],R=U[1],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,I.default)(se,this.lastRange)){var ue;!this.composing&&null!=R&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var _e,pe=[T.default.events.SELECTION_CHANGE,(0,O.default)(this.lastRange),(0,O.default)(se),Q];(ue=this.emitter).emit.apply(ue,[T.default.events.EDITOR_CHANGE].concat(pe)),Q!==T.default.sources.SILENT&&(_e=this.emitter).emit.apply(_e,pe)}}}]),ne}();function B(ne,Y){return Y instanceof Text&&(Y=Y.parentNode),ne.contains(Y)}z.Range=$,z.default=ee},function(xe,z){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var L=function(){function Z(F,N){for(var O=0;O0)||_e instanceof I.BlockEmbed||ie instanceof I.BlockEmbed||(ie instanceof w.default&&ie.deleteAt(ie.length()-1,1),_e.moveChildren(ie,ie.children.head instanceof C.default?null:ie.children.head),_e.remove()),this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(X,U,ue,pe){null!=this.whitelist&&!this.whitelist[ue]||(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,X,U,ue,pe),this.optimize())}},{key:"insertAt",value:function(X,U,ue){if(null==ue||null==this.whitelist||this.whitelist[U]){if(X>=this.length())if(null==ue||null==N.default.query(U,N.default.Scope.BLOCK)){var pe=N.default.create(this.statics.defaultChild);this.appendChild(pe),null==ue&&U.endsWith("\n")&&(U=U.slice(0,-1)),pe.insertAt(0,U,ue)}else{var _e=N.default.create(U,ue);this.appendChild(_e)}else Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,X,U,ue);this.optimize()}}},{key:"insertBefore",value:function(X,U){if(X.statics.scope===N.default.Scope.INLINE_BLOT){var ue=N.default.create(this.statics.defaultChild);ue.appendChild(X),X=ue}Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,X,U)}},{key:"leaf",value:function(X){return this.path(X).pop()||[null,-1]}},{key:"line",value:function(X){return X===this.length()?this.line(X-1):this.descendant(ne,X)}},{key:"lines",value:function(){return function pe(_e,he,de){var ce=[],ie=de;return _e.children.forEachAt(he,de,function(J,oe,Ie){ne(J)?ce.push(J):J instanceof N.default.Container&&(ce=ce.concat(pe(J,oe,ie))),ie-=Ie}),ce}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!0!==this.batch&&(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,X),X.length>0&&this.emitter.emit(S.default.events.SCROLL_OPTIMIZE,X))}},{key:"path",value:function(X){return Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,X).slice(1)}},{key:"update",value:function(X){if(!0!==this.batch){var U=S.default.sources.USER;"string"==typeof X&&(U=X),Array.isArray(X)||(X=this.observer.takeRecords()),X.length>0&&this.emitter.emit(S.default.events.SCROLL_BEFORE_UPDATE,U,X),Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,X.concat([])),X.length>0&&this.emitter.emit(S.default.events.SCROLL_UPDATE,U,X)}}}]),R}(N.default.Scroll);Y.blotName="scroll",Y.className="ql-editor",Y.tagName="DIV",Y.defaultChild="block",Y.allowedChildren=[v.default,I.BlockEmbed,y.default],z.default=Y},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.matchText=z.matchSpacing=z.matchNewline=z.matchBlot=z.matchAttributor=z.default=void 0;var ae=function(Re,Je){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return function Fe(Re,Je){var rt=[],ot=!0,Dt=!1,Xt=void 0;try{for(var ni,rn=Re[Symbol.iterator]();!(ot=(ni=rn.next()).done)&&(rt.push(ni.value),!Je||rt.length!==Je);ot=!0);}catch(Jo){Dt=!0,Xt=Jo}finally{try{!ot&&rn.return&&rn.return()}finally{if(Dt)throw Xt}}return rt}(Re,Je);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function Fe(Re,Je){for(var rt=0;rt0&&(Re=Re.compose((new F.default).retain(Re.length(),Je))),parseFloat(rt.textIndent||0)>0&&(Re=(new F.default).insert("\t").concat(Re)),Re}],["b",oe.bind(oe,"bold")],["i",oe.bind(oe,"italic")],["style",function Be(){return new F.default}]],pe=[y.AlignAttribute,M.DirectionAttribute].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),_e=[y.AlignStyle,D.BackgroundStyle,w.ColorStyle,M.DirectionStyle,$.FontStyle,ee.SizeStyle].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),he=function(Fe){function Re(Je,rt){!function Q(Fe,Re){if(!(Fe instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Re);var ot=function R(Fe,Re){if(!Fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Re||"object"!=typeof Re&&"function"!=typeof Re?Fe:Re}(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Je,rt));return ot.quill.root.addEventListener("paste",ot.onPaste.bind(ot)),ot.container=ot.quill.addContainer("ql-clipboard"),ot.container.setAttribute("contenteditable",!0),ot.container.setAttribute("tabindex",-1),ot.matchers=[],ue.concat(ot.options.matchers).forEach(function(Dt){ot.addMatcher.apply(ot,function Y(Fe){if(Array.isArray(Fe)){for(var Re=0,Je=Array(Fe.length);Re2&&void 0!==arguments[2]?arguments[2]:I.default.sources.API;if("string"==typeof rt)return this.quill.setContents(this.convert(rt),ot);var Xt=this.convert(ot);return this.quill.updateContents((new F.default).retain(rt).concat(Xt),Dt)}},{key:"onPaste",value:function(rt){var ot=this;if(!rt.defaultPrevented&&this.quill.isEnabled()){var Dt=this.quill.getSelection(),Xt=(new F.default).retain(Dt.index),rn=this.quill.scrollingContainer.scrollTop;this.container.focus(),setTimeout(function(){ot.quill.selection.update(I.default.sources.SILENT),Xt=Xt.concat(ot.convert()).delete(Dt.length),ot.quill.updateContents(Xt,I.default.sources.USER),ot.quill.setSelection(Xt.length()-Dt.length,I.default.sources.SILENT),ot.quill.scrollingContainer.scrollTop=rn,ot.quill.selection.scrollIntoView()},1)}}},{key:"prepareMatching",value:function(){var rt=this,ot=[],Dt=[];return this.matchers.forEach(function(Xt){var rn=ae(Xt,2),ni=rn[0],Jo=rn[1];switch(ni){case Node.TEXT_NODE:Dt.push(Jo);break;case Node.ELEMENT_NODE:ot.push(Jo);break;default:[].forEach.call(rt.container.querySelectorAll(ni),function(an){an[U]=an[U]||[],an[U].push(Jo)})}}),[ot,Dt]}}]),Re}(k.default);function de(Fe){if(Fe.nodeType!==Node.ELEMENT_NODE)return{};var Re="__ql-computed-style";return Fe[Re]||(Fe[Re]=window.getComputedStyle(Fe))}function ce(Fe,Re){for(var Je="",rt=Fe.ops.length-1;rt>=0&&Je.length-1}function J(Fe,Re,Je){return Fe.nodeType===Fe.TEXT_NODE?Je.reduce(function(rt,ot){return ot(Fe,rt)},new F.default):Fe.nodeType===Fe.ELEMENT_NODE?[].reduce.call(Fe.childNodes||[],function(rt,ot){var Dt=J(ot,Re,Je);return ot.nodeType===Fe.ELEMENT_NODE&&(Dt=Re.reduce(function(Xt,rn){return rn(ot,Xt)},Dt),Dt=(ot[U]||[]).reduce(function(Xt,rn){return rn(ot,Xt)},Dt)),rt.concat(Dt)},new F.default):new F.default}function oe(Fe,Re,Je){return Je.compose((new F.default).retain(Je.length(),ne({},Fe,!0)))}function Ie(Fe,Re){var Je=O.default.Attributor.Attribute.keys(Fe),rt=O.default.Attributor.Class.keys(Fe),ot=O.default.Attributor.Style.keys(Fe),Dt={};return Je.concat(rt).concat(ot).forEach(function(Xt){var rn=O.default.query(Xt,O.default.Scope.ATTRIBUTE);null!=rn&&(Dt[rn.attrName]=rn.value(Fe),Dt[rn.attrName])||(null!=pe[Xt]&&(Dt[(rn=pe[Xt]).attrName]=rn.value(Fe)),null!=_e[Xt]&&(Dt[(rn=_e[Xt]).attrName]=rn.value(Fe)))}),Object.keys(Dt).length>0&&(Re=Re.compose((new F.default).retain(Re.length(),Dt))),Re}function re(Fe,Re){var Je=O.default.query(Fe);if(null==Je)return Re;if(Je.prototype instanceof O.default.Embed){var rt={},ot=Je.value(Fe);null!=ot&&(rt[Je.blotName]=ot,Re=(new F.default).insert(rt,Je.formats(Fe)))}else if("function"==typeof Je.formats){var Dt=ne({},Je.blotName,Je.formats(Fe));Re=Re.compose((new F.default).retain(Re.length(),Dt))}return Re}function Me(Fe,Re){return ie(Fe)&&!ce(Re,"\n")&&Re.insert("\n"),Re}function Ue(Fe,Re){if(ie(Fe)&&null!=Fe.nextElementSibling&&!ce(Re,"\n\n")){var Je=Fe.offsetHeight+parseFloat(de(Fe).marginTop)+parseFloat(de(Fe).marginBottom);Fe.nextElementSibling.offsetTop>Fe.offsetTop+1.5*Je&&Re.insert("\n")}return Re}function at(Fe,Re){var Je=Fe.data;if("O:P"===Fe.parentNode.tagName)return Re.insert(Je.trim());if(!de(Fe.parentNode).whiteSpace.startsWith("pre")){var rt=function(Dt,Xt){return(Xt=Xt.replace(/[^\u00a0]/g,"")).length<1&&Dt?" ":Xt};Je=(Je=Je.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,rt.bind(rt,!0)),(null==Fe.previousSibling&&ie(Fe.parentNode)||null!=Fe.previousSibling&&ie(Fe.previousSibling))&&(Je=Je.replace(/^\s+/,rt.bind(rt,!1))),(null==Fe.nextSibling&&ie(Fe.parentNode)||null!=Fe.nextSibling&&ie(Fe.nextSibling))&&(Je=Je.replace(/\s+$/,rt.bind(rt,!1)))}return Re.insert(Je)}he.DEFAULTS={matchers:[]},z.default=he,z.matchAttributor=Ie,z.matchBlot=re,z.matchNewline=Me,z.matchSpacing=Ue,z.matchText=at},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.AlignStyle=z.AlignClass=z.AlignAttribute=void 0;var H=function Z(I){return I&&I.__esModule?I:{default:I}}(L(2));var F={scope:H.default.Scope.BLOCK,whitelist:["right","center","justify"]},N=new H.default.Attributor.Attribute("align","align",F),O=new H.default.Attributor.Class("align","ql-align",F),S=new H.default.Attributor.Style("align","text-align",F);z.AlignAttribute=N,z.AlignClass=O,z.AlignStyle=S},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.BackgroundStyle=z.BackgroundClass=void 0;var H=function F(S){return S&&S.__esModule?S:{default:S}}(L(2)),Z=L(47);var N=new H.default.Attributor.Class("background","ql-bg",{scope:H.default.Scope.INLINE}),O=new Z.ColorAttributor("background","background-color",{scope:H.default.Scope.INLINE});z.BackgroundClass=N,z.BackgroundStyle=O},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.ColorStyle=z.ColorClass=z.ColorAttributor=void 0;var ae=function(){function k(y,D){for(var w=0;wY&&this.stack.undo.length>0){var Q=this.stack.undo.pop();ne=ne.compose(Q.undo),ee=Q.redo.compose(ee)}else this.lastRecorded=Y;this.stack.undo.push({redo:ee,undo:ne}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ee){this.stack.undo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)}),this.stack.redo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),M}(I(L(39)).default);function D(w){var M=w.reduce(function(ee,B){return ee+(B.delete||0)},0),$=w.length()-M;return function y(w){var M=w.ops[w.ops.length-1];return null!=M&&(null!=M.insert?"string"==typeof M.insert&&M.insert.endsWith("\n"):null!=M.attributes&&Object.keys(M.attributes).some(function($){return null!=Z.default.query($,Z.default.Scope.BLOCK)}))}(w)&&($-=1),$}k.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},z.default=k,z.getLastChangeIndex=D},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},H=function(oe,Ie){if(Array.isArray(oe))return oe;if(Symbol.iterator in Object(oe))return function J(oe,Ie){var re=[],ye=!0,Be=!1,Me=void 0;try{for(var Bn,Ue=oe[Symbol.iterator]();!(ye=(Bn=Ue.next()).done)&&(re.push(Bn.value),!Ie||re.length!==Ie);ye=!0);}catch(at){Be=!0,Me=at}finally{try{!ye&&Ue.return&&Ue.return()}finally{if(Be)throw Me}}return re}(oe,Ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function J(oe,Ie){for(var re=0;re1&&void 0!==arguments[1]?arguments[1]:{},Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Me=ie(re);if(null==Me||null==Me.key)return se.warn("Attempted to add invalid keyboard binding",Me);"function"==typeof ye&&(ye={handler:ye}),"function"==typeof Be&&(Be={handler:Be}),Me=(0,v.default)(Me,ye,Be),this.bindings[Me.key]=this.bindings[Me.key]||[],this.bindings[Me.key].push(Me)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(ye){if(!ye.defaultPrevented){var Me=(re.bindings[ye.which||ye.keyCode]||[]).filter(function(jn){return oe.match(ye,jn)});if(0!==Me.length){var Ue=re.quill.getSelection();if(null!=Ue&&re.quill.hasFocus()){var Bn=re.quill.scroll.line(Ue.index),at=H(Bn,2),Fe=at[0],Re=at[1],Je=re.quill.scroll.leaf(Ue.index),rt=H(Je,2),ot=rt[0],Dt=rt[1],Xt=0===Ue.length?[ot,Dt]:re.quill.scroll.leaf(Ue.index+Ue.length),rn=H(Xt,2),ni=rn[0],Jo=rn[1],an=ot instanceof y.default.Text?ot.value().slice(0,Dt):"",As=ni instanceof y.default.Text?ni.value().slice(Jo):"",bo={collapsed:0===Ue.length,empty:0===Ue.length&&Fe.length()<=1,format:re.quill.getFormat(Ue),offset:Re,prefix:an,suffix:As};Me.some(function(jn){if(null!=jn.collapsed&&jn.collapsed!==bo.collapsed||null!=jn.empty&&jn.empty!==bo.empty||null!=jn.offset&&jn.offset!==bo.offset)return!1;if(Array.isArray(jn.format)){if(jn.format.every(function(yo){return null==bo.format[yo]}))return!1}else if("object"===ae(jn.format)&&!Object.keys(jn.format).every(function(yo){return!0===jn.format[yo]?null!=bo.format[yo]:!1===jn.format[yo]?null==bo.format[yo]:(0,S.default)(jn.format[yo],bo.format[yo])}))return!1;return!(null!=jn.prefix&&!jn.prefix.test(bo.prefix)||null!=jn.suffix&&!jn.suffix.test(bo.suffix))&&!0!==jn.handler.call(re,Ue,bo)})&&ye.preventDefault()}}}})}}]),oe}(B.default);function ue(J,oe){if(0!==J.index){var Ie=this.quill.scroll.line(J.index),re=H(Ie,1),Be={};if(0===oe.offset){var Me=re[0].formats(),Ue=this.quill.getFormat(J.index-1,1);Be=C.default.attributes.diff(Me,Ue)||{}}this.quill.deleteText(J.index-1,1,w.default.sources.USER),Object.keys(Be).length>0&&this.quill.formatLine(J.index-1,1,Be,w.default.sources.USER),this.quill.selection.scrollIntoView()}}function pe(J){J.index>=this.quill.getLength()-1||this.quill.deleteText(J.index,1,w.default.sources.USER)}function _e(J){this.quill.deleteText(J,w.default.sources.USER),this.quill.setSelection(J.index,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}function he(J,oe){var Ie=this;J.length>0&&this.quill.scroll.deleteAt(J.index,J.length);var re=Object.keys(oe.format).reduce(function(ye,Be){return y.default.query(Be,y.default.Scope.BLOCK)&&!Array.isArray(oe.format[Be])&&(ye[Be]=oe.format[Be]),ye},{});this.quill.insertText(J.index,"\n",re,w.default.sources.USER),this.quill.selection.scrollIntoView(),Object.keys(oe.format).forEach(function(ye){null==re[ye]&&(Array.isArray(oe.format[ye])||"link"!==ye&&Ie.quill.format(ye,oe.format[ye],w.default.sources.USER))})}function de(J){return{key:U.keys.TAB,shiftKey:!J,format:{"code-block":!0},handler:function(Ie){var re=y.default.query("code-block"),ye=Ie.index,Be=Ie.length,Me=this.quill.scroll.descendant(re,ye),Ue=H(Me,2),Bn=Ue[0],at=Ue[1];if(null!=Bn){var Fe=this.quill.scroll.offset(Bn),Re=Bn.newlineIndex(at,!0)+1,Je=Bn.newlineIndex(Fe+at+Be),rt=Bn.domNode.textContent.slice(Re,Je).split("\n");at=0,rt.forEach(function(ot,Dt){J?(Bn.insertAt(Re+at,re.TAB),at+=re.TAB.length,0===Dt?ye+=re.TAB.length:Be+=re.TAB.length):ot.startsWith(re.TAB)&&(Bn.deleteAt(Re+at,re.TAB.length),at-=re.TAB.length,0===Dt?ye-=re.TAB.length:Be-=re.TAB.length),at+=ot.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(ye,Be,w.default.sources.SILENT)}}}}function ce(J){return{key:J[0].toUpperCase(),shortKey:!0,handler:function(Ie,re){this.quill.format(J,!re.format[J],w.default.sources.USER)}}}function ie(J){if("string"==typeof J||"number"==typeof J)return ie({key:J});if("object"===(typeof J>"u"?"undefined":ae(J))&&(J=(0,N.default)(J,!1)),"string"==typeof J.key)if(null!=U.keys[J.key.toUpperCase()])J.key=U.keys[J.key.toUpperCase()];else{if(1!==J.key.length)return null;J.key=J.key.toUpperCase().charCodeAt(0)}return J}U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:ce("bold"),italic:ce("italic"),underline:ce("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,format:["blockquote","indent","list"],offset:0,handler:function(oe,Ie){null!=Ie.format.indent?this.quill.format("indent","-1",w.default.sources.USER):null!=Ie.format.blockquote?this.quill.format("blockquote",!1,w.default.sources.USER):null!=Ie.format.list&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(oe){this.quill.deleteText(oe.index-1,1,w.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(oe,Ie){Ie.collapsed||this.quill.scroll.deleteAt(oe.index,oe.length),this.quill.insertText(oe.index,"\t",w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(oe,Ie){this.quill.format("list",!1,w.default.sources.USER),Ie.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n");var Ie=this.quill.scroll.line(oe.index+1);H(Ie,1)[0].format("list","unchecked"),this.quill.update(w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n"),this.quill.formatText(oe.index+1,1,"header",!1,w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^(1\.|-)$/,handler:function(oe,Ie){var re=Ie.prefix.length;this.quill.scroll.deleteAt(oe.index-re,re),this.quill.formatLine(oe.index-re,1,"list",1===re?"bullet":"ordered",w.default.sources.USER),this.quill.setSelection(oe.index-re,w.default.sources.SILENT)}}}},z.default=U},function(xe,z,L){"use strict";var H=an(L(1)),Z=L(45),F=L(48),N=L(54),S=an(L(55)),v=an(L(56)),T=L(57),C=an(T),k=L(46),y=L(47),D=L(49),w=L(50),$=an(L(58)),B=an(L(59)),Y=an(L(60)),R=an(L(61)),X=an(L(62)),ue=an(L(63)),_e=an(L(64)),de=an(L(65)),ce=L(28),ie=an(ce),oe=an(L(66)),re=an(L(67)),Be=an(L(68)),Ue=an(L(69)),at=an(L(102)),Re=an(L(104)),rt=an(L(105)),Dt=an(L(106)),rn=an(L(107)),Jo=an(L(109));function an(As){return As&&As.__esModule?As:{default:As}}H.default.register({"attributors/attribute/direction":F.DirectionAttribute,"attributors/class/align":Z.AlignClass,"attributors/class/background":k.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":F.DirectionClass,"attributors/class/font":D.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":Z.AlignStyle,"attributors/style/background":k.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":F.DirectionStyle,"attributors/style/font":D.FontStyle,"attributors/style/size":w.SizeStyle},!0),H.default.register({"formats/align":Z.AlignClass,"formats/direction":F.DirectionClass,"formats/indent":N.IndentClass,"formats/background":k.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":D.FontClass,"formats/size":w.SizeClass,"formats/blockquote":S.default,"formats/code-block":ie.default,"formats/header":v.default,"formats/list":C.default,"formats/bold":$.default,"formats/code":ce.Code,"formats/italic":B.default,"formats/link":Y.default,"formats/script":R.default,"formats/strike":X.default,"formats/underline":ue.default,"formats/image":_e.default,"formats/video":de.default,"formats/list/item":T.ListItem,"modules/formula":oe.default,"modules/syntax":re.default,"modules/toolbar":Be.default,"themes/bubble":rn.default,"themes/snow":Jo.default,"ui/icons":Ue.default,"ui/picker":at.default,"ui/icon-picker":rt.default,"ui/color-picker":Re.default,"ui/tooltip":Dt.default},!0),xe.exports=H.default},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.IndentClass=void 0;var ae=function(){function C(k,y){for(var D=0;D0&&this.children.tail.format(B,ne)}},{key:"formats",value:function(){return function T(M,$,ee){return $ in M?Object.defineProperty(M,$,{value:ee,enumerable:!0,configurable:!0,writable:!0}):M[$]=ee,M}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(B,ne){if(B instanceof D)H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"insertBefore",this).call(this,B,ne);else{var Y=null==ne?this.length():ne.offset(this),Q=this.split(Y);Q.parent.insertBefore(B,Q)}}},{key:"optimize",value:function(){H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this);var B=this.next;null!=B&&B.prev===this&&B.statics.blotName===this.statics.blotName&&B.domNode.tagName===this.domNode.tagName&&B.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(B.moveChildren(this),B.remove())}},{key:"replace",value:function(B){if(B.statics.blotName!==this.statics.blotName){var ne=F.default.create(this.statics.defaultChild);B.moveChildren(ne),this.appendChild(ne)}H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"replace",this).call(this,B)}}],[{key:"create",value:function(B){var ne="ordered"===B?"OL":"UL",Y=H($.__proto__||Object.getPrototypeOf($),"create",this).call(this,ne);return("checked"===B||"unchecked"===B)&&Y.setAttribute("data-checked","checked"===B),Y}},{key:"formats",value:function(B){return"OL"===B.tagName?"ordered":"UL"===B.tagName?B.hasAttribute("data-checked")?"true"===B.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),$}(I.default);w.blotName="list",w.scope=F.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[D],z.ListItem=D,z.default=w},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1}v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",z.default=v,z.sanitize=T},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return"string"==typeof w&&M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,N.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(F.default);C.blotName="image",C.tagName="IMG",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function k(y,D){for(var w=0;w-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return M.setAttribute("frameborder","0"),M.setAttribute("allowfullscreen",!0),M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"sanitize",value:function(w){return N.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(Z.BlockEmbed);C.blotName="video",C.className="ql-video",C.tagName="IFRAME",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.FormulaBlot=void 0;var ae=function(){function y(D,w){for(var M=0;M0||null==this.cachedHTML)&&(this.domNode.innerHTML=Y(Q),this.attach()),this.cachedHTML=this.domNode.innerHTML}}}]),B}(C(L(28)).default);w.className="ql-syntax";var M=new F.default.Attributor.Class("token","hljs",{scope:F.default.Scope.INLINE}),$=function(ee){function B(ne,Y){k(this,B);var Q=y(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,ne,Y));if("function"!=typeof Q.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");O.default.register(M,!0),O.default.register(w,!0);var R=null;return Q.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){null==R&&(R=setTimeout(function(){Q.highlight(),R=null},100))}),Q.highlight(),Q}return D(B,ee),ae(B,[{key:"highlight",value:function(){var Y=this;if(!this.quill.selection.composing){var Q=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(R){R.highlight(Y.options.highlight)}),this.quill.update(O.default.sources.SILENT),null!=Q&&this.quill.setSelection(Q,O.default.sources.SILENT)}}}]),B}(I.default);$.DEFAULTS={highlight:null==window.hljs?null:function(ee){return window.hljs.highlightAuto(ee).value}},z.CodeBlock=w,z.CodeToken=M,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.addControls=z.default=void 0;var ae=function(se,X){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return function R(se,X){var U=[],ue=!0,pe=!1,_e=void 0;try{for(var de,he=se[Symbol.iterator]();!(ue=(de=he.next()).done)&&(U.push(de.value),!X||U.length!==X);ue=!0);}catch(ce){pe=!0,_e=ce}finally{try{!ue&&he.return&&he.return()}finally{if(pe)throw _e}}return U}(se,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function R(se,X){for(var U=0;U '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},H=function(){function I(v,T){for(var C=0;C1&&void 0!==arguments[1]&&arguments[1],k=this.container.querySelector(".ql-selected");if(T!==k&&(k?.classList.remove("ql-selected"),null!=T&&(T.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(T.parentNode.children,T),T.hasAttribute("data-value")?this.label.setAttribute("data-value",T.getAttribute("data-value")):this.label.removeAttribute("data-value"),T.hasAttribute("data-label")?this.label.setAttribute("data-label",T.getAttribute("data-label")):this.label.removeAttribute("data-label"),C))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":ae(Event))){var y=document.createEvent("Event");y.initEvent("change",!0,!0),this.select.dispatchEvent(y)}this.close()}}},{key:"update",value:function(){var T=void 0;if(this.select.selectedIndex>-1){var C=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];T=this.select.options[this.select.selectedIndex],this.selectItem(C)}else this.selectItem(null);var k=null!=T&&T!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),I}();z.default=S},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y=this.quill.root.offsetHeight)}},{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(N){var O=N.left+N.width/2-this.root.offsetWidth/2,S=N.bottom+this.quill.root.scrollTop;this.root.style.left=O+"px",this.root.style.top=S+"px";var I=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),T=0;return v.right>I.right&&(this.root.style.left=O+(T=I.right-v.right)+"px"),v.left0){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var U=R.quill.scroll.lines(X.index,X.length);if(1===U.length)R.position(R.quill.getBounds(X));else{var ue=U[U.length-1],pe=ue.offset(R.quill.scroll),_e=Math.min(ue.length()-1,X.index+X.length-pe),he=R.quill.getBounds(new v.Range(pe,_e));R.position(he)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return w(ne,B),H(ne,[{key:"listen",value:function(){var Q=this;ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Q.root.classList.remove("ql-editing")}),this.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Q.root.classList.contains("ql-hidden")){var R=Q.quill.getSelection();null!=R&&Q.position(Q.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Q){var R=ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"position",this).call(this,Q),se=this.root.querySelector(".ql-tooltip-arrow");if(se.style.marginLeft="",0===R)return R;se.style.marginLeft=-1*R-se.offsetWidth/2+"px"}}]),ne}(S.BaseTooltip);ee.TEMPLATE=['','
','','',"
"].join(""),z.BubbleTooltip=ee,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BaseTooltip=void 0;var ae=function(){function ie(J,oe){for(var Ie=0;Ie0&&void 0!==arguments[0]?arguments[0]:"link",re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=re?this.textbox.value=re:Ie!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Ie)||""),this.root.setAttribute("data-mode",Ie)}},{key:"restoreFocus",value:function(){var Ie=this.quill.root.scrollTop;this.quill.focus(),this.quill.root.scrollTop=Ie}},{key:"save",value:function(){var Ie=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var re=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ie,I.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ie,I.default.sources.USER)),this.quill.root.scrollTop=re;break;case"video":var ye=Ie.match(/^(https?):\/\/(www\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ie.match(/^(https?):\/\/(www\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);ye?Ie=ye[1]+"://www.youtube.com/embed/"+ye[3]+"?showinfo=0":(ye=Ie.match(/^(https?):\/\/(www\.)?vimeo\.com\/(\d+)/))&&(Ie=ye[1]+"://player.vimeo.com/video/"+ye[3]+"/");case"formula":var Be=this.quill.getSelection(!0),Me=Be.index+Be.length;null!=Be&&(this.quill.insertEmbed(Me,this.root.getAttribute("data-mode"),Ie,I.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Me+1," ",I.default.sources.USER),this.quill.setSelection(Me+2,I.default.sources.USER))}this.textbox.value="",this.hide()}}]),J}(ne.default);function ce(ie,J){var oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];J.forEach(function(Ie){var re=document.createElement("option");Ie===oe?re.setAttribute("selected","selected"):re.setAttribute("value",Ie),ie.appendChild(re)})}z.BaseTooltip=de,z.default=he},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(R,se){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function Q(R,se){var X=[],U=!0,ue=!1,pe=void 0;try{for(var he,_e=R[Symbol.iterator]();!(U=(he=_e.next()).done)&&(X.push(he.value),!se||X.length!==se);U=!0);}catch(de){ue=!0,pe=de}finally{try{!U&&_e.return&&_e.return()}finally{if(ue)throw pe}}return X}(R,se);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function Q(R,se,X){null===R&&(R=Function.prototype);var U=Object.getOwnPropertyDescriptor(R,se);if(void 0===U){var ue=Object.getPrototypeOf(R);return null===ue?void 0:Q(ue,se,X)}if("value"in U)return U.value;var pe=U.get;return void 0===pe?void 0:pe.call(X)},Z=function(){function Q(R,se){for(var X=0;X','','',''].join(""),z.default=ne}])}},tc=>{tc(tc.s=5544)}]); \ No newline at end of file diff --git a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.acf1aa309189b63a.js b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.acf1aa309189b63a.js deleted file mode 100644 index f66aa374ba..0000000000 --- a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.acf1aa309189b63a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkGinger_HtmlReport_Web_App=self.webpackChunkGinger_HtmlReport_Web_App||[]).push([[179],{5544:(tc,xe,z)=>{"use strict";function L(t){return"function"==typeof t}function ae(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const H=ae(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Z(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class F{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(L(n))try{n()}catch(s){i=s instanceof H?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{S(s)}catch(r){i=i??[],r instanceof H?i=[...i,...r.errors]:i.push(r)}}if(i)throw new H(i)}}add(i){var e;if(i&&i!==this)if(this.closed)S(i);else{if(i instanceof F){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Z(e,i)}remove(i){const{_finalizers:e}=this;e&&Z(e,i),i instanceof F&&i._removeParent(this)}}F.EMPTY=(()=>{const t=new F;return t.closed=!0,t})();const N=F.EMPTY;function O(t){return t instanceof F||t&&"closed"in t&&L(t.remove)&&L(t.add)&&L(t.unsubscribe)}function S(t){L(t)?t():t.unsubscribe()}const I={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},v={setTimeout(t,i,...e){const{delegate:n}=v;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=v;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function T(t){v.setTimeout(()=>{const{onUnhandledError:i}=I;if(!i)throw t;i(t)})}function C(){}const k=w("C",void 0,void 0);function w(t,i,e){return{kind:t,value:i,error:e}}let M=null;function $(t){if(I.useDeprecatedSynchronousErrorHandling){const i=!M;if(i&&(M={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=M;if(M=null,e)throw n}}else t()}class B extends F{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,O(i)&&i.add(this)):this.destination=ue}static create(i,e,n){return new R(i,e,n)}next(i){this.isStopped?U(function D(t){return w("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?U(function y(t){return w("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?U(k,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function Y(t,i){return ne.call(t,i)}class Q{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){se(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){se(n)}else se(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){se(e)}}}class R extends B{constructor(i,e,n){let o;if(super(),L(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let s;this&&I.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&Y(i.next,s),error:i.error&&Y(i.error,s),complete:i.complete&&Y(i.complete,s)}):o=i}this.destination=new Q(o)}}function se(t){I.useDeprecatedSynchronousErrorHandling?function ee(t){I.useDeprecatedSynchronousErrorHandling&&M&&(M.errorThrown=!0,M.error=t)}(t):T(t)}function U(t,i){const{onStoppedNotification:e}=I;e&&v.setTimeout(()=>e(t,i))}const ue={closed:!0,next:C,error:function X(t){throw t},complete:C},pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function _e(t){return t}function de(t){return 0===t.length?_e:1===t.length?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}let ce=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){const s=function oe(t){return t&&t instanceof B||function J(t){return t&&L(t.next)&&L(t.error)&&L(t.complete)}(t)&&O(t)}(e)?e:new R(e,n,o);return $(()=>{const{operator:r,source:a}=this;s.add(r?r.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=ie(n))((o,s)=>{const r=new R({next:a=>{try{e(a)}catch(l){s(l),r.unsubscribe()}},error:s,complete:o});this.subscribe(r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[pe](){return this}pipe(...e){return de(e)(this)}toPromise(e){return new(e=ie(e))((n,o)=>{let s;this.subscribe(r=>s=r,r=>o(r),()=>n(s))})}}return t.create=i=>new t(i),t})();function ie(t){var i;return null!==(i=t??I.Promise)&&void 0!==i?i:Promise}const Ie=ae(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class t extends ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new ye(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ie}next(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:o,observers:s}=this;return n||o?N:(this.currentObservers=null,s.push(e),new F(()=>{this.currentObservers=null,Z(s,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:o,isStopped:s}=this;n?e.error(o):s&&e.complete()}asObservable(){const e=new ce;return e.source=this,e}}return t.create=(i,e)=>new ye(i,e),t})();class ye extends re{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:N}}function Be(t){return L(t?.lift)}function Me(t){return i=>{if(Be(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,i,e,n,o){return new Bn(t,i,e,n,o)}class Bn extends B{constructor(i,e,n,o,s,r){super(i),this.onFinalize=s,this.shouldUnsubscribe=r,this._next=e?function(a){try{e(a)}catch(l){i.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function at(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>{n.next(t.call(i,s,o++))}))})}function or(t){return this instanceof or?(this.v=t,this):new or(t)}function Hv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function yo(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=t[s]&&function(r){return new Promise(function(a,l){!function o(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}(a,l,(r=t[s](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const dg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function zv(t){return L(t?.then)}function jv(t){return L(t[pe])}function Uv(t){return Symbol.asyncIterator&&L(t?.[Symbol.asyncIterator])}function $v(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Kv=function d4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Gv(t){return L(t?.[Kv])}function qv(t){return function Bv(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=e.apply(t,i||[]),s=[];return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;function r(m){n[m]&&(o[m]=function(_){return new Promise(function(b,E){s.push([m,_,b,E])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof or?Promise.resolve(m.value.v).then(c,u):p(s[0][2],m)}(n[m](_))}catch(b){p(s[0][3],b)}}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,_){m(_),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:o}=yield or(e.read());if(o)return yield or(void 0);yield yield or(n)}}finally{e.releaseLock()}})}function Wv(t){return L(t?.getReader)}function Ni(t){if(t instanceof ce)return t;if(null!=t){if(jv(t))return function p4(t){return new ce(i=>{const e=t[pe]();if(L(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(dg(t))return function h4(t){return new ce(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,T)})}(t);if(Uv(t))return Qv(t);if(Gv(t))return function g4(t){return new ce(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(Wv(t))return function m4(t){return Qv(qv(t))}(t)}throw $v(t)}function Qv(t){return new ce(i=>{(function _4(t,i){var e,n,o,s;return function As(t,i,e,n){return new(e||(e=Promise))(function(s,r){function a(u){try{c(n.next(u))}catch(p){r(p)}}function l(u){try{c(n.throw(u))}catch(p){r(p)}}function c(u){u.done?s(u.value):function o(s){return s instanceof e?s:new e(function(r){r(s)})}(u.value).then(a,l)}c((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Hv(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(r){o={error:r}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(o)throw o.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function ws(t,i,e,n=0,o=!1){const s=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}function si(t,i,e=1/0){return L(i)?si((n,o)=>at((s,r)=>i(n,s,o,r))(Ni(t(n,o))),e):("number"==typeof i&&(e=i),Me((n,o)=>function I4(t,i,e,n,o,s,r,a){const l=[];let c=0,u=0,p=!1;const m=()=>{p&&!l.length&&!c&&i.complete()},_=E=>c{s&&i.next(E),c++;let P=!1;Ni(e(E,u++)).subscribe(Ue(i,W=>{o?.(W),s?_(W):i.next(W)},()=>{P=!0},void 0,()=>{if(P)try{for(c--;l.length&&cb(W)):b(W)}m()}catch(W){i.error(W)}}))};return t.subscribe(Ue(i,_,()=>{p=!0,m()})),()=>{a?.()}}(n,o,t,e)))}function Ta(t=1/0){return si(_e,t)}const es=new ce(t=>t.complete());function Zv(t){return t&&L(t.schedule)}function pg(t){return t[t.length-1]}function Yv(t){return L(pg(t))?t.pop():void 0}function ic(t){return Zv(pg(t))?t.pop():void 0}function Xv(t,i=0){return Me((e,n)=>{e.subscribe(Ue(n,o=>ws(n,t,()=>n.next(o),i),()=>ws(n,t,()=>n.complete(),i),o=>ws(n,t,()=>n.error(o),i)))})}function Jv(t,i=0){return Me((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function e1(t,i){if(!t)throw new Error("Iterable cannot be null");return new ce(e=>{ws(e,i,()=>{const n=t[Symbol.asyncIterator]();ws(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ri(t,i){return i?function T4(t,i){if(null!=t){if(jv(t))return function b4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(dg(t))return function x4(t,i){return new ce(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(zv(t))return function y4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(Uv(t))return e1(t,i);if(Gv(t))return function A4(t,i){return new ce(e=>{let n;return ws(e,i,()=>{n=t[Kv](),ws(e,i,()=>{let o,s;try{({value:o,done:s}=n.next())}catch(r){return void e.error(r)}s?e.complete():e.next(o)},0,!0)}),()=>L(n?.return)&&n.return()})}(t,i);if(Wv(t))return function w4(t,i){return e1(qv(t),i)}(t,i)}throw $v(t)}(t,i):Ni(t)}class xo extends re{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}function ht(...t){return ri(t,ic(t))}function t1(t={}){const{connector:i=(()=>new re),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return s=>{let r,a,l,c=0,u=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),r=l=void 0,u=p=!1},b=()=>{const E=r;_(),E?.unsubscribe()};return Me((E,P)=>{c++,!p&&!u&&m();const W=l=l??i();P.add(()=>{c--,0===c&&!p&&!u&&(a=hg(b,o))}),W.subscribe(P),!r&&c>0&&(r=new R({next:te=>W.next(te),error:te=>{p=!0,m(),a=hg(_,e,te),W.error(te)},complete:()=>{u=!0,m(),a=hg(_,n),W.complete()}}),Ni(E).subscribe(r))})(s)}}function hg(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new R({next:()=>{n.unsubscribe(),t()}});return Ni(i(...e)).subscribe(n)}function Ao(t,i){return Me((e,n)=>{let o=null,s=0,r=!1;const a=()=>r&&!o&&n.complete();e.subscribe(Ue(n,l=>{o?.unsubscribe();let c=0;const u=s++;Ni(t(l,u)).subscribe(o=Ue(n,p=>n.next(i?i(l,p,u,c++):p),()=>{o=null,a()}))},()=>{r=!0,a()}))})}function D4(t,i){return t===i}function fn(t){for(let i in t)if(t[i]===fn)return i;throw Error("Could not find renamed property on target object.")}function _d(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ai(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ai).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function fg(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const k4=fn({__forward_ref__:fn});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return ai(this())},t}function vt(t){return gg(t)?t():t}function gg(t){return"function"==typeof t&&t.hasOwnProperty(k4)&&t.__forward_ref__===ft}function mg(t){return t&&!!t.\u0275providers}const n1="https://g.co/ng/security#xss";class Ae extends Error{constructor(i,e){super(function Id(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function xt(t){return"string"==typeof t?t:null==t?"":String(t)}function _g(t,i){throw new Ae(-201,!1)}function wo(t,i){null==t&&function _t(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function nt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const o1=nt;function Ge(t){return{providers:t.providers||[],imports:t.imports||[]}}function Cd(t){return s1(t,bd)||s1(t,r1)}function s1(t,i){return t.hasOwnProperty(i)?t[i]:null}function vd(t){return t&&(t.hasOwnProperty(Ig)||t.hasOwnProperty(V4))?t[Ig]:null}const bd=fn({\u0275prov:fn}),Ig=fn({\u0275inj:fn}),r1=fn({ngInjectableDef:fn}),V4=fn({ngInjectorDef:fn});var zt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(zt||{});let Cg;function a1(){return Cg}function Yi(t){const i=Cg;return Cg=t,i}function l1(t,i,e){const n=Cd(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&zt.Optional?null:void 0!==i?i:void _g(ai(t))}const Tn=globalThis;class Ye{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=nt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const oc={},Ag="__NG_DI_FLAG__",yd="ngTempTokenPath",z4=/\n/gm,u1="__source";let Sa;function sr(t){const i=Sa;return Sa=t,i}function $4(t,i=zt.Default){if(void 0===Sa)throw new Ae(-203,!1);return null===Sa?l1(t,void 0,i):Sa.get(t,i&zt.Optional?null:void 0,i)}function Ze(t,i=zt.Default){return(a1()||$4)(vt(t),i)}function et(t,i=zt.Default){return Ze(t,xd(i))}function xd(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function wg(t){const i=[];for(let e=0;ei){r=s-1;break}}}for(;ss?"":o[p+1].toLowerCase();const _=8&n?m:null;if(_&&-1!==f1(_,c,0)||2&n&&c!==m){if(Bo(n))return!1;r=!0}}}}else{if(!r&&!Bo(n)&&!Bo(l))return!1;if(r&&Bo(l))continue;r=!1,n=l|1&n}}return Bo(n)||r}function Bo(t){return 0==(1&t)}function Y4(t,i,e,n){if(null===i)return-1;let o=0;if(n||!e){let s=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?o+="."+r:4&n&&(o+=" "+r);else""!==o&&!Bo(r)&&(i+=b1(s,o),o=""),n=r,s=s||!Bo(n);e++}return""!==o&&(i+=b1(s,o)),i}function Oe(t){return Ts(()=>{const i=x1(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ad.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||To.Emulated,styles:t.styles||nn,_:null,schemas:t.schemas||null,tView:null,id:""};A1(e);const n=t.dependencies;return e.directiveDefs=Td(n,!1),e.pipeDefs=Td(n,!0),e.id=function cL(t){let i=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(e),e})}function Dg(t,i,e){const n=t.\u0275cmp;n.directiveDefs=Td(i,!1),n.pipeDefs=Td(e,!0)}function sL(t){return Zt(t)||fi(t)}function rL(t){return null!==t}function qe(t){return Ts(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function y1(t,i){if(null==t)return ts;const e={};for(const n in t)if(t.hasOwnProperty(n)){let o=t[n],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),e[o]=n,i&&(i[o]=s)}return e}function ut(t){return Ts(()=>{const i=x1(t);return A1(i),i})}function Vi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[wd]||null}function fi(t){return t[Tg]||null}function Bi(t){return t[Sg]||null}function lo(t,i){const e=t[p1]||null;if(!e&&!0===i)throw new Error(`Type ${ai(t)} does not have '\u0275mod' property.`);return e}function x1(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||ts,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:y1(t.inputs,i),outputs:y1(t.outputs)}}function A1(t){t.features?.forEach(i=>i(t))}function Td(t,i){if(!t)return null;const e=i?Bi:sL;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(rL)}const Un=0,it=1,kt=2,Fn=3,Ho=4,lc=5,xi=6,Da=7,Zn=8,rr=9,ka=10,At=11,cc=12,w1=13,Ma=14,Yn=15,uc=16,Oa=17,ns=18,dc=19,T1=20,ar=21,Es=22,pc=23,hc=24,Ut=25,kg=1,S1=2,is=7,La=9,gi=11;function Xi(t){return Array.isArray(t)&&"object"==typeof t[kg]}function Hi(t){return Array.isArray(t)&&!0===t[kg]}function Mg(t){return 0!=(4&t.flags)}function $r(t){return t.componentOffset>-1}function Ed(t){return 1==(1&t.flags)}function zo(t){return!!t.template}function Og(t){return 0!=(512&t[kt])}function Kr(t,i){return t.hasOwnProperty(Ss)?t[Ss]:null}const lr=Symbol("SIGNAL");function k1(t,i){return(null===t||"object"!=typeof t)&&Object.is(t,i)}let mi=null,Dd=!1;function So(t){const i=mi;return mi=t,i}const kd={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function M1(t){if(Dd)throw new Error("");if(null===mi)return;const i=mi.nextProducerIndex++;Pa(mi),it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function F1(t){Pa(t);for(let i=0;i0}function Pa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function V1(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ds(t,i){const e=Object.create(fL);e.computation=t,i?.equal&&(e.equal=i.equal);const n=()=>{if(O1(e),M1(e),e.value===Pd)throw e.error;return e.value};return n[lr]=e,n}const Pg=Symbol("UNSET"),Fg=Symbol("COMPUTING"),Pd=Symbol("ERRORED"),fL=(()=>({...kd,value:Pg,dirty:!0,error:null,equal:k1,producerMustRecompute:t=>t.value===Pg||t.value===Fg,producerRecomputeValue(t){if(t.value===Fg)throw new Error("Detected cycle in computations.");const i=t.value;t.value=Fg;const e=Md(t);let n;try{n=t.computation()}catch(o){n=Pd,t.error=o}finally{Od(t,e)}i!==Pg&&i!==Pd&&n!==Pd&&t.equal(i,n)?t.value=i:(t.value=n,t.version++)}}))();let B1=function gL(){throw new Error};function Rg(){B1()}let Ng=null;function bn(t,i){const e=Object.create(_L);function n(){return M1(e),e.value}return e.value=t,i?.equal&&(e.equal=i.equal),n.set=z1,n.update=IL,n.mutate=CL,n.asReadonly=vL,n[lr]=e,n}const _L=(()=>({...kd,equal:k1,readonlyFn:void 0}))();function H1(t){t.version++,L1(t),Ng?.()}function z1(t){const i=this[lr];Lg()||Rg(),i.equal(i.value,t)||(i.value=t,H1(i))}function IL(t){Lg()||Rg(),z1.call(this,t(this[lr].value))}function CL(t){const i=this[lr];Lg()||Rg(),t(i.value),H1(i)}function vL(){const t=this[lr];if(void 0===t.readonlyFn){const i=()=>this();i[lr]=t,t.readonlyFn=i}return t.readonlyFn}const U1=()=>{},yL=(()=>({...kd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:U1}))();class xL{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Hn(){return $1}function $1(t){return t.type.prototype.ngOnChanges&&(t.setInput=wL),AL}function AL(){const t=G1(this),i=t?.current;if(i){const e=t.previous;if(e===ts)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function wL(t,i,e,n){const o=this.declaredInputs[e],s=G1(t)||function TL(t,i){return t[K1]=i}(t,{previous:ts,current:null}),r=s.current||(s.current={}),a=s.previous,l=a[o];r[o]=new xL(l&&l.currentValue,i,a===ts),t[n]=i}Hn.ngInherit=!0;const K1="__ngSimpleChanges__";function G1(t){return t[K1]||null}const os=function(t,i,e){};function Sn(t){for(;Array.isArray(t);)t=t[Un];return t}function Fd(t,i){return Sn(i[t])}function Ji(t,i){return Sn(i[t.index])}function Q1(t,i){return t.data[i]}function Fa(t,i){return t[i]}function co(t,i){const e=i[t];return Xi(e)?e:e[Un]}function cr(t,i){return null==i?null:t[i]}function Z1(t){t[Oa]=0}function OL(t){1024&t[kt]||(t[kt]|=1024,X1(t,1))}function Y1(t){1024&t[kt]&&(t[kt]&=-1025,X1(t,-1))}function X1(t,i){let e=t[Fn];if(null===e)return;e[lc]+=i;let n=e;for(e=e[Fn];null!==e&&(1===i&&1===n[lc]||-1===i&&0===n[lc]);)e[lc]+=i,n=e,e=e[Fn]}function J1(t,i){if(256==(256&t[kt]))throw new Ae(911,!1);null===t[ar]&&(t[ar]=[]),t[ar].push(i)}const It={lFrame:cb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function tb(){return It.bindingsEnabled}function Ra(){return null!==It.skipHydrationRootTNode}function Ne(){return It.lFrame.lView}function Yt(){return It.lFrame.tView}function G(t){return It.lFrame.contextLView=t,t[Zn]}function q(t){return It.lFrame.contextLView=null,t}function _i(){let t=nb();for(;null!==t&&64===t.type;)t=t.parent;return t}function nb(){return It.lFrame.currentTNode}function ss(t,i){const e=It.lFrame;e.currentTNode=t,e.isParent=i}function Hg(){return It.lFrame.isParent}function zg(){It.lFrame.isParent=!1}function zi(){const t=It.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Na(){return It.lFrame.bindingIndex++}function Ms(t){const i=It.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function $L(t,i){const e=It.lFrame;e.bindingIndex=e.bindingRootIndex=t,jg(i)}function jg(t){It.lFrame.currentDirectiveIndex=t}function rb(){return It.lFrame.currentQueryIndex}function $g(t){It.lFrame.currentQueryIndex=t}function GL(t){const i=t[it];return 2===i.type?i.declTNode:1===i.type?t[xi]:null}function ab(t,i,e){if(e&zt.SkipSelf){let o=i,s=t;for(;!(o=o.parent,null!==o||e&zt.Host||(o=GL(s),null===o||(s=s[Ma],10&o.type))););if(null===o)return!1;i=o,t=s}const n=It.lFrame=lb();return n.currentTNode=i,n.lView=t,!0}function Kg(t){const i=lb(),e=t[it];It.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function lb(){const t=It.lFrame,i=null===t?null:t.child;return null===i?cb(t):i}function cb(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function ub(){const t=It.lFrame;return It.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const db=ub;function Gg(){const t=ub();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ji(){return It.lFrame.selectedIndex}function Gr(t){It.lFrame.selectedIndex=t}function zn(){const t=It.lFrame;return Q1(t.tView,t.selectedIndex)}function Mt(){It.lFrame.currentNamespace="svg"}let hb=!0;function Rd(){return hb}function ur(t){hb=t}function Nd(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Oa]+=65536),(a>13>16&&(3&t[kt])===i&&(t[kt]+=8192,gb(a,s)):gb(a,s)}const Va=-1;class _c{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Qg(t){return t!==Va}function Ic(t){return 32767&t}function Cc(t,i){let e=function iP(t){return t>>16}(t),n=i;for(;e>0;)n=n[Ma],e--;return n}let Zg=!0;function Hd(t){const i=Zg;return Zg=t,i}const mb=255,_b=5;let oP=0;const rs={};function zd(t,i){const e=Ib(t,i);if(-1!==e)return e;const n=i[it];n.firstCreatePass&&(t.injectorIndex=i.length,Yg(n.data,t),Yg(i,null),Yg(n.blueprint,null));const o=jd(t,i),s=t.injectorIndex;if(Qg(o)){const r=Ic(o),a=Cc(o,i),l=a[it].data;for(let c=0;c<8;c++)i[s+c]=a[r+c]|l[r+c]}return i[s+8]=o,s}function Yg(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Ib(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function jd(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;null!==o;){if(n=wb(o),null===n)return Va;if(e++,o=o[Ma],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Va}function Xg(t,i,e){!function sP(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(rc)&&(n=e[rc]),null==n&&(n=e[rc]=oP++);const o=n&mb;i.data[t+(o>>_b)]|=1<=0?i&mb:uP:i}(e);if("function"==typeof s){if(!ab(i,t,n))return n&zt.Host?Cb(o,0,n):vb(i,e,n,o);try{let r;if(r=s(n),null!=r||n&zt.Optional)return r;_g()}finally{db()}}else if("number"==typeof s){let r=null,a=Ib(t,i),l=Va,c=n&zt.Host?i[Yn][xi]:null;for((-1===a||n&zt.SkipSelf)&&(l=-1===a?jd(t,i):i[a+8],l!==Va&&Ab(n,!1)?(r=i[it],a=Ic(l),i=Cc(l,i)):a=-1);-1!==a;){const u=i[it];if(xb(s,a,u.data)){const p=aP(a,i,e,r,n,c);if(p!==rs)return p}l=i[a+8],l!==Va&&Ab(n,i[it].data[a+8]===c)&&xb(s,a,i)?(r=u,a=Ic(l),i=Cc(l,i)):a=-1}}return o}function aP(t,i,e,n,o,s){const r=i[it],a=r.data[t+8],u=Ud(a,r,e,null==n?$r(a)&&Zg:n!=r&&0!=(3&a.type),o&zt.Host&&s===a);return null!==u?qr(i,r,u,a):rs}function Ud(t,i,e,n,o){const s=t.providerIndexes,r=i.data,a=1048575&s,l=t.directiveStart,u=s>>20,m=o?a+u:t.directiveEnd;for(let _=n?a:a+u;_=l&&b.type===e)return _}if(o){const _=r[l];if(_&&zo(_)&&_.type===e)return l}return null}function qr(t,i,e,n){let o=t[e];const s=i.data;if(function eP(t){return t instanceof _c}(o)){const r=o;r.resolving&&function M4(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Ae(-200,`Circular dependency in DI detected for ${t}${e}`)}(function pn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():xt(t)}(s[e]));const a=Hd(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?Yi(r.injectImpl):null;ab(t,n,zt.Default);try{o=t[e]=r.factory(void 0,s,t,n),i.firstCreatePass&&e>=n.directiveStart&&function XL(t,i,e){const{ngOnChanges:n,ngOnInit:o,ngDoCheck:s}=i.type.prototype;if(n){const r=$1(i);(e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r)}o&&(e.preOrderHooks??=[]).push(0-t,o),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}(e,s[e],i)}finally{null!==c&&Yi(c),Hd(a),r.resolving=!1,db()}}return o}function xb(t,i,e){return!!(e[i+(t>>_b)]&1<{const i=t.prototype.constructor,e=i[Ss]||Jg(i),n=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){const s=o[Ss]||Jg(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Jg(t){return gg(t)?()=>{const i=Jg(vt(t));return i&&i()}:Kr(t)}function wb(t){const i=t[it],e=i.type;return 2===e?i.declTNode:1===e?t[xi]:null}const Ha="__parameters__";function ja(t,i,e){return Ts(()=>{const n=function em(t){return function(...e){if(t){const n=t(...e);for(const o in n)this[o]=n[o]}}}(i);function o(...s){if(this instanceof o)return n.apply(this,s),this;const r=new o(...s);return a.annotation=r,a;function a(l,c,u){const p=l.hasOwnProperty(Ha)?l[Ha]:Object.defineProperty(l,Ha,{value:[]})[Ha];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(r),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $a(t,i){t.forEach(e=>Array.isArray(e)?$a(e,i):i(e))}function Sb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Kd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function yc(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function IP(t,i,e,n){let o=t.length;if(o==i)t.push(e,n);else if(1===o)t.push(n,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>i;)t[o]=t[o-2],o--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function tm(t,i){const e=Ka(t,i);if(e>=0)return t[1|e]}function Ka(t,i){return function Eb(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){const s=n+(o-n>>1),r=t[s<i?o=s:n=s+1}return~(o<|^->||--!>|)/g,zP="\u200b$1\u200b";const rm=new Map;let jP=0;const lm="__ngContext__";function Ai(t,i){Xi(i)?(t[lm]=i[dc],function $P(t){rm.set(t[dc],t)}(i)):t[lm]=i}let cm;function um(t,i){return cm(t,i)}function wc(t){const i=t[Fn];return Hi(i)?i[Fn]:i}function Wb(t){return Zb(t[cc])}function Qb(t){return Zb(t[Ho])}function Zb(t){for(;null!==t&&!Hi(t);)t=t[Ho];return t}function Wa(t,i,e,n,o){if(null!=n){let s,r=!1;Hi(n)?s=n:Xi(n)&&(r=!0,n=n[Un]);const a=Sn(n);0===t&&null!==e?null==o?ey(i,e,a):Wr(i,e,a,o||null,!0):1===t&&null!==e?Wr(i,e,a,o||null,!0):2===t?function rp(t,i,e){const n=op(t,i);n&&function u5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,a,r):3===t&&i.destroyNode(a),null!=s&&function h5(t,i,e,n,o){const s=e[is];s!==Sn(e)&&Wa(i,t,n,s,o);for(let a=gi;ai.replace(HP,zP))}(i))}function np(t,i,e){return t.createElement(i,e)}function Xb(t,i){const e=t[La],n=e.indexOf(i);Y1(i),e.splice(n,1)}function ip(t,i){if(t.length<=gi)return;const e=gi+i,n=t[e];if(n){const o=n[uc];null!==o&&o!==t&&Xb(o,n),i>0&&(t[e-1][Ho]=n[Ho]);const s=Kd(t,gi+i);!function t5(t,i){Sc(t,i,i[At],2,null,null),i[Un]=null,i[xi]=null}(n[it],n);const r=s[ns];null!==r&&r.detachView(s[it]),n[Fn]=null,n[Ho]=null,n[kt]&=-129}return n}function pm(t,i){if(!(256&i[kt])){const e=i[At];i[pc]&&R1(i[pc]),i[hc]&&R1(i[hc]),e.destroyNode&&Sc(t,i,e,3,null,null),function s5(t){let i=t[cc];if(!i)return hm(t[it],t);for(;i;){let e=null;if(Xi(i))e=i[cc];else{const n=i[gi];n&&(e=n)}if(!e){for(;i&&!i[Ho]&&i!==t;)Xi(i)&&hm(i[it],i),i=i[Fn];null===i&&(i=t),Xi(i)&&hm(i[it],i),e=i&&i[Ho]}i=e}}(i)}}function hm(t,i){if(!(256&i[kt])){i[kt]&=-129,i[kt]|=256,function c5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r]():n[-r].unsubscribe(),s+=2}else e[s].call(n[e[s+1]]);null!==n&&(i[Da]=null);const o=i[ar];if(null!==o){i[ar]=null;for(let s=0;s-1){const{encapsulation:s}=t.data[n.directiveStart+o];if(s===To.None||s===To.Emulated)return null}return Ji(n,e)}}(t,i.parent,e)}function Wr(t,i,e,n,o){t.insertBefore(i,e,n,o)}function ey(t,i,e){t.appendChild(i,e)}function ty(t,i,e,n,o){null!==n?Wr(t,i,e,n,o):ey(t,i,e)}function op(t,i){return t.parentNode(i)}function ny(t,i,e){return oy(t,i,e)}let gm,ap,Cm,lp,oy=function iy(t,i,e){return 40&t.type?Ji(t,e):null};function sp(t,i,e,n){const o=fm(t,n,i),s=i[At],a=ny(n.parent||i[xi],n,i);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return ap}()?.createHTML(t)||t}function Za(){if(void 0!==Cm)return Cm;if(typeof document<"u")return document;throw new Ae(210,!1)}function vm(){if(void 0===lp&&(lp=null,Tn.trustedTypes))try{lp=Tn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lp}function dy(t){return vm()?.createHTML(t)||t}function hy(t){return vm()?.createScriptURL(t)||t}class fy{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${n1})`}}function pr(t){return t instanceof fy?t.changingThisBreaksApplicationSecurity:t}function Ec(t,i){const e=function w5(t){return t instanceof fy&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${n1})`)}return e===i}class T5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(Qa(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class S5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Qa(i),e}}const D5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bm(t){return(t=String(t)).match(D5)?t:"unsafe:"+t}function Os(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Dc(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const my=Os("area,br,col,hr,img,wbr"),_y=Os("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Iy=Os("rp,rt"),ym=Dc(my,Dc(_y,Os("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dc(Iy,Os("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Dc(Iy,_y)),xm=Os("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cy=Dc(xm,Os("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Os("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),k5=Os("script,style,template");class M5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!ym.hasOwnProperty(e))return this.sanitizedSomething=!0,!k5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let o=0;o"),!0}endElement(i){const e=i.nodeName.toLowerCase();ym.hasOwnProperty(e)&&!my.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(vy(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const O5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L5=/([^\#-~ |!])/g;function vy(t){return t.replace(/&/g,"&").replace(O5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(L5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let cp;function Am(t){return"content"in t&&function F5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ya=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ya||{});function hr(t){const i=kc();return i?dy(i.sanitize(Ya.HTML,t)||""):Ec(t,"HTML")?dy(pr(t)):function P5(t,i){let e=null;try{cp=cp||function gy(t){const i=new S5(t);return function E5(){try{return!!(new window.DOMParser).parseFromString(Qa(""),"text/html")}catch{return!1}}()?new T5(i):i}(t);let n=i?String(i):"";e=cp.getInertBodyElement(n);let o=5,s=n;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,n=s,s=e.innerHTML,e=cp.getInertBodyElement(n)}while(n!==s);return Qa((new M5).sanitizeChildren(Am(e)||e))}finally{if(e){const n=Am(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Za(),xt(t))}function Ls(t){const i=kc();return i?i.sanitize(Ya.URL,t)||"":Ec(t,"URL")?pr(t):bm(xt(t))}function by(t){const i=kc();if(i)return hy(i.sanitize(Ya.RESOURCE_URL,t)||"");if(Ec(t,"ResourceURL"))return hy(pr(t));throw new Ae(904,!1)}function kc(){const t=Ne();return t&&t[ka].sanitizer}const Mc=new Ye("ENVIRONMENT_INITIALIZER"),xy=new Ye("INJECTOR",-1),Ay=new Ye("INJECTOR_DEF_TYPES");class wm{get(i,e=oc){if(e===oc){const n=new Error(`NullInjectorError: No provider for ${ai(i)}!`);throw n.name="NullInjectorError",n}return e}}function z5(...t){return{\u0275providers:wy(0,t),\u0275fromNgModule:!0}}function wy(t,...i){const e=[],n=new Set;let o;const s=r=>{e.push(r)};return $a(i,r=>{const a=r;up(a,s,[],n)&&(o||=[],o.push(a))}),void 0!==o&&Ty(o,s),e}function Ty(t,i){for(let e=0;e{i(s,n)})}}function up(t,i,e,n){if(!(t=vt(t)))return!1;let o=null,s=vd(t);const r=!s&&Zt(t);if(s||r){if(r&&!r.standalone)return!1;o=t}else{const l=t.ngModule;if(s=vd(l),!s)return!1;o=l}const a=n.has(o);if(r){if(a)return!1;if(n.add(o),r.dependencies){const l="function"==typeof r.dependencies?r.dependencies():r.dependencies;for(const c of l)up(c,i,e,n)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;n.add(o);try{$a(s.imports,u=>{up(u,i,e,n)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Ty(c,i)}if(!a){const c=Kr(o)||(()=>new o);i({provide:o,useFactory:c,deps:nn},o),i({provide:Ay,useValue:o,multi:!0},o),i({provide:Mc,useValue:()=>Ze(o),multi:!0},o)}const l=s.providers;if(null!=l&&!a){const c=t;Sm(l,u=>{i(u,c)})}}}return o!==t&&void 0!==t.providers}function Sm(t,i){for(let e of t)mg(e)&&(e=e.\u0275providers),Array.isArray(e)?Sm(e,i):i(e)}const j5=fn({provide:String,useValue:fn});function Em(t){return null!==t&&"object"==typeof t&&j5 in t}function Qr(t){return"function"==typeof t}const Dm=new Ye("Set Injector scope."),dp={},$5={};let km;function pp(){return void 0===km&&(km=new wm),km}class po{}class Xa extends po{get destroyed(){return this._destroyed}constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Om(i,r=>this.processProvider(r)),this.records.set(xy,Ja(void 0,this)),o.has("environment")&&this.records.set(po,Ja(void 0,this));const s=this.records.get(Dm);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ay.multi,nn,zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of i)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const e=sr(this),n=Yi(void 0);try{return i()}finally{sr(e),Yi(n)}}get(i,e=oc,n=zt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(h1))return i[h1](this);n=xd(n);const s=sr(this),r=Yi(void 0);try{if(!(n&zt.SkipSelf)){let l=this.records.get(i);if(void 0===l){const c=function Q5(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ye}(i)&&Cd(i);l=c&&this.injectableDefInScope(c)?Ja(Mm(i),dp):null,this.records.set(i,l)}if(null!=l)return this.hydrate(i,l)}return(n&zt.Self?pp():this.parent).get(i,e=n&zt.Optional&&e===oc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[yd]=a[yd]||[]).unshift(ai(i)),s)throw a;return function G4(t,i,e,n){const o=t[yd];throw i[u1]&&o.unshift(i[u1]),t.message=function q4(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=ai(i);if(Array.isArray(i))o=i.map(ai).join(" -> ");else if("object"==typeof i){let s=[];for(let r in i)if(i.hasOwnProperty(r)){let a=i[r];s.push(r+":"+("string"==typeof a?JSON.stringify(a):ai(a)))}o=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(z4,"\n ")}`}("\n"+t.message,o,e,n),t.ngTokenPath=o,t[yd]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{Yi(r),sr(s)}}resolveInjectorInitializers(){const i=sr(this),e=Yi(void 0);try{const o=this.get(Mc.multi,nn,zt.Self);for(const s of o)s()}finally{sr(i),Yi(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(ai(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ae(205,!1)}processProvider(i){let e=Qr(i=vt(i))?i:vt(i&&i.provide);const n=function G5(t){return Em(t)?Ja(void 0,t.useValue):Ja(Dy(t),dp)}(i);if(Qr(i)||!0!==i.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=Ja(void 0,dp,!0),o.factory=()=>wg(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===dp&&(e.value=$5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=vt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){const e=this._onDestroyHooks.indexOf(i);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Mm(t){const i=Cd(t),e=null!==i?i.factory:Kr(t);if(null!==e)return e;if(t instanceof Ye)throw new Ae(204,!1);if(t instanceof Function)return function K5(t){const i=t.length;if(i>0)throw yc(i,"?"),new Ae(204,!1);const e=function N4(t){return t&&(t[bd]||t[r1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ae(204,!1)}function Dy(t,i,e){let n;if(Qr(t)){const o=vt(t);return Kr(o)||Mm(o)}if(Em(t))n=()=>vt(t.useValue);else if(function Ey(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...wg(t.deps||[]));else if(function Sy(t){return!(!t||!t.useExisting)}(t))n=()=>Ze(vt(t.useExisting));else{const o=vt(t&&(t.useClass||t.provide));if(!function q5(t){return!!t.deps}(t))return Kr(o)||Mm(o);n=()=>new o(...wg(t.deps))}return n}function Ja(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Om(t,i){for(const e of t)Array.isArray(e)?Om(e,i):e&&mg(e)?Om(e.\u0275providers,i):i(e)}const hp=new Ye("AppId",{providedIn:"root",factory:()=>Z5}),Z5="ng",ky=new Ye("Platform Initializer"),$n=new Ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),My=new Ye("AnimationModuleType"),Oy=new Ye("CSP nonce",{providedIn:"root",factory:()=>Za().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ly=(t,i,e)=>null;function Hm(t,i,e=!1){return Ly(t,i,e)}class rF{}class Ry{}class lF{resolveComponentFactory(i){throw function aF(t){const i=Error(`No component factory found for ${ai(t)}.`);return i.ngComponent=t,i}(i)}}let Cp=(()=>{class t{static#e=this.NULL=new lF}return t})();function cF(){return nl(_i(),Ne())}function nl(t,i){return new bt(Ji(t,i))}let bt=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=cF}return t})();function uF(t){return t instanceof bt?t.nativeElement:t}class Pc{}let hn=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function dF(){const t=Ne(),e=co(_i().index,t);return(Xi(e)?e:t)[At]}()}return t})(),pF=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>null})}return t})();class Fc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const hF=new Fc("16.2.12"),Um={};function zy(t,i=null,e=null,n){const o=jy(t,i,e,n);return o.resolveInjectorInitializers(),o}function jy(t,i=null,e=null,n,o=new Set){const s=[e||nn,z5(t)];return n=n||("object"==typeof t?void 0:ai(t)),new Xa(s,i||pp(),n||null,o)}let $i=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=oc;static#t=this.NULL=new wm;static create(e,n){if(Array.isArray(e))return zy({name:""},n,e,"");{const o=e.name??"";return zy({name:o},e.parent,e.providers,o)}}static#n=this.\u0275prov=nt({token:t,providedIn:"any",factory:()=>Ze(xy)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Km(t){return t.ngOriginalError}class Ps{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Km(i);for(;e&&Km(e);)e=Km(e);return e||null}}let vp=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=vF;static#t=this.__NG_ENV_ID__=e=>e}return t})();class CF extends vp{constructor(i){super(),this._lView=i}onDestroy(i){return J1(this._lView,i),()=>function LL(t,i){if(null===t[ar])return;const e=t[ar].indexOf(i);-1!==e&&t[ar].splice(e,1)}(this._lView,i)}}function vF(){return new CF(Ne())}function Gm(t){return i=>{setTimeout(t,void 0,i)}}const ge=class bF extends re{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let o=i,s=e||(()=>null),r=n;if(i&&"object"==typeof i){const l=i;o=l.next?.bind(l),s=l.error?.bind(l),r=l.complete?.bind(l)}this.__isAsync&&(s=Gm(s),o&&(o=Gm(o)),r&&(r=Gm(r)));const a=super.subscribe({next:o,error:s,complete:r});return i instanceof F&&i.add(a),a}};function $y(...t){}class Tt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),typeof Zone>"u")throw new Ae(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&e,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function yF(){const t="function"==typeof Tn.requestAnimationFrame;let i=Tn[t?"requestAnimationFrame":"setTimeout"],e=Tn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function wF(t){const i=()=>{!function AF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Wm(t),t.isCheckStableRunning=!0,qm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Wm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,o,s,r,a)=>{if(function SF(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(o,s,r,a);try{return Ky(t),e.invokeTask(o,s,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&i(),Gy(t)}},onInvoke:(e,n,o,s,r,a,l)=>{try{return Ky(t),e.invoke(o,s,r,a,l)}finally{t.shouldCoalesceRunChangeDetection&&i(),Gy(t)}},onHasTask:(e,n,o,s)=>{e.hasTask(o,s),n===o&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Wm(t),qm(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,o,s)=>(e.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tt.isInAngularZone())throw new Ae(909,!1)}static assertNotInAngularZone(){if(Tt.isInAngularZone())throw new Ae(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+o,i,xF,$y,$y);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const xF={};function qm(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Wm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ky(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gy(t){t._nesting--,qm(t)}class TF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ge,this.onMicrotaskEmpty=new ge,this.onStable=new ge,this.onError=new ge}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}}const qy=new Ye("",{providedIn:"root",factory:Wy});function Wy(){const t=et(Tt);let i=!0;return function S4(...t){const i=ic(t),e=function v4(t,i){return"number"==typeof pg(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Ni(n[0]):Ta(e)(ri(n,i)):es}(new ce(o=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(i),o.complete()})}),new ce(o=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,o.next(!0))})})});const r=t.onUnstable.subscribe(()=>{Tt.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),r.unsubscribe()}}).pipe(t1()))}function Qy(t){return t.ownerDocument}function Fs(t){return t instanceof Function?t():t}let Qm=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function Rc(t){for(;t;){t[kt]|=64;const i=wc(t);if(Og(t)&&!i)return t;t=i}return null}const ex=new Ye("",{providedIn:"root",factory:()=>!1});let yp=null;function ox(t,i){return t[i]??ax()}function sx(t,i){const e=ax();e.producerNode?.length&&(t[i]=yp,e.lView=t,yp=rx())}const RF={...kd,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Rc(t.lView)},lView:null};function rx(){return Object.create(RF)}function ax(){return yp??=rx(),yp}const St={};function h(t){lx(Yt(),Ne(),ji()+t,!1)}function lx(t,i,e,n){if(!n)if(3==(3&i[kt])){const s=t.preOrderCheckHooks;null!==s&&Vd(i,s,e)}else{const s=t.preOrderHooks;null!==s&&Bd(i,s,0,e)}Gr(e)}function V(t,i=zt.Default){const e=Ne();return null===e?Ze(t,i):bb(_i(),e,vt(t),i)}function xp(t,i,e,n,o,s,r,a,l,c,u){const p=i.blueprint.slice();return p[Un]=o,p[kt]=140|n,(null!==c||t&&2048&t[kt])&&(p[kt]|=2048),Z1(p),p[Fn]=p[Ma]=t,p[Zn]=e,p[ka]=r||t&&t[ka],p[At]=a||t&&t[At],p[rr]=l||t&&t[rr]||null,p[xi]=s,p[dc]=function UP(){return jP++}(),p[Es]=u,p[T1]=c,p[Yn]=2==i.type?t[Yn]:p,p}function sl(t,i,e,n,o){let s=t.data[i];if(null===s)s=function Zm(t,i,e,n,o){const s=nb(),r=Hg(),l=t.data[i]=function $F(t,i,e,n,o,s){let r=i?i.injectorIndex:-1,a=0;return Ra()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?s:s&&s.parent,e,i,n,o);return null===t.firstChild&&(t.firstChild=l),null!==s&&(r?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(t,i,e,n,o),function UL(){return It.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=n,s.attrs=o;const r=function mc(){const t=It.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();s.injectorIndex=null===r?-1:r.injectorIndex}return ss(s,!0),s}function Nc(t,i,e,n){if(0===e)return-1;const o=i.length;for(let s=0;sUt&&lx(t,i,Ut,!1),os(a?2:0,o);const c=a?s:null,u=Md(c);try{null!==c&&(c.dirty=!1),e(n,o)}finally{Od(c,u)}}finally{a&&null===i[pc]&&sx(i,pc),Gr(r),os(a?3:1,o)}}function Ym(t,i,e){if(Mg(i)){const n=So(null);try{const s=i.directiveEnd;for(let r=i.directiveStart;rnull;function hx(t,i,e,n){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const s=t[o];null===n?fx(e,i,o,s):n.hasOwnProperty(o)&&fx(e,i,n[o],s)}return e}function fx(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function ho(t,i,e,n,o,s,r,a){const l=Ji(i,e);let u,c=i.inputs;!a&&null!=c&&(u=c[n])?(s_(t,e,u,n,o),$r(i)&&function qF(t,i){const e=co(i,t);16&e[kt]||(e[kt]|=64)}(e,i.index)):3&i.type&&(n=function GF(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),o=null!=r?r(o,i.value||"",n):o,s.setProperty(l,n,o))}function t_(t,i,e,n){if(tb()){const o=null===n?null:{"":-1},s=function JF(t,i){const e=t.directiveRegistry;let n=null,o=null;if(e)for(let s=0;s0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(r)!=a&&r.push(a),r.push(e,n,s)}}(t,i,n,Nc(t,e,o.hostVars,St),o)}function as(t,i,e,n,o,s){const r=Ji(t,i);!function i_(t,i,e,n,o,s,r){if(null==s)t.removeAttribute(i,o,e);else{const a=null==r?xt(s):r(s,n||"",o);t.setAttribute(i,o,a,e)}}(i[At],r,s,t.value,e,n,o)}function sR(t,i,e,n,o,s){const r=s[i];if(null!==r)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,o){const s=typeof Zone>"u"?null:Zone.current,r=function bL(t,i,e){const n=Object.create(yL);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;const o=r=>{n.cleanupFn=r};return n.ref={notify:()=>P1(n),run:()=>{if(n.dirty=!1,n.hasRun&&!F1(n))return;n.hasRun=!0;const r=Md(n);try{n.cleanupFn(),n.cleanupFn=U1,n.fn(o)}finally{Od(n,r)}},cleanup:()=>n.cleanupFn()},n.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,s)},o);let a;this.all.add(r),r.notify();const l=()=>{r.cleanup(),a?.(),this.all.delete(r),this.queue.delete(r)};return a=n?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function a_(t,i){!i?.injector&&function $m(t){if(!a1()&&!function U4(){return Sa}())throw new Ae(-203,!1)}();const e=i?.injector??et($i),n=e.get(Ax),o=!0!==i?.manualCleanup?e.get(vp):null;return n.create(t,o,!!i?.allowSignalWrites)}function wp(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,s=0;if(null!==i)for(let r=0;r0){Sx(t,1);const o=e.components;null!==o&&Dx(t,o,1)}}function Dx(t,i,e){for(let n=0;n-1&&(ip(i,n),Kd(e,n))}this._attachedToViewContainer=!1}pm(this._lView[it],this._lView)}onDestroy(i){J1(this._lView,i)}markForCheck(){Rc(this._cdRefInjectingView||this._lView)}detach(){this._lView[kt]&=-129}reattach(){this._lView[kt]|=128}detectChanges(){Tp(this._lView[it],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function o5(t,i){Sc(t,i,i[At],2,null,null)}(this._lView[it],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ae(902,!1);this._appRef=i}}class hR extends Bc{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Tp(i[it],i,i[Zn],!1)}checkNoChanges(){}get context(){return null}}class kx extends Cp{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Zt(i);return new Hc(e,this.ngModule)}}function Mx(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class gR{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=xd(n);const o=this.injector.get(i,Um,n);return o!==Um||e===Um?o:this.parentInjector.get(i,e,n)}}class Hc extends Ry{get inputs(){const i=this.componentDef,e=i.inputTransforms,n=Mx(i.inputs);if(null!==e)for(const o of n)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return n}get outputs(){return Mx(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function iL(t){return t.map(nL).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,o){let s=(o=o||this.ngModule)instanceof po?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const r=s?new gR(i,s):i,a=r.get(Pc,null);if(null===a)throw new Ae(407,!1);const p={rendererFactory:a,sanitizer:r.get(pF,null),effectManager:r.get(Ax,null),afterRenderEventManager:r.get(Qm,null)},m=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=n?function BF(t,i,e,n){const s=n.get(ex,!1)||e===To.ShadowDom,r=t.selectRootElement(i,s);return function HF(t){px(t)}(r),r}(m,n,this.componentDef.encapsulation,r):np(m,_,function fR(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(_)),W=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let te=null;null!==b&&(te=Hm(b,r,!0));const fe=e_(0,null,null,1,0,null,null,null,null,null,null),Ce=xp(null,fe,null,W,null,null,p,m,r,null,te);let ve,ke;Kg(Ce);try{const Pe=this.componentDef;let $e,Ke=null;Pe.findHostDirectiveDefs?($e=[],Ke=new Map,Pe.findHostDirectiveDefs(Pe,$e,Ke),$e.push(Pe)):$e=[Pe];const pt=function _R(t,i){const e=t[it],n=Ut;return t[n]=i,sl(e,n,2,"#host",null)}(Ce,b),jt=function IR(t,i,e,n,o,s,r){const a=o[it];!function CR(t,i,e,n){for(const o of t)i.mergedAttrs=ac(i.mergedAttrs,o.hostAttrs);null!==i.mergedAttrs&&(wp(i,i.mergedAttrs,!0),null!==e&&uy(n,e,i))}(n,t,i,r);let l=null;null!==i&&(l=Hm(i,o[rr]));const c=s.rendererFactory.createRenderer(i,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const p=xp(o,dx(e),null,u,o[t.index],t,s,c,null,null,l);return a.firstCreatePass&&n_(a,t,n.length-1),Ap(o,p),o[t.index]=p}(pt,b,Pe,$e,Ce,p,m);ke=Q1(fe,Ut),b&&function bR(t,i,e,n){if(n)Eg(t,e,["ng-version",hF.full]);else{const{attrs:o,classes:s}=function oL(t){const i=[],e=[];let n=1,o=2;for(;n0&&cy(t,e,s.join(" "))}}(m,Pe,b,n),void 0!==e&&function yR(t,i,e){const n=t.projection=[];for(let o=0;o=0;n--){const o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=ac(o.hostAttrs,e=ac(e,o.hostAttrs))}}(n)}function Sp(t){return t===ts?{}:t===nn?[]:t}function wR(t,i){const e=t.viewQuery;t.viewQuery=e?(n,o)=>{i(n,o),e(n,o)}:i}function TR(t,i){const e=t.contentQueries;t.contentQueries=e?(n,o,s)=>{i(n,o,s),e(n,o,s)}:i}function SR(t,i){const e=t.hostBindings;t.hostBindings=e?(n,o)=>{i(n,o),e(n,o)}:i}function Rx(t){const i=t.inputConfig,e={};for(const n in i)if(i.hasOwnProperty(n)){const o=i[n];Array.isArray(o)&&o[2]&&(e[n]=o[2])}t.inputTransforms=e}function Ep(t){return!!l_(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function l_(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ls(t,i,e){return t[i]=e}function zc(t,i){return t[i]}function wi(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Zr(t,i,e,n){const o=wi(t,i,e);return wi(t,i+1,n)||o}function Dp(t,i,e,n,o){const s=Zr(t,i,e,n);return wi(t,i+2,o)||s}function Do(t,i,e,n,o,s){const r=Zr(t,i,e,n);return Zr(t,i+2,o,s)||r}function K(t,i,e,n){const o=Ne();return wi(o,Na(),i)&&(Yt(),as(zn(),o,t,i,e,n)),K}function al(t,i,e,n){return wi(t,Na(),e)?i+xt(e)+n:St}function ll(t,i,e,n,o,s){const a=Zr(t,function ks(){return It.lFrame.bindingIndex}(),e,o);return Ms(2),a?i+xt(e)+n+xt(o)+s:St}function g(t,i,e,n,o,s,r,a){const l=Ne(),c=Yt(),u=t+Ut,p=c.firstCreatePass?function XR(t,i,e,n,o,s,r,a,l){const c=i.consts,u=sl(i,t,4,r||null,cr(c,a));t_(i,e,u,cr(c,l)),Nd(i,u);const p=u.tView=e_(2,u,n,o,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return null!==i.queries&&(i.queries.template(i,u),p.queries=i.queries.embeddedTView(u)),u}(u,c,l,i,e,n,o,s,r):c.data[u];ss(p,!1);const m=Qx(c,l,p,t);Rd()&&sp(c,l,m,p),Ai(m,l),Ap(l,l[u]=Ix(m,l,m,p)),Ed(p)&&Xm(c,l,p),null!=r&&Jm(l,p,a)}let Qx=function Zx(t,i,e,n){return ur(!0),i[At].createComment("")};function Bt(t){return Fa(function jL(){return It.lFrame.contextLView}(),Ut+t)}function d(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!1),d}function f_(t,i,e,n,o){const r=o?"class":"style";s_(t,e,i.inputs[r],r,n)}function x(t,i,e,n){const o=Ne(),s=Yt(),r=Ut+t,a=o[At],l=s.firstCreatePass?function n6(t,i,e,n,o,s){const r=i.consts,l=sl(i,t,2,n,cr(r,o));return t_(i,e,l,cr(r,s)),null!==l.attrs&&wp(l,l.attrs,!1),null!==l.mergedAttrs&&wp(l,l.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,l),l}(r,s,o,i,e,n):s.data[r],c=Yx(s,o,l,a,i,t);o[r]=c;const u=Ed(l);return ss(l,!0),uy(a,c,l),32!=(32&l.flags)&&Rd()&&sp(s,o,c,l),0===function PL(){return It.lFrame.elementDepthCount}()&&Ai(c,o),function FL(){It.lFrame.elementDepthCount++}(),u&&(Xm(s,o,l),Ym(s,l,o)),null!==n&&Jm(o,l),x}function A(){let t=_i();Hg()?zg():(t=t.parent,ss(t,!1));const i=t;(function NL(t){return It.skipHydrationRootTNode===t})(i)&&function zL(){It.skipHydrationRootTNode=null}(),function RL(){It.lFrame.elementDepthCount--}();const e=Yt();return e.firstCreatePass&&(Nd(e,t),Mg(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function tP(t){return 0!=(8&t.flags)}(i)&&f_(e,i,Ne(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function nP(t){return 0!=(16&t.flags)}(i)&&f_(e,i,Ne(),i.stylesWithoutHost,!1),A}function le(t,i,e,n){return x(t,i,e,n),A(),le}let Yx=(t,i,e,n,o,s)=>(ur(!0),np(n,o,function pb(){return It.lFrame.currentNamespace}()));function we(t,i,e){const n=Ne(),o=Yt(),s=t+Ut,r=o.firstCreatePass?function r6(t,i,e,n,o){const s=i.consts,r=cr(s,n),a=sl(i,t,8,"ng-container",r);return null!==r&&wp(a,r,!0),t_(i,e,a,cr(s,o)),null!==i.queries&&i.queries.elementStart(i,a),a}(s,o,n,i,e):o.data[s];ss(r,!0);const a=Xx(o,n,r,t);return n[s]=a,Rd()&&sp(o,n,a,r),Ai(a,n),Ed(r)&&(Xm(o,n,r),Ym(o,r,n)),null!=e&&Jm(n,r),we}function Te(){let t=_i();const i=Yt();return Hg()?zg():(t=t.parent,ss(t,!1)),i.firstCreatePass&&(Nd(i,t),Mg(t)&&i.queries.elementEnd(t)),Te}function ze(t,i,e){return we(t,i,e),Te(),ze}let Xx=(t,i,e,n)=>(ur(!0),dm(i[At],""));function De(){return Ne()}function Kc(t){return!!t&&"function"==typeof t.then}function Jx(t){return!!t&&"function"==typeof t.subscribe}function me(t,i,e,n){const o=Ne(),s=Yt(),r=_i();return function tA(t,i,e,n,o,s,r){const a=Ed(n),c=t.firstCreatePass&&bx(t),u=i[Zn],p=vx(i);let m=!0;if(3&n.type||r){const E=Ji(n,i),P=r?r(E):E,W=p.length,te=r?Ce=>r(Sn(Ce[n.index])):n.index;let fe=null;if(!r&&a&&(fe=function c6(t,i,e,n){const o=t.cleanup;if(null!=o)for(let s=0;sl?a[l]:null}"string"==typeof r&&(s+=2)}return null}(t,i,o,n.index)),null!==fe)(fe.__ngLastListenerFn__||fe).__ngNextListenerFn__=s,fe.__ngLastListenerFn__=s,m=!1;else{s=iA(n,i,u,s,!1);const Ce=e.listen(P,o,s);p.push(s,Ce),c&&c.push(o,te,W,W+1)}}else s=iA(n,i,u,s,!1);const _=n.outputs;let b;if(m&&null!==_&&(b=_[o])){const E=b.length;if(E)for(let P=0;P-1?co(t.index,i):i);let l=nA(i,e,n,r),c=s.__ngNextListenerFn__;for(;c;)l=nA(i,e,c,r)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&r.preventDefault(),l}}function f(t=1){return function qL(t){return(It.lFrame.contextLView=function WL(t,i){for(;t>0;)i=i[Ma],t--;return i}(t,It.lFrame.contextLView))[Zn]}(t)}function u6(t,i){let e=null;const n=function X4(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let o=0;o>17&32767}function I_(t){return 2|t}function Yr(t){return(131068&t)>>2}function C_(t,i){return-131069&t|i<<2}function v_(t){return 1|t}function dA(t,i,e,n,o){const s=t[e+1],r=null===i;let a=n?fr(s):Yr(s),l=!1;for(;0!==a&&(!1===l||r);){const u=t[a+1];m6(t[a],i)&&(l=!0,t[a+1]=n?v_(u):I_(u)),a=n?fr(u):Yr(u)}l&&(t[e+1]=n?I_(s):v_(s))}function m6(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Ka(t,i)>=0}const ci={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pA(t){return t.substring(ci.key,ci.keyEnd)}function _6(t){return t.substring(ci.value,ci.valueEnd)}function hA(t,i){const e=ci.textEnd;return e===i?-1:(i=ci.keyEnd=function v6(t,i,e){for(;i32;)i++;return i}(t,ci.key=i,e),gl(t,i,e))}function fA(t,i){const e=ci.textEnd;let n=ci.key=gl(t,i,e);return e===n?-1:(n=ci.keyEnd=function b6(t,i,e){let n;for(;i=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=mA(t,n,e),n=ci.value=gl(t,n,e),n=ci.valueEnd=function y6(t,i,e){let n=-1,o=-1,s=-1,r=i,a=r;for(;r32&&(a=r),s=o,o=n,n=-33&l}return a}(t,n,e),mA(t,n,e))}function gA(t){ci.key=0,ci.keyEnd=0,ci.value=0,ci.valueEnd=0,ci.textEnd=t.length}function gl(t,i,e){for(;i=0;e=fA(i,e))vA(t,pA(i),_6(i))}function Ve(t){Uo(D6,cs,t,!0)}function cs(t,i){for(let e=function I6(t){return gA(t),hA(t,gl(t,0,ci.textEnd))}(i);e>=0;e=hA(i,e))uo(t,pA(i),!0)}function jo(t,i,e,n){const o=Ne(),s=Yt(),r=Ms(2);s.firstUpdatePass&&CA(s,t,r,n),i!==St&&wi(o,r,i)&&bA(s,s.data[ji()],o,o[At],t,o[r+1]=function M6(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ai(pr(t)))),t}(i,e),n,r)}function Uo(t,i,e,n){const o=Yt(),s=Ms(2);o.firstUpdatePass&&CA(o,null,s,n);const r=Ne();if(e!==St&&wi(r,s,e)){const a=o.data[ji()];if(xA(a,n)&&!IA(o,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=fg(l,e||"")),f_(o,a,r,e,n)}else!function k6(t,i,e,n,o,s,r,a){o===St&&(o=nn);let l=0,c=0,u=0=t.expandoStartIndex}function CA(t,i,e,n){const o=t.data;if(null===o[e+1]){const s=o[ji()],r=IA(t,e);xA(s,n)&&null===i&&!r&&(i=!1),i=function A6(t,i,e,n){const o=function Ug(t){const i=It.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let s=n?i.residualClasses:i.residualStyles;if(null===o)0===(n?i.classBindings:i.styleBindings)&&(e=Gc(e=b_(null,t,i,e,n),i.attrs,n),s=null);else{const r=i.directiveStylingLast;if(-1===r||t[r]!==o)if(e=b_(o,t,i,e,n),null===s){let l=function w6(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Yr(n))return t[fr(n)]}(t,i,n);void 0!==l&&Array.isArray(l)&&(l=b_(null,t,i,l[1],n),l=Gc(l,i.attrs,n),function T6(t,i,e,n){t[fr(e?i.classBindings:i.styleBindings)]=n}(t,i,n,l))}else s=function S6(t,i,e){let n;const o=i.directiveEnd;for(let s=1+i.directiveStylingLast;s0)&&(c=!0)):u=e,o)if(0!==l){const m=fr(t[a+1]);t[n+1]=Lp(m,a),0!==m&&(t[m+1]=C_(t[m+1],n)),t[a+1]=function p6(t,i){return 131071&t|i<<17}(t[a+1],n)}else t[n+1]=Lp(a,0),0!==a&&(t[a+1]=C_(t[a+1],n)),a=n;else t[n+1]=Lp(l,0),0===a?a=n:t[l+1]=C_(t[l+1],n),l=n;c&&(t[n+1]=I_(t[n+1])),dA(t,u,n,!0),dA(t,u,n,!1),function g6(t,i,e,n,o){const s=o?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof i&&Ka(s,i)>=0&&(e[n+1]=v_(e[n+1]))}(i,u,t,n,s),r=Lp(a,l),s?i.classBindings=r:i.styleBindings=r}(o,s,i,e,r,n)}}function b_(t,i,e,n,o){let s=null;const r=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let m=e[o+1];m===St&&(m=p?nn:void 0);let _=p?tm(m,n):u===n?m:void 0;if(c&&!Pp(_)&&(_=tm(l,n)),Pp(_)&&(a=_,r))return a;const b=t[o+1];o=r?fr(b):Yr(b)}if(null!==i){let l=s?i.residualClasses:i.residualStyles;null!=l&&(a=tm(l,n))}return a}function Pp(t){return void 0!==t}function xA(t,i){return 0!=(t.flags&(i?8:16))}function Le(t,i=""){const e=Ne(),n=Yt(),o=t+Ut,s=n.firstCreatePass?sl(n,o,1,i,null):n.data[o],r=AA(n,e,s,i,t);e[o]=r,Rd()&&sp(n,e,r,s),ss(s,!1)}let AA=(t,i,e,n,o)=>(ur(!0),function tp(t,i){return t.createText(i)}(i[At],n));function dt(t){return Pt("",t,""),dt}function Pt(t,i,e){const n=Ne(),o=al(n,t,i,e);return o!==St&&Rs(n,ji(),o),Pt}function Fp(t,i,e,n,o){const s=Ne(),r=ll(s,t,i,e,n,o);return r!==St&&Rs(s,ji(),r),Fp}function y_(t,i,e){Uo(uo,cs,al(Ne(),t,i,e),!0)}function x_(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!0),x_}const Xr=void 0;var X6=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Y6(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ml={};function Ki(t){const i=function J6(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=UA(i);if(e)return e;const n=i.split("-")[0];if(e=UA(n),e)return e;if("en"===n)return X6;throw new Ae(701,!1)}function UA(t){return t in ml||(ml[t]=Tn.ng&&Tn.ng.common&&Tn.ng.common.locales&&Tn.ng.common.locales[t]),ml[t]}var En=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(En||{});const _l="en-US";let $A=_l;function T_(t,i,e,n,o){if(t=vt(t),Array.isArray(t))for(let s=0;s>20;if(Qr(t)||!t.multi){const _=new _c(c,o,V),b=E_(l,i,o?u:u+m,p);-1===b?(Xg(zd(a,r),s,l),S_(s,t,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(_),r.push(_)):(e[b]=_,r[b]=_)}else{const _=E_(l,i,u+m,p),b=E_(l,i,u,u+m),P=b>=0&&e[b];if(o&&!P||!o&&!(_>=0&&e[_])){Xg(zd(a,r),s,l);const W=function X9(t,i,e,n,o){const s=new _c(t,e,V);return s.multi=[],s.index=i,s.componentProviders=0,gw(s,o,n&&!e),s}(o?Y9:Z9,e.length,o,n,c);!o&&P&&(e[b].providerFactory=W),S_(s,t,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(W),r.push(W)}else S_(s,t,_>-1?_:b,gw(e[o?b:_],c,!o&&n));!o&&n&&P&&e[b].componentProviders++}}}function S_(t,i,e,n){const o=Qr(i),s=function U5(t){return!!t.useClass}(i);if(o||s){const l=(s?vt(i.useClass):i).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){const u=c.indexOf(e);-1===u?c.push(e,[n,l]):c[u+1].push(n,l)}else c.push(e,l)}}}function gw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function E_(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>function Q9(t,i,e){const n=Yt();if(n.firstCreatePass){const o=zo(t);T_(e,n.data,n.blueprint,o,!0),T_(i,n.data,n.blueprint,o,!1)}}(n,o?o(t):t,i)}}class Jr{}class mw{}class k_ extends Jr{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kx(this);const o=lo(i);this._bootstrapComponents=Fs(o.bootstrap),this._r3Injector=jy(i,e,[{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver},...n],ai(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class M_ extends mw{constructor(i){super(),this.moduleType=i}create(i){return new k_(this.moduleType,i,[])}}class _w extends Jr{constructor(i){super(),this.componentFactoryResolver=new kx(this),this.instance=null;const e=new Xa([...i.providers,{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver}],i.parent||pp(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function O_(t,i,e=null){return new _w({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}let t7=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=wy(0,e.type),o=n.length>0?O_([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=nt({token:t,providedIn:"environment",factory:()=>new t(Ze(po))})}return t})();function Et(t){t.getStandaloneInjector=i=>i.get(t7).getOrCreateStandaloneInjector(t)}function Jt(t,i,e){const n=zi()+t,o=Ne();return o[n]===St?ls(o,n,e?i.call(e):i()):zc(o,n)}function He(t,i,e,n){return function ww(t,i,e,n,o,s){const r=i+e;return wi(t,r,o)?ls(t,r+1,s?n.call(s,o):n(o)):Xc(t,r+1)}(Ne(),zi(),t,i,e,n)}function mt(t,i,e,n,o){return Tw(Ne(),zi(),t,i,e,n,o)}function Rn(t,i,e,n,o,s){return function Sw(t,i,e,n,o,s,r,a){const l=i+e;return Dp(t,l,o,s,r)?ls(t,l+3,a?n.call(a,o,s,r):n(o,s,r)):Xc(t,l+3)}(Ne(),zi(),t,i,e,n,o,s)}function gr(t,i,e,n,o,s,r){return function Ew(t,i,e,n,o,s,r,a,l){const c=i+e;return Do(t,c,o,s,r,a)?ls(t,c+4,l?n.call(l,o,s,r,a):n(o,s,r,a)):Xc(t,c+4)}(Ne(),zi(),t,i,e,n,o,s,r)}function Hp(t,i,e,n,o,s,r,a){const l=zi()+t,c=Ne(),u=Do(c,l,e,n,o,s);return wi(c,l+4,r)||u?ls(c,l+5,a?i.call(a,e,n,o,s,r):i(e,n,o,s,r)):zc(c,l+5)}function ea(t,i,e,n,o,s,r,a,l){const c=zi()+t,u=Ne(),p=Do(u,c,e,n,o,s);return Zr(u,c+4,r,a)||p?ls(u,c+6,l?i.call(l,e,n,o,s,r,a):i(e,n,o,s,r,a)):zc(u,c+6)}function zp(t,i,e,n){return function Dw(t,i,e,n,o,s){let r=i+e,a=!1;for(let l=0;l=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];const s=n.factory||(n.factory=Kr(n.type)),a=Yi(V);try{const l=Hd(!1),c=s();return Hd(l),function t6(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,Ne(),o,c),c}finally{Yi(a)}}function Cl(t,i,e,n){const o=t+Ut,s=Ne(),r=Fa(s,o);return function Jc(t,i){return t[it].data[i].pure}(s,o)?Tw(s,zi(),i,r.transform,e,n,r):r.transform(e,n)}function _7(){return this._results[Symbol.iterator]()}class P_{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new ge)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=P_.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_7)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const o=function Eo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function mP(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n0&&(e[o-1][Ho]=i),n{class t{static#e=this.__NG_ELEMENT_ID__=y7}return t})();const v7=$o,b7=class extends v7{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){const o=function I7(t,i,e,n){const o=i.tView,a=xp(t,o,e,4096&t[kt]?4096:16,null,i,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[uc]=t[i.index];const c=t[ns];return null!==c&&(a[ns]=c.createEmbeddedView(o)),r_(o,a,e),a}(this._declarationLView,this._declarationTContainer,i,{injector:e,hydrationInfo:n});return new Bc(o)}};function y7(){return jp(_i(),Ne())}function jp(t,i){return 4&t.type?new b7(i,t,nl(t,i)):null}let go=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=E7}return t})();function E7(){return Rw(_i(),Ne())}const D7=go,Pw=class extends D7{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return nl(this._hostTNode,this._hostLView)}get injector(){return new Ui(this._hostTNode,this._hostLView)}get parentInjector(){const i=jd(this._hostTNode,this._hostLView);if(Qg(i)){const e=Cc(i,this._hostLView),n=Ic(i);return new Ui(e[it].data[n+8],e)}return new Ui(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=Fw(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-gi}createEmbeddedView(i,e,n){let o,s;"number"==typeof n?o=n:null!=n&&(o=n.index,s=n.injector);const a=i.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(a,o,false),a}createComponent(i,e,n,o,s){const r=i&&!function bc(t){return"function"==typeof t}(i);let a;if(r)a=e;else{const E=e||{};a=E.index,n=E.injector,o=E.projectableNodes,s=E.environmentInjector||E.ngModuleRef}const l=r?i:new Hc(Zt(i)),c=n||this.parentInjector;if(!s&&null==l.ngModule){const P=(r?c:this.parentInjector).get(po,null);P&&(s=P)}Zt(l.componentType??{});const _=l.create(c,o,null,s);return this.insertImpl(_.hostView,a,false),_}insert(i,e){return this.insertImpl(i,e,!1)}insertImpl(i,e,n){const o=i._lView;if(function ML(t){return Hi(t[Fn])}(o)){const l=this.indexOf(i);if(-1!==l)this.detach(l);else{const c=o[Fn],u=new Pw(c,c[xi],c[Fn]);u.detach(u.indexOf(i))}}const r=this._adjustIndex(e),a=this._lContainer;return C7(a,o,r,!n),i.attachToViewContainerRef(),Sb(F_(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=Fw(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);n&&(Kd(F_(this._lContainer),e),pm(n[it],n))}detach(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);return n&&null!=Kd(F_(this._lContainer),e)?new Bc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Fw(t){return t[8]}function F_(t){return t[8]||(t[8]=[])}function Rw(t,i){let e;const n=i[t.index];return Hi(n)?e=n:(e=Ix(n,i,null,t),i[t.index]=e,Ap(i,e)),Nw(e,i,t,n),new Pw(e,t,i)}let Nw=function Vw(t,i,e,n){if(t[is])return;let o;o=8&e.type?Sn(n):function k7(t,i){const e=t[At],n=e.createComment(""),o=Ji(i,t);return Wr(e,op(e,o),n,function d5(t,i){return t.nextSibling(i)}(e,o),!1),n}(i,e),t[is]=o};class R_{constructor(i){this.queryList=i,this.matches=null}clone(){return new R_(this.queryList)}setDirty(){this.queryList.setDirty()}}class N_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,o=[];for(let s=0;s0)n.push(r[a/2]);else{const c=s[a+1],u=i[-l];for(let p=gi;p{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=et(G_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const s=o();if(Kc(s))e.push(s);else if(Jx(s)){const r=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(r)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),a2=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const us=new Ye("LocaleId",{providedIn:"root",factory:()=>et(us,zt.Optional|zt.SkipSelf)||function sN(){return typeof $localize<"u"&&$localize.locale||_l}()});let Kp=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xo(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class lN{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let l2=(()=>{class t{compileModuleSync(e){return new M_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=Fs(lo(e).declarations).reduce((r,a)=>{const l=Zt(a);return l&&r.push(new Hc(l)),r},[]);return new lN(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const p2=new Ye(""),qp=new Ye("");let X_,Z_=(()=>{class t{constructor(e,n,o){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,X_||(function kN(t){X_=t}(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:o})}whenStable(e,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Tt),Ze(Y_),Ze(qp))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),Y_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return X_?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),mr=null;const h2=new Ye("AllowMultipleToken"),J_=new Ye("PlatformDestroyListeners"),e0=new Ye("appBootstrapListener");class g2{constructor(i,e){this.name=i,this.token=e}}function _2(t,i,e=[]){const n=`Platform: ${i}`,o=new Ye(n);return(s=[])=>{let r=t0();if(!r||r.injector.get(h2,!1)){const a=[...e,...s,{provide:o,useValue:!0}];t?t(a):function LN(t){if(mr&&!mr.get(h2,!1))throw new Ae(400,!1);(function f2(){!function mL(t){B1=t}(()=>{throw new Ae(600,!1)})})(),mr=t;const i=t.get(C2);(function m2(t){t.get(ky,null)?.forEach(e=>e())})(t)}(function I2(t=[],i){return $i.create({name:i,providers:[{provide:Dm,useValue:"platform"},{provide:J_,useValue:new Set([()=>mr=null])},...t]})}(a,n))}return function FN(t){const i=t0();if(!i)throw new Ae(401,!1);return i}()}}function t0(){return mr?.get(C2)??null}let C2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const o=function RN(t="zone.js",i){return"noop"===t?new TF:"zone.js"===t?new Tt(i):t}(n?.ngZone,function v2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{const s=function e7(t,i,e){return new k_(t,i,e)}(e.moduleType,this.injector,function w2(t){return[{provide:Tt,useFactory:t},{provide:Mc,multi:!0,useFactory:()=>{const i=et(VN,{optional:!0});return()=>i.initialize()}},{provide:A2,useFactory:NN},{provide:qy,useFactory:Wy}]}(()=>o)),r=s.injector.get(Ps,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{r.handleError(l)}});s.onDestroy(()=>{Wp(this._modules,s),a.unsubscribe()})}),function b2(t,i,e){try{const n=e();return Kc(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(r,o,()=>{const a=s.injector.get(q_);return a.runInitializers(),a.donePromise.then(()=>(function KA(t){wo(t,"Expected localeId to be defined"),"string"==typeof t&&($A=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(us,_l)||_l),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const o=y2({},n);return function MN(t,i,e){const n=new M_(e);return Promise.resolve(n)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(e){const n=e.injector.get(ta);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>n.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Ae(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ae(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(J_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(Ze($i))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function y2(t,i){return Array.isArray(i)?i.reduce(y2,t):{...t,...i}}let ta=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=et(A2),this.zoneIsStable=et(qy),this.componentTypes=[],this.components=[],this.isStable=et(Kp).hasPendingTasks.pipe(Ao(e=>e?ht(!1):this.zoneIsStable),function E4(t,i=_e){return t=t??D4,Me((e,n)=>{let o,s=!0;e.subscribe(Ue(n,r=>{const a=i(r);(s||!t(o,a))&&(s=!1,o=a,n.next(r))}))})}(),t1()),this._injector=et(po)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const o=e instanceof Ry;if(!this._injector.get(q_).done)throw!o&&function Ea(t){const i=Zt(t)||fi(t)||Bi(t);return null!==i&&i.standalone}(e),new Ae(405,!1);let r;r=o?e:this._injector.get(Cp).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const a=function ON(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Jr),c=r.create($i.NULL,[],n||r.selector,a),u=c.location.nativeElement,p=c.injector.get(p2,null);return p?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Wp(this.components,c),p?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ae(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Wp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(e0,[]);n.push(...this._bootstrapListeners),n.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Wp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ae(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const A2=new Ye("",{providedIn:"root",factory:()=>et(Ps).handleError.bind(void 0)});function NN(){const t=et(Tt),i=et(Ps);return e=>t.runOutsideAngular(()=>i.handleError(e))}let VN=(()=>{class t{constructor(){this.zone=et(Tt),this.applicationRef=et(ta)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let Ft=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=HN}return t})();function HN(t){return function zN(t,i,e){if($r(t)&&!e){const n=co(t.index,i);return new Bc(n,n)}return 47&t.type?new Bc(i[Yn],i):null}(_i(),Ne(),16==(16&t))}class D2{constructor(){}supports(i){return Ep(i)}create(i){return new qN(i)}}const GN=(t,i)=>i;class qN{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||GN}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,a,r,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,r,o),n=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,s,o)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,s,o)):i=this._addAfter(new WN(e,n),s,o),i}_verifyReinsertion(i,e,n,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?i=this._reinsertAfter(s,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const o=i._prevRemoved,s=i._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const o=null===e?this._itHead:e._next;return i._next=o,i._prev=e,null===o?this._itTail=i:o._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new k2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new k2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class WN{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class QN{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class k2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new QN,this.map.set(e,n)),n.add(i)}get(i,e){const o=this.map.get(i);return o?o.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function M2(t,i,e){const n=t.previousIndex;if(null===n)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const o=this._records.get(i);this._maybeAddToChanges(o,e);const s=o._prev,r=o._next;return s&&(s._next=r),r&&(r._prev=s),o._next=null,o._prev=null,o}const n=new YN(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class YN{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function L2(){return new Yp([new D2])}let Yp=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:L2});constructor(e){this.factories=e}static create(e,n){if(null!=n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||L2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(null!=n)return n;throw new Ae(901,!1)}}return t})();function P2(){return new yl([new O2])}let yl=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:P2});constructor(e){this.factories=e}static create(e,n){if(n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||P2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new Ae(901,!1)}}return t})();const e8=_2(null,"core",[]);let t8=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ta))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function xl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let l0=null;function _r(){return l0}class m8{}const Wt=new Ye("DocumentToken");let c0=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(I8)},providedIn:"platform"})}return t})();const _8=new Ye("Location Initialized");let I8=(()=>{class t extends c0{constructor(){super(),this._doc=et(Wt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function u0(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function U2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ns(t){return t&&"?"!==t[0]?"?"+t:t}let Ir=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(K2)},providedIn:"root"})}return t})();const $2=new Ye("appBaseHref");let K2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??et(Wt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return u0(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Ns(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=u0(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),d0=(()=>{class t{constructor(e){this._subject=new ge,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function b8(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(U2(q2(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Ns(n))}normalize(e){return t.stripTrailingSlash(function v8(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,q2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n,complete:o})}static#e=this.normalizeQueryParams=Ns;static#t=this.joinWithSlash=u0;static#n=this.stripTrailingSlash=U2;static#i=this.\u0275fac=function(n){return new(n||t)(Ze(Ir))};static#o=this.\u0275prov=nt({token:t,factory:function(){return function C8(){return new d0(Ze(Ir))}()},providedIn:"root"})}return t})();function q2(t){return t.replace(/\/index.html$/,"")}var qi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(qi||{}),xn=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(xn||{}),mo=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(mo||{}),Xn=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(Xn||{});function eh(t,i){return Mo(Ki(t)[En.DateFormat],i)}function th(t,i){return Mo(Ki(t)[En.TimeFormat],i)}function nh(t,i){return Mo(Ki(t)[En.DateTimeFormat],i)}function ko(t,i){const e=Ki(t),n=e[En.NumberSymbols][i];if(typeof n>"u"){if(i===Xn.CurrencyDecimal)return e[En.NumberSymbols][Xn.Decimal];if(i===Xn.CurrencyGroup)return e[En.NumberSymbols][Xn.Group]}return n}function Q2(t){if(!t[En.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[En.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Mo(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function h0(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const F8=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nu={},R8=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Vs=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Vs||{}),ln=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ln||{}),cn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(cn||{});function N8(t,i,e,n){let o=function G8(t){if(X2(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,s=1,r=1]=t.split("-").map(a=>+a);return ih(o,s-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(F8))return function q8(t){const i=new Date(0);let e=0,n=0;const o=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-e,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,r,a,l,c),i}(n)}const i=new Date(t);if(!X2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Bs(e,i)||i;let a,r=[];for(;i;){if(a=R8.exec(i),!a){r.push(i);break}{r=r.concat(a.slice(1));const u=r.pop();if(!u)break;i=u}}let l=o.getTimezoneOffset();n&&(l=Y2(n,l),o=function K8(t,i,e){const n=e?-1:1,o=t.getTimezoneOffset();return function $8(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(Y2(i,o)-o))}(o,n,!0));let c="";return r.forEach(u=>{const p=function U8(t){if(g0[t])return g0[t];let i;switch(t){case"G":case"GG":case"GGG":i=Dn(cn.Eras,xn.Abbreviated);break;case"GGGG":i=Dn(cn.Eras,xn.Wide);break;case"GGGGG":i=Dn(cn.Eras,xn.Narrow);break;case"y":i=ii(ln.FullYear,1,0,!1,!0);break;case"yy":i=ii(ln.FullYear,2,0,!0,!0);break;case"yyy":i=ii(ln.FullYear,3,0,!1,!0);break;case"yyyy":i=ii(ln.FullYear,4,0,!1,!0);break;case"Y":i=ah(1);break;case"YY":i=ah(2,!0);break;case"YYY":i=ah(3);break;case"YYYY":i=ah(4);break;case"M":case"L":i=ii(ln.Month,1,1);break;case"MM":case"LL":i=ii(ln.Month,2,1);break;case"MMM":i=Dn(cn.Months,xn.Abbreviated);break;case"MMMM":i=Dn(cn.Months,xn.Wide);break;case"MMMMM":i=Dn(cn.Months,xn.Narrow);break;case"LLL":i=Dn(cn.Months,xn.Abbreviated,qi.Standalone);break;case"LLLL":i=Dn(cn.Months,xn.Wide,qi.Standalone);break;case"LLLLL":i=Dn(cn.Months,xn.Narrow,qi.Standalone);break;case"w":i=f0(1);break;case"ww":i=f0(2);break;case"W":i=f0(1,!0);break;case"d":i=ii(ln.Date,1);break;case"dd":i=ii(ln.Date,2);break;case"c":case"cc":i=ii(ln.Day,1);break;case"ccc":i=Dn(cn.Days,xn.Abbreviated,qi.Standalone);break;case"cccc":i=Dn(cn.Days,xn.Wide,qi.Standalone);break;case"ccccc":i=Dn(cn.Days,xn.Narrow,qi.Standalone);break;case"cccccc":i=Dn(cn.Days,xn.Short,qi.Standalone);break;case"E":case"EE":case"EEE":i=Dn(cn.Days,xn.Abbreviated);break;case"EEEE":i=Dn(cn.Days,xn.Wide);break;case"EEEEE":i=Dn(cn.Days,xn.Narrow);break;case"EEEEEE":i=Dn(cn.Days,xn.Short);break;case"a":case"aa":case"aaa":i=Dn(cn.DayPeriods,xn.Abbreviated);break;case"aaaa":i=Dn(cn.DayPeriods,xn.Wide);break;case"aaaaa":i=Dn(cn.DayPeriods,xn.Narrow);break;case"b":case"bb":case"bbb":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Standalone,!0);break;case"bbbb":i=Dn(cn.DayPeriods,xn.Wide,qi.Standalone,!0);break;case"bbbbb":i=Dn(cn.DayPeriods,xn.Narrow,qi.Standalone,!0);break;case"B":case"BB":case"BBB":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Format,!0);break;case"BBBB":i=Dn(cn.DayPeriods,xn.Wide,qi.Format,!0);break;case"BBBBB":i=Dn(cn.DayPeriods,xn.Narrow,qi.Format,!0);break;case"h":i=ii(ln.Hours,1,-12);break;case"hh":i=ii(ln.Hours,2,-12);break;case"H":i=ii(ln.Hours,1);break;case"HH":i=ii(ln.Hours,2);break;case"m":i=ii(ln.Minutes,1);break;case"mm":i=ii(ln.Minutes,2);break;case"s":i=ii(ln.Seconds,1);break;case"ss":i=ii(ln.Seconds,2);break;case"S":i=ii(ln.FractionalSeconds,1);break;case"SS":i=ii(ln.FractionalSeconds,2);break;case"SSS":i=ii(ln.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=sh(Vs.Short);break;case"ZZZZZ":i=sh(Vs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=sh(Vs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=sh(Vs.Long);break;default:return null}return g0[t]=i,i}(u);c+=p?p(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ih(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Bs(t,i){const e=function x8(t){return Ki(t)[En.LocaleId]}(t);if(nu[e]=nu[e]||{},nu[e][i])return nu[e][i];let n="";switch(i){case"shortDate":n=eh(t,mo.Short);break;case"mediumDate":n=eh(t,mo.Medium);break;case"longDate":n=eh(t,mo.Long);break;case"fullDate":n=eh(t,mo.Full);break;case"shortTime":n=th(t,mo.Short);break;case"mediumTime":n=th(t,mo.Medium);break;case"longTime":n=th(t,mo.Long);break;case"fullTime":n=th(t,mo.Full);break;case"short":const o=Bs(t,"shortTime"),s=Bs(t,"shortDate");n=oh(nh(t,mo.Short),[o,s]);break;case"medium":const r=Bs(t,"mediumTime"),a=Bs(t,"mediumDate");n=oh(nh(t,mo.Medium),[r,a]);break;case"long":const l=Bs(t,"longTime"),c=Bs(t,"longDate");n=oh(nh(t,mo.Long),[l,c]);break;case"full":const u=Bs(t,"fullTime"),p=Bs(t,"fullDate");n=oh(nh(t,mo.Full),[u,p])}return n&&(nu[e][i]=n),n}function oh(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Ko(t,i,e="-",n,o){let s="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,s=e));let r=String(t);for(;r.length0||a>-e)&&(a+=e),t===ln.Hours)0===a&&-12===e&&(a=12);else if(t===ln.FractionalSeconds)return function V8(t,i){return Ko(t,3).substring(0,i)}(a,i);const l=ko(r,Xn.MinusSign);return Ko(a,i,l,n,o)}}function Dn(t,i,e=qi.Format,n=!1){return function(o,s){return function H8(t,i,e,n,o,s){switch(e){case cn.Months:return function T8(t,i,e){const n=Ki(t),s=Mo([n[En.MonthsFormat],n[En.MonthsStandalone]],i);return Mo(s,e)}(i,o,n)[t.getMonth()];case cn.Days:return function w8(t,i,e){const n=Ki(t),s=Mo([n[En.DaysFormat],n[En.DaysStandalone]],i);return Mo(s,e)}(i,o,n)[t.getDay()];case cn.DayPeriods:const r=t.getHours(),a=t.getMinutes();if(s){const c=function k8(t){const i=Ki(t);return Q2(i),(i[En.ExtraData][2]||[]).map(n=>"string"==typeof n?h0(n):[h0(n[0]),h0(n[1])])}(i),u=function M8(t,i,e){const n=Ki(t);Q2(n);const s=Mo([n[En.ExtraData][0],n[En.ExtraData][1]],i)||[];return Mo(s,e)||[]}(i,o,n),p=c.findIndex(m=>{if(Array.isArray(m)){const[_,b]=m,E=r>=_.hours&&a>=_.minutes,P=r0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Vs.Short:return(o>=0?"+":"")+Ko(r,2,s)+Ko(Math.abs(o%60),2,s);case Vs.ShortGMT:return"GMT"+(o>=0?"+":"")+Ko(r,1,s);case Vs.Long:return"GMT"+(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);case Vs.Extended:return 0===n?"Z":(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const z8=0,rh=4;function Z2(t){return ih(t.getFullYear(),t.getMonth(),t.getDate()+(rh-t.getDay()))}function f0(t,i=!1){return function(e,n){let o;if(i){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,r=e.getDate();o=1+Math.floor((r+s)/7)}else{const s=Z2(e),r=function j8(t){const i=ih(t,z8,1).getDay();return ih(t,0,1+(i<=rh?rh:rh+7)-i)}(s.getFullYear()),a=s.getTime()-r.getTime();o=1+Math.round(a/6048e5)}return Ko(o,t,ko(n,Xn.MinusSign))}}function ah(t,i=!1){return function(e,n){return Ko(Z2(e).getFullYear(),t,ko(n,Xn.MinusSign),i)}}const g0={};function Y2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function X2(t){return t instanceof Date&&!isNaN(t.valueOf())}function nT(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[o,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(s)}return null}const b0=/\s+/,iT=[];let Ct=(()=>{class t{constructor(e,n,o,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=o,this._renderer=s,this.initialClasses=iT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(b0):iT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(b0):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(b0).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(n){return new(n||t)(V(Yp),V(yl),V(bt),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class rV{constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((o,s,r)=>{if(null==o.previousIndex)n.createEmbeddedView(this._template,new rV(o.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===s?void 0:s);else if(null!==s){const a=n.get(s);n.move(a,r),sT(a,o)}});for(let o=0,s=n.length;o{sT(n.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(Yp))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function sT(t,i){t.context.$implicit=i.item}let gt=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new aV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rT("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class aV{constructor(){this.$implicit=null,this.ngIf=null}}function rT(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ai(i)}'.`)}class y0{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let wl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),ch=(()=>{class t{constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new y0(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),x0=(()=>{class t{constructor(e,n,o){o._addDefault(new y0(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),Ht=(()=>{class t{constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[o,s]=e.split("."),r=-1===o.indexOf("-")?void 0:dr.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,r):this._renderer.removeStyle(this._ngEl.nativeElement,o,r)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(V(bt),V(yl),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),on=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:r}=this;this._viewRef=n.createEmbeddedView(o,s,r?{injector:r}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(V(go))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]})}return t})();const CV=new Ye("DATE_PIPE_DEFAULT_TIMEZONE"),vV=new Ye("DATE_PIPE_DEFAULT_OPTIONS");let Hs=(()=>{class t{constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,s){if(null==e||""===e||e!=e)return null;try{return N8(e,n??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(r){throw function Go(t,i){return new Ae(2100,!1)}()}}static#e=this.\u0275fac=function(n){return new(n||t)(V(us,16),V(CV,24),V(vV,24))};static#t=this.\u0275pipe=Vi({name:"date",type:t,pure:!0,standalone:!0})}return t})(),Xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();const cT="browser";function ei(t){return t===cT}function uT(t){return"server"===t}let LV=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new PV(Ze(Wt),window)})}return t})();class PV{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function FV(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=n.currentNode;for(;o;){const s=o.shadowRoot;if(s){const r=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(r)return r}o=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],o-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class dT{}class oB extends m8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class E0 extends oB{static makeCurrent(){!function g8(t){l0||(l0=t)}(new E0)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function sB(){return su=su||document.querySelector("base"),su?su.getAttribute("href"):null}();return null==e?null:function rB(t){ph=ph||document.createElement("a"),ph.setAttribute("href",t);const i=ph.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return nT(document.cookie,i)}}let ph,su=null,lB=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const D0=new Ye("EventManagerPlugins");let mT=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,o){return this._findPluginFor(n).addEventListener(e,n,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new Ae(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(D0),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class _T{constructor(i){this._doc=i}}const k0="ng-app-id";let IT=(()=>{class t{constructor(e,n,o,s={}){this.doc=e,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uT(s),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(o=>o.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${k0}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(o=>{null!=o.textContent&&n.set(o.textContent,o)}),n}return null}changeUsageCount(e,n){const o=this.styleRef;if(o.has(e)){const s=o.get(e);return s.usage+=n,s.usage}return o.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===e)return o.delete(n),s.removeAttribute(k0),s;{const r=this.doc.createElement("style");return this.nonce&&r.setAttribute("nonce",this.nonce),r.textContent=n,this.platformIsServer&&r.setAttribute(k0,this.appId),r}}addStyleToHost(e,n){const o=this.getStyleElement(e,n);e.appendChild(o);const s=this.styleRef,r=s.get(n)?.elements;r?r.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(hp),Ze(Oy,8),Ze($n))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const M0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},O0=/%COMP%/g,pB=new Ye("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vT(t,i){return i.map(e=>e.replace(O0,t))}let L0=(()=>{class t{constructor(e,n,o,s,r,a,l,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=r,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uT(a),this.defaultRenderer=new P0(e,r,l,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===To.ShadowDom&&(n={...n,encapsulation:To.Emulated});const o=this.getOrCreateRenderer(e,n);return o instanceof yT?o.applyToHost(e):o instanceof F0&&o.applyStyles(),o}getOrCreateRenderer(e,n){const o=this.rendererByCompId;let s=o.get(n.id);if(!s){const r=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case To.Emulated:s=new yT(l,c,n,this.appId,u,r,a,p);break;case To.ShadowDom:return new mB(l,c,e,n,r,a,this.nonce,p);default:s=new F0(l,c,n,u,r,a,p)}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(mT),Ze(IT),Ze(hp),Ze(pB),Ze(Wt),Ze($n),Ze(Tt),Ze(Oy))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class P0{constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(M0[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(bT(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(bT(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?this.doc.querySelector(i):i;if(!n)throw new Ae(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;const s=M0[o];s?i.setAttributeNS(s,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const o=M0[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(dr.DashCase|dr.Important)?i.style.setProperty(e,n,o&dr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&dr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){if("string"==typeof i&&!(i=_r().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if("__ngUnwrap__"===e)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))&&e.preventDefault()}}}function bT(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class mB extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vT(o.id,o.styles);for(const u of c){const p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class F0 extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?vT(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class yT extends F0{constructor(i,e,n,o,s,r,a,l){const c=o+"-"+n.id;super(i,e,n,s,r,a,l,c),this.contentAttr=function hB(t){return"_ngcontent-%COMP%".replace(O0,t)}(c),this.hostAttr=function fB(t){return"_nghost-%COMP%".replace(O0,t)}(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let _B=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o){return e.addEventListener(n,o,!1),()=>this.removeEventListener(e,n,o)}removeEventListener(e,n,o){return e.removeEventListener(n,o)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const xT=["alt","control","meta","shift"],IB={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let vB=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,o){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(n.pop());let r="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),r="code."),xT.forEach(c=>{const u=n.indexOf(c);u>-1&&(n.splice(u,1),r+=c+".")}),r+=s,0!=n.length||0===s.length)return null;const l={};return l.domEventName=o,l.fullKey=r,l}static matchEventFullKeyCode(e,n){let o=IB[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(o=e.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),xT.forEach(r=>{r!==o&&(0,CB[r])(e)&&(s+=r+".")}),s+=o,s===n)}static eventCallback(e,n,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const AB=_2(e8,"browser",[{provide:$n,useValue:cT},{provide:ky,useValue:function bB(){E0.makeCurrent()},multi:!0},{provide:Wt,useFactory:function xB(){return function C5(t){Cm=t}(document),document},deps:[]}]),wB=new Ye(""),TT=[{provide:qp,useClass:class aB{addToWindow(i){Tn.getAngularTestability=(n,o=!0)=>{const s=i.findTestabilityInTree(n,o);if(null==s)throw new Ae(5103,!1);return s},Tn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Tn.getAllAngularRootElements=()=>i.getAllRootElements(),Tn.frameworkStabilizers||(Tn.frameworkStabilizers=[]),Tn.frameworkStabilizers.push(n=>{const o=Tn.getAllAngularTestabilities();let s=o.length,r=!1;const a=function(l){r=r||l,s--,0==s&&n(r)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:p2,useClass:Z_,deps:[Tt,Y_,qp]},{provide:Z_,useClass:Z_,deps:[Tt,Y_,qp]}],ST=[{provide:Dm,useValue:"root"},{provide:Ps,useFactory:function yB(){return new Ps},deps:[]},{provide:D0,useClass:_B,multi:!0,deps:[Wt,Tt,$n]},{provide:D0,useClass:vB,multi:!0,deps:[Wt]},L0,IT,mT,{provide:Pc,useExisting:L0},{provide:dT,useClass:lB,deps:[]},[]];let R0=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:hp,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wB,12))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[...ST,...TT],imports:[Xe,t8]})}return t})(),ET=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:function(n){let o=null;return o=n?new n:function SB(){return new ET(Ze(Wt))}(),o},providedIn:"root"})}return t})();typeof window<"u"&&window;const{isArray:OB}=Array,{getPrototypeOf:LB,prototype:PB,keys:FB}=Object;function OT(t){if(1===t.length){const i=t[0];if(OB(i))return{args:i,keys:null};if(function RB(t){return t&&"object"==typeof t&&LB(t)===PB}(i)){const e=FB(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:NB}=Array;function V0(t){return at(i=>function VB(t,i){return NB(i)?t(...i):t(i)}(t,i))}function LT(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}let PT=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt))};static#t=this.\u0275dir=ut({type:t})}return t})(),ia=(()=>{class t extends PT{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275dir=ut({type:t,features:[st]})}return t})();const un=new Ye("NgValueAccessor"),zB={provide:un,useExisting:ft(()=>B0),multi:!0},UB=new Ye("CompositionEventMode");let B0=(()=>{class t extends PT{constructor(e,n,o){super(e,n),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jB(){const t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt),V(UB,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){1&n&&me("input",function(r){return o._handleInput(r.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(r){return o._compositionEnd(r.target.value)})},features:[yt([zB]),st]})}return t})();const Si=new Ye("NgValidators"),br=new Ye("NgAsyncValidators");function KT(t){return null!=t}function GT(t){return Kc(t)?ri(t):t}function qT(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function WT(t,i){return i.map(e=>e(t))}function QT(t){return t.map(i=>function KB(t){return!t.validate}(i)?i:e=>i.validate(e))}function H0(t){return null!=t?function ZT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return qT(WT(e,i))}}(QT(t)):null}function z0(t){return null!=t?function YT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return function BB(...t){const i=Yv(t),{args:e,keys:n}=OT(t),o=new ce(s=>{const{length:r}=e;if(!r)return void s.complete();const a=new Array(r);let l=r,c=r;for(let u=0;u{p||(p=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!p)&&(c||s.next(n?LT(n,a):a),s.complete())}))}});return i?o.pipe(V0(i)):o}(WT(e,i).map(GT)).pipe(at(qT))}}(QT(t)):null}function XT(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function j0(t){return t?Array.isArray(t)?t:[t]:[]}function fh(t,i){return Array.isArray(t)?t.includes(i):t===i}function tS(t,i){const e=j0(i);return j0(t).forEach(o=>{fh(e,o)||e.push(o)}),e}function nS(t,i){return j0(i).filter(e=>!fh(t,e))}class iS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=H0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=z0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Wi extends iS{get formDirective(){return null}get path(){return null}}class ds extends iS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oS{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let sS=(()=>{class t extends oS{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(ds,2))};static#t=this.\u0275dir=ut({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){2&n&&Ii("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[st]})}return t})();const ru="VALID",mh="INVALID",Tl="PENDING",au="DISABLED";function _h(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class cS{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===ru}get invalid(){return this.status===mh}get pending(){return this.status==Tl}get disabled(){return this.status===au}get enabled(){return this.status!==au}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(tS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(tS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(nS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(nS(i,this._rawAsyncValidators))}hasValidator(i){return fh(this._rawValidators,i)}hasAsyncValidator(i){return fh(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tl,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=au,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=ru,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ru||this.status===Tl)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?au:ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tl,this._hasOwnPendingAsyncValidator=!0;const e=GT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?au:this.errors?mh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tl)?Tl:this._anyControlsHaveStatus(mh)?mh:ru}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){_h(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function ZB(t){return Array.isArray(t)?H0(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function YB(t){return Array.isArray(t)?z0(t):t||null}(this._rawAsyncValidators)}}const Sl=new Ye("CallSetDisabledState",{providedIn:"root",factory:()=>Ih}),Ih="always";function lu(t,i,e=Ih){(function W0(t,i){const e=function JT(t){return t._rawValidators}(t);null!==i.validator?t.setValidators(XT(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=function eS(t){return t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(XT(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const o=()=>t.updateValueAndValidity();bh(i._rawValidators,o),bh(i._rawAsyncValidators,o)})(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function eH(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&uS(t,i)})}(t,i),function nH(t,i){const e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function tH(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&uS(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function JB(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function bh(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function uS(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function hS(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function fS(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const gS=class extends cS{constructor(i=null,e,n){super(function K0(t){return(_h(t)?t.validators:t)||null}(e),function G0(t,i){return(_h(i)?i.asyncValidators:t)||null}(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_h(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=fS(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){hS(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){hS(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){fS(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},uH={provide:ds,useExisting:ft(()=>xh)},IS=(()=>Promise.resolve())();let xh=(()=>{class t extends ds{constructor(e,n,o,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this.control=new gS,this._registered=!1,this.name="",this.update=new ge,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=function Y0(t,i){if(!i)return null;let e,n,o;return Array.isArray(i),i.forEach(s=>{s.constructor===B0?e=s:function sH(t){return Object.getPrototypeOf(t.constructor)===ia}(s)?n=s:o=s}),o||n||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Z0(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){IS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,o=0!==n&&xl(n);IS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Ch(t,i){return[...i.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi,9),V(Si,10),V(br,10),V(un,10),V(Ft,8),V(Sl,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([uH]),st,Hn]})}return t})(),vS=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})(),FH=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[vS]})}return t})(),uu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sl,useValue:e.callSetDisabledState??Ih}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[FH]})}return t})();function El(t,i){return L(i)?si(t,i,1):si(t,1)}function zs(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>t.call(i,s,o++)&&n.next(s)))})}function du(t){return Me((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}class Ah{}class wh{}class qo{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const o=e.slice(0,n),s=o.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof qo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const o=("a"===i.op?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":const s=i.value;if(s){let r=this.headers.get(e);if(!r)return;r=r.filter(a=>-1===s.indexOf(a)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(i,e){const n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class NH{encodeKey(i){return VS(i)}encodeValue(i){return VS(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const BH=/%(\d[a-f0-9])/gi,HH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VS(t){return encodeURIComponent(t).replace(BH,(i,e)=>HH[e]??i)}function Th(t){return`${t}`}class yr{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new NH,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function VH(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[r,a]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],l=e.get(r)||[];l.push(a),e.set(r,l)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],o=Array.isArray(n)?n.map(Th):[Th(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new yr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Th(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(Th(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class zH{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function BS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function HS(t){return typeof Blob<"u"&&t instanceof Blob}function zS(t){return typeof FormData<"u"&&t instanceof FormData}class pu{constructor(i,e,n,o){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function jH(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qo),this.context||(this.context=new zH),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ap.set(m,i.setHeaders[m]),l)),i.setParams&&(c=Object.keys(i.setParams).reduce((p,m)=>p.set(m,i.setParams[m]),c)),new pu(e,n,s,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:r})}}var Dl=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Dl||{});class sI{constructor(i,e=200,n="OK"){this.headers=i.headers||new qo,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class rI extends sI{constructor(i={}){super(i),this.type=Dl.ResponseHeader}clone(i={}){return new rI({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class kl extends sI{constructor(i={}){super(i),this.type=Dl.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new kl({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class jS extends sI{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function aI(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let lI=(()=>{class t{constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof pu)s=e;else{let l,c;l=o.headers instanceof qo?o.headers:new qo(o.headers),o.params&&(c=o.params instanceof yr?o.params:new yr({fromObject:o.params})),s=new pu(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const r=ht(s).pipe(El(l=>this.handler.handle(l)));if(e instanceof pu||"events"===o.observe)return r;const a=r.pipe(zs(l=>l instanceof kl));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(at(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(at(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new yr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,aI(o,n))}post(e,n,o={}){return this.request("POST",e,aI(o,n))}put(e,n,o={}){return this.request("PUT",e,aI(o,n))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Ah))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function KS(t,i){return i(t)}function KH(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}const qH=new Ye(""),hu=new Ye(""),GS=new Ye("");function WH(){let t=null;return(i,e)=>{null===t&&(t=(et(qH,{optional:!0})??[]).reduceRight(KH,KS));const n=et(Kp),o=n.add();return t(i,e).pipe(du(()=>n.remove(o)))}}let qS=(()=>{class t extends Ah{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=et(Kp)}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(hu),...this.injector.get(GS,[])]));this.chain=o.reduceRight((s,r)=>function GH(t,i,e){return(n,o)=>e.runInContext(()=>i(n,s=>t(s,o)))}(s,r,this.injector),KS)}const n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(du(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wh),Ze(po))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const XH=/^\)\]\}',?\n/;let QS=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Ae(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?ri(n.\u0275loadImpl()):ht(null)).pipe(Ao(()=>new ce(s=>{const r=n.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((E,P)=>r.setRequestHeader(E,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&r.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();r.responseType="json"!==E?E:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const E=r.statusText||"OK",P=new qo(r.getAllResponseHeaders()),W=function JH(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new rI({headers:P,status:r.status,statusText:E,url:W}),l},u=()=>{let{headers:E,status:P,statusText:W,url:te}=c(),fe=null;204!==P&&(fe=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=fe?200:0);let Ce=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof fe){const ve=fe;fe=fe.replace(XH,"");try{fe=""!==fe?JSON.parse(fe):null}catch(ke){fe=ve,Ce&&(Ce=!1,fe={error:ke,text:fe})}}Ce?(s.next(new kl({body:fe,headers:E,status:P,statusText:W,url:te||void 0})),s.complete()):s.error(new jS({error:fe,headers:E,status:P,statusText:W,url:te||void 0}))},p=E=>{const{url:P}=c(),W=new jS({error:E,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});s.error(W)};let m=!1;const _=E=>{m||(s.next(c()),m=!0);let P={type:Dl.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),s.next(P)},b=E=>{let P={type:Dl.UploadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),s.next(P)};return r.addEventListener("load",u),r.addEventListener("error",p),r.addEventListener("timeout",p),r.addEventListener("abort",p),e.reportProgress&&(r.addEventListener("progress",_),null!==a&&r.upload&&r.upload.addEventListener("progress",b)),r.send(a),s.next({type:Dl.Sent}),()=>{r.removeEventListener("error",p),r.removeEventListener("abort",p),r.removeEventListener("load",u),r.removeEventListener("timeout",p),e.reportProgress&&(r.removeEventListener("progress",_),null!==a&&r.upload&&r.upload.removeEventListener("progress",b)),r.readyState!==r.DONE&&r.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(dT))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const cI=new Ye("XSRF_ENABLED"),ZS=new Ye("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),YS=new Ye("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class XS{}let nz=(()=>{class t{constructor(e,n,o){this.doc=e,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=nT(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze($n),Ze(ZS))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function iz(t,i){const e=t.url.toLowerCase();if(!et(cI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=et(XS).getToken(),o=et(YS);return null!=n&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var xr=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(xr||{});function oz(...t){const i=[lI,QS,qS,{provide:Ah,useExisting:qS},{provide:wh,useExisting:QS},{provide:hu,useValue:iz,multi:!0},{provide:cI,useValue:!0},{provide:XS,useClass:nz}];for(const e of t)i.push(...e.\u0275providers);return function Tm(t){return{\u0275providers:t}}(i)}const JS=new Ye("LEGACY_INTERCEPTOR_FN");function sz(){return function sa(t,i){return{\u0275kind:t,\u0275providers:i}}(xr.LegacyInterceptors,[{provide:JS,useFactory:WH},{provide:hu,useExisting:JS,multi:!0}])}let eE=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[oz(sz())]})}return t})();class tE{}class dz{}const js="*";function Oo(t,i){return{type:7,name:t,definitions:i,options:{}}}function On(t,i=null){return{type:4,styles:i,timings:t}}function nE(t,i=null){return{type:2,steps:t,options:i}}function en(t){return{type:6,styles:t,offset:null}}function Us(t,i,e){return{type:0,name:t,styles:i,options:e}}function Ln(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ml(t,i=null){return{type:8,animation:t,options:i}}function Eh(t,i=null){return{type:10,animation:t,options:i}}class fu{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class iE{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,o=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==s&&this._onFinish()}),r.onDestroy(()=>{++n==s&&this._onDestroy()}),r.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function oE(t){return new Ae(3e3,!1)}function Ar(t){switch(t.length){case 0:return new fu;case 1:return t[0];default:return new iE(t)}}function sE(t,i,e=new Map,n=new Map){const o=[],s=[];let r=-1,a=null;if(i.forEach(l=>{const c=l.get("offset"),u=c==r,p=u&&a||new Map;l.forEach((m,_)=>{let b=_,E=m;if("offset"!==_)switch(b=t.normalizePropertyName(b,o),E){case"!":E=e.get(_);break;case js:E=n.get(_);break;default:E=t.normalizeStyleValue(_,b,E,o)}p.set(b,E)}),u||s.push(p),a=p,r=c}),o.length)throw function Pz(t){return new Ae(3502,!1)}();return s}function dI(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&pI(e,"start",t)));break;case"done":t.onDone(()=>n(e&&pI(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&pI(e,"destroy",t)))}}function pI(t,i,e){const s=hI(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),r=t._data;return null!=r&&(s._data=r),s}function hI(t,i,e,n,o="",s=0,r){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:s,disabled:!!r}}function _o(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function rE(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}const Gz=(()=>typeof document>"u"?null:document.documentElement)();function fI(t){const i=t.parentNode||t.host||null;return i===Gz?null:i}let ra=null,aE=!1;function lE(t,i){for(;i;){if(i===t)return!0;i=fI(i)}return!1}function cE(t,i,e){if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]}let uE=(()=>{class t{validateStyleProperty(e){return function Wz(t){ra||(ra=function Qz(){return typeof document<"u"?document.body:null}()||{},aE=!!ra.style&&"WebkitAppearance"in ra.style);let i=!0;return ra.style&&!function qz(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in ra.style,!i&&aE&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in ra.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return lE(e,n)}getParentElement(e){return fI(e)}query(e,n,o){return cE(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,s,r,a=[],l){return new fu(o,s)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),gI=(()=>{class t{static#e=this.NOOP=new uE}return t})();const Zz=1e3,mI="ng-enter",Dh="ng-leave",kh="ng-trigger",Mh=".ng-trigger",pE="ng-animating",_I=".ng-animating";function $s(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:II(parseFloat(i[1]),i[2])}function II(t,i){return"s"===i?t*Zz:t}function Oh(t,i,e){return t.hasOwnProperty("duration")?t:function Xz(t,i,e){let o,s=0,r="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return i.push(oE()),{duration:0,delay:0,easing:""};o=II(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=II(parseFloat(l),a[4]));const c=a[5];c&&(r=c)}else o=t;if(!e){let a=!1,l=i.length;o<0&&(i.push(function pz(){return new Ae(3100,!1)}()),a=!0),s<0&&(i.push(function hz(){return new Ae(3101,!1)}()),a=!0),a&&i.splice(l,0,oE())}return{duration:o,delay:s,easing:r}}(t,i,e)}function gu(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function hE(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function wr(t,i=new Map,e){if(e)for(let[n,o]of e)i.set(n,o);for(let[n,o]of t)i.set(n,o);return i}function ps(t,i,e){i.forEach((n,o)=>{const s=vI(o);e&&!e.has(o)&&e.set(o,t.style[s]),t.style[s]=n})}function aa(t,i){i.forEach((e,n)=>{const o=vI(n);t.style[o]=""})}function mu(t){return Array.isArray(t)?1==t.length?t[0]:nE(t):t}const CI=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(t){let i=[];if("string"==typeof t){let e;for(;e=CI.exec(t);)i.push(e[1]);CI.lastIndex=0}return i}function _u(t,i,e){const n=t.toString(),o=n.replace(CI,(s,r)=>{let a=i[r];return null==a&&(e.push(function gz(t){return new Ae(3003,!1)}()),a=""),a.toString()});return o==n?t:o}function Lh(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const tj=/-+([a-z0-9])/g;function vI(t){return t.replace(tj,(...i)=>i[1].toUpperCase())}function Io(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function mz(t){return new Ae(3004,!1)}()}}function mE(t,i){return window.getComputedStyle(t)[i]}const Ph="*";function oj(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function sj(t,i,e){if(":"==t[0]){const l=function rj(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof l)return void i.push(l);t=l}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function Dz(t){return new Ae(3015,!1)}()),i;const o=n[1],s=n[2],r=n[3];i.push(_E(o,r));"<"==s[0]&&!(o==Ph&&r==Ph)&&i.push(_E(r,o))}(n,e,i)):e.push(t),e}const Fh=new Set(["true","1"]),Rh=new Set(["false","0"]);function _E(t,i){const e=Fh.has(t)||Rh.has(t),n=Fh.has(i)||Rh.has(i);return(o,s)=>{let r=t==Ph||t==o,a=i==Ph||i==s;return!r&&e&&"boolean"==typeof o&&(r=o?Fh.has(t):Rh.has(t)),!a&&n&&"boolean"==typeof s&&(a=s?Fh.has(i):Rh.has(i)),r&&a}}const aj=new RegExp("s*:selfs*,?","g");function bI(t,i,e,n){return new lj(t).build(i,e,n)}class lj{constructor(i){this._driver=i}build(i,e,n){const o=new dj(e);return this._resetContextStyleTimingState(o),Io(this,mu(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0;const s=[],r=[];return"@"==i.name.charAt(0)&&e.errors.push(function Iz(){return new Ae(3006,!1)}()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,o+=l.depCount,r.push(l)}else e.errors.push(function Cz(){return new Ae(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:r,queryCount:n,depCount:o,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{gE(l).forEach(c=>{r.hasOwnProperty(c)||s.add(c)})})}),s.size&&(Lh(s.values()),e.errors.push(function vz(t,i){return new Ae(3008,!1)}()))}return{type:0,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=Io(this,mu(i.animation),e);return{type:1,matchers:oj(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:la(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>Io(this,n,e)),options:la(i.options)}}visitGroup(i,e){const n=e.currentTime;let o=0;const s=i.steps.map(r=>{e.currentTime=n;const a=Io(this,r,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:s,options:la(i.options)}}visitAnimate(i,e){const n=function hj(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return yI(Oh(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=yI(0,0,"");return s.dynamic=!0,s.strValue=e,s}const o=Oh(e,i);return yI(o.duration,o.delay,o.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let o,s=i.styles?i.styles:en({});if(5==s.type)o=this.visitKeyframes(s,e);else{let r=i.styles,a=!1;if(!r){a=!0;const c={};n.easing&&(c.easing=n.easing),r=en(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(r,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of o)"string"==typeof a?a===js?n.push(a):e.errors.push(new Ae(3002,!1)):n.push(hE(a));let s=!1,r=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(r=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let o=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),i.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let p=!0;u&&(s!=o&&s>=u.startTime&&o<=u.endTime&&(e.errors.push(function yz(t,i,e,n,o){return new Ae(3010,!1)}()),p=!1),s=u.startTime),p&&c.set(l,{startTime:s,endTime:o}),e.options&&function ej(t,i,e){const n=i.params||{},o=gE(t);o.length&&o.forEach(s=>{n.hasOwnProperty(s)||e.push(function fz(t){return new Ae(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function xz(){return new Ae(3011,!1)}()),n;let s=0;const r=[];let a=!1,l=!1,c=0;const u=i.steps.map(W=>{const te=this._makeStyleAst(W,e);let fe=null!=te.offset?te.offset:function pj(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(te.styles),Ce=0;return null!=fe&&(s++,Ce=te.offset=fe),l=l||Ce<0||Ce>1,a=a||Ce0&&s{const fe=m>0?te==_?1:m*te:r[te],Ce=fe*P;e.currentTime=b+E.delay+Ce,E.duration=Ce,this._validateStyleAst(W,e),W.offset=fe,n.styles.push(W)}),n}visitReference(i,e){return{type:8,animation:Io(this,mu(i.animation),e),options:la(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:la(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:la(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;const[s,r]=function cj(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(aj,"")),t=t.replace(/@\*/g,Mh).replace(/@\w+/g,e=>Mh+"-"+e.slice(1)).replace(/:animating/g,_I),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+s:s,_o(e.collectedStyles,e.currentQuerySelector,new Map);const a=Io(this,mu(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:r,animation:a,originalSelector:i.selector,options:la(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Sz(){return new Ae(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Oh(i.timings,e.errors,!0);return{type:12,animation:Io(this,mu(i.animation),e),timings:n,options:null}}}class dj{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function la(t){return t?(t=gu(t)).params&&(t.params=function uj(t){return t?gu(t):null}(t.params)):t={},t}function yI(t,i,e){return{duration:t,delay:i,easing:e}}function xI(t,i,e,n,o,s,r=null,a=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:s,totalTime:o+s,easing:r,subTimeline:a}}class Nh{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const mj=new RegExp(":enter","g"),Ij=new RegExp(":leave","g");function AI(t,i,e,n,o,s=new Map,r=new Map,a,l,c=[]){return(new Cj).buildKeyframes(t,i,e,n,o,s,r,a,l,c)}class Cj{buildKeyframes(i,e,n,o,s,r,a,l,c,u=[]){c=c||new Nh;const p=new wI(i,e,c,o,s,u,[]);p.options=l;const m=l.delay?$s(l.delay):0;p.currentTimeline.delayNextStep(m),p.currentTimeline.setStyles([r],null,p.errors,l),Io(this,n,p);const _=p.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let E=_.length-1;E>=0;E--){const P=_[E];if(P.element===e){b=P;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,p.errors,l)}return _.length?_.map(b=>b.buildKeyframes()):[xI(e,[],[],[],0,m,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const o=e.createSubContext(i.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const o of i){const s=o?.delay;if(s){const r="number"==typeof s?s:$s(_u(s,o?.params??{},e.errors));n.delayNextStep(r)}}}_visitSubInstructions(i,e,n){let s=e.currentTimeline.currentTime;const r=null!=n.duration?$s(n.duration):null,a=null!=n.delay?$s(n.delay):null;return 0!==r&&i.forEach(l=>{const c=e.appendInstructionToTimeline(l,r,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(i,e){e.updateOptions(i.options,!0),Io(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let o=e;const s=i.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Vh);const r=$s(s.delay);o.delayNextStep(r)}i.steps.length&&(i.steps.forEach(r=>Io(this,r,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let o=e.currentTimeline.currentTime;const s=i.options&&i.options.delay?$s(i.options.delay):0;i.steps.forEach(r=>{const a=e.createSubContext(i.options);s&&a.delayNextStep(s),Io(this,r,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return Oh(e.params?_u(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();const s=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(s):n.setStyles(i.styles,s,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,o=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,i.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+s),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,o=i.options||{},s=o.delay?$s(o.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vh);let r=n;const a=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const p=e.createSubContext(i.options,c);s&&p.delayNextStep(s),c===e.element&&(l=p.currentTimeline),Io(this,i.animation,p),p.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,p.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,o=e.currentTimeline,s=i.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let l=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const p=u.currentTime;Io(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-p+(o.startTime-n.currentTimeline.startTime)}}const Vh={};class wI{constructor(i,e,n,o,s,r,a,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let o=this.options;null!=n.duration&&(o.duration=$s(n.duration)),null!=n.delay&&(o.delay=$s(n.delay));const s=n.params;if(s){let r=o.params;r||(r=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=_u(s[a],r,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){const o=e||this.element,s=new wI(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=Vh,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},s=new vj(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,s,r){let a=[];if(o&&a.push(this.element),i.length>0){i=(i=i.replace(mj,"."+this._enterClassName)).replace(Ij,"."+this._leaveClassName);let c=this._driver.query(this.element,i,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&0==a.length&&r.push(function Ez(t){return new Ae(3014,!1)}()),a}}class Bh{constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Bh(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||js),this._currentKeyframe.set(e,js);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},r=function bj(t,i){const e=new Map;let n;return t.forEach(o=>{if("*"===o){n=n||i.keys();for(let s of n)e.set(s,js)}else wr(o,e)}),e}(i,this._globalTimelineStyles);for(let[a,l]of r){const c=_u(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??js),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=wr(a,new Map,this._backFill);c.forEach((u,p)=>{"!"===u?i.add(p):u===js&&e.add(p)}),n||c.set("offset",l/this.duration),o.push(c)});const s=i.size?Lh(i.values()):[],r=e.size?Lh(e.values()):[];if(n){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return xI(this.element,o,s,r,this.duration,this.startTime,this.easing,!1)}}class vj extends Bh{constructor(i,e,n,o,s,r,a=!1){super(i,e,r.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,a=e/r,l=wr(i[0]);l.set("offset",0),s.push(l);const c=wr(i[0]);c.set("offset",vE(a)),s.push(c);const u=i.length-1;for(let p=1;p<=u;p++){let m=wr(i[p]);const _=m.get("offset");m.set("offset",vE((e+_*n)/r)),s.push(m)}n=r,e=0,o="",i=s}return xI(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}}function vE(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class TI{}const yj=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 xj extends TI{normalizePropertyName(i,e){return vI(i)}normalizeStyleValue(i,e,n,o){let s="";const r=n.toString().trim();if(yj.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function _z(t,i){return new Ae(3005,!1)}())}return r+s}}function bE(t,i,e,n,o,s,r,a,l,c,u,p,m){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:s,toState:n,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:m}}const SI={};class yE{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return function Aj(t,i,e,n,o){return t.some(s=>s(i,e,n,o))}(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return void 0!==i&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,s,r,a,l,c,u){const p=[],m=this.ast.options&&this.ast.options.params||SI,b=this.buildStyles(n,a&&a.params||SI,p),E=l&&l.params||SI,P=this.buildStyles(o,E,p),W=new Set,te=new Map,fe=new Map,Ce="void"===o,ve={params:wj(E,m),delay:this.ast.options?.delay},ke=u?[]:AI(i,e,this.ast.animation,s,r,b,P,ve,c,p);let Pe=0;if(ke.forEach(Ke=>{Pe=Math.max(Ke.duration+Ke.delay,Pe)}),p.length)return bE(e,this._triggerName,n,o,Ce,b,P,[],[],te,fe,Pe,p);ke.forEach(Ke=>{const pt=Ke.element,jt=_o(te,pt,new Set);Ke.preStyleProps.forEach(vn=>jt.add(vn));const Vt=_o(fe,pt,new Set);Ke.postStyleProps.forEach(vn=>Vt.add(vn)),pt!==e&&W.add(pt)});const $e=Lh(W.values());return bE(e,this._triggerName,n,o,Ce,b,P,ke,$e,te,fe,Pe)}}function wj(t,i){const e=gu(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class Tj{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,o=gu(this.defaultParams);return Object.keys(i).forEach(s=>{const r=i[s];null!==r&&(o[s]=r)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((r,a)=>{r&&(r=_u(r,o,e));const l=this.normalizer.normalizePropertyName(a,e);r=this.normalizer.normalizeStyleValue(a,l,r,e),n.set(a,r)})}),n}}class Ej{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new Tj(o.style,o.options&&o.options.params||{},n))}),xE(this.states,"true","1"),xE(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new yE(i,o,this.states))}),this.fallbackTransition=function Dj(t,i,e){return new yE(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,a)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(r=>r.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function xE(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const kj=new Nh;class Mj{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],s=bI(this._driver,e,n,[]);if(n.length)throw function Fz(t){return new Ae(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,e,n){const o=i.element,s=sE(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,s,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const o=[],s=this._animations.get(i);let r;const a=new Map;if(s?(r=AI(this._driver,e,s,mI,Dh,new Map,new Map,n,kj,o),r.forEach(u=>{const p=_o(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(o.push(function Rz(){return new Ae(3300,!1)}()),r=[]),o.length)throw function Nz(t){return new Ae(3504,!1)}();a.forEach((u,p)=>{u.forEach((m,_)=>{u.set(_,this._driver.computeStyle(p,_,js))})});const c=Ar(r.map(u=>{const p=a.get(u.element);return this._buildPlayer(u,new Map,p)}));return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function Vz(t){return new Ae(3301,!1)}();return e}listen(i,e,n,o){const s=hI(e,"","","");return dI(this._getPlayer(i),n,s,o),()=>{}}command(i,e,n,o){if("register"==n)return void this.register(i,o[0]);if("create"==n)return void this.create(i,e,o[0]||{});const s=this._getPlayer(i);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i)}}}const AE="ng-animate-queued",EI="ng-animate-disabled",Rj=[],wE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wo="__ng_removed";class DI{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function zj(t){return t??null}(n?i.value:i),n){const s=gu(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(o=>{null==n[o]&&(n[o]=e[o])})}}}const Iu="void",kI=new DI(Iu);class Vj{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Lo(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw function Bz(t,i){return new Ae(3302,!1)}();if(null==n||0==n.length)throw function Hz(t){return new Ae(3303,!1)}();if(!function jj(t){return"start"==t||"done"==t}(n))throw function zz(t,i){return new Ae(3400,!1)}();const s=_o(this._elementListeners,i,[]),r={name:e,phase:n,callback:o};s.push(r);const a=_o(this._engine.statesByElement,i,new Map);return a.has(e)||(Lo(i,kh),Lo(i,kh+"-"+e),a.set(e,kI)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(r);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function jz(t){return new Ae(3401,!1)}();return e}trigger(i,e,n,o=!0){const s=this._getTrigger(e),r=new MI(this.id,e,i);let a=this._engine.statesByElement.get(i);a||(Lo(i,kh),Lo(i,kh+"-"+e),this._engine.statesByElement.set(i,a=new Map));let l=a.get(e);const c=new DI(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=kI),c.value!==Iu&&l.value===c.value){if(!function Kj(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let o=0;o{aa(i,P),ps(i,W)})}return}const m=_o(this._engine.playersByElement,i,[]);m.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let _=s.matchTransition(l.value,c.value,i,c.params),b=!1;if(!_){if(!o)return;_=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:_,fromState:l,toState:c,player:r,isFallbackTransition:b}),b||(Lo(i,AE),r.onStart(()=>{Ol(i,AE)})),r.onDone(()=>{let E=this.players.indexOf(r);E>=0&&this.players.splice(E,1);const P=this._engine.playersByElement.get(i);if(P){let W=P.indexOf(r);W>=0&&P.splice(W,1)}}),this.players.push(r),m.push(r),r}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,Mh,!0);n.forEach(o=>{if(o[Wo])return;const s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(r=>r.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){const s=this._engine.statesByElement.get(i),r=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){const u=this.trigger(i,c,Iu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,r),n&&Ar(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const o=new Set;e.forEach(s=>{const r=s.name;if(o.has(r))return;o.add(r);const l=this._triggers.get(r).fallbackTransition,c=n.get(r)||kI,u=new DI(Iu),p=new MI(this.id,r,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:r,transition:l,fromState:c,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(i):[];if(s&&s.length)o=!0;else{let r=i;for(;r=r.parentNode;)if(n.statesByElement.get(r)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{const s=i[Wo];(!s||s===wE)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Lo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const o=n.player;if(o.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(a=>{if(a.name==n.triggerName){const l=hI(s,n.triggerName,n.fromState.value,n.toState.value);l._data=i,dI(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{const s=n.transition.ast.depCount,r=o.transition.ast.depCount;return 0==s||0==r?s-r:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class Bj{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Vj(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,i),r=!0;break}a=this.driver.getParentElement(a)}r||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);const o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let o of n.values())if(o.namespaceId){const s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}return e}trigger(i,e,n,o){if(Hh(e)){const s=this._fetchNamespace(i);if(s)return s.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Hh(e))return;const s=e[Wo];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(i){const r=this._fetchNamespace(i);r&&r.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Lo(i,EI)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Ol(i,EI))}removeNode(i,e,n){if(Hh(e)){const o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);const s=this.namespacesByHostElement.get(e);s&&s.id!==i&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,s){this.collectedLeaveElements.push(e),e[Wo]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,e,n,o,s){return Hh(e)?this._fetchNamespace(i).listen(e,n,o,s):()=>{}}_buildInstruction(i,e,n,o,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,s)}destroyInnerAnimations(i){let e=this.driver.query(i,Mh,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,_I,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Ar(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Wo];if(e&&e.setForRemoval){if(i[Wo]=wE,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(EI)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?Ar(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw function Uz(t){return new Ae(3402,!1)}()}_flushAnimations(i,e){const n=new Nh,o=[],s=new Map,r=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(We=>{u.add(We);const tt=this.driver.query(We,".ng-animate-queued",!0);for(let ct=0;ct{const ct=mI+E++;b.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))});const P=[],W=new Set,te=new Set;for(let We=0;WeW.add(Kt)):te.add(tt))}const fe=new Map,Ce=EE(m,Array.from(W));Ce.forEach((We,tt)=>{const ct=Dh+E++;fe.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))}),i.push(()=>{_.forEach((We,tt)=>{const ct=b.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),Ce.forEach((We,tt)=>{const ct=fe.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),P.forEach(We=>{this.processLeaveNode(We)})});const ve=[],ke=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ct=>{const Kt=ct.player,Pn=ct.element;if(ve.push(Kt),this.collectedEnterElements.length){const Ri=Pn[Wo];if(Ri&&Ri.setForMove){if(Ri.previousTriggersValues&&Ri.previousTriggersValues.has(ct.triggerName)){const wa=Ri.previousTriggersValues.get(ct.triggerName),Vo=this.statesByElement.get(ct.element);if(Vo&&Vo.has(ct.triggerName)){const ug=Vo.get(ct.triggerName);ug.value=wa,Vo.set(ct.triggerName,ug)}}return void Kt.destroy()}}const Zi=!p||!this.driver.containsElement(p,Pn),oi=fe.get(Pn),ro=b.get(Pn),wn=this._buildInstruction(ct,n,ro,oi,Zi);if(wn.errors&&wn.errors.length)return void ke.push(wn);if(Zi)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);if(ct.isFallbackTransition)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);const ec=[];wn.timelines.forEach(Ri=>{Ri.stretchStartingKeyframe=!0,this.disabledNodes.has(Ri.element)||ec.push(Ri)}),wn.timelines=ec,n.append(Pn,wn.timelines),r.push({instruction:wn,player:Kt,element:Pn}),wn.queriedElements.forEach(Ri=>_o(a,Ri,[]).push(Kt)),wn.preStyleProps.forEach((Ri,wa)=>{if(Ri.size){let Vo=l.get(wa);Vo||l.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))}}),wn.postStyleProps.forEach((Ri,wa)=>{let Vo=c.get(wa);Vo||c.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))})});if(ke.length){const We=[];ke.forEach(tt=>{We.push(function $z(t,i){return new Ae(3505,!1)}())}),ve.forEach(tt=>tt.destroy()),this.reportError(We)}const Pe=new Map,$e=new Map;r.forEach(We=>{const tt=We.element;n.has(tt)&&($e.set(tt,tt),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,Pe))}),o.forEach(We=>{const tt=We.element;this._getPreviousPlayers(tt,!1,We.namespaceId,We.triggerName,null).forEach(Kt=>{_o(Pe,tt,[]).push(Kt),Kt.destroy()})});const Ke=P.filter(We=>kE(We,l,c)),pt=new Map;SE(pt,this.driver,te,c,js).forEach(We=>{kE(We,l,c)&&Ke.push(We)});const Vt=new Map;_.forEach((We,tt)=>{SE(Vt,this.driver,new Set(We),l,"!")}),Ke.forEach(We=>{const tt=pt.get(We),ct=Vt.get(We);pt.set(We,new Map([...tt?.entries()??[],...ct?.entries()??[]]))});const vn=[],hi=[],wt={};r.forEach(We=>{const{element:tt,player:ct,instruction:Kt}=We;if(n.has(tt)){if(u.has(tt))return ct.onDestroy(()=>ps(tt,Kt.toStyles)),ct.disabled=!0,ct.overrideTotalTime(Kt.totalTime),void o.push(ct);let Pn=wt;if($e.size>1){let oi=tt;const ro=[];for(;oi=oi.parentNode;){const wn=$e.get(oi);if(wn){Pn=wn;break}ro.push(oi)}ro.forEach(wn=>$e.set(wn,Pn))}const Zi=this._buildAnimation(ct.namespaceId,Kt,Pe,s,Vt,pt);if(ct.setRealPlayer(Zi),Pn===wt)vn.push(ct);else{const oi=this.playersByElement.get(Pn);oi&&oi.length&&(ct.parentPlayer=Ar(oi)),o.push(ct)}}else aa(tt,Kt.fromStyles),ct.onDestroy(()=>ps(tt,Kt.toStyles)),hi.push(ct),u.has(tt)&&o.push(ct)}),hi.forEach(We=>{const tt=s.get(We.element);if(tt&&tt.length){const ct=Ar(tt);We.setRealPlayer(ct)}}),o.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!Zi.destroyed);Pn.length?Uj(this,tt,Pn):this.processLeaveNode(tt)}return P.length=0,vn.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const tt=this.players.indexOf(We);this.players.splice(tt,1)}),We.play()}),vn}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,s){let r=[];if(e){const a=this.playersByQueriedElement.get(i);a&&(r=a)}else{const a=this.playersByElement.get(i);if(a){const l=!s||s==Iu;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||r.push(c)})}}return(n||o)&&(r=r.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),r}_beforeAnimationBuild(i,e,n){const s=e.element,r=e.isRemovalTransition?void 0:i,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,p=_o(n,c,[]);this._getPreviousPlayers(c,u,r,a,e.toState).forEach(_=>{const b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),p.push(_)})}aa(s,e.fromStyles)}_buildAnimation(i,e,n,o,s,r){const a=e.triggerName,l=e.element,c=[],u=new Set,p=new Set,m=e.timelines.map(b=>{const E=b.element;u.add(E);const P=E[Wo];if(P&&P.removedBeforeQueried)return new fu(b.duration,b.delay);const W=E!==l,te=function $j(t){const i=[];return DE(t,i),i}((n.get(E)||Rj).map(Pe=>Pe.getRealPlayer())).filter(Pe=>!!Pe.element&&Pe.element===E),fe=s.get(E),Ce=r.get(E),ve=sE(this._normalizer,b.keyframes,fe,Ce),ke=this._buildPlayer(b,ve,te);if(b.subTimeline&&o&&p.add(E),W){const Pe=new MI(i,a,E);Pe.setRealPlayer(ke),c.push(Pe)}return ke});c.forEach(b=>{_o(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function Hj(t,i,e){let n=t.get(i);if(n){if(n.length){const o=n.indexOf(e);n.splice(o,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>Lo(b,pE));const _=Ar(m);return _.onDestroy(()=>{u.forEach(b=>Ol(b,pE)),ps(l,e.toStyles)}),p.forEach(b=>{_o(o,b,[]).push(_)}),_}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new fu(i.duration,i.delay)}}class MI{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new fu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>dI(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){_o(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Hh(t){return t&&1===t.nodeType}function TE(t,i){const e=t.style.display;return t.style.display=i??"none",e}function SE(t,i,e,n,o){const s=[];e.forEach(l=>s.push(TE(l)));const r=[];n.forEach((l,c)=>{const u=new Map;l.forEach(p=>{const m=i.computeStyle(c,p,o);u.set(p,m),(!m||0==m.length)&&(c[Wo]=Nj,r.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>TE(l,s[a++])),r}function EE(t,i){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==i.length)return e;const o=new Set(i),s=new Map;function r(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:r(c),s.set(a,l),l}return i.forEach(a=>{const l=r(a);1!==l&&e.get(l).push(a)}),e}function Lo(t,i){t.classList?.add(i)}function Ol(t,i){t.classList?.remove(i)}function Uj(t,i,e){Ar(e).onDone(()=>t.processLeaveNode(i))}function DE(t,i){for(let e=0;eo.add(s)):i.set(t,n),e.delete(t),!0}class zh{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Bj(i,e,n),this._timelineEngine=new Mj(i,e,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,n,o,s){const r=i+"-"+o;let a=this._triggerCache[r];if(!a){const l=[],u=bI(this._driver,s,l,[]);if(l.length)throw function Lz(t,i){return new Ae(3404,!1)}();a=function Sj(t,i,e){return new Ej(t,i,e)}(o,u,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,o,a)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if("@"==n.charAt(0)){const[s,r]=rE(n);this._timelineEngine.command(s,e,r,o)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,s){if("@"==n.charAt(0)){const[r,a]=rE(n);return this._timelineEngine.listen(r,e,a,s)}return this._transitionEngine.listen(i,e,n,o,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let qj=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ps(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ps(this._element,this._initialStyles),this._endStyles&&(ps(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(aa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(aa(this._element,this._endStyles),this._endStyles=null),ps(this._element,this._initialStyles),this._state=3)}}return t})();function OI(t){let i=null;return t.forEach((e,n)=>{(function Wj(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class ME{constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{"offset"!==o&&i.set(o,this._finished?n:mE(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Qj{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return lE(i,e)}getParentElement(i){return fI(i)}query(i,e,n){return cE(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,o,s,r=[]){const l={duration:n,delay:o,fill:0==o?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=r.filter(_=>_ instanceof ME);(function nj(t,i){return 0===t||0===i})(n,o)&&u.forEach(_=>{_.currentSnapshot.forEach((b,E)=>c.set(E,b))});let p=function Jz(t){return t.length?t[0]instanceof Map?t:t.map(i=>hE(i)):[]}(e).map(_=>wr(_));p=function ij(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((s,r)=>{n.has(r)||o.push(r),n.set(r,s)}),o.length)for(let s=1;sr.set(a,mE(t,a)))}}return i}(i,p,c);const m=function Gj(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=OI(i[0]),i.length>1&&(n=OI(i[i.length-1]))):i instanceof Map&&(e=OI(i)),e||n?new qj(t,e,n):null}(i,p);return new ME(i,p,l,m)}}let Zj=(()=>{class t extends tE{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:To.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?nE(e):e;return OE(this._renderer,null,n,"register",[o]),new Yj(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class Yj extends dz{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Xj(this._id,i,e||{},this._renderer)}}class Xj{constructor(i,e,n,o){this.id=i,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return OE(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function OE(t,i,e,n,o){return t.setProperty(i,`@@${e}:${n}`,o)}const LE="@.disabled";let Jj=(()=>{class t{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(s,r)=>{const a=r?.parentNode(s);a&&r.removeChild(a,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let u=this._rendererCache.get(s);return u||(u=new PE("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const r=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(r,a,e,u.name,u)};return n.data.animation.forEach(l),new eU(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){e>=0&&en(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[r,a]=s;r(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(zh),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class PE{constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==LE?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class eU extends PE{constructor(i,e,n,o,s){super(e,n,o,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const o=function tU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let s=e.slice(1),r="";return"@"!=s.charAt(0)&&([s,r]=function nU(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,o,s,r,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(i,e,n)}}const FE=[{provide:tE,useClass:Zj},{provide:TI,useFactory:function oU(){return new xj}},{provide:zh,useClass:(()=>{class t extends zh{constructor(e,n,o,s){super(e.body,n,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(gI),Ze(TI),Ze(ta))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})()},{provide:Pc,useFactory:function sU(t,i,e){return new Jj(t,i,e)},deps:[L0,zh,Tt]}],LI=[{provide:gI,useFactory:()=>new Qj},{provide:My,useValue:"BrowserAnimations"},...FE],RE=[{provide:gI,useClass:uE},{provide:My,useValue:"NoopAnimations"},...FE];let NE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?RE:LI}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:LI,imports:[R0]})}return t})();function Cu(...t){const i=ic(t),e=Yv(t),{args:n,keys:o}=OT(t);if(0===n.length)return ri([],i);const s=new ce(function aU(t,i,e=_e){return n=>{VE(i,()=>{const{length:o}=t,s=new Array(o);let r=o,a=o;for(let l=0;l{const c=ri(t[l],i);let u=!1;c.subscribe(Ue(n,p=>{s[l]=p,u||(u=!0,a--),a||n.next(e(s.slice()))},()=>{--r||n.complete()}))},n)},n)}}(n,i,o?r=>LT(o,r):_e));return e?s.pipe(V0(e)):s}function VE(t,i,e){t?ws(e,t,i):i()}const Uh=ae(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function PI(...t){return function lU(){return Ta(1)}()(ri(t,ic(t)))}function BE(t){return new ce(i=>{Ni(t()).subscribe(i)})}function Ll(t,i){const e=L(t)?t:()=>t,n=o=>o.error(e());return new ce(i?o=>i.schedule(n,0,o):n)}function FI(){return Me((t,i)=>{let e=null;t._refCount++;const n=Ue(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class HE extends ce{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Be(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new F;const e=this.getSubject();i.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=F.EMPTY)}return i}refCount(){return FI()(this)}}function Pl(t){return t<=0?()=>es:Me((i,e)=>{let n=0;i.subscribe(Ue(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function $h(t){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function zE(t=uU){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function uU(){return new Uh}function ca(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,Pl(1),e?$h(i):zE(()=>new Uh))}function Ei(t,i,e){const n=L(t)||i||e?{next:t,error:i,complete:e}:t;return n?Me((o,s)=>{var r;null===(r=n.subscribe)||void 0===r||r.call(n);let a=!0;o.subscribe(Ue(s,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),s.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),s.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),s.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):_e}function Ci(t){return Me((i,e)=>{let s,n=null,o=!1;n=i.subscribe(Ue(e,void 0,void 0,r=>{s=Ni(t(r,Ci(t)(i))),n?(n.unsubscribe(),n=null,s.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,s.subscribe(e))})}function RI(t){return t<=0?()=>es:Me((i,e)=>{let n=[];i.subscribe(Ue(e,o=>{n.push(o),t{for(const o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}const Ot="primary",vu=Symbol("RouteTitle");class mU{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Fl(t){return new mU(t)}function _U(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[s]===o)}return t===i}function UE(t){return t.length>0?t[t.length-1]:null}function Tr(t){return function rU(t){return!!t&&(t instanceof ce||L(t.lift)&&L(t.subscribe))}(t)?t:Kc(t)?ri(Promise.resolve(t)):ht(t)}const CU={exact:function GE(t,i,e){if(!ua(t.segments,i.segments)||!Kh(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!GE(t.children[n],i.children[n],e))return!1;return!0},subset:qE},$E={exact:function vU(t,i){return hs(t,i)},subset:function bU(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>jE(t[e],i[e]))},ignored:()=>!0};function KE(t,i,e){return CU[e.paths](t.root,i.root,e.matrixParams)&&$E[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function qE(t,i,e){return WE(t,i,i.segments,e)}function WE(t,i,e,n){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!ua(o,e)||i.hasChildren()||!Kh(o,e,n))}if(t.segments.length===e.length){if(!ua(t.segments,e)||!Kh(t.segments,e,n))return!1;for(const o in i.children)if(!t.children[o]||!qE(t.children[o],i.children[o],n))return!1;return!0}{const o=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(ua(t.segments,o)&&Kh(t.segments,o,n)&&t.children[Ot])&&WE(t.children[Ot],i,s,n)}}function Kh(t,i,e){return i.every((n,o)=>$E[e](t[o].parameters,n.parameters))}class Rl{constructor(i=new gn([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return AU.serialize(this)}}class gn{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gh(this)}}class bu{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Fl(this.parameters)),this._parameterMap}toString(){return YE(this)}}function ua(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let yu=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new NI},providedIn:"root"})}return t})();class NI{parse(i){const e=new FU(i);return new Rl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${xu(i.root,!0)}`,n=function SU(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(o=>`${qh(e)}=${qh(o)}`).join("&"):`${qh(e)}=${qh(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function wU(t){return encodeURI(t)}(i.fragment)}`:""}`}}const AU=new NI;function Gh(t){return t.segments.map(i=>YE(i)).join("/")}function xu(t,i){if(!t.hasChildren())return Gh(t);if(i){const e=t.children[Ot]?xu(t.children[Ot],!1):"",n=[];return Object.entries(t.children).forEach(([o,s])=>{o!==Ot&&n.push(`${o}:${xu(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function xU(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Ot&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Ot&&(e=e.concat(i(o,n)))}),e}(t,(n,o)=>o===Ot?[xu(t.children[Ot],!1)]:[`${o}:${xu(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ot]?`${Gh(t)}/${e[0]}`:`${Gh(t)}/(${e.join("//")})`}}function QE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qh(t){return QE(t).replace(/%3B/gi,";")}function VI(t){return QE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wh(t){return decodeURIComponent(t)}function ZE(t){return Wh(t.replace(/\+/g,"%20"))}function YE(t){return`${VI(t.path)}${function TU(t){return Object.keys(t).map(i=>`;${VI(i)}=${VI(t[i])}`).join("")}(t.parameters)}`}const EU=/^[^\/()?;#]+/;function BI(t){const i=t.match(EU);return i?i[0]:""}const DU=/^[^\/()?;=#]+/,MU=/^[^=?&#]+/,LU=/^[^&#]+/;class FU{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gn([],{}):new gn([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ot]=new gn(i,e)),n}parseSegment(){const i=BI(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new Ae(4009,!1);return this.capture(i),new bu(Wh(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=function kU(t){const i=t.match(DU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=BI(this.remaining);o&&(n=o,this.capture(n))}i[Wh(e)]=Wh(n)}parseQueryParam(i){const e=function OU(t){const i=t.match(MU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=function PU(t){const i=t.match(LU);return i?i[0]:""}(this.remaining);r&&(n=r,this.capture(n))}const o=ZE(e),s=ZE(n);if(i.hasOwnProperty(o)){let r=i[o];Array.isArray(r)||(r=[r],i[o]=r),r.push(s)}else i[o]=s}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=BI(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new Ae(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Ot);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[Ot]:new gn([],r),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new Ae(4011,!1)}}function XE(t){return t.segments.length>0?new gn([],{[Ot]:t}):t}function JE(t){const i={};for(const n of Object.keys(t.children)){const s=JE(t.children[n]);if(n===Ot&&0===s.segments.length&&s.hasChildren())for(const[r,a]of Object.entries(s.children))i[r]=a;else(s.segments.length>0||s.hasChildren())&&(i[n]=s)}return function RU(t){if(1===t.numberOfChildren&&t.children[Ot]){const i=t.children[Ot];return new gn(t.segments.concat(i.segments),i.children)}return t}(new gn(t.segments,i))}function da(t){return t instanceof Rl}function eD(t){let i;const o=XE(function e(s){const r={};for(const l of s.children){const c=e(l);r[l.outlet]=c}const a=new gn(s.url,r);return s===t&&(i=a),a}(t.root));return i??o}function tD(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(0===i.length)return HI(o,o,o,e,n);const s=function VU(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iD(!0,0,t);let i=0,e=!1;const n=t.reduce((o,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===r?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?i++:""!=a&&o.push(a))}),o):[...o,s]},[]);return new iD(e,i,n)}(i);if(s.toRoot())return HI(o,o,new gn([],{}),e,n);const r=function BU(t,i,e){if(t.isAbsolute)return new Zh(i,!0,0);if(!e)return new Zh(i,!1,NaN);if(null===e.parent)return new Zh(e,!0,0);const n=Qh(t.commands[0])?0:1;return function HU(t,i,e){let n=t,o=i,s=e;for(;s>o;){if(s-=o,n=n.parent,!n)throw new Ae(4005,!1);o=n.segments.length}return new Zh(n,!1,o-s)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(s,o,t),a=r.processChildren?wu(r.segmentGroup,r.index,s.commands):oD(r.segmentGroup,r.index,s.commands);return HI(o,r.segmentGroup,a,e,n)}function Qh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Au(t){return"object"==typeof t&&null!=t&&t.outlets}function HI(t,i,e,n,o){let r,s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),r=t===i?e:nD(t,i,e);const a=XE(JE(r));return new Rl(a,s,o)}function nD(t,i,e){const n={};return Object.entries(t.children).forEach(([o,s])=>{n[o]=s===i?e:nD(s,i,e)}),new gn(t.segments,n)}class iD{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Qh(n[0]))throw new Ae(4003,!1);const o=n.find(Au);if(o&&o!==UE(n))throw new Ae(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zh{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function oD(t,i,e){if(t||(t=new gn([],{})),0===t.segments.length&&t.hasChildren())return wu(t,i,e);const n=function jU(t,i,e){let n=0,o=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;const r=t.segments[o],a=e[n];if(Au(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!rD(l,c,r))return s;n+=2}else{if(!rD(l,{},r))return s;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexs!==Ot)&&t.children[Ot]&&1===t.numberOfChildren&&0===t.children[Ot].segments.length){const s=wu(t.children[Ot],i,e);return new gn(t.segments,s.children)}return Object.entries(n).forEach(([s,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=oD(t.children[s],i,r))}),Object.entries(t.children).forEach(([s,r])=>{void 0===n[s]&&(o[s]=r)}),new gn(t.segments,o)}}function zI(t,i,e){const n=t.segments.slice(0,i);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(i[e]=zI(new gn([],{}),0,n))}),i}function sD(t){const i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function rD(t,i,e){return t==e.path&&hs(i,e.parameters)}const Tu="imperative";class fs{constructor(i,e){this.id=i,this.url=e}}class Yh extends fs{constructor(i,e,n="imperative",o=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sr extends fs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Su extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nl extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=16}}class Xh extends fs{constructor(i,e,n,o){super(i,e),this.error=n,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aD extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $U extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KU extends fs{constructor(i,e,n,o,s){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class GU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WU{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QU{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ZU{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YU{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XU{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JU{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lD{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jI{}class UI{constructor(i){this.url=i}}class e${constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Eu,this.attachRef=null}}let Eu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new e$,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class cD{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=$I(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=$I(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=KI(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return KI(i,this._root).map(e=>e.value)}}function $I(t,i){if(t===i.value)return i;for(const e of i.children){const n=$I(t,e);if(n)return n}return null}function KI(t,i){if(t===i.value)return[i];for(const e of i.children){const n=KI(t,e);if(n.length)return n.unshift(i),n}return[]}class Ks{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vl(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class uD extends cD{constructor(i,e){super(i),this.snapshot=e,GI(this,i)}toString(){return this.snapshot.toString()}}function dD(t,i){const e=function t$(t,i){const r=new Jh([],{},{},"",{},Ot,i,null,{});return new hD("",new Ks(r,[]))}(0,i),n=new xo([new bu("",{})]),o=new xo({}),s=new xo({}),r=new xo({}),a=new xo(""),l=new Di(n,o,r,a,s,Ot,i,e.root);return l.snapshot=e.root,new uD(new Ks(l,[]),e)}class Di{constructor(i,e,n,o,s,r,a,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=s,this.outlet=r,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(at(c=>c[vu]))??ht(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(at(i=>Fl(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(at(i=>Fl(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pD(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const o=e[n],s=e[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(s.component)break;n--}}return function n$(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Jh{get title(){return this.data?.[vu]}constructor(i,e,n,o,s,r,a,l,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s,this.outlet=r,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Fl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hD extends cD{constructor(i,e){super(e),this.url=i,GI(this,e)}toString(){return fD(this._root)}}function GI(t,i){i.value._routerState=t,i.children.forEach(e=>GI(t,e))}function fD(t){const i=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${i}`}function qI(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),function IU(t,i){if(t.length!==i.length)return!1;for(let e=0;ehs(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||WI(t.parent,i.parent))}let QI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ot,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.parentContexts=et(Eu),this.location=et(go),this.changeDetector=et(Ft),this.environmentInjector=et(po),this.inputBinder=et(ef,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ae(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ae(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ae(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Ae(4013,!1);this._activatedRoute=e;const o=this.location,r=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new i$(e,a,o.injector);this.activated=o.createComponent(r,{index:o.length,injector:l,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]})}return t})();class i${constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Di?this.route:i===Eu?this.childContexts:this.parent.get(i,e)}}const ef=new Ye("");let gD=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:n}=e,o=Cu([n.queryParams,n.params,n.data]).pipe(Ao(([s,r,a],l)=>(a={...s,...r,...a},0===l?ht(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const r=function f8(t){const i=Zt(t);if(!i)return null;const e=new Hc(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(n.component);if(r)for(const{templateName:a}of r.inputs)e.activatedComponentRef.setInput(a,s[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Du(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const o=function s$(t,i,e){return i.children.map(n=>{for(const o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Du(t,n,o);return Du(t,n)})}(t,i,e);return new Ks(n,o)}{if(t.shouldAttach(i.value)){const s=t.retrieve(i.value);if(null!==s){const r=s.route;return r.value._futureSnapshot=i.value,r.children=i.children.map(a=>Du(t,a)),r}}const n=function r$(t){return new Di(new xo(t.url),new xo(t.params),new xo(t.queryParams),new xo(t.fragment),new xo(t.data),t.outlet,t.component,t)}(i.value),o=i.children.map(s=>Du(t,s));return new Ks(n,o)}}const ZI="ngNavigationCancelingError";function mD(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=da(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=_D(!1,0,i);return o.url=e,o.navigationBehaviorOptions=n,o}function _D(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[ZI]=!0,n.cancellationCode=i,e&&(n.url=e),n}function ID(t){return t&&t[ZI]}let CD=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Et],decls:1,vars:0,template:function(n,o){1&n&&le(0,"router-outlet")},dependencies:[QI],encapsulation:2})}return t})();function YI(t){const i=t.children&&t.children.map(YI),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ot&&(e.component=CD),e}function Qo(t){return t.outlet||Ot}function ku(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class f${constructor(i,e,n,o,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=s}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),qI(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{const r=s.value.outlet;this.deactivateRoutes(s,o[r],n),delete o[r]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(o===s)if(o.component){const r=n.getContext(o.outlet);r&&this.deactivateChildRoutes(i,e,r.children)}else this.deactivateChildRoutes(i,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);if(n&&n.outlet){const r=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:r,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],n),this.forwardEvent(new JU(s.value.snapshot))}),i.children.length&&this.forwardEvent(new YU(i.value.snapshot))}activateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(qI(o),o===s)if(o.component){const r=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,r.children)}else this.activateChildRoutes(i,e,n);else if(o.component){const r=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(a.contexts),r.attachRef=a.componentRef,r.route=a.route.value,r.outlet&&r.outlet.attach(a.componentRef,a.route.value),qI(a.route.value),this.activateChildRoutes(i,null,r.children)}else{const a=ku(o.snapshot);r.attachRef=null,r.route=o,r.injector=a,r.outlet&&r.outlet.activateWith(o,r.injector),this.activateChildRoutes(i,null,r.children)}}else this.activateChildRoutes(i,null,n)}}class vD{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class tf{constructor(i,e){this.component=i,this.route=e}}function g$(t,i,e){const n=t._root;return Mu(n,i?i._root:null,e,[n.value])}function Bl(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function R4(t){return null!==Cd(t)}(t)?i.get(t):t:n}function Mu(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Vl(i);return t.children.forEach(r=>{(function _$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,r=i?i.value:null,a=e?e.getContext(t.value.outlet):null;if(r&&s.routeConfig===r.routeConfig){const l=function I$(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!ua(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ua(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WI(t,i)||!hs(t.queryParams,i.queryParams);default:return!WI(t,i)}}(r,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vD(n)):(s.data=r.data,s._resolvedData=r._resolvedData),Mu(t,i,s.component?a?a.children:null:e,n,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new tf(a.outlet.component,r))}else r&&Ou(i,a,o),o.canActivateChecks.push(new vD(n)),Mu(t,null,s.component?a?a.children:null:e,n,o)})(r,s[r.value.outlet],e,n.concat([r.value]),o),delete s[r.value.outlet]}),Object.entries(s).forEach(([r,a])=>Ou(a,e.getContext(r),o)),o}function Ou(t,i,e){const n=Vl(t),o=t.value;Object.entries(n).forEach(([s,r])=>{Ou(r,o.component?i?i.children.getContext(s):null:i,e)}),e.canDeactivateChecks.push(new tf(o.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,o))}function Lu(t){return"function"==typeof t}function bD(t){return t instanceof Uh||"EmptyError"===t?.name}const nf=Symbol("INITIAL_VALUE");function Hl(){return Ao(t=>Cu(t.map(i=>i.pipe(Pl(1),function cU(...t){const i=ic(t);return Me((e,n)=>{(i?PI(t,e,i):PI(t,e)).subscribe(n)})}(nf)))).pipe(at(i=>{for(const e of i)if(!0!==e){if(e===nf)return nf;if(!1===e||e instanceof Rl)return e}return!0}),zs(i=>i!==nf),Pl(1)))}function yD(t){return function he(...t){return de(t)}(Ei(i=>{if(da(i))throw mD(0,i)}),at(i=>!0===i))}class sf{constructor(i){this.segmentGroup=i||null}}class xD{constructor(i){this.urlTree=i}}function zl(t){return Ll(new sf(t))}function AD(t){return Ll(new xD(t))}class V${constructor(i,e){this.urlSerializer=i,this.urlTree=e}noMatchError(i){return new Ae(4002,!1)}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return ht(n);if(o.numberOfChildren>1||!o.children[Ot])return Ll(new Ae(4e3,!1));o=o.children[Ot]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,o){const s=this.createSegmentGroup(i,e.root,n,o);return new Rl(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Object.entries(i).forEach(([o,s])=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);n[o]=e[a]}else n[o]=s}),n}createSegmentGroup(i,e,n,o){const s=this.createSegments(i,e.segments,n,o);let r={};return Object.entries(e.children).forEach(([a,l])=>{r[a]=this.createSegmentGroup(i,l,n,o)}),new gn(s,r)}createSegments(i,e,n,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,o):this.findOrReturn(s,n))}findPosParam(i,e,n){const o=n[e.path.substring(1)];if(!o)throw new Ae(4001,!1);return o}findOrReturn(i,e){let n=0;for(const o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}}const XI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B$(t,i,e,n,o){const s=JI(t,i,e);return s.matched?(n=function l$(t,i){return t.providers&&!t._injector&&(t._injector=O_(t.providers,i,`Route: ${t.path}`)),t._injector??i}(i,n),function F$(t,i,e,n){const o=i.canMatch;return o&&0!==o.length?ht(o.map(r=>{const a=Bl(r,t);return Tr(function A$(t){return t&&Lu(t.canMatch)}(a)?a.canMatch(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD()):ht(!0)}(n,i,e).pipe(at(r=>!0===r?s:{...XI}))):ht(s)}function JI(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...XI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(i.matcher||_U)(e,t,i);if(!o)return{...XI};const s={};Object.entries(o.posParams??{}).forEach(([a,l])=>{s[a]=l.path});const r=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:r,positionalParamSegments:o.posParams??{}}}function wD(t,i,e,n){return e.length>0&&function j$(t,i,e){return e.some(n=>rf(t,i,n)&&Qo(n)!==Ot)}(t,e,n)?{segmentGroup:new gn(i,z$(n,new gn(e,t.children))),slicedSegments:[]}:0===e.length&&function U$(t,i,e){return e.some(n=>rf(t,i,n))}(t,e,n)?{segmentGroup:new gn(t.segments,H$(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new gn(t.segments,t.children),slicedSegments:e}}function H$(t,i,e,n,o){const s={};for(const r of n)if(rf(t,e,r)&&!o[Qo(r)]){const a=new gn([],{});s[Qo(r)]=a}return{...o,...s}}function z$(t,i){const e={};e[Ot]=i;for(const n of t)if(""===n.path&&Qo(n)!==Ot){const o=new gn([],{});e[Qo(n)]=o}return e}function rf(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}class q${constructor(i,e,n,o,s,r,a){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=r,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new V$(this.urlSerializer,this.urlTree)}noMatchError(i){return new Ae(4002,!1)}recognize(){const i=wD(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Ot).pipe(Ci(e=>{if(e instanceof xD)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof sf?this.noMatchError(e):e}),at(e=>{const n=new Jh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ot,this.rootComponentType,null,{}),o=new Ks(n,e),s=new hD("",o),r=function NU(t,i,e=null,n=null){return tD(eD(t),i,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(s._root),{state:s,tree:r}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,Ot).pipe(Ci(n=>{throw n instanceof sf?this.noMatchError(n):n}))}inheritParamsAndData(i){const e=i.value,n=pD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(i,e,n,o){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,o,!0)}processChildren(i,e,n){const o=[];for(const s of Object.keys(n.children))"primary"===s?o.unshift(s):o.push(s);return ri(o).pipe(El(s=>{const r=n.children[s],a=function p$(t,i){const e=t.filter(n=>Qo(n)===i);return e.push(...t.filter(n=>Qo(n)!==i)),e}(e,s);return this.processSegmentGroup(i,a,r,s)}),function pU(t,i){return Me(function dU(t,i,e,n,o){return(s,r)=>{let a=e,l=i,c=0;s.subscribe(Ue(r,u=>{const p=c++;l=a?t(l,u,p):(a=!0,u),n&&r.next(l)},o&&(()=>{a&&r.next(l),r.complete()})))}}(t,i,arguments.length>=2,!0))}((s,r)=>(s.push(...r),s)),$h(null),function hU(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,RI(1),e?$h(i):zE(()=>new Uh))}(),si(s=>{if(null===s)return zl(n);const r=TD(s);return function W$(t){t.sort((i,e)=>i.value.outlet===Ot?-1:e.value.outlet===Ot?1:i.value.outlet.localeCompare(e.value.outlet))}(r),ht(r)}))}processSegment(i,e,n,o,s,r){return ri(e).pipe(El(a=>this.processSegmentAgainstRoute(a._injector??i,e,a,n,o,s,r).pipe(Ci(l=>{if(l instanceof sf)return ht(null);throw l}))),ca(a=>!!a),Ci(a=>{if(bD(a))return function K$(t,i,e){return 0===i.length&&!t.children[e]}(n,o,s)?ht([]):zl(n);throw a}))}processSegmentAgainstRoute(i,e,n,o,s,r,a){return function $$(t,i,e,n){return!!(Qo(t)===n||n!==Ot&&rf(i,e,t))&&("**"===t.path||JI(i,t,e).matched)}(n,o,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(i,o,n,s,r,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,s,r):zl(o):zl(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,o,r):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,o){const s=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?AD(s):this.applyRedirects.lineralizeSegments(n,s).pipe(si(r=>{const a=new gn(r,{});return this.processSegment(i,e,a,r,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=JI(e,o,s);if(!a)return zl(e);const p=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?AD(p):this.applyRedirects.lineralizeSegments(o,p).pipe(si(m=>this.processSegment(i,n,e,m.concat(c),r,!1)))}matchSegmentAgainstRoute(i,e,n,o,s,r){let a;if("**"===n.path){const l=o.length>0?UE(o).parameters:{};a=ht({snapshot:new Jh(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=B$(e,n,o,i).pipe(at(({matched:l,consumedSegments:c,remainingSegments:u,parameters:p})=>l?{snapshot:new Jh(c,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Ao(l=>null===l?zl(e):this.getChildConfig(i=n._injector??i,n,o).pipe(Ao(({routes:c})=>{const u=n._loadedInjector??i,{snapshot:p,consumedSegments:m,remainingSegments:_}=l,{segmentGroup:b,slicedSegments:E}=wD(e,m,_,c);if(0===E.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(at(W=>null===W?null:[new Ks(p,W)]));if(0===c.length&&0===E.length)return ht([new Ks(p,[])]);const P=Qo(n)===s;return this.processSegment(u,c,b,E,P?Ot:s,!0).pipe(at(W=>[new Ks(p,W)]))}))))}getChildConfig(i,e,n){return e.children?ht({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ht({routes:e._loadedRoutes,injector:e._loadedInjector}):function P$(t,i,e,n){const o=i.canLoad;return void 0===o||0===o.length?ht(!0):ht(o.map(r=>{const a=Bl(r,t);return Tr(function v$(t){return t&&Lu(t.canLoad)}(a)?a.canLoad(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD())}(i,e,n).pipe(si(o=>o?this.configLoader.loadChildren(i,e).pipe(Ei(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function N$(t){return Ll(_D(!1,3))}())):ht({routes:[],injector:i})}}function Q$(t){const i=t.value.routeConfig;return i&&""===i.path}function TD(t){const i=[],e=new Set;for(const n of t){if(!Q$(n)){i.push(n);continue}const o=i.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...n.children),e.add(o)):i.push(n)}for(const n of e){const o=TD(n.children);i.push(new Ks(n.value,o))}return i.filter(n=>!e.has(n))}function SD(t){return t.data||{}}function ED(t){return t.resolve||{}}function DD(t){return"string"==typeof t.title||null===t.title}function eC(t){return Ao(i=>{const e=t(i);return e?ri(e).pipe(at(()=>i)):ht(i)})}const jl=new Ye("ROUTES");let tC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=et(l2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ht(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Tr(e.loadComponent()).pipe(at(kD),Ei(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),du(()=>{this.componentLoaders.delete(e)})),o=new HE(n,()=>new re).pipe(FI());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ht({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const s=function nK(t,i,e,n){return Tr(t.loadChildren()).pipe(at(kD),si(o=>o instanceof mw||Array.isArray(o)?ht(o):ri(i.compileModuleAsync(o))),at(o=>{n&&n(t);let s,r,a=!1;return Array.isArray(o)?(r=o,!0):(s=o.create(e).injector,r=s.get(jl,[],{optional:!0,self:!0}).flat()),{routes:r.map(YI),injector:s}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(du(()=>{this.childrenLoaders.delete(n)})),r=new HE(s,()=>new re).pipe(FI());return this.childrenLoaders.set(n,r),r}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kD(t){return function iK(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let af=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=et(tC),this.environmentInjector=et(po),this.urlSerializer=et(yu),this.rootContexts=et(Eu),this.inputBindingEnabled=null!==et(ef,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ht(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new QU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new WU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,o){return this.transitions=new xo({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Tu,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(zs(s=>0!==s.id),at(s=>({...s,extractedUrl:e.urlHandlingStrategy.extract(s.rawUrl)})),Ao(s=>{this.currentTransition=s;let r=!1,a=!1;return ht(s).pipe(Ei(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Ao(l=>{const c=l.currentBrowserUrl.toString(),u=!e.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),es}if(e.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ht(l).pipe(Ao(m=>{const _=this.transitions?.getValue();return this.events.next(new Yh(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),_!==this.transitions?.getValue()?es:Promise.resolve(m)}),function Z$(t,i,e,n,o,s){return si(r=>function G$(t,i,e,n,o,s,r="emptyOnly"){return new q$(t,i,e,n,o,r,s).recognize()}(t,i,e,n,r.extractedUrl,o,s).pipe(at(({state:a,tree:l})=>({...r,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Ei(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const _=new aD(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(_)}));if(u&&e.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:_,source:b,restoredState:E,extras:P}=l,W=new Yh(m,this.urlSerializer.serialize(_),b,E);this.events.next(W);const te=dD(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:te,urlAfterRedirects:_,extras:{...P,skipLocationChange:!1,replaceUrl:!1}},ht(s)}{const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),es}}),Ei(l=>{const c=new $U(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),at(l=>(this.currentTransition=s={...l,guards:g$(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function T$(t,i){return si(e=>{const{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:r}}=e;return 0===r.length&&0===s.length?ht({...e,guardsResult:!0}):function S$(t,i,e,n){return ri(t).pipe(si(o=>function L$(t,i,e,n,o){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ht(s.map(a=>{const l=ku(i)??o,c=Bl(a,l);return Tr(function x$(t){return t&&Lu(t.canDeactivate)}(c)?c.canDeactivate(t,i,e,n):l.runInContext(()=>c(t,i,e,n))).pipe(ca())})).pipe(Hl()):ht(!0)}(o.component,o.route,e,i,n)),ca(o=>!0!==o,!0))}(r,n,o,t).pipe(si(a=>a&&function C$(t){return"boolean"==typeof t}(a)?function E$(t,i,e,n){return ri(i).pipe(El(o=>PI(function k$(t,i){return null!==t&&i&&i(new ZU(t)),ht(!0)}(o.route.parent,n),function D$(t,i){return null!==t&&i&&i(new XU(t)),ht(!0)}(o.route,n),function O$(t,i,e){const n=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(r=>function m$(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(r)).filter(r=>null!==r).map(r=>BE(()=>ht(r.guards.map(l=>{const c=ku(r.node)??e,u=Bl(l,c);return Tr(function y$(t){return t&&Lu(t.canActivateChild)}(u)?u.canActivateChild(n,t):c.runInContext(()=>u(n,t))).pipe(ca())})).pipe(Hl())));return ht(s).pipe(Hl())}(t,o.path,e),function M$(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ht(!0);const o=n.map(s=>BE(()=>{const r=ku(i)??e,a=Bl(s,r);return Tr(function b$(t){return t&&Lu(t.canActivate)}(a)?a.canActivate(i,t):r.runInContext(()=>a(i,t))).pipe(ca())}));return ht(o).pipe(Hl())}(t,o.route,e))),ca(o=>!0!==o,!0))}(n,s,t,i):ht(a)),at(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),Ei(l=>{if(s.guardsResult=l.guardsResult,da(l.guardsResult))throw mD(0,l.guardsResult);const c=new KU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),zs(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),eC(l=>{if(l.guards.canActivateChecks.length)return ht(l).pipe(Ei(c=>{const u=new GU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ao(c=>{let u=!1;return ht(c).pipe(function Y$(t,i){return si(e=>{const{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return ht(e);let s=0;return ri(o).pipe(El(r=>function X$(t,i,e,n){const o=t.routeConfig,s=t._resolve;return void 0!==o?.title&&!DD(o)&&(s[vu]=o.title),function J$(t,i,e,n){const o=function eK(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ht({});const s={};return ri(o).pipe(si(r=>function tK(t,i,e,n){const o=ku(i)??n,s=Bl(t,o);return Tr(s.resolve?s.resolve(i,e):o.runInContext(()=>s(i,e)))}(t[r],i,e,n).pipe(ca(),Ei(a=>{s[r]=a}))),RI(1),function fU(t){return at(()=>t)}(s),Ci(r=>bD(r)?es:Ll(r)))}(s,t,i,n).pipe(at(r=>(t._resolvedData=r,t.data=pD(t,e).resolve,o&&DD(o)&&(t.data[vu]=o.title),null)))}(r.route,n,t,i)),Ei(()=>s++),RI(1),si(r=>s===o.length?ht(e):es))})}(e.paramsInheritanceStrategy,this.environmentInjector),Ei({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),Ei(c=>{const u=new qU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),eC(l=>{const c=u=>{const p=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ei(m=>{u.component=m}),at(()=>{})));for(const m of u.children)p.push(...c(m));return p};return Cu(c(l.targetSnapshot.root)).pipe($h(),Pl(1))}),eC(()=>this.afterPreactivation()),at(l=>{const c=function o$(t,i,e){const n=Du(t,i._root,e?e._root:void 0);return new uD(n,i)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:c},s}),Ei(()=>{this.events.next(new jI)}),((t,i,e,n)=>at(o=>(new f$(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Pl(1),Ei({next:l=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Sr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),e.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{r=!0}}),function gU(t){return Me((i,e)=>{Ni(t).subscribe(Ue(e,()=>e.complete(),C)),!e.closed&&i.subscribe(e)})}(this.transitionAbortSubject.pipe(Ei(l=>{throw l}))),du(()=>{r||a||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Ci(l=>{if(a=!0,ID(l))this.events.next(new Su(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function a$(t){return ID(t)&&da(t.url)}(l)?this.events.next(new UI(l.url)):s.resolve(!1);else{this.events.next(new Xh(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(l))}catch(c){s.reject(c)}}return es}))}))}cancelNavigationTransition(e,n,o){const s=new Su(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(s),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MD(t){return t!==Tu}let OD=(()=>{class t{buildTitle(e){let n,o=e.root;for(;void 0!==o;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ot);return n}getResolvedTitleForRoute(e){return e.data[vu]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(oK)},providedIn:"root"})}return t})(),oK=(()=>{class t extends OD{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ET))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(aK)},providedIn:"root"})}return t})();class rK{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let aK=(()=>{class t extends rK{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lf=new Ye("",{providedIn:"root",factory:()=>({})});let lK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(cK)},providedIn:"root"})}return t})(),cK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pu=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Pu||{});function LD(t,i){t.events.pipe(zs(e=>e instanceof Sr||e instanceof Su||e instanceof Xh||e instanceof Nl),at(e=>e instanceof Sr||e instanceof Nl?Pu.COMPLETE:e instanceof Su&&(0===e.code||1===e.code)?Pu.REDIRECTING:Pu.FAILED),zs(e=>e!==Pu.REDIRECTING),Pl(1)).subscribe(()=>{i()})}function uK(t){throw t}function dK(t,i,e){return i.parse("/")}const pK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let io=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=et(a2),this.isNgZoneEnabled=!1,this._events=new re,this.options=et(lf,{optional:!0})||{},this.pendingTasks=et(Kp),this.errorHandler=this.options.errorHandler||uK,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dK,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=et(lK),this.routeReuseStrategy=et(sK),this.titleStrategy=et(OD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=et(jl,{optional:!0})?.flat()??[],this.navigationTransitions=et(af),this.urlSerializer=et(yu),this.location=et(d0),this.componentInputBindingEnabled=!!et(ef,{optional:!0}),this.eventsSubscription=new F,this.isNgZoneEnabled=et(Tt)instanceof Tt&&Tt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dD(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(PD(n)&&this._events.next(n));if(n instanceof Yh)MD(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(n instanceof Nl)this.rawUrlTree=o.rawUrl;else if(n instanceof aD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(n instanceof jI)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(n instanceof Su)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(o);else if(n instanceof UI){const s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),r={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||MD(o.source)};this.scheduleNavigation(s,Tu,null,r,{resolve:o.resolve,reject:o.reject,promise:o.promise})}n instanceof Xh&&this.restoreHistory(o,!0),n instanceof Sr&&(this.navigated=!0),PD(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Tu,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,o){const s={replaceUrl:!0},r=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,n,r,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(YI),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){const{relativeTo:o,queryParams:s,fragment:r,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:r;let p,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{p=eD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),p=this.currentUrlTree.root}return tD(p,e,u,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){const o=da(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Tu,null,n)}navigate(e,n={skipLocationChange:!1}){return function fK(t){for(let i=0;i{const s=e[o];return null!=s&&(n[o]=s),n},{})}scheduleNavigation(e,n,o,s,r){if(this.disposed)return Promise.resolve(!1);let a,l,c;r?(a=r.resolve,l=r.reject,c=r.promise):c=new Promise((p,m)=>{a=p,l=m});const u=this.pendingTasks.add();return LD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}setBrowserUrl(e,n){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){const r={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(o,"",r)}else{const s={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function PD(t){return!(t instanceof jI||t instanceof UI)}let pa=(()=>{class t{constructor(e,n,o,s,r,a){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=r,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=r.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Sr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,n,o,s,r){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||o||s||r||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function yy(t,i,e){return function H5(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?by:Ls}(i,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const o=this.renderer,s=this.el.nativeElement;null!==n?o.setAttribute(s,e,n):o.removeAttribute(s,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(Di),function $d(t){return function rP(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let o=0;for(;o{class t{get isActive(){return this._isActive}constructor(e,n,o,s,r){this.router=e,this.element=n,this.renderer=o,this.cdr=s,this.link=r,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ge,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Sr&&this.update()})}ngAfterContentInit(){ht(this.links.changes,ht(null)).pipe(Ta()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=ri(e).pipe(Ta()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const n=function gK(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(bt),V(hn),V(Ft),V(pa,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(1&n&&Gt(s,pa,5),2&n){let r;Se(r=Ee())&&(o.links=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]})}return t})();class FD{}let mK=(()=>{class t{constructor(e,n,o,s,r){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(zs(e=>e instanceof Sr),El(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const o=[];for(const s of n){s.providers&&!s._injector&&(s._injector=O_(s.providers,e,`Route: ${s.path}`));const r=s._injector??e,a=s._loadedInjector??r;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(r,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(a,s.children??s._loadedRoutes))}return ri(o).pipe(Ta())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;o=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ht(null);const s=o.pipe(si(r=>null===r?ht(void 0):(n._loadedRoutes=r.routes,n._loadedInjector=r.injector,this.processRoutes(r.injector??e,r.routes))));return n.loadComponent&&!n._loadedComponent?ri([s,this.loader.loadComponent(n)]).pipe(Ta()):s})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(io),Ze(l2),Ze(po),Ze(FD),Ze(tC))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const nC=new Ye("");let RD=(()=>{class t{constructor(e,n,o,s,r={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Yh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Sr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Nl&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){!function cx(){throw new Error("invalid")}()};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Gs(t,i){return{\u0275kind:t,\u0275providers:i}}function VD(){const t=et($i);return i=>{const e=t.get(ta);if(i!==e.components[0])return;const n=t.get(io),o=t.get(BD);1===t.get(iC)&&n.initialNavigation(),t.get(HD,null,zt.Optional)?.setUpPreloading(),t.get(nC,null,zt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const BD=new Ye("",{factory:()=>new re}),iC=new Ye("",{providedIn:"root",factory:()=>1}),HD=new Ye("");function vK(t){return Gs(0,[{provide:HD,useExisting:mK},{provide:FD,useExisting:t}])}const zD=new Ye("ROUTER_FORROOT_GUARD"),yK=[d0,{provide:yu,useClass:NI},io,Eu,{provide:Di,useFactory:function ND(t){return t.routerState.root},deps:[io]},tC,[]];function xK(){return new g2("Router",io)}let qn=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[yK,[],{provide:jl,multi:!0,useValue:e},{provide:zD,useFactory:SK,deps:[[io,new qd,new Wd]]},{provide:lf,useValue:n||{}},n?.useHash?{provide:Ir,useClass:G2}:{provide:Ir,useClass:K2},{provide:nC,useFactory:()=>{const t=et(LV),i=et(Tt),e=et(lf),n=et(af),o=et(yu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new RD(o,n,t,i,e)}},n?.preloadingStrategy?vK(n.preloadingStrategy).\u0275providers:[],{provide:g2,multi:!0,useFactory:xK},n?.initialNavigation?EK(n):[],n?.bindToComponentInputs?Gs(8,[gD,{provide:ef,useExisting:gD}]).\u0275providers:[],[{provide:jD,useFactory:VD},{provide:e0,multi:!0,useExisting:jD}]]}}static forChild(e){return{ngModule:t,providers:[{provide:jl,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(zD,8))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function SK(t){return"guarded"}function EK(t){return["disabled"===t.initialNavigation?Gs(3,[{provide:G_,multi:!0,useFactory:()=>{const i=et(io);return()=>{i.setUpLocationChangeListener()}}},{provide:iC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Gs(2,[{provide:iC,useValue:0},{provide:G_,multi:!0,deps:[$i],useFactory:i=>{const e=i.get(_8,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const o=i.get(io),s=i.get(BD);LD(o,()=>{n(!0)}),i.get(af).afterPreactivation=()=>(n(!0),s.closed?ht(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const jD=new Ye("");class kK{}class MK{}var Lt=function(t){return t[t.Passed="Passed"]="Passed",t[t.Failed="Failed"]="Failed",t[t.FailIgnored="FailIgnored"]="FailIgnored",t[t.Blocked="Blocked"]="Blocked",t[t.Stopped="Stopped"]="Stopped",t[t.Pending="Pending"]="Pending",t[t.InProgress="In Progress"]="InProgress",t[t.Canceled="Canceled"]="Canceled",t[t.Queued="Queued"]="Queued",t[t.FailedToQueue="Failed To Queue"]="FailedToQueue",t[t.Others="Others"]="Others",t}(Lt||{}),Er=function(t){return t[t.BusinessFlowsActivities=0]="BusinessFlowsActivities",t[t.ActivitiesActions=1]="ActivitiesActions",t[t.OutputValidation=2]="OutputValidation",t}(Er||{});class UD{}class OK{}class $D{}class LK{}var oC=function(t){return t[t.html=0]="html",t[t.htm=1]="htm",t[t.xls=2]="xls",t[t.xlsx=3]="xlsx",t[t.csv=4]="csv",t[t.json=5]="json",t[t.ppt=6]="ppt",t[t.jpg=7]="jpg",t[t.jpeg=8]="jpeg",t[t.png=9]="png",t[t.bmp=10]="bmp",t[t.txt=11]="txt",t[t.doc=12]="doc",t[t.docx=13]="docx",t[t.xml=14]="xml",t[t.pdf=15]="pdf",t[t.gif=16]="gif",t}(oC||{});let Co=(()=>{class t{constructor(){}getByKey(e){return JSON.parse(sessionStorage.getItem(e))}isExist(e){return null!=sessionStorage.getItem(e)}setItem(e,n){this.getByKey(e)||this.reomveByKey(e),sessionStorage.setItem(e,JSON.stringify(n))}setItemCache(e){this.runset=e}getItemCache(){return this.runset}reomveByKey(e){this.getByKey(e)&&sessionStorage.removeItem(e)}clearSession(){sessionStorage.clear()}msToTime1(e){var n=e%1e3,o=(e=(e-n)/1e3)%60,s=(e=(e-o)/60)%60,r=(e-s)/60;return(0==r?"00":r.toString())+":"+(0==s?"00":s.toString())+":"+(0==o?"00":o.toString())+"."+n}pad(e,n=2){return("00"+e).slice(-n)}msToTime(e){"seconds"==this.getByKey("timeFormat")&&(e*=1e3);var o=e%1e3,s=(e=(e-o)/1e3)%60,r=(e=(e-s)/60)%60;return this.pad((e-r)/60)+":"+this.pad(r)+":"+this.pad(s)+"."+this.pad(o,3)}replaceUnicodeChar(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u0021/g,"!")).replace(/u0022/g,'"')).replace(/u0023/g,"#")).replace(/u0024/g,"$")).replace(/u0025/g,"%")).replace(/u0026/g,"&")).replace(/u0027/g,"'")).replace(/u0028/g,"(")).replace(/u0029/g,")")).replace(/u002A/g,"*")).replace(/u002B/g,"+")).replace(/u002C/g,",")).replace(/u002D/g,"-")).replace(/u002E/g,".")).replace(/u002F/g,"/")).replace(/u003A/g,":")).replace(/u003B/g,";")).replace(/u003C/g,"<")).replace(/u003D/g,"=")).replace(/u003E/g,">")).replace(/u003F/g,"?")).replace(/u0040/g,"@")).replace(/u005B/g,"[")).replace(/u005C/g,"\\")).replace(/u005D/g,"]")).replace(/u005E/g,"^")).replace(/u005F/g,"_")).replace(/u0060/g,"`")).replace(/u007B/g,"{")).replace(/u007C/g,"|")).replace(/u007D/g,"}")).replace(/u007E/g,"~")).replace(/!/g,"!")).replace(/"/g,'"')).replace(/#/g,"#")).replace(/$/g,"$")).replace(/%/g,"%")).replace(/&/g,"&")).replace(/'/g,"'")).replace(/(/g,"(")).replace(/)/g,")")).replace(/*/g,"*")).replace(/+/g,"+")).replace(/,/g,",")).replace(/-/g,"-")).replace(/./g,".")).replace(///g,"/")).replace(/:/g,":")).replace(/;/g,";")).replace(/</g,"<")).replace(/=/g,"=")).replace(/>/g,">")).replace(/?/g,"?")).replace(/@/g,"@")).replace(/[/g,"[")).replace(/\/g,"\\")).replace(/]/g,"]")).replace(/^/g,"^")).replace(/_/g,"_")).replace(/`/g,"`")).replace(/{/g,"{")).replace(/|/g,"|")).replace(/}/g,"}")).replace(/~/g,"~")).trimStart()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KD(t,i,e,n,o,s,r){try{var a=t[s](r),l=a.value}catch(c){return void e(c)}a.done?i(l):Promise.resolve(l).then(n,o)}function Fu(t){return function(){var i=this,e=arguments;return new Promise(function(n,o){var s=t.apply(i,e);function r(l){KD(s,n,o,r,a,"next",l)}function a(l){KD(s,n,o,r,a,"throw",l)}r(void 0)})}}class PK extends F{constructor(i,e){super()}schedule(i,e=0){return this}}const uf={setInterval(t,i,...e){const{delegate:n}=uf;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=uf;return(i?.clearInterval||clearInterval)(t)},delegate:void 0},sC={now:()=>(sC.delegate||Date).now(),delegate:void 0};class Ru{constructor(i,e=Ru.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Ru.now=sC.now;const GD=new class RK extends Ru{constructor(i,e=Ru.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}(class FK extends PK{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return uf.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&uf.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let o,n=!1;try{this.work(i)}catch(s){n=!0,o=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}),NK=GD;function gs(t=1/0){let i;i=t&&"object"==typeof t?t:{count:t};const{count:e=1/0,delay:n,resetOnSuccess:o=!1}=i;return e<=0?_e:Me((s,r)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(Ue(r,p=>{o&&(a=0),r.next(p)},void 0,p=>{if(a++{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=n){const _="number"==typeof n?function BK(t=0,i,e=NK){let n=-1;return null!=i&&(Zv(i)?e=i:n=i),new ce(o=>{let s=function VK(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let r=0;return e.schedule(function(){o.closed||(o.next(r++),0<=n?this.schedule(void 0,n):o.complete())},s)})}(n):Ni(n(p,a)),b=Ue(r,()=>{b.unsubscribe(),m()},()=>{r.complete()});_.subscribe(b)}else m()}else r.error(p)})),u&&(l.unsubscribe(),l=null,c())};c()})}let ms=(()=>{class t{constructor(){this.baseAppUrl="",this.accountId=1,this.topBarTitle="",this.hideRightPanel=!1,this.imagePath="assets/screenshots/",this.artifactPath="assets/artifacts/",this.isServerLoading=!1}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ha=(()=>{class t{constructor(e,n){this.httpClient=e,this.globalVarService=n,this.httpOptions={headers:new qo({"Content-Type":"application/json"}),params:{}}}GetAccountHtmlReport(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReport",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBriefCase(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBriefCase/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParent(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParentAwait(e){var n=this;return Fu(function*(){return yield n.httpClient.post(n.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActivityById(e){var n=this;return Fu(function*(){return yield n.httpClient.get(n.globalVarService.baseAppUrl+"HtmlReport/GetActivityById/"+e,n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActionById(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetActionById/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBrief(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBrief/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActionsStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActionsStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActivitiesStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActivitiesStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}DownloadRunsetImages(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/DownloadRunsetImages",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}handleError(e){let n="";return n=e.error instanceof ErrorEvent?e.error.message:`Error Code: ${e.status}\nMessage: ${e.message}`,Ll(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qs=(()=>{class t{initService(e=!1){e&&(this.runset=null,this.businessFlows=[],this.activities=[],this.actions=[]),this.runset=this.getRunset(),this.businessFlows=this.getAllBusinessFlows(),this.activities=this.getAllActivities(),this.actions=this.getAllActions()}constructor(e,n,o){this._userDataManagerService=e,this.restServiceObj=n,this.globalVarService=o}populateChartsData(e,n){e.push(["Passed",n[0]]),e.push(["Failed",n[1]]),e.push(["Blocked",n[2]]),e.push(["Stopped",n[3]]),e.push(["Pending",n[4]]),e.push(["In Progress",n[5]]),e.push(["Canceled",n[6]])}getRunset(){return this._userDataManagerService.getItemCache()}getAllBusinessFlows(){return(null==this.businessFlows||this.businessFlows.length<=0)&&(this.businessFlows=this.getBusinessFlows()),this.businessFlows}getBusinessFlows(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)e.push(o);return e}getActivities(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)e.push(s);return e}getAllActivities(){return(null==this.activities||this.activities.length<=0)&&(this.activities=this.getActivities()),this.activities}getActions(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)if(null!=s.ActionsColl)for(let r of s.ActionsColl)e.push(r);return e}getAllActions(){return(null==this.actions||this.actions.length<=0)&&(this.actions=this.getActions()),this.actions}getRateArray(e){let n=[],o=this.businessFlows.filter(r=>r.RunStatus==e).length,s=this.businessFlows.length-o;return n.push(o),n.push(s),n}getOthersRateArray(e){}getRunnerExecutionStatus(e){let n=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Passed).length,o=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Failed).length,s=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Stopped).length,r=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Blocked).length,a=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Pending).length,l=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.InProgress).length,c=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Canceled).length,u=e.BusinessFlowsColl.length;return s>0?Lt.Stopped:r>0?Lt.Blocked:o>0?Lt.Failed:n==u?Lt.Passed:a==u||a==u?Lt.Pending:l==u?Lt.InProgress:c==u?Lt.Canceled:null}getRunnersExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.runset.RunnersColl)this.populateArrayByRunStatus(e,n.RunStatus);return e}getAllBusinessFlowsExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.businessFlows)this.populateArrayByRunStatus(e,n.RunStatus);return e}getRunnerBusinessFlowsExecutionStatusArray(e){let n=[0,0,0,0,0,0,0];for(let o of e.BusinessFlowsColl)this.populateArrayByRunStatus(n,o.RunStatus);return n}getActionsExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(),this.runset.TotalActionsPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)if(null!=r.ActionsColl&&r.ActionsColl.length)for(let a of r.ActionsColl)this.populateArrayByRunStatus(e,a.RunStatus);return e}return null}getActionsCount(){let e=0;for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)null!=s.ActionsColl&&s.ActionsColl.length&&(e+=s.ActionsColl.length);return e}getActivitiesExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(),this.runset.TotalActivitesPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)this.populateArrayByRunStatus(e,r.RunStatus);return e}return null}getActivitiesCount(){let e=0;for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)null!=o.ActivitiesColl&&o.ActivitiesColl.length>0&&(e+=o.ActivitiesColl.length);return e}populateArrayByRunStatus(e,n){switch("In Progress"==n.toString()&&(n=Lt.InProgress),n){case Lt.Passed:e[0]++;break;case Lt.Stopped:e[3]++;break;case Lt.Failed:e[1]++;break;case Lt.Pending:e[4]++;break;case Lt.Blocked:e[2]++;break;case Lt.InProgress:e[5]++;break;case Lt.Canceled:e[6]++}}getStatusClass(e,n=!0){let o="";return"Passed"==e?(o="passed-color",n?"fa fa-check-circle-o "+o:o):"Failed"==e?(o="failed-color",n?"fa fa-times-circle-o "+o:o):"Blocked"==e?(o="blocked-color",n?"fa fa-ban "+o:o):"Stopped"==e?(o="stopped-color",n?"fa fa-stop-circle-o "+o:o):"Pending"==e?(o="pending-color",n?"fa fa-clock-o "+o:o):"Skipped"==e?(o="skipped-color",n?"fa fa-minus-circle "+o:o):"In Progress"==e?(o="inprogress-color",n?"fa fa-hourglass-half "+o:o):"Canceled"==e?(o="canceled-color",n?"fa fa-stop-circle-o "+o:o):"Other"==e?"other-color":void 0}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Co),Ze(ha),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qD=(()=>{class t{constructor(){}load(...e){const n=[];return e.forEach(o=>n.push(this.loadScript(o))),Promise.all(n)}loadScript(e){return new Promise((n,o)=>{let s=document.createElement("script");s.setAttribute("data-complete","completeCallback"),s.setAttribute("data-cancel","cancelCallback"),s.setAttribute("data-error","errorCallback"),s.type="text/javascript",s.src=e,s.readyState?s.onreadystatechange=()=>{("loaded"===s.readyState||"complete"===s.readyState)&&(s.onreadystatechange=null,n({script:e,loaded:!0,status:"Loaded"}))}:s.onload=()=>{n({script:e,loaded:!0,status:"Loaded"})},s.onerror=r=>n({script:e,loaded:!1,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(s)})}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HK=(()=>{class t{constructor(e,n,o,s){this._http=e,this._userDataManagerService=n,this.calculatedDataService=o,this.fileLoader=s}getRunsetFromJsonByHttpRequest(){return null==this.runset&&(this.runset=this._http.get("assets/Execution_Data/executiondata.json"),this.runset.subscribe(e=>{const n={...e};this._userDataManagerService.setItem("0",n),this.calculatedDataService.initService()})),this.runset}GetExecutionData(){return new Promise((e,n)=>{let o=null;const s="assets/Execution_Data/executiondata.js?t="+Math.random().toString();this.fileLoader.load(s).then(r=>{typeof window.runsetData<"u"?(o=window.runsetData,this._userDataManagerService.setItemCache(o),this.calculatedDataService.initService(),e(o)):e(null)}).catch(r=>console.log(r))})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(Co),Ze(qs),Ze(qD))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ws=(()=>{class t{constructor(){this.messageSource=new re,this.itemChangedSource=new re,this.refreshChangedSource=new re,this.bfActivitiesSourceChange=new re,this.loadbfActivities=new re,this.runnerStatLoad=new re,this.bfStatLoad=new re,this.activityStatLoad=new re,this.actionStatLoad=new re,this.messageSourceHasNewMessage=this.messageSource.asObservable(),this.onItemChangedMessage=this.itemChangedSource.asObservable(),this.onRefreshChangedMessage=this.refreshChangedSource.asObservable(),this.onBfActivitiesDataChange=this.bfActivitiesSourceChange.asObservable(),this.onloadbfActivities=this.loadbfActivities.asObservable(),this.onactivityStatLoad=this.activityStatLoad.asObservable(),this.onactionStatLoad=this.actionStatLoad.asObservable(),this.onrunnerStatLoad=this.runnerStatLoad.asObservable(),this.onbfStatLoad=this.bfStatLoad.asObservable()}newMessage(e){this.messageSource.next(e)}changeItem(e){this.itemChangedSource.next(e)}refreshScreen(e){this.refreshChangedSource.next(e)}bfActivitiesChange(e){this.bfActivitiesSourceChange.next(e)}loadbfActivitiesData(e){this.loadbfActivities.next(e)}loadactivityStat(e){this.activityStatLoad.next(e)}loadactionStat(e){this.actionStatLoad.next(e)}loadrunnerStat(e){this.runnerStatLoad.next(e)}loadbfStat(e){this.bfStatLoad.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),WD=(()=>{class t{constructor(){this.selectedRouteLink="",this.selectedGuid=""}GetMenuFromRunSet(e,n=null){const o=[],s={id:e.GUID,label:e.Name,routerLink:["/"],icon:"fa fa-play-circle",expanded:!0,title:e.Name,queryParams:n?{ExecutionId:n}:null};return this.CheckSelectedGuid(s.id,s.routerLink),this.SetRunners(e,s),o.push(s),o}SetRunners(e,n){return n.items=[],e.RunnersColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+o.Seq],icon:"fa fa-play-circle-o",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetBusinessFlow(o,r)}),n}SetBusinessFlow(e,n){e.BusinessFlowsColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+e.Seq+"/"+o.Seq],icon:"fa fa-sitemap",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetActivites(o,e,r)})}SetActivites(e,n,o){null!=e.ActivitiesColl&&e.ActivitiesColl.forEach(s=>{let r=this.getStatusIcon(s.RunStatus);const a={id:s.GUID,label:s.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/"+s.Seq],icon:"fa fa-bars",title:s.Name,styleClass:r};this.CheckSelectedGuid(a.id,a.routerLink),o.items.push(a),a.items=[],this.SetActions(s,a,n,e)})}SetActions(e,n,o,s){null!=e.ActionsColl&&e.ActionsColl.forEach(r=>{let a=this.getStatusIcon(r.RunStatus);const l={id:r.GUID,label:r.Name,routerLink:["/"+o.Seq+"/"+s.Seq+"/"+e.Seq+"/"+r.Seq],icon:"fa fa-bolt",title:r.Name,styleClass:a};this.CheckSelectedGuid(l.id,l.routerLink),n.items.push(l)})}SetActGroups(e,n,o){const s={id:"",label:"Activities Groups",icon:"activityGroup-menu-icon",items:[]};e.ActivitiesGroupsColl.forEach(r=>{const a={id:r.GUID,label:r.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/ag/ag/"+r.Name],icon:"fa fa-fw fa-exclamation-circle",title:r.Name};this.CheckSelectedGuid(a.id,a.routerLink),s.items.push(a)}),o.items.push(s)}GetShortName(e){return e.length>20?e.substring(0,20)+"...":e}CheckSelectedGuid(e,n){typeof this.selectedGuid<"u"&&this.selectedGuid&&""===this.selectedRouteLink&&this.selectedGuid===e&&(this.selectedRouteLink=n+"?Guid="+e)}getStatusIcon(e){let n=" "+e+"Status";return e==Lt.Failed||e==Lt.FailIgnored||e==Lt.Passed||e==Lt.Canceled?n:e==Lt.InProgress||n.search("Progress")?"InProgressStatus":e==Lt.Queued||e==Lt.Stopped?n:void 0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class be{static equals(i,e,n){return n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof i&&"object"==typeof e){var s,r,a,n=Array.isArray(i),o=Array.isArray(e);if(n&&o){if((r=i.length)!=e.length)return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[s],e[s]))return!1;return!0}if(n!=o)return!1;var l=this.isDate(i),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return i.getTime()==e.getTime();var u=i instanceof RegExp,p=e instanceof RegExp;if(u!=p)return!1;if(u&&p)return i.toString()==e.toString();var m=Object.keys(i);if((r=m.length)!==Object.keys(e).length)return!1;for(s=r;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,m[s]))return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[a=m[s]],e[a]))return!1;return!0}return i!=i&&e!=e}static resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),o=i;for(let s=0,r=n.length;s=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static insertIntoOrderedArray(i,e,n,o){if(n.length>0){let s=!1;for(let r=0;re){n.splice(r,0,i),s=!0;break}s||n.push(i)}else n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let o=0;o-1&&(i=i.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),i}static isDate(i){return"[object Date]"===Object.prototype.toString.call(i)}static isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!this.isDate(i)&&"object"==typeof i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}static compare(i,e,n,o=1){let s=-1;const r=this.isEmpty(i),a=this.isEmpty(e);return s=r&&a?0:r?o:a?-o:"string"==typeof i&&"string"==typeof e?i.localeCompare(e,n,{numeric:!0}):ie?1:0,s}static sort(i,e,n=1,o,s=1){return(1===s?n:s)*be.compare(i,e,o,n)}static merge(i,e){if(null!=i||null!=e)return null!=i&&"object"!=typeof i||null!=e&&"object"!=typeof e?null!=i&&"string"!=typeof i||null!=e&&"string"!=typeof e?e||i:[i||"",e||""].join(" "):{...i||{},...e||{}}}static isPrintableCharacter(i=""){return this.isNotEmpty(i)&&1===i.length&&i.match(/\S| /)}static getItemValue(i,...e){return this.isFunction(i)?i(...e):i}static findLastIndex(i,e){let n=-1;if(this.isNotEmpty(i))try{n=i.findLastIndex(e)}catch{n=i.lastIndexOf([...i].reverse().find(e))}return n}static findLast(i,e){let n;if(this.isNotEmpty(i))try{n=i.findLast(e)}catch{n=[...i].reverse().find(e)}return n}}var QD=0;function $t(t="pn_id_"){return`${t}${++QD}`}var Wn=function zK(){let t=[];const o=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:o,set:(s,r,a)=>{r&&(r.style.zIndex=String(((s,r)=>{let a=t.length>0?t[t.length-1]:{key:s,value:r},l=a.value+(a.key===s?0:r)+2;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(r=>r.value!==s)})(o(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const ZD=["*"];let vi=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),YD=(()=>class t{static AND="and";static OR="or"})(),df=(()=>{class t{filter(e,n,o,s,r){let a=[];if(e)for(let l of e)for(let c of n){let u=be.resolveFieldData(l,c);if(this.filters[s](u,o,r)){a.push(l);break}}return a}filters={startsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return be.removeAccents(e.toString()).toLocaleLowerCase(o).slice(0,s.length)===s},contains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1!==be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},notContains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1===be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},endsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o),r=be.removeAccents(e.toString()).toLocaleLowerCase(o);return-1!==r.indexOf(s,r.length-s.length)},equals:(e,n,o)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o)),notEquals:(e,n,o)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let o=0;onull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,o)=>this.filters.equals(e,n,o),isNot:(e,n,o)=>this.filters.notEquals(e,n,o),before:(e,n,o)=>this.filters.lt(e,n,o),after:(e,n,o)=>this.filters.gt(e,n,o),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dr=(()=>{class t{clickSource=new re;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ki=(()=>{class t{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[vi.STARTS_WITH,vi.CONTAINS,vi.NOT_CONTAINS,vi.ENDS_WITH,vi.EQUALS,vi.NOT_EQUALS],numeric:[vi.EQUALS,vi.NOT_EQUALS,vi.LESS_THAN,vi.LESS_THAN_OR_EQUAL_TO,vi.GREATER_THAN,vi.GREATER_THAN_OR_EQUAL_TO],date:[vi.DATE_IS,vi.DATE_IS_NOT,vi.DATE_BEFORE,vi.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new re;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-header"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),rC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-footer"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),sn=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(V($o))};static \u0275dir=ut({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),Qe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),di=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})(),j=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let o=n.trim().split(" ");for(let s=0;so.split(" ").forEach(s=>this.removeClass(e,s)))}static hasClass(e,n){return!(!e||!n)&&(e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return Array.from(e.querySelectorAll(n))}static findSingle(e,n){return this.isElement(e)?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,o=0;for(var s=0;s{if(W)return"relative"===getComputedStyle(W).getPropertyValue("position")?W:o(W.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=n.offsetHeight,a=n.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),m=o(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let _,b;a.top+r+s.height>u.height?(_=a.top-m.top-s.height,e.style.transformOrigin="bottom",a.top+_<0&&(_=-1*a.top)):(_=r+a.top-m.top,e.style.transformOrigin="top");const E=a.left+s.width-u.width;b=s.width>u.width?-1*(a.left-m.left):E>0?a.left-m.left-E:a.left-m.left,e.style.top=_+"px",e.style.left=b+"px"}static absolutePosition(e,n){const o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,r=o.width,a=n.offsetHeight,l=n.offsetWidth,c=n.getBoundingClientRect(),u=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),m=this.getViewport();let _,b;c.top+a+s>m.height?(_=c.top+u-s,e.style.transformOrigin="bottom",_<0&&(_=u)):(_=a+c.top+u,e.style.transformOrigin="top"),b=c.left+r>m.width?Math.max(0,c.left+p+l-r):c.left+p,e.style.top=_+"px",e.style.left=b+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let o=this.getParents(e);const s=/(auto|scroll)/,r=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let p=this.findSingle(a,u);p&&r(p)&&n.push(p)}}9!==a.nodeType&&r(a)&&n.push(a)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let o=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=o?parseFloat(o):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),a=r?parseFloat(r):0,l=e.getBoundingClientRect(),u=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,p=e.scrollTop,m=e.clientHeight,_=this.getOuterHeight(n);u<0?e.scrollTop=p+u:u+_>m&&(e.scrollTop=p+u-m+_)}static fadeIn(e,n){e.style.opacity=0;let o=+new Date,s=0,r=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-o)/n,e.style.opacity=s,o=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var o=1,a=50/n;let l=setInterval(()=>{(o-=a)<=0&&(o=0,clearInterval(l)),e.style.opacity=o},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,n){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let o=e.offsetWidth;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return o}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static width(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n}static getOuterHeight(e,n){let o=e.offsetHeight;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return o}static getHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),n}static getViewport(){let e=window,n=document,o=n.documentElement,s=n.getElementsByTagName("body")[0];return{width:e.innerWidth||o.clientWidth||s.clientWidth,height:e.innerHeight||o.clientHeight||s.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let o=e.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(n,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,n){if(this.isElement(n))n.appendChild(e);else{if(!(n&&n.el&&n.el.nativeElement))throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let o=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,o){e[n].apply(e,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableElements(e,n=""){let o=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),s=[];for(let r of o)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return s}static getFirstFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[0]:null}static getLastFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(e,n=!1){const o=t.getFocusableElements(e);let s=0;if(o&&o.length>0){const r=o.indexOf(o[0].ownerDocument.activeElement);n?s=-1==r||0===r?o.length-1:r-1:-1!=r&&r!==o.length-1&&(s=r+1)}return o[s]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:const o=typeof e;if("string"===o)return document.querySelector(e);if("object"===o&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const r=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return r&&9===r.nodeType||this.isExist(r)?r:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){const o=e.getAttribute(n);return isNaN(o)?"true"===o||"false"===o?"true"===o:o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})();class Vu{element;listener;scrollableParents;constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=j.getScrollableParents(this.element);for(let i=0;i{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=be.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[Et],ngContentSelectors:UK,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0})}return t})(),bi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Qi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function $K(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.collapseIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function KK(t,i){1&t&&le(0,"ChevronDownIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function GK(t,i){if(1&t&&(we(0),g(1,$K,1,4,"span",9),g(2,KK,1,2,"ChevronDownIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.collapseIcon),h(1),d("ngIf",!e.accordion.collapseIcon)}}function qK(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.expandIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function WK(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function QK(t,i){if(1&t&&(we(0),g(1,qK,1,4,"span",9),g(2,WK,1,2,"ChevronRightIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.expandIcon),h(1),d("ngIf",!e.accordion.expandIcon)}}function ZK(t,i){if(1&t&&(we(0),g(1,GK,3,2,"ng-container",3),g(2,QK,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.selected),h(1),d("ngIf",!e.selected)}}function YK(t,i){}function XK(t,i){1&t&&g(0,YK,0,0,"ng-template")}function JK(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.header," ")}}function eG(t,i){1&t&&ze(0)}function tG(t,i){1&t&&Kn(0,1,["*ngIf","hasHeaderFacet"])}function nG(t,i){1&t&&ze(0)}function iG(t,i){if(1&t&&(we(0),g(1,nG,1,0,"ng-container",6),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)}}const oG=["*",[["p-header"]]],sG=function(t){return{$implicit:t}},XD=function(t){return{transitionParams:t}},rG=function(t){return{value:"visible",params:t}},aG=function(t){return{value:"hidden",params:t}},lG=["*","p-header"],cG=["*"];let fa=(()=>{class t{el;changeDetector;id;header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}headerAriaLevel=2;selectedChange=new ge;headerFacet;templates;_selected=!1;get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}contentTemplate;headerTemplate;iconTemplate;loaded=!1;accordion;constructor(e,n,o){this.el=n,this.changeDetector=o,this.accordion=e,this.id=$t()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"icon":this.iconTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var o=0;o0}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ga)),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordionTab"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,4),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:"headerAriaLevel"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:lG,decls:12,vars:45,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],["role","heading",1,"p-accordion-header"],["role","button",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-accordion-header-text"]],template:function(n,o){1&n&&(Ti(oG),x(0,"div",0)(1,"div",1)(2,"a",2),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeydown(r)}),g(3,ZK,3,2,"ng-container",3),g(4,XK,1,0,null,4),g(5,JK,2,1,"span",5),g(6,eG,1,0,"ng-container",6),g(7,tG,1,0,"ng-content",3),A()(),x(8,"div",7)(9,"div",8),Kn(10),g(11,iG,2,1,"ng-container",3),A()()()),2&n&&(Ii("p-accordion-tab-active",o.selected),d("ngClass",o.tabStyleClass)("ngStyle",o.tabStyle),K("data-pc-name","accordiontab"),h(1),Ii("p-highlight",o.selected)("p-disabled",o.disabled),K("aria-level",o.headerAriaLevel)("data-p-disabled",o.disabled)("data-pc-section","header"),h(1),yn(o.headerStyle),d("ngClass",o.headerStyleClass),K("tabindex",o.disabled?null:0)("id",o.getTabHeaderActionId(o.id))("aria-controls",o.getTabContentId(o.id))("aria-expanded",o.selected)("aria-disabled",o.disabled)("data-pc-section","headeraction"),h(1),d("ngIf",!o.iconTemplate),h(1),d("ngTemplateOutlet",o.iconTemplate)("ngTemplateOutletContext",He(35,sG,o.selected)),h(1),d("ngIf",!o.hasHeaderFacet),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.hasHeaderFacet),h(1),d("@tabContent",o.selected?He(39,rG,He(37,XD,o.transitionOptions)):He(43,aG,He(41,XD,o.transitionOptions))),K("id",o.getTabContentId(o.id))("aria-hidden",!o.selected)("aria-labelledby",o.getTabHeaderActionId(o.id))("data-pc-section","toggleablecontent"),h(1),d("ngClass",o.contentStyleClass)("ngStyle",o.contentStyle),h(2),d("ngIf",o.contentTemplate&&(o.cache?o.loaded:o.selected)))},dependencies:function(){return[Ct,gt,on,Ht,Qi,bi]},styles:["@layer primeng{.p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}}\n"],encapsulation:2,data:{animation:[Oo("tabContent",[Us("hidden",en({height:"0",visibility:"hidden"})),Us("visible",en({height:"*",visibility:"visible"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),ga=(()=>{class t{el;changeDetector;multiple=!1;style;styleClass;expandIcon;collapseIcon;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}selectOnFocus=!1;get headerAriaLevel(){return this._headerAriaLevel}set headerAriaLevel(e){"number"==typeof e&&e>0?this._headerAriaLevel=e:2!==this._headerAriaLevel&&(this._headerAriaLevel=2)}onClose=new ge;onOpen=new ge;activeIndexChange=new ge;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,n){this.el=e,this.changeDetector=n}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e)}}onTabArrowDownKey(e){const n=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const n=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const n=this.findFirstHeaderAction();this.changeFocusedTab(n),e.preventDefault()}changeFocusedTab(e){e&&(j.focus(e),this.selectOnFocus&&this.tabs.forEach((n,o)=>{let s=this.multiple?this._activeIndex.includes(o):o===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),n.id==e.id&&(n.selected=!n.selected,this._activeIndex.includes(o)?this._activeIndex=this._activeIndex.filter(r=>r!==o):this._activeIndex.push(o))):n.id==e.id?(n.selected=!n.selected,this._activeIndex=o):n.selected=!1,n.selectedChange.emit(s),this.activeIndexChange.emit(this._activeIndex),n.changeDetector.markForCheck()}))}findNextHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){return this.findNextHeaderAction(this.el.nativeElement.firstElementChild.childNodes[0],!0)}findLastHeaderAction(){const e=this.el.nativeElement.firstElementChild.childNodes;return this.findPrevHeaderAction(e[e.length-1],!0)}onTabEndKey(e){const n=this.findLastHeaderAction();this.changeFocusedTab(n),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(n.selected){if(!this.multiple)return void(e=o);e.push(o)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordion"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,fa,5),2&n){let r;Se(r=Ee())&&(o.tabList=r)}},hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown",function(r){return o.onKeydown(r)})},inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex",selectOnFocus:"selectOnFocus",headerAriaLevel:"headerAriaLevel"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:cG,decls:2,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(n,o){1&n&&(Ti(),x(0,"div",0),Kn(1),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-accordion p-component")("ngStyle",o.style))},dependencies:[Ct,Ht],encapsulation:2,changeDetection:0})}return t})(),JD=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qi,bi,Qe]})}return t})();function uG(t,i){if(1&t&&(x(0,"div",8)(1,"span"),Le(2),A()()),2&t){const e=f(2).$implicit,n=f();h(1),Ve(n.getstatus(e.value)),h(1),dt(e.value)}}function dG(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit;h(1),dt(e.value)}}const pG=function(){return["Execution Status"]};function hG(t,i){if(1&t&&(x(0,"div",3),g(1,uG,3,4,"div",6),g(2,dG,2,1,"div",7),A()),2&t){const e=f().$implicit;h(1),d("ngSwitchCase",Jt(1,pG).includes(e.field)?e.field:"")}}function fG(t,i){1&t&&(x(0,"div",3),Le(1,"N/A"),A())}function gG(t,i){if(1&t&&(we(0,2),x(1,"div",3)(2,"strong"),Le(3),A()(),g(4,hG,3,2,"div",4),g(5,fG,2,0,"ng-template",null,5,In),Te()),2&t){const e=i.$implicit,n=Bt(6);d("ngSwitch",e.field),h(3),Pt(" ",e.field,": "),h(1),d("ngIf",e.value)("ngIfElse",n)}}let Ul=(()=>{class t{constructor(){}ngOnInit(){}getstatus(e){return"Passed"==e?"passed-color":"Failed"==e?"failed-color":"Blocked"==e?"blocked-color":"Stopped"==e?"stopped-color":"Pending"==e?"pending-color":"Skipped"==e?"skipped-color":"In Progress"==e?"inprogress-color":"Canceled"==e?"canceled-color":"Other"==e?"other-color":void 0}datepipe(e){e.includes("s")&&(e=e.replace("s",""));var n=new Date(0,0,0,0,0,0,0);return n.toLocaleString("HH:mm:ss.SSS"),n.setSeconds(e),n.setMilliseconds(e.split(".")[1]),n}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-general-details"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[1,"col-12","md:col-3","row"],["class","col-12 md:col-3 row",4,"ngIf","ngIfElse"],["elseBlock",""],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"numbers-style"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,gG,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.data))},dependencies:[Jn,gt,wl,ch,x0],styles:[".row[_ngcontent-%COMP%]{border:solid 1px #ffffff;background-color:#f5f5f6;padding:1rem}.row[_ngcontent-%COMP%]:nth-child(4n+1){background:#eaebeb!important}.row[_ngcontent-%COMP%]:nth-child(4n+3){background:#eaebeb!important}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}"]})}return t})();class ek extends re{constructor(i=1/0,e=1/0,n=sC){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:r}=this;e||(n.push(i),!o&&n.push(s.now()+r)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,s=o.slice();for(let r=0;ra=>t[r](i,a,e)):function CG(t){return L(t.addListener)&&L(t.removeListener)}(t)?mG.map(tk(t,i)):function vG(t){return L(t.on)&&L(t.off)}(t)?IG.map(tk(t,i)):[];if(!o&&dg(t))return si(r=>aC(r,i,e))(Ni(t));if(!o)throw new TypeError("Invalid event target");return new ce(r=>{const a=(...l)=>r.next(1s(a)})}function tk(t,i){return e=>n=>t[e](i,n)}function nk(t,i=GD){return Me((e,n)=>{let o=null,s=null,r=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=s;s=null,n.next(c)}};function l(){const c=r+t,u=i.now();if(u{s=c,r=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{s=o=null}))})}const yG=["*"];var An=function(t){return t.AnnotationChart="AnnotationChart",t.AreaChart="AreaChart",t.Bar="Bar",t.BarChart="BarChart",t.BubbleChart="BubbleChart",t.Calendar="Calendar",t.CandlestickChart="CandlestickChart",t.ColumnChart="ColumnChart",t.ComboChart="ComboChart",t.PieChart="PieChart",t.Gantt="Gantt",t.Gauge="Gauge",t.GeoChart="GeoChart",t.Histogram="Histogram",t.Line="Line",t.LineChart="LineChart",t.Map="Map",t.OrgChart="OrgChart",t.Sankey="Sankey",t.Scatter="Scatter",t.ScatterChart="ScatterChart",t.SteppedAreaChart="SteppedAreaChart",t.Table="Table",t.Timeline="Timeline",t.TreeMap="TreeMap",t.WordTree="wordtree",t}(An||{});const xG={[An.AnnotationChart]:"annotationchart",[An.AreaChart]:"corechart",[An.Bar]:"bar",[An.BarChart]:"corechart",[An.BubbleChart]:"corechart",[An.Calendar]:"calendar",[An.CandlestickChart]:"corechart",[An.ColumnChart]:"corechart",[An.ComboChart]:"corechart",[An.PieChart]:"corechart",[An.Gantt]:"gantt",[An.Gauge]:"gauge",[An.GeoChart]:"geochart",[An.Histogram]:"corechart",[An.Line]:"line",[An.LineChart]:"corechart",[An.Map]:"map",[An.OrgChart]:"orgchart",[An.Sankey]:"sankey",[An.Scatter]:"scatter",[An.ScatterChart]:"corechart",[An.SteppedAreaChart]:"corechart",[An.Table]:"table",[An.Timeline]:"timeline",[An.TreeMap]:"treemap",[An.WordTree]:"wordtree"},ok=new Ye("GOOGLE_CHARTS_CONFIG"),wG=new Ye("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>ht({version:"current",safeMode:!1,...et(ok,zt.Optional)||{}})});let pf=(()=>{class t{constructor(e,n,o){this.zone=e,this.localeId=n,this.config$=o,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new re}isGoogleChartsAvailable(){return!(typeof google>"u"||typeof google.charts>"u")}loadChartPackages(...e){return this.loadGoogleCharts().pipe(si(()=>this.config$),at(n=>({version:"current",safeMode:!1,...n||{}})),Ao(n=>new ce(o=>{google.charts.load(n.version,{packages:e,language:this.localeId,mapsApiKey:n.mapsApiKey,safeMode:n.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{o.next(),o.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return ht(void 0);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(n=>n.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(Ze(Tt),Ze(us),Ze(wG))},t.\u0275prov=nt({token:t,factory:t.\u0275fac}),t})(),sk=(()=>{class t{create(e,n,o){if(null==e)return;let s=!0;null!=n&&(s=!1);const r=google.visualization.arrayToDataTable(this.getDataAsTable(e,n),s);return o&&this.applyFormatters(r,o),r}getDataAsTable(e,n){return n?[n,...e]:e}applyFormatters(e,n){for(const o of n)o.formatter.format(e,o.colIndex)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),EG=(()=>{class t{constructor(e){this.loaderService=e,this.error=new ge,this.ready=new ge,this.stateChange=new ge,this.id=function TG(){return"_"+Math.random().toString(36).substr(2,9)}(),this.wrapperReadySubject=new ek(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(V(pf))},t.\u0275cmp=Oe({type:t,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,n){2&e&&x_("id",n.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[Hn],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),t})(),DG=(()=>{class t{constructor(e,n,o){this.element=e,this.loaderService=n,this.dataTableService=o,this.ready=new ge,this.error=new ge,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(o=>o.wrapperReady$),n=this.controlWrappers.map(o=>o.for).map(o=>Array.isArray(o)?Cu(o.map(s=>s.wrapperReady$)):o.wrapperReady$);Cu([...e,...n]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(n,o,s)=>{google.visualization.events.addListener(n,o,s)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",n=>this.error.emit(n))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const n=e.for.map(o=>o.chartWrapper);this.dashboard.bind(e.controlWrapper,n)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk))},t.\u0275cmp=Oe({type:t,selectors:[["dashboard"]],contentQueries:function(e,n,o){if(1&e&&Gt(o,EG,4),2&e){let s;Se(s=Ee())&&(n.controlWrappers=s)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[Hn],ngContentSelectors:yG,decls:1,vars:0,template:function(e,n){1&e&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0}),t})(),rk=(()=>{class t{constructor(e,n,o,s){this.element=e,this.scriptLoaderService=n,this.dataTableService=o,this.dashboard=s,this.options={},this.dynamicResize=!1,this.ready=new ge,this.error=new ge,this.select=new ge,this.mouseover=new ge,this.mouseleave=new ge,this.wrapperReadySubject=new ek(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){this.scriptLoaderService.loadChartPackages(function AG(t){return xG[t]}(this.type)).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let n=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),n=!0),e.type&&(this.wrapper.setChartType(this.type),n=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),n=!0),n&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,n){const o=this.registerChartEvent(this.chart,e,n);return this.eventListeners.set(o,{eventName:e,callback:n,handle:o}),o}removeEventListener(e){const n=this.eventListeners.get(e);n&&(google.visualization.events.removeListener(n.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=aC(window,"resize",{passive:!0}).pipe(nk(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return{title:this.title,width:this.width,height:this.height,...this.options}}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,n,o){return google.visualization.events.addListener(e,n,o)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk),V(DG,8))},t.\u0275cmp=Oe({type:t,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",options:"options",formatters:"formatters",dynamicResize:"dynamicResize"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[Hn],decls:0,vars:0,template:function(e,n){},styles:["[_nghost-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:block}"],changeDetection:0}),t})(),kG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:ok,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qe({type:t}),t.\u0275inj=Ge({providers:[pf]}),t})(),MG=(()=>{class t{constructor(e){this.communicatorService=e}ngOnInit(){this.InitGraph(),this.communicatorService.onactionStatLoad.subscribe(e=>{"Completed"==e&&"Actions"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Activities"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Runners"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Business Flows"==this.title&&this.InitGraph()})}InitGraph(){this.type="PieChart",this.title=this.chartTitle,this.data=this.executionData,this.columnNames=["Status","Percentage"],this.options={chartArea:{left:0,height:220,width:400},height:400,width:400,legend:{position:"labeled"},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"],is3D:!1,pieHole:.7,pieSliceText:"none",titleTextStyle:{fontFamily:"Arial",fontColor:"#000000",fontSize:12,bold:!0}},this.data=this.executionData}delay(e){return new Promise(n=>setTimeout(n,e))}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-chart"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function OG(t,i){if(1&t&&(x(0,"div")(1,"div",1),le(2,"app-google-chart",2)(3,"app-google-chart",2)(4,"app-google-chart",2)(5,"app-google-chart",2),A()()),2&t){const e=f();h(2),d("executionData",e.runnerData)("chartTitle",e.GingerRunnerTitle),h(1),d("executionData",e.businessFlowsData)("chartTitle",e.BusinessFlowsTitle),h(1),d("executionData",e.activitiesData)("chartTitle",e.ActivitiesTitle),h(1),d("executionData",e.actionsData)("chartTitle",e.ActionsTitle)}}let LG=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this._userDataManagerService=o,this.communicatorService=s,this.isStatisticsVisibleEvent=new ge,this.isStatisticsVisible=!1,this.lables=[Lt.Passed,Lt.Failed,Lt.Blocked,Lt.Stopped,Lt.Pending],this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.LoadActivityStat=!0,this.LoadActionStat=!0}ngOnInit(){}initComponents(){this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.RunsetJson=this._userDataManagerService.getItemCache(),this.LoadActivityStat=null==this._userDataManagerService.getByKey("LoadActivityStat")||this._userDataManagerService.getByKey("LoadActivityStat"),this.LoadActionStat=null==this._userDataManagerService.getByKey("LoadActionStat")||this._userDataManagerService.getByKey("LoadActionStat"),this.activitiesData=this._userDataManagerService.getByKey("ActivitiesStatistics"),this.actionsData=this._userDataManagerService.getByKey("ActionsStatistics"),this.executionDataGingerRunner=this.calculatedDataService.getRunnersExecutionStatusArray(),this.GingerRunnerTitle="Runners",this.calculatedDataService.populateChartsData(this.runnerData,this.executionDataGingerRunner),this.communicatorService.loadrunnerStat("Completed"),this.executionDataBusinessFlows=this.calculatedDataService.getAllBusinessFlowsExecutionStatusArray(),this.BusinessFlowsTitle="Business Flows",this.calculatedDataService.populateChartsData(this.businessFlowsData,this.executionDataBusinessFlows),this.communicatorService.loadbfStat("Completed"),this.ActivitiesTitle="Activities",this.ActionsTitle="Actions",(null==this.activitiesData||null==this.activitiesData||this.activitiesData.length<0||this.LoadActivityStat)&&(this.activitiesData=[],this.executionDataActivities=this.calculatedDataService.getActivitiesExecutionStatusArray(),null!=this.executionDataActivities?this.calculatedDataService.populateChartsData(this.activitiesData,this.executionDataActivities):this.restServiceObj.GetAllActivitiesStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.activitiesData,o),this._userDataManagerService.setItem("ActivitiesStatistics",this.activitiesData),this.communicatorService.loadactivityStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActivityStat","false")}})),(null==this.actionsData||null==this.actionsData||this.actionsData.length<0||this.LoadActivityStat)&&(this.actionsData=[],this.executionDataActions=this.calculatedDataService.getActionsExecutionStatusArray(),null!=this.executionDataActions?this.calculatedDataService.populateChartsData(this.actionsData,this.executionDataActions):this.restServiceObj.GetAllActionsStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.actionsData,o),this._userDataManagerService.setItem("ActionsStatistics",this.actionsData),this.communicatorService.loadactionStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActionStat","false")}})),null!=this.runnerData&&this.runnerData.length>0||this.businessFlowsData&&this.businessFlowsData.length>0||this.activitiesData&&this.activitiesData.length>0||this.actionsData&&this.actionsData.length>0?(this.isStatisticsVisibleEvent.emit(!0),this.isStatisticsVisible=!0):(this.isStatisticsVisibleEvent.emit(!1),this.isStatisticsVisible=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(Co),V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-execution-statistic"]],outputs:{isStatisticsVisibleEvent:"isStatisticsVisibleEvent"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex-container"],[3,"executionData","chartTitle"]],template:function(n,o){1&n&&g(0,OG,6,8,"div",0),2&n&&d("ngIf",o.isStatisticsVisible)},dependencies:[gt,MG],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:wrap}"]})}return t})(),_s=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oo=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){ei(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let n=this.getInk();if(!n||"none"===this.document.defaultView?.getComputedStyle(n,null).display)return;if(j.removeClass(n,"p-ink-active"),!j.getHeight(n)&&!j.getWidth(n)){let a=Math.max(j.getOuterWidth(this.el.nativeElement),j.getOuterHeight(this.el.nativeElement));n.style.height=a+"px",n.style.width=a+"px"}let o=j.getOffset(this.el.nativeElement),s=e.pageX-o.left+this.document.body.scrollTop-j.getWidth(n)/2,r=e.pageY-o.top+this.document.body.scrollLeft-j.getHeight(n)/2;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px"),j.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&j.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let hf=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(kr);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(e,n){this.el=e,this.document=n}ngAfterViewInit(){j.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[kr.button,kr.component];return this.icon&&!this.label&&be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly),this.loading&&(e.push(kr.disabled,kr.loading),!this.icon&&this.label&&e.push(kr.labelOnly),this.icon&&!this.label&&!be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(this.label){let e=this.document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=this.document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&j.addClass(e,n);let o=this.getIconClass();o&&j.addMultipleClasses(e,o),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=j.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=j.findSingle(this.htmlElement,".p-button-icon"),n=j.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?e.className=this.iconPos?"p-button-icon "+(n?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(n){return new(n||t)(V(bt),V(Wt))};static \u0275dir=ut({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,_s,Qe]})}return t})(),Mr=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ff=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mn=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ak=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const $G=["container"],KG=["inputfield"],GG=["contentWrapper"];function qG(t,i){if(1&t){const e=De();x(0,"TimesIcon",10),me("click",function(){return G(e),q(f(3).clear())}),A()}2&t&&d("styleClass","p-calendar-clear-icon")}function WG(t,i){}function QG(t,i){1&t&&g(0,WG,0,0,"ng-template")}function ZG(t,i){if(1&t){const e=De();x(0,"span",11),me("click",function(){return G(e),q(f(3).clear())}),g(1,QG,1,0,null,12),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function YG(t,i){if(1&t&&(we(0),g(1,qG,1,1,"TimesIcon",8),g(2,ZG,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function XG(t,i){1&t&&le(0,"span",15),2&t&&d("ngClass",f(3).icon)}function JG(t,i){1&t&&le(0,"CalendarIcon")}function eq(t,i){}function tq(t,i){1&t&&g(0,eq,0,0,"ng-template")}function nq(t,i){if(1&t&&(we(0),g(1,JG,1,0,"CalendarIcon",6),g(2,tq,1,0,null,12),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.triggerIconTemplate),h(1),d("ngTemplateOutlet",e.triggerIconTemplate)}}function iq(t,i){if(1&t){const e=De();x(0,"button",13),me("click",function(o){G(e),f();const s=Bt(1);return q(f().onButtonClick(o,s))}),g(1,XG,1,1,"span",14),g(2,nq,3,2,"ng-container",6),A()}if(2&t){const e=f(2);d("disabled",e.disabled),K("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId),h(1),d("ngIf",e.icon),h(1),d("ngIf",!e.icon)}}function oq(t,i){if(1&t){const e=De();x(0,"input",4,5),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("click",function(){return G(e),q(f().onInputClick())})("blur",function(o){return G(e),q(f().onInputBlur(o))})("input",function(o){return G(e),q(f().onUserInput(o))}),A(),g(2,YG,3,2,"ng-container",6),g(3,iq,3,6,"button",7)}if(2&t){const e=f();Ve(e.inputStyleClass),d("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),K("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),h(2),d("ngIf",e.showClear&&!e.disabled&&null!=e.value),h(1),d("ngIf",e.showIcon)}}function sq(t,i){1&t&&ze(0)}function rq(t,i){1&t&&le(0,"ChevronLeftIcon",37),2&t&&d("styleClass","p-datepicker-prev-icon")}function aq(t,i){}function lq(t,i){1&t&&g(0,aq,0,0,"ng-template")}function cq(t,i){if(1&t&&(x(0,"span",38),g(1,lq,1,0,null,12),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.previousIconTemplate)}}function uq(t,i){if(1&t){const e=De();x(0,"button",35),me("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(4).onPrevButtonClick(o))}),g(1,rq,1,1,"ChevronLeftIcon",32),g(2,cq,2,1,"span",36),A()}if(2&t){const e=f(4);K("aria-label",e.prevIconAriaLabel),h(1),d("ngIf",!e.previousIconTemplate),h(1),d("ngIf",e.previousIconTemplate)}}function dq(t,i){if(1&t){const e=De();x(0,"button",39),me("click",function(o){return G(e),q(f(4).switchToMonthView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseMonth")),h(1),Pt(" ",n.getMonthName(e.month)," ")}}function pq(t,i){if(1&t){const e=De();x(0,"button",40),me("click",function(o){return G(e),q(f(4).switchToYearView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseYear")),h(1),Pt(" ",n.getYear(e)," ")}}function hq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(5);h(1),Fp("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function fq(t,i){1&t&&ze(0)}const lC=function(t){return{$implicit:t}};function gq(t,i){if(1&t&&(x(0,"span",41),g(1,hq,2,2,"ng-container",6),g(2,fq,1,0,"ng-container",42),A()),2&t){const e=f(4);h(1),d("ngIf",!e.decadeTemplate),h(1),d("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",He(3,lC,e.yearPickerValues))}}function mq(t,i){1&t&&le(0,"ChevronRightIcon",37),2&t&&d("styleClass","p-datepicker-next-icon")}function _q(t,i){}function Iq(t,i){1&t&&g(0,_q,0,0,"ng-template")}function Cq(t,i){if(1&t&&(x(0,"span",43),g(1,Iq,1,0,null,12),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.nextIconTemplate)}}function vq(t,i){if(1&t&&(x(0,"th",49)(1,"span"),Le(2),A()()),2&t){const e=f(5);h(2),dt(e.getTranslation("weekHeader"))}}function bq(t,i){if(1&t&&(x(0,"th",50)(1,"span"),Le(2),A()()),2&t){const e=i.$implicit;h(2),dt(e)}}function yq(t,i){if(1&t&&(x(0,"td",53)(1,"span",54),Le(2),A()()),2&t){const e=f().index,n=f(2).$implicit;h(2),Pt(" ",n.weekNumbers[e]," ")}}function xq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2).$implicit;h(1),dt(e.day)}}function Aq(t,i){1&t&&ze(0)}function wq(t,i){if(1&t&&(we(0),g(1,Aq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Tq(t,i){1&t&&ze(0)}function Sq(t,i){if(1&t&&(we(0),g(1,Tq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.disabledDateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Eq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f(2).$implicit;h(1),Pt(" ",e.day," ")}}const cC=function(t,i){return{"p-highlight":t,"p-disabled":i}};function Dq(t,i){if(1&t){const e=De();we(0),x(1,"span",55),me("click",function(o){G(e);const s=f().$implicit;return q(f(6).onDateSelect(o,s))})("keydown",function(o){G(e);const s=f().$implicit,r=f(3).index;return q(f(3).onDateCellKeydown(o,s,r))}),g(2,xq,2,1,"ng-container",6),g(3,wq,2,4,"ng-container",6),g(4,Sq,2,4,"ng-container",6),A(),g(5,Eq,2,1,"div",56),Te()}if(2&t){const e=f().$implicit,n=f(6);h(1),d("ngClass",mt(5,cC,n.isSelected(e)&&e.selectable,!e.selectable)),h(1),d("ngIf",!n.dateTemplate&&(e.selectable||!n.disabledDateTemplate)),h(1),d("ngIf",e.selectable||!n.disabledDateTemplate),h(1),d("ngIf",!e.selectable),h(1),d("ngIf",n.isSelected(e))}}const kq=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function Mq(t,i){if(1&t&&(x(0,"td",15),g(1,Dq,6,8,"ng-container",6),A()),2&t){const e=i.$implicit,n=f(6);d("ngClass",mt(3,kq,e.otherMonth,e.today)),K("aria-label",e.day),h(1),d("ngIf",!e.otherMonth||n.showOtherMonths)}}function Oq(t,i){if(1&t&&(x(0,"tr"),g(1,yq,3,1,"td",51),g(2,Mq,2,6,"td",52),A()),2&t){const e=i.$implicit,n=f(5);h(1),d("ngIf",n.showWeek),h(1),d("ngForOf",e)}}function Lq(t,i){if(1&t&&(x(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),g(4,vq,3,1,"th",46),g(5,bq,3,1,"th",47),A()(),x(6,"tbody"),g(7,Oq,3,2,"tr",48),A()()()),2&t){const e=f().$implicit,n=f(3);h(4),d("ngIf",n.showWeek),h(1),d("ngForOf",n.weekDays),h(2),d("ngForOf",e.dates)}}function Pq(t,i){if(1&t){const e=De();x(0,"div",24)(1,"div",25),g(2,uq,3,3,"button",26),x(3,"div",27),g(4,dq,2,3,"button",28),g(5,pq,2,3,"button",29),g(6,gq,3,5,"span",30),A(),x(7,"button",31),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).onNextButtonClick(o))}),g(8,mq,1,1,"ChevronRightIcon",32),g(9,Cq,2,1,"span",33),A()(),g(10,Lq,8,3,"div",34),A()}if(2&t){const e=i.index,n=f(3);h(2),d("ngIf",0===e),h(2),d("ngIf","date"===n.currentView),h(1),d("ngIf","year"!==n.currentView),h(1),d("ngIf","year"===n.currentView),h(1),fo("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),K("aria-label",n.nextIconAriaLabel),h(1),d("ngIf",!n.nextIconTemplate),h(1),d("ngIf",n.nextIconTemplate),h(1),d("ngIf","date"===n.currentView)}}function Fq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Rq(t,i){if(1&t){const e=De();x(0,"span",60),me("click",function(o){const r=G(e).index;return q(f(4).onMonthSelect(o,r))})("keydown",function(o){const r=G(e).index;return q(f(4).onMonthCellKeydown(o,r))}),Le(1),g(2,Fq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(4);d("ngClass",mt(3,cC,o.isMonthSelected(n),o.isMonthDisabled(n))),h(1),Pt(" ",e," "),h(1),d("ngIf",o.isMonthSelected(n))}}function Nq(t,i){if(1&t&&(x(0,"div",58),g(1,Rq,3,6,"span",59),A()),2&t){const e=f(3);h(1),d("ngForOf",e.monthPickerValues())}}function Vq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Bq(t,i){if(1&t){const e=De();x(0,"span",63),me("click",function(o){const r=G(e).$implicit;return q(f(4).onYearSelect(o,r))})("keydown",function(o){const r=G(e).$implicit;return q(f(4).onYearCellKeydown(o,r))}),Le(1),g(2,Vq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=f(4);d("ngClass",mt(3,cC,n.isYearSelected(e),n.isYearDisabled(e))),h(1),Pt(" ",e," "),h(1),d("ngIf",n.isYearSelected(e))}}function Hq(t,i){if(1&t&&(x(0,"div",61),g(1,Bq,3,6,"span",62),A()),2&t){const e=f(3);h(1),d("ngForOf",e.yearPickerValues())}}function zq(t,i){if(1&t&&(we(0),x(1,"div",20),g(2,Pq,11,10,"div",21),A(),g(3,Nq,2,1,"div",22),g(4,Hq,2,1,"div",23),Te()),2&t){const e=f(2);h(2),d("ngForOf",e.months),h(1),d("ngIf","month"===e.currentView),h(1),d("ngIf","year"===e.currentView)}}function jq(t,i){1&t&&le(0,"ChevronUpIcon")}function Uq(t,i){}function $q(t,i){1&t&&g(0,Uq,0,0,"ng-template")}function Kq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Gq(t,i){1&t&&le(0,"ChevronDownIcon")}function qq(t,i){}function Wq(t,i){1&t&&g(0,qq,0,0,"ng-template")}function Qq(t,i){1&t&&le(0,"ChevronUpIcon")}function Zq(t,i){}function Yq(t,i){1&t&&g(0,Zq,0,0,"ng-template")}function Xq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Jq(t,i){1&t&&le(0,"ChevronDownIcon")}function eW(t,i){}function tW(t,i){1&t&&g(0,eW,0,0,"ng-template")}function nW(t,i){if(1&t&&(x(0,"div",67)(1,"span"),Le(2),A()()),2&t){const e=f(3);h(2),dt(e.timeSeparator)}}function iW(t,i){1&t&&le(0,"ChevronUpIcon")}function oW(t,i){}function sW(t,i){1&t&&g(0,oW,0,0,"ng-template")}function rW(t,i){1&t&&(we(0),Le(1,"0"),Te())}function aW(t,i){1&t&&le(0,"ChevronDownIcon")}function lW(t,i){}function cW(t,i){1&t&&g(0,lW,0,0,"ng-template")}function uW(t,i){if(1&t){const e=De();x(0,"div",72)(1,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).incrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).incrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(2,iW,1,0,"ChevronUpIcon",6),g(3,sW,1,0,null,12),A(),x(4,"span"),g(5,rW,2,0,"ng-container",6),Le(6),A(),x(7,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).decrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).decrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(8,aW,1,0,"ChevronDownIcon",6),g(9,cW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("nextSecond")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentSecond<10),h(1),dt(e.currentSecond),h(1),K("aria-label",e.getTranslation("prevSecond")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function dW(t,i){1&t&&le(0,"ChevronUpIcon")}function pW(t,i){}function hW(t,i){1&t&&g(0,pW,0,0,"ng-template")}function fW(t,i){1&t&&le(0,"ChevronDownIcon")}function gW(t,i){}function mW(t,i){1&t&&g(0,gW,0,0,"ng-template")}function _W(t,i){if(1&t){const e=De();x(0,"div",73)(1,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(2,dW,1,0,"ChevronUpIcon",6),g(3,hW,1,0,null,12),A(),x(4,"span"),Le(5),A(),x(6,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(7,fW,1,0,"ChevronDownIcon",6),g(8,mW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("am")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),dt(e.pm?"PM":"AM"),h(1),K("aria-label",e.getTranslation("pm")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function IW(t,i){if(1&t){const e=De();x(0,"div",64)(1,"div",65)(2,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).incrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(3,jq,1,0,"ChevronUpIcon",6),g(4,$q,1,0,null,12),A(),x(5,"span"),g(6,Kq,2,0,"ng-container",6),Le(7),A(),x(8,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).decrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(9,Gq,1,0,"ChevronDownIcon",6),g(10,Wq,1,0,null,12),A()(),x(11,"div",67)(12,"span"),Le(13),A()(),x(14,"div",68)(15,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).incrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(16,Qq,1,0,"ChevronUpIcon",6),g(17,Yq,1,0,null,12),A(),x(18,"span"),g(19,Xq,2,0,"ng-container",6),Le(20),A(),x(21,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).decrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(22,Jq,1,0,"ChevronDownIcon",6),g(23,tW,1,0,null,12),A()(),g(24,nW,3,1,"div",69),g(25,uW,10,8,"div",70),g(26,_W,9,7,"div",71),A()}if(2&t){const e=f(2);h(2),K("aria-label",e.getTranslation("nextHour")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentHour<10),h(1),dt(e.currentHour),h(1),K("aria-label",e.getTranslation("prevHour")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(3),dt(e.timeSeparator),h(2),K("aria-label",e.getTranslation("nextMinute")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentMinute<10),h(1),dt(e.currentMinute),h(1),K("aria-label",e.getTranslation("prevMinute")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf","12"==e.hourFormat)}}const lk=function(t){return[t]};function CW(t,i){if(1&t){const e=De();x(0,"div",75)(1,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onTodayButtonClick(o))}),A(),x(2,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onClearButtonClick(o))}),A()()}if(2&t){const e=f(2);h(1),d("label",e.getTranslation("today"))("ngClass",He(4,lk,e.todayButtonStyleClass)),h(1),d("label",e.getTranslation("clear"))("ngClass",He(6,lk,e.clearButtonStyleClass))}}function vW(t,i){1&t&&ze(0)}const bW=function(t,i,e,n,o,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":o,"p-datepicker-touch-ui":s}},ck=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},yW=function(t){return{value:"visibleTouchUI",params:t}},xW=function(t){return{value:"visible",params:t}};function AW(t,i){if(1&t){const e=De();x(0,"div",16,17),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationDone(o))})("click",function(o){return G(e),q(f().onOverlayClick(o))}),Kn(2),g(3,sq,1,0,"ng-container",12),g(4,zq,5,3,"ng-container",6),g(5,IW,27,20,"div",18),g(6,CW,3,8,"div",19),Kn(7,1),g(8,vW,1,0,"ng-container",12),A()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngStyle",e.panelStyle)("ngClass",ea(14,bW,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?He(24,yW,mt(21,ck,e.showTransitionOptions,e.hideTransitionOptions)):He(29,xW,mt(26,ck,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),h(3),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",!e.timeOnly),h(1),d("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),h(1),d("ngIf",e.showButtonBar),h(2),d("ngTemplateOutlet",e.footerTemplate)}}const wW=[[["p-header"]],[["p-footer"]]],TW=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},SW=["p-header","p-footer"],EW={provide:un,useExisting:ft(()=>DW),multi:!0};let DW=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const n=e.split(":"),o=parseInt(n[0]),s=parseInt(n[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new ge;onBlur=new ge;onClose=new ge;onSelect=new ge;onClear=new ge;onInput=new ge;onTodayClick=new ge;onClearClick=new ge;onMonthChange=new ge;onYearChange=new ge;onClickOutside=new ge;onShow=new ge;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.zone=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=$t(),this.panelId=this.attributeSelector+"_panel";const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=j.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let o=e;o<=n;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(di.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(n+o);return e}createMonths(e,n){this.months=this.months=[];for(let o=0;o11&&(s=s%11-1,r=n+1),this.months.push(this.createMonth(s,r))}}getWeekNumber(e){let n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1}createMonth(e,n){let o=[],s=this.getFirstDayOfMonthIndex(e,n),r=this.getDaysCountInMonth(e,n),a=this.getDaysCountInPrevMonth(e,n),l=1,c=new Date,u=[],p=Math.ceil((r+s)/7);for(let m=0;mr){let E=this.getNextMonthAndYear(e,n);_.push({day:l-r,month:E.month,year:E.year,otherMonth:!0,today:this.isToday(c,l-r,E.month,E.year),selectable:this.isSelectable(l-r,E.month,E.year,!0)})}else _.push({day:l,month:e,year:n,today:this.isToday(c,l,e,n),selectable:this.isSelectable(l,e,n,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(_[0].year,_[0].month,_[0].day))),o.push(_)}return{month:e,year:n,dates:o,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYeare[e.length-1]){let n=e[e.length-1]-e[0];this.populateYearOptions(e[0]+n,e[e.length-1]+n)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let n=new Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate=o.getTime()?s=n:(o=n,s=null),this.updateModel([o,s])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(n);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let o=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,n){let o,s;return 0===e?(o=11,s=n-1):(o=e-1,s=n),{month:o,year:s}}getNextMonthAndYear(e,n){let o,s;return 11===e?(o=0,s=n+1):(o=e+1,s=n),{month:o,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let o of this.value)if(n=this.isDateEquals(o,e),n)break;return n}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[n,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=n&&s<=(o??n)}return!1}isMonthDisabled(e){for(let n=1;n=r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,o,s){return e.getDate()===n&&e.getMonth()===o&&e.getFullYear()===s}isSelectable(e,n,o,s){let r=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(r=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(j.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,o){const s=e.currentTarget,r=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.nextElementSibling;l?j.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];j.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=r.previousElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")||j.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=r.nextElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")?this.navigateToMonth(!1,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+3:r-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+2:r-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let s=j.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r=s[s.length-1];r.tabIndex="0",r.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=j.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;n=j.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(e=n[n.length-1])}else e=j.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let n;if("month"===this.currentView){let o=j.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=j.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let o=j.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=j.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(n=j.findSingle(e,"span.p-highlight"),!n){let o=j.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");n=o||j.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||n.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=j.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==o||0===o)if(this.focusTrap)n[n.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else n[o-1].focus();else if(-1==o)if(this.timeOnly)n[0].focus();else{let s=0;for(let r=0;ra||this.minDate.getHours()===a&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?o-24:o:"12"==this.hourFormat&&(this.currentHour<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.validateTime(o,this.currentMinute,this.currentSecond,s)&&(this.currentHour=o,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,n,o){this.disabled||(this.repeat(e,null,n,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,o,s){let r=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,s),this.cd.markForCheck()},r),o){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let n=this.currentHour-this.stepHour,o=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),n=n<=0?12+n:n),this.validateTime(n,this.currentMinute,this.currentSecond,o)&&(this.currentHour=n,this.pm=o),e.preventDefault()}incrementMinute(e){let n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let o=this.parseValueFromString(n);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);n=[];for(let s of o)n.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");n=[];for(let s=0;s{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),j.blockBodyScroll())}disableModality(){this.mask&&(j.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let n,e=this.document.body.children;for(let o=0;o{const p=o+1{let _=""+p;if(s(u))for(;_.lengths(u)?_[p]:m[p];let l="",c=!1;if(e)for(o=0;o11&&12!=o&&(o-=12),n+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,n+=":",n+=s<10?"0"+s:s,this.showSeconds&&(n+=":",n+=r<10?"0"+r:r),"12"==this.hourFormat&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(n[0]),r=parseInt(n[1]),a=this.showSeconds?parseInt(n[2]):null;if(isNaN(s)||isNaN(r)||s>23||r>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:r,second:a}}parseDate(e,n){if(null==n||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let o,s,r,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,p=-1,m=-1,_=!1,E=fe=>{let Ce=o+1{let Ce=E(fe),ve="@"===fe?14:"!"===fe?20:"y"===fe&&Ce?4:"o"===fe?3:2,Pe=new RegExp("^\\d{"+("y"===fe?ve:1)+","+ve+"}"),$e=e.substring(a).match(Pe);if(!$e)throw"Missing number at position "+a;return a+=$e[0].length,parseInt($e[0],10)},W=(fe,Ce,ve)=>{let ke=-1,Pe=E(fe)?ve:Ce,$e=[];for(let Ke=0;Ke-(Ke[1].length-pt[1].length));for(let Ke=0;Ke<$e.length;Ke++){let pt=$e[Ke][1];if(e.substr(a,pt.length).toLowerCase()===pt.toLowerCase()){ke=$e[Ke][0],a+=pt.length;break}}if(-1!==ke)return ke+1;throw"Unknown name at position "+a},te=()=>{if(e.charAt(a)!==n.charAt(o))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(p=1),o=0;o-1)for(u=1,p=m;s=this.getDaysCountInMonth(c,u-1),!(p<=s);)u++,p-=s;if("year"===this.view&&(u=-1===u?1:u,p=-1===p?1:p),b=this.daylightSavingAdjust(new Date(c,u-1,p)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==p)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let n=new Date,o={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,o),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return j.hasClass(e.target,"p-datepicker-prev")||j.hasClass(e.target,"p-datepicker-prev-icon")||j.hasClass(e.target,"p-datepicker-next")||j.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(Tt),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-calendar"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($G,5),je(KG,5),je(GG,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputfieldViewChild=s.first),Se(s=Ee())&&(o.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focus)("p-calendar-clearable",o.showClear&&!o.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[yt([EW])],ngContentSelectors:SW,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(n,o){1&n&&(Ti(wW),x(0,"span",0,1),g(2,oq,4,20,"ng-template",2),g(3,AW,9,31,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngClass",gr(6,TW,o.showIcon,o.timeOnly,o.disabled,o.focus||o.overlayVisible))("ngStyle",o.style),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:function(){return[Ct,Jn,gt,on,Ht,hf,oo,Mr,Qi,ff,bi,mn,ak]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Us("visibleTouchUI",en({transform:"translate(-50%,-50%)",opacity:1})),Ln("void => visible",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}",en({opacity:1,transform:"*"}))]),Ln("visible => void",[On("{{hideTransitionParams}}",en({opacity:0}))]),Ln("void => visibleTouchUI",[en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),On("{{showTransitionParams}}")]),Ln("visibleTouchUI => void",[On("{{hideTransitionParams}}",en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),uk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,Mr,Qi,ff,bi,mn,ak,Mi,Qe]})}return t})(),uC=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=j.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),gf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kW=["overlay"],MW=["content"];function OW(t,i){1&t&&ze(0)}const LW=function(t,i,e){return{showTransitionParams:t,hideTransitionParams:i,transform:e}},PW=function(t){return{value:"visible",params:t}},FW=function(t){return{mode:t}},RW=function(t){return{$implicit:t}};function NW(t,i){if(1&t){const e=De();x(0,"div",1,3),me("click",function(o){return G(e),q(f(2).onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){return G(e),q(f(2).onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){return G(e),q(f(2).onOverlayContentAnimationDone(o))}),Kn(2),g(3,OW,1,0,"ng-container",4),A()}if(2&t){const e=f(2);Ve(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",He(11,PW,Rn(7,LW,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),h(3),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",He(15,RW,He(13,FW,e.overlayMode)))}}const VW=function(t,i,e,n,o,s,r,a,l,c,u,p,m,_){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":i,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":o,"p-overlay-bottom":s,"p-overlay-bottom-start":r,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":p,"p-overlay-right-start":m,"p-overlay-right-end":_}};function BW(t,i){if(1&t){const e=De();x(0,"div",1,2),me("click",function(){return G(e),q(f().onOverlayClick())}),g(2,NW,4,17,"div",0),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass",zp(5,VW,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),h(2),d("ngIf",e.visible)}}const HW=["*"],zW={provide:un,useExisting:ft(()=>mf),multi:!0},jW=Ml([en({transform:"{{transform}}",opacity:0}),On("{{showTransitionParams}}")]),UW=Ml([On("{{hideTransitionParams}}",en({transform:"{{transform}}",opacity:0}))]);let mf=(()=>{class t{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return be.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return be.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return be.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return be.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new ge;onBeforeShow=new ge;onShow=new ge;onBeforeHide=new ge;onHide=new ge;onAnimationStart=new ge;onAnimationDone=new ge;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(ei(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return j.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,n,o,s,r,a,l,c){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.config=r,this.overlayService=a,this.cd=l,this.zone=c,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,n=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.addClass(this.document?.body,"p-overflow-hidden")}hide(e,n=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&j.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Wn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),j.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&j.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const n=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(n,!0),this.bindListeners();break;case"void":this.hide(n,!0),this.unbindListeners(),j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(n),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",e)}handleEvents(e,n){this[e].emit(n),this.options&&this.options[e]&&this.options[e](n),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](n)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&o}):o)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===e.code&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(ki),V(Dr),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-overlay"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(kW,5),je(MW,5)),2&n){let s;Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[yt([zW])],ngContentSelectors:HW,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(Ti(),g(0,BW,3,20,"div",0)),2&n&&d("ngIf",o.modalVisible)},dependencies:[Ct,gt,on,Ht],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[Oo("overlayContentAnimation",[Ln(":enter",[Eh(jW)]),Ln(":leave",[Eh(UW)])])]},changeDetection:0})}return t})(),$l=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Qe]})}return t})();const $W=["element"],KW=["content"];function GW(t,i){1&t&&ze(0)}const dC=function(t,i){return{$implicit:t,options:i}};function qW(t,i){if(1&t&&(we(0),g(1,GW,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(2,dC,e.loadedItems,e.getContentOptions()))}}function WW(t,i){1&t&&ze(0)}function QW(t,i){if(1&t&&(we(0),g(1,WW,1,0,"ng-container",7),Te()),2&t){const e=i.$implicit,n=i.index,o=f(3);h(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",mt(2,dC,e,o.getOptions(n)))}}const ZW=function(t){return{"p-scroller-loading":t}};function YW(t,i){if(1&t&&(x(0,"div",8,9),g(2,QW,2,5,"ng-container",10),A()),2&t){const e=f(2);d("ngClass",He(5,ZW,e.d_loading))("ngStyle",e.contentStyle),K("data-pc-section","content"),h(2),d("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function XW(t,i){1&t&&le(0,"div",11),2&t&&(d("ngStyle",f(2).spacerStyle),K("data-pc-section","spacer"))}function JW(t,i){1&t&&ze(0)}const eQ=function(t){return{numCols:t}},dk=function(t){return{options:t}};function tQ(t,i){if(1&t&&(we(0),g(1,JW,1,0,"ng-container",7),Te()),2&t){const e=i.index,n=f(4);h(1),d("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",He(4,dk,n.getLoaderOptions(e,n.both&&He(2,eQ,n._numItemsInViewport.cols))))}}function nQ(t,i){if(1&t&&(we(0),g(1,tQ,2,6,"ng-container",14),Te()),2&t){const e=f(3);h(1),d("ngForOf",e.loaderArr)}}function iQ(t,i){1&t&&ze(0)}const oQ=function(){return{styleClass:"p-scroller-loading-icon"}};function sQ(t,i){if(1&t&&(we(0),g(1,iQ,1,0,"ng-container",7),Te()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",He(3,dk,Jt(2,oQ)))}}function rQ(t,i){1&t&&le(0,"SpinnerIcon",16),2&t&&(d("styleClass","p-scroller-loading-icon"),K("data-pc-section","loadingIcon"))}function aQ(t,i){if(1&t&&(g(0,sQ,2,5,"ng-container",0),g(1,rQ,1,2,"ng-template",null,15,In)),2&t){const e=Bt(2);d("ngIf",f(3).loaderIconTemplate)("ngIfElse",e)}}const lQ=function(t){return{"p-component-overlay":t}};function cQ(t,i){if(1&t&&(x(0,"div",12),g(1,nQ,2,1,"ng-container",0),g(2,aQ,3,2,"ng-template",null,13,In),A()),2&t){const e=Bt(3),n=f(2);d("ngClass",He(4,lQ,!n.loaderTemplate)),K("data-pc-section","loader"),h(1),d("ngIf",n.loaderTemplate)("ngIfElse",e)}}const uQ=function(t,i,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":i,"p-horizontal-scroll":e}};function dQ(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("scroll",function(o){return G(e),q(f().onContainerScroll(o))}),g(3,qW,2,5,"ng-container",0),g(4,YW,3,7,"ng-template",null,4,In),g(6,XW,1,2,"div",5),g(7,cQ,4,6,"div",6),A(),Te()}if(2&t){const e=Bt(5),n=f();h(1),Ve(n._styleClass),d("ngStyle",n._style)("ngClass",Rn(12,uQ,n.inline,n.both,n.horizontal)),K("id",n._id)("tabindex",n.tabindex)("data-pc-name","scroller")("data-pc-section","root"),h(2),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngIf",n._showSpacer),h(1),d("ngIf",!n.loaderDisabled&&n._showLoader&&n.d_loading)}}function pQ(t,i){1&t&&ze(0)}const hQ=function(t,i){return{rows:t,columns:i}};function fQ(t,i){if(1&t&&(we(0),g(1,pQ,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(5,dC,e.items,mt(2,hQ,e._items,e.loadedColumns)))}}function gQ(t,i){if(1&t&&(Kn(0),g(1,fQ,2,8,"ng-container",17)),2&t){const e=f();h(1),d("ngIf",e.contentTemplate)}}const mQ=["*"];let Bu=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([n,o])=>this[`_${n}`]!==o&&(this[`_${n}`]=o))}onLazyLoad=new ge;onScroll=new ge;onScrollIndexChange=new ge;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.zone=r}ngOnInit(){this.setInitialState()}ngOnChanges(e){let n=!1;if(e.loading){const{previousValue:o,currentValue:s}=e.loading;this.lazy&&o!==s&&s!==this.d_loading&&(this.d_loading=s,n=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:o,currentValue:s}=e.numToleratedItems;o!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){const{previousValue:o,currentValue:s}=e.options;this.lazy&&o?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,n=!0),o?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!n&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){ei(this.platformId)&&j.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=j.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=j.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||j.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,n="auto"){const{numToleratedItems:o}=this.calculateNumItems(),s=this.getContentPosition(),r=(u=0,p)=>u<=p?0:u,a=(u,p,m)=>u*p+m,l=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:n});let c=0;this.both?(c={rows:r(e[0],o[0]),cols:r(e[1],o[1])},l(a(c.cols,this._itemSize[1],s.left),a(c.rows,this._itemSize[0],s.top))):(c=r(e,o),this.horizontal?l(a(c,this._itemSize,s.left),0):l(0,a(c,this._itemSize,s.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(e,n,o="auto"){if(n){const{first:s,viewport:r}=this.getRenderedRange(),a=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:o}),c="to-end"===n;if("to-start"===n){if(this.both)r.first.rows-s.rows>e[0]?a(r.first.cols*this._itemSize[1],(r.first.rows-1)*this._itemSize[0]):r.first.cols-s.cols>e[1]&&a((r.first.cols-1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.first-s>e){const u=(r.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)r.last.rows-s.rows<=e[0]+1?a(r.first.cols*this._itemSize[1],(r.first.rows+1)*this._itemSize[0]):r.last.cols-s.cols<=e[1]+1&&a((r.first.cols+1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.last-s<=e+1){const u=(r.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,o)}getRenderedRange(){const e=(s,r)=>Math.floor(s/(r||s));let n=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:s,scrollLeft:r}=this.elementViewChild.nativeElement;this.both?(n={rows:e(s,this._itemSize[0]),cols:e(r,this._itemSize[1])},o={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols}):(n=e(this.horizontal?r:s,this._itemSize),o=n+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:n,last:o}}}calculateNumItems(){const e=this.getContentPosition(),n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,o=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,s=(c,u)=>Math.ceil(c/(u||c)),r=c=>Math.ceil(c/2),a=this.both?{rows:s(o,this._itemSize[0]),cols:s(n,this._itemSize[1])}:s(this.horizontal?n:o,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[r(a.rows),r(a.cols)]:r(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:n}=this.calculateNumItems(),o=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,n]=[j.getWidth(this.contentEl),j.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),n!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,s]=[j.getWidth(this.elementViewChild.nativeElement),j.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=othis.elementViewChild.nativeElement.style[r]=a;this.both||this.horizontal?(s("height",o),s("width",n)):s("height",o)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),n=(o,s,r,a=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(s||[]).length*r+a+"px"};this.both?(n("height",this._items,this._itemSize[0],e.y),n("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?n("width",this._columns||this._items,this._itemSize,e.x):n("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const n=e?e.first:this.first,o=(r,a)=>r*a,s=(r=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${r}px, ${a}px, 0)`};if(this.both)s(o(n.cols,this._itemSize[1]),o(n.rows,this._itemSize[0]));else{const r=o(n,this._itemSize);this.horizontal?s(r,0):s(0,r)}}}onScrollPositionChange(e){const n=e.target,o=this.getContentPosition(),s=(P,W)=>P?P>W?P-W:P:0,r=(P,W)=>Math.floor(P/(W||P)),a=(P,W,te,fe,Ce,ve)=>P<=Ce?Ce:ve?te-fe-Ce:W+Ce-1,l=(P,W,te,fe,Ce,ve,ke)=>P<=ve?0:Math.max(0,ke?PW?te:P-2*ve),c=(P,W,te,fe,Ce,ve=!1)=>{let ke=W+fe+2*Ce;return P>=Ce&&(ke+=Ce+1),this.getLast(ke,ve)},u=s(n.scrollTop,o.top),p=s(n.scrollLeft,o.left);let m=this.both?{rows:0,cols:0}:0,_=this.last,b=!1,E=this.lastScrollPos;if(this.both){const P=this.lastScrollPos.top<=u,W=this.lastScrollPos.left<=p;if(!this._appendOnly||this._appendOnly&&(P||W)){const te={rows:r(u,this._itemSize[0]),cols:r(p,this._itemSize[1])},fe={rows:a(te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],P),cols:a(te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],W)};m={rows:l(te.rows,fe.rows,this.first.rows,0,0,this.d_numToleratedItems[0],P),cols:l(te.cols,fe.cols,this.first.cols,0,0,this.d_numToleratedItems[1],W)},_={rows:c(te.rows,m.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(te.cols,m.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||_.rows!==this.last.rows||m.cols!==this.first.cols||_.cols!==this.last.cols||this.isRangeChanged,E={top:u,left:p}}}else{const P=this.horizontal?p:u,W=this.lastScrollPos<=P;if(!this._appendOnly||this._appendOnly&&W){const te=r(P,this._itemSize);m=l(te,a(te,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,W),this.first,0,0,this.d_numToleratedItems,W),_=c(te,m,0,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||_!==this.last||this.isRangeChanged,E=P}}return{first:m,last:_,isRangeChanged:b,scrollPos:E}}onScrollChange(e){const{first:n,last:o,isRangeChanged:s,scrollPos:r}=this.onScrollPositionChange(e);if(s){const a={first:n,last:o};if(this.setContentPosition(a),this.first=n,this.last=o,this.lastScrollPos=r,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):n,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:n}=this.onScrollPositionChange(e);(n||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){ei(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,n=j.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,n,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(j.isVisible(this.elementViewChild?.nativeElement)){const[e,n]=[j.getWidth(this.elementViewChild?.nativeElement),j.getHeight(this.elementViewChild?.nativeElement)],[o,s]=[e!==this.defaultWidth,n!==this.defaultHeight];(this.both?o||s:this.horizontal?o:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=n,this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,n){return this.options&&this.options[e]?this.options[e](n):this[e].emit(n)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,n)=>this.getLoaderOptions(e,n),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const n=(this._items||[]).length,o=this.both?this.first.rows+e:this.first+e;return{index:o,count:n,first:0===o,last:o===n-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(e,n){const o=this.loaderArr.length;return{index:e,count:o,first:0===e,last:e===o-1,even:e%2==0,odd:e%2!=0,...n}}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-scroller"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($W,5),je(KW,5)),2&n){let s;Se(s=Ee())&&(o.elementViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Hn],ngContentSelectors:mQ,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(n,o){if(1&n&&(Ti(),g(0,dQ,8,16,"ng-container",0),g(1,gQ,2,1,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",!o._disabled)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,_s]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return t})(),Oi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,_s,Qe]})}return t})(),Kl=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:$t()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.config=s,this.renderer=r,this.viewContainer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(j.hasClass(e.relatedTarget,"p-tooltip")||j.hasClass(e.relatedTarget,"p-tooltip-text")||j.hasClass(e.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?j.appendChild(this.container,this.el.nativeElement):j.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",n=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),j.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Wn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Wn.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof $o){const n=this.viewContainer.createEmbeddedView(e);n.detectChanges(),n.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+j.getWindowScrollLeft(),top:e.top+j.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+j.getOuterWidth(this.el.nativeElement),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-j.getOuterWidth(this.container),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top-j.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top+j.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return j.hasClass(e,"p-inputwrapper")?j.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,o=e.left,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getViewport();return o+s>a.width||o<0||n<0||n+r>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):j.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Wn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(ki),V(hn),V(go))};static \u0275dir=ut({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.escape",function(r){return o.onPressEscape(r)},0,Qy)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Hn]})}return t})(),Nn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),Qs=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function _Q(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function IQ(t,i){1&t&&ze(0)}const Hu=function(t){return{height:t}},CQ=function(t,i,e){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},pC=function(t){return{$implicit:t}},vQ=["container"],bQ=["filter"],yQ=["focusInput"],xQ=["editableInput"],AQ=["items"],wQ=["scroller"],TQ=["overlay"],SQ=["firstHiddenFocusableEl"],EQ=["lastHiddenFocusableEl"];function DQ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.label())}}function kQ(t,i){1&t&&ze(0)}function MQ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(3);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.placeholder)}}function OQ(t,i){if(1&t&&g(0,MQ,2,1,"span",4),2&t){const e=f(2);d("ngIf",e.label()===e.placeholder||e.label()&&!e.placeholder)}}function LQ(t,i){if(1&t){const e=De();x(0,"span",10,11),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),g(2,DQ,2,1,"ng-container",12),g(3,kQ,1,0,"ng-container",13),g(4,OQ,1,1,"ng-template",null,14,In),A()}if(2&t){const e=Bt(5),n=f();d("ngClass",n.inputClass)("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("autofocus",n.autofocus),K("aria-disabled",n.disabled)("id",n.inputId)("aria-label",n.ariaLabel||("p-emptylabel"===n.label()?void 0:n.label()))("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible)("aria-controls",n.id+"_list")("tabindex",n.disabled?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0),h(2),d("ngIf",!n.selectedItemTemplate)("ngIfElse",e),h(1),d("ngTemplateOutlet",n.selectedItemTemplate)("ngTemplateOutletContext",He(19,pC,n.modelValue()))}}function PQ(t,i){if(1&t){const e=De();x(0,"input",15,16),me("input",function(o){return G(e),q(f().onEditableInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))}),A()}if(2&t){const e=f();d("ngClass",e.inputClass)("disabled",e.disabled),K("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function FQ(t,i){if(1&t){const e=De();x(0,"TimesIcon",19),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-dropdown-clear-icon"),K("data-pc-section","clearicon"))}function RQ(t,i){}function NQ(t,i){1&t&&g(0,RQ,0,0,"ng-template")}function VQ(t,i){if(1&t){const e=De();x(0,"span",20),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,NQ,1,0,null,21),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function BQ(t,i){if(1&t&&(we(0),g(1,FQ,1,2,"TimesIcon",17),g(2,VQ,2,2,"span",18),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function HQ(t,i){1&t&&le(0,"span",24),2&t&&d("ngClass",f(2).dropdownIcon)}function zQ(t,i){1&t&&le(0,"ChevronDownIcon",25),2&t&&d("styleClass","p-dropdown-trigger-icon")}function jQ(t,i){if(1&t&&(we(0),g(1,HQ,1,1,"span",22),g(2,zQ,1,1,"ChevronDownIcon",23),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function UQ(t,i){}function $Q(t,i){1&t&&g(0,UQ,0,0,"ng-template")}function KQ(t,i){if(1&t&&(x(0,"span",26),g(1,$Q,1,0,null,21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function GQ(t,i){1&t&&ze(0)}function qQ(t,i){1&t&&ze(0)}const pk=function(t){return{options:t}};function WQ(t,i){if(1&t&&(we(0),g(1,qQ,1,0,"ng-container",13),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,pk,e.filterOptions))}}function QQ(t,i){1&t&&le(0,"SearchIcon",25),2&t&&d("styleClass","p-dropdown-filter-icon")}function ZQ(t,i){}function YQ(t,i){1&t&&g(0,ZQ,0,0,"ng-template")}function XQ(t,i){if(1&t&&(x(0,"span",41),g(1,YQ,1,0,null,21),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function JQ(t,i){if(1&t){const e=De();x(0,"div",37)(1,"input",38,39),me("input",function(o){return G(e),q(f(3).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,QQ,1,1,"SearchIcon",23),g(4,XQ,2,1,"span",40),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||""),K("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function eZ(t,i){if(1&t&&(x(0,"div",35),me("click",function(n){return n.stopPropagation()}),g(1,WQ,2,4,"ng-container",12),g(2,JQ,5,7,"ng-template",null,36,In),A()),2&t){const e=Bt(3),n=f(2);h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function tZ(t,i){1&t&&ze(0)}const hk=function(t,i){return{$implicit:t,options:i}};function nZ(t,i){if(1&t&&g(0,tZ,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,hk,e,n))}}function iZ(t,i){1&t&&ze(0)}function oZ(t,i){if(1&t&&g(0,iZ,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,pk,e))}}function sZ(t,i){1&t&&(we(0),g(1,oZ,1,4,"ng-template",44),Te())}function rZ(t,i){if(1&t){const e=De();x(0,"p-scroller",42,43),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,nZ,1,5,"ng-template",9),g(3,sZ,2,0,"ng-container",4),A()}if(2&t){const e=f(2);yn(He(8,Hu,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function aZ(t,i){1&t&&ze(0)}const lZ=function(){return{}};function cZ(t,i){if(1&t&&(we(0),g(1,aZ,1,0,"ng-container",13),Te()),2&t){f();const e=Bt(9),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,hk,n.visibleOptions(),Jt(2,lZ)))}}function uZ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function dZ(t,i){1&t&&ze(0)}function pZ(t,i){if(1&t&&(we(0),x(1,"li",49),g(2,uZ,2,1,"span",4),g(3,dZ,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,Hu,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,pC,o.optionGroup))}}function hZ(t,i){if(1&t){const e=De();we(0),x(1,"p-dropdownItem",50),me("onClick",function(o){G(e);const s=f().$implicit;return q(f(3).onOptionSelect(o,s))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function fZ(t,i){if(1&t&&(g(0,pZ,4,9,"ng-container",4),g(1,hZ,2,9,"ng-container",4)),2&t){const e=i.$implicit;d("ngIf",e.group),h(1),d("ngIf",!e.group)}}function gZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function mZ(t,i){1&t&&ze(0,null,52)}function _Z(t,i){if(1&t&&(x(0,"li",51),g(1,gZ,2,1,"ng-container",12),g(2,mZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function IZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function CZ(t,i){1&t&&ze(0,null,53)}function vZ(t,i){if(1&t&&(x(0,"li",51),g(1,IZ,2,1,"ng-container",12),g(2,CZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function bZ(t,i){if(1&t&&(x(0,"ul",45,46),g(2,fZ,2,2,"ng-template",47),g(3,_Z,3,6,"li",48),g(4,vZ,3,6,"li",48),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",o.filterValue&&o.isEmpty()),h(1),d("ngIf",!o.filterValue&&o.isEmpty())}}function yZ(t,i){1&t&&ze(0)}function xZ(t,i){if(1&t){const e=De();x(0,"div",27)(1,"span",28,29),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,GQ,1,0,"ng-container",21),g(4,eZ,4,2,"div",30),x(5,"div",31),g(6,rZ,4,10,"p-scroller",32),g(7,cZ,2,6,"ng-container",4),g(8,bZ,5,7,"ng-template",null,33,In),A(),g(10,yZ,1,0,"ng-container",21),x(11,"span",28,34),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",e.filter),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngTemplateOutlet",e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const AZ={provide:un,useExisting:ft(()=>fk),multi:!0};let wZ=(()=>{class t{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new ge;onMouseEnter=new ge;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),g(1,_Q,2,1,"span",1),g(2,IQ,1,0,"ng-container",2),A()),2&n&&(d("id",o.id)("ngStyle",He(13,Hu,o.itemSize+"px"))("ngClass",Rn(15,CQ,o.selected,o.disabled,o.focused)),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(19,pC,o.option)))},dependencies:[Ct,gt,on,Ht,oo],encapsulation:2})}return t})(),fk=(()=>{class t{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get options(){return this._options()}set options(e){this._options.set(e)}onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onShow=new ge;onHide=new ge;onClear=new ge;onLazyLoad=new ge;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=bn(null);modelValue=bn(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=bn(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=bn(-1);labelId;listId;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&be.isNotEmpty(this.modelValue())&&""!==this.modelValue()&&this.showClear&&!this.disabled}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder&&e===this.placeholder,"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||e&&"p-emptylabel"!==e&&0!==e.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterBy||this.filterFields||this.optionValue?this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):this.options.filter(o=>-1!==o.toLowerCase().indexOf(this._filterValue().toLowerCase()));if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{const e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions()[e]):this.placeholder||"p-emptylabel"});constructor(e,n,o,s,r,a){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,a_(()=>{this.modelValue()&&this.editable&&this.updateEditableLabel()})}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&j.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&!this.modelValue()){const e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,o=!0,s=!1){const r=this.getOptionValue(n);this.updateModel(r,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o&&this.hide(!0),!1===s&&this.onChange.emit({originalEvent:e,value:r})}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder&&!this.modelValue()&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=void 0===this.getOptionLabel(this.modelValue())?this.editableInputViewChild.nativeElement.value:this.getOptionLabel(this.modelValue()))}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&void 0!==e?.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==e.target.tagName&&"clearicon"!==e.target.getAttribute("data-pc-section")&&!e.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.cd.detectChanges()))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}onEditableInput(e){const n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:n})}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n){if(!this.disabled&&!this.readonly)switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){const o=this.visibleOptions()[n];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(),e.preventDefault()}else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1)):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!n&&this.onEnterKey(e)}onEnterKey(e){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.hide()}else this.onArrowDownKey(e);e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild.el.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild.nativeElement;j.focus(n)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),this.cd.markForCheck()}applyFocus(){this.editable?j.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():j.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e)}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dropdown"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(vQ,5),je(bQ,5),je(yQ,5),je(xQ,5),je(AQ,5),je(wQ,5),je(TQ,5),je(SQ,5),je(EQ,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.editableInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[yt([AZ])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultPlaceholder",""],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,LQ,6,21,"span",2),g(3,PQ,2,5,"input",3),g(4,BQ,3,2,"ng-container",4),x(5,"div",5),g(6,jQ,3,2,"ng-container",4),g(7,KQ,2,1,"span",6),A(),x(8,"p-overlay",7,8),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(10,xZ,13,19,"ng-template",9),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),d("ngIf",!o.editable),h(1),d("ngIf",o.editable),h(1),d("ngIf",o.isVisibleClearIcon),h(1),K("aria-expanded",o.overlayVisible)("data-pc-section","trigger"),h(1),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,Bu,uC,mn,bi,Qs,wZ]},styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_f=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,gf,mn,bi,Qs,$l,Qe,Oi]})}return t})(),Or=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),If=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),hC=(()=>{class t{el;ngModel;cd;filled;constructor(e,n,o){this.el=e,this.ngModel=n,this.cd=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(n){return new(n||t)(V(bt),V(xh,8),V(Ft))};static \u0275dir=ut({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(n,o){1&n&&me("input",function(r){return o.onInput(r)}),2&n&&Ii("p-filled",o.filled)}})}return t})(),Zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const TZ=["input"];function SZ(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("ngClass","p-inputnumber-clear-icon"),K("data-pc-section","clearIcon"))}function EZ(t,i){}function DZ(t,i){1&t&&g(0,EZ,0,0,"ng-template")}function kZ(t,i){if(1&t){const e=De();x(0,"span",9),me("click",function(){return G(e),q(f(2).clear())}),g(1,DZ,1,0,null,10),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function MZ(t,i){if(1&t&&(we(0),g(1,SZ,1,2,"TimesIcon",6),g(2,kZ,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function OZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function LZ(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function PZ(t,i){}function FZ(t,i){1&t&&g(0,PZ,0,0,"ng-template")}function RZ(t,i){if(1&t&&(we(0),g(1,LZ,1,1,"AngleUpIcon",3),g(2,FZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function NZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function VZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function BZ(t,i){}function HZ(t,i){1&t&&g(0,BZ,0,0,"ng-template")}function zZ(t,i){if(1&t&&(we(0),g(1,VZ,1,1,"AngleDownIcon",3),g(2,HZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const gk=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},mk=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function jZ(t,i){if(1&t){const e=De();x(0,"span",11)(1,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(2,OZ,1,2,"span",13),g(3,RZ,3,2,"ng-container",3),A(),x(4,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(5,NZ,1,2,"span",13),g(6,zZ,3,2,"ng-container",3),A()()}if(2&t){const e=f();K("data-pc-section","buttonGroup"),h(1),Ve(e.incrementButtonClass),d("ngClass",Jt(17,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon),h(1),Ve(e.decrementButtonClass),d("ngClass",Jt(18,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section",e.decrementbutton),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}function UZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function $Z(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function KZ(t,i){}function GZ(t,i){1&t&&g(0,KZ,0,0,"ng-template")}function qZ(t,i){if(1&t&&(we(0),g(1,$Z,1,1,"AngleUpIcon",3),g(2,GZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function WZ(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(1,UZ,1,2,"span",13),g(2,qZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.incrementButtonClass),d("ngClass",Jt(8,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon)}}function QZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function ZZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function YZ(t,i){}function XZ(t,i){1&t&&g(0,YZ,0,0,"ng-template")}function JZ(t,i){if(1&t&&(we(0),g(1,ZZ,1,1,"AngleDownIcon",3),g(2,XZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function eY(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(1,QZ,1,2,"span",13),g(2,JZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.decrementButtonClass),d("ngClass",Jt(8,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","decrementbutton"),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}const tY=function(t,i,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},nY={provide:un,useExisting:ft(()=>_k),multi:!0};let _k=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new ge;onFocus=new ge;onBlur=new ge;onKeyDown=new ge;onClear=new ge;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,n,o,s){this.document=e,this.el=n,this.cd=o,this.injector=s}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(o=>!!e[o])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template}})}ngOnInit(){this.ngControl=this.injector.get(ds,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(e.map((o,s)=>[o,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=o=>n.get(o)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let o=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(o=this.prefix+o),this.suffix&&(o+=this.suffix),o}return e.toString()}return""}parseValue(e){let n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if("-"===n)return n;let o=+n;return isNaN(o)?null:o}return null}repeat(e,n,o){if(this.readonly)return;let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let o=this.step*n,s=this.parseValue(this.input?.nativeElement.value)||0,r=this.validateValue(s+o);this.maxlength&&this.maxlength0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n-1)+s.slice(n)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Delete":if(e.preventDefault(),n===o){const a=s.charAt(n),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,r=s.slice(0,n)+s.slice(n+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(n+1,n+1):r=s.slice(0,n)+s.slice(n+1);else if(l>0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n)+s.slice(n+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault())}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let n=e.which||e.keyCode,o=String.fromCharCode(n);const s=this.isDecimalSign(o),r=this.isMinusSign(o);13!=n&&e.preventDefault();const a=this.parseValue(this.input.nativeElement.value+o),l=null!=a?a.toString():"";this.maxlength&&l.length>this.maxlength||(48<=n&&n<=57||r||s)&&this.insert(e,o,{isDecimalSign:s,isMinusSign:r})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(n){this.maxlength&&(n=n.toString().substring(0,this.maxlength));let o=this.parseValue(n);null!=o&&this.insert(e,o.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const n=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:o,suffixCharIndex:s,currencyCharIndex:r}}insert(e,n,o={isDecimalSign:!1,isMinusSign:!1}){const s=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let r=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:p,currencyCharIndex:m}=this.getCharIndexes(l);let _;if(o.isMinusSign)0===r&&(_=l,(-1===u||0!==a)&&(_=this.insertText(l,n,0,a)),this.updateValue(e,_,n,"insert"));else if(o.isDecimalSign)c>0&&r===c?this.updateValue(e,l,n,"insert"):(c>r&&c0&&r>c){if(r+n.length-(c+1)<=b){const P=m>=r?m-1:p>=r?p:l.length;_=l.slice(0,r)+n+l.slice(r+n.length,P)+l.slice(P),this.updateValue(e,_,n,E)}}else _=this.insertText(l,n,r,a),this.updateValue(e,_,n,E)}}insertText(e,n,o,s){if(2===("."===n?n:n.split(".")).length){const a=e.slice(o,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,o)+this.formatValue(n)+e.slice(s):e||this.formatValue(n)}return s-o===e.length?this.formatValue(n):0===o?n+e.slice(s):s===e.length?e.slice(0,o)+n:e.slice(0,o)+n+e.slice(s)}deleteRange(e,n,o){let s;return s=o-n===e.length?"":0===n?e.slice(o):o===e.length?e.slice(0,n):e.slice(0,n)+e.slice(o),s}initCursor(){let e=this.input?.nativeElement.selectionStart,n=this.input?.nativeElement.value,o=n.length,s=null,r=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=r;let a=n.charAt(e);if(this.isNumeralChar(a))return e+r;let l=e-1;for(;l>=0;){if(a=n.charAt(l),this.isNumeralChar(a)){s=l+r;break}l--}if(null!==s)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,n,o,s){n=n||"";let r=this.input?.nativeElement.value,a=this.formatValue(e),l=r.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft),V($i))};static \u0275cmp=Oe({type:t,selectors:[["p-inputNumber"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(TZ,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-inputnumber-clearable",o.showClear&&"vertical"!=o.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[yt([nY]),Hn],decls:7,vars:39,consts:[[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("input",function(r){return o.onUserInput(r)})("keydown",function(r){return o.onInputKeyDown(r)})("keypress",function(r){return o.onInputKeyPress(r)})("paste",function(r){return o.onPaste(r)})("click",function(){return o.onInputClick()})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A(),g(3,MZ,3,2,"ng-container",3),g(4,jZ,7,19,"span",4),g(5,WZ,3,9,"button",5),g(6,eY,3,9,"button",5),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(35,tY,o.showButtons&&"stacked"===o.buttonLayout,o.showButtons&&"horizontal"===o.buttonLayout,o.showButtons&&"vertical"===o.buttonLayout))("ngStyle",o.style),K("data-pc-name","inputnumber")("data-pc-section","root"),h(1),Ve(o.inputStyleClass),d("ngClass","p-inputnumber-input")("ngStyle",o.inputStyle)("value",o.formattedValue())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("aria-valuemin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("placeholder",o.placeholder)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("title",o.title)("size",o.size)("name",o.name)("autocomplete",o.autocomplete)("maxlength",o.maxlength)("tabindex",o.tabindex)("aria-required",o.ariaRequired)("required",o.required)("min",o.min)("max",o.max)("data-pc-section","input"),h(2),d("ngIf","vertical"!=o.buttonLayout&&o.showClear&&o.value),h(1),d("ngIf",o.showButtons&&"stacked"===o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout))},dependencies:function(){return[Ct,gt,on,Ht,hC,hf,mn,If,Or]},styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),fC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Mi,mn,If,Or,Qe]})}return t})(),gC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),_C=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Zo=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function iY(t,i){1&t&&ze(0)}const IC=function(t){return{$implicit:t}};function oY(t,i){if(1&t&&(x(0,"div",15),g(1,iY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","start"),h(1),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function sY(t,i){if(1&t&&(x(0,"span",17),Le(1),A()),2&t){const e=f(2);h(1),dt(e.currentPageReport)}}function rY(t,i){1&t&&le(0,"AngleDoubleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function aY(t,i){}function lY(t,i){1&t&&g(0,aY,0,0,"ng-template")}function cY(t,i){if(1&t&&(x(0,"span",20),g(1,lY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const Cf=function(t){return{"p-disabled":t}};function uY(t,i){if(1&t){const e=De();x(0,"button",18),me("click",function(o){return G(e),q(f(2).changePageToFirst(o))}),g(1,rY,1,1,"AngleDoubleLeftIcon",6),g(2,cY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isFirstPage()||e.empty())("ngClass",He(5,Cf,e.isFirstPage()||e.empty())),K("aria-label","firstPageLabel"),h(1),d("ngIf",!e.firstPageLinkIconTemplate),h(1),d("ngIf",e.firstPageLinkIconTemplate)}}function dY(t,i){1&t&&le(0,"AngleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function pY(t,i){}function hY(t,i){1&t&&g(0,pY,0,0,"ng-template")}function fY(t,i){if(1&t&&(x(0,"span",20),g(1,hY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const gY=function(t){return{"p-highlight":t}};function mY(t,i){if(1&t){const e=De();x(0,"button",24),me("click",function(o){const r=G(e).$implicit;return q(f(3).onPageLinkClick(o,r-1))}),Le(1),A()}if(2&t){const e=i.$implicit,n=f(3);d("ngClass",He(2,gY,e-1==n.getPage())),h(1),Pt(" ",n.getLocalization(e)," ")}}function _Y(t,i){if(1&t&&(x(0,"span",22),g(1,mY,2,4,"button",23),A()),2&t){const e=f(2);h(1),d("ngForOf",e.pageLinks)}}function IY(t,i){1&t&&Le(0),2&t&&dt(f(3).currentPageReport)}function CY(t,i){if(1&t){const e=De();x(0,"p-dropdown",25),me("onChange",function(o){return G(e),q(f(2).onPageDropdownChange(o))}),g(1,IY,1,1,"ng-template",26),A()}if(2&t){const e=f(2);d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),K("aria-label","jumpToPageDropdownLabel")}}function vY(t,i){1&t&&le(0,"AngleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function bY(t,i){}function yY(t,i){1&t&&g(0,bY,0,0,"ng-template")}function xY(t,i){if(1&t&&(x(0,"span",20),g(1,yY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function AY(t,i){1&t&&le(0,"AngleDoubleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function wY(t,i){}function TY(t,i){1&t&&g(0,wY,0,0,"ng-template")}function SY(t,i){if(1&t&&(x(0,"span",20),g(1,TY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function EY(t,i){if(1&t){const e=De();x(0,"button",27),me("click",function(o){return G(e),q(f(2).changePageToLast(o))}),g(1,AY,1,1,"AngleDoubleRightIcon",6),g(2,SY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isLastPage()||e.empty())("ngClass",He(4,Cf,e.isLastPage()||e.empty())),h(1),d("ngIf",!e.lastPageLinkIconTemplate),h(1),d("ngIf",e.lastPageLinkIconTemplate)}}function DY(t,i){if(1&t){const e=De();x(0,"p-inputNumber",28),me("ngModelChange",function(o){return G(e),q(f(2).changePage(o-1))}),A()}if(2&t){const e=f(2);d("ngModel",e.currentPage())("disabled",e.empty())}}function kY(t,i){1&t&&ze(0)}function MY(t,i){if(1&t&&g(0,kY,1,0,"ng-container",16),2&t){const e=i.$implicit;d("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",He(2,IC,e))}}function OY(t,i){1&t&&(we(0),g(1,MY,1,4,"ng-template",31),Te())}function LY(t,i){if(1&t){const e=De();x(0,"p-dropdown",29),me("ngModelChange",function(o){return G(e),q(f(2).rows=o)})("onChange",function(o){return G(e),q(f(2).onRppChange(o))}),g(1,OY,2,0,"ng-container",30),A()}if(2&t){const e=f(2);d("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),h(1),d("ngIf",e.dropdownItemTemplate)}}function PY(t,i){1&t&&ze(0)}function FY(t,i){if(1&t&&(x(0,"div",32),g(1,PY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","end"),h(1),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function RY(t,i){if(1&t){const e=De();x(0,"div",1),g(1,oY,2,5,"div",2),g(2,sY,2,1,"span",3),g(3,uY,3,7,"button",4),x(4,"button",5),me("click",function(o){return G(e),q(f().changePageToPrev(o))}),g(5,dY,1,1,"AngleLeftIcon",6),g(6,fY,2,1,"span",7),A(),g(7,_Y,2,1,"span",8),g(8,CY,2,6,"p-dropdown",9),x(9,"button",10),me("click",function(o){return G(e),q(f().changePageToNext(o))}),g(10,vY,1,1,"AngleRightIcon",6),g(11,xY,2,1,"span",7),A(),g(12,EY,3,6,"button",11),g(13,DY,1,2,"p-inputNumber",12),g(14,LY,2,6,"p-dropdown",13),g(15,FY,2,5,"div",14),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass","p-paginator p-component"),K("data-pc-section","paginator")("data-pc-section","root"),h(1),d("ngIf",e.templateLeft),h(1),d("ngIf",e.showCurrentPageReport),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("disabled",e.isFirstPage()||e.empty())("ngClass",He(25,Cf,e.isFirstPage()||e.empty())),K("aria-label","prevPageLabel"),h(1),d("ngIf",!e.previousPageLinkIconTemplate),h(1),d("ngIf",e.previousPageLinkIconTemplate),h(1),d("ngIf",e.showPageLinks),h(1),d("ngIf",e.showJumpToPageDropdown),h(1),d("disabled",e.isLastPage()||e.empty())("ngClass",He(27,Cf,e.isLastPage()||e.empty())),K("aria-label","lastPageLabel"),h(1),d("ngIf",!e.nextPageLinkIconTemplate),h(1),d("ngIf",e.nextPageLinkIconTemplate),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("ngIf",e.showJumpToPageInput),h(1),d("ngIf",e.rowsPerPageOptions),h(1),d("ngIf",e.templateRight)}}let NY=(()=>{class t{cd;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new ge;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const n=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(n.map((s,r)=>[r,s]));return e>9?String(e).split("").map(r=>o.get(Number(r))).join(""):o.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),n=Math.min(this.pageLinkSize,e),o=Math.max(0,Math.ceil(this.getPage()-n/2)),s=Math.min(e-1,o+n-1);return o=Math.max(0,o-(this.pageLinkSize-(s-o+1))),[o,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),o=e[1];for(let s=e[0];s<=o;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,n){this.changePage(n),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-paginator"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Hn],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(n,o){1&n&&g(0,RY,16,29,"div",0),2&n&&d("ngIf",!!o.alwaysShow||o.pageLinks&&o.pageLinks.length>1)},dependencies:function(){return[Ct,Jn,gt,on,Ht,fk,sn,_k,sS,xh,oo,gC,mC,_C,Zo]},styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),vf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,_f,fC,uu,Qe,dn,gC,mC,_C,Zo,_f,fC,uu,Qe]})}return t})();const VY=["container"];function BY(t,i){1&t&&le(0,"span",8),2&t&&(Ve(f(2).$implicit.icon),d("ngClass","p-button-icon p-button-icon-left"),K("data-pc-section","icon"))}function HY(t,i){if(1&t&&(we(0),g(1,BY,1,4,"span",6),x(2,"span",7),Le(3),A(),Te()),2&t){const e=f().$implicit,n=f();h(1),d("ngIf",e.icon),h(1),K("data-pc-section","label"),h(1),dt(n.getOptionLabel(e))}}function zY(t,i){1&t&&ze(0)}const jY=function(t,i){return{$implicit:t,index:i}};function UY(t,i){if(1&t&&g(0,zY,1,0,"ng-container",9),2&t){const e=f(),n=e.$implicit,o=e.index;d("ngTemplateOutlet",f().selectButtonTemplate)("ngTemplateOutletContext",mt(2,jY,n,o))}}const $Y=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function KY(t,i){if(1&t){const e=De();x(0,"div",3),me("click",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onOptionSelect(o,r,a))})("keydown",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onKeyDown(o,r,a))})("focus",function(o){const r=G(e).index;return q(f().onFocus(o,r))})("blur",function(){return G(e),q(f().onBlur())}),g(1,HY,4,3,"ng-container",4),g(2,UY,1,5,"ng-template",null,5,In),A()}if(2&t){const e=i.$implicit,n=i.index,o=Bt(3),s=f();Ve(e.styleClass),d("role",s.multiple?"checkbox":"radio")("ngClass",Rn(14,$Y,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),K("tabindex",n===s.focusedIndex?"0":"-1")("aria-label",e.label)("aria-checked",s.isSelected(e))("aria-disabled",s.optionDisabled)("aria-pressed",s.isSelected(e))("title",e.title)("aria-labelledby",s.getOptionLabel(e))("data-pc-section","button"),h(1),d("ngIf",!s.itemTemplate)("ngIfElse",o)}}const GY={provide:un,useExisting:ft(()=>qY),multi:!0};let qY=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new ge;onChange=new ge;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,n,o){if(this.disabled||this.isOptionDisabled(n))return;let s=this.isSelected(n);if(s&&this.unselectable)return;let a,r=this.getOptionValue(n);if(this.multiple)a=s?this.value.filter(l=>!be.equals(l,r,this.equalityKey)):this.value?[...this.value,r]:[r];else{if(s&&!this.allowEmpty)return;a=s?null:r}this.focusedIndex=o,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:n,index:o})}onKeyDown(e,n,o){switch(e.code){case"Space":this.onOptionSelect(e,n,o),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}}changeTabIndexes(e,n){let o,s;for(let r=0;r<=this.container.nativeElement.children.length-1;r++)"0"===this.container.nativeElement.children[r].getAttribute("tabindex")&&(o={elem:this.container.nativeElement.children[r],index:r});s="prev"===n?0===o.index?this.container.nativeElement.children.length-1:o.index-1:o.index===this.container.nativeElement.children.length-1?0:o.index+1,this.focusedIndex=s,this.container.nativeElement.children[s].focus()}onFocus(e,n){this.focusedIndex=n}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!be.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1;const o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let s of this.value)if(be.equals(s,o,this.dataKey)){n=!0;break}}else n=be.equals(this.getOptionValue(e),this.value,this.equalityKey);return n}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-selectButton"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,5),2&n){let r;Se(r=Ee())&&(o.itemTemplate=r.first)}},viewQuery:function(n,o){if(1&n&&je(VY,5),2&n){let s;Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:"unselectable",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[yt([GY])],decls:3,vars:8,consts:[["role","group",3,"ngClass","ngStyle"],["container",""],["pRipple","","class","p-button p-component",3,"role","class","ngClass","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","",1,"p-button","p-component",3,"role","ngClass","click","keydown","focus","blur"],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,KY,4,18,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",o.style),K("aria-labelledby",o.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),h(2),d("ngForOf",o.options))},dependencies:[Ct,Jn,gt,on,Ht,oo],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return t})(),Ik=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,Qe]})}return t})(),yi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function WY(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxTrueIcon),K("data-pc-section","checkIcon"))}function QY(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","checkIcon"))}function ZY(t,i){}function YY(t,i){1&t&&g(0,ZY,0,0,"ng-template")}function XY(t,i){if(1&t&&(x(0,"span",12),g(1,YY,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","checkIcon"),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function JY(t,i){if(1&t&&(we(0),g(1,QY,1,2,"CheckIcon",9),g(2,XY,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function eX(t,i){if(1&t&&(we(0),g(1,WY,1,2,"span",7),g(2,JY,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxTrueIcon),h(1),d("ngIf",!e.checkboxTrueIcon)}}function tX(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxFalseIcon),K("data-pc-section","uncheckIcon"))}function nX(t,i){1&t&&le(0,"TimesIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","uncheckIcon"))}function iX(t,i){}function oX(t,i){1&t&&g(0,iX,0,0,"ng-template")}function sX(t,i){if(1&t&&(x(0,"span",12),g(1,oX,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","uncheckIcon"),h(1),d("ngTemplateOutlet",e.uncheckIconTemplate)}}function rX(t,i){if(1&t&&(we(0),g(1,nX,1,2,"TimesIcon",9),g(2,sX,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.uncheckIconTemplate),h(1),d("ngIf",e.uncheckIconTemplate)}}function aX(t,i){if(1&t&&(we(0),g(1,tX,1,2,"span",7),g(2,rX,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxFalseIcon),h(1),d("ngIf",!e.checkboxFalseIcon)}}const lX=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function cX(t,i){if(1&t&&(x(0,"label",14),Le(1),A()),2&t){const e=f();d("ngClass",Rn(3,lX,null!=e.value,e.disabled,e.focused)),K("for",e.inputId),h(1),dt(e.label)}}const uX=function(t,i){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},dX=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},pX={provide:un,useExisting:ft(()=>hX),multi:!0};let hX=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabel;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new ge;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.focus())}onKeyDown(e){"Enter"===e.key&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[yt([pX])],decls:8,vars:26,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none",3,"name","readonly","disabled","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-tristatecheckbox-label",3,"ngClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-tristatecheckbox-label",3,"ngClass"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.onClick(a,l))}),x(1,"div",1)(2,"input",2,3),me("keydown",function(a){return o.onKeyDown(a)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,eX,3,2,"ng-container",5),g(6,aX,3,2,"ng-container",5),A()(),g(7,cX,2,7,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(19,uX,o.disabled,o.focused)),K("data-pc-name","tristatecheckbox")("data-pc-section","root"),h(2),d("name",o.name)("readonly",o.readonly)("disabled",o.disabled),K("id",o.inputId)("tabindex",o.tabindex)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(22,dX,null!=o.value,o.disabled,o.focused)),K("aria-checked",!0===o.value),h(1),d("ngIf",!0===o.value),h(1),d("ngIf",!1===o.value),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi,mn]},encapsulation:2,changeDetection:0})}return t})(),fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,yi,mn,Qe]})}return t})(),CC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),gX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Ck=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[st,Et],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),A(),x(6,"defs")(7,"clipPath",5),le(8,"rect",6),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(6),d("id",o.pathId))},encapsulation:2})}return t})(),vk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.59836 13.2009C2.44634 13.2009 2.29432 13.1449 2.1743 13.0248L0.174024 11.0246C-0.0580081 10.7925 -0.0580081 10.4085 0.174024 10.1764C0.406057 9.94441 0.79011 9.94441 1.02214 10.1764L2.59836 11.7527L4.17458 10.1764C4.40662 9.94441 4.79067 9.94441 5.0227 10.1764C5.25473 10.4085 5.25473 10.7925 5.0227 11.0246L3.02242 13.0248C2.90241 13.1449 2.75038 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),bk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.59864 3.99958C4.44662 3.99958 4.2946 3.94357 4.17458 3.82356L2.59836 2.24734L1.02214 3.82356C0.79011 4.05559 0.406057 4.05559 0.174024 3.82356C-0.0580081 3.59152 -0.0580081 3.20747 0.174024 2.97544L2.1743 0.97516C2.40634 0.743127 2.79039 0.743127 3.02242 0.97516L5.0227 2.97544C5.25473 3.20747 5.25473 3.59152 5.0227 3.82356C4.90268 3.94357 4.75066 3.99958 4.59864 3.99958Z","fill","currentColor"],["d","M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),mX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const _X=["container"],IX=["resizeHelper"],CX=["reorderIndicatorUp"],vX=["reorderIndicatorDown"],bX=["wrapper"],yX=["table"],xX=["thead"],AX=["tfoot"],wX=["scroller"];function TX(t,i){1&t&&le(0,"i"),2&t&&Ve("p-datatable-loading-icon "+f(2).loadingIcon)}function SX(t,i){1&t&&le(0,"SpinnerIcon",19),2&t&&d("spin",!0)("styleClass","p-datatable-loading-icon")}function EX(t,i){}function DX(t,i){1&t&&g(0,EX,0,0,"ng-template")}function kX(t,i){if(1&t&&(x(0,"span",20),g(1,DX,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function MX(t,i){if(1&t&&(we(0),g(1,SX,1,2,"SpinnerIcon",17),g(2,kX,2,1,"span",18),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function OX(t,i){if(1&t&&(x(0,"div",15),g(1,TX,1,2,"i",16),g(2,MX,3,2,"ng-container",8),A()),2&t){const e=f();h(1),d("ngIf",e.loadingIcon),h(1),d("ngIf",!e.loadingIcon)}}function LX(t,i){1&t&&ze(0)}function PX(t,i){if(1&t&&(x(0,"div",22),g(1,LX,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.captionTemplate)}}function FX(t,i){1&t&&ze(0)}function RX(t,i){1&t&&g(0,FX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function NX(t,i){1&t&&g(0,RX,1,1,"ng-template",24)}function VX(t,i){1&t&&ze(0)}function BX(t,i){1&t&&g(0,VX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function HX(t,i){1&t&&g(0,BX,1,1,"ng-template",25)}function zX(t,i){1&t&&ze(0)}function jX(t,i){1&t&&g(0,zX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function UX(t,i){1&t&&g(0,jX,1,1,"ng-template",26)}function $X(t,i){1&t&&ze(0)}function KX(t,i){1&t&&g(0,$X,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function GX(t,i){1&t&&g(0,KX,1,1,"ng-template",27)}function qX(t,i){if(1&t){const e=De();x(0,"p-paginator",23),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,NX,1,0,null,8),g(2,HX,1,0,null,8),g(3,UX,1,0,null,8),g(4,GX,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function WX(t,i){1&t&&ze(0)}const yk=function(t,i){return{$implicit:t,options:i}};function QX(t,i){if(1&t&&g(0,WX,1,0,"ng-container",31),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(10))("ngTemplateOutletContext",mt(2,yk,e,n))}}const ZX=function(t){return{height:t}};function YX(t,i){if(1&t){const e=De();x(0,"p-scroller",28,29),me("onLazyLoad",function(o){return G(e),q(f().onLazyItemLoad(o))}),g(2,QX,1,5,"ng-template",30),A()}if(2&t){const e=f();yn(He(15,ZX,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),d("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function XX(t,i){1&t&&ze(0)}const JX=function(t){return{columns:t}};function eJ(t,i){if(1&t&&(we(0),g(1,XX,1,0,"ng-container",31),Te()),2&t){const e=f(),n=Bt(10);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(4,yk,e.processedData,He(2,JX,e.columns)))}}function tJ(t,i){1&t&&ze(0)}function nJ(t,i){1&t&&ze(0)}function iJ(t,i){if(1&t&&le(0,"tbody",40),2&t){const e=f().options,n=f();d("value",n.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",n.frozenBodyTemplate)("frozen",!0)}}function oJ(t,i){if(1&t&&le(0,"tbody",41),2&t){const e=f().options;yn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function sJ(t,i){1&t&&ze(0)}const Lr=function(t){return{$implicit:t}};function rJ(t,i){if(1&t&&(x(0,"tfoot",42,43),g(2,sJ,1,0,"ng-container",31),A()),2&t){const e=f().options,n=f();h(2),d("ngTemplateOutlet",n.footerGroupedTemplate||n.footerTemplate)("ngTemplateOutletContext",He(2,Lr,e.columns))}}const aJ=function(t,i,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":i,"p-datatable-resizable-table-fit":e}};function lJ(t,i){if(1&t&&(x(0,"table",32,33),g(2,tJ,1,0,"ng-container",31),x(3,"thead",34,35),g(5,nJ,1,0,"ng-container",31),A(),g(6,iJ,1,5,"tbody",36),le(7,"tbody",37),g(8,oJ,1,2,"tbody",38),g(9,rJ,3,4,"tfoot",39),A()),2&t){const e=i.options,n=f();yn(n.tableStyle),Ve(n.tableStyleClass),d("ngClass",Rn(20,aJ,n.scrollable,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode)),K("id",n.id+"-table"),h(2),d("ngTemplateOutlet",n.colGroupTemplate)("ngTemplateOutletContext",He(24,Lr,e.columns)),h(3),d("ngTemplateOutlet",n.headerGroupedTemplate||n.headerTemplate)("ngTemplateOutletContext",He(26,Lr,e.columns)),h(1),d("ngIf",n.frozenValue||n.frozenBodyTemplate),h(1),yn(e.contentStyle),d("ngClass",e.contentStyleClass)("value",n.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",n.bodyTemplate)("scrollerOptions",e),h(1),d("ngIf",e.spacerStyle),h(1),d("ngIf",n.footerGroupedTemplate||n.footerTemplate)}}function cJ(t,i){1&t&&ze(0)}function uJ(t,i){1&t&&g(0,cJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function dJ(t,i){1&t&&g(0,uJ,1,1,"ng-template",24)}function pJ(t,i){1&t&&ze(0)}function hJ(t,i){1&t&&g(0,pJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function fJ(t,i){1&t&&g(0,hJ,1,1,"ng-template",25)}function gJ(t,i){1&t&&ze(0)}function mJ(t,i){1&t&&g(0,gJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function _J(t,i){1&t&&g(0,mJ,1,1,"ng-template",26)}function IJ(t,i){1&t&&ze(0)}function CJ(t,i){1&t&&g(0,IJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function vJ(t,i){1&t&&g(0,CJ,1,1,"ng-template",27)}function bJ(t,i){if(1&t){const e=De();x(0,"p-paginator",44),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,dJ,1,0,null,8),g(2,fJ,1,0,null,8),g(3,_J,1,0,null,8),g(4,vJ,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function yJ(t,i){1&t&&ze(0)}function xJ(t,i){if(1&t&&(x(0,"div",45),g(1,yJ,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.summaryTemplate)}}function AJ(t,i){1&t&&le(0,"div",46,47)}function wJ(t,i){1&t&&le(0,"ArrowDownIcon")}function TJ(t,i){}function SJ(t,i){1&t&&g(0,TJ,0,0,"ng-template")}function EJ(t,i){if(1&t&&(x(0,"span",48,49),g(2,wJ,1,0,"ArrowDownIcon",8),g(3,SJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorUpIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function DJ(t,i){1&t&&le(0,"ArrowUpIcon")}function kJ(t,i){}function MJ(t,i){1&t&&g(0,kJ,0,0,"ng-template")}function OJ(t,i){if(1&t&&(x(0,"span",50,51),g(2,DJ,1,0,"ArrowUpIcon",8),g(3,MJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorDownIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const LJ=function(t,i,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":i,"p-datatable-flex-scrollable":e}},PJ=function(t){return{maxHeight:t}},FJ=["pTableBody",""];function RJ(t,i){1&t&&ze(0)}const bC=function(t,i,e,n,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o}};function NJ(t,i){if(1&t&&(we(0,3),g(1,RJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function VJ(t,i){1&t&&ze(0)}function BJ(t,i){if(1&t&&(we(0),g(1,VJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function HJ(t,i){1&t&&ze(0)}const zJ=function(t,i,e,n,o,s,r){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o,rowgroup:s,rowspan:r}};function jJ(t,i){if(1&t&&(we(0),g(1,HJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",function Aw(t,i,e,n,o,s,r,a,l,c){const u=zi()+t,p=Ne();let m=Do(p,u,e,n,o,s);return Dp(p,u+4,r,a,l)||m?ls(p,u+7,c?i.call(c,e,n,o,s,r,a,l):i(e,n,o,s,r,a,l)):zc(p,u+7)}(2,zJ,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen,s.shouldRenderRowspan(s.value,n,o),s.calculateRowGroupSize(s.value,n,o)))}}function UJ(t,i){1&t&&ze(0)}function $J(t,i){if(1&t&&(we(0,3),g(1,UJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function KJ(t,i){if(1&t&&(g(0,NJ,2,8,"ng-container",2),g(1,BJ,2,8,"ng-container",0),g(2,jJ,2,10,"ng-container",0),g(3,$J,2,8,"ng-container",2)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",o.dt.groupHeaderTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,n)),h(1),d("ngIf","rowspan"!==o.dt.rowGroupMode),h(1),d("ngIf","rowspan"===o.dt.rowGroupMode),h(1),d("ngIf",o.dt.groupFooterTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,e,n))}}function GJ(t,i){if(1&t&&(we(0),g(1,KJ,4,4,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function qJ(t,i){1&t&&ze(0)}const bf=function(t,i,e,n,o,s){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:o,frozen:s}};function WJ(t,i){if(1&t&&(we(0),g(1,qJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.template)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function QJ(t,i){1&t&&ze(0)}function ZJ(t,i){if(1&t&&(we(0,3),g(1,QJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function YJ(t,i){1&t&&ze(0)}function XJ(t,i){1&t&&ze(0)}function JJ(t,i){if(1&t&&(we(0,3),g(1,XJ,1,0,"ng-container",4),Te()),2&t){const e=f(2),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}const xk=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function eee(t,i){if(1&t&&(we(0),g(1,YJ,1,0,"ng-container",4),g(2,JJ,2,9,"ng-container",2),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",gr(3,xk,n,s.getRowIndex(o),s.columns,s.frozen)),h(1),d("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,n,s.getRowIndex(o)))}}function tee(t,i){if(1&t&&(g(0,WJ,2,9,"ng-container",0),g(1,ZJ,2,9,"ng-container",2),g(2,eee,3,8,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",!o.dt.groupHeaderTemplate),h(1),d("ngIf",o.dt.groupHeaderTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(n))),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function nee(t,i){if(1&t&&(we(0),g(1,tee,3,3,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function iee(t,i){1&t&&ze(0)}function oee(t,i){1&t&&ze(0)}function see(t,i){if(1&t&&(we(0),g(1,oee,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",gr(2,xk,n,s.getRowIndex(o),s.columns,s.frozen))}}function ree(t,i){if(1&t&&(g(0,iee,1,0,"ng-container",4),g(1,see,2,7,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ea(3,bf,e,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(e),"row"===o.dt.editMode&&o.dt.isRowEditing(e),o.frozen)),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function aee(t,i){if(1&t&&(we(0),g(1,ree,2,10,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function lee(t,i){1&t&&ze(0)}const Ak=function(t,i){return{$implicit:t,frozen:i}};function cee(t,i){if(1&t&&(we(0),g(1,lee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}function uee(t,i){1&t&&ze(0)}function dee(t,i){if(1&t&&(we(0),g(1,uee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}let yC=(()=>{class t{sortSource=new re;selectionSource=new re;contextMenuSource=new re;valueSource=new re;totalRecordsSource=new re;columnsSource=new re;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),xC=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new ge;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,n)=>n;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new ge;selectionChange=new ge;onRowSelect=new ge;onRowUnselect=new ge;onPage=new ge;onSort=new ge;onFilter=new ge;onLazyLoad=new ge;onRowExpand=new ge;onRowCollapse=new ge;onContextMenuSelect=new ge;onColResize=new ge;onColReorder=new ge;onRowReorder=new ge;onEditInit=new ge;onEditComplete=new ge;onEditCancel=new ge;onHeaderCheckboxToggle=new ge;sortFunction=new ge;firstChange=new ge;rowsChange=new ge;onStateSave=new ge;onStateRestore=new ge;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=$t();styleElement;responsiveStyleElement;window;constructor(e,n,o,s,r,a,l,c,u,p){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.config=p,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const n=e||this.processedData;if(n&&this.paginator){const o=this.lazy?0:this.first;return n.slice(o,o+this.rows)}return n}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(be.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(be.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let n=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let o=n.metaKey||n.ctrlKey,s=this.getSortMeta(e.field);s?o?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&n){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:n}):(this.value.sort((s,r)=>{let a=be.resolveFieldData(s,e),l=be.resolveFieldData(r,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):al?1:0,n*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let o={field:e,order:n};this.onSort.emit(o),this.tableService.onSort(o)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,o,s){const r=be.resolveFieldData(e,o[s].field),a=be.resolveFieldData(n,o[s].field);return 0===be.compare(r,a,this.filterLocale)?o.length-1>s?this.multisortField(e,n,o,s+1):0:this.compareValuesOnSort(r,a,o[s].order)}compareValuesOnSort(e,n,o){return be.sort(e,n,o,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let n=0;nb!=m),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row"})}else this.isSingleSelectionMode()?(this._selection=r,this.selectionChange.emit(r),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(p?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,r],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})):(this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let p=this.findIndexInSelection(r);this._selection=this.selection.filter((m,_)=>_!=p),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const n=e.rowData,o=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(n),r=this.dataKey?String(be.resolveFieldData(n,this.dataKey)):null;if(!s){if(!this.isRowSelectable(n,o))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),r&&(this.selectionKeys={},this.selectionKeys[r]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),r&&(this.selectionKeys[r]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let o,s;this.anchorRowIndex>n?(o=n,s=this.anchorRowIndex):this.anchorRowIndexr?(n=this.anchorRowIndex,o=this.rangeRowIndex):sm!=c);let u=this.dataKey?String(be.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[be.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length)for(let o=0;ol!=r),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const o=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let s=this.selectionPageOnly&&this._selection?this._selection.filter(r=>!o.some(a=>this.equals(r,a))):[];n&&(s=this.frozenValue?[...s,...this.frozenValue,...o]:[...s,...o],s=this.rowSelectable?s.filter((r,a)=>this.rowSelectable({data:r,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:be.equals(e,n,this.dataKey)}filter(e,n,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let n=0;nthis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let n of e)n.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let n,o="",s=this.columns;e&&e.selectionOnly?n=this.selection||[]:e&&e.allValues?n=this.value||[]:(n=this.filteredValue||this.value,this.frozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let l=0;l{o+="\n";for(let u=0;u{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(j.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===j.find(n,".ng-invalid.ng-dirty").length){let o=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[o]}}cancelRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let o=String(be.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[o]?(delete this.expandedRowKeys[o],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[o]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;j.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,o=this.resizeColumnElement.offsetWidth+e;if(o>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;o>15&&a>15&&this.resizeTableCells(o,a)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(o,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",j.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const n=j.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return j.find(n,"tr > th").forEach(s=>e.push(j.getOuterWidth(s))),e}onColumnDragStart(e,n){this.reorderIconWidth=j.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=j.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let o=j.getOffset(this.containerViewChild?.nativeElement),s=j.getOffset(n);if(this.draggedColumn!=n){j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),j.indexWithinGroup(n,"preorderablecolumn");let l=s.left-o.left,u=s.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-o.top+n.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,n){if(e.preventDefault(),this.draggedColumn){let o=j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=j.indexWithinGroup(n,"preorderablecolumn"),r=o!=s;if(r&&(s-o==1&&-1===this.dropPosition||o-s==1&&1===this.dropPosition)&&(r=!1),r&&so&&-1===this.dropPosition&&(s-=1),r&&(be.reorderArray(this.columns,o,s),this.onColReorder.emit({dragIndex:o,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement&&this.resizeColumnElement.isSameNode(this.draggedColumn)){let a="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();be.reorderArray(a,o+1,s+1),this.updateStyleElement(a,o,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,n){let o=j.index(this.resizeColumnElement),s="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(s,o,e,n)}updateStyleElement(e,n,o,s){this.destroyStyleElement(),this.createStyleElement();let r="";e.forEach((a,l)=>{let c=l===n?o:s&&l===n+1?s:a;r+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {\n width: ${c}px !important; max-width: ${c}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",r)}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,o){if(this.rowDragging&&this.draggedRowIndex!==n){let s=j.getOffset(o).top,r=e.pageY,a=s+j.getOuterHeight(o)/2,l=o.previousElementSibling;rthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;be.reorderArray(this.value,this.draggedRowIndex,o),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:o})}this.onRowDragLeave(e,n),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!ei(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const n=this.getStorage().getItem(this.stateKey),o=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let r=JSON.parse(n,function(r,a){return"string"==typeof a&&o.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=r.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=r.rows,this.rowsChange.emit(this.rows))),r.sortField&&(this.restoringSort=!0,this._sortField=r.sortField,this._sortOrder=r.sortOrder),r.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=r.multiSortMeta),r.filters&&(this.restoringFilter=!0,this.filters=r.filters),this.resizableColumns&&(this.columnWidthsState=r.columnWidths,this.tableWidthState=r.tableWidth),r.expandedRowKeys&&(this.expandedRowKeys=r.expandedRowKeys),r.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(r.selection)),this.stateRestored=!0,this.onStateRestore.emit(r)}}saveColumnWidths(e){let n=[];j.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(s=>n.push(j.getOuterWidth(s))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=j.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),be.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((o,s)=>{n+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {\n width: ${o}px !important; max-width: ${o}px !important\n }\n `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(o=>{n.push(o.field||o.key)}),e.columnOrder=n}}restoreColumnOrder(){const n=this.getStorage().getItem(this.stateKey);if(n){let s=JSON.parse(n).columnOrder;if(s){let r=[];s.map(a=>{let l=this.findColumnByKey(a);l&&r.push(l)}),this.columnOrderStateRestored=!0,this.columns=r}}}findColumnByKey(e){if(!this.columns)return null;for(let n of this.columns)if(n.key===e||n.field===e)return n}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){ei(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(bt),V(Tt),V(yC),V(Ft),V(df),V(Dr),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-table"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(_X,5),je(IX,5),je(CX,5),je(vX,5),je(bX,5),je(yX,5),je(xX,5),je(AX,5),je(wX,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.resizeHelperViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorUpViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorDownViewChild=s.first),Se(s=Ee())&&(o.wrapperViewChild=s.first),Se(s=Ee())&&(o.tableViewChild=s.first),Se(s=Ee())&&(o.tableHeaderViewChild=s.first),Se(s=Ee())&&(o.tableFooterViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[yt([yC]),Hn],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],["role","rowgroup",1,"p-datatable-thead"],["thead",""],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,OX,3,2,"div",2),g(3,PX,2,1,"div",3),g(4,qX,5,23,"p-paginator",4),x(5,"div",5,6),g(7,YX,3,17,"p-scroller",7),g(8,eJ,2,7,"ng-container",8),g(9,lJ,10,28,"ng-template",null,9,In),A(),g(11,bJ,5,23,"p-paginator",10),g(12,xJ,2,1,"div",11),g(13,AJ,2,0,"div",12),g(14,EJ,4,2,"span",13),g(15,OJ,4,2,"span",14),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(16,LJ,o.rowHover||o.selectionMode,o.scrollable,o.scrollable&&"flex"===o.scrollHeight)),K("id",o.id),h(2),d("ngIf",o.loading&&o.showLoader),h(1),d("ngIf",o.captionTemplate),h(1),d("ngIf",o.paginator&&("top"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngStyle",He(20,PJ,o.virtualScroll?"":o.scrollHeight)),h(2),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.paginator&&("bottom"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngIf",o.summaryTemplate),h(1),d("ngIf",o.resizableColumns),h(1),d("ngIf",o.reorderableColumns),h(1),d("ngIf",o.reorderableColumns))},dependencies:function(){return[Ct,gt,on,Ht,NY,sn,Bu,CC,vC,_s,rte]},styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return t})(),rte=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,n,o,s){this.dt=e,this.tableService=n,this.cd=o,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o+1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}calculateRowGroupSize(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=s,a=0;for(;s===r;){a++;let l=e[++o];if(!l)break;r=be.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=j.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=j.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,n){return this.dt.virtualScroll&&(n=n||this.scrollerOptions)?n[e]:null}getRowIndex(e){const n=this.dt.paginator?this.dt.first+e:e,o=this.getScrollerOption("getItemOptions");return o?o(n).index:n}static \u0275fac=function(n){return new(n||t)(V(xC),V(yC),V(Ft),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:FJ,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(g(0,GJ,2,2,"ng-container",0),g(1,nee,2,2,"ng-container",0),g(2,aee,2,2,"ng-container",0),g(3,cee,2,5,"ng-container",0),g(4,dee,2,5,"ng-container",0)),2&n&&(d("ngIf",!o.dt.expandedRowTemplate),h(1),d("ngIf",o.dt.expandedRowTemplate&&!(o.frozen&&o.dt.frozenExpandedRowTemplate)),h(1),d("ngIf",o.dt.frozenExpandedRowTemplate&&o.frozen),h(1),d("ngIf",o.dt.loading),h(1),d("ngIf",o.dt.isEmpty()&&!o.dt.loading))},dependencies:[Jn,gt,on],encapsulation:2})}return t})(),ate=(()=>{class t{dt;data;pRowTogglerDisabled;constructor(e){this.dt=e}onClick(e){this.isEnabled()&&(this.dt.toggleRow(this.data,e),e.preventDefault())}isEnabled(){return!0!==this.pRowTogglerDisabled}static \u0275fac=function(n){return new(n||t)(V(xC))};static \u0275dir=ut({type:t,selectors:[["","pRowToggler",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("click",function(r){return o.onClick(r)})},inputs:{data:["pRowToggler","data"],pRowTogglerDisabled:"pRowTogglerDisabled"}})}return t})(),wk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,Zs,_f,uu,Mi,Ik,uk,fC,fX,Oi,CC,vC,_s,Ck,bk,vk,yi,gX,mX,Qe,Oi]})}return t})(),Tk=(()=>{class t{el;pFocusTrapDisabled=!1;constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const n=j.getNextFocusableElement(this.el.nativeElement,e.shiftKey);n&&(n.focus(),n.select?.())}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.tab",function(r){return o.onkeydown(r)})("keydown.shift.tab",function(r){return o.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}})}return t})(),Sk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),AC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),wC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const lte=["titlebar"],cte=["content"],ute=["footer"];function dte(t,i){if(1&t){const e=De();x(0,"div",11),me("mousedown",function(o){return G(e),q(f(3).initResize(o))}),A()}}function pte(t,i){if(1&t&&(x(0,"span",18),Le(1),A()),2&t){const e=f(4);d("id",e.getAriaLabelledBy()),h(1),dt(e.header)}}function hte(t,i){1&t&&(x(0,"span",18),Kn(1,1),A()),2&t&&d("id",f(4).getAriaLabelledBy())}function fte(t,i){1&t&&ze(0)}function gte(t,i){if(1&t&&le(0,"span",22),2&t){const e=f(5);d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function mte(t,i){1&t&&le(0,"WindowMaximizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function _te(t,i){1&t&&le(0,"WindowMinimizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function Ite(t,i){if(1&t&&(we(0),g(1,mte,1,1,"WindowMaximizeIcon",23),g(2,_te,1,1,"WindowMinimizeIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.maximized&&!e.maximizeIconTemplate),h(1),d("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function Cte(t,i){}function vte(t,i){1&t&&g(0,Cte,0,0,"ng-template")}function bte(t,i){if(1&t&&(we(0),g(1,vte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.maximizeIconTemplate)}}function yte(t,i){}function xte(t,i){1&t&&g(0,yte,0,0,"ng-template")}function Ate(t,i){if(1&t&&(we(0),g(1,xte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.minimizeIconTemplate)}}const wte=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function Tte(t,i){if(1&t){const e=De();x(0,"button",19),me("click",function(){return G(e),q(f(4).maximize())})("keydown.enter",function(){return G(e),q(f(4).maximize())}),g(1,gte,1,1,"span",20),g(2,Ite,3,2,"ng-container",21),g(3,bte,2,1,"ng-container",21),g(4,Ate,2,1,"ng-container",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,wte)),h(1),d("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),h(1),d("ngIf",!e.maximizeIcon),h(1),d("ngIf",!e.maximized),h(1),d("ngIf",e.maximized)}}function Ste(t,i){1&t&&le(0,"span",27),2&t&&d("ngClass",f(6).closeIcon)}function Ete(t,i){1&t&&le(0,"TimesIcon",24),2&t&&d("styleClass","p-dialog-header-close-icon")}function Dte(t,i){if(1&t&&(we(0),g(1,Ste,1,1,"span",26),g(2,Ete,1,1,"TimesIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",e.closeIcon),h(1),d("ngIf",!e.closeIcon)}}function kte(t,i){}function Mte(t,i){1&t&&g(0,kte,0,0,"ng-template")}function Ote(t,i){if(1&t&&(x(0,"span"),g(1,Mte,1,0,null,9),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}const Lte=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function Pte(t,i){if(1&t){const e=De();x(0,"button",25),me("click",function(o){return G(e),q(f(4).close(o))})("keydown.enter",function(o){return G(e),q(f(4).close(o))}),g(1,Dte,3,2,"ng-container",21),g(2,Ote,2,1,"span",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,Lte)),K("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),h(1),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Fte(t,i){if(1&t){const e=De();x(0,"div",12,13),me("mousedown",function(o){return G(e),q(f(3).initDrag(o))}),g(2,pte,2,2,"span",14),g(3,hte,2,1,"span",14),g(4,fte,1,0,"ng-container",9),x(5,"div",15),g(6,Tte,5,6,"button",16),g(7,Pte,3,6,"button",17),A()()}if(2&t){const e=f(3);h(2),d("ngIf",!e.headerFacet&&!e.headerTemplate),h(1),d("ngIf",e.headerFacet),h(1),d("ngTemplateOutlet",e.headerTemplate),h(2),d("ngIf",e.maximizable),h(1),d("ngIf",e.closable)}}function Rte(t,i){1&t&&ze(0)}function Nte(t,i){1&t&&ze(0)}function Vte(t,i){if(1&t&&(x(0,"div",28,29),Kn(2,2),g(3,Nte,1,0,"ng-container",9),A()),2&t){const e=f(3);h(3),d("ngTemplateOutlet",e.footerTemplate)}}const Bte=function(t,i,e,n){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},Hte=function(t,i){return{transform:t,transition:i}},zte=function(t){return{value:"visible",params:t}};function jte(t,i){if(1&t){const e=De();x(0,"div",3,4),me("@animation.start",function(o){return G(e),q(f(2).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(2).onAnimationEnd(o))}),g(2,dte,1,0,"div",5),g(3,Fte,8,5,"div",6),x(4,"div",7,8),Kn(6),g(7,Rte,1,0,"ng-container",9),A(),g(8,Vte,4,1,"div",10),A()}if(2&t){const e=f(2);Ve(e.styleClass),d("ngClass",gr(16,Bte,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",He(24,zte,mt(21,Hte,e.transformOptions,e.transitionOptions))),K("aria-labelledby",e.ariaLabelledBy)("aria-modal",!0),h(2),d("ngIf",e.resizable),h(1),d("ngIf",e.showHeader),h(1),Ve(e.contentStyleClass),d("ngClass","p-dialog-content")("ngStyle",e.contentStyle),h(3),d("ngTemplateOutlet",e.contentTemplate),h(1),d("ngIf",e.footerFacet||e.footerTemplate)}}const Ute=function(t,i,e,n,o,s,r,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":o,"p-dialog-top-left":s,"p-dialog-top-right":r,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function $te(t,i){if(1&t&&(x(0,"div",1),g(1,jte,9,26,"div",2),A()),2&t){const e=f();Ve(e.maskStyleClass),d("ngClass",zp(4,Ute,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),h(1),d("ngIf",e.visible)}}const Kte=["*",[["p-header"]],[["p-footer"]]],Gte=["*","p-header","p-footer"],qte=Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}")]),Wte=Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Qte=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="-1";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onShow=new ge;onHide=new ge;visibleChange=new ge;onResizeInit=new ge;onResizeEnd=new ge;onDragEnd=new ge;onMaximize=new ge;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy;documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=$t();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.zone=r,this.cd=a,this.config=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return null!==this.header?$t()+"_header":null}focus(){let e=j.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&j.blockBodyScroll()}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&j.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?j.blockBodyScroll():j.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Wn.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(ei(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`\n @media screen and (max-width: ${n}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[n]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){j.hasClass(e.target,"p-dialog-header-icon")||j.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",j.addClass(this.document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let n=j.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==o||0===o?n[n.length-1].focus():n[o-1].focus():-1==o||o===n.length-1?n[0].focus():n[o+1].focus()}else n[0].focus()}}onDrag(e){if(this.dragging){const n=j.getOuterWidth(this.container),o=j.getOuterHeight(this.container),s=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=getComputedStyle(this.container),c=parseFloat(l.marginLeft),u=parseFloat(l.marginTop),p=a.left+s-c,m=a.top+r-u,_=j.getViewport();this.container.style.position="fixed",this.keepInViewport?(p>=this.minX&&p+n<_.width&&(this._style.left=`${p}px`,this.lastPageX=e.pageX,this.container.style.left=`${p}px`),m>=this.minY&&m+o<_.height&&(this._style.top=`${m}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${p}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,j.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getOuterHeight(this.contentViewChild?.nativeElement),l=s+n,c=r+o,u=this.container.style.minWidth,p=this.container.style.minHeight,m=this.container.getBoundingClientRect(),_=j.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=n,c+=o),(!u||l>parseInt(u))&&m.left+l<_.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!p||c>parseInt(p))&&m.top+c<_.height&&(this.contentViewChild.nativeElement.style.height=a+c-r+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",n=>{27==n.which&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):j.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&j.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&j.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(j.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&j.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dialog"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(lte,5),je(cte,5),je(ute,5)),2&n){let s;Se(s=Ee())&&(o.headerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:Gte,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(n,o){1&n&&(Ti(Kte),g(0,$te,2,15,"div",0)),2&n&&d("ngIf",o.maskVisible)},dependencies:function(){return[Ct,gt,on,Ht,Tk,oo,mn,AC,wC]},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[Eh(qte)]),Ln("visible => void",[Eh(Wte)])])]},changeDetection:0})}return t})(),Ek=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Sk,dn,mn,AC,wC,Qe]})}return t})();function Zte(t,i){if(1&t&&(x(0,"div"),le(1,"app-activities-table",3),A()),2&t){const e=f();h(1),d("activities",e.activities)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("fieldsLinksArr",e.fieldsLinksArr)}}function Yte(t,i){if(1&t&&(x(0,"div"),le(1,"app-actions-table",4),A()),2&t){const e=f();h(1),d("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("activitySeq",e.activitySeq)}}function Xte(t,i){if(1&t&&(x(0,"div"),le(1,"app-table",5),A()),2&t){const e=f();h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)("statusFieldName","Status")}}function Jte(t,i){1&t&&(x(0,"div",6),le(1,"div",7),A())}let Dk=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this.globalVarService=o,this._userDataManagerService=s,this.tableExpenderType1=Er}ngOnInit(){if(this.tableExpenderType==Er.BusinessFlowsActivities)this.totalactivitiesCount=0,this.RunsetJson=this._userDataManagerService.getItemCache(),this.CollectBfActivitiesData(this.entity);else if(this.tableExpenderType==Er.ActivitiesActions){const e=this.entity.Seq;this.activitySeq=e,this.actions=this.entity.ActionsColl,this.routerLinkEntityPath=e+"/",this.fieldsLinksArr=[{field:"Name",link:this.routerLinkEntityPath,param:"Seq"}]}else this.tableExpenderType==Er.OutputValidation&&(this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}],this.outputValuesData=this.getOutputValues(this.entity.OutputValues))}checkIfLastRun(e){return e===this.totalactivitiesCount}CollectBfActivitiesData(e){this.hideRepoLoader=!0;let n=0;e.ActivitiesGroupsColl.forEach(s=>{this.totalactivitiesCount=this.totalactivitiesCount+s.ExecutedActivitiesGUID.length});const o=this.globalVarService.totalRecPerActivityPull;e.NumberOfActivities=0,e.ActivitiesGroupsColl.forEach(s=>{let r=0;e.ActivitiesColl=[];const a={};a.ExecutionId=this.RunsetJson.ExecutionId,a.ParentId=s.GUID,a.From=r*o,a.Take=o,a.IsLoadActions=!1,this.restServiceObj.GetActivitiesByParent(a).subscribe(l=>{r++;const c=JSON.parse(l.response),u=c.TotalRec;for(e.NumberOfActivities+=u,e.ActivitiesColl.push(...c.ResponseColl),n+=c.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1);r*o{if(m.isSuccsess){const _=JSON.parse(m.response);e.ActivitiesColl.push(..._.ResponseColl),n+=_.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1)}})}})})}orderActivites(){this.entity.ActivitiesColl=this.entity.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}InitActivitieData(){if(null!=this.entity&&null!=this.entity.ActivitiesColl){this.orderActivites();var e=this.entity;const n=e.Seq;this.activities=e.ActivitiesColl;for(let o of e.ActivitiesColl)o.NumberOfActions=o.ActionsColl.length;this.fieldsLinksArr=[{field:"Name",link:n+"/",param:"Seq"},{field:"ActivityGroupName",link:n+"/ag/ag/",param:"ActivityGroupName"}]}}getOutputValues(e){let n=[];for(let o of e){let s=o.split("_:_"),r=new $D;r.ParameterName=s[0],r.ActualValue=s[1],r.ExpectedValue=s[2],r.Status=s[3],n.push(r)}return n}getActivityGroupName(e){for(let n of this.entity.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table-expended-section"]],inputs:{tableExpenderType:"tableExpenderType",entity:"entity"},decls:5,vars:5,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[3,"activities","addExpender","tableExpenderType","fieldsLinksArr"],[3,"addExpender","tableExpenderType","actions","fieldsLinksArr","activitySeq"],[3,"cols","data","statusFieldName"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zte,2,4,"div",1),g(2,Yte,2,5,"div",1),g(3,Xte,2,3,"div",1),A(),g(4,Jte,2,0,"div",2)),2&n&&(d("ngSwitch",o.tableExpenderType),h(1),d("ngSwitchCase",o.tableExpenderType1.BusinessFlowsActivities),h(1),d("ngSwitchCase",o.tableExpenderType1.ActivitiesActions),h(1),d("ngSwitchCase",o.tableExpenderType1.OutputValidation),h(1),d("ngIf",o.hideRepoLoader))}})}return t})();const ene=["mask"],tne=["container"],nne=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ine=function(t){return{value:"visible",params:t}};function one(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",7),me("@animation.start",function(o){return G(e),q(f(3).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(3).onAnimationEnd(o))})("maskHide",function(){return G(e),q(f(3).onMaskHide())})("activeItemChange",function(o){return G(e),q(f(3).onActiveItemChange(o))}),A()}if(2&t){const e=f(3);d("@animation",He(8,ine,mt(5,nne,e.showTransitionOptions,e.hideTransitionOptions)))("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)("ngStyle",e.containerStyle)}}const sne=function(t){return{"p-galleria-mask p-component-overlay p-component-overlay-enter":!0,"p-galleria-visible":t}};function rne(t,i){if(1&t&&(x(0,"div",4,5),g(2,one,1,10,"p-galleriaContent",6),A()),2&t){const e=f(2);Ve(e.maskClass),d("ngClass",He(6,sne,e.visible)),K("role",e.fullScreen?"dialog":"region")("aria-modal",e.fullScreen?"true":void 0),h(2),d("ngIf",e.visible)}}function ane(t,i){if(1&t&&(x(0,"div",null,2),g(2,rne,3,8,"div",3),A()),2&t){const e=f();h(2),d("ngIf",e.maskVisible)}}function lne(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",8),me("activeItemChange",function(o){return G(e),q(f().onActiveItemChange(o))}),A()}if(2&t){const e=f();d("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)}}const cne=["closeButton"];function une(t,i){1&t&&le(0,"TimesIcon",11),2&t&&d("styleClass","p-galleria-close-icon")}function dne(t,i){}function pne(t,i){1&t&&g(0,dne,0,0,"ng-template")}function hne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(){return G(e),q(f(2).maskHide.emit())}),g(1,une,1,1,"TimesIcon",9),g(2,pne,1,0,null,10),A()}if(2&t){const e=f(2);K("aria-label",e.closeAriaLabel())("data-pc-section","closebutton"),h(1),d("ngIf",!e.galleria.closeIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.closeIconTemplate)}}function fne(t,i){if(1&t&&(x(0,"div",12),le(1,"p-galleriaItemSlot",13),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}function gne(t,i){if(1&t){const e=De();x(0,"p-galleriaThumbnails",14),me("onActiveIndexChange",function(o){return G(e),q(f(2).onActiveIndexChange(o))})("stopSlideShow",function(){return G(e),q(f(2).stopSlideShow())}),A()}if(2&t){const e=f(2);d("containerId",e.id)("value",e.value)("activeIndex",e.activeIndex)("templates",e.galleria.templates)("numVisible",e.numVisible)("responsiveOptions",e.galleria.responsiveOptions)("circular",e.galleria.circular)("isVertical",e.isVertical())("contentHeight",e.galleria.verticalThumbnailViewPortHeight)("showThumbnailNavigators",e.galleria.showThumbnailNavigators)("slideShowActive",e.slideShowActive)}}function mne(t,i){if(1&t&&(x(0,"div",15),le(1,"p-galleriaItemSlot",16),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}const _ne=function(t,i,e){return{"p-galleria p-component":!0,"p-galleria-fullscreen":t,"p-galleria-indicator-onitem":i,"p-galleria-item-nav-onhover":e}},Ine=function(){return{}};function Cne(t,i){if(1&t){const e=De();x(0,"div",1),g(1,hne,3,4,"button",2),g(2,fne,2,1,"div",3),x(3,"div",4)(4,"p-galleriaItem",5),me("onActiveIndexChange",function(o){return G(e),q(f().onActiveIndexChange(o))})("startSlideShow",function(){return G(e),q(f().startSlideShow())})("stopSlideShow",function(){return G(e),q(f().stopSlideShow())}),A(),g(5,gne,1,11,"p-galleriaThumbnails",6),A(),g(6,mne,2,1,"div",7),A()}if(2&t){const e=f();Ve(e.galleriaClass()),d("ngClass",Rn(22,_ne,e.galleria.fullScreen,e.galleria.showIndicatorsOnItem,e.galleria.showItemNavigatorsOnHover&&!e.galleria.fullScreen))("ngStyle",e.galleria.fullScreen?Jt(26,Ine):e.galleria.containerStyle),K("id",e.id),h(1),d("ngIf",e.galleria.fullScreen),h(1),d("ngIf",e.galleria.templates&&e.galleria.headerFacet),h(1),K("aria-live",e.galleria.autoPlay?"polite":"off"),h(1),d("id",e.id)("value",e.value)("activeIndex",e.activeIndex)("circular",e.galleria.circular)("templates",e.galleria.templates)("showIndicators",e.galleria.showIndicators)("changeItemOnIndicatorHover",e.galleria.changeItemOnIndicatorHover)("indicatorFacet",e.galleria.indicatorFacet)("captionFacet",e.galleria.captionFacet)("showItemNavigators",e.galleria.showItemNavigators)("autoPlay",e.galleria.autoPlay)("slideShowActive",e.slideShowActive),h(1),d("ngIf",e.galleria.showThumbnails),h(1),d("ngIf",e.galleria.templates&&e.galleria.footerFacet)}}function vne(t,i){1&t&&ze(0)}function bne(t,i){if(1&t&&(we(0),g(1,vne,1,0,"ng-container",1),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",e.context)}}function yne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-item-prev-icon")}function xne(t,i){}function Ane(t,i){1&t&&g(0,xne,0,0,"ng-template")}const wne=function(t){return{"p-galleria-item-prev p-galleria-item-nav p-link":!0,"p-disabled":t}};function Tne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,yne,1,1,"ChevronLeftIcon",9),g(2,Ane,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,wne,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),h(1),d("ngIf",!e.galleria.itemPreviousIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemPreviousIconTemplate)}}function Sne(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&d("styleClass","p-galleria-item-next-icon")}function Ene(t,i){}function Dne(t,i){1&t&&g(0,Ene,0,0,"ng-template")}const kne=function(t){return{"p-galleria-item-next p-galleria-item-nav p-link":!0,"p-disabled":t}};function Mne(t,i){if(1&t){const e=De();x(0,"button",12),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Sne,1,1,"ChevronRightIcon",9),g(2,Dne,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,kne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),h(1),d("ngIf",!e.galleria.itemNextIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemNextIconTemplate)}}function One(t,i){if(1&t&&(x(0,"div",13),le(1,"p-galleriaItemSlot",14),A()),2&t){const e=f();h(1),d("item",e.activeItem)("templates",e.templates)}}function Lne(t,i){1&t&&le(0,"button",20)}const Pne=function(t){return{"p-galleria-indicator":!0,"p-highlight":t}};function Fne(t,i){if(1&t){const e=De();x(0,"li",17),me("click",function(){const s=G(e).index;return q(f(2).onIndicatorClick(s))})("mouseenter",function(){const s=G(e).index;return q(f(2).onIndicatorMouseEnter(s))})("keydown",function(o){const r=G(e).index;return q(f(2).onIndicatorKeyDown(o,r))}),g(1,Lne,1,0,"button",18),le(2,"p-galleriaItemSlot",19),A()}if(2&t){const e=i.index,n=f(2);d("ngClass",He(7,Pne,n.isIndicatorItemActive(e))),K("aria-label",n.ariaPageLabel(e+1))("aria-selected",n.activeIndex===e)("aria-controls",n.id+"_item_"+e),h(1),d("ngIf",!n.indicatorFacet),h(1),d("index",e)("templates",n.templates)}}function Rne(t,i){if(1&t&&(x(0,"ul",15),g(1,Fne,3,9,"li",16),A()),2&t){const e=f();h(1),d("ngForOf",e.value)}}const Nne=["itemsContainer"];function Vne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Bne(t,i){1&t&&le(0,"ChevronUpIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Hne(t,i){if(1&t&&(we(0),g(1,Vne,1,1,"ChevronLeftIcon",10),g(2,Bne,1,1,"ChevronUpIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function zne(t,i){}function jne(t,i){1&t&&g(0,zne,0,0,"ng-template")}const Une=function(t){return{"p-galleria-thumbnail-prev p-link":!0,"p-disabled":t}};function $ne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,Hne,3,2,"ng-container",8),g(2,jne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Une,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),K("aria-label",e.ariaPrevButtonLabel()),h(1),d("ngIf",!e.galleria.previousThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.previousThumbnailIconTemplate)}}const Kne=function(t,i,e,n){return{"p-galleria-thumbnail-item":!0,"p-galleria-thumbnail-item-current":t,"p-galleria-thumbnail-item-active":i,"p-galleria-thumbnail-item-start":e,"p-galleria-thumbnail-item-end":n}};function Gne(t,i){if(1&t){const e=De();x(0,"div",12),me("keydown",function(o){const r=G(e).index;return q(f().onThumbnailKeydown(o,r))}),x(1,"div",13),me("click",function(){const s=G(e).index;return q(f().onItemClick(s))})("touchend",function(){const s=G(e).index;return q(f().onItemClick(s))})("keydown.enter",function(){const s=G(e).index;return q(f().onItemClick(s))}),le(2,"p-galleriaItemSlot",14),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",gr(10,Kne,o.activeIndex===n,o.isItemActive(n),o.firstItemAciveIndex()===n,o.lastItemActiveIndex()===n)),K("aria-selected",o.activeIndex===n)("aria-controls",o.containerId+"_item_"+n)("data-pc-section","thumbnailitem")("data-p-active",o.activeIndex===n),h(1),K("tabindex",o.activeIndex===n?0:-1)("aria-current",o.activeIndex===n?"page":void 0)("aria-label",o.ariaPageLabel(n+1)),h(1),d("item",e)("templates",o.templates)}}function qne(t,i){1&t&&le(0,"ChevronRightIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Wne(t,i){1&t&&le(0,"ChevronDownIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Qne(t,i){if(1&t&&(we(0),g(1,qne,1,1,"ChevronRightIcon",15),g(2,Wne,1,1,"ChevronDownIcon",15),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function Zne(t,i){}function Yne(t,i){1&t&&g(0,Zne,0,0,"ng-template")}const Xne=function(t){return{"p-galleria-thumbnail-next p-link":!0,"p-disabled":t}};function Jne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Qne,3,2,"ng-container",8),g(2,Yne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Xne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),K("aria-label",e.ariaNextButtonLabel()),h(1),d("ngIf",!e.galleria.nextThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.nextThumbnailIconTemplate)}}const eie=function(t){return{height:t}};let yf=(()=>{class t{document;platformId;element;cd;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}fullScreen=!1;id;value;numVisible=3;responsiveOptions;showItemNavigators=!1;showThumbnailNavigators=!0;showItemNavigatorsOnHover=!1;changeItemOnIndicatorHover=!1;circular=!1;autoPlay=!1;shouldStopAutoplayByClick=!0;transitionInterval=4e3;showThumbnails=!0;thumbnailsPosition="bottom";verticalThumbnailViewPortHeight="300px";showIndicators=!1;showIndicatorsOnItem=!1;indicatorsPosition="bottom";baseZIndex=0;maskClass;containerClass;containerStyle;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}activeIndexChange=new ge;visibleChange=new ge;mask;container;templates;_visible=!1;_activeIndex=0;headerFacet;footerFacet;indicatorFacet;captionFacet;closeIconTemplate;previousThumbnailIconTemplate;nextThumbnailIconTemplate;itemPreviousIconTemplate;itemNextIconTemplate;maskVisible=!1;constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.element=o,this.cd=s,this.config=r}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerFacet=e.template;break;case"footer":this.footerFacet=e.template;break;case"indicator":this.indicatorFacet=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"itemnexticon":this.itemNextIconTemplate=e.template;break;case"itempreviousicon":this.itemPreviousIconTemplate=e.template;break;case"previousthumbnailicon":this.previousThumbnailIconTemplate=e.template;break;case"nextthumbnailicon":this.nextThumbnailIconTemplate=e.template;break;case"caption":this.captionFacet=e.template}})}ngOnChanges(e){e.value&&e.value.currentValue?.length{j.focus(j.findSingle(this.container.nativeElement,'[data-pc-section="closebutton"]'))},25);break;case"void":j.addClass(this.mask?.nativeElement,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&this.disableModality()}enableModality(){j.blockBodyScroll(),this.cd.markForCheck(),this.mask&&Wn.set("modal",this.mask.nativeElement,this.baseZIndex||this.config.zIndex.modal)}disableModality(){j.unblockBodyScroll(),this.maskVisible=!1,this.cd.markForCheck(),this.mask&&Wn.clear(this.mask.nativeElement)}ngOnDestroy(){this.fullScreen&&j.removeClass(this.document.body,"p-overflow-hidden"),this.mask&&this.disableModality()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleria"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ene,5),je(tne,5)),2&n){let s;Se(s=Ee())&&(o.mask=s.first),Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{activeIndex:"activeIndex",fullScreen:"fullScreen",id:"id",value:"value",numVisible:"numVisible",responsiveOptions:"responsiveOptions",showItemNavigators:"showItemNavigators",showThumbnailNavigators:"showThumbnailNavigators",showItemNavigatorsOnHover:"showItemNavigatorsOnHover",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",circular:"circular",autoPlay:"autoPlay",shouldStopAutoplayByClick:"shouldStopAutoplayByClick",transitionInterval:"transitionInterval",showThumbnails:"showThumbnails",thumbnailsPosition:"thumbnailsPosition",verticalThumbnailViewPortHeight:"verticalThumbnailViewPortHeight",showIndicators:"showIndicators",showIndicatorsOnItem:"showIndicatorsOnItem",indicatorsPosition:"indicatorsPosition",baseZIndex:"baseZIndex",maskClass:"maskClass",containerClass:"containerClass",containerStyle:"containerStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",visible:"visible"},outputs:{activeIndexChange:"activeIndexChange",visibleChange:"visibleChange"},features:[Hn],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["windowed",""],["container",""],[3,"ngClass","class",4,"ngIf"],[3,"ngClass"],["mask",""],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange",4,"ngIf"],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange"],[3,"value","activeIndex","numVisible","activeItemChange"]],template:function(n,o){if(1&n&&(g(0,ane,3,1,"div",0),g(1,lne,1,3,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",o.fullScreen)("ngIfElse",s)}},dependencies:function(){return[Ct,gt,Ht,tie]},styles:["@layer primeng{.p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[en({transform:"scale(0.7)",opacity:0}),On("{{showTransitionParams}}")]),Ln("visible => void",[On("{{hideTransitionParams}}",en({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),tie=(()=>{class t{galleria;cd;differs;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}value=[];numVisible;maskHide=new ge;activeItemChange=new ge;closeButton;id;_activeIndex=0;slideShowActive=!0;interval;styleClass;differ;constructor(e,n,o,s){this.galleria=e,this.cd=n,this.differs=o,this.config=s,this.id=this.galleria.id||$t(),this.differ=this.differs.find(this.galleria).create()}ngDoCheck(){const e=this.differ.diff(this.galleria);e&&e.forEachItem.length>0&&this.cd.markForCheck()}galleriaClass(){const e=this.galleria.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.galleria.thumbnailsPosition),n=this.galleria.showIndicators&&this.getPositionClass("p-galleria-indicators",this.galleria.indicatorsPosition);return(this.galleria.containerClass?this.galleria.containerClass+" ":"")+(e?e+" ":"")+(n?n+" ":"")}startSlideShow(){ei(this.galleria.platformId)&&(this.interval=setInterval(()=>{let e=this.galleria.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1;this.onActiveIndexChange(e),this.activeIndex=e},this.galleria.transitionInterval),this.slideShowActive=!0)}stopSlideShow(){this.galleria.autoPlay&&!this.galleria.shouldStopAutoplayByClick||(this.interval&&clearInterval(this.interval),this.slideShowActive=!1)}getPositionClass(e,n){const s=["top","left","bottom","right"].find(r=>r===n);return s?`${e}-${s}`:""}isVertical(){return"left"===this.galleria.thumbnailsPosition||"right"===this.galleria.thumbnailsPosition}onActiveIndexChange(e){this.activeIndex!==e&&(this.activeIndex=e,this.activeItemChange.emit(this.activeIndex))}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Ft),V(yl),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaContent"]],viewQuery:function(n,o){if(1&n&&je(cne,5),2&n){let s;Se(s=Ee())&&(o.closeButton=s.first)}},inputs:{activeIndex:"activeIndex",value:"value",numVisible:"numVisible"},outputs:{maskHide:"maskHide",activeItemChange:"activeItemChange"},decls:1,vars:1,consts:[["pFocusTrap","",3,"ngClass","ngStyle","class",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle"],["type","button","class","p-galleria-close p-link","pRipple","",3,"click",4,"ngIf"],["class","p-galleria-header",4,"ngIf"],[1,"p-galleria-content"],[3,"id","value","activeIndex","circular","templates","showIndicators","changeItemOnIndicatorHover","indicatorFacet","captionFacet","showItemNavigators","autoPlay","slideShowActive","onActiveIndexChange","startSlideShow","stopSlideShow"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow",4,"ngIf"],["class","p-galleria-footer",4,"ngIf"],["type","button","pRipple","",1,"p-galleria-close","p-link",3,"click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-galleria-header"],["type","header",3,"templates"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow"],[1,"p-galleria-footer"],["type","footer",3,"templates"]],template:function(n,o){1&n&&g(0,Cne,7,27,"div",0),2&n&&d("ngIf",o.value&&o.value.length>0)},dependencies:function(){return[Ct,gt,on,Ht,oo,mn,Tk,TC,nie,iie]},encapsulation:2,changeDetection:0})}return t})(),TC=(()=>{class t{templates;index;get item(){return this._item}set item(e){this._item=e,this.templates&&this.templates.forEach(n=>{if(n.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=n.template}})}type;contentTemplate;context;_item;ngAfterContentInit(){this.templates?.forEach(e=>{if(e.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=e.template;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=e.template;break;default:this.context={},this.contentTemplate=e.template}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItemSlot"]],inputs:{templates:"templates",index:"index",item:"item",type:"type"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&g(0,bne,2,2,"ng-container",0),2&n&&d("ngIf",o.contentTemplate)},dependencies:[gt,on],encapsulation:2,changeDetection:0})}return t})(),nie=(()=>{class t{galleria;id;circular=!1;value;showItemNavigators=!1;showIndicators=!0;slideShowActive=!0;changeItemOnIndicatorHover=!0;autoPlay=!1;templates;indicatorFacet;captionFacet;startSlideShow=new ge;stopSlideShow=new ge;onActiveIndexChange=new ge;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}get activeItem(){return this.value&&this.value[this._activeIndex]}_activeIndex=0;constructor(e){this.galleria=e}ngOnChanges({autoPlay:e}){e?.currentValue&&this.startSlideShow.emit(),e&&!1===e.currentValue&&this.stopTheSlideShow()}next(){this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1)}prev(){this.onActiveIndexChange.emit(this.circular&&0===this.activeIndex?this.value.length-1:0!==this.activeIndex?this.activeIndex-1:0)}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}navForward(e){this.stopTheSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()}navBackward(e){this.stopTheSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()}onIndicatorClick(e){this.stopTheSlideShow(),this.onActiveIndexChange.emit(e)}onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopTheSlideShow(),this.onActiveIndexChange.emit(e))}onIndicatorKeyDown(e,n){switch(e.code){case"Enter":case"Space":this.stopTheSlideShow(),this.onActiveIndexChange.emit(n),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1}isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex}isIndicatorItemActive(e){return this.activeIndex===e}ariaSlideLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slide:void 0}ariaSlideNumber(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItem"]],inputs:{id:"id",circular:"circular",value:"value",showItemNavigators:"showItemNavigators",showIndicators:"showIndicators",slideShowActive:"slideShowActive",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",autoPlay:"autoPlay",templates:"templates",indicatorFacet:"indicatorFacet",captionFacet:"captionFacet",activeIndex:"activeIndex"},outputs:{startSlideShow:"startSlideShow",stopSlideShow:"stopSlideShow",onActiveIndexChange:"onActiveIndexChange"},features:[Hn],decls:8,vars:11,consts:[[1,"p-galleria-item-wrapper"],[1,"p-galleria-item-container"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],["role","group",3,"id"],["type","item",1,"p-galleria-item",3,"item","templates"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click",4,"ngIf"],["class","p-galleria-caption",4,"ngIf"],["class","p-galleria-indicators p-reset",4,"ngIf"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click"],[1,"p-galleria-caption"],["type","caption",3,"item","templates"],[1,"p-galleria-indicators","p-reset"],["tabindex","0",3,"ngClass","click","mouseenter","keydown",4,"ngFor","ngForOf"],["tabindex","0",3,"ngClass","click","mouseenter","keydown"],["type","button","tabIndex","-1","class","p-link",4,"ngIf"],["type","indicator",3,"index","templates"],["type","button","tabIndex","-1",1,"p-link"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,Tne,3,6,"button",2),x(3,"div",3),le(4,"p-galleriaItemSlot",4),A(),g(5,Mne,3,6,"button",5),g(6,One,2,2,"div",6),A(),g(7,Rne,2,1,"ul",7),A()),2&n&&(h(2),d("ngIf",o.showItemNavigators),h(1),fo("width","100%"),d("id",o.id+"_item_"+o.activeIndex),K("aria-label",o.ariaSlideNumber(o.activeIndex+1))("aria-roledescription",o.ariaSlideLabel()),h(1),d("item",o.activeItem)("templates",o.templates),h(1),d("ngIf",o.showItemNavigators),h(1),d("ngIf",o.captionFacet),h(1),d("ngIf",o.showIndicators))},dependencies:function(){return[Ct,Jn,gt,on,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),iie=(()=>{class t{galleria;document;platformId;renderer;cd;containerId;value;isVertical=!1;slideShowActive=!1;circular=!1;responsiveOptions;contentHeight="300px";showThumbnailNavigators=!0;templates;onActiveIndexChange=new ge;stopSlideShow=new ge;itemsContainer;get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e,this._oldNumVisible=this.d_numVisible,this.d_numVisible=e}get activeIndex(){return this._activeIndex}set activeIndex(e){this._oldactiveIndex=this._activeIndex,this._activeIndex=e}index;startPos=null;thumbnailsStyle=null;sortedResponsiveOptions=null;totalShiftedItems=0;page=0;documentResizeListener;_numVisible=0;d_numVisible=0;_oldNumVisible=0;_activeIndex=0;_oldactiveIndex=0;constructor(e,n,o,s,r){this.galleria=e,this.document=n,this.platformId=o,this.renderer=s,this.cd=r}ngOnInit(){this.createStyle(),this.responsiveOptions&&this.bindDocumentListeners()}ngAfterContentChecked(){let e=this.totalShiftedItems;(this._oldNumVisible!==this.d_numVisible||this._oldactiveIndex!==this._activeIndex)&&this.itemsContainer&&(e=this._activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex(){const s=n.breakpoint,r=o.breakpoint;let a=null;return a=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof s&&"string"==typeof r?s.localeCompare(r,void 0,{numeric:!0}):sr?1:0,-1*a});for(let n=0;n=e&&(n=s)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible,this.cd.markForCheck())}}getTabIndex(e){return this.isItemActive(e)?0:null}navForward(e){this.stopTheSlideShow();let n=this._activeIndex+1;n+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItemsthis.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1),this.onActiveIndexChange.emit(this.circular&&0===this._activeIndex?this.value.length-1:n),e.cancelable&&e.preventDefault()}onItemClick(e){this.stopTheSlideShow();let n=e;if(n!==this._activeIndex){const o=n+this.totalShiftedItems;let s=0;n0&&-1*this.totalShiftedItems!=0&&this.step(s)):(s=this.getMedianItemIndex()-o,s<0&&-1*this.totalShiftedItems!0===j.getAttribute(r,"data-p-active")),o=j.findSingle(this.itemsContainer.nativeElement,'[tabindex="0"]'),s=e.findIndex(r=>r===o.parentElement);e[s].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"}findFocusedIndicatorIndex(){const e=[...j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]')],n=j.findSingle(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(o=>o===n.parentElement)}changedFocusedIndicator(e,n){const o=j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]');o[e].children[0].tabIndex="-1",o[n].children[0].tabIndex="0",o[n].children[0].focus()}step(e){let n=this.totalShiftedItems+e;e<0&&-1*n+this.d_numVisible>this.value.length-1?n=this.d_numVisible-this.value.length:e>0&&n>0&&(n=0),this.circular&&(e<0&&this.value.length-1===this._activeIndex?n=0:e>0&&0===this._activeIndex&&(n=this.d_numVisible-this.value.length)),this.itemsContainer&&(j.removeClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${n*(100/this.d_numVisible)}%, 0)`:`translate3d(${n*(100/this.d_numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=n}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}changePageOnTouch(e,n){n<0?this.navForward(e):this.navBackward(e)}getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0}getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1}onTransitionEnd(){this.itemsContainer&&this.itemsContainer.nativeElement&&(j.addClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="")}onTouchEnd(e){let n=e.changedTouches[0];this.changePageOnTouch(e,this.isVertical?n.pageY-this.startPos.y:n.pageX-this.startPos.x)}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchStart(e){let n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}}isNavBackwardDisabled(){return!this.circular&&0===this._activeIndex||this.value.length<=this.d_numVisible}isNavForwardDisabled(){return!this.circular&&this._activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}firstItemAciveIndex(){return-1*this.totalShiftedItems}lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1}isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e}bindDocumentListeners(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView||"window","resize",()=>{this.calculatePosition()}))}unbindDocumentListeners(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle)}ariaPrevButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.prevPageLabel:void 0}ariaNextButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.nextPageLabel:void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Wt),V($n),V(hn),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaThumbnails"]],viewQuery:function(n,o){if(1&n&&je(Nne,5),2&n){let s;Se(s=Ee())&&(o.itemsContainer=s.first)}},inputs:{containerId:"containerId",value:"value",isVertical:"isVertical",slideShowActive:"slideShowActive",circular:"circular",responsiveOptions:"responsiveOptions",contentHeight:"contentHeight",showThumbnailNavigators:"showThumbnailNavigators",templates:"templates",numVisible:"numVisible",activeIndex:"activeIndex"},outputs:{onActiveIndexChange:"onActiveIndexChange",stopSlideShow:"stopSlideShow"},decls:8,vars:6,consts:[[1,"p-galleria-thumbnail-wrapper"],[1,"p-galleria-thumbnail-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-galleria-thumbnail-items-container",3,"ngStyle"],["role","tablist",1,"p-galleria-thumbnail-items",3,"transitionend","touchstart","touchmove"],["itemsContainer",""],[3,"ngClass","keydown",4,"ngFor","ngForOf"],["type","button","pRipple","",3,"ngClass","disabled","click"],[4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"ngClass","keydown"],[1,"p-galleria-thumbnail-item-content",3,"click","touchend","keydown.enter"],["type","thumbnail",3,"item","templates"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,$ne,3,7,"button",2),x(3,"div",3)(4,"div",4,5),me("transitionend",function(){return o.onTransitionEnd()})("touchstart",function(r){return o.onTouchStart(r)})("touchmove",function(r){return o.onTouchMove(r)}),g(6,Gne,3,15,"div",6),A()(),g(7,Jne,3,7,"button",2),A()()),2&n&&(h(2),d("ngIf",o.showThumbnailNavigators),h(1),d("ngStyle",He(4,eie,o.isVertical?o.contentHeight:"")),h(3),d("ngForOf",o.value),h(1),d("ngIf",o.showThumbnailNavigators))},dependencies:function(){return[Ct,Jn,gt,on,Ht,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),kk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,mn,Qi,Mr,AC,wC,Sk,Xe,Qe]})}return t})();const oie=["galleria"],sie=function(t){return{width:t}};function rie(t,i){if(1&t&&le(0,"img",7),2&t){const e=i.$implicit,n=f(2);d("src",e.itemImageSrc,Ls)("ngStyle",He(2,sie,n.fullscreen?"":"100%"))}}function aie(t,i){if(1&t&&(x(0,"div"),le(1,"img",8),A()),2&t){const e=i.$implicit;y_("grid grid-nogutter justify-content-center ",e.title,""),h(1),d("src",e.thumbnailImageSrc,Ls)}}function lie(t,i){if(1&t&&(x(0,"span",13)(1,"span"),Le(2),A(),x(3,"span"),Le(4),A(),le(5,"span"),A()),2&t){const e=f(4);h(2),Fp("",e.activeIndex+1,"/",e.images.length,""),h(2),dt(e.images[e.activeIndex].alt),h(1),y_("title ",e.getStatusWithIcon(e.images[e.activeIndex].title),"")}}function cie(t,i){if(1&t){const e=De();x(0,"div",10),g(1,lie,6,6,"span",11),x(2,"button",12),me("click",function(){return G(e),q(f(3).toggleFullScreen())}),A()()}if(2&t){const e=f(3);h(1),d("ngIf",e.images),h(1),Ve(e.fullScreenIcon())}}function uie(t,i){1&t&&g(0,cie,3,4,"ng-template",9)}const die=function(t,i){return{footerMargin:t,smallThumbnail:i}},pie=function(){return{"max-width":"100%"}};function hie(t,i){if(1&t){const e=De();x(0,"div",1)(1,"p-galleria",2,3),me("valueChange",function(o){return G(e),q(f().images=o)})("activeIndexChange",function(o){return G(e),q(f().activeIndex=o)}),g(3,rie,1,4,"ng-template",4),g(4,aie,2,4,"ng-template",5),g(5,uie,1,0,null,6),A()()}if(2&t){const e=f();d("ngClass",mt(14,die,e.showFooter,!e.showFooter)),h(1),d("value",e.images)("activeIndex",e.activeIndex)("numVisible",10)("showThumbnails",e.showThumbnails)("showItemNavigators",!1)("showItemNavigatorsOnHover",!1)("circular",!0)("autoPlay",!1)("transitionInterval",3e3)("containerStyle",Jt(17,pie))("containerClass",e.galleriaClass())("thumbnailsPosition",e.top),h(4),d("ngIf",e.showFooter)}}let SC=(()=>{class t{constructor(e,n,o,s,r,a){this.globalVarService=e,this._userDataManagerService=n,this.route=o,this.calculatedDataService=s,this.communicatorService=r,this.cd=a,this.isScreenshotVisibleEvent=new ge,this.showFooter=!0,this.autoplaychecked=!1,this.fullscreen=!1,this.activeIndex=0,this.position="left",this.responsiveOptions=[{breakpoint:"1024px",numVisible:5},{breakpoint:"768px",numVisible:3},{breakpoint:"560px",numVisible:1}]}ngOnInit(){this.showThumbnails=this._thumbnails,this.route.params.subscribe(e=>{this.paramChanged(),this.bindDocumentListeners()}),this.communicatorService.onBfActivitiesDataChange.subscribe(e=>{"Last Loading Data"===e&&(this.paramChanged(),this.bindDocumentListeners())})}handleChange(e){this.bindDocumentListeners()}setThumbnails(){}paramChanged(){"action"==this.EntityType?this.setScurrentAction():("businessflow"==this.EntityType||"activity"==this.EntityType)&&this.setAllActions(),this.images=[];for(const e of this.actions)for(const n of e.ScreenShots)this.images.push({itemImageSrc:this.globalVarService.imagePath+n,thumbnailImageSrc:this.globalVarService.imagePath+n,alt:e.Path,title:e.RunStatus.toString()});this.isScreenshotVisibleEvent.emit(null!=this.images&&this.images.length>0)}getStatusWithIcon(e){return this.calculatedDataService.getStatusClass(e)}onThumbnailButtonClick(){this.showThumbnails=!this.showThumbnails}toggleFullScreen(){this.fullscreen?this.closePreviewFullScreen():this.openPreviewFullScreen(),this.cd.detach()}openPreviewFullScreen(){let e=this.galleria?.element.nativeElement.querySelector(".p-galleria");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}onFullScreenChange(){this.fullscreen=!this.fullscreen,this.cd.detectChanges(),this.cd.reattach()}closePreviewFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}bindDocumentListeners(){this.onFullScreenListener=this.onFullScreenChange.bind(this),document.addEventListener("fullscreenchange",this.onFullScreenListener),document.addEventListener("mozfullscreenchange",this.onFullScreenListener),document.addEventListener("webkitfullscreenchange",this.onFullScreenListener),document.addEventListener("msfullscreenchange",this.onFullScreenListener)}unbindDocumentListeners(){document.removeEventListener("fullscreenchange",this.onFullScreenListener),document.removeEventListener("mozfullscreenchange",this.onFullScreenListener),document.removeEventListener("webkitfullscreenchange",this.onFullScreenListener),document.removeEventListener("msfullscreenchange",this.onFullScreenListener),this.onFullScreenListener=null}ngOnDestroy(){this.unbindDocumentListeners()}galleriaClass(){return"custom-galleria "+(this.fullscreen?"fullscreen":"")}fullScreenIcon(){return"pi "+(this.fullscreen?"fullscreen-button pi-window-minimize":"fullscreen-button pi-window-maximize")}setAllActions(){const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");if(this.actions=[],e&&n&&o){const r=e.RunnersColl.filter(a=>a.Seq===n)[0].BusinessFlowsColl.filter(a=>a.Seq===o)[0];for(const a of r.ActivitiesColl)for(const l of a.ActionsColl)l.Path=a.ActivityGroupName+" / "+a.Name,this.actions.push(l)}}setScurrentAction(){this.actions=[];const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");var s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");if(null!=r&&0==r&&(r=this.Action_seq),null!=s&&0==s&&(s=this.Activity_seq),e&&n&&o&&s&&r){const c=e.RunnersColl.filter(u=>u.Seq===n)[0].BusinessFlowsColl.filter(u=>u.Seq===o)[0].ActivitiesColl.filter(u=>u.Seq===s)[0];this.actions.push(c.ActionsColl.filter(u=>u.Seq===r)[0])}}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V(Co),V(Di),V(qs),V(Ws),V(Ft))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["screenshot-carousel"]],viewQuery:function(n,o){if(1&n&&je(oie,5),2&n){let s;Se(s=Ee())&&(o.galleria=s.first)}},inputs:{_height:"_height",_thumbnails:"_thumbnails",autoplay:"autoplay",EntityType:"EntityType",Action_seq:"Action_seq",Activity_seq:"Activity_seq",showFooter:"showFooter"},outputs:{isScreenshotVisibleEvent:"isScreenshotVisibleEvent"},decls:1,vars:1,consts:[["class","screenshot-carousel",3,"ngClass",4,"ngIf"],[1,"screenshot-carousel",3,"ngClass"],[3,"value","activeIndex","numVisible","showThumbnails","showItemNavigators","showItemNavigatorsOnHover","circular","autoPlay","transitionInterval","containerStyle","containerClass","thumbnailsPosition","valueChange","activeIndexChange"],["galleria",""],["pTemplate","item"],["pTemplate","thumbnail"],[4,"ngIf"],[3,"src","ngStyle"],[2,"width","100px",3,"src"],["pTemplate","footer"],[1,"custom-galleria-footer"],["class","title-container",4,"ngIf"],["type","button",3,"click"],[1,"title-container"]],template:function(n,o){1&n&&g(0,hie,6,18,"div",0),2&n&&d("ngIf",null!=o.images&&o.images.length>0)},dependencies:[Ct,gt,Ht,sn,yf],styles:[".screenshot-carousel .passed-color{color:#109717;text-align:center} .screenshot-carousel .failed-color{color:#dc3812;text-align:center} .screenshot-carousel .blocked-color{color:#a21025;text-align:center} .screenshot-carousel .stopped-color{color:#ed5588;text-align:center} .screenshot-carousel .pending-color{color:#f90;text-align:center} .screenshot-carousel .skipped-color{color:#737373;text-align:center} .screenshot-carousel .inprogress-color{color:#eab330;text-align:center} .screenshot-carousel .canceled-color{color:#ca0088;text-align:center} p-galleriaitemslot .Passed{border-top:5px solid #109717!important} p-galleriaitemslot .Failed{border-top:5px solid #DC3812!important} p-galleriaitemslot .Blocked{border-top:5px solid #A21025!important} p-galleriaitemslot .Stopped{border-top:5px solid #ED5588!important} p-galleriaitemslot .Pending{border-top:5px solid #FF9900!important} p-galleriaitemslot .Skipped{border-top:5px solid #737373!important} p-galleriaitemslot .InProgress{border-top:5px solid #EAB330!important} p-galleriaitemslot .Canceled{border-top:5px solid #CA0088!important} .footerMargin .p-galleria-item-wrapper{margin-bottom:90px!important} .smallThumbnail .p-galleria-item-wrapper{width:100px!important}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen{display:flex;flex-direction:column}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen .p-galleria-content{flex-grow:1;justify-content:center}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-content{position:relative}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-wrapper{position:absolute;bottom:0;left:0;width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-items-container{width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer{display:flex;align-items:center;background-color:#fff;color:#000;border:1px solid;padding:5px}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button{background-color:transparent;color:#000;border:0 none;border-radius:0;margin:.2rem 0}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button.fullscreen-button{margin-left:auto}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button:hover{background-color:#ffffff1a}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span{font-size:1.2rem;padding-left:.829rem}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span.title{font-weight:700;font-size:1.5rem}"]})}return t})();function fie(t,i){1&t&&le(0,"div")}function gie(t,i){1&t&&le(0,"th",9)}function mie(t,i){if(1&t&&(x(0,"th"),Le(1),A()),2&t){const e=i.$implicit;h(1),Pt(" ",e.header," ")}}function _ie(t,i){if(1&t&&(x(0,"tr"),g(1,fie,1,0,"div",6),g(2,gie,1,0,"ng-template",null,7,In),g(4,mie,2,1,"th",8),A()),2&t){const e=i.$implicit,n=Bt(3),o=f();h(1),d("ngIf",o.addExpender)("ngIfThen",n),h(3),d("ngForOf",e)}}function Iie(t,i){1&t&&le(0,"div")}function Cie(t,i){if(1&t&&(x(0,"td")(1,"a",12),le(2,"i",13),A()()),2&t){const e=f(),n=e.$implicit,o=e.expanded;h(1),d("pRowToggler",n),h(1),d("ngClass",o?"pi pi-chevron-down":"pi pi-chevron-right")}}const vie=function(t){return{Guid:t}};function bie(t,i){if(1&t&&(x(0,"div")(1,"b")(2,"a",21),Le(3),A()()()),2&t){const e=f().$implicit,n=f(2).$implicit,o=f();h(2),__("routerLink","",e.link,"",o.getParamsURL(n,e),""),d("queryParams",He(4,vie,n.GUID)),h(1),Pt(" ",n[e.field]," ")}}function yie(t,i){if(1&t&&(x(0,"div"),g(1,bie,4,6,"div",16),A()),2&t){const e=i.$implicit;h(1),d("ngSwitchCase",e.field)}}function xie(t,i){if(1&t&&(x(0,"div"),Le(1),Il(2,"date"),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",Cl(2,1,n[e.field],"short")," ")}}function Aie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.msToTime(n[e.field])," ")}}function wie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}const Tie=function(t,i,e,n,o,s,r,a,l){return{"passed-color":t,"failed-color":i,"blocked-color":e,"stopped-color":n,"pending-color":o,"skipped-color":s,"inprogress-color":r,"canceled-color":a,"other-color":l}};function Sie(t,i){if(1&t&&(x(0,"div")(1,"div",13),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(1),d("ngClass",zp(2,Tie,["Passed"===e[n.statusFieldName],"Failed"===e[n.statusFieldName],"Blocked"===e[n.statusFieldName],"Stopped"===e[n.statusFieldName],"Pending"===e[n.statusFieldName],"Skipped"===e[n.statusFieldName],"In Progress"===e[n.statusFieldName],"Canceled"===e[n.statusFieldName],"Other"===e[n.statusFieldName]])),h(1),Pt(" ",e[n.statusFieldName]," ")}}function Eie(t,i){if(1&t&&(x(0,"div"),g(1,Sie,3,12,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.statusFieldName)}}function Die(t,i){if(1&t&&(x(0,"div")(1,"div",23),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(2),Pt(" ",e[n.errorFieldName]," ")}}function kie(t,i){if(1&t&&(x(0,"div"),g(1,Die,3,1,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.errorFieldName)}}function Mie(t,i){if(1&t&&(x(0,"div")(1,"div",24),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}function Oie(t,i){if(1&t&&(x(0,"div"),g(1,Mie,3,1,"div",16),A()),2&t){const e=f().$implicit,n=f(2);h(1),d("ngSwitchCase",n.boldAndCenterFields.includes(e.field)?e.field:"")}}function Lie(t,i){if(1&t){const e=De();x(0,"div")(1,"screenshot-carousel",25),me("isScreenshotVisibleEvent",function(o){return G(e),q(f(4).setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f(3).$implicit,n=f();h(1),d("showFooter",!1)("Activity_seq",n.activitySeq)("Action_seq",e.Seq)("EntityType",n.EntityType)("_height",100)("_thumbnails",!1)}}function Pie(t,i){1&t&&(x(0,"div"),g(1,Lie,2,6,"div",16),A()),2&t&&(h(1),d("ngSwitchCase","Screenshots"))}function Fie(t,i){if(1&t&&(x(0,"div",24),Le(1),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"% ")}}function Rie(t,i){if(1&t&&(x(0,"div")(1,"pre",29),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.getXML(n[e.field]),"\n ")}}function Nie(t,i){if(1&t&&(x(0,"div",30),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field]," ")}}function Vie(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"")}}function Bie(t,i){if(1&t&&(x(0,"div"),g(1,Rie,3,1,"div",26),g(2,Nie,2,1,"div",27),g(3,Vie,2,1,"ng-template",null,28,In),A()),2&t){const e=Bt(4),n=f().$implicit,o=f().$implicit,s=f();h(1),d("ngIf",o[n.field].includes("{class t{constructor(e,n,o){this.communicatorService=e,this.globalVarService=n,this._userDataManagerService=o,this.addExpender=!1,this.ShouldImagePop=!1,this.imagePopSrc="",this.imagePopName="",this.showScreenshotPanel=!0,this.EntityType="action"}ngOnInit(){}printf(e){console.log(e)}msToTime(e){return this._userDataManagerService.msToTime(e)}getParamsURL(e,n){var o="";if(!n.params)return e[n.param];for(let s of n.params)o=o+e[s]+"/";return o}onRouterCLick(e){console.log(e)}showImage(e){this.ShouldImagePop=!0,this.imagePopSrc=this.globalVarService.imagePath+e,this.imagePopName=e}getXML(e){let n;return n="\n"+e,n}isJson(e){try{JSON.parse(e)}catch{return console.log("not json"),!1}return console.log("is json"),!0}getJson(e){try{return JSON.parse(e)}catch{console.log("not json")}}trackByFunction(e,n){return n?n.field:null}setScreenshotVisiblity(e){this.showScreenshotPanel=e}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table"]],inputs:{cols:"cols",data:"data",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",errorFieldName:"errorFieldName",statusFieldName:"statusFieldName",boldAndCenterFields:"boldAndCenterFields",activitySeq:"activitySeq"},decls:6,vars:9,consts:[["dataKey","Seq",3,"columns","value"],["pTemplate","header"],["pTemplate","body"],["pTemplate","rowexpansion"],[3,"header","visible","responsive","visibleChange"],[2,"height","40vw",3,"src"],[4,"ngIf","ngIfThen"],["addExpenderBlock",""],[4,"ngFor","ngForOf"],[2,"width","3em"],["addExpenderBlock1",""],["class","row",3,"ngSwitch",4,"ngFor","ngForOf"],["href","#",3,"pRowToggler"],[3,"ngClass"],[1,"row",3,"ngSwitch"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngIf"],["class","bold-and-center",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["data","rowData",3,"routerLink","queryParams"],[1,"numbers-style"],[1,"failed-color"],[1,"bold-and-center"],[3,"showFooter","Activity_seq","Action_seq","EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],[4,"ngIf","ngIfElse"],["style"," display: inline-block;width: 180px;white-space: nowrap;overflow: hidden !important;text-overflow: ellipsis;",4,"ngIf","ngIfElse"],["elseBlock1",""],["lang","xml"],[2,"display","inline-block","width","180px","white-space","nowrap","overflow","hidden !important","text-overflow","ellipsis"],[1,"p-fluid",2,"font-size","16px","padding","20px"],[3,"tableExpenderType","entity"]],template:function(n,o){1&n&&(x(0,"p-table",0),g(1,_ie,5,3,"ng-template",1),g(2,Gie,5,3,"ng-template",2),g(3,qie,4,3,"ng-template",3),A(),x(4,"p-dialog",4),me("visibleChange",function(r){return o.ShouldImagePop=r}),le(5,"img",5),A()),2&n&&(d("columns",o.cols)("value",o.data),h(4),yn(Jt(8,Wie)),d("header",o.imagePopName)("visible",o.ShouldImagePop)("responsive",!0),h(1),d("src",o.imagePopSrc,Ls))},dependencies:[Ct,Jn,gt,wl,ch,x0,sn,xC,ate,pa,Qte,Dk,SC,Hs],styles:[".bold-and-center[_ngcontent-%COMP%]{font-weight:700;text-align:center}.alignCenter[_ngcontent-%COMP%]{text-align:center}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}.row[_ngcontent-%COMP%]{text-align:center}.item1[_ngcontent-%COMP%]{width:90%;text-align:left;margin-bottom:10px}"],data:{animation:[Oo("rowExpansionTrigger",[Us("void",en({transform:"translateX(-10%)",opacity:0})),Us("active",en({transform:"translateX(0)",opacity:1})),Ln("* <=> *",On("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}})}return t})();const Qie=["exeStatistics"];function Zie(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Run set Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),Pt(" ",e.RunsetJson.Name,"")}}function Yie(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runsetDetails)}}function Xie(t,i){if(1&t){const e=De();x(0,"p-accordionTab",13)(1,"app-execution-statistic",14,15),me("isStatisticsVisibleEvent",function(o){return G(e),q(f().setStatisticsVisiblity(o))}),A()()}2&t&&d("selected",!0)}const Jie=function(){return["BusinessFlowSeq"]};function eoe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.runnersCols)("data",e.runnersData)("fieldsLinksArr",e.fieldsLinksArr)("statusFieldName","BusinessFlowExecutionStaus")("boldAndCenterFields",Jt(6,Jie))}}function toe(t,i){1&t&&(x(0,"div",18),le(1,"div",19),A())}function noe(t,i){if(1&t&&(x(0,"p"),Le(1),A()),2&t){const e=f();h(1),dt(e.ErrorMessage)}}const ioe=function(t,i){return{hideDiv:t,showDiv:i}};let ooe=(()=>{class t{constructor(e,n,o,s,r,a,l,c,u,p,m,_){this.executionDataService=e,this.datePipe=n,this.communicatorService=o,this.reportHelperService=s,this.activeRoute=r,this.router=a,this.fileLoader=l,this.globalVarService=u,this.restServiceObj=p,this.userDataManagerService=m,this.calculatedDataService=_,this.runnersData=[],this.ErrorMessage="",this.showStatisticsPanel=!0,this.globalVarService.baseAppUrl=c.baseUrl,this.globalVarService.totalRecPerActivityPull=c.totalRecPerActivityPull,this.globalVarService.topBarTitle=c.topBarTitle}ngAfterViewInit(){null!=this.executionStatisticComponent&&null!=this.RunsetJson&&this.executionStatisticComponent.initComponents()}ngOnInit(){this.communicatorService.onRefreshChangedMessage.subscribe(e=>{"RefreshData"===e&&this.showRunset(!0)}),this.reportHelperService.selectedGuid="",this.reportHelperService.selectedRouteLink="",this.activeRoute.queryParams.subscribe(e=>{const n=e.Routed_Guid;console.log("found selected guid "+n),this.reportHelperService.selectedGuid=typeof n<"u"&&n?n:""}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"BusinessFlowName",link:"",params:["Seq","BusinessFlowSeq"]}],null==this.RunsetJson&&this.showRunset(),this.runnersCols=[{field:"Seq",header:"Runner Number"},{field:"Name",header:"Ginger Runner Name"},{field:"Environment",header:"Ginger Runner Environment Name"},{field:"BusinessFlowSeq",header:"Business Flow Execution Sequence"},{field:"BusinessFlowName",header:"Business Flow Name"},{field:"BusinessFlowDescription",header:"Business Flow Description"},{field:"BusinessFlowRunDescription",header:"Business Flow Run Description"},{field:"BusinessFlowExecutionStaus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Passed Rate"}]}showRunset(e=!1){this.hideRepoLoader=!0,this.showReport=!1;var n=this.activeRoute.snapshot.queryParamMap.get("ExecutionId");const o=this.activeRoute.snapshot.paramMap.get("BusinessFlowId"),s=this.activeRoute.snapshot.paramMap.get("ExecutionId");null!=s&&(n=s),null==n?n=localStorage.getItem("executionId"):localStorage.setItem("executionId",n),console.log("run set query guid is :"+n),n?(this.globalVarService.imagePath="images/",this.globalVarService.isServerLoading=!0,this.globalVarService.executionServerId=n,this.RunsetJson=this.userDataManagerService.getItemCache(),null==this.RunsetJson||this.RunsetJson.GUID!=n?this.restServiceObj.GetAccountHtmlReportBriefCase(n).subscribe(r=>{if(r.isSuccsess){if(this.showReport=!0,console.log(r.response),this.RunsetJson=JSON.parse(r.response),this.RunsetJson.Name=this.userDataManagerService.replaceUnicodeChar(this.RunsetJson.Name),this.RunsetJson.RunnersColl.length<=0)return void console.log("error on loading report");this.userDataManagerService.setItemCache(this.RunsetJson),this.RunsetJson.RunStatus==Lt.InProgress&&(this.userDataManagerService.setItem("LoadActivityStat","true"),this.userDataManagerService.setItem("LoadActionStat","true")),this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController(),null!=o&&this.RunsetJson.RunnersColl.forEach(a=>{a.BusinessFlowsColl.forEach(l=>{l.InstanceGUID==o&&this.router.navigateByUrl(a.Seq+"/"+l.Seq)})}),e&&null!=this.RunsetJson&&this.router.navigateByUrl("/?ExecutionId="+this.RunsetJson.ExecutionId)}else null==r.response||"NotFound"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="No record found"):"0"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Account Report Service is down"):"DatabaseDown"==r.response&&(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Postgres Database is down")}):(this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController())):(this.userDataManagerService.setItem("timeFormat","seconds"),this.globalVarService.imagePath="assets/screenshots/",this.executionDataService.GetExecutionData().then(r=>{this.hideRepoLoader=!1,null!=r?(this.showReport=!0,this.RunsetJson={...r},this.initController()):this.showReport=!1}))}GetFirstActivitesReponse(e){return this.restServiceObj.GetActivitiesByParentAwait(e)}downloadImages(e){this.restServiceObj.DownloadRunsetImages(e).subscribe(n=>{console.log(n.isSuccsess)})}initController(e=null){const n=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,e);this.communicatorService.newMessage(n),this.populateRunnerDetails(),null!=this.executionStatisticComponent&&this.executionStatisticComponent.initComponents(),this.runsetDetails=[{field:"Name",value:this.RunsetJson.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.RunsetJson.StartTimeStamp,"short")},{field:"RunSet Description",value:this.RunsetJson.Description},{field:"Execution End Time",value:this.datePipe.transform(this.RunsetJson.EndTimeStamp,"short")},{field:"RunSet Run Description",value:this.RunsetJson.RunDescription},{field:"Executed by User",value:this.RunsetJson.ExecutedbyUser},{field:"Execution Duration",value:this.userDataManagerService.msToTime(this.RunsetJson.Elapsed)},{field:"Execution Status",value:this.RunsetJson.RunStatus},{field:"Executed on Machine",value:this.RunsetJson.MachineName},{field:"Run Set Execution Rate",value:this.RunsetJson.ExecutionRate+"%"},{field:"Run Set Execution Pass Rate",value:this.RunsetJson.PassRate+"%"},{field:"Environment Name",value:this.RunsetJson.Environment},{field:"Ginger Version",value:this.RunsetJson.GingerVersion}],""!==this.reportHelperService.selectedRouteLink&&(console.log("route to guid :"+this.reportHelperService.selectedRouteLink),setTimeout(()=>{this.router.navigateByUrl(this.reportHelperService.selectedRouteLink)},5e3))}setStatisticsVisiblity(e){this.showStatisticsPanel=e}populateRunnerDetails(){this.runnersData=[];for(const e of this.RunsetJson.RunnersColl){let n=new MK;for(const o of e.BusinessFlowsColl)n={Name:e.Name,Environment:e.Environment,Seq:e.Seq,GUID:e.GUID,BusinessFlowSeq:o.Seq,BusinessFlowName:o.Name,BusinessFlowDescription:o.Description,PassRate:o.PassRate,BusinessFlowExecutionStaus:o.RunStatus,BusinessFlowRunDescription:o.RunDescription,ExecutionRate:o.ExecutionRate},this.runnersData.push(n)}}getStatus(e=!0){if(null!=this.RunsetJson&&null!=this.RunsetJson.RunStatus)return this.calculatedDataService.getStatusClass(this.RunsetJson.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(HK),V(Hs),V(Ws),V(WD),V(Di),V(io),V(qD),V("environmentObj"),V(ms),V(ha),V(Co),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["runset-report"]],viewQuery:function(n,o){if(1&n&&je(Qie,5),2&n){let s;Se(s=Ee())&&(o.executionStatisticComponent=s.first)}},decls:8,vars:11,consts:[[3,"ngClass"],["class","entityName",4,"ngIf"],[3,"multiple"],["header","EXECUTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle"],[2,"font-weight","bold"],["header","EXECUTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected"],[3,"isStatisticsVisibleEvent"],["exeStatistics",""],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data","fieldsLinksArr","statusFieldName","boldAndCenterFields"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zie,5,4,"h4",1),x(2,"p-accordion",2),g(3,Yie,2,2,"p-accordionTab",3),g(4,Xie,3,1,"p-accordionTab",4),g(5,eoe,2,7,"p-accordionTab",5),A()(),g(6,toe,2,0,"div",6),g(7,noe,2,1,"p",7)),2&n&&(d("ngClass",mt(8,ioe,!1===o.showReport,!0===o.showReport)),h(1),d("ngIf",o.RunsetJson),h(1),d("multiple",!0),h(1),d("ngIf",null!=o.runsetDetails&&o.runsetDetails.length>0),h(1),d("ngIf",1==o.showStatisticsPanel),h(1),d("ngIf",o.runnersData.length>0),h(1),d("ngIf",o.hideRepoLoader),h(1),d("ngIf",0==o.showReport&&0==o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,LG,Is],styles:[".lables[_ngcontent-%COMP%]{font-weight:700}.loader[_ngcontent-%COMP%]{position:absolute;top:40%;left:40%;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #0066b2;width:40px;height:40px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return t})(),Mk=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"dashboard"],[1,"ui-m"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),le(2,"runset-report"),A()())},dependencies:[ooe],encapsulation:2})}return t})();const soe=function(){return["NumberOfActions"]};let EC=(()=>{class t{constructor(){}ngOnInit(){this.activitiesCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group Name"},{field:"Name",header:"Activity Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"RunStatus",header:"Execution Status"},{field:"NumberOfActions",header:"Number Of Actions"},{field:"ExecutionRate",header:"Actions Execution Rate"},{field:"PassRate",header:"Actions Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activities-table"]],inputs:{activities:"activities",activitiesGroups:"activitiesGroups",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.activitiesCols)("data",o.activities)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,soe))},dependencies:[Is]})}return t})();const roe=function(){return["CurrentRetryIteration","NumberOfActions"]};let Ok=(()=>{class t{constructor(){}ngOnInit(){this.actionsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Action Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"ActionType",header:"Action Type"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"CurrentRetryIteration",header:"Current Retry Iteration"},{field:"RunStatus",header:"Execution Status"},{field:"Error",header:"Error Details"},{field:"ExInfo",header:"Extra Details"},{field:"Screenshots",header:"Screenshot"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-actions-table"]],inputs:{actions:"actions",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",activitySeq:"activitySeq"},decls:1,vars:9,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields","activitySeq"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.actionsCols)("data",o.actions)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(8,roe))("activitySeq",o.activitySeq)},dependencies:[Is]})}return t})();function Ys(){}const aoe=function(){let t=0;return function(){return t++}}();function tn(t){return null===t||typeof t>"u"}function kn(t){if(Array.isArray&&Array.isArray(t))return!0;const i=Object.prototype.toString.call(t);return"[object"===i.slice(0,7)&&"Array]"===i.slice(-6)}function qt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Po(t,i){return ti(t)?t:i}function Nt(t,i){return typeof t>"u"?i:t}const Lk=(t,i)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*i:+t;function Mn(t,i,e){if(t&&"function"==typeof t.call)return t.apply(e,i)}function _n(t,i,e,n){let o,s,r;if(kn(t))if(s=t.length,n)for(o=s-1;o>=0;o--)i.call(e,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function Pr(t,i){return(Fk[i]||(Fk[i]=function doe(t){const i=function poe(t){const i=t.split("."),e=[];let n="";for(const o of i)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}(t);return e=>{for(const n of i){if(""===n)break;e=e&&e[n]}return e}}(i)))(t)}function DC(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Fo=t=>typeof t<"u",Fr=t=>"function"==typeof t,Rk=(t,i)=>{if(t.size!==i.size)return!1;for(const e of t)if(!i.has(e))return!1;return!0},Vn=Math.PI,Cn=2*Vn,foe=Cn+Vn,wf=Number.POSITIVE_INFINITY,goe=Vn/180,Qn=Vn/2,Uu=Vn/4,Nk=2*Vn/3,Ro=Math.log10,Cs=Math.sign;function Vk(t){const i=Math.round(t);t=$u(t,i,t/1e3)?i:t;const e=Math.pow(10,Math.floor(Ro(t))),n=t/e;return(n<=1?1:n<=2?2:n<=5?5:10)*e}function Gl(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $u(t,i,e){return Math.abs(t-i)l&&c=Math.min(i,e)-n&&t<=Math.max(i,e)+n}function OC(t,i,e){e=e||(r=>t[r]1;)s=o+n>>1,e(s)?o=s:n=s;return{lo:o,hi:n}}const Js=(t,i,e,n)=>OC(t,e,n?o=>t[o][i]<=e:o=>t[o][i]OC(t,e,n=>t[n][i]>=e),jk=["push","pop","shift","splice","unshift"];function Uk(t,i){const e=t._chartjs;if(!e)return;const n=e.listeners,o=n.indexOf(i);-1!==o&&n.splice(o,1),!(n.length>0)&&(jk.forEach(s=>{delete t[s]}),delete t._chartjs)}function $k(t){const i=new Set;let e,n;for(e=0,n=t.length;e"u"?function(t){return t()}:window.requestAnimationFrame;function Gk(t,i,e){const n=e||(r=>Array.prototype.slice.call(r));let o=!1,s=[];return function(...r){s=n(r),o||(o=!0,Kk.call(window,()=>{o=!1,t.apply(i,s)}))}}const LC=t=>"start"===t?"left":"end"===t?"right":"center",Li=(t,i,e)=>"start"===t?i:"end"===t?e:(i+e)/2;function qk(t,i,e){const n=i.length;let o=0,s=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:u,minDefined:p,maxDefined:m}=r.getUserBounds();p&&(o=pi(Math.min(Js(a,r.axis,c).lo,e?n:Js(i,l,r.getPixelForValue(c)).lo),0,n-1)),s=m?pi(Math.max(Js(a,r.axis,u,!0).hi+1,e?0:Js(i,l,r.getPixelForValue(u),!0).hi+1),o,n)-o:n-o}return{start:o,count:s}}function Wk(t){const{xScale:i,yScale:e,_scaleRanges:n}=t,o={xmin:i.min,xmax:i.max,ymin:e.min,ymax:e.max};if(!n)return t._scaleRanges=o,!0;const s=n.xmin!==i.min||n.xmax!==i.max||n.ymin!==e.min||n.ymax!==e.max;return Object.assign(n,o),s}const Tf=t=>0===t||1===t,Qk=(t,i,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-i)*Cn/e),Zk=(t,i,e)=>Math.pow(2,-10*t)*Math.sin((t-i)*Cn/e)+1,Gu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Qn),easeOutSine:t=>Math.sin(t*Qn),easeInOutSine:t=>-.5*(Math.cos(Vn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Tf(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Tf(t)?t:Qk(t,.075,.3),easeOutElastic:t=>Tf(t)?t:Zk(t,.075,.3),easeInOutElastic:t=>Tf(t)?t:t<.5?.5*Qk(2*t,.1125,.45):.5+.5*Zk(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let i=1.70158;return(t/=.5)<1?t*t*((1+(i*=1.525))*t-i)*.5:.5*((t-=2)*t*((1+(i*=1.525))*t+i)+2)},easeInBounce:t=>1-Gu.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*Gu.easeInBounce(2*t):.5*Gu.easeOutBounce(2*t-1)+.5};function qu(t){return t+.5|0}const Rr=(t,i,e)=>Math.max(Math.min(t,e),i);function Wu(t){return Rr(qu(2.55*t),0,255)}function Nr(t){return Rr(qu(255*t),0,255)}function er(t){return Rr(qu(t/2.55)/100,0,1)}function Yk(t){return Rr(qu(100*t),0,100)}const No={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},PC=[..."0123456789ABCDEF"],woe=t=>PC[15&t],Toe=t=>PC[(240&t)>>4]+PC[15&t],Sf=t=>(240&t)>>4==(15&t);const Moe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Xk(t,i,e){const n=i*Math.min(e,1-e),o=(s,r=(s+t/30)%12)=>e-n*Math.max(Math.min(r-3,9-r,1),-1);return[o(0),o(8),o(4)]}function Ooe(t,i,e){const n=(o,s=(o+t/60)%6)=>e-e*i*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Loe(t,i,e){const n=Xk(t,1,.5);let o;for(i+e>1&&(o=1/(i+e),i*=o,e*=o),o=0;o<3;o++)n[o]*=1-i-e,n[o]+=i;return n}function FC(t){const e=t.r/255,n=t.g/255,o=t.b/255,s=Math.max(e,n,o),r=Math.min(e,n,o),a=(s+r)/2;let l,c,u;return s!==r&&(u=s-r,c=a>.5?u/(2-s-r):u/(s+r),l=function Poe(t,i,e,n,o){return t===o?(i-e)/n+(it<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,ql=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Df(t,i,e){if(t){let n=FC(t);n[i]=Math.max(0,Math.min(n[i]+n[i]*e,0===i?360:1)),n=NC(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function n3(t,i){return t&&Object.assign(i||{},t)}function o3(t){var i={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(i={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(i.a=Nr(t[3]))):(i=n3(t,{r:0,g:0,b:0,a:1})).a=Nr(i.a),i}function Goe(t){return"r"===t.charAt(0)?function Uoe(t){const i=joe.exec(t);let n,o,s,e=255;if(i){if(i[7]!==n){const r=+i[7];e=i[8]?Wu(r):Rr(255*r,0,255)}return n=+i[1],o=+i[3],s=+i[5],n=255&(i[2]?Wu(n):Rr(n,0,255)),o=255&(i[4]?Wu(o):Rr(o,0,255)),s=255&(i[6]?Wu(s):Rr(s,0,255)),{r:n,g:o,b:s,a:e}}}(t):function Noe(t){const i=Moe.exec(t);let n,e=255;if(!i)return;i[5]!==n&&(e=i[6]?Wu(+i[5]):Nr(+i[5]));const o=Jk(+i[2]),s=+i[3]/100,r=+i[4]/100;return n="hwb"===i[1]?function Foe(t,i,e){return RC(Loe,t,i,e)}(o,s,r):"hsv"===i[1]?function Roe(t,i,e){return RC(Ooe,t,i,e)}(o,s,r):NC(o,s,r),{r:n[0],g:n[1],b:n[2],a:e}}(t)}class kf{constructor(i){if(i instanceof kf)return i;const e=typeof i;let n;"object"===e?n=o3(i):"string"===e&&(n=function Eoe(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*No[t[1]],g:255&17*No[t[2]],b:255&17*No[t[3]],a:5===i?17*No[t[4]]:255}:(7===i||9===i)&&(e={r:No[t[1]]<<4|No[t[2]],g:No[t[3]]<<4|No[t[4]],b:No[t[5]]<<4|No[t[6]],a:9===i?No[t[7]]<<4|No[t[8]]:255})),e}(i)||function zoe(t){Ef||(Ef=function Hoe(){const t={},i=Object.keys(t3),e=Object.keys(e3);let n,o,s,r,a;for(n=0;n>16&255,s>>8&255,255&s]}return t}(),Ef.transparent=[0,0,0,0]);const i=Ef[t.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255}}(i)||Goe(i)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var i=n3(this._rgb);return i&&(i.a=er(i.a)),i}set rgb(i){this._rgb=o3(i)}rgbString(){return this._valid?function $oe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${er(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function koe(t){var i=(t=>Sf(t.r)&&Sf(t.g)&&Sf(t.b)&&Sf(t.a))(t)?woe:Toe;return t?"#"+i(t.r)+i(t.g)+i(t.b)+((t,i)=>t<255?i(t):"")(t.a,i):void 0}(this._rgb):void 0}hslString(){return this._valid?function Boe(t){if(!t)return;const i=FC(t),e=i[0],n=Yk(i[1]),o=Yk(i[2]);return t.a<255?`hsla(${e}, ${n}%, ${o}%, ${er(t.a)})`:`hsl(${e}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(i,e){if(i){const n=this.rgb,o=i.rgb;let s;const r=e===s?.5:e,a=2*r-1,l=n.a-o.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,n.r=255&c*n.r+s*o.r+.5,n.g=255&c*n.g+s*o.g+.5,n.b=255&c*n.b+s*o.b+.5,n.a=r*n.a+(1-r)*o.a,this.rgb=n}return this}interpolate(i,e){return i&&(this._rgb=function Koe(t,i,e){const n=ql(er(t.r)),o=ql(er(t.g)),s=ql(er(t.b));return{r:Nr(VC(n+e*(ql(er(i.r))-n))),g:Nr(VC(o+e*(ql(er(i.g))-o))),b:Nr(VC(s+e*(ql(er(i.b))-s))),a:t.a+e*(i.a-t.a)}}(this._rgb,i._rgb,e)),this}clone(){return new kf(this.rgb)}alpha(i){return this._rgb.a=Nr(i),this}clearer(i){return this._rgb.a*=1-i,this}greyscale(){const i=this._rgb,e=qu(.3*i.r+.59*i.g+.11*i.b);return i.r=i.g=i.b=e,this}opaquer(i){return this._rgb.a*=1+i,this}negate(){const i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Df(this._rgb,2,i),this}darken(i){return Df(this._rgb,2,-i),this}saturate(i){return Df(this._rgb,1,i),this}desaturate(i){return Df(this._rgb,1,-i),this}rotate(i){return function Voe(t,i){var e=FC(t);e[0]=Jk(e[0]+i),e=NC(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,i),this}}function s3(t){return new kf(t)}function r3(t){if(t&&"object"==typeof t){const i=t.toString();return"[object CanvasPattern]"===i||"[object CanvasGradient]"===i}return!1}function a3(t){return r3(t)?t:s3(t)}function BC(t){return r3(t)?t:s3(t).saturate(.5).darken(.1).hexString()}const ma=Object.create(null),HC=Object.create(null);function Qu(t,i){if(!i)return t;const e=i.split(".");for(let n=0,o=e.length;ne.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,n)=>BC(n.backgroundColor),this.hoverBorderColor=(e,n)=>BC(n.borderColor),this.hoverColor=(e,n)=>BC(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i)}set(i,e){return zC(this,i,e)}get(i){return Qu(this,i)}describe(i,e){return zC(HC,i,e)}override(i,e){return zC(ma,i,e)}route(i,e,n,o){const s=Qu(this,i),r=Qu(this,n),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[o];return qt(l)?Object.assign({},c,l):Nt(l,c)},set(l){this[a]=l}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Mf(t,i,e,n,o){let s=i[o];return s||(s=i[o]=t.measureText(o).width,e.push(o)),s>n&&(n=s),n}function Qoe(t,i,e,n){let o=(n=n||{}).data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==i&&(o=n.data={},s=n.garbageCollect=[],n.font=i),t.save(),t.font=i;let r=0;const a=e.length;let l,c,u,p,m;for(l=0;le.length){for(l=0;l<_;l++)delete o[s[l]];s.splice(0,_)}return r}function _a(t,i,e){const n=t.currentDevicePixelRatio,o=0!==e?Math.max(e/2,.5):0;return Math.round((i-o)*n)/n+o}function l3(t,i){(i=i||t.getContext("2d")).save(),i.resetTransform(),i.clearRect(0,0,t.width,t.height),i.restore()}function jC(t,i,e,n){c3(t,i,e,n,null)}function c3(t,i,e,n,o){let s,r,a,l,c,u;const p=i.pointStyle,m=i.rotation,_=i.radius;let b=(m||0)*goe;if(p&&"object"==typeof p&&(s=p.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(e,n),t.rotate(b),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(_)||_<=0)){switch(t.beginPath(),p){default:o?t.ellipse(e,n,o/2,_,0,0,Cn):t.arc(e,n,_,0,Cn),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),t.closePath();break;case"rectRounded":c=.516*_,l=_-c,r=Math.cos(b+Uu)*l,a=Math.sin(b+Uu)*l,t.arc(e-r,n-a,c,b-Vn,b-Qn),t.arc(e+a,n-r,c,b-Qn,b),t.arc(e+r,n+a,c,b,b+Qn),t.arc(e-a,n+r,c,b+Qn,b+Vn),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*_,u=o?o/2:l,t.rect(e-u,n-l,2*u,2*l);break}b+=Uu;case"rectRot":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+a,n-r),t.lineTo(e+r,n+a),t.lineTo(e-a,n+r),t.closePath();break;case"crossRot":b+=Uu;case"cross":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"star":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r),b+=Uu,r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"line":r=o?o/2:Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(b)*_,n+Math.sin(b)*_)}t.fill(),i.borderWidth>0&&t.stroke()}}function Zu(t,i,e){return e=e||.5,!i||t&&t.x>i.left-e&&t.xi.top-e&&t.y0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=o.string,function Xoe(t,i){i.translation&&t.translate(i.translation[0],i.translation[1]),tn(i.rotation)||t.rotate(i.rotation),i.color&&(t.fillStyle=i.color),i.textAlign&&(t.textAlign=i.textAlign),i.textBaseline&&(t.textBaseline=i.textBaseline)}(t,s),l=0;l+t||0;function UC(t,i){const e={},n=qt(i),o=n?Object.keys(i):i,s=qt(t)?n?r=>Nt(t[r],t[i[r]]):r=>t[r]:()=>t;for(const r of o)e[r]=ise(s(r));return e}function u3(t){return UC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ca(t){return UC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Pi(t){const i=u3(t);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ui(t,i){let e=Nt((t=t||{}).size,(i=i||Qt.font).size);"string"==typeof e&&(e=parseInt(e,10));let n=Nt(t.style,i.style);n&&!(""+n).match(tse)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const o={family:Nt(t.family,i.family),lineHeight:nse(Nt(t.lineHeight,i.lineHeight),e),size:e,style:n,weight:Nt(t.weight,i.weight),string:""};return o.string=function Woe(t){return!t||tn(t.size)||tn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Xu(t,i,e,n){let s,r,a,o=!0;for(s=0,r=t.length;st[0])){Fo(n)||(n=g3("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:e,_fallback:n,_getTarget:o,override:r=>$C([r,...t],i,e,n)};return new Proxy(s,{deleteProperty:(r,a)=>(delete r[a],delete r._keys,delete t[0][a],!0),get:(r,a)=>p3(r,a,()=>function pse(t,i,e,n){let o;for(const s of i)if(o=g3(sse(s,t),e),Fo(o))return KC(t,o)?GC(e,n,t,o):o}(a,i,t,r)),getOwnPropertyDescriptor:(r,a)=>Reflect.getOwnPropertyDescriptor(r._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(r,a)=>m3(r).includes(a),ownKeys:r=>m3(r),set(r,a,l){const c=r._storage||(r._storage=o());return r[a]=c[a]=l,delete r._keys,!0}})}function Wl(t,i,e,n){const o={_cacheable:!1,_proxy:t,_context:i,_subProxy:e,_stack:new Set,_descriptors:d3(t,n),setContext:s=>Wl(t,s,e,n),override:s=>Wl(t.override(s),i,e,n)};return new Proxy(o,{deleteProperty:(s,r)=>(delete s[r],delete t[r],!0),get:(s,r,a)=>p3(s,r,()=>function rse(t,i,e){const{_proxy:n,_context:o,_subProxy:s,_descriptors:r}=t;let a=n[i];return Fr(a)&&r.isScriptable(i)&&(a=function ase(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_stack:a}=e;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),i=i(s,r||n),a.delete(t),KC(t,i)&&(i=GC(o._scopes,o,t,i)),i}(i,a,t,e)),kn(a)&&a.length&&(a=function lse(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_descriptors:a}=e;if(Fo(s.index)&&n(t))i=i[s.index%i.length];else if(qt(i[0])){const l=i,c=o._scopes.filter(u=>u!==l);i=[];for(const u of l){const p=GC(c,o,t,u);i.push(Wl(p,s,r&&r[t],a))}}return i}(i,a,t,r.isIndexable)),KC(i,a)&&(a=Wl(a,o,s&&s[i],r)),a}(s,r,a)),getOwnPropertyDescriptor:(s,r)=>s._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(s,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(s,r,a)=>(t[r]=a,delete s[r],!0)})}function d3(t,i={scriptable:!0,indexable:!0}){const{_scriptable:e=i.scriptable,_indexable:n=i.indexable,_allKeys:o=i.allKeys}=t;return{allKeys:o,scriptable:e,indexable:n,isScriptable:Fr(e)?e:()=>e,isIndexable:Fr(n)?n:()=>n}}const sse=(t,i)=>t?t+DC(i):i,KC=(t,i)=>qt(i)&&"adapters"!==t&&(null===Object.getPrototypeOf(i)||i.constructor===Object);function p3(t,i,e){if(Object.prototype.hasOwnProperty.call(t,i))return t[i];const n=e();return t[i]=n,n}function h3(t,i,e){return Fr(t)?t(i,e):t}const cse=(t,i)=>!0===t?i:"string"==typeof t?Pr(i,t):void 0;function use(t,i,e,n,o){for(const s of i){const r=cse(e,s);if(r){t.add(r);const a=h3(r._fallback,e,o);if(Fo(a)&&a!==e&&a!==n)return a}else if(!1===r&&Fo(n)&&e!==n)return null}return!1}function GC(t,i,e,n){const o=i._rootScopes,s=h3(i._fallback,e,n),r=[...t,...o],a=new Set;a.add(n);let l=f3(a,r,e,s||e,n);return!(null===l||Fo(s)&&s!==e&&(l=f3(a,r,s,l,n),null===l))&&$C(Array.from(a),[""],o,s,()=>function dse(t,i,e){const n=t._getTarget();i in n||(n[i]={});const o=n[i];return kn(o)&&qt(e)?e:o}(i,e,n))}function f3(t,i,e,n,o){for(;e;)e=use(t,i,e,n,o);return e}function g3(t,i){for(const e of i){if(!e)continue;const n=e[t];if(Fo(n))return n}}function m3(t){let i=t._keys;return i||(i=t._keys=function hse(t){const i=new Set;for(const e of t)for(const n of Object.keys(e).filter(o=>!o.startsWith("_")))i.add(n);return Array.from(i)}(t._scopes)),i}function _3(t,i,e,n){const{iScale:o}=t,{key:s="r"}=this._parsing,r=new Array(n);let a,l,c,u;for(a=0,l=n;ai"x"===t?"y":"x";function gse(t,i,e,n){const o=t.skip?i:t,s=i,r=e.skip?i:e,a=MC(s,o),l=MC(r,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const p=n*c,m=n*u;return{previous:{x:s.x-p*(r.x-o.x),y:s.y-p*(r.y-o.y)},next:{x:s.x+m*(r.x-o.x),y:s.y+m*(r.y-o.y)}}}function Pf(t,i,e){return Math.max(Math.min(t,e),i)}function vse(t,i,e,n,o){let s,r,a,l;if(i.spanGaps&&(t=t.filter(c=>!c.skip)),"monotone"===i.cubicInterpolationMode)!function Ise(t,i="x"){const e=I3(i),n=t.length,o=Array(n).fill(0),s=Array(n);let r,a,l,c=Ql(t,0);for(r=0;rwindow.getComputedStyle(t,null),yse=["top","right","bottom","left"];function va(t,i,e){const n={};e=e?"-"+e:"";for(let o=0;o<4;o++){const s=yse[o];n[s]=parseFloat(t[i+"-"+s+e])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const xse=(t,i,e)=>(t>0||i>0)&&(!e||!e.shadowRoot);function ba(t,i){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:n}=i,o=Rf(e),s="border-box"===o.boxSizing,r=va(o,"padding"),a=va(o,"border","width"),{x:l,y:c,box:u}=function Ase(t,i){const e=t.touches,n=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=n;let a,l,r=!1;if(xse(o,s,t.target))a=o,l=s;else{const c=i.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,r=!0}return{x:a,y:l,box:r}}(t,e),p=r.left+(u&&a.left),m=r.top+(u&&a.top);let{width:_,height:b}=i;return s&&(_-=r.width+a.width,b-=r.height+a.height),{x:Math.round((l-p)/_*e.width/n),y:Math.round((c-m)/b*e.height/n)}}const WC=t=>Math.round(10*t)/10;function v3(t,i,e){const n=i||1,o=Math.floor(t.height*n),s=Math.floor(t.width*n);t.height=o/n,t.width=s/n;const r=t.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==o||r.width!==s)&&(t.currentDevicePixelRatio=n,r.height=o,r.width=s,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Sse=function(){let t=!1;try{const i={get passive(){return t=!0,!1}};window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return t}();function b3(t,i){const e=function bse(t,i){return Rf(t).getPropertyValue(i)}(t,i),n=e&&e.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ya(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:t.y+e*(i.y-t.y)}}function Ese(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:"middle"===n?e<.5?t.y:i.y:"after"===n?e<1?t.y:i.y:e>0?i.y:t.y}}function Dse(t,i,e,n){const o={x:t.cp2x,y:t.cp2y},s={x:i.cp1x,y:i.cp1y},r=ya(t,o,e),a=ya(o,s,e),l=ya(s,i,e),c=ya(r,a,e),u=ya(a,l,e);return ya(c,u,e)}const y3=new Map;function Ju(t,i,e){return function kse(t,i){i=i||{};const e=t+JSON.stringify(i);let n=y3.get(e);return n||(n=new Intl.NumberFormat(t,i),y3.set(e,n)),n}(i,e).format(t)}function Zl(t,i,e){return t?function(t,i){return{x:e=>t+t+i-e,setWidth(e){i=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(i,e):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,i)=>t+i,leftForLtr:(t,i)=>t}}function x3(t,i){let e,n;("ltr"===i||"rtl"===i)&&(e=t.canvas.style,n=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",i,"important"),t.prevTextDirection=n)}function A3(t,i){void 0!==i&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",i[0],i[1]))}function w3(t){return"angle"===t?{between:Ku,compare:Ioe,normalize:vo}:{between:Xs,compare:(i,e)=>i-e,normalize:i=>i}}function T3({start:t,end:i,count:e,loop:n,style:o}){return{start:t%e,end:i%e,loop:n&&(i-t+1)%e==0,style:o}}function S3(t,i,e){if(!e)return[t];const{property:n,start:o,end:s}=e,r=i.length,{compare:a,between:l,normalize:c}=w3(n),{start:u,end:p,loop:m,style:_}=function Lse(t,i,e){const{property:n,start:o,end:s}=e,{between:r,normalize:a}=w3(n),l=i.length;let m,_,{start:c,end:u,loop:p}=t;if(p){for(c+=l,u+=l,m=0,_=l;m<_&&r(a(i[c%l][n]),o,s);++m)c--,u--;c%=l,u%=l}return ua({chart:i,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Kk.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let e=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const s=n.items;let l,r=s.length-1,a=!1;for(;r>=0;--r)l=s[r],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(i),a=!0):(s[r]=s[s.length-1],s.pop());a&&(o.draw(),this._notify(o,n,i,"progress")),s.length||(n.running=!1,this._notify(o,n,i,"complete"),n.initial=!1),e+=s.length}),this._lastDate=i,0===e&&(this._running=!1)}_getAnims(i){const e=this._charts;let n=e.get(i);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(i,n)),n}listen(i,e,n){this._getAnims(i).listeners[e].push(n)}add(i,e){!e||!e.length||this._getAnims(i).items.push(...e)}has(i){return this._getAnims(i).items.length>0}start(i){const e=this._charts.get(i);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(i){if(!this._running)return!1;const e=this._charts.get(i);return!(!e||!e.running||!e.items.length)}stop(i){const e=this._charts.get(i);if(!e||!e.items.length)return;const n=e.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();e.items=[],this._notify(i,e,Date.now(),"complete")}remove(i){return this._charts.delete(i)}};const M3="transparent",Hse={boolean:(t,i,e)=>e>.5?i:t,color(t,i,e){const n=a3(t||M3),o=n.valid&&a3(i||M3);return o&&o.valid?o.mix(n,e).hexString():i},number:(t,i,e)=>t+(i-t)*e};class zse{constructor(i,e,n,o){const s=e[n];o=Xu([i.to,o,s,i.from]);const r=Xu([i.from,s,o]);this._active=!0,this._fn=i.fn||Hse[i.type||typeof r],this._easing=Gu[i.easing]||Gu.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=e,this._prop=n,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(i,e,n){if(this._active){this._notify(!1);const o=this._target[this._prop],s=n-this._start,r=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=s,this._loop=!!i.loop,this._to=Xu([i.to,e,o,i.from]),this._from=Xu([i.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){const e=i-this._start,n=this._duration,o=this._prop,s=this._from,r=this._loop,a=this._to;let l;if(this._active=s!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,a,l))}wait(){const i=this._promises||(this._promises=[]);return new Promise((e,n)=>{i.push({res:e,rej:n})})}_notify(i){const e=i?"res":"rej",n=this._promises||[];for(let o=0;o"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Qt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Qt.describe("animations",{_fallback:"animation"}),Qt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class O3{constructor(i,e){this._chart=i,this._properties=new Map,this.configure(e)}configure(i){if(!qt(i))return;const e=this._properties;Object.getOwnPropertyNames(i).forEach(n=>{const o=i[n];if(!qt(o))return;const s={};for(const r of $se)s[r]=o[r];(kn(o.properties)&&o.properties||[n]).forEach(r=>{(r===n||!e.has(r))&&e.set(r,s)})})}_animateOptions(i,e){const n=e.options,o=function Gse(t,i){if(!i)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=i}(i,n);if(!o)return[];const s=this._createAnimations(o,n);return n.$shared&&function Kse(t,i){const e=[],n=Object.keys(i);for(let o=0;o{i.options=n},()=>{}),s}_createAnimations(i,e){const n=this._properties,o=[],s=i.$animations||(i.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(i,e));continue}const u=e[c];let p=s[c];const m=n.get(c);if(p){if(m&&p.active()){p.update(m,u,a);continue}p.cancel()}m&&m.duration?(s[c]=p=new zse(m,i,c,u),o.push(p)):i[c]=u}return o}update(i,e){if(0===this._properties.size)return void Object.assign(i,e);const n=this._createAnimations(i,e);return n.length?(tr.add(this._chart,n),!0):void 0}}function L3(t,i){const e=t&&t.options||{},n=e.reverse,o=void 0===e.min?i:0,s=void 0===e.max?i:0;return{start:n?s:o,end:n?o:s}}function P3(t,i){const e=[],n=t._getSortedDatasetMetas(i);let o,s;for(o=0,s=n.length;o0||!e&&s<0)return o.index}return null}function V3(t,i){const{chart:e,_cachedMeta:n}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:r,index:a}=n,l=s.axis,c=r.axis,u=function Zse(t,i,e){return`${t.id}.${i.id}.${e.stack||e.type}`}(s,r,n),p=i.length;let m;for(let _=0;_e[n].axis===i).shift()}function ed(t,i){const e=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){i=i||t._parsed;for(const o of i){const s=o._stacks;if(!s||void 0===s[n]||void 0===s[n][e])return;delete s[n][e]}}}const ZC=t=>"reset"===t||"none"===t,B3=(t,i)=>i?t:Object.assign({},t);let vs=(()=>{class t{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=R3(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&ed(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),s=(m,_,b,E)=>"x"===m?_:"r"===m?E:b,r=n.xAxisID=Nt(o.xAxisID,QC(e,"x")),a=n.yAxisID=Nt(o.yAxisID,QC(e,"y")),l=n.rAxisID=Nt(o.rAxisID,QC(e,"r")),c=n.indexAxis,u=n.iAxisID=s(c,r,a,l),p=n.vAxisID=s(c,a,r,l);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Uk(this._data,this),e._stacked&&ed(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(qt(n))this._data=function Qse(t){const i=Object.keys(t),e=new Array(i.length);let n,o,s;for(n=0,o=i.length;n{const n="_onData"+DC(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){const r=o.apply(this,s);return t._chartjs.listeners.forEach(a=>{"function"==typeof a[n]&&a[n](...s)}),r}})}))}(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=R3(n.vScale,n),n.stack!==o.stack&&(s=!0,ed(n),n.stack=o.stack),this._resyncElements(e),(s||r!==n._stacked)&&V3(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:s}=this,{iScale:r,_stacked:a}=o,l=r.axis;let p,m,_,c=0===e&&n===s.length||o._sorted,u=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=s,o._sorted=!0,_=s;else{_=kn(s[e])?this.parseArrayData(o,s,e,n):qt(s[e])?this.parseObjectData(o,s,e,n):this.parsePrimitiveData(o,s,e,n);const b=()=>null===m[l]||u&&m[l]t&&!i.hidden&&i._stacked&&{keys:P3(this.chart,!0),values:null})(n,o),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:m}=function Yse(t){const{min:i,max:e,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?i:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}(l);let _,b;function E(){b=s[_];const P=b[l.axis];return!ti(b[e.axis])||p>P||m=0;--_)if(!E()){this.updateRangeFromParsed(u,e,b,c);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let s,r,a;for(s=0,r=n.length;s=0&&ethis.getContext(o,s),m);return P.$shared&&(P.$shared=c,r[a]=Object.freeze(B3(P,c))),P}_resolveAnimations(e,n,o){const s=this.chart,r=this._cachedDataOpts,a=`animation-${n}`,l=r[a];if(l)return l;let c;if(!1!==s.options.animation){const p=this.chart.config,m=p.datasetAnimationScopeKeys(this._type,n),_=p.getOptionScopes(this.getDataset(),m);c=p.createResolver(_,this.getContext(e,o,n))}const u=new O3(s,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||ZC(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(o),a=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,o),{sharedOptions:r,includeOptions:a}}updateElement(e,n,o,s){ZC(s)?Object.assign(e,o):this._resolveAnimations(n,s).update(e,o)}updateSharedOptions(e,n,o){e&&!ZC(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,o,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const s=o.length,r=n.length,a=Math.min(r,s);a&&this.parse(0,a),r>s?this._insertElements(s,r-s,e):r{for(u.length+=n,l=u.length-1;l>=a;l--)u[l]=u[l-n]};for(c(r),l=e;lo-s))}return t._cache.$bar}(i,t.type);let o,s,r,a,n=i._length;const l=()=>{32767===r||-32768===r||(Fo(a)&&(n=Math.min(n,Math.abs(r-a)||n)),a=r)};for(o=0,s=e.length;oMath.abs(a)&&(l=a,c=r),i[e.axis]=c,i._custom={barStart:l,barEnd:c,start:o,end:s,min:r,max:a}}(t,i,e,n):i[e.axis]=e.parse(t,n),i}function z3(t,i,e,n){const o=t.iScale,s=t.vScale,r=o.getLabels(),a=o===s,l=[];let c,u,p,m;for(c=e,u=e+n;ct.x,e="left",n="right"):(i=t.base{class t extends vs{parsePrimitiveData(e,n,o,s){return z3(e,n,o,s)}parseArrayData(e,n,o,s){return z3(e,n,o,s)}parseObjectData(e,n,o,s){const{iScale:r,vScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u="x"===r.axis?l:c,p="x"===a.axis?l:c,m=[];let _,b,E,P;for(_=o,b=o+s;_c.controller.options.grouped),r=o.options.stacked,a=[],l=c=>{const u=c.controller.getParsed(n),p=u&&u[c.vScale.axis];if(tn(p)||isNaN(p))return!0};for(const c of s)if((void 0===n||!l(c))&&((!1===r||-1===a.indexOf(c.stack)||void 0===r&&void 0===c.stack)&&a.push(c.stack),c.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,o){const s=this._getStacks(e,o),r=void 0!==n?s.indexOf(n):-1;return-1===r?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,s=[];let r,a;for(r=0,a=n.data.length;r=e?1:-1)}(E,n,a)*r,p===a&&(W-=E/2);const te=n.getPixelForDecimal(0),fe=n.getPixelForDecimal(1),Ce=Math.min(te,fe),ve=Math.max(te,fe);W=Math.max(Math.min(W,ve),Ce),b=W+E}if(W===n.getPixelForValue(a)){const te=Cs(E)*n.getLineWidthForValue(a)/2;W+=te,E-=te}return{size:E,base:W,head:b,center:b+E/2}}_calculateBarIndexPixels(e,n){const o=n.scale,s=this.options,r=s.skipNull,a=Nt(s.maxBarThickness,1/0);let l,c;if(n.grouped){const u=r?this._getStackCount(e):n.stackCount,p="flex"===s.barThickness?function sre(t,i,e,n){const o=i.pixels,s=o[t];let r=t>0?o[t-1]:null,a=t{class t extends vs{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,o,s){const r=super.parsePrimitiveData(e,n,o,s);for(let a=0;a=0;--o)n=Math.max(n,e[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:o,yScale:s}=n,r=this.getParsed(e),a=o.getLabelForValue(r.x),l=s.getLabelForValue(r.y),c=r._custom;return{label:n.label,value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,s),p=a.axis,m=l.axis;for(let _=n;_""}}}},t})(),$3=(()=>{class t extends vs{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=o;else{let a,l,r=c=>+o[c];if(qt(o[e])){const{key:c="value"}=this._parsing;r=u=>+Pr(o[u],c)}for(a=e,l=e+n;a"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/i)(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:p,rotation:m}=this._getRotationExtents(),{ratioX:_,ratioY:b,offsetX:E,offsetY:P}=function fre(t,i,e){let n=1,o=1,s=0,r=0;if(iKu(fe,a,l,!0)?1:Math.max(Ce,Ce*e,ve,ve*e),b=(fe,Ce,ve)=>Ku(fe,a,l,!0)?-1:Math.min(Ce,Ce*e,ve,ve*e),E=_(0,c,p),P=_(Qn,u,m),W=b(Vn,c,p),te=b(Vn+Qn,u,m);n=(E-W)/2,o=(P-te)/2,s=-(E+W)/2,r=-(P+te)/2}return{ratioX:n,ratioY:o,offsetX:s,offsetY:r}}(m,p,c),fe=Math.max(Math.min((o.width-a)/_,(o.height-a)/b)/2,0),Ce=Lk(this.options.radius,fe),ke=(Ce-Math.max(Ce*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=E*Ce,this.offsetY=P*Ce,s.total=this.calculateTotal(),this.outerRadius=Ce-ke*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-ke*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const o=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||null===s._parsed[e]||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Cn)}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,l=a.chartArea,p=(l.left+l.right)/2,m=(l.top+l.bottom)/2,_=r&&a.options.animation.animateScale,b=_?0:this.innerRadius,E=_?0:this.outerRadius,{sharedOptions:P,includeOptions:W}=this._getSharedOptions(n,s);let fe,te=this._getRotation();for(fe=0;fe0&&!isNaN(e)?Cn*(Math.abs(e)/n):0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e],o.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const o=this.chart;let s,r,a,l,c;if(!e)for(s=0,r=o.data.datasets.length;s"spacing"!==i,_indexable:i=>"spacing"!==i},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(i){let e=i.label;const n=": "+i.formattedValue;return kn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}},t})(),gre=(()=>{class t extends vs{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:s=[],_dataset:r}=n,a=this.chart._animationsDisabled;let{start:l,count:c}=qk(n,s,a);this._drawStart=l,this._drawCount=c,Wk(n)&&(l=0,c=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=s;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!a,options:u},e),this.updateElements(s,l,c,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,s),_=a.axis,b=l.axis,{spanGaps:E,segment:P}=this.options,W=Gl(E)?E:Number.POSITIVE_INFINITY,te=this.chart._animationsDisabled||r||"none"===s;let fe=n>0&&this.getParsed(n-1);for(let Ce=n;Ce0&&Math.abs(ke[_]-fe[_])>W,P&&(Pe.parsed=ke,Pe.raw=u.data[Ce]),m&&(Pe.options=p||this.resolveDataElementOptions(Ce,ve.active?"active":s)),te||this.updateElement(ve,Ce,Pe,s),fe=ke}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return o;const r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t.id="line",t.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},t.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},t})(),mre=(()=>{class t extends vs{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e].r,o.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((o,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(rn.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,o=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),l=(r-Math.max(o.cutoutPercentage?r/100*o.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,c=a.options.animation,u=this._cachedMeta.rScale,p=u.xCenter,m=u.yCenter,_=u.getIndexAngle(0)-.5*Vn;let E,b=_;const P=360/this.countVisibleElements();for(E=0;E{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,o){return this.chart.getDataVisibility(e)?Yo(this.resolveDataElementOptions(e,n).angle||o):0}}return t.id="polarArea",t.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:i=>i.chart.data.labels[i.dataIndex]+": "+i.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},t})(),_re=(()=>{class t extends $3{}return t.id="pie",t.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},t})(),Ire=(()=>{class t extends vs{getLabelAndValue(e){const n=this._cachedMeta.vScale,o=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta,o=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(o.points=s,"resize"!==e){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0),this.updateElement(o,void 0,{_loop:!0,_fullLoop:r.length===s.length,options:a},e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,o,s){const r=this._cachedMeta.rScale,a="reset"===s;for(let l=n;l{o[s]=n[s]&&n[s].active()?n[s]._to:this[s]}),o}}Xo.defaults={},Xo.defaultRoutes=void 0;const K3={values:t=>kn(t)?t:""+t,numeric(t,i,e){if(0===t)return"0";const n=this.chart.options.locale;let o,s=t;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=function Cre(t,i){let e=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const r=Ro(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ju(t,n,l)},logarithmic(t,i,e){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(Ro(t)));return 1===n||2===n||5===n?K3.numeric.call(this,t,i,e):""}};var Nf={formatters:K3};function Vf(t,i,e,n,o){const s=Nt(n,0),r=Math.min(Nt(o,t.length),t.length);let l,c,u,a=0;for(e=Math.ceil(e),o&&(l=o-n,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);ci.lineWidth,tickColor:(t,i)=>i.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Nf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Qt.route("scale.ticks","color","","color"),Qt.route("scale.grid","color","","borderColor"),Qt.route("scale.grid","borderColor","","borderColor"),Qt.route("scale.title","color","","color"),Qt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Qt.describe("scales",{_fallback:"scale"}),Qt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const G3=(t,i,e)=>"top"===i||"left"===i?t[i]+e:t[i]-e;function q3(t,i){const e=[],n=t.length/i,o=t.length;let s=0;for(;sr+a)))return l}function td(t){return t.drawTicks?t.tickLength:0}function W3(t,i){if(!t.display)return 0;const e=ui(t.font,i),n=Pi(t.padding);return(kn(t.text)?t.text.length:1)*e.lineHeight+n.height}function Mre(t,i,e){let n=LC(t);return(e&&"right"!==i||!e&&"right"===i)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class xa extends Xo{constructor(i){super(),this.id=i.id,this.type=i.type,this.options=void 0,this.ctx=i.ctx,this.chart=i.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(i){this.options=i.setContext(this.getContext()),this.axis=i.axis,this._userMin=this.parse(i.min),this._userMax=this.parse(i.max),this._suggestedMin=this.parse(i.suggestedMin),this._suggestedMax=this.parse(i.suggestedMax)}parse(i,e){return i}getUserBounds(){let{_userMin:i,_userMax:e,_suggestedMin:n,_suggestedMax:o}=this;return i=Po(i,Number.POSITIVE_INFINITY),e=Po(e,Number.NEGATIVE_INFINITY),n=Po(n,Number.POSITIVE_INFINITY),o=Po(o,Number.NEGATIVE_INFINITY),{min:Po(i,n),max:Po(e,o),minDefined:ti(i),maxDefined:ti(e)}}getMinMax(i){let r,{min:e,max:n,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:e,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;ln?n:e,n=o&&e>n?e:n,{min:Po(e,Po(n,e)),max:Po(n,Po(e,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mn(this.options.beforeUpdate,[this])}update(i,e,n){const{beginAtZero:o,grace:s,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function ose(t,i,e){const{min:n,max:o}=t,s=Lk(i,(o-n)/2),r=(a,l)=>e&&0===a?0:a+l;return{min:r(n,-Math.abs(s)),max:r(o,s)}}(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=an)return function Are(t,i,e,n){let r,o=0,s=e[0];for(n=Math.ceil(n),r=0;ro-s).pop(),i}(n);for(let r=0,a=s.length-1;ro)return l}return Math.max(o,1)}(o,i,n);if(s>0){let u,p;const m=s>1?Math.round((a-r)/(s-1)):null;for(Vf(i,l,c,tn(m)?0:r-m,r),u=0,p=s-1;u=s||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const u=this._getLabelSizes(),p=u.widest.width,m=u.highest.height,_=pi(this.chart.width-p,0,this.maxWidth);a=i.offset?this.maxWidth/n:_/(n-1),p+6>a&&(a=_/(n-(i.offset?.5:1)),l=this.maxHeight-td(i.grid)-e.padding-W3(i.title,this.chart.options.font),c=Math.sqrt(p*p+m*m),r=kC(Math.min(Math.asin(pi((u.highest.height+6)/a,-1,1)),Math.asin(pi(l/c,-1,1))-Math.asin(pi(m/c,-1,1)))),r=Math.max(o,Math.min(s,r))),this.labelRotation=r}afterCalculateLabelRotation(){Mn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mn(this.options.beforeFit,[this])}fit(){const i={width:0,height:0},{chart:e,options:{ticks:n,title:o,grid:s}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=W3(o,e.options.font);if(a?(i.width=this.maxWidth,i.height=td(s)+l):(i.height=this.maxHeight,i.width=td(s)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:p,highest:m}=this._getLabelSizes(),_=2*n.padding,b=Yo(this.labelRotation),E=Math.cos(b),P=Math.sin(b);a?i.height=Math.min(this.maxHeight,i.height+(n.mirror?0:P*p.width+E*m.height)+_):i.width=Math.min(this.maxWidth,i.width+(n.mirror?0:E*p.width+P*m.height)+_),this._calculatePadding(c,u,P,E)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,e,n,o){const{ticks:{align:s,padding:r},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,_=0;l?c?(m=o*i.width,_=n*e.height):(m=n*i.height,_=o*e.width):"start"===s?_=e.width:"end"===s?m=i.width:"inner"!==s&&(m=i.width/2,_=e.width/2),this.paddingLeft=Math.max((m-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((_-p+r)*this.width/(this.width-p),0)}else{let u=e.height/2,p=i.height/2;"start"===s?(u=0,p=i.height):"end"===s&&(u=e.height,p=0),this.paddingTop=u+r,this.paddingBottom=p+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mn(this.options.afterFit,[this])}isHorizontal(){const{axis:i,position:e}=this.options;return"top"===e||"bottom"===e||"x"===i}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(i),e=0,n=i.length;e{const n=e.gc,o=n.length/2;let s;if(o>i){for(s=0;s({width:s[Pe]||0,height:r[Pe]||0});return{first:ke(0),last:ke(e-1),widest:ke(Ce),highest:ke(ve),widths:s,heights:r}}getLabelForValue(i){return i}getPixelForValue(i,e){return NaN}getValueForPixel(i){}getPixelForTick(i){const e=this.ticks;return i<0||i>e.length-1?null:this.getPixelForValue(e[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);const e=this._startPixel+i*this._length;return function Coe(t){return pi(t,-32768,32767)}(this._alignToPixels?_a(this.chart,e,0):e)}getDecimalForPixel(i){const e=(i-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:i,max:e}=this;return i<0&&e<0?e:i>0&&e>0?i:0}getContext(i){const e=this.ticks||[];if(i>=0&&ia*o?a/n:l/o:l*o0}_computeGridLineItems(i){const e=this.axis,n=this.chart,o=this.options,{grid:s,position:r}=o,a=s.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),p=td(s),m=[],_=s.setContext(this.getContext()),b=_.drawBorder?_.borderWidth:0,E=b/2,P=function(wt){return _a(n,wt,b)};let W,te,fe,Ce,ve,ke,Pe,$e,Ke,pt,jt,Vt;if("top"===r)W=P(this.bottom),ke=this.bottom-p,$e=W-E,pt=P(i.top)+E,Vt=i.bottom;else if("bottom"===r)W=P(this.top),pt=i.top,Vt=P(i.bottom)-E,ke=W+E,$e=this.top+p;else if("left"===r)W=P(this.right),ve=this.right-p,Pe=W-E,Ke=P(i.left)+E,jt=i.right;else if("right"===r)W=P(this.left),Ke=i.left,jt=P(i.right)-E,ve=W+E,Pe=this.left+p;else if("x"===e){if("center"===r)W=P((i.top+i.bottom)/2+.5);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}pt=i.top,Vt=i.bottom,ke=W+E,$e=ke+p}else if("y"===e){if("center"===r)W=P((i.left+i.right)/2);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}ve=W-E,Pe=ve-p,Ke=i.left,jt=i.right}const vn=Nt(o.ticks.maxTicksLimit,u),hi=Math.max(1,Math.ceil(u/vn));for(te=0;tes.value===i);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(i){const e=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i));let s,r;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(e.display)for(s=0,r=o.length;s{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]:[{z:e,draw:o=>{this.draw(o)}}]}getMatchingVisibleMetas(i){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let s,r;for(s=0,r=e.length;s{const n=e.split("."),o=n.pop(),s=[t].concat(n).join("."),r=i[e].split("."),a=r.pop(),l=r.join(".");Qt.route(s,o,l,a)})}(i,t.defaultRoutes),t.descriptors&&Qt.describe(i,t.descriptors)}(i,r,n),this.override&&Qt.override(i.id,i.overrides)),r}get(i){return this.items[i]}unregister(i){const e=this.items,n=i.id,o=this.scope;n in e&&delete e[n],o&&n in Qt[o]&&(delete Qt[o][n],this.override&&delete ma[n])}}var bs=new class Rre{constructor(){this.controllers=new Bf(vs,"datasets",!0),this.elements=new Bf(Xo,"elements"),this.plugins=new Bf(Object,"plugins"),this.scales=new Bf(xa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,e,n){[...e].forEach(o=>{const s=n||this._getRegistryForType(o);n||s.isForType(o)||s===this.plugins&&o.id?this._exec(i,s,o):_n(o,r=>{const a=n||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,e,n){const o=DC(i);Mn(n["before"+o],[],n),e[i](n),Mn(n["after"+o],[],n)}_getRegistryForType(i){for(let e=0;e{class t extends vs{update(e){const n=this._cachedMeta,{data:o=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:a}=qk(n,o,s);if(this._drawStart=r,this._drawCount=a,Wk(n)&&(r=0,a=o.length),this.options.showLine){const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:u},e)}this.updateElements(o,r,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=bs.getElement("line")),super.addElements()}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,p=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(p),_=this.includeOptions(s,m),b=a.axis,E=l.axis,{spanGaps:P,segment:W}=this.options,te=Gl(P)?P:Number.POSITIVE_INFINITY,fe=this.chart._animationsDisabled||r||"none"===s;let Ce=n>0&&this.getParsed(n-1);for(let ve=n;ve0&&Math.abs(Pe[b]-Ce[b])>te,W&&($e.parsed=Pe,$e.raw=u.data[ve]),_&&($e.options=m||this.resolveDataElementOptions(ve,ke.active?"active":s)),fe||this.updateElement(ke,ve,$e,s),Ce=Pe}this.updateSharedOptions(m,s,p)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,a)/2}}return t.id="scatter",t.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},t.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:i=>"("+i.label+", "+i.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},t})()});function Aa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Vre={_date:(()=>{class t{constructor(e){this.options=e||{}}init(e){}formats(){return Aa()}parse(e,n){return Aa()}format(e,n){return Aa()}add(e,n,o){return Aa()}diff(e,n,o){return Aa()}startOf(e,n,o){return Aa()}endOf(e,n){return Aa()}}return t.override=function(i){Object.assign(t.prototype,i)},t})()};function Bre(t,i,e,n){const{controller:o,data:s,_sorted:r}=t,a=o._cachedMeta.iScale;if(a&&i===a.axis&&"r"!==i&&r&&s.length){const l=a._reversePixels?voe:Js;if(!n)return l(s,i,e);if(o._sharedOptions){const c=s[0],u="function"==typeof c.getRange&&c.getRange(i);if(u){const p=l(s,i,e-u),m=l(s,i,e+u);return{lo:p.lo,hi:m.hi}}}}return{lo:0,hi:s.length-1}}function nd(t,i,e,n,o){const s=t.getSortedVisibleDatasetMetas(),r=e[i];for(let a=0,l=s.length;a{l[r](i[e],o)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(i.x,i.y,o))}),n&&!a?[]:s}var Ure={evaluateInteractionItems:nd,modes:{index(t,i,e,n){const o=ba(i,t),s=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,p=c.data[u];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:u})}),l):[]},dataset(t,i,e,n){const o=ba(i,t),s=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uXC(t,ba(i,t),e.axis||"xy",n,e.includeInvisible||!1),nearest:(t,i,e,n)=>JC(t,ba(i,t),e.axis||"xy",e.intersect,n,e.includeInvisible||!1),x:(t,i,e,n)=>Q3(t,ba(i,t),"x",e.intersect,n),y:(t,i,e,n)=>Q3(t,ba(i,t),"y",e.intersect,n)}};const Z3=["left","top","right","bottom"];function id(t,i){return t.filter(e=>e.pos===i)}function Y3(t,i){return t.filter(e=>-1===Z3.indexOf(e.pos)&&e.box.axis===i)}function od(t,i){return t.sort((e,n)=>{const o=i?n:e,s=i?e:n;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function X3(t,i,e,n){return Math.max(t[e],i[e])+Math.max(t[n],i[n])}function J3(t,i){t.top=Math.max(t.top,i.top),t.left=Math.max(t.left,i.left),t.bottom=Math.max(t.bottom,i.bottom),t.right=Math.max(t.right,i.right)}function Wre(t,i,e,n){const{pos:o,box:s}=e,r=t.maxPadding;if(!qt(o)){e.size&&(t[o]-=e.size);const p=n[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?s.height:s.width),e.size=p.size/p.count,t[o]+=e.size}s.getPadding&&J3(r,s.getPadding());const a=Math.max(0,i.outerWidth-X3(r,t,"left","right")),l=Math.max(0,i.outerHeight-X3(r,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function Zre(t,i){const e=i.maxPadding;return function n(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(r=>{s[r]=Math.max(i[r],e[r])}),s}(t?["left","right"]:["top","bottom"])}function sd(t,i,e,n){const o=[];let s,r,a,l,c,u;for(s=0,r=t.length,c=0;sc.box.fullSize),!0),n=od(id(i,"left"),!0),o=od(id(i,"right")),s=od(id(i,"top"),!0),r=od(id(i,"bottom")),a=Y3(i,"x"),l=Y3(i,"y");return{fullSize:e,leftAndTop:n.concat(s),rightAndBottom:o.concat(l).concat(r).concat(a),chartArea:id(i,"chartArea"),vertical:n.concat(o).concat(l),horizontal:s.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;_n(t.boxes,E=>{"function"==typeof E.beforeLayout&&E.beforeLayout()});const u=l.reduce((E,P)=>P.box.options&&!1===P.box.options.display?E:E+1,0)||1,p=Object.freeze({outerWidth:i,outerHeight:e,padding:o,availableWidth:s,availableHeight:r,vBoxMaxWidth:s/2/u,hBoxMaxHeight:r/2}),m=Object.assign({},o);J3(m,Pi(n));const _=Object.assign({maxPadding:m,w:s,h:r,x:o.left,y:o.top},o),b=function Gre(t,i){const e=function Kre(t){const i={};for(const e of t){const{stack:n,pos:o,stackWeight:s}=e;if(!n||!Z3.includes(o))continue;const r=i[n]||(i[n]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=s}return i}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=i;let s,r,a;for(s=0,r=t.length;s{const P=E.box;Object.assign(P,t.chartArea),P.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class tM{acquireContext(i,e){}releaseContext(i){return!1}addEventListener(i,e,n){}removeEventListener(i,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(i,e,n,o){return e=Math.max(0,e||i.width),n=n||i.height,{width:e,height:Math.max(0,o?Math.floor(e/o):n)}}isAttached(i){return!0}updateConfig(i){}}class Yre extends tM{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}}const zf="$chartjs",Xre={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nM=t=>null===t||""===t,iM=!!Sse&&{passive:!0};function tae(t,i,e){t.canvas.removeEventListener(i,e,iM)}function jf(t,i){for(const e of t)if(e===i||e.contains(i))return!0}function iae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.addedNodes,n),r=r&&!jf(a.removedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function oae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.removedNodes,n),r=r&&!jf(a.addedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}const rd=new Map;let oM=0;function sM(){const t=window.devicePixelRatio;t!==oM&&(oM=t,rd.forEach((i,e)=>{e.currentDevicePixelRatio!==t&&i()}))}function aae(t,i,e){const n=t.canvas,o=n&&qC(n);if(!o)return;const s=Gk((a,l)=>{const c=o.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;0===c&&0===u||s(c,u)});return r.observe(o),function sae(t,i){rd.size||window.addEventListener("resize",sM),rd.set(t,i)}(t,s),r}function ev(t,i,e){e&&e.disconnect(),"resize"===i&&function rae(t){rd.delete(t),rd.size||window.removeEventListener("resize",sM)}(t)}function lae(t,i,e){const n=t.canvas,o=Gk(s=>{null!==t.ctx&&e(function nae(t,i){const e=Xre[t.type]||t.type,{x:n,y:o}=ba(t,i);return{type:e,chart:i,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(s,t))},t,s=>{const r=s[0];return[r,r.offsetX,r.offsetY]});return function eae(t,i,e){t.addEventListener(i,e,iM)}(n,i,o),o}class cae extends tM{acquireContext(i,e){const n=i&&i.getContext&&i.getContext("2d");return n&&n.canvas===i?(function Jre(t,i){const e=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[zf]={initial:{height:n,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",nM(o)){const s=b3(t,"width");void 0!==s&&(t.width=s)}if(nM(n))if(""===t.style.height)t.height=t.width/(i||2);else{const s=b3(t,"height");void 0!==s&&(t.height=s)}}(i,e),n):null}releaseContext(i){const e=i.canvas;if(!e[zf])return!1;const n=e[zf].initial;["height","width"].forEach(s=>{const r=n[s];tn(r)?e.removeAttribute(s):e.setAttribute(s,r)});const o=n.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[zf],!0}addEventListener(i,e,n){this.removeEventListener(i,e),(i.$proxies||(i.$proxies={}))[e]=({attach:iae,detach:oae,resize:aae}[e]||lae)(i,e,n)}removeEventListener(i,e){const n=i.$proxies||(i.$proxies={}),o=n[e];o&&(({attach:ev,detach:ev,resize:ev}[e]||tae)(i,e,o),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,e,n,o){return function Tse(t,i,e,n){const o=Rf(t),s=va(o,"margin"),r=Ff(o.maxWidth,t,"clientWidth")||wf,a=Ff(o.maxHeight,t,"clientHeight")||wf,l=function wse(t,i,e){let n,o;if(void 0===i||void 0===e){const s=qC(t);if(s){const r=s.getBoundingClientRect(),a=Rf(s),l=va(a,"border","width"),c=va(a,"padding");i=r.width-c.width-l.width,e=r.height-c.height-l.height,n=Ff(a.maxWidth,s,"clientWidth"),o=Ff(a.maxHeight,s,"clientHeight")}else i=t.clientWidth,e=t.clientHeight}return{width:i,height:e,maxWidth:n||wf,maxHeight:o||wf}}(t,i,e);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const p=va(o,"border","width"),m=va(o,"padding");c-=m.width+p.width,u-=m.height+p.height}return c=Math.max(0,c-s.width),u=Math.max(0,n?Math.floor(c/n):u-s.height),c=WC(Math.min(c,r,l.maxWidth)),u=WC(Math.min(u,a,l.maxHeight)),c&&!u&&(u=WC(c/2)),{width:c,height:u}}(i,e,n,o)}isAttached(i){const e=qC(i);return!(!e||!e.isConnected)}}class dae{constructor(){this._init=[]}notify(i,e,n,o){"beforeInit"===e&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install"));const s=o?this._descriptors(i).filter(o):this._descriptors(i),r=this._notify(s,i,e,n);return"afterDestroy"===e&&(this._notify(s,i,"stop"),this._notify(this._init,i,"uninstall")),r}_notify(i,e,n,o){o=o||{};for(const s of i){const r=s.plugin;if(!1===Mn(r[n],[e,o,s.options],r)&&o.cancelable)return!1}return!0}invalidate(){tn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),e}_createDescriptors(i,e){const n=i&&i.config,o=Nt(n.options&&n.options.plugins,{}),s=function pae(t){const i={},e=[],n=Object.keys(bs.plugins.items);for(let s=0;ss.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(o(e,n),i,"stop"),this._notify(o(n,e),i,"start")}}function hae(t,i){return i||!1!==t?!0===t?{}:t:null}function gae(t,{plugin:i,local:e},n,o){const s=t.pluginScopeKeys(i),r=t.getOptionScopes(n,s);return e&&i.defaults&&r.push(i.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function tv(t,i){return((i.datasets||{})[t]||{}).indexAxis||i.indexAxis||(Qt.datasets[t]||{}).indexAxis||"x"}function nv(t,i){return"x"===t||"y"===t?t:i.axis||function Iae(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(i.position)||t.charAt(0).toLowerCase()}function rM(t){const i=t.options||(t.options={});i.plugins=Nt(i.plugins,{}),i.scales=function Cae(t,i){const e=ma[t.type]||{scales:{}},n=i.scales||{},o=tv(t.type,i),s=Object.create(null),r=Object.create(null);return Object.keys(n).forEach(a=>{const l=n[a];if(!qt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=nv(a,l),u=function _ae(t,i){return t===i?"_index_":"_value_"}(c,o),p=e.scales||{};s[c]=s[c]||a,r[a]=ju(Object.create(null),[{axis:c},l,p[c],p[u]])}),t.data.datasets.forEach(a=>{const l=a.type||t.type,c=a.indexAxis||tv(l,i),p=(ma[l]||{}).scales||{};Object.keys(p).forEach(m=>{const _=function mae(t,i){let e=t;return"_index_"===t?e=i:"_value_"===t&&(e="x"===i?"y":"x"),e}(m,c),b=a[_+"AxisID"]||s[_]||_;r[b]=r[b]||Object.create(null),ju(r[b],[{axis:_},n[b],p[m]])})}),Object.keys(r).forEach(a=>{const l=r[a];ju(l,[Qt.scales[l.type],Qt.scale])}),r}(t,i)}function aM(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lM=new Map,cM=new Set;function Uf(t,i){let e=lM.get(t);return e||(e=i(),lM.set(t,e),cM.add(e)),e}const ad=(t,i,e)=>{const n=Pr(i,e);void 0!==n&&t.add(n)};class bae{constructor(i){this._config=function vae(t){return(t=t||{}).data=aM(t.data),rM(t),t}(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=aM(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){const i=this._config;this.clearCache(),rM(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Uf(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,e){return Uf(`${i}.transition.${e}`,()=>[[`datasets.${i}.transitions.${e}`,`transitions.${e}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,e){return Uf(`${i}-${e}`,()=>[[`datasets.${i}.elements.${e}`,`datasets.${i}`,`elements.${e}`,""]])}pluginScopeKeys(i){const e=i.id;return Uf(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,e){const n=this._scopeCache;let o=n.get(i);return(!o||e)&&(o=new Map,n.set(i,o)),o}getOptionScopes(i,e,n){const{options:o,type:s}=this,r=this._cachedScopes(i,n),a=r.get(e);if(a)return a;const l=new Set;e.forEach(u=>{i&&(l.add(i),u.forEach(p=>ad(l,i,p))),u.forEach(p=>ad(l,o,p)),u.forEach(p=>ad(l,ma[s]||{},p)),u.forEach(p=>ad(l,Qt,p)),u.forEach(p=>ad(l,HC,p))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),cM.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:i,type:e}=this;return[i,ma[e]||{},Qt.datasets[e]||{},{type:e},Qt,HC]}resolveNamedOptions(i,e,n,o=[""]){const s={$shared:!0},{resolver:r,subPrefixes:a}=uM(this._resolverCache,i,o);let l=r;(function xae(t,i){const{isScriptable:e,isIndexable:n}=d3(t);for(const o of i){const s=e(o),r=n(o),a=(r||s)&&t[o];if(s&&(Fr(a)||yae(a))||r&&kn(a))return!0}return!1})(r,e)&&(s.$shared=!1,l=Wl(r,n=Fr(n)?n():n,this.createResolver(i,n,a)));for(const c of e)s[c]=l[c];return s}createResolver(i,e,n=[""],o){const{resolver:s}=uM(this._resolverCache,i,n);return qt(e)?Wl(s,e,void 0,o):s}}function uM(t,i,e){let n=t.get(i);n||(n=new Map,t.set(i,n));const o=e.join();let s=n.get(o);return s||(s={resolver:$C(i,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,s)),s}const yae=t=>qt(t)&&Object.getOwnPropertyNames(t).reduce((i,e)=>i||Fr(t[e]),!1),wae=["top","bottom","left","right","chartArea"];function dM(t,i){return"top"===t||"bottom"===t||-1===wae.indexOf(t)&&"x"===i}function pM(t,i){return function(e,n){return e[t]===n[t]?e[i]-n[i]:e[t]-n[t]}}function hM(t){const i=t.chart,e=i.options.animation;i.notifyPlugins("afterRender"),Mn(e&&e.onComplete,[t],i)}function Tae(t){const i=t.chart,e=i.options.animation;Mn(e&&e.onProgress,[t],i)}function fM(t){return C3()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const $f={},gM=t=>{const i=fM(t);return Object.values($f).filter(e=>e.canvas===i).pop()};function Sae(t,i,e){const n=Object.keys(t);for(const o of n){const s=+o;if(s>=i){const r=t[o];delete t[o],(e>0||s>i)&&(t[s+e]=r)}}}class iv{constructor(i,e){const n=this.config=new bae(e),o=fM(i),s=gM(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function uae(t){return!C3()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Yre:cae}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=aoe(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function xoe(t,i){let e;return function(...n){return i?(clearTimeout(e),e=setTimeout(t,i,n)):t.apply(this,n),i}}(p=>this.update(p),r.resizeDelay||0),this._dataChanges=[],$f[this.id]=this,a&&l?(tr.listen(this,"complete",hM),tr.listen(this,"progress",Tae),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:i,maintainAspectRatio:e},width:n,height:o,_aspectRatio:s}=this;return tn(i)?e&&s?s:o?n/o:null:i}get data(){return this.config.data}set data(i){this.config.data=i}get options(){return this._options}set options(i){this.config.options=i}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():v3(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return l3(this.canvas,this.ctx),this}stop(){return tr.stop(this),this}resize(i,e){tr.running(this)?this._resizeBeforeDraw={width:i,height:e}:this._resize(i,e)}_resize(i,e){const n=this.options,r=this.platform.getMaximumSize(this.canvas,i,e,n.maintainAspectRatio&&this.aspectRatio),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,v3(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Mn(n.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){_n(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const i=this.options,e=i.scales,n=this.scales,o=Object.keys(n).reduce((r,a)=>(r[a]=!1,r),{});let s=[];e&&(s=s.concat(Object.keys(e).map(r=>{const a=e[r],l=nv(r,a),c="r"===l,u="x"===l;return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),_n(s,r=>{const a=r.options,l=a.id,c=nv(l,a),u=Nt(a.type,r.dtype);(void 0===a.position||dM(a.position,c)!==dM(r.dposition))&&(a.position=r.dposition),o[l]=!0;let p=null;l in n&&n[l].type===u?p=n[l]:(p=new(bs.getScale(u))({id:l,type:u,ctx:this.ctx,chart:this}),n[p.id]=p),p.init(a,i)}),_n(o,(r,a)=>{r||delete n[a]}),_n(n,r=>{Fi.configure(this,r,r.options),Fi.addBox(this,r)})}_updateMetasets(){const i=this._metasets,e=this.data.datasets.length,n=i.length;if(i.sort((o,s)=>o.index-s.index),n>e){for(let o=e;oe.length&&delete this._stacks,i.forEach((n,o)=>{0===e.filter(s=>s===n._dataset).length&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const i=[],e=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=e.length;n{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(i){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:i,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(i),this.notifyPlugins("afterUpdate",{mode:i}),this._layers.sort(pM("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_n(this.scales,i=>{Fi.removeBox(this,i)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const i=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(i.events);(!Rk(e,n)||!!this._responsiveListeners!==i.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:i}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:s}of e)Sae(i,o,"_removeElements"===n?-s:s)}_getUniformDataChanges(){const i=this._dataChanges;if(!i||!i.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=s=>new Set(i.filter(r=>r[0]===s).map((r,a)=>a+","+r.splice(1).join(","))),o=n(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(i){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Fi.update(this,this.width,this.height,i);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],_n(this.boxes,o=>{n&&"chartArea"===o.position||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(i){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:i,cancelable:!0})){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(i[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(i){const e=this.ctx,n=i._clip,o=!n.disabled,s=this.chartArea,r={meta:i,index:i.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(o&&Of(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),i.controller.draw(),o&&Lf(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(i){return Zu(i,this.chartArea,this._minPadding)}getElementsAtEventForMode(i,e,n,o){const s=Ure.modes[e];return"function"==typeof s?s(this,i,n,o):[]}getDatasetMeta(i){const e=this.data.datasets[i],n=this._metasets;let o=n.filter(s=>s&&s._dataset===e).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:i,_dataset:e,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(i){const e=this.data.datasets[i];if(!e)return!1;const n=this.getDatasetMeta(i);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(i,e){this.getDatasetMeta(i).hidden=!e}toggleDataVisibility(i){this._hiddenIndices[i]=!this._hiddenIndices[i]}getDataVisibility(i){return!this._hiddenIndices[i]}_updateVisibility(i,e,n){const o=n?"show":"hide",s=this.getDatasetMeta(i),r=s.controller._resolveAnimations(void 0,o);Fo(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(i,n),r.update(s,{visible:n}),this.update(a=>a.datasetIndex===i?o:void 0))}hide(i,e){this._updateVisibility(i,e,!1)}show(i,e){this._updateVisibility(i,e,!0)}_destroyDatasetMeta(i){const e=this._metasets[i];e&&e.controller&&e.controller._destroy(),delete this._metasets[i]}_stop(){let i,e;for(this.stop(),tr.remove(this),i=0,e=this.data.datasets.length;i{e.addEventListener(this,s,r),i[s]=r},o=(s,r,a)=>{s.offsetX=r,s.offsetY=a,this._eventHandler(s)};_n(this.options.events,s=>n(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const i=this._responsiveListeners,e=this.platform,n=(l,c)=>{e.addEventListener(this,l,c),i[l]=c},o=(l,c)=>{i[l]&&(e.removeEventListener(this,l,c),delete i[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",s),n("detach",r)};r=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){_n(this._listeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._listeners={},_n(this._responsiveListeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._responsiveListeners=void 0}updateHoverStyle(i,e,n){const o=n?"set":"remove";let s,r,a,l;for("dataset"===e&&(s=this.getDatasetMeta(i[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=i.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[r],index:r}});!xf(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(i,e,n){return this._plugins.notify(this,i,e,n)}_updateHoverStyles(i,e,n){const o=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),r=s(e,i),a=n?i:s(i,e);r.length&&this.updateHoverStyle(r,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(i,e){const n={event:i,replay:e,cancelable:!0,inChartArea:this.isPointInArea(i)},o=r=>(r.options.events||this.options.events).includes(i.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const s=this._handleEvent(i,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(s||n.changed)&&this.render(),this}_handleEvent(i,e,n){const{_active:o=[],options:s}=this,a=this._getActiveElements(i,o,n,e),l=function hoe(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(i),c=function Eae(t,i,e,n){return e&&"mouseout"!==t.type?n?i:t:null}(i,this._lastEvent,n,l);n&&(this._lastEvent=null,Mn(s.onHover,[i,a,this],this),l&&Mn(s.onClick,[i,a,this],this));const u=!xf(a,o);return(u||e)&&(this._active=a,this._updateHoverStyles(a,o,e)),this._lastEvent=c,u}_getActiveElements(i,e,n,o){if("mouseout"===i.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(i,s.mode,s,o)}}const mM=()=>_n(iv.instances,t=>t._plugins.invalidate()),Br=!0;function _M(t,i,e){const{startAngle:n,pixelMargin:o,x:s,y:r,outerRadius:a,innerRadius:l}=i;let c=o/a;t.beginPath(),t.arc(s,r,a,n-c,e+c),l>o?(c=o/l,t.arc(s,r,l,e+c,n-c,!0)):t.arc(s,r,o,e+Qn,n-Qn),t.closePath(),t.clip()}function Yl(t,i,e,n){return{x:e+t*Math.cos(i),y:n+t*Math.sin(i)}}function ov(t,i,e,n,o,s){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=i,p=Math.max(i.outerRadius+n+e-c,0),m=u>0?u+n+e+c:0;let _=0;const b=o-l;if(n){const tt=((u>0?u-n:0)+(p>0?p-n:0))/2;_=(b-(0!==tt?b*tt/(tt+n):b))/2}const P=(b-Math.max(.001,b*p-e/Vn)/p)/2,W=l+P+_,te=o-P-_,{outerStart:fe,outerEnd:Ce,innerStart:ve,innerEnd:ke}=function kae(t,i,e,n){const o=function Dae(t){return UC(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),s=(e-i)/2,r=Math.min(s,n*i/2),a=l=>{const c=(e-Math.min(s,l))*n/2;return pi(l,0,Math.min(s,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:pi(o.innerStart,0,r),innerEnd:pi(o.innerEnd,0,r)}}(i,m,p,te-W),Pe=p-fe,$e=p-Ce,Ke=W+fe/Pe,pt=te-Ce/$e,jt=m+ve,Vt=m+ke,vn=W+ve/jt,hi=te-ke/Vt;if(t.beginPath(),s){if(t.arc(r,a,p,Ke,pt),Ce>0){const tt=Yl($e,pt,r,a);t.arc(tt.x,tt.y,Ce,pt,te+Qn)}const wt=Yl(Vt,te,r,a);if(t.lineTo(wt.x,wt.y),ke>0){const tt=Yl(Vt,hi,r,a);t.arc(tt.x,tt.y,ke,te+Qn,hi+Math.PI)}if(t.arc(r,a,m,te-ke/m,W+ve/m,!0),ve>0){const tt=Yl(jt,vn,r,a);t.arc(tt.x,tt.y,ve,vn+Math.PI,W-Qn)}const We=Yl(Pe,W,r,a);if(t.lineTo(We.x,We.y),fe>0){const tt=Yl(Pe,Ke,r,a);t.arc(tt.x,tt.y,fe,W-Qn,Ke)}}else{t.moveTo(r,a);const wt=Math.cos(Ke)*p+r,We=Math.sin(Ke)*p+a;t.lineTo(wt,We);const tt=Math.cos(pt)*p+r,ct=Math.sin(pt)*p+a;t.lineTo(tt,ct)}t.closePath()}Object.defineProperties(iv,{defaults:{enumerable:Br,value:Qt},instances:{enumerable:Br,value:$f},overrides:{enumerable:Br,value:ma},registry:{enumerable:Br,value:bs},version:{enumerable:Br,value:"3.9.1"},getChart:{enumerable:Br,value:gM},register:{enumerable:Br,value:(...t)=>{bs.add(...t),mM()}},unregister:{enumerable:Br,value:(...t)=>{bs.remove(...t),mM()}}});class Kf extends Xo{constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,e,n){const o=this.getProps(["x","y"],n),{angle:s,distance:r}=zk(o,{x:i,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),m=this.options.spacing/2,b=Nt(p,l-a)>=Cn||Ku(s,a,l),E=Xs(r,c+m,u+m);return b&&E}getCenterPoint(i){const{x:e,y:n,startAngle:o,endAngle:s,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],i),{offset:l,spacing:c}=this.options,u=(o+s)/2,p=(r+a+c+l)/2;return{x:e+Math.cos(u)*p,y:n+Math.sin(u)*p}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:e,circumference:n}=this,o=(e.offset||0)/2,s=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Cn?Math.floor(n/Cn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=0;if(o){a=o/2;const c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=Vn&&(a=o)}i.fillStyle=e.backgroundColor,i.strokeStyle=e.borderColor;const l=function Mae(t,i,e,n,o){const{fullCircles:s,startAngle:r,circumference:a}=i;let l=i.endAngle;if(s){ov(t,i,e,n,r+Cn,o);for(let c=0;ca&&s>a)?n+c-l:c-l}}function Rae(t,i,e,n){const{points:o,options:s}=i,{count:r,start:a,loop:l,ilen:c}=CM(o,e,n),u=function Fae(t){return t.stepped?Zoe:t.tension||"monotone"===t.cubicInterpolationMode?Yoe:Pae}(s);let _,b,E,{move:p=!0,reverse:m}=n||{};for(_=0;_<=c;++_)b=o[(a+(m?c-_:_))%r],!b.skip&&(p?(t.moveTo(b.x,b.y),p=!1):u(t,E,b,m,s.stepped),E=b);return l&&(b=o[(a+(m?c:0))%r],u(t,E,b,m,s.stepped)),!!l}function Nae(t,i,e,n){const o=i.points,{count:s,start:r,ilen:a}=CM(o,e,n),{move:l=!0,reverse:c}=n||{};let m,_,b,E,P,W,u=0,p=0;const te=Ce=>(r+(c?a-Ce:Ce))%s,fe=()=>{E!==P&&(t.lineTo(u,P),t.lineTo(u,E),t.lineTo(u,W))};for(l&&(_=o[te(0)],t.moveTo(_.x,_.y)),m=0;m<=a;++m){if(_=o[te(m)],_.skip)continue;const Ce=_.x,ve=_.y,ke=0|Ce;ke===b?(veP&&(P=ve),u=(p*u+Ce)/++p):(fe(),t.lineTo(Ce,ve),b=ke,p=0,E=P=ve),W=ve}fe()}function sv(t){const i=t.options;return t._decimated||t._loop||i.tension||"monotone"===i.cubicInterpolationMode||i.stepped||i.borderDash&&i.borderDash.length?Rae:Nae}Kf.id="arc",Kf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Kf.defaultRoutes={backgroundColor:"backgroundColor"};const zae="function"==typeof Path2D;let Gf=(()=>{class t extends Xo{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;!o.tension&&"monotone"!==o.cubicInterpolationMode||o.stepped||this._pointsUpdated||(vse(this._points,o,e,o.spanGaps?this._loop:this._fullLoop,n),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Rse(t,i){const e=t.points,n=t.options.spanGaps,o=e.length;if(!o)return[];const s=!!t._loop,{start:r,end:a}=function Pse(t,i,e,n){let o=0,s=i-1;if(e&&!n)for(;oo&&t[s%i].skip;)s--;return s%=i,{start:o,end:s}}(e,o,s,n);return function D3(t,i,e,n){return n&&n.setContext&&e?function Nse(t,i,e,n){const o=t._chart.getContext(),s=k3(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=e.length,c=[];let u=s,p=i[0].start,m=p;function _(b,E,P,W){const te=a?-1:1;if(b!==E){for(b+=l;e[b%l].skip;)b-=te;for(;e[E%l].skip;)E+=te;b%l!=E%l&&(c.push({start:b%l,end:E%l,loop:P,style:W}),u=W,p=E%l)}}for(const b of i){p=a?p:b.start;let P,E=e[p%l];for(m=p+1;m<=b.end;m++){const W=e[m%l];P=k3(n.setContext(Vr(o,{type:"segment",p0:E,p1:W,p0DataIndex:(m-1)%l,p1DataIndex:m%l,datasetIndex:r}))),Vse(P,u)&&_(p,m-1,b.loop,u),E=W,u=P}p"borderDash"!==i&&"fill"!==i},t})();function vM(t,i,e,n){const o=t.options,{[e]:s}=t.getProps([e],n);return Math.abs(i-s){class t extends Xo{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,o){const s=this.options,{x:r,y:a}=this.getProps(["x","y"],o);return Math.pow(e-r,2)+Math.pow(n-a,2){yM(i)})}var Jae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,i,e)=>{if(!e.enabled)return void xM(t);const n=t.width;t.data.datasets.forEach((o,s)=>{const{_data:r,indexAxis:a}=o,l=t.getDatasetMeta(s),c=r||o.data;if("y"===Xu([a,t.options.indexAxis])||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type||t.options.parsing)return;let b,{start:p,count:m}=function Xae(t,i){const e=i.length;let o,n=0;const{iScale:s}=t,{min:r,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(n=pi(Js(i,s.axis,r).lo,0,e-1)),o=c?pi(Js(i,s.axis,a).hi+1,n,e)-n:e-n,{start:n,count:o}}(l,c);if(m<=(e.threshold||4*n))yM(o);else{switch(tn(r)&&(o._data=c,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(E){this._data=E}})),e.algorithm){case"lttb":b=function Zae(t,i,e,n,o){const s=o.samples||n;if(s>=e)return t.slice(i,i+e);const r=[],a=(e-2)/(s-2);let l=0;const c=i+e-1;let p,m,_,b,E,u=i;for(r[l++]=t[u],p=0;p_&&(_=b,m=t[te],E=te);r[l++]=m,u=E}return r[l++]=t[c],r}(c,p,m,n,e);break;case"min-max":b=function Yae(t,i,e,n){let r,a,l,c,u,p,m,_,b,E,o=0,s=0;const P=[],te=t[i].x,Ce=t[i+e-1].x-te;for(r=i;rE&&(E=c,m=r),o=(s*o+a.x)/++s;else{const ke=r-1;if(!tn(p)&&!tn(m)){const Pe=Math.min(p,m),$e=Math.max(p,m);Pe!==_&&Pe!==ke&&P.push({...t[Pe],x:o}),$e!==_&&$e!==ke&&P.push({...t[$e],x:o})}r>0&&ke!==_&&P.push(t[ke]),P.push(a),u=ve,s=0,b=E=c,p=m=_=r}}return P}(c,p,m,n);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=b}})},destroy(t){xM(t)}};function lv(t,i,e,n){if(n)return;let o=i[t],s=e[t];return"angle"===t&&(o=vo(o),s=vo(s)),{property:t,start:o,end:s}}function cv(t,i,e){for(;i>t;i--){const n=e[i];if(!isNaN(n.x)&&!isNaN(n.y))break}return i}function AM(t,i,e,n){return t&&i?n(t[e],i[e]):t?t[e]:i?i[e]:0}function wM(t,i){let e=[],n=!1;return kn(t)?(n=!0,e=t):e=function tle(t,i){const{x:e=null,y:n=null}=t||{},o=i.points,s=[];return i.segments.forEach(({start:r,end:a})=>{a=cv(r,a,o);const l=o[r],c=o[a];null!==n?(s.push({x:l.x,y:n}),s.push({x:c.x,y:n})):null!==e&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}(t,i),e.length?new Gf({points:e,options:{tension:0},_loop:n,_fullLoop:n}):null}function TM(t){return t&&!1!==t.fill}function nle(t,i,e){let o=t[i].fill;const s=[i];let r;if(!e)return o;for(;!1!==o&&-1===s.indexOf(o);){if(!ti(o))return o;if(r=t[o],!r)return!1;if(r.visible)return o;s.push(o),o=r.fill}return!1}function ile(t,i,e){const n=function ale(t){const i=t.options,e=i.fill;let n=Nt(e&&e.target,e);return void 0===n&&(n=!!i.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(qt(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return ti(o)&&Math.floor(o)===o?function ole(t,i,e,n){return("-"===t||"+"===t)&&(e=i+e),!(e===i||e<0||e>=n)&&e}(n[0],i,o,e):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function ule(t,i,e){const n=[];for(let o=0;o=0;--r){const a=o[r].$filler;a&&(a.line.updateControlPoints(s,a.axis),n&&a.fill&&uv(t.ctx,a,s))}},beforeDatasetsDraw(t,i,e){if("beforeDatasetsDraw"!==e.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const s=n[o].$filler;TM(s)&&uv(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,i,e){const n=i.meta.$filler;!TM(n)||"beforeDatasetDraw"!==e.drawTime||uv(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const MM=(t,i)=>{let{boxHeight:e=i,boxWidth:n=i}=t;return t.usePointStyle&&(e=Math.min(e,i),n=t.pointStyleWidth||Math.min(n,i)),{boxWidth:n,boxHeight:e,itemHeight:Math.max(i,e)}};class OM extends Xo{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e,n){this.maxWidth=i,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const i=this.options.labels||{};let e=Mn(i.generateLabels,[this.chart],this)||[];i.filter&&(e=e.filter(n=>i.filter(n,this.chart.data))),i.sort&&(e=e.sort((n,o)=>i.sort(n,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:i,ctx:e}=this;if(!i.display)return void(this.width=this.height=0);const n=i.labels,o=ui(n.font),s=o.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=MM(n,s);let c,u;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(u,i.maxHeight||this.maxHeight)}_fitRows(i,e,n,o){const{ctx:s,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let p=i;s.textAlign="left",s.textBaseline="middle";let m=-1,_=-u;return this.legendItems.forEach((b,E)=>{const P=n+e/2+s.measureText(b.text).width;(0===E||c[c.length-1]+P+2*a>r)&&(p+=u,c[c.length-(E>0?0:1)]=0,_+=u,m++),l[E]={left:0,top:_,row:m,width:P,height:o},c[c.length-1]+=P+a}),p}_fitCols(i,e,n,o){const{ctx:s,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-i;let p=a,m=0,_=0,b=0,E=0;return this.legendItems.forEach((P,W)=>{const te=n+e/2+s.measureText(P.text).width;W>0&&_+o+2*a>u&&(p+=m+a,c.push({width:m,height:_}),b+=m+a,E++,m=_=0),l[W]={left:b,top:_,col:E,width:te,height:o},m=Math.max(m,te),_+=o+a}),p+=m,c.push({width:m,height:_}),p}adjustHitBoxes(){if(!this.options.display)return;const i=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:o},rtl:s}}=this,r=Zl(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Li(n,this.left+o,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=Li(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+i+o,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+o}else{let a=0,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const i=this.ctx;Of(i,this),this._draw(),Lf(i)}}_draw(){const{options:i,columnSizes:e,lineWidths:n,ctx:o}=this,{align:s,labels:r}=i,a=Qt.color,l=Zl(i.rtl,this.left,this.width),c=ui(r.font),{color:u,padding:p}=r,m=c.size,_=m/2;let b;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:E,boxHeight:P,itemHeight:W}=MM(r,m),Ce=this.isHorizontal(),ve=this._computeTitleHeight();b=Ce?{x:Li(s,this.left+p,this.right-n[0]),y:this.top+p+ve,line:0}:{x:this.left+p,y:Li(s,this.top+ve+p,this.bottom-e[0].height),line:0},x3(this.ctx,i.textDirection);const ke=W+p;this.legendItems.forEach((Pe,$e)=>{o.strokeStyle=Pe.fontColor||u,o.fillStyle=Pe.fontColor||u;const Ke=o.measureText(Pe.text).width,pt=l.textAlign(Pe.textAlign||(Pe.textAlign=r.textAlign)),jt=E+_+Ke;let Vt=b.x,vn=b.y;l.setWidth(this.width),Ce?$e>0&&Vt+jt+p>this.right&&(vn=b.y+=ke,b.line++,Vt=b.x=Li(s,this.left+p,this.right-n[b.line])):$e>0&&vn+ke>this.bottom&&(Vt=b.x=Vt+e[b.line].width+p,b.line++,vn=b.y=Li(s,this.top+ve+p,this.bottom-e[b.line].height)),function(Pe,$e,Ke){if(isNaN(E)||E<=0||isNaN(P)||P<0)return;o.save();const pt=Nt(Ke.lineWidth,1);if(o.fillStyle=Nt(Ke.fillStyle,a),o.lineCap=Nt(Ke.lineCap,"butt"),o.lineDashOffset=Nt(Ke.lineDashOffset,0),o.lineJoin=Nt(Ke.lineJoin,"miter"),o.lineWidth=pt,o.strokeStyle=Nt(Ke.strokeStyle,a),o.setLineDash(Nt(Ke.lineDash,[])),r.usePointStyle){const jt={radius:P*Math.SQRT2/2,pointStyle:Ke.pointStyle,rotation:Ke.rotation,borderWidth:pt},Vt=l.xPlus(Pe,E/2);c3(o,jt,Vt,$e+_,r.pointStyleWidth&&E)}else{const jt=$e+Math.max((m-P)/2,0),Vt=l.leftForLtr(Pe,E),vn=Ca(Ke.borderRadius);o.beginPath(),Object.values(vn).some(hi=>0!==hi)?Yu(o,{x:Vt,y:jt,w:E,h:P,radius:vn}):o.rect(Vt,jt,E,P),o.fill(),0!==pt&&o.stroke()}o.restore()}(l.x(Vt),vn,Pe),Vt=((t,i,e,n)=>t===(n?"left":"right")?e:"center"===t?(i+e)/2:i)(pt,Vt+E+_,Ce?Vt+jt:this.right,i.rtl),function(Pe,$e,Ke){Ia(o,Ke.text,Pe,$e+W/2,c,{strikethrough:Ke.hidden,textAlign:l.textAlign(Ke.textAlign)})}(l.x(Vt),vn,Pe),Ce?b.x+=jt+p:b.y+=ke}),A3(this.ctx,i.textDirection)}drawTitle(){const i=this.options,e=i.title,n=ui(e.font),o=Pi(e.padding);if(!e.display)return;const s=Zl(i.rtl,this.left,this.width),r=this.ctx,a=e.position,c=o.top+n.size/2;let u,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),u=this.top+c,p=Li(i.align,p,this.right-m);else{const b=this.columnSizes.reduce((E,P)=>Math.max(E,P.height),0);u=c+Li(i.align,this.top,this.bottom-b-i.labels.padding-this._computeTitleHeight())}const _=Li(a,p,p+m);r.textAlign=s.textAlign(LC(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,Ia(r,e.text,_,u,n)}_computeTitleHeight(){const i=this.options.title,e=ui(i.font),n=Pi(i.padding);return i.display?e.lineHeight+n.height:0}_getLegendItemAt(i,e){let n,o,s;if(Xs(i,this.left,this.right)&&Xs(e,this.top,this.bottom))for(s=this.legendHitBoxes,n=0;nnull!==t&&null!==i&&t.datasetIndex===i.datasetIndex&&t.index===i.index)(o,n);o&&!s&&Mn(e.onLeave,[i,o,this],this),this._hoveredItem=n,n&&!s&&Mn(e.onHover,[i,n,this],this)}else n&&Mn(e.onClick,[i,n,this],this)}}var yle={id:"legend",_element:OM,start(t,i,e){const n=t.legend=new OM({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n)},stop(t){Fi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,i,e){const n=t.legend;Fi.configure(t,n,e),n.options=e},afterUpdate(t){const i=t.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(t,i){i.replay||t.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,i,e){const n=i.datasetIndex,o=e.chart;o.isDatasetVisible(n)?(o.hide(n),i.hidden=!0):(o.show(n),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const i=t.data.datasets,{labels:{usePointStyle:e,pointStyle:n,textAlign:o,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map(r=>{const a=r.controller.getStyle(e?0:void 0),l=Pi(a.borderWidth);return{text:i[r.index].label,fillStyle:a.backgroundColor,fontColor:s,hidden:!r.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:n||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:r.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dv extends Xo{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=i,this.height=this.bottom=e;const o=kn(n.text)?n.text.length:1;this._padding=Pi(n.padding);const s=o*ui(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const i=this.options.position;return"top"===i||"bottom"===i}_drawArgs(i){const{top:e,left:n,bottom:o,right:s,options:r}=this,a=r.align;let c,u,p,l=0;return this.isHorizontal()?(u=Li(a,n,s),p=e+i,c=s-n):("left"===r.position?(u=n+i,p=Li(a,o,e),l=-.5*Vn):(u=s-i,p=Li(a,e,o),l=.5*Vn),c=o-e),{titleX:u,titleY:p,maxWidth:c,rotation:l}}draw(){const i=this.ctx,e=this.options;if(!e.display)return;const n=ui(e.font),s=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Ia(i,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:c,textAlign:LC(e.align),textBaseline:"middle",translation:[r,a]})}}var Ale={id:"title",_element:dv,start(t,i,e){!function xle(t,i){const e=new dv({ctx:t.ctx,options:i,chart:t});Fi.configure(t,e,i),Fi.addBox(t,e),t.titleBlock=e}(t,e)},stop(t){Fi.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,i,e){const n=t.titleBlock;Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Wf=new WeakMap;var wle={id:"subtitle",start(t,i,e){const n=new dv({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n),Wf.set(t,n)},stop(t){Fi.removeBox(t,Wf.get(t)),Wf.delete(t)},beforeUpdate(t,i,e){const n=Wf.get(t);Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ld={average(t){if(!t.length)return!1;let i,e,n=0,o=0,s=0;for(i=0,e=t.length;i-1?t.split("\n"):t}function Tle(t,i){const{element:e,datasetIndex:n,index:o}=i,s=t.getDatasetMeta(n).controller,{label:r,value:a}=s.getLabelAndValue(o);return{chart:t,label:r,parsed:s.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:s.getDataset(),dataIndex:o,datasetIndex:n,element:e}}function LM(t,i){const e=t.chart.ctx,{body:n,footer:o,title:s}=t,{boxWidth:r,boxHeight:a}=i,l=ui(i.bodyFont),c=ui(i.titleFont),u=ui(i.footerFont),p=s.length,m=o.length,_=n.length,b=Pi(i.padding);let E=b.height,P=0,W=n.reduce((Ce,ve)=>Ce+ve.before.length+ve.lines.length+ve.after.length,0);W+=t.beforeBody.length+t.afterBody.length,p&&(E+=p*c.lineHeight+(p-1)*i.titleSpacing+i.titleMarginBottom),W&&(E+=_*(i.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(W-_)*l.lineHeight+(W-1)*i.bodySpacing),m&&(E+=i.footerMarginTop+m*u.lineHeight+(m-1)*i.footerSpacing);let te=0;const fe=function(Ce){P=Math.max(P,e.measureText(Ce).width+te)};return e.save(),e.font=c.string,_n(t.title,fe),e.font=l.string,_n(t.beforeBody.concat(t.afterBody),fe),te=i.displayColors?r+2+i.boxPadding:0,_n(n,Ce=>{_n(Ce.before,fe),_n(Ce.lines,fe),_n(Ce.after,fe)}),te=0,e.font=u.string,_n(t.footer,fe),e.restore(),P+=b.width,{width:P,height:E}}function Dle(t,i,e,n){const{x:o,width:s}=e,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=o<=(a+l)/2?"left":"right":o<=s/2?c="left":o>=r-s/2&&(c="right"),function Ele(t,i,e,n){const{x:o,width:s}=n,r=e.caretSize+e.caretPadding;if("left"===t&&o+s+r>i.width||"right"===t&&o-s-r<0)return!0}(c,t,i,e)&&(c="center"),c}function PM(t,i,e){const n=e.yAlign||i.yAlign||function Sle(t,i){const{y:e,height:n}=i;return et.height-n/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||i.xAlign||Dle(t,i,e,n),yAlign:n}}function FM(t,i,e,n){const{caretSize:o,caretPadding:s,cornerRadius:r}=t,{xAlign:a,yAlign:l}=e,c=o+s,{topLeft:u,topRight:p,bottomLeft:m,bottomRight:_}=Ca(r);let b=function kle(t,i){let{x:e,width:n}=t;return"right"===i?e-=n:"center"===i&&(e-=n/2),e}(i,a);const E=function Mle(t,i,e){let{y:n,height:o}=t;return"top"===i?n+=e:n-="bottom"===i?o+e:o/2,n}(i,l,c);return"center"===l?"left"===a?b+=c:"right"===a&&(b-=c):"left"===a?b-=Math.max(u,m)+o:"right"===a&&(b+=Math.max(p,_)+o),{x:pi(b,0,n.width-i.width),y:pi(E,0,n.height-i.height)}}function Qf(t,i,e){const n=Pi(e.padding);return"center"===i?t.x+t.width/2:"right"===i?t.x+t.width-n.right:t.x+n.left}function RM(t){return ys([],nr(t))}function NM(t,i){const e=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return e?t.override(e):t}let VM=(()=>{class t extends Xo{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&n.options.animation&&o.animations,r=new O3(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=function Ole(t,i,e){return Vr(t,{tooltip:i,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,s=o.beforeTitle.apply(this,[e]),r=o.title.apply(this,[e]),a=o.afterTitle.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}getBeforeBody(e,n){return RM(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:o}=n,s=[];return _n(e,r=>{const a={before:[],lines:[],after:[]},l=NM(o,r);ys(a.before,nr(l.beforeLabel.call(this,r))),ys(a.lines,l.label.call(this,r)),ys(a.after,nr(l.afterLabel.call(this,r))),s.push(a)}),s}getAfterBody(e,n){return RM(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:o}=n,s=o.beforeFooter.apply(this,[e]),r=o.footer.apply(this,[e]),a=o.afterFooter.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}_createItems(e){const n=this._active,o=this.chart.data,s=[],r=[],a=[];let c,u,l=[];for(c=0,u=n.length;ce.filter(p,m,_,o))),e.itemSort&&(l=l.sort((p,m)=>e.itemSort(p,m,o))),_n(l,p=>{const m=NM(e.callbacks,p);s.push(m.labelColor.call(this,p)),r.push(m.labelPointStyle.call(this,p)),a.push(m.labelTextColor.call(this,p))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(e,n){const o=this.options.setContext(this.getContext()),s=this._active;let r,a=[];if(s.length){const l=ld[o.position].call(this,s,this._eventPosition);a=this._createItems(o),this.title=this.getTitle(a,o),this.beforeBody=this.getBeforeBody(a,o),this.body=this.getBody(a,o),this.afterBody=this.getAfterBody(a,o),this.footer=this.getFooter(a,o);const c=this._size=LM(this,o),u=Object.assign({},l,c),p=PM(this.chart,o,u),m=FM(o,u,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,r={opacity:1,x:m.x,y:m.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,s){const r=this.getCaretPosition(e,o,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,o){const{xAlign:s,yAlign:r}=this,{caretSize:a,cornerRadius:l}=o,{topLeft:c,topRight:u,bottomLeft:p,bottomRight:m}=Ca(l),{x:_,y:b}=e,{width:E,height:P}=n;let W,te,fe,Ce,ve,ke;return"center"===r?(ve=b+P/2,"left"===s?(W=_,te=W-a,Ce=ve+a,ke=ve-a):(W=_+E,te=W+a,Ce=ve-a,ke=ve+a),fe=W):(te="left"===s?_+Math.max(c,p)+a:"right"===s?_+E-Math.max(u,m)-a:this.caretX,"top"===r?(Ce=b,ve=Ce-a,W=te-a,fe=te+a):(Ce=b+P,ve=Ce+a,W=te+a,fe=te-a),ke=Ce),{x1:W,x2:te,x3:fe,y1:Ce,y2:ve,y3:ke}}drawTitle(e,n,o){const s=this.title,r=s.length;let a,l,c;if(r){const u=Zl(o.rtl,this.x,this.width);for(e.x=Qf(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",a=ui(o.titleFont),l=o.titleSpacing,n.fillStyle=o.titleColor,n.font=a.string,c=0;c0!==Ce)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Yu(e,{x:W,y:P,w:u,h:c,radius:fe}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Yu(e,{x:te,y:P+1,w:u-2,h:c-2,radius:fe}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(W,P,u,c),e.strokeRect(W,P,u,c),e.fillStyle=a.backgroundColor,e.fillRect(te,P+1,u-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:s}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:p}=o,m=ui(o.bodyFont);let _=m.lineHeight,b=0;const E=Zl(o.rtl,this.x,this.width),P=function(Ke){n.fillText(Ke,E.x(e.x+b),e.y+_/2),e.y+=_+r},W=E.textAlign(a);let te,fe,Ce,ve,ke,Pe,$e;for(n.textAlign=a,n.textBaseline="middle",n.font=m.string,e.x=Qf(this,W,o),n.fillStyle=o.bodyColor,_n(this.beforeBody,P),b=l&&"right"!==W?"center"===a?u/2+p:u+2+p:0,ve=0,Pe=s.length;ve0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,s=o&&o.x,r=o&&o.y;if(s||r){const a=ld[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=LM(this,e),c=Object.assign({},a,this._size),u=PM(n,e,c),p=FM(e,c,u,n);(s._to!==p.x||r._to!==p.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const a=Pi(n.padding);n.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=o,this.drawBackground(r,e,s,n),x3(e,n.textDirection),r.y+=a.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),A3(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,s=e.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),r=!xf(o,s),a=this._positionChanged(s,n);(r||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],a=this._getActiveElements(e,r,n,o),l=this._positionChanged(a,e),c=n||!xf(a,r)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,o,s){const r=this.options;if("mouseout"===e.type)return[];if(!s)return n;const a=this.chart.getElementsAtEventForMode(e,r.mode,r,o);return r.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:o,caretY:s,options:r}=this,a=ld[r.position].call(this,e,n);return!1!==a&&(o!==a.x||s!==a.y)}}return t.positioners=ld,t})();var Ple=Object.freeze({__proto__:null,Decimation:Jae,Filler:Cle,Legend:yle,SubTitle:wle,Title:Ale,Tooltip:{id:"tooltip",_element:VM,positioners:ld,afterInit(t,i,e){e&&(t.tooltip=new VM({chart:t,options:e}))},beforeUpdate(t,i,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,i,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const i=t.tooltip;if(i&&i._willRender()){const e={tooltip:i};if(!1===t.notifyPlugins("beforeTooltipDraw",e))return;i.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,i){t.tooltip&&t.tooltip.handleEvent(i.event,i.replay,i.inChartArea)&&(i.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,i)=>i.bodyFont.size,boxWidth:(t,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ys,title(t){if(t.length>0){const i=t[0],e=i.chart.data.labels,n=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return i.dataset.label||"";if(i.label)return i.label;if(n>0&&i.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Zf extends xa{constructor(i){super(i),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(i){const e=this._addedLabels;if(e.length){const n=this.getLabels();for(const{index:o,label:s}of e)n[o]===s&&n.splice(o,1);this._addedLabels=[]}super.init(i)}parse(i,e){if(tn(i))return null;const n=this.getLabels();return((t,i)=>null===t?null:pi(Math.round(t),0,i))(e=isFinite(e)&&n[e]===i?e:function Rle(t,i,e,n){const o=t.indexOf(i);return-1===o?((t,i,e,n)=>("string"==typeof i?(e=t.push(i)-1,n.unshift({index:e,label:i})):isNaN(i)&&(e=null),e))(t,i,e,n):o!==t.lastIndexOf(i)?e:o}(n,i,Nt(e,i),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(i||(n=0),e||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const i=this.min,e=this.max,n=this.options.offset,o=[];let s=this.getLabels();s=0===i&&e===s.length-1?s:s.slice(i,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let r=i;r<=e;r++)o.push({value:r});return o}getLabelForValue(i){const e=this.getLabels();return i>=0&&ie.length-1?null:this.getPixelForValue(e[i].value)}getValueForPixel(i){return Math.round(this._startValue+this.getDecimalForPixel(i)*this._valueRange)}getBasePixel(){return this.bottom}}function BM(t,i,{horizontal:e,minRotation:n}){const o=Yo(n),s=(e?Math.sin(o):Math.cos(o))||.001;return Math.min(i/s,.75*i*(""+t).length)}Zf.id="category",Zf.defaults={ticks:{callback:Zf.prototype.getLabelForValue}};class Yf extends xa{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,e){return tn(i)||("number"==typeof i||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){const{beginAtZero:i}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:s}=this;const r=l=>o=e?o:l,a=l=>s=n?s:l;if(i){const l=Cs(o),c=Cs(s);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(o===s){let l=1;(s>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(.05*s)),a(s+l),i||r(o-l)}this.min=o,this.max=s}getTickLimit(){const i=this.options.ticks;let o,{maxTicksLimit:e,stepSize:n}=i;return n?(o=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const i=this.options,e=i.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function Vle(t,i){const e=[],{bounds:o,step:s,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:p,includeBounds:m}=t,_=s||1,b=u-1,{min:E,max:P}=i,W=!tn(r),te=!tn(a),fe=!tn(c),Ce=(P-E)/(p+1);let ke,Pe,$e,Ke,ve=Vk((P-E)/b/_)*_;if(ve<1e-14&&!W&&!te)return[{value:E},{value:P}];Ke=Math.ceil(P/ve)-Math.floor(E/ve),Ke>b&&(ve=Vk(Ke*ve/b/_)*_),tn(l)||(ke=Math.pow(10,l),ve=Math.ceil(ve*ke)/ke),"ticks"===o?(Pe=Math.floor(E/ve)*ve,$e=Math.ceil(P/ve)*ve):(Pe=E,$e=P),W&&te&&s&&function _oe(t,i){const e=Math.round(t);return e-i<=t&&e+i>=t}((a-r)/s,ve/1e3)?(Ke=Math.round(Math.min((a-r)/ve,u)),ve=(a-r)/Ke,Pe=r,$e=a):fe?(Pe=W?r:Pe,$e=te?a:$e,Ke=c-1,ve=($e-Pe)/Ke):(Ke=($e-Pe)/ve,Ke=$u(Ke,Math.round(Ke),ve/1e3)?Math.round(Ke):Math.ceil(Ke));const pt=Math.max(Hk(ve),Hk(Pe));ke=Math.pow(10,tn(l)?pt:l),Pe=Math.round(Pe*ke)/ke,$e=Math.round($e*ke)/ke;let jt=0;for(W&&(m&&Pe!==r?(e.push({value:r}),Pe0?n:null;this._zero=!0}determineDataLimits(){const{min:i,max:e}=this.getMinMax(!0);this.min=ti(i)?Math.max(0,i):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let n=this.min,o=this.max;const s=l=>n=i?n:l,r=l=>o=e?o:l,a=(l,c)=>Math.pow(10,Math.floor(Ro(l))+c);n===o&&(n<=0?(s(1),r(10)):(s(a(n,-1)),r(a(o,1)))),n<=0&&s(a(o,-1)),o<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&s(a(n,-1)),this.min=n,this.max=o}buildTicks(){const i=this.options,n=function Ble(t,i){const e=Math.floor(Ro(i.max)),n=Math.ceil(i.max/Math.pow(10,e)),o=[];let s=Po(t.min,Math.pow(10,Math.floor(Ro(i.min)))),r=Math.floor(Ro(s)),a=Math.floor(s/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:s,major:HM(s)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),s=Math.round(a*Math.pow(10,r)*l)/l}while(ro?{start:i-e,end:i}:{start:i,end:i+e}}function jle(t,i,e,n,o){const s=Math.abs(Math.sin(e)),r=Math.abs(Math.cos(e));let a=0,l=0;n.starti.r&&(a=(n.end-i.r)/s,t.r=Math.max(t.r,i.r+a)),o.starti.b&&(l=(o.end-i.b)/r,t.b=Math.max(t.b,i.b+l))}function $le(t){return 0===t||180===t?"center":t<180?"left":"right"}function Kle(t,i,e){return"right"===e?t-=i:"center"===e&&(t-=i/2),t}function Gle(t,i,e){return 90===e||270===e?t-=i/2:(e>270||e<90)&&(t-=i),t}function jM(t,i,e,n){const{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,i,0,Cn);else{let s=t.getPointPosition(0,i);o.moveTo(s.x,s.y);for(let r=1;r{const o=Mn(this.options.pointLabels.callback,[e,n],this);return o||0===o?o:""}).filter((e,n)=>this.chart.getDataVisibility(n))}fit(){const i=this.options;i.display&&i.pointLabels.display?function zle(t){const i={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},i),n=[],o=[],s=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?Vn/s:0;for(let l=0;l=0&&i=0;o--){const s=n.setContext(t.getPointLabelContext(o)),r=ui(s.font),{x:a,y:l,textAlign:c,left:u,top:p,right:m,bottom:_}=t._pointLabelItems[o],{backdropColor:b}=s;if(!tn(b)){const E=Ca(s.borderRadius),P=Pi(s.backdropPadding);e.fillStyle=b;const W=u-P.left,te=p-P.top,fe=m-u+P.width,Ce=_-p+P.height;Object.values(E).some(ve=>0!==ve)?(e.beginPath(),Yu(e,{x:W,y:te,w:fe,h:Ce,radius:E}),e.fill()):e.fillRect(W,te,fe,Ce)}Ia(e,t._pointLabels[o],a,l+r.lineHeight/2,r,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),o.display&&this.ticks.forEach((c,u)=>{0!==u&&(a=this.getDistanceFromCenterForValue(c.value),function Wle(t,i,e,n){const o=t.ctx,s=i.circular,{color:r,lineWidth:a}=i;!s&&!n||!r||!a||e<0||(o.save(),o.strokeStyle=r,o.lineWidth=a,o.setLineDash(i.borderDash),o.lineDashOffset=i.borderDashOffset,o.beginPath(),jM(t,e,s,n),o.closePath(),o.stroke(),o.restore())}(this,o.setContext(this.getContext(u-1)),a,s))}),n.display){for(i.save(),r=s-1;r>=0;r--){const c=n.setContext(this.getPointLabelContext(r)),{color:u,lineWidth:p}=c;!p||!u||(i.lineWidth=p,i.strokeStyle=u,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(l.x,l.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){const i=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let s,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(o),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const c=n.setContext(this.getContext(l)),u=ui(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=u.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;const p=Pi(c.backdropPadding);i.fillRect(-r/2-p.left,-s-u.size/2-p.top,r+p.width,u.size+p.height)}Ia(i,a.label,0,-s,u,{color:c.color})}),i.restore()}drawTitle(){}}cd.id="radialLinear",cd.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},cd.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},cd.descriptors={angleLines:{_fallback:"grid"}};const Xf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},so=Object.keys(Xf);function Zle(t,i){return t-i}function UM(t,i){if(tn(i))return null;const e=t._adapter,{parser:n,round:o,isoWeekday:s}=t._parseOpts;let r=i;return"function"==typeof n&&(r=n(r)),ti(r)||(r="string"==typeof n?e.parse(r,n):e.parse(r)),null===r?null:(o&&(r="week"!==o||!Gl(s)&&!0!==s?e.startOf(r,o):e.startOf(r,"isoWeek",s)),+r)}function $M(t,i,e,n){const o=so.length;for(let s=so.indexOf(t);s=i?e[n]:e[o]]=!0}}else t[i]=!0}function GM(t,i,e){const n=[],o={},s=i.length;let r,a;for(r=0;r=0&&(i[l].major=!0);return i}(t,n,o,e):n}let gv=(()=>{class t extends xa{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const o=e.time||(e.time={}),s=this._adapter=new Vre._date(e.adapters.date);s.init(n),ju(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:UM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:s,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!l&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!a||!l)&&(c(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&c(this.getMinMax(!1))),s=ti(s)&&!isNaN(s)?s:+n.startOf(Date.now(),o),r=ti(r)&&!isNaN(r)?r:+n.endOf(Date.now(),o)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,s="labels"===o.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,l=function boe(t,i,e){let n=0,o=t.length;for(;nn&&t[o-1]>e;)o--;return n>0||o=so.indexOf(e);s--){const r=so[s];if(Xf[r].common&&t._adapter.diff(o,n,r)>=i-1)return r}return so[e?so.indexOf(e):0]}(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=o.major.enabled&&"year"!==this._unit?function Xle(t){for(let i=so.indexOf(t)+1,e=so.length;i+e.value))}initOffsets(e){let s,r,n=0,o=0;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),n=1===e.length?1-s:(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),o=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=pi(n,0,a),o=pi(o,0,a),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,s=this.options,r=s.time,a=r.unit||$M(r.minUnit,n,o,this._getLabelCapacity(n)),l=Nt(r.stepSize,1),c="week"===a&&r.isoWeekday,u=Gl(c)||!0===c,p={};let _,b,m=n;if(u&&(m=+e.startOf(m,"isoWeek",c)),m=+e.startOf(m,u?"day":a),e.diff(o,n,a)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+a);const E="data"===s.ticks.source&&this.getDataTimestamps();for(_=m,b=0;_P-W).map(P=>+P)}getLabelForValue(e){const o=this.options.time;return this._adapter.format(e,o.tooltipFormat?o.tooltipFormat:o.displayFormats.datetime)}_tickFormatFunction(e,n,o,s){const r=this.options,a=r.time.displayFormats,l=this._unit,c=this._majorUnit,p=c&&a[c],m=o[n],b=this._adapter.format(e,s||(c&&p&&m&&m.major?p:l&&a[l])),E=r.ticks.callback;return E?Mn(E,[b,n,o],this):b}generateTickLabels(e){let n,o,s;for(n=0,o=e.length;n0?l:1}getDataTimestamps(){let n,o,e=this._cache.data||[];if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,o=s.length;n=t[n].pos&&i<=t[o].pos&&({lo:n,hi:o}=Js(t,"pos",i)),({pos:s,time:a}=t[n]),({pos:r,time:l}=t[o])):(i>=t[n].time&&i<=t[o].time&&({lo:n,hi:o}=Js(t,"time",i)),({time:s,pos:a}=t[n]),({time:r,pos:l}=t[o]));const c=r-s;return c?a+(l-a)*(i-s)/c:a}class mv extends gv{constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const i=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(i);this._minPos=Jf(e,this.min),this._tableRange=Jf(e,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){const{min:e,max:n}=this,o=[],s=[];let r,a,l,c,u;for(r=0,a=i.length;r=e&&c<=n&&o.push(c);if(o.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=o.length;r{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const nce=["list"];function ice(t,i){1&t&&le(0,"li",5)}function oce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function sce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function rce(t,i){if(1&t&&(we(0),g(1,oce,1,2,"AngleDownIcon",19),g(2,sce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function ace(t,i){}function lce(t,i){1&t&&g(0,ace,0,0,"ng-template")}function cce(t,i){if(1&t&&(we(0),g(1,rce,3,2,"ng-container",8),g(2,lce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function uce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function dce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function pce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function hce(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit;d("ngClass",e.badgeStyleClass),h(1),dt(e.badge)}}const WM=function(t){return{"p-disabled":t}};function fce(t,i){if(1&t&&(x(0,"a",13),g(1,cce,3,2,"ng-container",8),g(2,uce,1,2,"span",14),g(3,dce,2,1,"span",15),g(4,pce,1,1,"ng-template",null,16,In),g(6,hce,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("ngClass",He(10,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==(null==n.item?null:n.item.escape))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function gce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function mce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function _ce(t,i){if(1&t&&(we(0),g(1,gce,1,2,"AngleDownIcon",19),g(2,mce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Ice(t,i){}function Cce(t,i){1&t&&g(0,Ice,0,0,"ng-template")}function vce(t,i){if(1&t&&(we(0),g(1,_ce,3,2,"ng-container",8),g(2,Cce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function bce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function yce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function xce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Ace(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}const QM=function(){return{exact:!1}};function wce(t,i){if(1&t&&(x(0,"a",25),g(1,vce,3,2,"ng-container",8),g(2,bce,1,2,"span",14),g(3,yce,2,1,"span",15),g(4,xce,1,1,"ng-template",null,26,In),g(6,Ace,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(20,QM))("ngClass",He(21,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("title",o.getItemProp(n,"title"))("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function Tce(t,i){if(1&t&&(we(0),g(1,fce,7,12,"a",11),g(2,wce,7,23,"a",12),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function Sce(t,i){}function Ece(t,i){1&t&&g(0,Sce,0,0,"ng-template")}const Dce=function(t){return{$implicit:t}};function kce(t,i){if(1&t&&(we(0),g(1,Ece,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,Dce,e.item))}}function Mce(t,i){if(1&t){const e=De();x(0,"p-panelMenuSub",28),me("itemToggle",function(o){return G(e),q(f(3).onItemToggle(o))}),A()}if(2&t){const e=f(2).$implicit,n=f();d("id",n.getItemId(e)+"_list")("panelId",n.panelId)("items",e.items)("itemTemplate",n.itemTemplate)("transitionOptions",n.transitionOptions)("focusedItemId",n.focusedItemId)("activeItemPath",n.activeItemPath)("level",n.level+1)("parentExpanded",!!n.parentExpanded&&n.isItemExpanded(e))}}function Oce(t,i){if(1&t){const e=De();x(0,"li",6)(1,"div",7),me("click",function(o){G(e);const s=f().$implicit;return q(f().onItemClick(o,s))}),g(2,Tce,3,2,"ng-container",8),g(3,kce,2,4,"ng-container",8),A(),x(4,"div",9),g(5,Mce,1,9,"p-panelMenuSub",10),A()()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();Ve(s.getItemProp(n,"styleClass")),Ii("p-hidden",!1===n.visible)("p-focus",s.isItemFocused(n)&&!s.isItemDisabled(n)),d("ngClass",s.getItemClass(n))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("aria-label",s.getItemProp(n,"label"))("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o))("data-p-disabled",s.isItemDisabled(n)),h(2),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("@submenu",s.getAnimation(n)),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Lce(t,i){if(1&t&&(g(0,ice,1,0,"li",3),g(1,Oce,6,21,"li",4)),2&t){const e=i.$implicit,n=f();d("ngIf",e.separator),h(1),d("ngIf",!e.separator&&n.isItemVisible(e))}}const Pce=function(t){return{"p-submenu-list":!0,"p-panelmenu-root-list":t}},Fce=["submenu"],Rce=["container"];function Nce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Vce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Bce(t,i){if(1&t&&(we(0),g(1,Nce,1,1,"ChevronDownIcon",17),g(2,Vce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Hce(t,i){}function zce(t,i){1&t&&g(0,Hce,0,0,"ng-template")}function jce(t,i){if(1&t&&(we(0),g(1,Bce,3,2,"ng-container",11),g(2,zce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function Uce(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function $ce(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function Kce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Gce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function qce(t,i){if(1&t&&(x(0,"a",10),g(1,jce,3,2,"ng-container",11),g(2,Uce,1,2,"span",12),g(3,$ce,2,1,"span",13),g(4,Kce,1,1,"ng-template",null,14,In),g(6,Gce,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("tabindex",-1)("title",o.getItemProp(n,"title"))("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}function Wce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Qce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Zce(t,i){if(1&t&&(we(0),g(1,Wce,1,1,"ChevronDownIcon",17),g(2,Qce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Yce(t,i){}function Xce(t,i){1&t&&g(0,Yce,0,0,"ng-template")}function Jce(t,i){if(1&t&&(we(0),g(1,Zce,3,2,"ng-container",11),g(2,Xce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function eue(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function tue(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function nue(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function iue(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function oue(t,i){if(1&t&&(x(0,"a",23),g(1,Jce,3,2,"ng-container",11),g(2,eue,1,2,"span",12),g(3,tue,2,1,"span",13),g(4,nue,1,1,"ng-template",null,24,In),g(6,iue,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(18,QM))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("tabindex",-1)("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}const sue=function(t){return{"p-panelmenu-expanded":t}};function rue(t,i){if(1&t){const e=De();x(0,"div",25),me("@rootItem.done",function(){return G(e),q(f(3).onToggleDone())}),x(1,"div",26)(2,"p-panelMenuList",27),me("headerFocus",function(o){return G(e),q(f(3).updateFocusedHeader(o))}),A()()()}if(2&t){const e=f(2),n=e.$implicit,o=e.index,s=f();d("ngClass",He(14,sue,s.isItemActive(n)))("@rootItem",s.getAnimation(n)),K("id",s.getContentId(n,o))("aria-labelledby",s.getHeaderId(n,o))("data-pc-section","toggleablecontent"),h(1),K("data-pc-section","menucontent"),h(1),d("panelId",s.getPanelId(o,n))("items",s.getItemProp(n,"items"))("itemTemplate",s.itemTemplate)("transitionOptions",s.transitionOptions)("root",!0)("activeItem",s.activeItem())("tabindex",s.tabindex)("parentExpanded",s.isItemActive(n))}}const aue=function(t,i){return{"p-component p-panelmenu-header":!0,"p-highlight":t,"p-disabled":i}};function lue(t,i){if(1&t){const e=De();x(0,"div",4)(1,"div",5),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderClick(o,r,a))})("keydown",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderKeyDown(o,r,a))}),x(2,"div",6),g(3,qce,7,10,"a",7),g(4,oue,7,19,"a",8),A()(),g(5,rue,3,16,"div",9),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();d("ngClass",s.getItemProp(n,"headerClass"))("ngStyle",s.getItemProp(n,"style")),K("data-pc-section","panel"),h(1),Ve(s.getItemProp(n,"styleClass")),d("ngClass",mt(21,aue,s.isItemActive(n),s.isItemDisabled(n)))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tabindex",0)("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getHeaderId(n,o))("aria-expanded",s.isItemActive(n))("aria-label",s.getItemProp(n,"label"))("aria-controls",s.getContentId(n,o))("aria-disabled",s.isItemDisabled(n))("data-p-highlight",s.isItemActive(n))("data-p-disabled",s.isItemDisabled(n))("data-pc-section","header"),h(2),d("ngIf",!s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.isItemGroup(n))}}function cue(t,i){if(1&t&&(we(0),g(1,lue,6,24,"div",3),Te()),2&t){const e=i.$implicit,n=f();h(1),d("ngIf",n.isItemVisible(e))}}let due=(()=>{class t{panelMenu;el;panelId;focusedItemId;items;itemTemplate;level=0;activeItemPath;root;tabindex;transitionOptions;parentExpanded;itemToggle=new ge;menuFocus=new ge;menuBlur=new ge;menuKeyDown=new ge;listViewChild;constructor(e,n){this.panelMenu=e,this.el=n}getItemId(e){return e.item?.id??`${this.panelId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{"p-menuitem":!0,"p-disabled":this.isItemDisabled(e)}}getItemProp(e,n,o){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemExpanded(e){return e.expanded}isItemActive(e){return this.isItemExpanded(e)||this.activeItemPath.some(n=>n&&n.key===e.key)}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}getAnimation(e){return this.isItemActive(e)?{value:"visible",params:{transitionParams:this.transitionOptions,height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}onItemClick(e,n){this.isItemDisabled(n)||(this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemToggle.emit({processedItem:n,expanded:!this.isItemActive(n)}))}onItemToggle(e){this.itemToggle.emit(e)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ZM)),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuSub"]],viewQuery:function(n,o){if(1&n&&je(nce,5),2&n){let s;Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",focusedItemId:"focusedItemId",items:"items",itemTemplate:"itemTemplate",level:"level",activeItemPath:"activeItemPath",root:"root",tabindex:"tabindex",transitionOptions:"transitionOptions",parentExpanded:"parentExpanded"},outputs:{itemToggle:"itemToggle",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeyDown:"menuKeyDown"},decls:3,vars:8,consts:[["role","tree",3,"ngClass","tabindex","focusin","focusout","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",4,"ngIf"],["role","treeitem",3,"ngClass","class","p-hidden","p-focus","ngStyle","pTooltip","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator"],["role","treeitem",3,"ngClass","ngStyle","pTooltip","tooltipOptions"],[1,"p-menuitem-content",3,"click"],[4,"ngIf"],[1,"p-toggleable-content"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle",4,"ngIf"],["class","p-menuitem-link",3,"ngClass","target",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],[1,"p-menuitem-link",3,"ngClass","target"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle"]],template:function(n,o){1&n&&(x(0,"ul",0,1),me("focusin",function(r){return o.menuFocus.emit(r)})("focusout",function(r){return o.menuBlur.emit(r)})("keydown",function(r){return o.menuKeyDown.emit(r)}),g(2,Lce,2,2,"ng-template",2),A()),2&n&&(d("ngClass",He(6,Pce,o.root))("tabindex",-1),K("aria-activedescendant",o.focusedItemId)("data-pc-section","menu")("aria-hidden",!o.parentExpanded),h(2),d("ngForOf",o.items))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,Or,Zo,t]},encapsulation:2,data:{animation:[Oo("submenu",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]}})}return t})(),pue=(()=>{class t{panelId;id;items;itemTemplate;parentExpanded;expanded;transitionOptions;root;tabindex;activeItem;itemToggle=new ge;headerFocus=new ge;subMenuViewChild;searchTimeout;searchValue;focused;focusedItem=bn(null);activeItemPath=bn([]);processedItems=bn([]);visibleItems=Ds(()=>{const e=this.processedItems();return this.flatItems(e)});get focusedItemId(){const e=this.focusedItem();return e&&e.item?.id?e.item.id:be.isNotEmpty(this.focusedItem())?`${this.panelId}_${this.focusedItem().key}`:void 0}ngOnChanges(e){e&&e.items&&e.items.currentValue&&this.processedItems.set(this.createProcessedItems(e.items.currentValue||[]))}getItemProp(e,n){return e&&e.item?be.getItemValue(e.item[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemActive(e){return this.activeItemPath().some(n=>n.key===e.parentKey)}isItemGroup(e){return be.isNotEmpty(e.items)}isElementInPanel(e,n){const o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)}isItemMatched(e){return this.isValidItem(e)&&this.getItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isVisibleItem(e){return!!e&&(0===e.level||this.isItemActive(e))&&this.isItemVisible(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e)&&!e.separator}findFirstItem(){return this.visibleItems().find(e=>this.isValidItem(e))}findLastItem(){return be.findLast(this.visibleItems(),e=>this.isValidItem(e))}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={icon:a.icon,expanded:a.expanded,separator:a.separator,item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}findProcessedItemByItemKey(e,n,o=0){if((n=n||this.processedItems())&&n.length)for(let s=0;s{this.isVisibleItem(o)&&(n.push(o),this.flatItems(o.items,n))}),n}changeFocusedItem(e){const{originalEvent:n,processedItem:o,focusOnNext:s,selfCheck:r,allowHeaderFocus:a=!0}=e;be.isNotEmpty(this.focusedItem())&&this.focusedItem().key!==o.key?(this.focusedItem.set(o),this.scrollInView()):a&&this.headerFocus.emit({originalEvent:n,focusOnNext:s,selfCheck:r})}scrollInView(){const e=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`);e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"nearest"})}onFocus(e){this.focused=!0;const n=this.focusedItem()||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem());null!==e.relatedTarget&&this.focusedItem.set(n)}onBlur(e){this.focused=!1,this.focusedItem.set(null),this.searchValue=""}onItemToggle(e){const{processedItem:n,expanded:o}=e;n.expanded=!n.expanded;const s=this.activeItemPath().filter(r=>r.parentKey!==n.parentKey);o&&s.push(n),this.activeItemPath.set(s),this.processedItems.mutate(r=>r.map(a=>a===n?n:a)),this.focusedItem.set(n)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findNextItem(this.focusedItem()):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()}onArrowUpKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findPrevItem(this.focusedItem()):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()}onArrowLeftKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.activeItemPath().some(o=>o.key===this.focusedItem().key)){const o=this.activeItemPath().filter(s=>s.key!==this.focusedItem().key);this.activeItemPath.set(o)}else{const o=be.isNotEmpty(this.focusedItem().parent)?this.focusedItem().parent:this.focusedItem();this.focusedItem.set(o)}e.preventDefault()}}onArrowRightKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.isItemGroup(this.focusedItem()))if(this.activeItemPath().some(s=>s.key===this.focusedItem().key))this.onArrowDownKey(e);else{const s=this.activeItemPath().filter(r=>r.parentKey!==this.focusedItem().parentKey);s.push(this.focusedItem()),this.activeItemPath.set(s)}e.preventDefault()}}onHomeKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()}onEndKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()}onEnterKey(e){if(be.isNotEmpty(this.focusedItem())){const n=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&(j.findSingle(n,'[data-pc-section="action"]')||j.findSingle(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(nthis.isValidItem(s)):void 0)||e}findPrevItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(n>0?be.findLast(this.visibleItems().slice(0,n),s=>this.isValidItem(s)):void 0)||e}searchItems(e,n){this.searchValue=(this.searchValue||"")+n;let o=null,s=!1;if(be.isNotEmpty(this.focusedItem())){const r=this.visibleItems().findIndex(a=>a.key===this.focusedItem().key);o=this.visibleItems().slice(r).find(a=>this.isItemMatched(a)),o=be.isEmpty(o)?this.visibleItems().slice(0,r).find(a=>this.isItemMatched(a)):o}else o=this.visibleItems().find(r=>this.isItemMatched(r));return be.isNotEmpty(o)&&(s=!0),be.isEmpty(o)&&be.isEmpty(this.focusedItem())&&(o=this.findFirstItem()),be.isNotEmpty(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuList"]],viewQuery:function(n,o){if(1&n&&je(Fce,5),2&n){let s;Se(s=Ee())&&(o.subMenuViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",id:"id",items:"items",itemTemplate:"itemTemplate",parentExpanded:"parentExpanded",expanded:"expanded",transitionOptions:"transitionOptions",root:"root",tabindex:"tabindex",activeItem:"activeItem"},outputs:{itemToggle:"itemToggle",headerFocus:"headerFocus"},features:[Hn],decls:2,vars:10,consts:[[3,"root","id","panelId","tabindex","itemTemplate","focusedItemId","activeItemPath","transitionOptions","items","parentExpanded","itemToggle","keydown","menuFocus","menuBlur"],["submenu",""]],template:function(n,o){1&n&&(x(0,"p-panelMenuSub",0,1),me("itemToggle",function(r){return o.onItemToggle(r)})("keydown",function(r){return o.onKeyDown(r)})("menuFocus",function(r){return o.onFocus(r)})("menuBlur",function(r){return o.onBlur(r)}),A()),2&n&&d("root",!0)("id",o.panelId+"_list")("panelId",o.panelId)("tabindex",o.tabindex)("itemTemplate",o.itemTemplate)("focusedItemId",o.focused?o.focusedItemId:void 0)("activeItemPath",o.activeItemPath())("transitionOptions",o.transitionOptions)("items",o.processedItems())("parentExpanded",o.parentExpanded)},dependencies:[due],styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,changeDetection:0})}return t})(),ZM=(()=>{class t{cd;model;style;styleClass;multiple=!1;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";id;tabindex=0;templates;containerViewChild;submenuIconTemplate;itemTemplate;animating;activeItem=bn(null);ngOnInit(){this.id=this.id||$t()}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}constructor(e){this.cd=e}collapseAll(){for(let e of this.model)e.expanded&&(e.expanded=!1);this.cd.detectChanges()}onToggleDone(){this.animating=!1}changeActiveItem(e,n,o,s=!1){if(!this.isItemDisabled(n)){const r=s?n:this.activeItem&&be.equals(n,this.activeItem)?null:n;this.activeItem.set(r)}}getAnimation(e){return e.expanded?{value:"visible",params:{transitionParams:this.animating?this.transitionOptions:"0ms",height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemActive(e){return e.expanded}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemGroup(e){return be.isNotEmpty(e.items)}getPanelId(e,n){return n&&n.id?n.id:`${this.id}_${e}`}getHeaderId(e,n){return e.id?e.id+"_header":`${this.getPanelId(n)}_header`}getContentId(e,n){return e.id?e.id+"_content":`${this.getPanelId(n)}_content`}updateFocusedHeader(e){const{originalEvent:n,focusOnNext:o,selfCheck:s}=e,r=n.currentTarget.closest('[data-pc-section="panel"]'),a=s?j.findSingle(r,'[data-pc-section="header"]'):o?this.findNextHeader(r):this.findPrevHeader(r);a?this.changeFocusedHeader(n,a):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)}changeFocusedHeader(e,n){n&&j.focus(n)}findNextHeader(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeader(s.parentElement):s:null}findPrevHeader(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeader(s.parentElement):s:null}findFirstHeader(){return this.findNextHeader(this.containerViewChild.nativeElement.firstElementChild,!0)}findLastHeader(){return this.findPrevHeader(this.containerViewChild.nativeElement.lastElementChild,!0)}onHeaderClick(e,n,o){if(this.isItemDisabled(n))e.preventDefault();else{if(n.command&&n.command({originalEvent:e,item:n}),!this.multiple)for(let s of this.model)n!==s&&s.expanded&&(s.expanded=!1);n.expanded=!n.expanded,this.changeActiveItem(e,n,o),this.animating=!0,j.focus(e.currentTarget)}}onHeaderKeyDown(e,n,o){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"Space":this.onHeaderEnterKey(e,n,o)}}onHeaderArrowDownKey(e){const n=!0===j.getAttribute(e.currentTarget,"data-p-highlight")?j.findSingle(e.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;n?j.focus(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()}onHeaderArrowUpKey(e){const n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=!0===j.getAttribute(n,"data-p-highlight")?j.findSingle(n.nextElementSibling,'[data-pc-section="menu"]'):null;o?j.focus(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()}onHeaderHomeKey(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()}onHeaderEndKey(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()}onHeaderEnterKey(e,n,o){const s=j.findSingle(e.currentTarget,'[data-pc-section="headeraction"]');s?s.click():this.onHeaderClick(e,n,o),e.preventDefault()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Rce,5),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",multiple:"multiple",transitionOptions:"transitionOptions",id:"id",tabindex:"tabindex"},decls:3,vars:5,consts:[[3,"ngStyle","ngClass"],["container",""],[4,"ngFor","ngForOf"],["class","p-panelmenu-panel",3,"ngClass","ngStyle",4,"ngIf"],[1,"p-panelmenu-panel",3,"ngClass","ngStyle"],["role","button",3,"ngClass","ngStyle","pTooltip","tabindex","tooltipOptions","click","keydown"],[1,"p-panelmenu-header-content"],["class","p-panelmenu-header-action",3,"target",4,"ngIf"],["class","p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["class","p-toggleable-content","role","region",3,"ngClass",4,"ngIf"],[1,"p-panelmenu-header-action",3,"target"],[4,"ngIf"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],["role","region",1,"p-toggleable-content",3,"ngClass"],[1,"p-panelmenu-content"],[3,"panelId","items","itemTemplate","transitionOptions","root","activeItem","tabindex","parentExpanded","headerFocus"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,cue,2,1,"ng-container",2),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass","p-panelmenu p-component"),h(2),d("ngForOf",o.model))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,bi,Qi,pue]},styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,data:{animation:[Oo("rootItem",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),YM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qe,Or,Zo,bi,Qi,qn,Nn,Qe]})}return t})(),eg=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["MinusIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},dependencies:[Xe],encapsulation:2})}return t})(),JM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,dn,Oi,_s,CC,vC,Ck,bk,vk,yi,eg,bi,Qi,Qe,Oi]})}return t})();const Hde=["input"],zde=function(t,i,e){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":t,"p-disabled":i,"p-focus":e}},jde={provide:un,useExisting:ft(()=>Ude),multi:!0};let Ude=(()=>{class t{cd;style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;onChange=new ge;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),e.preventDefault(),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-inputSwitch"]],viewQuery:function(n,o){if(1&n&&je(Hde,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[yt([jde])],decls:5,vars:22,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","focus","blur"],["input",""],[1,"p-inputswitch-slider"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),le(4,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(18,zde,o.checked(),o.disabled,o.focused))("ngStyle",o.style),K("data-pc-name","inputswitch")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("checked",o.checked())("disabled",o.disabled),K("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),h(2),K("data-pc-section","slider"))},dependencies:[Ct,Ht],styles:['@layer primeng{.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}}\n'],encapsulation:2,changeDetection:0})}return t})(),_v=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const $de=["sublist"];function Kde(t,i){if(1&t&&le(0,"li",6),2&t){const e=f().$implicit,n=f(2);yn(n.getItemProp(e,"style")),d("ngClass",n.getSeparatorItemClass(e)),K("id",n.getItemId(e))("data-pc-section","separator")}}function Gde(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function qde(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function Wde(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function Qde(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function Zde(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function Yde(t,i){}function Xde(t,i){1&t&&g(0,Yde,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function Jde(t,i){if(1&t&&(we(0),g(1,Zde,1,3,"AngleRightIcon",23),g(2,Xde,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const eO=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function epe(t,i){if(1&t&&(x(0,"a",14),g(1,Gde,1,5,"span",15),g(2,qde,2,2,"span",16),g(3,Wde,1,2,"ng-template",null,17,In),g(5,Qde,2,2,"span",18),g(6,Jde,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("target",o.getItemProp(n,"target"))("ngClass",He(12,eO,o.getItemProp(n,"disabled"))),K("href",o.getItemProp(n,"url"),Ls)("aria-hidden",!0)("data-automationid",o.getItemProp(n,"automationId"))("data-pc-section","action")("tabindex",-1),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function tpe(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function npe(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function ipe(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function ope(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function spe(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function rpe(t,i){}function ape(t,i){1&t&&g(0,rpe,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function lpe(t,i){if(1&t&&(we(0),g(1,spe,1,3,"AngleRightIcon",23),g(2,ape,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const cpe=function(){return{exact:!1}};function upe(t,i){if(1&t&&(x(0,"a",26),g(1,tpe,1,5,"span",15),g(2,npe,2,2,"span",16),g(3,ipe,1,2,"ng-template",null,17,In),g(5,ope,2,2,"span",18),g(6,lpe,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(21,cpe))("target",o.getItemProp(n,"target"))("ngClass",He(22,eO,o.getItemProp(n,"disabled")))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("data-automationid",o.getItemProp(n,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function dpe(t,i){if(1&t&&(we(0),g(1,epe,7,14,"a",12),g(2,upe,7,24,"a",13),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function ppe(t,i){}function hpe(t,i){1&t&&g(0,ppe,0,0,"ng-template")}const fpe=function(t){return{$implicit:t}};function gpe(t,i){if(1&t&&(we(0),g(1,hpe,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,fpe,e.item))}}function mpe(t,i){if(1&t){const e=De();x(0,"p-contextMenuSub",28),me("itemClick",function(o){return G(e),q(f(4).itemClick.emit(o))})("itemMouseEnter",function(o){return G(e),q(f(4).onItemMouseEnter(o))}),A()}if(2&t){const e=f(2).$implicit,n=f(2);d("items",e.items)("itemTemplate",n.itemTemplate)("menuId",n.menuId)("visible",n.isItemActive(e)&&n.isItemGroup(e))("activeItemPath",n.activeItemPath)("focusedItemId",n.focusedItemId)("level",n.level+1)}}function _pe(t,i){if(1&t){const e=De();x(0,"li",7,8)(2,"div",9),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onItemClick(o,s))})("mouseenter",function(o){G(e);const s=f().$implicit;return q(f(2).onItemMouseEnter({$event:o,processedItem:s}))}),g(3,dpe,3,2,"ng-container",10),g(4,gpe,2,4,"ng-container",10),A(),g(5,mpe,1,7,"p-contextMenuSub",11),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);Ve(s.getItemProp(n,"styleClass")),d("ngStyle",s.getItemProp(n,"style"))("ngClass",s.getItemClass(n))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("data-pc-section","menuitem")("data-p-highlight",s.isItemActive(n))("data-p-focused",s.isItemFocused(n))("data-p-disabled",s.isItemDisabled(n))("aria-label",s.getItemLabel(n))("aria-disabled",s.isItemDisabled(n)||void 0)("aria-haspopup",s.isItemGroup(n)&&!s.getItemProp(n,"to")?"menu":void 0)("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o)),h(2),K("data-pc-section","content"),h(1),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Ipe(t,i){if(1&t&&(g(0,Kde,1,5,"li",4),g(1,_pe,6,21,"li",5)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isItemVisible(e)&&n.getItemProp(e,"separator")),h(1),d("ngIf",n.isItemVisible(e)&&!n.getItemProp(e,"separator"))}}const Cpe=function(t,i){return{"p-submenu-list":t,"p-contextmenu-root-list":i}};function vpe(t,i){if(1&t){const e=De();x(0,"ul",1,2),me("@overlayAnimation.start",function(o){G(e);const s=Bt(1);return q(f().onEnter(o,s))})("keydown",function(o){return G(e),q(f().menuKeydown.emit(o))})("focus",function(o){return G(e),q(f().menuFocus.emit(o))})("blur",function(o){return G(e),q(f().menuBlur.emit(o))}),g(2,Ipe,2,2,"ng-template",3),A()}if(2&t){const e=f();d("ngClass",mt(10,Cpe,!e.root,e.root))("@overlayAnimation",e.visible)("tabindex",e.tabindex),K("id",e.menuId+"_list")("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy)("aria-activedescendant",e.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),h(2),d("ngForOf",e.items)}}const bpe=["rootmenu"],ype=["container"],xpe=function(){return{"p-contextmenu p-component":!0,"p-contextmenu-overlay":!0}},Ape=function(){return{value:"visible"}};function wpe(t,i){if(1&t){const e=De();x(0,"div",1,2),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(2,"p-contextMenuSub",3,4),me("itemClick",function(o){return G(e),q(f().onItemClick(o))})("menuFocus",function(o){return G(e),q(f().onMenuFocus(o))})("menuBlur",function(o){return G(e),q(f().onMenuBlur(o))})("menuKeydown",function(o){return G(e),q(f().onKeyDown(o))})("itemMouseEnter",function(o){return G(e),q(f().onItemMouseEnter(o))}),A()()}if(2&t){const e=f();Ve(e.styleClass),d("ngClass",Jt(20,xpe))("ngStyle",e.style)("@overlayAnimation",Jt(21,Ape)),K("data-pc-section","root")("data-pc-name","contextmenu")("id",e.id),h(2),d("root",!0)("items",e.processedItems)("itemTemplate",e.itemTemplate)("menuId",e.id)("tabindex",e.disabled?-1:e.tabindex)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("visible",e.submenuVisible())("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())}}let Tpe=(()=>{class t{document;el;renderer;cd;contextMenu;ref;visible=!1;items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;tabindex=0;itemClick=new ge;itemMouseEnter=new ge;menuFocus=new ge;menuBlur=new ge;menuKeydown=new ge;sublistViewChild;constructor(e,n,o,s,r,a){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.contextMenu=r,this.ref=a}getItemProp(e,n,o=null){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(e),"p-menuitem-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)}}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(n=>n.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}onItemMouseEnter(e){const{event:n,processedItem:o}=e;this.itemMouseEnter.emit({originalEvent:n,processedItem:o})}onItemClick(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemClick.emit({originalEvent:e,processedItem:n,isFocus:!0})}onEnter(e,n){"void"===e.fromState&&e.toState&&this.position(e.element)}position(e){const n=e.parentElement.parentElement,o=j.getOffset(e.parentElement.parentElement),s=j.getViewport(),r=e.offsetParent?e.offsetWidth:j.getHiddenElementOuterWidth(e),a=j.getOuterWidth(n.children[0]);e.style.top="0px",e.style.left=parseInt(o.left,10)+a+r>s.width-j.calculateScrollbarWidth()?-1*r+"px":a+"px"}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ft(()=>tO)),V(go))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenuSub"]],viewQuery:function(n,o){if(1&n&&je($de,5),2&n){let s;Se(s=Ee())&&(o.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",items:"items",itemTemplate:"itemTemplate",root:"root",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",popup:"popup",menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:"level",focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",tabindex:"tabindex"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},decls:1,vars:1,consts:[["role","menu",3,"ngClass","tabindex","keydown","focus","blur",4,"ngIf"],["role","menu",3,"ngClass","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter"]],template:function(n,o){1&n&&g(0,vpe,3,13,"ul",0),2&n&&d("ngIf",!!o.root||o.visible)},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,oo,Kl,Zo,t]},encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0})]),Ln(":leave",[en({opacity:0})])])]}})}return t})(),tO=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}triggerEvent="contextmenu";target;global;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;id;ariaLabel;ariaLabelledBy;onShow=new ge;onHide=new ge;templates;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;container;outsideClickListener;resizeListener;triggerEventListener;documentClickListener;documentTriggerListener;pageX;pageY;visible=bn(!1);relativeAlign;window;focused=!1;activeItemPath=bn([]);focusedItemInfo=bn({index:-1,level:0,parentKey:"",item:null});submenuVisible=bn(!1);searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){const e=this.activeItemPath().find(n=>n.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:-1!==e.index?`${this.id}${be.isNotEmpty(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView,a_(()=>{const c=this.activeItemPath();be.isNotEmpty(c)?this.bindGlobalListeners():this.visible()||this.unbindGlobalListeners()})}ngOnInit(){this.id=this.id||$t(),this.bindTriggerEventListener()}bindTriggerEventListener(){ei(this.platformId)&&(this.triggerEventListener||(this.global?this.triggerEventListener=this.renderer.listen(this.document,this.triggerEvent,e=>{this.show(e)}):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,e=>{this.show(e)}))))}bindGlobalListeners(){if(ei(this.platformId)){if(!this.documentClickListener){const e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&!n.ctrlKey&&2!==n.button&&"click"!==this.triggerEvent&&this.hide()}),this.documentTriggerListener=this.renderer.listen(e,this.triggerEvent,n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&this.hide()})}this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()}))}}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&be.isNotEmpty(e.items)}isSelected(e){return this.activeItemPath().some(n=>n.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&be.isNotEmpty(e.items)}onItemClick(e){const{processedItem:n}=e,o=this.isProcessedItemGroup(n);if(this.isSelected(n)){const{index:r,key:a,level:l,parentKey:c,item:u}=n;this.activeItemPath.set(this.activeItemPath().filter(p=>a!==p.key&&a.startsWith(p.key))),this.focusedItemInfo.set({index:r,level:l,parentKey:c,item:u}),j.focus(this.rootmenu.sublistViewChild.nativeElement)}else o?this.onItemChange(e):this.hide()}onItemMouseEnter(e){this.onItemChange(e)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}onArrowRightKey(e){const n=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(n)&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide(),e.preventDefault()}else{const n=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}}onArrowLeftKey(e){const n=this.visibleItems[this.focusedItemInfo().index],o=this.activeItemPath().find(a=>a.key===n.parentKey);be.isEmpty(n.parent)||(this.focusedItemInfo.set({index:-1,parentKey:o?o.parentKey:"",item:n.item}),this.searchValue="",this.onArrowDownKey(e));const r=this.activeItemPath().filter(a=>a.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(r),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide();const n=this.findVisibleItem(this.findFirstFocusedItemIndex());this.focusedItemInfo.mutate(o=>{o.index=this.findFirstFocusedItemIndex(),o.item=n.item}),e.preventDefault()}onTabKey(e){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()}onEnterKey(e){if(-1!==this.focusedItemInfo().index){const n=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&j.findSingle(n,'a[data-pc-section="action"]');o?o.click():n&&n.click();const s=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(s)||this.focusedItemInfo.mutate(a=>{a.index=this.findFirstFocusedItemIndex()})}e.preventDefault()}onItemChange(e){const{processedItem:n,isFocus:o}=e;if(be.isEmpty(n))return;const{index:s,key:r,level:a,parentKey:l,items:c}=n,u=be.isNotEmpty(c),p=this.activeItemPath().filter(m=>m.parentKey!==l&&m.parentKey!==r);u&&(p.push(n),this.submenuVisible.set(!0)),this.focusedItemInfo.set({index:s,level:a,parentKey:l,item:n.item}),this.activeItemPath.set(p),o&&j.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;const n=-1!==this.focusedItemInfo().index?this.focusedItemInfo():{index:-1,level:0,parentKey:"",item:null};this.focusedItemInfo.set(n)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue=""}onOverlayAnimationStart(e){"visible"===e.toState&&(this.container=e.element,this.position(),this.moveOnTop(),this.appendOverlay(),this.bindGlobalListeners(),this.onShow.emit(),j.focus(this.rootmenu.sublistViewChild.nativeElement))}onOverlayAnimationEnd(e){"void"===e.toState&&this.onOverlayHide()}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.containerViewChild.nativeElement):j.appendChild(this.containerViewChild.nativeElement,this.appendTo))}moveOnTop(){this.autoZIndex&&this.containerViewChild&&Wn.set("menu",this.containerViewChild.nativeElement,this.baseZIndex+this.config.zIndex.menu)}onOverlayHide(){this.unbindGlobalListeners(),this.cd.destroyed||(this.target=null),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.onHide.emit()}hide(){this.visible.set(!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null})}toggle(e){this.visible()?this.hide():this.show(e)}show(e){this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.pageX=e.pageX,this.pageY=e.pageY,this.visible()?this.position():this.visible.set(!0),e.stopPropagation(),e.preventDefault()}position(){let e=this.pageX+1,n=this.pageY+1,o=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetWidth:j.getHiddenElementOuterWidth(this.containerViewChild.nativeElement),s=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetHeight:j.getHiddenElementOuterHeight(this.containerViewChild.nativeElement),r=j.getViewport();e+o-this.document.scrollingElement.scrollLeft>r.width&&(e-=o),n+s-this.document.scrollingElement.scrollTop>r.height&&(n-=s),ethis.isItemMatched(r)),o=-1===o?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(r=>this.isItemMatched(r)):o+this.focusedItemInfo().index):o=this.visibleItems.findIndex(r=>this.isItemMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedItemInfo().index&&(o=this.findFirstFocusedItemIndex()),-1!==o&&this.changeFocusedItemIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}findVisibleItem(e){return be.isNotEmpty(this.visibleItems)?this.visibleItems[e]:null}findLastFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return be.findLastIndex(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){const n=e>0?be.findLastIndex(this.visibleItems.slice(0,e),o=>this.isValidItem(o)):-1;return n>-1?n:e}findNextItemIndex(e){const n=ethis.isValidItem(o)):-1;return n>-1?n+e+1:e}findFirstFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,n){const o=this.findVisibleItem(n);this.focusedItemInfo().index!==n&&(this.focusedItemInfo.mutate(s=>{s.index=n,s.item=o.item}),this.scrollInView())}scrollInView(e=-1){const o=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedItemId}"]`);o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"})}bindResizeListener(){ei(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()})))}isOutsideClicked(e){return!(this.containerViewChild.nativeElement.isSameNode(e.target)||this.containerViewChild.nativeElement.contains(e.target))}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindTriggerEventListener(){this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null)}removeAppendedElements(){this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.containerViewChild.nativeElement):j.removeChild(this.containerViewChild.nativeElement,this.appendTo))}ngOnDestroy(){this.unbindGlobalListeners(),this.unbindTriggerEventListener(),this.removeAppendedElements()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(bpe,5),je(ype,5)),2&n){let s;Se(s=Ee())&&(o.rootmenu=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",triggerEvent:"triggerEvent",target:"target",global:"global",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],["container",""],[3,"root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","visible","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function(n,o){1&n&&g(0,wpe,4,22,"div",0),2&n&&d("ngIf",o.visible())},dependencies:[Ct,gt,Ht,Tpe],styles:["@layer primeng{.p-contextmenu{position:absolute}.p-contextmenu ul{margin:0;padding:0;list-style:none}.p-contextmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1}.p-contextmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-contextmenu .p-menuitem-text{line-height:1}.p-contextmenu .p-menuitem{position:relative}.p-contextmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-contextmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0}),On("250ms")]),Ln(":leave",[On(".1s linear",en({opacity:0}))])])]},changeDetection:0})}return t})(),nO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),Spe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[Hs],imports:[R0,JD,NE,JM,wk,qM,qn,kG,YM,Ek,_v,kk,nO]})}return t})();Dg(Dk,[gt,wl,ch,Is,EC,Ok],[]);const Epe=function(){return["NumberOfActivities"]};let Dpe=(()=>{class t{constructor(){}ngOnInit(){for(let e of this.businessFlows)null!=e.ActivitiesColl&&(e.NumberOfActivities=e.ActivitiesColl.length);this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}],this.businessFlowGeneralDetailsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Business Flow Name"},{field:"Description",header:"Business Flow Description"},{field:"Description",header:"Business Flow Run Description"},{field:"Environment",header:"Environment Used"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"NumberOfActivities",header:"Number Of Activities"},{field:"RunStatus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow-table"]],inputs:{businessFlows:"businessFlows",tableExpenderType:"tableExpenderType"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.businessFlowGeneralDetailsCols)("data",o.businessFlows)("addExpender",!0)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,Epe))},dependencies:[Is]})}return t})(),kpe=(()=>{class t{constructor(){}ngOnInit(){this.title=this.chartTitle,this.data=this.executionData,this.type="PieChart",this.columnNames=["Browser","Percentage"],this.options={pieHole:.7,legend:{position:"labeled"},chartArea:{left:0,height:220,width:400},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"]},this.width=400,this.height=400}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-doughnut"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function Mpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Runner Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.runner.Name)}}function Ope(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runnerDetails)}}function Lpe(t,i){if(1&t&&(x(0,"p-accordionTab",10)(1,"div",11),le(2,"app-google-doughnut",12),A(),le(3,"app-business-flow-table",13),A()),2&t){const e=f();d("selected",!0),h(2),d("executionData",e.runnerData),h(1),d("businessFlows",e.businessFlows)("tableExpenderType",e.tableExpenderType)}}function Ppe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.gingerRunnerAgentMappingCols)("data",e.agentMappings)}}let Fpe=(()=>{class t{constructor(e,n,o,s,r){this.route=e,this.calculatedDataService=n,this._userDataManagerService=o,this.communicatorService=s,this.datePipe=r,this.runnerData=[],this.tableExpenderType=Er.BusinessFlowsActivities,this.gingerRunnerGeneralDetailsData=[],this.agentMappings=[]}ngOnInit(){this.getRunner(),this.businessFlows=this.runner.BusinessFlowsColl;let e=this.calculatedDataService.getRunnerBusinessFlowsExecutionStatusArray(this.runner);this.calculatedDataService.populateChartsData(this.runnerData,e),this.getAgentMapping(),this.gingerRunnerAgentMappingCols=[{field:"TargetApplication",header:"Target Application"},{field:"AgentName",header:"Agents Mapping"}],this.runnerDetails=[{field:"Business Flow Execution Sequence",value:this.runner.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.runner.StartTimeStamp,"short")},{field:"Ginger Runner Name",value:this.runner.Name},{field:"Execution End Time",value:this.datePipe.transform(this.runner.EndTimeStamp,"short")},{field:"Runner Description",value:this.runner.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.runner.Elapsed)},{field:"Ginger Runner Environment Name",value:this.runner.Environment},{field:"Execution Status",value:this.runner.RunStatus},{field:"Number Of Business Flows",value:this.runner.BusinessFlowsColl.length},{field:"Business Flows Execution Rate",value:this.runner.ExecutionRate+"%"},{field:"Business Flows Pass Rate",value:this.runner.PassRate+"%"}]}getAgentMapping(){for(let n of this.runner.ApplicationAgentsMappingList){var e=n.split("_:_");let o=new kK;o.AgentName=e[0],o.TargetApplication=e[1],this.agentMappings.push(o)}}getRunner(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner");this.runner=e.RunnersColl.filter(o=>o.Seq==n)[0]}getStatus(e=!0){if(null!=this.runner&&null!=this.runner.RunStatus)return this.calculatedDataService.getStatusClass(this.runner.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(qs),V(Co),V(Ws),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-runner-report"]],inputs:{runner:"runner"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected",4,"ngIf"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle-o"],[2,"font-weight","bold"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected"],[3,"data"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],["id","chart_div","align","center"],[3,"executionData"],[3,"businessFlows","tableExpenderType"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,Mpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Ope,2,2,"p-accordionTab",2),g(3,Lpe,4,4,"p-accordionTab",3),g(4,Ppe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.runner),h(1),d("multiple",!0),h(1),d("ngIf",o.runnerDetails.length>0),h(1),d("ngIf",o.runnerData.length>0||o.businessFlows.length>0),h(1),d("ngIf",o.agentMappings.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Dpe,kpe]})}return t})();const Rpe=function(){return["NumberOfActions"]};function Npe(t,i){if(1&t&&le(0,"app-table",1),2&t){const e=f();d("cols",e.outputValidationCols)("data",e.outputValidations)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(6,Rpe))}}let Vpe=(()=>{class t{constructor(){}ngOnInit(){this.outputValidationCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group"},{field:"ActivityName",header:"Activity Name"},{field:"ActionName",header:"Action"},{field:"StartTimeStamp",header:"Start Time"},{field:"EndTimeStamp",header:"End Time"},{field:"Elapsed",header:"Duration"},{field:"RunStatus",header:"Status"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["output-validation"]],inputs:{outputValidations:"outputValidations",tableExpenderType:"tableExpenderType",addExpender:"addExpender"},decls:1,vars:1,consts:[[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields",4,"ngIf"],[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&g(0,Npe,1,7,"app-table",0),2&n&&d("ngIf",o.outputValidations.length>0)},dependencies:[gt,Is]})}return t})();function Bpe(t,i){if(1&t&&(x(0,"h4",9),le(1,"span",10),Le(2," Business Flow Report: "),x(3,"span",11),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.businessFlow.Name)}}function Hpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-general-details",13),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.businessFlowDetails)}}function zpe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-activities-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)("tableExpenderType",e.tableExpenderType)("addExpender",!0)}}function jpe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}function Upe(t,i){if(1&t&&(x(0,"p-accordionTab",18),le(1,"output-validation",19),A()),2&t){const e=f();d("selected",!0),h(1),d("outputValidations",e.outputValidations)("tableExpenderType",e.outputValidationtableExpenderType)("addExpender",!0)}}function $pe(t,i){1&t&&(x(0,"div",20),le(1,"div",21),A())}const Kpe=function(t,i){return{hideDiv:t,showDiv:i,"accordion-header":!0}};let Gpe=(()=>{class t{constructor(e,n,o,s,r,a,l,c){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.restServiceObj=s,this.globalVarService=r,this.communicatorService=a,this.reportHelperService=l,this.calculatedDataService=c,this.showScreenshotPanel=!0,this.EntityType="businessflow",this.actions=[],this.outputValidations=new Array,this.tableExpenderType=Er.ActivitiesActions,this.outputValidationtableExpenderType=Er.OutputValidation}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}setScreenshotVisiblity(e){this.showScreenshotPanel=e}paramChanged(){let e;this.getBusinessFlow(),this.totalactivitiesCount=0,this.actions=[],this.outputValidations=[],this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"ActivityGroupName",link:"ag/ag/",param:"ActivityGroupName"}],null!=this.businessFlow.ExternalID&&""!=this.businessFlow.ExternalID&&(e=this.businessFlow.ExternalID),null!=this.businessFlow.ExternalID2&&""!=this.businessFlow.ExternalID&&(e=null!=e?e+" / "+this.businessFlow.ExternalID2:this.businessFlow.ExternalID2),this.businessFlowDetails=[],this.businessFlowDetails=[{field:"Execution Sequence",value:this.businessFlow.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.businessFlow.StartTimeStamp,"short")},{field:"Business Flow Name",value:this.businessFlow.Name},{field:"Execution End Time",value:this.datePipe.transform(this.businessFlow.EndTimeStamp,"short")},{field:"Business Flow Description",value:this.businessFlow.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.businessFlow.Elapsed)},{field:"Business Flow Run Description",value:this.businessFlow.RunDescription},{field:"Execution Status",value:this.businessFlow.RunStatus},{field:"Environment Name",value:this.businessFlow.Environment},{field:"Business Flow Activities Pass Rate",value:this.businessFlow.PassRate+"%"},{field:"Business Flow Activities Execution Rate",value:this.businessFlow.ExecutionRate+"%"}],null!=e&&this.businessFlowDetails.push({field:"Mapped ALM Entity ID",value:e}),null==this.businessFlow.ActivitiesColl||0==this.businessFlow.ActivitiesColl.length?(this.CollectBfActivitiesData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.totalactivitiesCount})):(this.InitActivitieData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.businessFlow.ActivitiesColl.length})),this.communicatorService.onBfActivitiesDataChange.subscribe(n=>{"Last Loading Data"===n&&(this.AddBusinessFlowToRunsetJson(),this.InitActivitieData(),this.hideRepoLoader=!1)}),this.variablesData=this.getVariables()}orderActivites(){this.businessFlow.ActivitiesColl=this.businessFlow.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}AddBusinessFlowToRunsetJson(){this.orderActivites(),this.RunsetJson.RunnersColl.forEach(e=>{e.BusinessFlowsColl.forEach(n=>{n.GUID==this.businessFlow.GUID&&(n.ActivitiesColl=this.businessFlow.ActivitiesColl)})}),this._userDataManagerService.setItemCache(this.RunsetJson)}InitActivitieData(){this.count=1;for(const n of this.businessFlow.ActivitiesColl)n.NumberOfActions=n.ActionsColl.length,n.ActionsColl.forEach(o=>{this.globalVarService.isServerLoading?this.getActionFromServer(o.GUID,n):this.getOutputValidations(o,n)});this.activities=this.businessFlow.ActivitiesColl;const e=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,this.RunsetJson.ExecutionId);this.communicatorService.newMessage(e),e.forEach(n=>{n.items.forEach(o=>{o.items.forEach(s=>{s.id==this.businessFlow.GUID&&(o.expanded=!0,s.expanded=!0)})})})}CollectBfActivitiesData(){this.hideRepoLoader=!0;let e=0;this.businessFlow.ActivitiesGroupsColl.forEach(o=>{this.totalactivitiesCount=this.totalactivitiesCount+o.ExecutedActivitiesGUID.length});const n=this.globalVarService.totalRecPerActivityPull;this.businessFlow.NumberOfActivities=0,this.businessFlow.ActivitiesGroupsColl.forEach(o=>{let s=0;this.businessFlow.ActivitiesColl=[];const r={};r.ExecutionId=this.RunsetJson.ExecutionId,r.ParentId=o.GUID,r.From=s*n,r.Take=n,r.IsLoadActions=!0,this.restServiceObj.GetActivitiesByParent(r).subscribe(a=>{s++;const l=JSON.parse(a.response),c=l.TotalRec;for(this.businessFlow.NumberOfActivities+=c,this.businessFlow.ActivitiesColl.push(...l.ResponseColl),e+=l.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data");s*n{if(p.isSuccsess){const m=JSON.parse(p.response);this.businessFlow.ActivitiesColl.push(...m.ResponseColl),e+=m.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data")}})}})})}checkIfLastRun(e){return e===this.totalactivitiesCount}getActionFromServer(e,n){this.restServiceObj.GetActionById(e).subscribe(s=>{const r=JSON.parse(s.response);this.getOutputValidations(r,n)})}getOutputValidations(e,n){if((e.RunStatus==Lt.Passed||e.RunStatus==Lt.Failed||e.RunStatus==Lt.FailIgnored)&&e.OutputValues&&e.OutputValues.length>0&&e.OutputValues.some(s=>!s.endsWith("NA"))){var o=new LK;o.Seq=this.count++,o.ActionName=e.Name,o.ActivityGroupName=n.ActivityGroupName,o.ActivityName=n.Name,o.StartTimeStamp=e.StartTimeStamp,o.EndTimeStamp=e.EndTimeStamp,o.Elapsed=e.Elapsed,o.RunStatus=e.RunStatus,o.OutputValues=e.OutputValues.filter(s=>!s.endsWith("NA")),this.outputValidations.push(o)}}getActivityGroupName(e){for(const n of this.businessFlow.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}getBusinessFlow(){const e=+this.route.snapshot.paramMap.get("Runner"),n=+this.route.snapshot.paramMap.get("BusinessFlow");this.RunsetJson=this._userDataManagerService.getItemCache();const o=this.RunsetJson.RunnersColl.filter(s=>s.Seq==e)[0];this.businessFlow=o.BusinessFlowsColl.filter(s=>s.Seq==n)[0]}getVariables(){let e=[];if(this.businessFlow.VariablesBeforeExec)for(var n=0;n0&&(s.EndValue=this.businessFlow.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getStatus(e=!0){if(null!=this.businessFlow&&null!=this.businessFlow.RunStatus)return this.calculatedDataService.getStatusClass(this.businessFlow.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ha),V(ms),V(Ws),V(WD),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow"]],inputs:{businessFlow:"businessFlow"},decls:9,vars:15,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIONS SCREENSHOTS",3,"selected","ngClass"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[1,"entityName"],[1,"fa","fa-sitemap"],[2,"font-weight","bold"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected"],[3,"data"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr","tableExpenderType","addExpender"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected"],[3,"outputValidations","tableExpenderType","addExpender"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(g(0,Bpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Hpe,2,2,"p-accordionTab",2),g(3,zpe,2,5,"p-accordionTab",3),x(4,"p-accordionTab",4)(5,"screenshot-carousel",5),me("isScreenshotVisibleEvent",function(r){return o.setScreenshotVisiblity(r)}),A()(),g(6,jpe,2,3,"p-accordionTab",6),g(7,Upe,2,4,"p-accordionTab",7),A(),g(8,$pe,2,0,"div",8)),2&n&&(d("ngIf",o.businessFlow),h(1),d("multiple",!0),h(1),d("ngIf",o.businessFlowDetails.length>0),h(1),d("ngIf",null!=o.activities&&o.activities.length>0),h(1),d("selected",!0)("ngClass",mt(12,Kpe,!1===o.showScreenshotPanel,!0===o.showScreenshotPanel)),h(1),d("EntityType",o.EntityType)("_height",1e3)("_thumbnails",!0),h(1),d("ngIf",o.variablesData.length>0),h(1),d("ngIf",o.outputValidations.length>0),h(1),d("ngIf",o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,Is,EC,Vpe,SC]})}return t})();function qpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Activity Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.activity.Name)}}function Wpe(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityDetails)}}function Qpe(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-actions-table",11),A()),2&t){const e=f();d("selected",!0),h(1),d("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("addExpender",!1)}}function Zpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}let Ype=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a}runAsyncLogic(e){var n=this;return Fu(function*(){const o=yield n.getActivityDataFromServer(e),s=JSON.parse(o.response);n.activity.VariablesAfterExec=s.VariablesAfterExec,n.activity.VariablesBeforeExec=s.VariablesBeforeExec,n.variablesData=n.getVariables()})()}getActivityDataFromServer(e){var n=this;return Fu(function*(){return yield n.restServiceObj.GetActivityById(e)})()}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}paramChanged(){let e;this.getActivity(),null!=this.activity.ExternalID&&""!=this.activity.ExternalID&&(e=this.activity.ExternalID),null!=this.activity.ExternalID2&&""!=this.activity.ExternalID&&(e=null!=e?e+" / "+this.activity.ExternalID2:this.activity.ExternalID2),this.actions=this.activity.ActionsColl,this.variablesData=this.getVariables(),this.activityDetails=[{field:"Execution Sequence",value:this.activity.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.activity.StartTimeStamp,"short")},{field:"Activity Group Name",value:this.activity.ActivityGroupName},{field:"Execution End Time",value:this.datePipe.transform(this.activity.EndTimeStamp,"short")},{field:"Description",value:this.activity.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activity.Elapsed)},{field:"Activity Name",value:this.activity.Name},{field:"Execution Status",value:this.activity.RunStatus},{field:"Actions Pass Rate",value:this.activity.PassRate+"%"},{field:"Actions Execution Rate",value:this.activity.ExecutionRate+"%"},{field:"Number Of Actions",value:this.activity.ActionsColl.length}],null!=e&&this.activityDetails.push({field:"Mapped ALM Entity ID",value:e}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}]}getVariables(){let e=[];if(this.activity.VariablesBeforeExec&&this.activity.VariablesBeforeExec.length>0)for(var n=0;n0&&(s.EndValue=this.activity.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getActivity(){var e=this;return Fu(function*(){const n=+e.route.snapshot.paramMap.get("Runner"),o=+e.route.snapshot.paramMap.get("BusinessFlow"),s=+e.route.snapshot.paramMap.get("Activity"),l=e._userDataManagerService.getItemCache().RunnersColl.filter(c=>c.Seq==n)[0].BusinessFlowsColl.filter(c=>c.Seq==o)[0];e.activity=l.ActivitiesColl.filter(c=>c.Seq==s)[0],e.globalVarService.isServerLoading&&(yield e.runAsyncLogic(e.activity.GUID))})()}getStatus(e=!0){if(null!=this.activity&&null!=this.activity.RunStatus)return this.calculatedDataService.getStatusClass(this.activity.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-report"]],inputs:{activity:"activity"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTIVITY GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bars"],[2,"font-weight","bold"],["header","ACTIVITY GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"actions","fieldsLinksArr","addExpender"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,qpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Wpe,2,2,"p-accordionTab",2),g(3,Qpe,2,4,"p-accordionTab",3),g(4,Zpe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.activity),h(1),d("multiple",!0),h(1),d("ngIf",o.activityDetails.length>0),h(1),d("ngIf",o.actions.length>0),h(1),d("ngIf",o.variablesData.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Ok]})}return t})();function Xpe(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("contextmenu",function(o){const r=G(e).$implicit;return q(f().onContextMenu(o,r.Value,r.Key))})("dblclick",function(){const s=G(e).$implicit;return q(f().DownLoad(s.Value,s.Key))}),le(3,"span",4),x(4,"p",5),Le(5),A()(),le(6,"p-contextMenu",6),Te()}if(2&t){const e=i.$implicit,n=Bt(2),o=f();h(3),d("innerHtml",o.getIcon(e.Value),hr),h(2),dt(e.Key),h(1),d("target",n)("model",o.contextMenuItems)}}let Jpe=(()=>{class t{constructor(e,n,o){this.globalVarService=e,this.activeRoute=o;var s=this.activeRoute.snapshot.queryParamMap.get("ExecutionId");this.globalVarService.artifactPath=s?"artifacts/":null}ngOnInit(){}onContextMenu(e,n,o){this.contextMenuItems=[],this.contextMenuItems.push({label:"Download",icon:"fas fa-external-link-alt",command:()=>this.DownLoad(n,o)})}ViewContent(){}getIcon(e){const o=e.split(".").pop();return oC[o]===oC.json?"":""}DownLoad(e,n){let o=document.createElement("a");o.setAttribute("type","hidden"),o.href=null!=this.globalVarService.artifactPath?this.globalVarService.artifactPath+e:e,o.download=e,o.target="_blank",document.body.appendChild(o),o.click(),o.remove()}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V("environmentObj"),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["artifacts"]],inputs:{action:"action"},decls:2,vars:1,consts:[[1,"grid"],[4,"ngFor","ngForOf"],[1,"col-12","md:col-3","xl:col-2",3,"contextmenu","dblclick"],["art",""],[1,"fileicon",3,"innerHtml"],[1,"text-900","text-lg","font-medium","hideTxt",2,"padding-top","10px"],[3,"target","model"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Xpe,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.action.Artifacts))},dependencies:[Jn,tO],styles:[".hideTxt[_ngcontent-%COMP%]{display:inline-block;width:220px;white-space:pre-line;overflow:hidden!important;text-overflow:ellipsis;line-height:1rem} .fileicon img{font-size:3rem;width:60px} .fileicon i{font-size:6rem}"]})}return t})();function ehe(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Action Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.action.Name)}}function the(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.actionDetails)}}function nhe(t,i){if(1&t&&(x(0,"p-accordionTab",13),le(1,"app-table",14),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.inputValuesCols)("data",e.inputValuesData)}}function ihe(t,i){if(1&t&&(x(0,"p-accordionTab",15),le(1,"app-table",14),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)}}function ohe(t,i){if(1&t){const e=De();x(0,"p-accordionTab",16)(1,"screenshot-carousel",17),me("isScreenshotVisibleEvent",function(o){return G(e),q(f().setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f();d("selected",!0),h(1),d("EntityType",e.EntityType)("_height",1e3)("_thumbnails",!0)}}let she=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a,this.EntityType="action",this.showScreenshotPanel=!0}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.inputValuesCols=[{field:"Name",header:"Name"},{field:"Value",header:"Value"},{field:"CalculatedValue",header:"Calculated Value"}],this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}]}paramChanged(){this.getAction(),this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues(),this.actionDetails=[{field:"Execution Sequence",value:this.action.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.action.StartTimeStamp,"short")},{field:"Action Name",value:this.action.Name},{field:"Execution End Time",value:this.datePipe.transform(this.action.EndTimeStamp,"short")},{field:"Description",value:this.action.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.action.Elapsed)},{field:"Run Description",value:this.action.RunDescription},{field:"Execution Status",value:this.action.RunStatus},{field:"Action Type",value:this.action.ActionType},{field:"Current Retry Iteration",value:this.action.CurrentRetryIteration},{field:"Error Details",value:this.action.Error},{field:"Additional information",value:this.action.ExInfo},{field:"Screenshots",value:this.action.ScreenShots.length}]}getInputValues(){let e=[];for(let n of this.action.InputValues){let o=n.split("_:_"),s=new OK;s.Name=o[0],s.Value=this._userDataManagerService.replaceUnicodeChar(o[1]),s.CalculatedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),e.push(s)}return e}getOutputValues(){let e=[];for(let n of this.action.OutputValues){let o=n.split("_:_"),s=new $D;s.ParameterName=o[0],s.ActualValue=this._userDataManagerService.replaceUnicodeChar(o[1]),s.ExpectedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),s.Status=o[3],e.push(s)}return e}setScreenshotVisiblity(e){this.showScreenshotPanel=e}getAction(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow"),s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");let c=e.RunnersColl.filter(u=>u.Seq==n)[0].BusinessFlowsColl.filter(u=>u.Seq==o)[0].ActivitiesColl.filter(u=>u.Seq==s)[0];this.action=c.ActionsColl.filter(u=>u.Seq==r)[0],this.globalVarService.isServerLoading&&this.getActionFromServer(this.action.GUID)}getActionFromServer(e){this.restServiceObj.GetActionById(e).subscribe(n=>{const o=JSON.parse(n.response);this.action.InputValues=o.InputValues,this.action.OutputValues=o.OutputValues,this.action.FlowControls=o.FlowControls,this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues()})}getStatus(e=!0){if(null!=this.action&&null!=this.action.RunStatus)return this.calculatedDataService.getStatusClass(this.action.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-action-report"]],inputs:{action:"action"},decls:8,vars:8,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected"],[3,"action"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bolt"],[2,"font-weight","bold"],["header","ACTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"]],template:function(n,o){1&n&&(g(0,ehe,5,4,"h4",0),x(1,"p-accordion",1),g(2,the,2,2,"p-accordionTab",2),g(3,nhe,2,3,"p-accordionTab",3),g(4,ihe,2,3,"p-accordionTab",4),x(5,"p-accordionTab",5),le(6,"artifacts",6),A(),g(7,ohe,2,4,"p-accordionTab",7),A()),2&n&&(d("ngIf",o.action),h(1),d("multiple",!0),h(1),d("ngIf",o.actionDetails.length>0),h(1),d("ngIf",!!o.action.InputValues&&o.action.InputValues.length),h(1),d("ngIf",!!o.action.OutputValues&&o.action.OutputValues.length),h(1),d("selected",!0),h(1),d("action",o.action),h(1),d("ngIf",!!o.action.ScreenShots&&o.action.ScreenShots.length))},dependencies:[Ct,gt,ga,fa,Ul,Is,SC,Jpe]})}return t})();function rhe(t,i){if(1&t&&(x(0,"p-accordionTab",4),le(1,"app-general-details",5),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityGroupDetails)}}function ahe(t,i){if(1&t&&(x(0,"p-accordionTab",6),le(1,"app-activities-table",7),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)}}const uhe=qn.forRoot([{path:"",component:Mk},{path:"BusinessFlow/:ExecutionId/:BusinessFlowId",component:Mk},{path:":Runner",component:Fpe},{path:":Runner/:BusinessFlow",component:Gpe},{path:":Runner/:BusinessFlow/ag/ag/:ActivityGroupName",component:(()=>{class t{constructor(e,n,o){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.activities=[]}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()})}paramChanged(){let e;this.getActivityGroupByName(),null!=this.activityGroup.ExternalID&&""!=this.activityGroup.ExternalID&&(e=this.activityGroup.ExternalID),null!=this.activityGroup.ExternalID2&&""!=this.activityGroup.ExternalID&&(e=null!=e?e+" / "+this.activityGroup.ExternalID2:this.activityGroup.ExternalID2),this.activityGroupDetails=[{field:"Activity Group Name",value:this.activityGroup.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.activityGroup.StartTimeStamp,"short")},{field:"Description",value:this.activityGroup.Description},{field:"Execution End Time",value:this.datePipe.transform(this.activityGroup.EndTimeStamp,"short")},{field:"Automation Percentage",value:this.activityGroup.AutomationPercentage},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activityGroup.Elapsed)},{field:"Execution Status",value:this.activityGroup.RunStatus}],null!=e&&this.activityGroupDetails.push({field:"Mapped ALM Entity ID",value:e});for(let n of this.businessFlow.ActivitiesGroupsColl)if(n.Name==this.activityGroupName)for(let o of this.businessFlow.ActivitiesColl)n.ExecutedActivitiesGUID.includes(o.GUID)&&(o.ActivityGroupName=n.Name,o.NumberOfActions=o.ActionsColl.length,this.activities.push(o));this.fieldsLinksArr=[{field:"Name",link:"../../../",param:"Seq"}]}getActivityGroupByName(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");this.activityGroupName=this.route.snapshot.paramMap.get("ActivityGroupName");let s=e.RunnersColl.filter(r=>r.Seq==n)[0];this.businessFlow=s.BusinessFlowsColl.filter(r=>r.Seq==o)[0],this.activityGroup=this.businessFlow.ActivitiesGroupsColl.filter(r=>r.Name==this.activityGroupName)[0]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-group-report"]],decls:6,vars:3,consts:[[1,"fa","fa-fw","fa-exclamation-circle"],[3,"multiple"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr"]],template:function(n,o){1&n&&(x(0,"h4"),le(1,"span",0),Le(2," Activity Group Report"),A(),x(3,"p-accordion",1),g(4,rhe,2,2,"p-accordionTab",2),g(5,ahe,2,3,"p-accordionTab",3),A()),2&n&&(h(3),d("multiple",!0),h(1),d("ngIf",o.activityGroupDetails.length>0),h(1),d("ngIf",o.activities.length>0))},dependencies:[Ct,gt,ga,fa,Ul,EC]})}return t})()},{path:":Runner/:BusinessFlow/:Activity",component:Ype},{path:":Runner/:BusinessFlow/:Activity/:Action",component:she}],{scrollPositionRestoration:"enabled"});let ir=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const dhe=["container"],phe=["focusInput"],hhe=["multiIn"],fhe=["multiContainer"],ghe=["ddBtn"],mhe=["items"],_he=["scroller"],Ihe=["overlay"];function Che(t,i){if(1&t){const e=De();x(0,"input",12,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()}if(2&t){const e=f();Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("type",e.type)("autocomplete",e.autocomplete)("required",e.required)("name",e.name)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("value",e.inputValue())("id",e.inputId)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function vhe(t,i){if(1&t){const e=De();x(0,"TimesIcon",16),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-autocomplete-clear-icon"),K("aria-hidden",!0))}function bhe(t,i){}function yhe(t,i){1&t&&g(0,bhe,0,0,"ng-template")}function xhe(t,i){if(1&t){const e=De();x(0,"span",17),me("click",function(){return G(e),q(f(2).clear())}),g(1,yhe,1,0,null,9),A()}if(2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function Ahe(t,i){if(1&t&&(we(0),g(1,vhe,1,2,"TimesIcon",14),g(2,xhe,2,2,"span",15),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function whe(t,i){1&t&&ze(0)}function The(t,i){if(1&t&&(x(0,"span",30),Le(1),A()),2&t){const e=f().$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function She(t,i){1&t&&le(0,"TimesCircleIcon",31),2&t&&(d("styleClass","p-autocomplete-token-icon"),K("aria-hidden",!0))}function Ehe(t,i){}function Dhe(t,i){1&t&&g(0,Ehe,0,0,"ng-template")}function khe(t,i){if(1&t&&(x(0,"span",32),g(1,Dhe,1,0,null,9),A()),2&t){const e=f(3);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeIconTemplate)}}const Mhe=function(t){return{"p-autocomplete-token":!0,"p-focus":t}},Iv=function(t){return{$implicit:t}};function Ohe(t,i){if(1&t){const e=De();x(0,"li",23,24),g(2,whe,1,0,"ng-container",25),g(3,The,2,1,"span",26),x(4,"span",27),me("click",function(o){const r=G(e).index;return q(f(2).removeOption(o,r))}),g(5,She,1,2,"TimesCircleIcon",28),g(6,khe,2,2,"span",29),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",He(11,Mhe,o.focusedMultipleOptionIndex()===n)),K("id",o.id+"_multiple_option_"+n)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",n+1)("aria-selected",!0),h(2),d("ngTemplateOutlet",o.selectedItemTemplate)("ngTemplateOutletContext",He(13,Iv,e)),h(1),d("ngIf",!o.selectedItemTemplate),h(2),d("ngIf",!o.removeIconTemplate),h(1),d("ngIf",o.removeIconTemplate)}}function Lhe(t,i){if(1&t){const e=De();x(0,"ul",18,19),me("focus",function(o){return G(e),q(f().onMultipleContainerFocus(o))})("blur",function(o){return G(e),q(f().onMultipleContainerBlur(o))})("keydown",function(o){return G(e),q(f().onMultipleContainerKeyDown(o))}),g(2,Ohe,7,15,"li",20),x(3,"li",21)(4,"input",22,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()()()}if(2&t){const e=f();Ve(e.multiContainerClass),d("tabindex",-1),K("aria-orientation","horizontal")("aria-activedescendant",e.focused?e.focusedMultipleOptionId:void 0),h(2),d("ngForOf",e.modelValue()),h(2),Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("autocomplete",e.autocomplete)("required",e.required)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("type",e.type)("id",e.inputId)("name",e.name)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function Phe(t,i){1&t&&le(0,"SpinnerIcon",35),2&t&&(d("styleClass","p-autocomplete-loader")("spin",!0),K("aria-hidden",!0))}function Fhe(t,i){}function Rhe(t,i){1&t&&g(0,Fhe,0,0,"ng-template")}function Nhe(t,i){if(1&t&&(x(0,"span",36),g(1,Rhe,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function Vhe(t,i){if(1&t&&(we(0),g(1,Phe,1,3,"SpinnerIcon",33),g(2,Nhe,2,2,"span",34),Te()),2&t){const e=f();h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function Bhe(t,i){1&t&&le(0,"span",40),2&t&&(d("ngClass",f(2).dropdownIcon),K("aria-hidden",!0))}function Hhe(t,i){1&t&&le(0,"ChevronDownIcon")}function zhe(t,i){}function jhe(t,i){1&t&&g(0,zhe,0,0,"ng-template")}function Uhe(t,i){if(1&t&&(we(0),g(1,Hhe,1,0,"ChevronDownIcon",3),g(2,jhe,1,0,null,9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.dropdownIconTemplate),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function $he(t,i){if(1&t){const e=De();x(0,"button",37,38),me("click",function(o){return G(e),q(f().handleDropdownClick(o))}),g(2,Bhe,1,2,"span",39),g(3,Uhe,3,2,"ng-container",3),A()}if(2&t){const e=f();d("disabled",e.disabled),K("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),h(2),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Khe(t,i){1&t&&ze(0)}function Ghe(t,i){1&t&&ze(0)}const iO=function(t,i){return{$implicit:t,options:i}};function qhe(t,i){if(1&t&&g(0,Ghe,1,0,"ng-container",25),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(14))("ngTemplateOutletContext",mt(2,iO,e,n))}}function Whe(t,i){1&t&&ze(0)}const Qhe=function(t){return{options:t}};function Zhe(t,i){if(1&t&&g(0,Whe,1,0,"ng-container",25),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,Qhe,e))}}function Yhe(t,i){1&t&&(we(0),g(1,Zhe,1,4,"ng-template",44),Te())}const tg=function(t){return{height:t}};function Xhe(t,i){if(1&t){const e=De();x(0,"p-scroller",41,42),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,qhe,1,5,"ng-template",43),g(3,Yhe,2,0,"ng-container",3),A()}if(2&t){const e=f();yn(He(8,tg,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function Jhe(t,i){1&t&&ze(0)}const efe=function(){return{}};function tfe(t,i){if(1&t&&(we(0),g(1,Jhe,1,0,"ng-container",25),Te()),2&t){const e=f(),n=Bt(14);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,iO,e.visibleOptions(),Jt(2,efe)))}}function nfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function ife(t,i){1&t&&ze(0)}function ofe(t,i){if(1&t&&(we(0),x(1,"li",50),g(2,nfe,2,1,"span",3),g(3,ife,1,0,"ng-container",25),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,tg,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Iv,o.optionGroup))}}function sfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function rfe(t,i){1&t&&ze(0)}const afe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},lfe=function(t,i){return{$implicit:t,index:i}};function cfe(t,i){if(1&t){const e=De();we(0),x(1,"li",51),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionSelect(o,s))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),g(2,sfe,2,1,"span",3),g(3,rfe,1,0,"ng-container",25),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,tg,s.itemSize+"px"))("ngClass",Rn(14,afe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("data-p-focused",r.focusedOptionIndex()===r.getOptionIndex(o,s))("aria-setsize",r.ariaSetSize)("aria-posinset",r.getAriaPosInset(r.getOptionIndex(o,s))),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,lfe,n,s.getOptions?s.getOptions(o):o))}}function ufe(t,i){if(1&t&&(g(0,ofe,4,9,"ng-container",3),g(1,cfe,4,21,"ng-container",3)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function dfe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.searchResultMessageText," ")}}function pfe(t,i){1&t&&ze(0,null,54)}function hfe(t,i){if(1&t&&(x(0,"li",52),g(1,dfe,2,1,"ng-container",53),g(2,pfe,2,0,"ng-container",9),A()),2&t){const e=f().options,n=f();d("ngStyle",He(4,tg,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function ffe(t,i){1&t&&ze(0)}function gfe(t,i){if(1&t&&(x(0,"ul",45,46),g(2,ufe,2,2,"ng-template",47),g(3,hfe,3,6,"li",48),A(),g(4,ffe,1,0,"ng-container",25),x(5,"span",49),Le(6),A()),2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",!e||e&&0===e.length&&o.showEmptyMessage),h(1),d("ngTemplateOutlet",o.footerTemplate)("ngTemplateOutletContext",He(9,Iv,e)),h(2),Pt(" ",o.selectedMessageText," ")}}const mfe={provide:un,useExisting:ft(()=>_fe),multi:!0};let _fe=(()=>{class t{document;el;renderer;cd;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;optionDisabled;focusOnHover;completeMethod=new ge;onSelect=new ge;onUnselect=new ge;onFocus=new ge;onBlur=new ge;onDropdownClick=new ge;onClear=new ge;onKeyUp=new ge;onShow=new ge;onHide=new ge;onLazyLoad=new ge;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions=bn(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;filled;loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=bn(null);focusedMultipleOptionIndex=bn(-1);focusedOptionIndex=bn(-1);visibleOptions=Ds(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=Ds(()=>{const e=this.modelValue();return this.filled=be.isNotEmpty(this.modelValue()),e?"object"==typeof e?this.getOptionLabel(e)??e:e:""});get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue()||be.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return"p-autocomplete-multiple-container p-component p-inputtext"}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return be.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.config=r,this.overlayService=a,this.zone=l}ngOnInit(){this.id=this.id||$t()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"removetokenicon":this.removeIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}handleSuggestionsChange(){if(this.loading){this._suggestions()||this.emptyTemplate?this.show():this.hide();const e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){return be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,n){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===n.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return this.multiple?e.target===this.multiContainerEL.nativeElement||this.multiContainerEL.nativeElement.contains(e.target):e.target===this.inputEL.nativeElement}isDropdownClicked(e){return!!this.dropdownButton?.nativeElement&&(e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target))}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&j.focus(this.inputEL.nativeElement)}handleDropdownClick(e){let n;this.overlayVisible?this.hide(!0):(j.focus(this.inputEL.nativeElement),n=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,n,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:n})}onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let n=e.target.value;this.multiple||this.updateModel(n),0!==n.length||this.multiple?n.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,n,"input")},this.delay)):this.hide():(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2))}onInputChange(e){if(this.forceSelection){let n=!1;if(this.visibleOptions()){const o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));void 0!==o&&(n=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}n||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}}onArrowDownKey(e){if(!this.overlayVisible)return;const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){const n=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(be.isEmpty(n.value)&&this.hasSelectedOption()?(j.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){const{currentTarget:n}=e;n.setSelectionRange(0,e.shiftKey?n.value.length:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){const{currentTarget:n}=e,o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(be.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){const n=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:n})}e.stopPropagation()}}onArrowLeftKeyOnMultiple(e){const n=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(n)}onArrowRightKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex();n++,this.focusedMultipleOptionIndex.set(n),n>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),j.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,n,o=!0){const s=this.getOptionValue(n);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(n)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:n}),o&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}search(e,n,o){null!=n&&("input"===o&&0===n.trim().length||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:n})))}removeOption(e,n){const o=this.modelValue()[n],s=this.modelValue().filter((r,a)=>a!==n).map(r=>this.getOptionValue(r));this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),j.focus(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.value&&this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=this.multiple?"":this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions()[n],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.inputEL.nativeElement),e&&j.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){const n=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&j.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{n()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.filled=!(!this.value||!this.value.length),this.updateModel(e),this.cd.markForCheck()}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?be.resolveFieldData(e,this.field||this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState&&(this.itemsWrapper=j.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ki),V(Dr),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-autoComplete"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(dhe,5),je(phe,5),je(hhe,5),je(fhe,5),je(ghe,5),je(mhe,5),je(_he,5),je(Ihe,5)),2&n){let s;Se(s=Ee())&&(o.containerEL=s.first),Se(s=Ee())&&(o.inputEL=s.first),Se(s=Ee())&&(o.multiInputEl=s.first),Se(s=Ee())&&(o.multiContainerEL=s.first),Se(s=Ee())&&(o.dropdownButton=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused&&!o.disabled||o.autofocus||o.overlayVisible)("p-autocomplete-clearable",o.showClear&&!o.disabled)},inputs:{minLength:"minLength",delay:"delay",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:"readonly",disabled:"disabled",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",maxlength:"maxlength",name:"name",required:"required",size:"size",appendTo:"appendTo",autoHighlight:"autoHighlight",forceSelection:"forceSelection",type:"type",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:"unique",group:"group",completeOnFocus:"completeOnFocus",showClear:"showClear",field:"field",dropdown:"dropdown",showEmptyMessage:"showEmptyMessage",dropdownMode:"dropdownMode",multiple:"multiple",tabindex:"tabindex",dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:"autofocus",autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",optionDisabled:"optionDisabled",focusOnHover:"focusOnHover"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[yt([mfe])],decls:15,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["focusInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"tabindex","focus","blur","keydown"],["multiContainer",""],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"autofocus","ngClass","ngStyle","autocomplete","required","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["role","option",3,"ngClass"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"disabled","click"],["ddBtn",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"ngStyle","ngClass","click","mouseenter"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,Che,2,23,"input",2),g(3,Ahe,3,2,"ng-container",3),g(4,Lhe,6,28,"ul",4),g(5,Vhe,3,2,"ng-container",3),g(6,$he,4,5,"button",5),x(7,"p-overlay",6,7),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),x(9,"div",8),g(10,Khe,1,0,"ng-container",9),g(11,Xhe,4,10,"p-scroller",10),g(12,tfe,2,6,"ng-container",3),g(13,gfe,7,11,"ng-template",null,11,In),A()()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),h(2),d("ngIf",!o.multiple),h(1),d("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),h(1),d("ngIf",o.multiple),h(1),d("ngIf",o.loading),h(1),d("ngIf",o.dropdown),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions),h(2),Ve(o.panelStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight),d("ngClass",o.panelClass)("ngStyle",o.panelStyle),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,hf,oo,Bu,uC,ir,_s,mn,bi]},styles:["@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:-moz-fit-content;width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Ife=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Zs,Mi,Qe,dn,Oi,gf,ir,_s,mn,bi,$l,Qe,Oi,gf]})}return t})(),oO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["HomeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4175 6.79971C13.2874 6.80029 13.1608 6.75807 13.057 6.67955L12.4162 6.19913V12.6073C12.4141 12.7659 12.3502 12.9176 12.2379 13.0298C12.1257 13.142 11.9741 13.206 11.8154 13.208H8.61206C8.61179 13.208 8.61151 13.208 8.61123 13.2081C8.61095 13.208 8.61068 13.208 8.6104 13.208H5.41076C5.40952 13.208 5.40829 13.2081 5.40705 13.2081C5.40581 13.2081 5.40458 13.208 5.40334 13.208H2.20287C2.04418 13.206 1.89257 13.142 1.78035 13.0298C1.66813 12.9176 1.60416 12.7659 1.60209 12.6073V6.19914L0.961256 6.67955C0.833786 6.77515 0.673559 6.8162 0.515823 6.79367C0.358086 6.77114 0.215762 6.68686 0.120159 6.55939C0.0245566 6.43192 -0.0164931 6.2717 0.00604063 6.11396C0.0285744 5.95622 0.112846 5.8139 0.240316 5.7183L1.83796 4.52007L1.84689 4.51337L6.64868 0.912027C6.75267 0.834032 6.87915 0.79187 7.00915 0.79187C7.13914 0.79187 7.26562 0.834032 7.36962 0.912027L12.1719 4.51372L12.1799 4.51971L13.778 5.7183C13.8943 5.81278 13.9711 5.94732 13.9934 6.09553C14.0156 6.24373 13.9816 6.39489 13.8981 6.51934C13.8471 6.60184 13.7766 6.67054 13.6928 6.71942C13.609 6.76831 13.5144 6.79587 13.4175 6.79971ZM6.00783 12.0065H8.01045V7.60074H6.00783V12.0065ZM9.21201 12.0065V6.99995C9.20994 6.84126 9.14598 6.68965 9.03375 6.57743C8.92153 6.46521 8.76992 6.40124 8.61123 6.39917H5.40705C5.24836 6.40124 5.09675 6.46521 4.98453 6.57743C4.8723 6.68965 4.80834 6.84126 4.80627 6.99995V12.0065H2.80366V5.29836L7.00915 2.14564L11.2146 5.29836V12.0065H9.21201Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qi,oO,Qe,qn,Nn,Qe]})}return t})(),cge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),Oge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Qi,Mr,bi,ff,Xe,Qe]})}return t})();const Lge=["input"];function Pge(t,i){1&t&&le(0,"span",10),2&t&&(d("ngClass",f(3).checkboxIcon),K("data-pc-section","icon"))}function Fge(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","icon"))}function Rge(t,i){if(1&t&&(we(0),g(1,Pge,1,2,"span",8),g(2,Fge,1,2,"CheckIcon",9),Te()),2&t){const e=f(2);h(1),d("ngIf",e.checkboxIcon),h(1),d("ngIf",!e.checkboxIcon)}}function Nge(t,i){}function Vge(t,i){1&t&&g(0,Nge,0,0,"ng-template")}function Bge(t,i){if(1&t&&(x(0,"span",12),g(1,Vge,1,0,null,13),A()),2&t){const e=f(2);K("data-pc-section","icon"),h(1),d("ngTemplateOutlet",e.checkboxIconTemplate)}}function Hge(t,i){if(1&t&&(we(0),g(1,Rge,3,2,"ng-container",5),g(2,Bge,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkboxIconTemplate),h(1),d("ngIf",e.checkboxIconTemplate)}}const zge=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function jge(t,i){if(1&t){const e=De();x(0,"label",14),me("click",function(o){return G(e),q(f().onClick(o))}),Le(1),A()}if(2&t){const e=f();Ve(e.labelStyleClass),d("ngClass",Rn(6,zge,e.checked(),e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),Pt(" ",e.label,"")}}const Uge=function(t,i,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},$ge=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},Kge={provide:un,useExisting:ft(()=>Gge),multi:!0};let Gge=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new ge;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()&&(this.checkboxIconTemplate=e.template)})}onClick(e){if(!this.disabled&&!this.readonly){let n;this.inputViewChild.nativeElement.focus(),this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(o=>!be.equals(o,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:be.contains(this.value,this.model)}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-checkbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Lge,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([Kge])],decls:7,vars:35,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"value","checked","disabled","readonly","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,Hge,3,2,"ng-container",5),A()(),g(6,jge,2,10,"label",6)),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(27,Uge,o.checked(),o.disabled,o.focused)),K("data-pc-name","checkbox")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("value",o.value)("checked",o.checked())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("name",o.name)("tabindex",o.tabindex)("required",o.required)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-checked",o.checked())("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(31,$ge,o.checked(),o.disabled,o.focused)),K("data-p-highlight",o.checked())("data-p-disabled",o.disabled)("data-p-focused",o.focused)("data-pc-section","input"),h(1),d("ngIf",o.checked()),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return t})(),qge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,Qe]})}return t})();const Wge=["inputtext"],Qge=["container"];function Zge(t,i){1&t&&ze(0)}function Yge(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f().$implicit,n=f();K("data-pc-section","label"),h(1),dt(n.field?n.resolveFieldData(e,n.field):e)}}function Xge(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",15),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),A()}2&t&&(d("styleClass","p-chips-token-icon"),K("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function Jge(t,i){}function eme(t,i){1&t&&g(0,Jge,0,0,"ng-template")}function tme(t,i){if(1&t){const e=De();x(0,"span",16),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),g(1,eme,1,0,null,17),A()}if(2&t){const e=f(3);K("data-pc-section","removeTokenIcon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function nme(t,i){if(1&t&&(we(0),g(1,Xge,1,3,"TimesCircleIcon",13),g(2,tme,2,3,"span",14),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}const ime=function(t){return{"p-chips-token":!0,"p-focus":t}},ome=function(t){return{$implicit:t}};function sme(t,i){if(1&t){const e=De();x(0,"li",8,9),me("click",function(o){const r=G(e).$implicit;return q(f().onItemClick(o,r))}),g(2,Zge,1,0,"ng-container",10),g(3,Yge,2,2,"span",11),g(4,nme,3,2,"ng-container",7),A()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",He(12,ime,o.focusedIndex===n)),K("id",o.id+"_chips_item_"+n)("ariaLabel",e)("aria-selected",!0)("aria-setsize",o.value.length)("aria-pointset",n+1)("data-p-focused",o.focusedIndex===n)("data-pc-section","token"),h(2),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",He(14,ome,e)),h(1),d("ngIf",!o.itemTemplate),h(1),d("ngIf",!o.disabled)}}function rme(t,i){if(1&t){const e=De();x(0,"TimesIcon",15),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&d("styleClass","p-chips-clear-icon")}function ame(t,i){}function lme(t,i){1&t&&g(0,ame,0,0,"ng-template")}function cme(t,i){if(1&t){const e=De();x(0,"span",19),me("click",function(){return G(e),q(f(2).clear())}),g(1,lme,1,0,null,17),A()}if(2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function ume(t,i){if(1&t&&(x(0,"li"),g(1,rme,1,1,"TimesIcon",13),g(2,cme,2,1,"span",18),A()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const dme=function(t,i,e,n){return{"p-chips p-component p-input-wrapper":!0,"p-disabled":t,"p-focus":i,"p-inputwrapper-filled":e,"p-inputwrapper-focus":n}},pme=function(){return{"p-inputtext p-chips-multiple-container":!0}},hme=function(t){return{"p-chips-clearable":t}},fme={provide:un,useExisting:ft(()=>gme),multi:!0};let gme=(()=>{class t{document;el;cd;style;styleClass;disabled;field;placeholder;max;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;onAdd=new ge;onRemove=new ge;onFocus=new ge;onBlur=new ge;onChipClick=new ge;onClear=new ge;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=$t();focused;focusedIndex;filled;get focusedOptionId(){return null!==this.focusedIndex?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(e,n,o){this.document=e,this.el=n,this.cd=o}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template}}),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(e)}}onArrowLeftKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex=null===this.focusedIndex?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(e){null!==this.focusedIndex&&this.removeItem(e,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(e){this.disabled||(this.separator&&((e.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(o=>{this.addItem(e,o,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){this.filled=!(!this.value||0===this.value.length)||this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(e,n){this.onChipClick.emit({originalEvent:e,value:n})}writeValue(e){this.value=e,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}resolveFieldData(e,n){if(e&&n){if(-1==n.indexOf("."))return e[n];{let r=n.split("."),a=e;for(var o=0,s=r.length;or!=n),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:e,value:o}),this.updateFilledState(),this.updateMaxedOut()}addItem(e,n,o){this.value=this.value||[],n&&n.trim().length&&(this.allowDuplicate||-1===this.value.indexOf(n))&&!this.isMaxedOut&&(this.value=[...this.value,n],this.onModelChange(this.value),this.onAdd.emit({originalEvent:e,value:n})),this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",o&&e.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(e){const n=e.target.value;switch(e.code){case"Backspace":0===n.length&&this.value&&this.value.length>0&&this.removeItem(e,null!==this.focusedIndex?this.focusedIndex:this.value.length-1);break;case"Enter":n&&n.trim().length&&!this.isMaxedOut&&this.addItem(e,n,!0);break;case"ArrowLeft":0===n.length&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":e.stopPropagation();break;default:this.separator&&(this.separator===e.key||e.key.match(this.separator))&&this.addItem(e,n,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-chips"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(Wge,5),je(Qge,5)),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-chips-clearable",o.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[yt([fme])],decls:8,vars:31,consts:[[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"ngClass","click","focus","blur","keydown"],["container",""],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text",3,"disabled","ngStyle","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],["role","option",3,"ngClass","click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"ul",1,2),me("click",function(){return o.onWrapperClick()})("focus",function(){return o.onContainerFocus()})("blur",function(){return o.onContainerBlur()})("keydown",function(r){return o.onContainerKeyDown(r)}),g(3,sme,5,16,"li",3),x(4,"li",4)(5,"input",5,6),me("keydown",function(r){return o.onKeyDown(r)})("input",function(){return o.onInput()})("paste",function(r){return o.onPaste(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A()(),g(7,ume,3,2,"li",7),A()()),2&n&&(Ve(o.styleClass),d("ngClass",gr(23,dme,o.disabled,o.focused,o.value&&o.value.length||(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value)&&(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value.length),o.focused))("ngStyle",o.style),K("data-pc-name","chips")("data-pc-section","root"),h(1),d("ngClass",Jt(28,pme)),K("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),h(2),d("ngForOf",o.value),h(1),d("ngClass",He(29,hme,o.showClear&&!o.disabled)),K("data-pc-section","inputToken"),h(1),Ve(o.inputStyleClass),d("disabled",o.disabled||o.isMaxedOut)("ngStyle",o.inputStyle),K("id",o.inputId)("placeholder",o.value&&o.value.length?null:o.placeholder)("tabindex",o.tabindex),h(2),d("ngIf",null!=o.value&&o.filled&&!o.disabled&&o.showClear))},dependencies:function(){return[Ct,Jn,gt,on,Ht,ir,mn]},styles:["@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),mme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Qe,ir,mn,Zs,Qe]})}return t})();Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}",en({transform:"none",opacity:1}))]),Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Xme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,dn,mn,yi,Mi,Qe]})}return t})();const Jme=["container"],e_e=["input"],t_e=["colorSelector"],n_e=["colorHandle"],i_e=["hue"],o_e=["hueHandle"],s_e=function(t){return{"p-disabled":t}};function r_e(t,i){if(1&t){const e=De();x(0,"input",4,5),me("click",function(){return G(e),q(f().onInputClick())})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("focus",function(){return G(e),q(f().onInputFocus())}),A()}if(2&t){const e=f();fo("background-color",e.inputBgColor),d("ngClass",He(7,s_e,e.disabled))("disabled",e.disabled),K("tabindex",e.tabindex)("id",e.inputId)("data-pc-section","input")}}const a_e=function(t,i){return{"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":t,"p-disabled":i}},l_e=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},c_e=function(t){return{value:"visible",params:t}};function u_e(t,i){if(1&t){const e=De();x(0,"div",6),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(1,"div",7)(2,"div",8,9),me("touchstart",function(o){return G(e),q(f().onColorDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())})("mousedown",function(o){return G(e),q(f().onColorMousedown(o))}),x(4,"div",10),le(5,"div",11,12),A()(),x(7,"div",13,14),me("mousedown",function(o){return G(e),q(f().onHueMousedown(o))})("touchstart",function(o){return G(e),q(f().onHueDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())}),le(9,"div",15,16),A()()()}if(2&t){const e=f();d("ngClass",mt(10,a_e,!e.inline,e.disabled))("@overlayAnimation",He(16,c_e,mt(13,l_e,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("data-pc-section","panel"),h(1),K("data-pc-section","content"),h(1),K("data-pc-section","selector"),h(2),K("data-pc-section","color"),h(1),K("data-pc-section","colorHandle"),h(2),K("data-pc-section","hue"),h(2),K("data-pc-section","hueHandle")}}const d_e=function(t,i){return{"p-colorpicker p-component":!0,"p-colorpicker-overlay":t,"p-colorpicker-dragging":i}},p_e={provide:un,useExisting:ft(()=>h_e),multi:!0};let h_e=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;style;styleClass;inline;format="hex";appendTo;disabled;tabindex;inputId;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onChange=new ge;onShow=new ge;onHide=new ge;containerViewChild;inputViewChild;value={h:0,s:100,b:100};inputBgColor;shown;overlayVisible;defaultColor="ff0000";onModelChange=()=>{};onModelTouched=()=>{};documentClickListener;documentResizeListener;documentMousemoveListener;documentMouseupListener;documentHueMoveListener;scrollHandler;selfClick;colorDragging;hueDragging;overlay;colorSelectorViewChild;colorHandleViewChild;hueViewChild;hueHandleViewChild;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueDragStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorDragStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,n){let o=n?n.pageY:e.pageY,s=this.hueViewChild?.nativeElement.getBoundingClientRect().top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,o-s)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onDrag(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,n){let o=n?n.pageX:e.pageX,s=n?n.pageY:e.pageY,r=this.colorSelectorViewChild?.nativeElement.getBoundingClientRect(),a=r.top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0),c=Math.floor(100*Math.max(0,Math.min(150,o-(r.left+this.document.body.scrollLeft)))/150),u=Math.floor(100*(150-Math.max(0,Math.min(150,s-a)))/150);this.value=this.validateHSB({h:this.value.h,s:c,b:u}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){const e={s:100,b:100};e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild?.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inline||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&Wn.clear(e.element),this.onHide.emit({})}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):j.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.overlay)}alignOverlay(){this.appendTo?j.absolutePosition(this.overlay,this.inputViewChild?.nativeElement):j.relativePosition(this.overlay,this.inputViewChild?.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.code){case"Space":this.togglePanel(),e.preventDefault();break;case"Escape":case"Tab":this.hide()}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){this.documentMousemoveListener||(this.documentMousemoveListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousemove",n=>{this.colorDragging&&this.pickColor(n),this.hueDragging&&this.pickHue(n)}))}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){this.documentMouseupListener||(this.documentMouseupListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}))}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var n=6-e.length;if(n>0){for(var o=[],s=0;s-1?e.substring(1):e,16);return{r:n>>16,g:(65280&n)>>8,b:255&n}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var n={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),s=Math.max(e.r,e.g,e.b),r=s-o;return n.b=s,n.s=0!=s?255*r/s:0,n.h=0!=n.s?e.r==s?(e.g-e.b)/r:e.g==s?2+(e.b-e.r)/r:4+(e.r-e.g)/r:-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n}HSBtoRGB(e){var n={r:0,g:0,b:0};let o=e.h,s=255*e.s/100,r=255*e.b/100;if(0==s)n={r,g:r,b:r};else{let a=r,l=(255-s)*r/255,c=o%60*(a-l)/60;360==o&&(o=0),o<60?(n.r=a,n.b=l,n.g=l+c):o<120?(n.g=a,n.b=l,n.r=a-c):o<180?(n.g=a,n.r=l,n.b=l+c):o<240?(n.b=a,n.r=l,n.g=a-c):o<300?(n.b=a,n.g=l,n.r=l+c):o<360?(n.r=a,n.g=l,n.b=a-c):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}RGBtoHEX(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var o in n)1==n[o].length&&(n[o]="0"+n[o]);return n.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-colorPicker"]],viewQuery:function(n,o){if(1&n&&(je(Jme,5),je(e_e,5),je(t_e,5),je(n_e,5),je(i_e,5),je(o_e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.colorSelector=s.first),Se(s=Ee())&&(o.colorHandle=s.first),Se(s=Ee())&&(o.hue=s.first),Se(s=Ee())&&(o.hueHandle=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",inline:"inline",format:"format",appendTo:"appendTo",disabled:"disabled",tabindex:"tabindex",inputId:"inputId",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[yt([p_e])],decls:4,vars:11,consts:[[3,"ngStyle","ngClass"],["container",""],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly",3,"ngClass","disabled","backgroundColor","click","keydown","focus",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview","p-inputtext",3,"ngClass","disabled","click","keydown","focus"],["input",""],[3,"ngClass","click"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],["colorSelector",""],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],["colorHandle",""],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],["hue",""],[1,"p-colorpicker-hue-handle"],["hueHandle",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,r_e,2,9,"input",2),g(3,u_e,11,18,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(8,d_e,!o.inline,o.colorDragging||o.hueDragging)),K("data-pc-name","colorpicker")("data-pc-section","root"),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{position:relative;width:193px;height:166px}.p-colorpicker-overlay-panel{position:absolute;top:0;left:0}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{width:150px;height:150px;top:8px;left:8px;position:absolute}.p-colorpicker-panel .p-colorpicker-color{width:150px;height:150px}.p-colorpicker-panel .p-colorpicker-color-handle{position:absolute;top:0;left:150px;border-radius:100%;width:10px;height:10px;border-width:1px;border-style:solid;margin:-5px 0 0 -5px;cursor:pointer;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue{width:17px;height:150px;top:8px;left:167px;position:absolute;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue-handle{position:absolute;top:150px;left:0;width:21px;margin-left:-2px;margin-top:-5px;height:10px;border-width:2px;border-style:solid;opacity:.85;cursor:pointer}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),f_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),g_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ThLargeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.90909 6.36364H4.45455C4.96087 6.36364 5.44645 6.1625 5.80448 5.80448C6.1625 5.44645 6.36364 4.96087 6.36364 4.45455V1.90909C6.36364 1.40277 6.1625 0.917184 5.80448 0.55916C5.44645 0.201136 4.96087 0 4.45455 0H1.90909C1.40277 0 0.917184 0.201136 0.55916 0.55916C0.201136 0.917184 0 1.40277 0 1.90909V4.45455C0 4.96087 0.201136 5.44645 0.55916 5.80448C0.917184 6.1625 1.40277 6.36364 1.90909 6.36364ZM1.46154 1.46154C1.58041 1.34268 1.741 1.27492 1.90909 1.27273H4.45455C4.62264 1.27492 4.78322 1.34268 4.90209 1.46154C5.02096 1.58041 5.08871 1.741 5.09091 1.90909V4.45455C5.08871 4.62264 5.02096 4.78322 4.90209 4.90209C4.78322 5.02096 4.62264 5.08871 4.45455 5.09091H1.90909C1.741 5.08871 1.58041 5.02096 1.46154 4.90209C1.34268 4.78322 1.27492 4.62264 1.27273 4.45455V1.90909C1.27492 1.741 1.34268 1.58041 1.46154 1.46154ZM1.90909 14H4.45455C4.96087 14 5.44645 13.7989 5.80448 13.4408C6.1625 13.0828 6.36364 12.5972 6.36364 12.0909V9.54544C6.36364 9.03912 6.1625 8.55354 5.80448 8.19551C5.44645 7.83749 4.96087 7.63635 4.45455 7.63635H1.90909C1.40277 7.63635 0.917184 7.83749 0.55916 8.19551C0.201136 8.55354 0 9.03912 0 9.54544V12.0909C0 12.5972 0.201136 13.0828 0.55916 13.4408C0.917184 13.7989 1.40277 14 1.90909 14ZM1.46154 9.0979C1.58041 8.97903 1.741 8.91128 1.90909 8.90908H4.45455C4.62264 8.91128 4.78322 8.97903 4.90209 9.0979C5.02096 9.21677 5.08871 9.37735 5.09091 9.54544V12.0909C5.08871 12.259 5.02096 12.4196 4.90209 12.5384C4.78322 12.6573 4.62264 12.7251 4.45455 12.7273H1.90909C1.741 12.7251 1.58041 12.6573 1.46154 12.5384C1.34268 12.4196 1.27492 12.259 1.27273 12.0909V9.54544C1.27492 9.37735 1.34268 9.21677 1.46154 9.0979ZM12.0909 6.36364H9.54544C9.03912 6.36364 8.55354 6.1625 8.19551 5.80448C7.83749 5.44645 7.63635 4.96087 7.63635 4.45455V1.90909C7.63635 1.40277 7.83749 0.917184 8.19551 0.55916C8.55354 0.201136 9.03912 0 9.54544 0H12.0909C12.5972 0 13.0828 0.201136 13.4408 0.55916C13.7989 0.917184 14 1.40277 14 1.90909V4.45455C14 4.96087 13.7989 5.44645 13.4408 5.80448C13.0828 6.1625 12.5972 6.36364 12.0909 6.36364ZM9.54544 1.27273C9.37735 1.27492 9.21677 1.34268 9.0979 1.46154C8.97903 1.58041 8.91128 1.741 8.90908 1.90909V4.45455C8.91128 4.62264 8.97903 4.78322 9.0979 4.90209C9.21677 5.02096 9.37735 5.08871 9.54544 5.09091H12.0909C12.259 5.08871 12.4196 5.02096 12.5384 4.90209C12.6573 4.78322 12.7251 4.62264 12.7273 4.45455V1.90909C12.7251 1.741 12.6573 1.58041 12.5384 1.46154C12.4196 1.34268 12.259 1.27492 12.0909 1.27273H9.54544ZM9.54544 14H12.0909C12.5972 14 13.0828 13.7989 13.4408 13.4408C13.7989 13.0828 14 12.5972 14 12.0909V9.54544C14 9.03912 13.7989 8.55354 13.4408 8.19551C13.0828 7.83749 12.5972 7.63635 12.0909 7.63635H9.54544C9.03912 7.63635 8.55354 7.83749 8.19551 8.19551C7.83749 8.55354 7.63635 9.03912 7.63635 9.54544V12.0909C7.63635 12.5972 7.83749 13.0828 8.19551 13.4408C8.55354 13.7989 9.03912 14 9.54544 14ZM9.0979 9.0979C9.21677 8.97903 9.37735 8.91128 9.54544 8.90908H12.0909C12.259 8.91128 12.4196 8.97903 12.5384 9.0979C12.6573 9.21677 12.7251 9.37735 12.7273 9.54544V12.0909C12.7251 12.259 12.6573 12.4196 12.5384 12.5384C12.4196 12.6573 12.259 12.7251 12.0909 12.7273H9.54544C9.37735 12.7251 9.21677 12.6573 9.0979 12.5384C8.97903 12.4196 8.91128 12.259 8.90908 12.0909V9.54544C8.91128 9.37735 8.97903 9.21677 9.0979 9.0979Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),lO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BarsIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),D_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,vf,_s,lO,g_e,Qe]})}return t})();var k_e=z(7536);function M_e(t,i){1&t&&ze(0)}function O_e(t,i){if(1&t&&(x(0,"div",3),Kn(1),g(2,M_e,1,0,"ng-container",4),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)}}function L_e(t,i){1&t&&(x(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),Le(4,"Heading"),A(),x(5,"option",8),Le(6,"Subheading"),A(),x(7,"option",9),Le(8,"Normal"),A()(),x(9,"select",10)(10,"option",9),Le(11,"Sans Serif"),A(),x(12,"option",11),Le(13,"Serif"),A(),x(14,"option",12),Le(15,"Monospace"),A()()(),x(16,"span",5),le(17,"button",13)(18,"button",14)(19,"button",15),A(),x(20,"span",5),le(21,"select",16)(22,"select",17),A(),x(23,"span",5),le(24,"button",18)(25,"button",19),x(26,"select",20),le(27,"option",9),x(28,"option",21),Le(29,"center"),A(),x(30,"option",22),Le(31,"right"),A(),x(32,"option",23),Le(33,"justify"),A()()(),x(34,"span",5),le(35,"button",24)(36,"button",25)(37,"button",26),A(),x(38,"span",5),le(39,"button",27),A()())}const P_e=[[["p-header"]]],F_e=["p-header"],R_e={provide:un,useExisting:ft(()=>N_e),multi:!0};let N_e=(()=>{class t{el;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new ge;onTextChange=new ge;onSelectionChange=new ge;templates;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;constructor(e){this.el=e}ngAfterViewInit(){this.initQuillElements(),this.isAttachedQuillEditorToDOM&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.isAttachedQuillEditorToDOM&&this.initQuillEditor(),this.delayedCommand&&this.isAttachedQuillEditorToDOM&&(this.delayedCommand(),this.delayedCommand=null)}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()&&(this.headerTemplate=e.template)})}writeValue(e){if(this.value=e,this.quill)if(e){const n=()=>{this.quill.setContents(this.quill.clipboard.convert(this.value))};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}else{const n=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}initQuillEditor(){this.initQuillElements();const{toolbarElement:e,editorElement:n}=this.quillElements;let o={toolbar:e},s=this.modules?{...o,...this.modules}:o;this.quill=new k_e(n,{modules:s,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(r,a,l)=>{if("user"===l){let c=j.findSingle(n,".ql-editor").innerHTML,u=this.quill.getText().trim();"


"===c&&(c=null),this.onTextChange.emit({htmlValue:c,textValue:u,delta:r,source:l}),this.onModelChange(c),this.onModelTouched()}}),this.quill.on("selection-change",(r,a,l)=>{this.onSelectionChange.emit({range:r,oldRange:a,source:l})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:j.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:j.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-editor"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.toolbar=r.first),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[yt([R_e])],ngContentSelectors:F_e,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(n,o){1&n&&(Ti(P_e),x(0,"div",0),g(1,O_e,3,1,"div",1),g(2,L_e,40,0,"div",1),le(3,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-editor-container"),h(1),d("ngIf",o.toolbar||o.headerTemplate),h(1),d("ngIf",!o.toolbar&&!o.headerTemplate),h(1),d("ngStyle",o.style))},dependencies:[Ct,gt,on,Ht],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0})}return t})(),V_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),ng=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Q_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,eg,ng,Qe]})}return t})(),Z_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["UploadIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[st,Et],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3),A(),x(5,"defs")(6,"clipPath",4),le(7,"rect",5),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(5),d("id",o.pathId))},encapsulation:2})}return t})(),bv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),yv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn]})}return t})(),xv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),pIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,eE,Qe,Mi,xv,yv,dn,ng,Z_e,mn,Qe,Mi,xv,yv]})}return t})(),yIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,mn,Mi,Qe]})}return t})();const xIe=["input"];function AIe(t,i){if(1&t){const e=De();x(0,"TimesIcon",5),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-inputmask-clear-icon"),K("data-pc-section","clearIcon"))}function wIe(t,i){}function TIe(t,i){1&t&&g(0,wIe,0,0,"ng-template")}function SIe(t,i){if(1&t){const e=De();x(0,"span",6),me("click",function(){return G(e),q(f(2).clear())}),g(1,TIe,1,0,null,7),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function EIe(t,i){if(1&t&&(we(0),g(1,AIe,1,2,"TimesIcon",3),g(2,SIe,2,2,"span",4),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const DIe={provide:un,useExisting:ft(()=>kIe),multi:!0};let kIe=(()=>{class t{document;platformId;el;cd;type="text";slotChar="_";autoClear=!0;showClear=!1;style;inputId;styleClass;placeholder;size;maxlength;tabindex;title;ariaLabel;ariaLabelledBy;ariaRequired;disabled;readonly;unmask;name;required;characterPattern="[A-Za-z]";autoFocus;autocomplete;keepBuffer=!1;get mask(){return this._mask}set mask(e){this._mask=e,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}onComplete=new ge;onFocus=new ge;onBlur=new ge;onInput=new ge;onKeydown=new ge;onClear=new ge;inputViewChild;templates;clearIconTemplate;value;_mask;onModelChange=()=>{};onModelTouched=()=>{};input;filled;defs;tests;partialPosition;firstNonMaskPos;lastRequiredNonMaskPos;len;oldVal;buffer;defaultBuffer;focusText;caretTimeoutId;androidChrome=!0;focused;constructor(e,n,o,s){this.document=e,this.platformId=n,this.el=o,this.cd=s}ngOnInit(){if(ei(this.platformId)){let e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e)}this.initMask()}ngAfterContentInit(){this.templates.forEach(e=>{"clearicon"===e.getType()&&(this.clearIconTemplate=e.template)})}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let e=this.mask.split("");for(let n=0;n=0&&!this.tests[e];);return e}shiftL(e,n){let o,s;if(!(e<0)){for(o=e,s=this.seekNext(n);on.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}else{for(this.checkVal(!0);o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}}onInputBlur(e){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(e),this.inputViewChild?.nativeElement.value!=this.focusText||this.inputViewChild?.nativeElement.value!=this.value){this.updateModel(e);let n=this.document.createEvent("HTMLEvents");n.initEvent("change",!0,!1),this.inputViewChild?.nativeElement.dispatchEvent(n)}}onInputKeydown(e){if(this.readonly)return;let o,s,r,a,n=e.which||e.keyCode;ei(this.platformId)&&(a=/iphone/i.test(j.getUserAgent())),this.oldVal=this.inputViewChild?.nativeElement.value,this.onKeydown.emit(e),8===n||46===n||a&&127===n?(o=this.caret(),s=o.begin,r=o.end,r-s==0&&(s=46!==n?this.seekPrev(s):r=this.seekNext(s-1),r=46===n?this.seekNext(r):r),this.clearBuffer(s,r),this.shiftL(s,this.keepBuffer?r-2:r-1),this.updateModel(e),this.onInput.emit(e),e.preventDefault()):13===n?(this.onInputBlur(e),this.updateModel(e)):27===n&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}onKeyPress(e){if(!this.readonly){var s,r,a,l,n=e.which||e.keyCode,o=this.caret();e.ctrlKey||e.altKey||e.metaKey||n<32||n>34&&n<41||(n&&13!==n&&(o.end-o.begin!=0&&(this.clearBuffer(o.begin,o.end),this.shiftL(o.begin,o.end-1)),(s=this.seekNext(o.begin-1)){this.caret(a)},0):this.caret(a),o.begin<=this.lastRequiredNonMaskPos&&(l=this.isCompleted()),this.onInput.emit(e))),e.preventDefault()),this.updateModel(e),this.updateFilledState(),l&&this.onComplete.emit())}}clearBuffer(e,n){if(!this.keepBuffer){let o;for(o=e;on.length){this.clearBuffer(s+1,this.len);break}}else this.buffer[s]===n.charAt(a)&&a++,s{this.inputViewChild?.nativeElement===this.inputViewChild?.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),n==this.mask?.replace("?","").length?this.caret(0,n):this.caret(n))},10),this.onFocus.emit(e)}onInputChange(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.onInput.emit(e)}handleInputChange(e){this.readonly||setTimeout(()=>{var n=this.checkVal(!0);this.caret(n),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}getUnmaskedValue(){let e=[];for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,gf,mn,Qe]})}return t})(),OIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const LIe=["headerchkbox"],PIe=["filter"],FIe=["lastHiddenFocusableElement"],RIe=["firstHiddenFocusableElement"],NIe=["scroller"],VIe=["list"];function BIe(t,i){1&t&&ze(0)}const ig=function(t,i){return{$implicit:t,options:i}};function HIe(t,i){if(1&t&&(x(0,"div",12),Kn(1),g(2,BIe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function zIe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function jIe(t,i){}function UIe(t,i){1&t&&g(0,jIe,0,0,"ng-template")}function $Ie(t,i){if(1&t&&(x(0,"span",25),g(1,UIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function KIe(t,i){if(1&t&&(we(0),g(1,zIe,1,2,"CheckIcon",22),g(2,$Ie,2,2,"span",23),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const cO=function(t){return{"p-checkbox-disabled":t}},GIe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function qIe(t,i){if(1&t){const e=De();x(0,"div",17),me("click",function(o){return G(e),q(f(2).onToggleAll(o))})("keydown",function(o){return G(e),q(f(2).onHeaderCheckboxKeyDown(o))}),x(1,"div",18)(2,"input",19,20),me("focus",function(o){return G(e),q(f(2).onHeaderCheckboxFocus(o))})("blur",function(o){return G(e),q(f(2).onHeaderCheckboxBlur(o))}),A()(),x(4,"div",21),g(5,KIe,3,2,"ng-container",6),A()()}if(2&t){const e=f(2);d("ngClass",He(8,cO,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(10,GIe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function WIe(t,i){1&t&&ze(0)}const uO=function(t){return{options:t}};function QIe(t,i){if(1&t&&(we(0),g(1,WIe,1,0,"ng-container",13),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,uO,e.filterOptions))}}function ZIe(t,i){1&t&&le(0,"SearchIcon",24),2&t&&(d("styleClass","p-listbox-filter-icon"),K("aria-hidden",!0))}function YIe(t,i){}function XIe(t,i){1&t&&g(0,YIe,0,0,"ng-template")}function JIe(t,i){if(1&t&&(x(0,"span",33),g(1,XIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function eCe(t,i){if(1&t){const e=De();x(0,"div",29)(1,"input",30,31),me("input",function(o){return G(e),q(f(3).onFilterChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,ZIe,1,2,"SearchIcon",22),g(4,JIe,2,2,"span",32),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||"")("disabled",e.disabled)("tabindex",e.disabled||e.focused?-1:e.tabindex),K("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function tCe(t,i){if(1&t&&(g(0,eCe,5,9,"div",27),x(1,"span",28),Le(2),A()),2&t){const e=f(2);d("ngIf",e.filter),h(1),K("data-p-hidden-accessible",!0),h(1),Pt(" ",e.filterResultMessageText," ")}}function nCe(t,i){if(1&t&&(x(0,"div",12),g(1,qIe,6,14,"div",14),g(2,QIe,2,4,"ng-container",15),g(3,tCe,3,3,"ng-template",null,16,In),A()),2&t){const e=Bt(4),n=f();h(1),d("ngIf",n.checkbox&&n.multiple&&n.showToggleAll),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function iCe(t,i){1&t&&ze(0)}function oCe(t,i){if(1&t&&g(0,iCe,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,ig,e,n))}}function sCe(t,i){1&t&&ze(0)}function rCe(t,i){if(1&t&&g(0,sCe,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,uO,e))}}function aCe(t,i){1&t&&(we(0),g(1,rCe,1,4,"ng-template",37),Te())}const Av=function(t){return{height:t}};function lCe(t,i){if(1&t){const e=De();x(0,"p-scroller",34,35),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,oCe,1,5,"ng-template",36),g(3,aCe,2,0,"ng-container",6),A()}if(2&t){const e=f();yn(He(9,Av,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function cCe(t,i){1&t&&ze(0)}const uCe=function(){return{}};function dCe(t,i){if(1&t&&(we(0),g(1,cCe,1,0,"ng-container",13),Te()),2&t){const e=f(),n=Bt(9);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,ig,e.visibleOptions(),Jt(2,uCe)))}}function pCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function hCe(t,i){1&t&&ze(0)}const fCe=function(t){return{$implicit:t}};function gCe(t,i){if(1&t&&(we(0),x(1,"li",42),g(2,pCe,2,1,"span",6),g(3,hCe,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,Av,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,fCe,o.optionGroup))}}function mCe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function _Ce(t,i){}function ICe(t,i){1&t&&g(0,_Ce,0,0,"ng-template")}function CCe(t,i){if(1&t&&(x(0,"span",25),g(1,ICe,1,0,null,26),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function vCe(t,i){if(1&t&&(we(0),g(1,mCe,1,2,"CheckIcon",22),g(2,CCe,2,2,"span",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const bCe=function(t){return{"p-highlight":t}};function yCe(t,i){if(1&t&&(x(0,"div",45)(1,"div",46),g(2,vCe,3,2,"ng-container",6),A()()),2&t){const e=f(2).$implicit,n=f(2);d("ngClass",He(3,cO,n.disabled||n.isOptionDisabled(e))),h(1),d("ngClass",He(5,bCe,n.isSelected(e))),h(1),d("ngIf",n.isSelected(e))}}function xCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function ACe(t,i){1&t&&ze(0)}const wCe=function(t,i,e){return{"p-listbox-item":!0,"p-highlight":t,"p-focus":i,"p-disabled":e}},TCe=function(t,i){return{$implicit:t,index:i}};function SCe(t,i){if(1&t){const e=De();we(0),x(1,"li",43),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index,l=f().options,c=f();return q(c.onOptionSelect(o,r,c.getOptionIndex(a,l)))})("dblclick",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionDoubleClick(o,s))})("mousedown",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseDown(o,a.getOptionIndex(s,r)))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))})("touchend",function(){return G(e),q(f(3).onOptionTouchEnd())}),g(2,yCe,3,7,"div",44),g(3,xCe,2,1,"span",6),g(4,ACe,1,0,"ng-container",13),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,Av,s.itemSize+"px"))("ngClass",Rn(14,wCe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n)))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(o,s))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("aria-setsize",r.ariaSetSize),h(1),d("ngIf",r.checkbox&&r.multiple),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,TCe,n,r.getOptionIndex(o,s)))}}function ECe(t,i){if(1&t&&(g(0,gCe,4,9,"ng-container",6),g(1,SCe,5,21,"ng-container",6)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function DCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyFilterMessageText," ")}}function kCe(t,i){1&t&&ze(0,null,48)}function MCe(t,i){if(1&t&&(x(0,"li",47),g(1,DCe,2,1,"ng-container",15),g(2,kCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),h(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function OCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyMessageText," ")}}function LCe(t,i){1&t&&ze(0,null,49)}function PCe(t,i){if(1&t&&(x(0,"li",47),g(1,OCe,2,1,"ng-container",15),g(2,LCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),h(1),d("ngTemplateOutlet",e.emptyTemplate)}}function FCe(t,i){if(1&t){const e=De();x(0,"ul",38,39),me("focus",function(o){return G(e),q(f().onListFocus(o))})("blur",function(o){return G(e),q(f().onListBlur(o))})("keydown",function(o){return G(e),q(f().onListKeyDown(o))}),g(2,ECe,2,2,"ng-template",40),g(3,MCe,3,3,"li",41),g(4,PCe,3,3,"li",41),A()}if(2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("tabindex",-1)("ngClass",n.contentStyleClass),K("aria-multiselectable",!0)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-label",o.ariaLabel)("aria-multiselectable",o.multiple)("aria-disabled",o.disabled),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function RCe(t,i){1&t&&ze(0)}function NCe(t,i){if(1&t&&(x(0,"div",50),Kn(1,1),g(2,RCe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function VCe(t,i){if(1&t&&(x(0,"span",10),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.emptyMessageText," ")}}const BCe=[[["p-header"]],[["p-footer"]]],HCe=["p-header","p-footer"],zCe={provide:un,useExisting:ft(()=>jCe),multi:!0};let jCe=(()=>{class t{el;cd;filterService;config;renderer;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;focusOnHover;filterMessage;filterFields;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;scrollHeight="200px";tabindex=0;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!1;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel="label";optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}onChange=new ge;onClick=new ge;onDblClick=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onSelectAllChange=new ge;headerCheckboxViewChild;filterViewChild;lastHiddenFocusableElement;firstHiddenFocusableElement;scroller;listViewChild;headerFacet;footerFacet;templates;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;_filterValue=bn(null);_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;focused;get containerClass(){return{"p-listbox p-component":!0,"p-focus":this.focused,"p-disabled":this.disabled}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get filterResultMessageText(){return be.isNotEmpty(this.visibleOptions())?this.filterMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptyFilterMessageText}get filterMessageText(){return this.filterMessage||this.config.translation.searchMessage||""}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptyFilterMessageText(){return this.emptyFilterMessage||this.config.translation.emptySearchMessage||this.config.translation.emptyFilterMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}get searchFields(){return this.filterFields||[this.optionLabel]}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}searchValue;searchTimeout;_selectAll=null;_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);modelValue=bn(null);visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this._options()):this._options()||[];return this._filterValue()?this.filterService.filter(e,this.searchFields,this._filterValue(),this.filterMatchMode,this.filterLocale):e});constructor(e,n,o,s,r){this.el=e,this.cd=n,this.filterService=o,this.config=s,this.renderer=r}ngOnInit(){this.id=this.id||$t(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template}})}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&!this.multiple){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()])}}updateModel(e,n){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.onChange.emit({originalEvent:n,value:this.value})}removeOption(e){return this.modelValue().filter(n=>!be.equals(n,this.getOptionValue(e),this.equalityKey()))}onOptionSelect(e,n,o=-1){this.disabled||this.isOptionDisabled(n)||(e&&this.onClick.emit({originalEvent:e,value:n}),this.multiple?this.onOptionSelectMultiple(e,n):this.onOptionSelectSingle(e,n),this.optionTouched=!1,-1!==o&&this.focusedOptionIndex.set(o))}onOptionSelectMultiple(e,n){let o=this.isSelected(n),s=null;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;o?s=a?this.removeOption(n):[this.getOptionValue(n)]:(s=a&&this.modelValue()||[],s=[...s,this.getOptionValue(n)])}else s=o?this.removeOption(n):[...this.modelValue()||[],this.getOptionValue(n)];this.updateModel(s,e)}onOptionSelectSingle(e,n){let o=this.isSelected(n),s=!1,r=null;!this.optionTouched&&this.metaKeySelection?o?(e.metaKey||e.ctrlKey)&&(r=null,s=!0):(r=this.getOptionValue(n),s=!0):(r=o?null:this.getOptionValue(n),s=!0),s&&this.updateModel(r,e)}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}onToggleAll(e){if(!this.disabled&&!this.readonly){if(j.focus(this.headerCheckboxViewChild.nativeElement),null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:this.value})}e.preventDefault()}}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}onOptionTouchEnd(){this.disabled||(this.optionTouched=!0)}onOptionMouseDown(e,n){this.changeFocusedOptionIndex(e,n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onOptionDoubleClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onFirstHiddenFocus(e){j.focus(this.listViewChild.nativeElement);const n=j.getFirstFocusableElement(this.el.nativeElement,':not([data-p-hidden-focusable="true"])');this.lastHiddenFocusableElement.nativeElement.tabIndex=be.isEmpty(n)?"-1":void 0,this.firstHiddenFocusableElement.nativeElement.tabIndex=-1}onLastHiddenFocus(e){if(e.relatedTarget===this.listViewChild.nativeElement){const o=j.getFirstFocusableElement(this.el.nativeElement,":not(.p-hidden-focusable)");j.focus(o),this.firstHiddenFocusableElement.nativeElement.tabIndex=void 0}else j.focus(this.firstHiddenFocusableElement.nativeElement);this.lastHiddenFocusableElement.nativeElement.tabIndex=-1}onFocusout(e){!this.el.nativeElement.contains(e.relatedTarget)&&this.lastHiddenFocusableElement&&this.firstHiddenFocusableElement&&(this.firstHiddenFocusableElement.nativeElement.tabIndex=this.lastHiddenFocusableElement.nativeElement.tabIndex=void 0)}onListFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.onFocus.emit(e)}onListBlur(e){this.focused=!1,this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.searchValue=""}onHeaderCheckboxFocus(e){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e);break;case"Tab":this.onHeaderCheckboxTabKeyDown(e)}}onHeaderCheckboxTabKeyDown(e){j.focus(this.listViewChild.nativeElement),e.preventDefault()}onFilterChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onFilterBlur(e){this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1)}onListKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onSpaceKey(e);break;case"Tab":break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(this.multiple&&"KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey()}}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowUpKey(e){const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onHomeKey(e,n=!1){if(n)e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1);else{let o=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findLastOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onPageDownKey(e){this.scrollInView(0),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onEnterKey(e){-1!==this.focusedOptionIndex()&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()])),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onShiftKey(){const e=this.focusedOptionIndex();this.startRangeIndex.set(e)}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions()[n]))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}scrollInView(e=-1){const o=j.findSingle(this.listViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroll&&this.scroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex())}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}equalityKey(){return this.optionValue?null:this.dataKey}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){const n=this.getOptionValue(e);return this.multiple?(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey())):be.equals(this.modelValue(),n,this.equalityKey())}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue.set(null)}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft),V(df),V(ki),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-listbox"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(LIe,5),je(PIe,5),je(FIe,5),je(RIe,5),je(NIe,5),je(VIe,5)),2&n){let s;Se(s=Ee())&&(o.headerCheckboxViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElement=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElement=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",focusOnHover:"focusOnHover",filterMessage:"filterMessage",filterFields:"filterFields",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",scrollHeight:"scrollHeight",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue",selectAll:"selectAll"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onSelectAllChange:"onSelectAllChange"},features:[yt([zCe])],ngContentSelectors:HCe,decls:16,vars:24,consts:[[3,"ngClass","ngStyle","focusout"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"tabindex","focus"],["firstHiddenFocusableElement",""],["class","p-listbox-header",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInItems",""],["class","p-listbox-footer",4,"ngIf"],["role","status","aria-live","polite","class","p-hidden-accessible",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["lastHiddenFocusableElement",""],[1,"p-listbox-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"disabled","focus","blur"],["headerchkbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],["class","p-listbox-filter-container",4,"ngIf"],["role","status","attr.aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-filter-container"],["type","text","role","searchbox",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","tabindex","input","keydown","blur"],["filterInput",""],["class","p-listbox-filter-icon",4,"ngIf"],[1,"p-listbox-filter-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-listbox-list",3,"tabindex","ngClass","focus","blur","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-listbox-empty-message","role","option",4,"ngIf"],["role","option",1,"p-listbox-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-listbox-item",3,"ngStyle","ngClass","ariaPosInset","click","dblclick","mousedown","mouseenter","touchend"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-checkbox-box",3,"ngClass"],["role","option",1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(n,o){1&n&&(Ti(BCe),x(0,"div",0),me("focusout",function(r){return o.onFocusout(r)}),x(1,"span",1,2),me("focus",function(r){return o.onFirstHiddenFocus(r)}),A(),g(3,HIe,3,5,"div",3),g(4,nCe,5,3,"div",3),x(5,"div",4),g(6,lCe,4,11,"p-scroller",5),g(7,dCe,2,6,"ng-container",6),g(8,FCe,5,12,"ng-template",null,7,In),A(),g(10,NCe,3,5,"div",8),g(11,VCe,2,1,"span",9),x(12,"span",10),Le(13),A(),x(14,"span",1,11),me("focus",function(r){return o.onLastHiddenFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",o.headerFacet||o.headerTemplate),h(1),d("ngIf",o.checkbox&&o.multiple&&o.showToggleAll||o.filter),h(1),Ve(o.listStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight||"auto"),d("ngClass","p-listbox-list-wrapper")("ngStyle",o.listStyle),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.footerFacet||o.footerTemplate),h(1),d("ngIf",o.isEmpty()),h(2),Pt(" ",o.selectedMessageText," "),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0))},dependencies:function(){return[Ct,Jn,gt,on,Ht,sn,oo,Bu,Qs,yi]},styles:["@layer primeng{.p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),UCe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,Qs,yi,Qe,Oi]})}return t})(),wve=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,Or,Zo,qn,Nn,Qe]})}return t})(),o1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,qn,Nn]})}return t})(),z1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,lO,Or,Zo,qn,Nn,Qe]})}return t})(),$1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,bv,ir,vv]})}return t})();function K1e(t,i){1&t&&le(0,"CheckIcon",7),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function G1e(t,i){}function q1e(t,i){1&t&&g(0,G1e,0,0,"ng-template")}function W1e(t,i){if(1&t&&(x(0,"span",8),g(1,q1e,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function Q1e(t,i){if(1&t&&(we(0),g(1,K1e,1,2,"CheckIcon",5),g(2,W1e,2,2,"span",6),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function Z1e(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function Y1e(t,i){1&t&&ze(0)}const ud=function(t){return{height:t}},X1e=function(t,i,e){return{"p-multiselect-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},J1e=function(t){return{"p-highlight":t}},Sv=function(t){return{$implicit:t}},ebe=["container"],tbe=["overlay"],nbe=["filterInput"],ibe=["focusInput"],obe=["items"],sbe=["scroller"],rbe=["lastHiddenFocusableEl"],abe=["firstHiddenFocusableEl"],lbe=["headerCheckbox"];function cbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt(e.label()||"empty")}}function ube(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",20),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),A()}2&t&&(d("styleClass","p-multiselect-token-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function dbe(t,i){1&t&&ze(0)}function pbe(t,i){if(1&t){const e=De();x(0,"span",21),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),g(1,dbe,1,0,"ng-container",22),A()}if(2&t){const e=f(5);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function hbe(t,i){if(1&t&&(we(0),g(1,ube,1,3,"TimesCircleIcon",18),g(2,pbe,2,3,"span",19),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}function fbe(t,i){if(1&t&&(x(0,"div",15,16)(2,"span",17),Le(3),A(),g(4,hbe,3,2,"ng-container",7),A()),2&t){const e=i.$implicit,n=f(3);h(3),dt(n.getLabelByValue(e)),h(1),d("ngIf",!n.disabled)}}function gbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),dt(e.placeholder||e.defaultLabel||"empty")}}function mbe(t,i){if(1&t&&(we(0),g(1,fbe,5,2,"div",14),g(2,gbe,2,1,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngForOf",e.chipSelectedItems()),h(1),d("ngIf",!e.modelValue()||0===e.modelValue().length)}}function _be(t,i){if(1&t&&(we(0),g(1,cbe,2,1,"ng-container",7),g(2,mbe,3,2,"ng-container",7),Te()),2&t){const e=f();h(1),d("ngIf","comma"===e.display),h(1),d("ngIf","chip"===e.display)}}function Ibe(t,i){1&t&&ze(0)}function Cbe(t,i){if(1&t){const e=De();x(0,"TimesIcon",20),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-multiselect-clear-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function vbe(t,i){}function bbe(t,i){1&t&&g(0,vbe,0,0,"ng-template")}function ybe(t,i){if(1&t){const e=De();x(0,"span",24),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,bbe,1,0,null,22),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function xbe(t,i){if(1&t&&(we(0),g(1,Cbe,1,3,"TimesIcon",18),g(2,ybe,2,3,"span",23),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function Abe(t,i){1&t&&le(0,"span",27),2&t&&(d("ngClass",f(2).dropdownIcon),K("data-pc-section","triggericon")("aria-hidden",!0))}function wbe(t,i){1&t&&le(0,"ChevronDownIcon",28),2&t&&(d("styleClass","p-multiselect-trigger-icon"),K("data-pc-section","triggericon")("aria-hidden",!0))}function Tbe(t,i){if(1&t&&(we(0),g(1,Abe,1,3,"span",25),g(2,wbe,1,3,"ChevronDownIcon",26),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Sbe(t,i){}function Ebe(t,i){1&t&&g(0,Sbe,0,0,"ng-template")}function Dbe(t,i){if(1&t&&(x(0,"span",29),g(1,Ebe,1,0,null,22),A()),2&t){const e=f();K("data-pc-section","triggericon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function kbe(t,i){1&t&&ze(0)}function Mbe(t,i){1&t&&ze(0)}const gO=function(t){return{options:t}};function Obe(t,i){if(1&t&&(we(0),g(1,Mbe,1,0,"ng-container",8),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,gO,e.filterOptions))}}function Lbe(t,i){1&t&&le(0,"CheckIcon",28),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function Pbe(t,i){}function Fbe(t,i){1&t&&g(0,Pbe,0,0,"ng-template")}function Rbe(t,i){if(1&t&&(x(0,"span",51),g(1,Fbe,1,0,null,8),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)("ngTemplateOutletContext",He(3,Sv,e.allSelected()))}}function Nbe(t,i){if(1&t&&(we(0),g(1,Lbe,1,2,"CheckIcon",26),g(2,Rbe,2,5,"span",50),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const Vbe=function(t){return{"p-checkbox-disabled":t}},Bbe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function Hbe(t,i){if(1&t){const e=De();x(0,"div",46),me("click",function(o){return G(e),q(f(4).onToggleAll(o))})("keydown",function(o){return G(e),q(f(4).onHeaderCheckboxKeyDown(o))}),x(1,"div",2)(2,"input",47,48),me("focus",function(){return G(e),q(f(4).onHeaderCheckboxFocus())})("blur",function(){return G(e),q(f(4).onHeaderCheckboxBlur())}),A()(),x(4,"div",49),g(5,Nbe,3,2,"ng-container",7),A()()}if(2&t){const e=f(4);d("ngClass",He(9,Vbe,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("readonly",e.readonly)("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(11,Bbe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function zbe(t,i){1&t&&le(0,"SearchIcon",28),2&t&&d("styleClass","p-multiselect-filter-icon")}function jbe(t,i){}function Ube(t,i){1&t&&g(0,jbe,0,0,"ng-template")}function $be(t,i){if(1&t&&(x(0,"span",56),g(1,Ube,1,0,null,22),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function Kbe(t,i){if(1&t){const e=De();x(0,"div",52)(1,"input",53,54),me("input",function(o){return G(e),q(f(4).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(4).onFilterKeyDown(o))})("click",function(o){return G(e),q(f(4).onInputClick(o))})("blur",function(o){return G(e),q(f(4).onFilterBlur(o))}),A(),g(3,zbe,1,1,"SearchIcon",26),g(4,$be,2,1,"span",55),A()}if(2&t){const e=f(4);h(1),d("value",e._filterValue()||"")("disabled",e.disabled),K("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function Gbe(t,i){1&t&&le(0,"TimesIcon",28),2&t&&d("styleClass","p-multiselect-close-icon")}function qbe(t,i){}function Wbe(t,i){1&t&&g(0,qbe,0,0,"ng-template")}function Qbe(t,i){if(1&t&&(x(0,"span",57),g(1,Wbe,1,0,null,22),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}function Zbe(t,i){if(1&t){const e=De();g(0,Hbe,6,15,"div",42),g(1,Kbe,5,10,"div",43),x(2,"button",44),me("click",function(o){return G(e),q(f(3).close(o))}),g(3,Gbe,1,1,"TimesIcon",26),g(4,Qbe,2,1,"span",45),A()}if(2&t){const e=f(3);d("ngIf",e.showToggleAll&&!e.selectionLimit),h(1),d("ngIf",e.filter),h(2),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Ybe(t,i){if(1&t&&(x(0,"div",39),Kn(1),g(2,kbe,1,0,"ng-container",22),g(3,Obe,2,4,"ng-container",40),g(4,Zbe,5,4,"ng-template",null,41,In),A()),2&t){const e=Bt(5),n=f(2);h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function Xbe(t,i){1&t&&ze(0)}const mO=function(t,i){return{$implicit:t,options:i}};function Jbe(t,i){if(1&t&&g(0,Xbe,1,0,"ng-container",8),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(8))("ngTemplateOutletContext",mt(2,mO,e,n))}}function eye(t,i){1&t&&ze(0)}function tye(t,i){if(1&t&&g(0,eye,1,0,"ng-container",8),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,gO,e))}}function nye(t,i){1&t&&(we(0),g(1,tye,1,4,"ng-template",60),Te())}function iye(t,i){if(1&t){const e=De();x(0,"p-scroller",58,59),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,Jbe,1,5,"ng-template",13),g(3,nye,2,0,"ng-container",7),A()}if(2&t){const e=f(2);yn(He(9,ud,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function oye(t,i){1&t&&ze(0)}const sye=function(){return{}};function rye(t,i){if(1&t&&(we(0),g(1,oye,1,0,"ng-container",8),Te()),2&t){f();const e=Bt(8),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,mO,n.visibleOptions(),Jt(2,sye)))}}function aye(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function lye(t,i){1&t&&ze(0)}function cye(t,i){if(1&t&&(we(0),x(1,"li",65),g(2,aye,2,1,"span",7),g(3,lye,1,0,"ng-container",8),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,ud,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Sv,o.optionGroup))}}function uye(t,i){if(1&t){const e=De();we(0),x(1,"p-multiSelectItem",66),me("onClick",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionSelect(o,!1,a.getOptionIndex(s,r)))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("checkIconTemplate",r.checkIconTemplate)("itemSize",s.itemSize)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function dye(t,i){if(1&t&&(g(0,cye,4,9,"ng-container",7),g(1,uye,2,11,"ng-container",7)),2&t){const e=i.$implicit,n=f(3);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function pye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function hye(t,i){1&t&&ze(0,null,68)}function fye(t,i){if(1&t&&(x(0,"li",67),g(1,pye,2,1,"ng-container",40),g(2,hye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function gye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function mye(t,i){1&t&&ze(0,null,69)}function _ye(t,i){if(1&t&&(x(0,"li",67),g(1,gye,2,1,"ng-container",40),g(2,mye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function Iye(t,i){if(1&t&&(x(0,"ul",61,62),g(2,dye,2,2,"ng-template",63),g(3,fye,3,6,"li",64),g(4,_ye,3,6,"li",64),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function Cye(t,i){1&t&&ze(0)}function vye(t,i){if(1&t&&(x(0,"div",70),Kn(1,1),g(2,Cye,1,0,"ng-container",22),A()),2&t){const e=f(2);h(2),d("ngTemplateOutlet",e.footerTemplate)}}function bye(t,i){if(1&t){const e=De();x(0,"div",30)(1,"span",31,32),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,Ybe,6,3,"div",33),x(4,"div",34),g(5,iye,4,11,"p-scroller",35),g(6,rye,2,6,"ng-container",7),g(7,Iye,5,6,"ng-template",null,36,In),A(),g(9,vye,3,1,"div",37),x(10,"span",31,38),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-multiselect-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden","true")("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",e.showHeader),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngIf",e.footerFacet||e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const yye=[[["p-header"]],[["p-footer"]]],xye=function(t,i){return{$implicit:t,removeChip:i}},Aye=["p-header","p-footer"],wye={provide:un,useExisting:ft(()=>Sye),multi:!0};let Tye=(()=>{class t{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;template;checkIconTemplate;onClick=new ge;onMouseEnter=new ge;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected})}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",focused:"focused",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkIconTemplate:"checkIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:6,vars:26,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","id","click","mouseenter"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),x(1,"div",1)(2,"div",2),g(3,Q1e,3,2,"ng-container",3),A()(),g(4,Z1e,2,1,"span",3),g(5,Y1e,1,0,"ng-container",4),A()),2&n&&(d("ngStyle",He(16,ud,o.itemSize+"px"))("ngClass",Rn(18,X1e,o.selected,o.disabled,o.focused))("id",o.id),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(2),d("ngClass",He(22,J1e,o.selected)),K("aria-checked",o.selected),h(1),d("ngIf",o.selected),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(24,Sv,o.option)))},dependencies:function(){return[Ct,gt,on,Ht,oo,yi]},encapsulation:2})}return t})(),Sye=(()=>{class t{el;renderer;cd;zone;filterService;config;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel="{0} items selected";showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="off";showClear=!1;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.warn("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder=e}get placeholder(){return this._placeholder}get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!1;filterFields;selectOnFocus=!1;autoOptionFocus=!0;onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onClear=new ge;onPanelShow=new ge;onPanelHide=new ge;onLazyLoad=new ge;onRemove=new ge;onSelectAllChange=new ge;containerViewChild;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;templates;searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder;_itemSize;_selectionLimit;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;headerCheckboxFocus;filterOptions;maxSelectionLimitReached;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=bn(null);_filterValue=bn(null);_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);get containerClass(){return{"p-multiselect p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-multiselect-clearable":this.showClear&&!this.disabled,"p-multiselect-chip":"chip"===this.display,"p-focus":this.focused,"p-inputwrapper-filled":be.isNotEmpty(this.modelValue()),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){return{"p-multiselect-label p-inputtext":!0,"p-placeholder":(this.placeholder||this.defaultLabel)&&(this.label()===this.placeholder||this.label()===this.defaultLabel),"p-multiselect-label-empty":!this.selectedItemsTemplate&&("p-emptylabel"===this.label()||0===this.label().length)}}get panelClass(){return{"p-multiselect-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get labelClass(){return{"p-multiselect-label":!0,"p-placeholder":this.label()===this.placeholder||this.label()===this.defaultLabel,"p-multiselect-label-empty":!(this.placeholder||this.defaultLabel||this.modelValue()&&0!==this.modelValue().length)}}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&""!==this.modelValue()&&be.isNotEmpty(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale);if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{let e;const n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(be.isNotEmpty(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let o=0;obe.isNotEmpty(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,o,s,r,a,l){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,this.overlayService=l}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());const e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,o=-1){const{originalEvent:s,option:r}=e;if(this.disabled||this.isOptionDisabled(r))return;let l=null;l=this.isSelected(r)?this.modelValue().filter(c=>!be.equals(c,this.getOptionValue(r),this.equalityKey())):[...this.modelValue()||[],this.getOptionValue(r)],this.updateModel(l,s),-1!==o&&this.focusedOptionIndex.set(o),n&&j.focus(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:l,itemValue:r})}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}searchFields(){return this.filterFields||[this.optionLabel]}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return(this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}isSelected(e){const n=this.getOptionValue(e);return(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){const o=(this.group?this.flatOptions(this._options()):this._options()||[]).find(s=>!this.isOptionGroup(s)&&be.equals(this.getOptionValue(s),e,this.equalityKey()));return o?this.getOptionLabel(o):null}getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue().length+""):this.selectedItemsLabel}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled)return void e.preventDefault();const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if("KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){const{currentTarget:o}=e;if(n)o.setSelectionRange(0,e.shiftKey?o.value.length:0),this.focusedOptionIndex.set(-1);else{let s=e.metaKey||e.ctrlKey,r=this.findFirstOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,r,this.startRangeIndex()),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){const{currentTarget:o}=e;if(n){const s=o.value.length;o.setSelectionRange(e.shiftKey?0:s,s),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,r=this.findLastFocusedOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,this.startRangeIndex(),r),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?-1!==this.focusedOptionIndex()&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(-1!==this.focusedOptionIndex()&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if("INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]'))return void e.preventDefault();(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onInputFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!this.disabled&&!this.readonly){if(null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e)}j.focus(this.headerCheckboxViewChild.nativeElement),this.headerCheckboxFocus=!0,e.preventDefault(),e.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}writeValue(e){this.value=e,this.modelValue.set(this.value),this.checkSelectionLimit(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){const n=be.isNotEmpty(this.modelValue())?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-multiselect-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched()}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.checkSelectionLimit(),this.updateModel(null,e),this.onClear.emit(),e.stopPropagation()}removeOption(e,n){let o=this.modelValue().filter(s=>!be.equals(s,e,this.equalityKey()));this.updateModel(o,n),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}activateFilter(){if(this.hasFilter()&&this._options){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let n=[];for(let o of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(o),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&n.push({...o,[this.optionGroupChildren]:s})}this._filteredOptions=n}else this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelect"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,rC,5),Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ebe,5),je(tbe,5),je(nbe,5),je(ibe,5),je(obe,5),je(sbe,5),je(rbe,5),je(abe,5),je(lbe,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.filterInputChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.headerCheckboxViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:"focusOnHover",filterFields:"filterFields",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[yt([wye])],ngContentSelectors:Aye,decls:16,vars:41,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["role","combobox",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","focus","blur","keydown"],["focusInput",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-multiselect-trigger"],["class","p-multiselect-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],["lastHiddenFocusableEl",""],[1,"p-multiselect-header"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],["type","checkbox",3,"readonly","disabled","focus","blur"],["headerCheckbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","searchbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input","keydown","click","blur"],["filterInput",""],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","checkIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function(n,o){1&n&&(Ti(yye),x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),x(2,"div",2)(3,"input",3,4),me("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keydown",function(r){return o.onKeyDown(r)}),A()(),x(5,"div",5)(6,"div",6),g(7,_be,3,2,"ng-container",7),g(8,Ibe,1,0,"ng-container",8),A(),g(9,xbe,3,2,"ng-container",7),A(),x(10,"div",9),g(11,Tbe,3,2,"ng-container",7),g(12,Dbe,2,3,"span",10),A(),x(13,"p-overlay",11,12),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(15,bye,12,18,"ng-template",13),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),K("data-p-hidden-accessible",!0),h(1),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),K("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",o.overlayVisible)("aria-controls",o.id+"_list")("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0),h(2),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),h(1),d("ngClass",o.labelClass),h(1),d("ngIf",!o.selectedItemsTemplate),h(1),d("ngTemplateOutlet",o.selectedItemsTemplate)("ngTemplateOutletContext",mt(38,xye,o.modelValue(),o.removeOption.bind(o))),h(1),d("ngIf",o.isVisibleClearIcon),h(2),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,oo,Bu,yi,Qs,ir,mn,bi,Tye]},styles:["@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Eye=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,yi,Qs,ir,mn,bi,yi,$l,Qe,Oi]})}return t})();const Dye=typeof Intl<"u"&&Intl.v8BreakIterator;class Ev{constructor(i){this._platformId=i,this.isBrowser=this._platformId?ei(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Dye)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}let dd;function Dv(t){return function kye(){if(null==dd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dd=!0}))}finally{dd=dd||!1}return dd}()?t:!!t.capture}Ev.ngInjectableDef=o1({factory:function(){return new Ev(et($n,8))},token:Ev,providedIn:"root"});const xs={NORMAL:0,NEGATED:1,INVERTED:2};xs[xs.NORMAL]="NORMAL",xs[xs.NEGATED]="NEGATED",xs[xs.INVERTED]="INVERTED";const sg=Dv({passive:!1,capture:!0});class kv{constructor(i,e){this._ngZone=i,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new re,this.pointerUp=new re,this._preventScrollListener=n=>{this._activeDragInstances.size&&n.preventDefault()},this._document=e}registerDropContainer(i){if(!this._dropInstances.has(i)){if(this.getDropContainer(i.id))throw Error(`Drop instance with id "${i.id}" has already been registered.`);this._dropInstances.add(i)}}registerDragItem(i){this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventScrollListener,sg)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventScrollListener,sg)}startDragging(i,e){if(this._activeDragInstances.add(i),1===this._activeDragInstances.size){const n=e.type.startsWith("touch"),s=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:r=>this.pointerMove.next(r),options:sg}).set(s,{handler:r=>this.pointerUp.next(r),options:!0}),n||this._globalListeners.set("wheel",{handler:this._preventScrollListener,options:sg}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(i){this._activeDragInstances.delete(i),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances.has(i)}getDropContainer(i){return Array.from(this._dropInstances).find(e=>e.id===i)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,e)=>{this._document.removeEventListener(e,i.handler,i.options)}),this._globalListeners.clear()}}kv.ngInjectableDef=o1({factory:function(){return new kv(et(Tt),et(Wt))},token:kv,providedIn:"root"});const Oye=new Ye("CDK_DRAG_CONFIG",{providedIn:"root",factory:function Lye(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}});class rg{}let TO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.70786 6.59831C6.80043 6.63674 6.89974 6.65629 6.99997 6.65581C7.19621 6.64081 7.37877 6.54953 7.50853 6.40153L11.0685 2.8416C11.1364 2.69925 11.1586 2.53932 11.132 2.38384C11.1053 2.22837 11.0311 2.08498 10.9195 1.97343C10.808 1.86188 10.6646 1.78766 10.5091 1.76099C10.3536 1.73431 10.1937 1.75649 10.0513 1.82448L6.99997 4.87585L3.9486 1.82448C3.80625 1.75649 3.64632 1.73431 3.49084 1.76099C3.33536 1.78766 3.19197 1.86188 3.08043 1.97343C2.96888 2.08498 2.89466 2.22837 2.86798 2.38384C2.84131 2.53932 2.86349 2.69925 2.93147 2.8416L6.46089 6.43205C6.53132 6.50336 6.61528 6.55989 6.70786 6.59831ZM6.70786 12.1925C6.80043 12.2309 6.89974 12.2505 6.99997 12.25C7.10241 12.2465 7.20306 12.2222 7.29575 12.1785C7.38845 12.1348 7.47124 12.0726 7.53905 11.9957L11.0685 8.46629C11.1614 8.32292 11.2036 8.15249 11.1881 7.98233C11.1727 7.81216 11.1005 7.6521 10.9833 7.52781C10.866 7.40353 10.7104 7.3222 10.5415 7.29688C10.3725 7.27155 10.1999 7.30369 10.0513 7.38814L6.99997 10.4395L3.9486 7.38814C3.80006 7.30369 3.62747 7.27155 3.45849 7.29688C3.28951 7.3222 3.13393 7.40353 3.01667 7.52781C2.89942 7.6521 2.82729 7.81216 2.81184 7.98233C2.79639 8.15249 2.83852 8.32292 2.93148 8.46629L6.4609 12.0262C6.53133 12.0975 6.61529 12.1541 6.70786 12.1925Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),SO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.1504 6.67719C10.2417 6.71508 10.3396 6.73436 10.4385 6.73389C10.6338 6.74289 10.8249 6.67441 10.97 6.54334C11.1109 6.4023 11.19 6.21112 11.19 6.01178C11.19 5.81245 11.1109 5.62127 10.97 5.48023L7.45977 1.96998C7.31873 1.82912 7.12755 1.75 6.92821 1.75C6.72888 1.75 6.5377 1.82912 6.39666 1.96998L2.9165 5.45014C2.83353 5.58905 2.79755 5.751 2.81392 5.91196C2.83028 6.07293 2.89811 6.22433 3.00734 6.34369C3.11656 6.46306 3.26137 6.54402 3.42025 6.57456C3.57914 6.60511 3.74364 6.5836 3.88934 6.51325L6.89813 3.50446L9.90691 6.51325C9.97636 6.58357 10.0592 6.6393 10.1504 6.67719ZM9.93702 11.9993C10.065 12.1452 10.245 12.2352 10.4385 12.25C10.632 12.2352 10.812 12.1452 10.9399 11.9993C11.0633 11.8614 11.1315 11.6828 11.1315 11.4978C11.1315 11.3128 11.0633 11.1342 10.9399 10.9963L7.48987 7.48609C7.34883 7.34523 7.15765 7.26611 6.95832 7.26611C6.75899 7.26611 6.5678 7.34523 6.42677 7.48609L2.91652 10.9963C2.84948 11.1367 2.82761 11.2944 2.85391 11.4477C2.88022 11.601 2.9534 11.7424 3.06339 11.8524C3.17338 11.9624 3.31477 12.0356 3.46808 12.0619C3.62139 12.0882 3.77908 12.0663 3.91945 11.9993L6.92823 8.99048L9.93702 11.9993Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),sxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,rg,TO,SO,If,Or,Qs,Qe,rg]})}return t})(),bxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,bi,ff,Qe,Qe]})}return t})(),kxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,mn,Qe]})}return t})(),Wxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,ng,eg,Qe]})}return t})(),kO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),MO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const Qxe=["input"];function Zxe(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-password-clear-icon"),K("data-pc-section","clearIcon"))}function Yxe(t,i){}function Xxe(t,i){1&t&&g(0,Yxe,0,0,"ng-template")}function Jxe(t,i){if(1&t){const e=De();we(0),g(1,Zxe,1,2,"TimesIcon",5),x(2,"span",6),me("click",function(){return G(e),q(f().clear())}),g(3,Xxe,1,0,null,7),A(),Te()}if(2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function eAe(t,i){if(1&t){const e=De();x(0,"EyeSlashIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","hideIcon")}function tAe(t,i){}function nAe(t,i){1&t&&g(0,tAe,0,0,"ng-template")}function iAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,nAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.hideIconTemplate)}}function oAe(t,i){if(1&t&&(we(0),g(1,eAe,1,1,"EyeSlashIcon",9),g(2,iAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.hideIconTemplate),h(1),d("ngIf",e.hideIconTemplate)}}function sAe(t,i){if(1&t){const e=De();x(0,"EyeIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","showIcon")}function rAe(t,i){}function aAe(t,i){1&t&&g(0,rAe,0,0,"ng-template")}function lAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,aAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.showIconTemplate)}}function cAe(t,i){if(1&t&&(we(0),g(1,sAe,1,1,"EyeIcon",9),g(2,lAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.showIconTemplate),h(1),d("ngIf",e.showIconTemplate)}}function uAe(t,i){if(1&t&&(we(0),g(1,oAe,3,2,"ng-container",3),g(2,cAe,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.unmasked),h(1),d("ngIf",!e.unmasked)}}function dAe(t,i){1&t&&ze(0)}function pAe(t,i){1&t&&ze(0)}function hAe(t,i){if(1&t&&(we(0),g(1,pAe,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)}}const fAe=function(t){return{width:t}};function gAe(t,i){if(1&t&&(x(0,"div",15),le(1,"div",0),Il(2,"mapper"),A(),x(3,"div",16),Le(4),A()),2&t){const e=f(2);K("data-pc-section","meter"),h(1),d("ngClass",Cl(2,6,e.meter,e.strengthClass))("ngStyle",He(9,fAe,e.meter?e.meter.width:"")),K("data-pc-section","meterLabel"),h(2),K("data-pc-section","info"),h(1),dt(e.infoText)}}function mAe(t,i){1&t&&ze(0)}const _Ae=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},IAe=function(t){return{value:"visible",params:t}};function CAe(t,i){if(1&t){const e=De();x(0,"div",11,12),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onAnimationEnd(o))}),g(2,dAe,1,0,"ng-container",7),g(3,hAe,2,1,"ng-container",13),g(4,gAe,5,11,"ng-template",null,14,In),g(6,mAe,1,0,"ng-container",7),A()}if(2&t){const e=Bt(5),n=f();d("ngClass","p-password-panel p-component")("@overlayAnimation",He(10,IAe,mt(7,_Ae,n.showTransitionOptions,n.hideTransitionOptions))),K("data-pc-section","panel"),h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngTemplateOutlet",n.footerTemplate)}}let vAe=(()=>{class t{transform(e,n,...o){return n(e,...o)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Vi({name:"mapper",type:t,pure:!0})}return t})();const bAe={provide:un,useExisting:ft(()=>yAe),multi:!0};let yAe=(()=>{class t{document;platformId;renderer;cd;config;el;overlayService;ariaLabel;ariaLabelledBy;label;disabled;promptLabel;mediumRegex="^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})";strongRegex="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})";weakLabel;mediumLabel;maxLength;strongLabel;inputId;feedback=!0;appendTo;toggleMask;inputStyleClass;styleClass;style;inputStyle;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autocomplete;placeholder;showClear=!1;onFocus=new ge;onBlur=new ge;onClear=new ge;input;contentTemplate;footerTemplate;headerTemplate;clearIconTemplate;hideIconTemplate;showIconTemplate;templates;overlayVisible=!1;meter;infoText;focused=!1;unmasked=!1;mediumCheckRegExp;strongCheckRegExp;resizeListener;scrollHandler;overlay;value=null;onModelChange=()=>{};onModelTouched=()=>{};translationSubscription;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.config=r,this.el=a,this.overlayService=l}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"hideicon":this.hideIconTemplate=e.template;break;case"showicon":this.showIconTemplate=e.template}})}ngOnInit(){this.infoText=this.promptText(),this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.updateUI(this.value||"")})}onAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.appendContainer(),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener();break;case"void":this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null}}onAnimationEnd(e){"void"===e.toState&&Wn.clear(e.element)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).appendChild(this.overlay))}alignOverlay(){this.appendTo?(this.overlay.style.minWidth=j.getOuterWidth(this.input.nativeElement)+"px",j.absolutePosition(this.overlay,this.input.nativeElement)):j.relativePosition(this.overlay,this.input.nativeElement)}onInput(e){this.value=e.target.value,this.onModelChange(this.value)}onInputFocus(e){this.focused=!0,this.feedback&&(this.overlayVisible=!0),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.onModelTouched(),this.onBlur.emit(e)}onKeyUp(e){if(this.feedback){if(this.updateUI(e.target.value),"Escape"===e.code)return void(this.overlayVisible&&(this.overlayVisible=!1));this.overlayVisible||(this.overlayVisible=!0)}}updateUI(e){let n=null,o=null;switch(this.testStrength(e)){case 1:n=this.weakText(),o={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText(),o={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText(),o={strength:"strong",width:"100%"};break;default:n=this.promptText(),o=null}this.meter=o,this.infoText=n}onMaskToggle(){this.unmasked=!this.unmasked}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}testStrength(e){let n=0;return this.strongCheckRegExp.test(e)?n=3:this.mediumCheckRegExp.test(e)?n=2:e.length&&(n=1),n}writeValue(e){this.value=void 0===e?null:e,this.feedback&&this.updateUI(this.value||""),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindScrollListener(){ei(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new Vu(this.input.nativeElement,()=>{this.overlayVisible&&(this.overlayVisible=!1)})),this.scrollHandler.bindScrollListener())}bindResizeListener(){ei(this.platformId)&&!this.resizeListener&&(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",()=>{this.overlayVisible&&!j.isTouchDevice()&&(this.overlayVisible=!1)}))}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}containerClass(e){return{"p-password p-component p-inputwrapper":!0,"p-input-icon-right":e}}inputFieldClass(e){return{"p-password-input":!0,"p-disabled":e}}strengthClass(e){return`p-password-strength ${e?e.strength:""}`}filled(){return null!=this.value&&this.value.toString().length>0}promptText(){return this.promptLabel||this.getTranslation(di.PASSWORD_PROMPT)}weakText(){return this.weakLabel||this.getTranslation(di.WEAK)}mediumText(){return this.mediumLabel||this.getTranslation(di.MEDIUM)}strongText(){return this.strongLabel||this.getTranslation(di.STRONG)}restoreAppend(){this.overlay&&this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).removeChild(this.overlay))}inputType(e){return e?"text":"password"}getTranslation(e){return this.config.getTranslation(e)}clear(){this.value=null,this.onModelChange(this.value),this.writeValue(this.value),this.onClear.emit()}ngOnDestroy(){this.overlay&&(Wn.clear(this.overlay),this.overlay=null),this.restoreAppend(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(ki),V(bt),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-password"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Qxe,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:8,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled())("p-inputwrapper-focus",o.focused)("p-password-clearable",o.showClear)("p-password-mask",o.toggleMask)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",label:"label",disabled:"disabled",promptLabel:"promptLabel",mediumRegex:"mediumRegex",strongRegex:"strongRegex",weakLabel:"weakLabel",mediumLabel:"mediumLabel",maxLength:"maxLength",strongLabel:"strongLabel",inputId:"inputId",feedback:"feedback",appendTo:"appendTo",toggleMask:"toggleMask",inputStyleClass:"inputStyleClass",styleClass:"styleClass",style:"style",inputStyle:"inputStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autocomplete:"autocomplete",placeholder:"placeholder",showClear:"showClear"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClear:"onClear"},features:[yt([bAe])],decls:9,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","",3,"ngClass","ngStyle","value","input","focus","blur","keyup"],["input",""],[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],[1,"p-password-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass","click"],[3,"click",4,"ngIf"],[3,"click"],[3,"ngClass","click"],["overlay",""],[4,"ngIf","ngIfElse"],["content",""],[1,"p-password-meter"],["className","p-password-info"]],template:function(n,o){1&n&&(x(0,"div",0),Il(1,"mapper"),x(2,"input",1,2),me("input",function(r){return o.onInput(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keyup",function(r){return o.onKeyUp(r)}),Il(4,"mapper"),Il(5,"mapper"),A(),g(6,Jxe,4,3,"ng-container",3),g(7,uAe,3,2,"ng-container",3),g(8,CAe,7,12,"div",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Cl(1,23,o.toggleMask,o.containerClass))("ngStyle",o.style),K("data-pc-name","password")("data-pc-section","root"),h(2),Ve(o.inputStyleClass),d("ngClass",Cl(4,26,o.disabled,o.inputFieldClass))("ngStyle",o.inputStyle)("value",o.value),K("label",o.label)("aria-label",o.ariaLabel)("aria-labelledBy",o.ariaLabelledBy)("id",o.inputId)("type",Cl(5,29,o.unmasked,o.inputType))("placeholder",o.placeholder)("autocomplete",o.autocomplete)("maxlength",o.maxLength)("data-pc-section","input"),h(4),d("ngIf",o.showClear&&null!=o.value),h(1),d("ngIf",o.toggleMask),h(1),d("ngIf",o.overlayVisible))},dependencies:function(){return[Ct,gt,on,Ht,hC,mn,MO,kO,vAe]},styles:["@layer primeng{.p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}.p-password-input::-ms-reveal,.p-password-input::-ms-clear{display:none}.p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-password-clearable.p-password-mask .p-password-clear-icon{margin-top:unset}.p-password-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),xAe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,mn,MO,kO,Qe]})}return t})();const Rwe={zIndex:1200};let Nwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({providers:[{provide:Oye,useValue:Rwe}],imports:[Xe,Mi,Qe,dn,rg,TO,gC,mC,SO,Or,_C,Zo,If,Qs,oO,Qe,rg]})}return t})();const Vwe=["input"],Bwe=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function Hwe(t,i){if(1&t){const e=De();x(0,"label",7),me("click",function(o){return G(e),q(f().select(o))}),Le(1),A()}if(2&t){const e=f(),n=Bt(3);Ve(e.labelStyleClass),d("ngClass",Rn(6,Bwe,n.checked,e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),dt(e.label)}}const zwe=function(t,i,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},jwe=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},Uwe={provide:un,useExisting:ft(()=>Kwe),multi:!0};let $we=(()=>{class t{accessors=[];add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kwe=(()=>{class t{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new ge;onFocus=new ge;onBlur=new ge;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(e,n,o){this.cd=e,this.injector=n,this.registry=o}ngOnInit(){this.control=this.injector.get(ds),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,o){e.preventDefault(),!this.disabled&&(this.select(e),o&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(n){return new(n||t)(V(Ft),V($i),V($we))};static \u0275cmp=Oe({type:t,selectors:[["p-radioButton"]],viewQuery:function(n,o){if(1&n&&je(Vwe,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([Uwe])],decls:7,vars:29,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","value","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.handleClick(a,l,!0))}),x(1,"div",1)(2,"input",2,3),me("focus",function(a){return o.onInputFocus(a)})("blur",function(a){return o.onInputBlur(a)}),A()(),x(4,"div",4),le(5,"span",5),A()(),g(6,Hwe,2,10,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(21,zwe,o.checked,o.disabled,o.focused)),K("data-pc-name","radiobutton")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper"),h(1),d("checked",o.checked)("disabled",o.disabled)("value",o.value),K("id",o.inputId)("name",o.name)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("tabindex",o.tabindex)("aria-checked",o.checked)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(25,jwe,o.checked,o.disabled,o.focused)),K("data-pc-section","input"),h(1),K("data-pc-section","icon"),h(1),d("ngIf",o.label))},dependencies:[Ct,gt,Ht],encapsulation:2,changeDetection:0})}return t})(),Gwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),FO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BanIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7 0C5.61553 0 4.26215 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.00303296 5.6003 -0.13559 7.00776 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C14 5.14348 13.2625 3.36301 11.9497 2.05025C10.637 0.737498 8.85652 0 7 0ZM1.16667 7C1.16549 5.65478 1.63303 4.35118 2.48889 3.31333L10.6867 11.5111C9.83309 12.2112 8.79816 12.6544 7.70243 12.789C6.60669 12.9236 5.49527 12.744 4.49764 12.2713C3.50001 11.7986 2.65724 11.0521 2.06751 10.1188C1.47778 9.18558 1.16537 8.10397 1.16667 7ZM11.5111 10.6867L3.31334 2.48889C4.43144 1.57388 5.84966 1.10701 7.29265 1.1789C8.73565 1.2508 10.1004 1.85633 11.1221 2.87795C12.1437 3.89956 12.7492 5.26435 12.8211 6.70735C12.893 8.15034 12.4261 9.56856 11.5111 10.6867Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),RO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.9741 13.6721C10.8806 13.6719 10.7886 13.6483 10.7066 13.6033L7.00002 11.6545L3.29345 13.6033C3.19926 13.6539 3.09281 13.6771 2.98612 13.6703C2.87943 13.6636 2.77676 13.6271 2.6897 13.5651C2.60277 13.5014 2.53529 13.4147 2.4948 13.3148C2.45431 13.215 2.44241 13.1058 2.46042 12.9995L3.17881 8.87264L0.167699 5.95324C0.0922333 5.8777 0.039368 5.78258 0.0150625 5.67861C-0.00924303 5.57463 -0.00402231 5.46594 0.030136 5.36477C0.0621323 5.26323 0.122141 5.17278 0.203259 5.10383C0.284377 5.03488 0.383311 4.99023 0.488681 4.97501L4.63087 4.37126L6.48797 0.618832C6.54083 0.530159 6.61581 0.456732 6.70556 0.405741C6.79532 0.35475 6.89678 0.327942 7.00002 0.327942C7.10325 0.327942 7.20471 0.35475 7.29447 0.405741C7.38422 0.456732 7.4592 0.530159 7.51206 0.618832L9.36916 4.37126L13.5114 4.97501C13.6167 4.99023 13.7157 5.03488 13.7968 5.10383C13.8779 5.17278 13.9379 5.26323 13.9699 5.36477C14.0041 5.46594 14.0093 5.57463 13.985 5.67861C13.9607 5.78258 13.9078 5.8777 13.8323 5.95324L10.8212 8.87264L11.532 12.9995C11.55 13.1058 11.5381 13.215 11.4976 13.3148C11.4571 13.4147 11.3896 13.5014 11.3027 13.5651C11.2059 13.632 11.0917 13.6692 10.9741 13.6721ZM7.00002 10.4393C7.09251 10.4404 7.18371 10.4613 7.2675 10.5005L10.2098 12.029L9.65193 8.75036C9.6368 8.6584 9.64343 8.56418 9.6713 8.47526C9.69918 8.38633 9.74751 8.30518 9.81242 8.23832L12.1969 5.94559L8.90298 5.45648C8.81188 5.44198 8.72555 5.406 8.65113 5.35152C8.57671 5.29703 8.51633 5.2256 8.475 5.14314L7.00002 2.1626L5.52503 5.15078C5.4837 5.23324 5.42332 5.30467 5.3489 5.35916C5.27448 5.41365 5.18815 5.44963 5.09705 5.46412L1.80318 5.94559L4.18761 8.23832C4.25252 8.30518 4.30085 8.38633 4.32873 8.47526C4.3566 8.56418 4.36323 8.6584 4.3481 8.75036L3.7902 12.0519L6.73253 10.5234C6.81451 10.4762 6.9058 10.4475 7.00002 10.4393Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),NO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarFillIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.9718 5.36453C13.9398 5.26298 13.8798 5.17252 13.7986 5.10356C13.7175 5.0346 13.6186 4.98994 13.5132 4.97472L9.37043 4.37088L7.51307 0.617955C7.46021 0.529271 7.38522 0.455834 7.29545 0.404836C7.20568 0.353838 7.1042 0.327026 7.00096 0.327026C6.89771 0.327026 6.79624 0.353838 6.70647 0.404836C6.6167 0.455834 6.54171 0.529271 6.48885 0.617955L4.63149 4.37088L0.488746 4.97472C0.383363 4.98994 0.284416 5.0346 0.203286 5.10356C0.122157 5.17252 0.0621407 5.26298 0.03014 5.36453C-0.00402286 5.46571 -0.00924428 5.57442 0.0150645 5.67841C0.0393733 5.7824 0.0922457 5.87753 0.167722 5.95308L3.17924 8.87287L2.4684 13.0003C2.45038 13.1066 2.46229 13.2158 2.50278 13.3157C2.54328 13.4156 2.61077 13.5022 2.6977 13.5659C2.78477 13.628 2.88746 13.6644 2.99416 13.6712C3.10087 13.678 3.20733 13.6547 3.30153 13.6042L7.00096 11.6551L10.708 13.6042C10.79 13.6491 10.882 13.6728 10.9755 13.673C11.0958 13.6716 11.2129 13.6343 11.3119 13.5659C11.3988 13.5022 11.4663 13.4156 11.5068 13.3157C11.5473 13.2158 11.5592 13.1066 11.5412 13.0003L10.8227 8.87287L13.8266 5.95308C13.9033 5.87835 13.9577 5.7836 13.9833 5.67957C14.009 5.57554 14.005 5.4664 13.9718 5.36453Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function qwe(t,i){if(1&t&&le(0,"span",10),2&t){const e=f(3);d("ngClass",e.iconCancelClass)("ngStyle",e.iconCancelStyle)}}function Wwe(t,i){if(1&t&&le(0,"BanIcon",11),2&t){const e=f(3);d("styleClass","p-rating-icon p-rating-cancel")("ngStyle",e.iconCancelStyle),K("data-pc-section","cancelIcon")}}const Qwe=function(t){return{"p-focus":t}};function Zwe(t,i){if(1&t){const e=De();x(0,"div",5),me("click",function(o){return G(e),q(f(2).onOptionClick(o,0))}),x(1,"span",6)(2,"input",7),me("focus",function(o){return G(e),q(f(2).onInputFocus(o,0))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){return G(e),q(f(2).onChange(o,0))}),A()(),g(3,qwe,1,2,"span",8),g(4,Wwe,1,3,"BanIcon",9),A()}if(2&t){const e=f(2);d("ngClass",He(10,Qwe,0===e.focusedOptionIndex()&&e.isFocusVisible)),K("data-pc-section","cancelItem"),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",e.name)("checked",0===e.value)("disabled",e.disabled)("readonly",e.readonly),K("aria-label",e.cancelAriaLabel()),h(1),d("ngIf",e.iconCancelClass),h(1),d("ngIf",!e.iconCancelClass)}}function Ywe(t,i){if(1&t&&le(0,"span",16),2&t){const e=f(4);d("ngStyle",e.iconOffStyle)("ngClass",e.iconOffClass),K("data-pc-section","offIcon")}}function Xwe(t,i){1&t&&le(0,"StarIcon",17),2&t&&(d("ngStyle",f(4).iconOffStyle)("styleClass","p-rating-icon"),K("data-pc-section","offIcon"))}function Jwe(t,i){if(1&t&&(we(0),g(1,Ywe,1,3,"span",14),g(2,Xwe,1,3,"StarIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOffClass),h(1),d("ngIf",!e.iconOffClass)}}function e2e(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4);d("ngStyle",e.iconOnStyle)("ngClass",e.iconOnClass),K("data-pc-section","onIcon")}}function t2e(t,i){1&t&&le(0,"StarFillIcon",17),2&t&&(d("ngStyle",f(4).iconOnStyle)("styleClass","p-rating-icon p-rating-icon-active"),K("data-pc-section","onIcon"))}function n2e(t,i){if(1&t&&(we(0),g(1,e2e,1,3,"span",18),g(2,t2e,1,3,"StarFillIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOnClass),h(1),d("ngIf",!e.iconOnClass)}}const i2e=function(t,i){return{"p-rating-item-active":t,"p-focus":i}};function o2e(t,i){if(1&t){const e=De();x(0,"div",12),me("click",function(o){const r=G(e).$implicit;return q(f(2).onOptionClick(o,r+1))}),x(1,"span",6)(2,"input",7),me("focus",function(o){const r=G(e).$implicit;return q(f(2).onInputFocus(o,r+1))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){const r=G(e).$implicit;return q(f(2).onChange(o,r+1))}),A()(),g(3,Jwe,3,2,"ng-container",13),g(4,n2e,3,2,"ng-container",13),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",mt(9,i2e,e+1<=o.value,e+1===o.focusedOptionIndex()&&o.isFocusVisible)),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",o.name)("checked",0===o.value)("disabled",o.disabled)("readonly",o.readonly),K("aria-label",o.starAriaLabel(e+1)),h(1),d("ngIf",!o.value||n>=o.value),h(1),d("ngIf",o.value&&nh2e),multi:!0};let h2e=(()=>{class t{cd;config;disabled;readonly;stars=5;cancel=!0;iconOnClass;iconOnStyle;iconOffClass;iconOffStyle;iconCancelClass;iconCancelStyle;onRate=new ge;onCancel=new ge;onFocus=new ge;onBlur=new ge;templates;onIconTemplate;offIconTemplate;cancelIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};starsArray;isFocusVisibleItem=!0;focusedOptionIndex=bn(-1);name;constructor(e,n){this.cd=e,this.config=n}ngOnInit(){this.name=this.name||$t(),this.starsArray=[];for(let e=0;e{switch(e.getType()){case"onicon":this.onIconTemplate=e.template;break;case"officon":this.offIconTemplate=e.template;break;case"cancelicon":this.cancelIconTemplate=e.template}})}onOptionClick(e,n){if(!this.readonly&&!this.disabled){this.onOptionSelect(e,n),this.isFocusVisibleItem=!1;const o=j.getFirstFocusableElement(e.currentTarget,"");o&&j.focus(o)}}onOptionSelect(e,n){this.focusedOptionIndex.set(n),this.updateModel(e,n||null)}onChange(e,n){this.onOptionSelect(e,n),this.isFocusVisibleItem=!0}onInputBlur(e){this.focusedOptionIndex.set(-1),this.onBlur.emit(e)}onInputFocus(e,n){this.focusedOptionIndex.set(n),this.onFocus.emit(e)}updateModel(e,n){this.value=n,this.onModelChange(this.value),this.onModelTouched(),n?this.onRate.emit({originalEvent:e,value:n}):this.onCancel.emit()}cancelAriaLabel(){return this.config.translation.clear}starAriaLabel(e){return 1===e?this.config.translation.aria.star:this.config.translation.aria.stars.replace(/{star}/g,e)}getIconTemplate(e){return!this.value||e>=this.value?this.offIconTemplate:this.onIconTemplate}writeValue(e){this.value=e,this.cd.detectChanges()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get isCustomIcon(){return this.templates&&this.templates.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-rating"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",readonly:"readonly",stars:"stars",cancel:"cancel",iconOnClass:"iconOnClass",iconOnStyle:"iconOnStyle",iconOffClass:"iconOffClass",iconOffStyle:"iconOffStyle",iconCancelClass:"iconCancelClass",iconCancelStyle:"iconCancelStyle"},outputs:{onRate:"onRate",onCancel:"onCancel",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([p2e])],decls:4,vars:8,consts:[[1,"p-rating",3,"ngClass"],[4,"ngIf","ngIfElse"],["customTemplate",""],["class","p-rating-item p-rating-cancel-item",3,"ngClass","click",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-rating-item","p-rating-cancel-item",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","radio","value","0",3,"name","checked","disabled","readonly","focus","blur","change"],["class","p-rating-icon p-rating-cancel",3,"ngClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle",4,"ngIf"],[1,"p-rating-icon","p-rating-cancel",3,"ngClass","ngStyle"],[3,"styleClass","ngStyle"],[1,"p-rating-item",3,"ngClass","click"],[4,"ngIf"],["class","p-rating-icon",3,"ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","styleClass",4,"ngIf"],[1,"p-rating-icon",3,"ngStyle","ngClass"],[3,"ngStyle","styleClass"],["class","p-rating-icon p-rating-icon-active",3,"ngStyle","ngClass",4,"ngIf"],[1,"p-rating-icon","p-rating-icon-active",3,"ngStyle","ngClass"],["class","p-rating-icon p-rating-cancel",3,"ngStyle","click",4,"ngIf"],["class","p-rating-icon",3,"click",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngStyle","click"],[4,"ngTemplateOutlet"],[1,"p-rating-icon",3,"click"]],template:function(n,o){if(1&n&&(x(0,"div",0),g(1,s2e,3,2,"ng-container",1),g(2,u2e,2,2,"ng-template",null,2,In),A()),2&n){const s=Bt(3);d("ngClass",mt(5,d2e,o.readonly,o.disabled)),K("data-pc-name","rating")("data-pc-section","root"),h(1),d("ngIf",!o.isCustomIcon)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,NO,RO,FO]},styles:["@layer primeng{.p-rating{display:inline-flex}.p-rating-icon{cursor:pointer}.p-rating.p-rating-readonly .p-rating-icon{cursor:default}}\n"],encapsulation:2,changeDetection:0})}return t})(),f2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,NO,RO,FO,Qe]})}return t})();const g2e=["container"],m2e=["content"],_2e=["xBar"],I2e=["yBar"];function C2e(t,i){1&t&&ze(0)}const v2e=["*"];let b2e=(()=>{class t{platformId;el;zone;cd;document;renderer;style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;templates;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;contentTemplate;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.cd=s,this.document=r,this.renderer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement;const s=this.document.defaultView;let r=s.getComputedStyle(e),a=s.getComputedStyle(o),l=j.getHeight(e)-parseInt(a.height,10);"none"!=r["max-height"]&&0==l&&(e.style.height=n.offsetHeight+parseInt(a.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement,s=n.scrollWidth,r=n.clientWidth,a=-1*(e.clientHeight-o.clientHeight);this.scrollXRatio=r/s;let l=this.yBarViewChild.nativeElement,c=n.scrollHeight,u=n.clientHeight,p=-1*(e.clientWidth-l.clientWidth);this.scrollYRatio=u/c,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)o.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(o,"p-scrollpanel-hidden");else{o.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(o,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollXRatio,10);o.style.cssText="width:"+m+"%; left:"+n.scrollLeft*(100-m)/(s-r)+"%;bottom:"+a+"px;"}if(this.scrollYRatio>=1)l.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(l,"p-scrollpanel-hidden");else{l.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(l,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollYRatio,10);l.style.cssText="height:"+m+"%; top: calc("+n.scrollTop*(100-m)/(c-u)+"% - "+o.clientHeight+"px);right:"+p+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){"horizontal"===this.orientation&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(Ft),V(Wt),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(g2e,5),je(m2e,5),je(_2e,5),je(I2e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.xBarViewChild=s.first),Se(s=Ee())&&(o.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",step:"step"},ngContentSelectors:v2e,decls:11,vars:14,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],["content",""],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["xBar",""],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"],["yBar",""]],template:function(n,o){1&n&&(Ti(),x(0,"div",0,1)(2,"div",2)(3,"div",3,4),me("mouseenter",function(){return o.moveBar()})("scroll",function(r){return o.onScroll(r)}),Kn(5),g(6,C2e,1,0,"ng-container",5),A()(),x(7,"div",6,7),me("mousedown",function(r){return o.onXBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)})("blur",function(){return o.onBlur()}),A(),x(9,"div",8,9),me("mousedown",function(r){return o.onYBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass","p-scrollpanel p-component")("ngStyle",o.style),K("data-pc-name","scrollpanel"),h(2),K("data-pc-section","wrapper"),h(1),K("data-pc-section","content"),h(3),d("ngTemplateOutlet",o.contentTemplate),h(1),K("aria-orientation","horizontal")("aria-valuenow",o.lastScrollLeft)("data-pc-section","barx"),h(2),K("aria-orientation","vertical")("aria-valuenow",o.lastScrollTop)("data-pc-section","bary"))},dependencies:[Ct,on,Ht],styles:["@layer primeng{.p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}}\n"],encapsulation:2,changeDetection:0})}return t})(),y2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),x2e=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CaretLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.5553 13C10.411 13.0006 10.2704 12.9538 10.1554 12.8667L3.04473 7.53369C2.96193 7.4716 2.89474 7.39108 2.84845 7.29852C2.80217 7.20595 2.77808 7.10388 2.77808 7.00039C2.77808 6.8969 2.80217 6.79484 2.84845 6.70227C2.89474 6.60971 2.96193 6.52919 3.04473 6.4671L10.1554 1.13412C10.2549 1.05916 10.3734 1.0136 10.4976 1.0026C10.6217 0.991605 10.7464 1.01561 10.8575 1.0719C10.9668 1.12856 11.0584 1.21398 11.1226 1.31893C11.1869 1.42388 11.2212 1.54438 11.222 1.66742V12.3334C11.2212 12.4564 11.1869 12.5769 11.1226 12.6819C11.0584 12.7868 10.9668 12.8722 10.8575 12.9289C10.7629 12.9735 10.6599 12.9977 10.5553 13ZM4.55574 7.00039L9.88871 11.0001V3.00066L4.55574 7.00039Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),J2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,x2e,qn,Nn,Qe]})}return t})();const eTe=["sliderHandle"],tTe=["sliderHandleStart"],nTe=["sliderHandleEnd"],iTe=function(t,i){return{left:t,width:i}};function oTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,iTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const sTe=function(t,i){return{bottom:t,height:i}};function rTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,sTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const aTe=function(t){return{height:t}};function lTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,aTe,e.handleValue+"%")),K("data-pc-section","range")}}const cTe=function(t){return{width:t}};function uTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,cTe,e.handleValue+"%")),K("data-pc-section","range")}}const Pv=function(t,i){return{left:t,bottom:i}};function dTe(t,i){if(1&t){const e=De();x(0,"span",6,7),me("touchstart",function(o){return G(e),q(f().onDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(o){return G(e),q(f().onDragEnd(o))})("mousedown",function(o){return G(e),q(f().onMouseDown(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(11,Pv,"horizontal"==e.orientation?e.handleValue+"%":null,"vertical"==e.orientation?e.handleValue+"%":null)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","handle")}}const BO=function(t){return{"p-slider-handle-active":t}};function pTe(t,i){if(1&t){const e=De();x(0,"span",8,9),me("keydown",function(o){return G(e),q(f().onKeyDown(o,0))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,0))})("touchstart",function(o){return G(e),q(f().onDragStart(o,0))})("touchmove",function(o){return G(e),q(f().onDrag(o,0))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeStartLeft,e.rangeStartBottom))("ngClass",He(15,BO,0==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[0]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","startHandler")}}function hTe(t,i){if(1&t){const e=De();x(0,"span",10,11),me("keydown",function(o){return G(e),q(f().onKeyDown(o,1))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,1))})("touchstart",function(o){return G(e),q(f().onDragStart(o,1))})("touchmove",function(o){return G(e),q(f().onDrag(o,1))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeEndLeft,e.rangeEndBottom))("ngClass",He(15,BO,1==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[1]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","endHandler")}}const fTe=function(t,i,e,n){return{"p-slider p-component":!0,"p-disabled":t,"p-slider-horizontal":i,"p-slider-vertical":e,"p-slider-animate":n}},gTe={provide:un,useExisting:ft(()=>mTe),multi:!0};let mTe=(()=>{class t{document;platformId;el;renderer;ngZone;cd;animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;onChange=new ge;onSlideEnd=new ge;sliderHandle;sliderHandleStart;sliderHandleEnd;value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.ngZone=r,this.cd=a}onMouseDown(e,n){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,this.bindDragListeners(),e.target.focus(),e.preventDefault(),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(e,n){if(!this.disabled){var o=e.changedTouches[0];this.startHandleValue=this.range?this.handleValues[n]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,"horizontal"===this.orientation?(this.startx=parseInt(o.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(o.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault()}}onDrag(e){if(!this.disabled){var o,n=e.changedTouches[0];o="horizontal"===this.orientation?Math.floor(100*(parseInt(n.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(n.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(e,o),e.preventDefault()}}onDragEnd(e){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault())}onBarClick(e){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(e),this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(e,n){switch(this.handleIndex=n,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,n),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,n),e.preventDefault();break;case"PageDown":this.decrementValue(e,n,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,n,!0),e.preventDefault();break;case"Home":this.updateValue(this.min,e),e.preventDefault();break;case"End":this.updateValue(this.max,e),e.preventDefault()}}decrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]-this.step:this.values[n]-1:this.step?this.value-this.step:!this.step&&o?this.value-10:this.value-1,this.updateValue(s,e),e.preventDefault()}incrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]+this.step:this.values[n]+1:this.step?this.value+this.step:!this.step&&o?this.value+10:this.value+1,this.updateValue(s,e),e.preventDefault()}handleChange(e){let n=this.calculateHandleValue(e);this.setValueFromHandle(e,n)}bindDragListeners(){ei(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const e=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(e,"mousemove",n=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(n)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(e,"mouseup",n=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:n,values:this.values}:{originalEvent:n,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(e,n){let o=this.getValueFromHandle(n);this.range?this.step?this.handleStepChange(o,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=n,this.updateValue(o,e)):this.step?this.handleStepChange(o,this.value):(this.handleValue=n,this.updateValue(o,e)),this.cd.markForCheck()}handleStepChange(e,n){let o=e-n,s=n,r=this.step;o<0?s=n+Math.ceil(e/r-n/r)*r:o>0&&(s=n+Math.floor(e/r-n/r)*r),this.updateValue(s),this.updateHandleValue()}writeValue(e){this.range?this.values=e||[0,0]:this.value=e||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let e=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=e.left+j.getWindowScrollLeft(),this.initY=e.top+j.getWindowScrollTop(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(e){return"horizontal"===this.orientation?100*(e.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-e.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.valuethis.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(e,n){if(this.range){let o=e;0==this.handleIndex?(othis.values[1]&&o>this.max&&(o=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(o>this.max?(o=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):othis.max&&(e=this.max,this.handleValue=100),this.value=this.getNormalizedValue(e),this.onModelChange(this.value),this.onChange.emit({event:n,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(e){return e/100*(this.max-this.min)+this.min}getDecimalsCount(e){return e&&Math.floor(e)!==e&&e.toString().split(".")[1].length||0}getNormalizedValue(e){let n=this.getDecimalsCount(this.step);return n>0?+parseFloat(e.toString()).toFixed(n):Math.floor(e)}ngOnDestroy(){this.unbindDragListeners()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-slider"]],viewQuery:function(n,o){if(1&n&&(je(eTe,5),je(tTe,5),je(nTe,5)),2&n){let s;Se(s=Ee())&&(o.sliderHandle=s.first),Se(s=Ee())&&(o.sliderHandleStart=s.first),Se(s=Ee())&&(o.sliderHandleEnd=s.first)}},hostAttrs:[1,"p-element"],inputs:{animate:"animate",disabled:"disabled",min:"min",max:"max",orientation:"orientation",step:"step",range:"range",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex"},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[yt([gTe])],decls:8,vars:18,consts:[[3,"ngStyle","ngClass","click"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"ngStyle","touchstart","touchmove","touchend","mousedown","keydown"],["sliderHandle",""],["role","slider",1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleStart",""],[1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleEnd",""]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onBarClick(r)}),g(1,oTe,1,5,"span",1),g(2,rTe,1,5,"span",1),g(3,lTe,1,4,"span",1),g(4,uTe,1,4,"span",1),g(5,dTe,2,14,"span",2),g(6,pTe,2,17,"span",3),g(7,hTe,2,17,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",gr(13,fTe,o.disabled,"horizontal"==o.orientation,"vertical"==o.orientation,o.animate)),K("data-pc-name","slider")("data-pc-section","root"),h(1),d("ngIf",o.range&&"horizontal"==o.orientation),h(1),d("ngIf",o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"horizontal"==o.orientation),h(1),d("ngIf",!o.range),h(1),d("ngIf",o.range),h(1),d("ngIf",o.range))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-slider{position:relative}.p-slider .p-slider-handle{position:absolute;cursor:grab;touch-action:none;display:block}.p-slider-range{position:absolute;display:block}.p-slider-horizontal .p-slider-range{top:0;left:0;height:100%}.p-slider-horizontal .p-slider-handle{top:50%}.p-slider-vertical{height:100px}.p-slider-vertical .p-slider-handle{left:50%}.p-slider-vertical .p-slider-range{bottom:0;left:0;width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_Te=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const ITe=["inputfield"],CTe=function(t){return{"ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},vTe=function(t){return{"ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},bTe={provide:un,useExisting:ft(()=>yTe),multi:!0};let yTe=(()=>{class t{el;cd;onChange=new ge;onFocus=new ge;onBlur=new ge;min;max;maxlength;size;placeholder;inputId;disabled;readonly;tabindex;required;name;ariaLabelledBy;inputStyle;inputStyleClass;formatInput;decimalSeparator;thousandSeparator;precision;value;_step=1;formattedValue;onModelChange=()=>{};onModelTouched=()=>{};keyPattern=/[0-9\+\-]/;timer;focus;filled;negativeSeparator="-";localeDecimalSeparator;localeThousandSeparator;thousandRegExp;calculatedPrecision;inputfieldViewChild;get step(){return this._step}set step(e){if(this._step=e,null!=this._step){let n=this.step.toString().split(/[,]|[.]/);this.calculatedPrecision=n[1]?n[1].length:void 0}}constructor(e,n){this.el=e,this.cd=n}ngOnInit(){this.formatInput&&(this.localeDecimalSeparator=1.1.toLocaleString().substring(1,2),this.localeThousandSeparator=1e3.toLocaleString().substring(1,2),this.thousandRegExp=new RegExp(`[${this.thousandSeparator||this.localeThousandSeparator}]`,"gim"),this.decimalSeparator&&this.thousandSeparator&&this.decimalSeparator===this.thousandSeparator&&console.warn("thousandSeparator and decimalSeparator cannot have the same value."))}repeat(e,n,o){let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let s,o=this.step*n,r=this.getPrecision();s=this.value?"string"==typeof this.value?this.parseValue(this.value):this.value:0,this.value=r?parseFloat(this.toFixed(s+o,r)):s+o,void 0!==this.maxlength&&this.value.toString().length>this.maxlength&&(this.value=s),void 0!==this.min&&this.valuethis.max&&(this.value=this.max),this.formatValue(),this.onModelChange(this.value),this.onChange.emit(e)}getPrecision(){return void 0===this.precision?this.calculatedPrecision:this.precision}toFixed(e,n){let o=Math.pow(10,n||0);return String(Math.round(e*o)/o)}onUpButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,1),this.updateFilledState(),e.preventDefault())}onUpButtonMouseup(e){this.disabled||this.clearTimer()}onUpButtonMouseleave(e){this.disabled||this.clearTimer()}onDownButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,-1),this.updateFilledState(),e.preventDefault())}onDownButtonMouseup(e){this.disabled||this.clearTimer()}onDownButtonMouseleave(e){this.disabled||this.clearTimer()}onInputKeydown(e){38==e.which?(this.spin(e,1),e.preventDefault()):40==e.which&&(this.spin(e,-1),e.preventDefault())}onInputChange(e){this.onChange.emit(e)}onInput(e){this.value=this.parseValue(e.target.value),this.onModelChange(this.value),this.updateFilledState()}onInputBlur(e){this.focus=!1,this.formatValue(),this.onModelTouched(),this.onBlur.emit(e)}onInputFocus(e){this.focus=!0,this.onFocus.emit(e)}parseValue(e){let n,o=this.getPrecision();return""===e.trim()?n=null:(this.formatInput&&(e=e.replace(this.thousandRegExp,"")),o?(e=e.replace(this.formatInput?this.decimalSeparator||this.localeDecimalSeparator:",","."),n=parseFloat(e)):n=parseInt(e,10),isNaN(n)?n=null:(null!==this.max&&n>this.max&&(n=this.max),null!==this.min&&n3&&(e[0]=e[0].replace(new RegExp(`[${this.localeThousandSeparator}]`,"gim"),this.thousandSeparator)),e=e.join(""))),this.formattedValue=e.toString()):this.formattedValue=null,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.formattedValue)}clearTimer(){this.timer&&clearInterval(this.timer)}writeValue(e){this.value=e,this.formatValue(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}updateFilledState(){this.filled=void 0!==this.value&&null!=this.value}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-spinner"]],viewQuery:function(n,o){if(1&n&&je(ITe,5),2&n){let s;Se(s=Ee())&&(o.inputfieldViewChild=s.first)}},hostAttrs:[1,"p-element"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("ui-inputwrapper-filled",o.filled)("ui-inputwrapper-focus",o.focus)},inputs:{min:"min",max:"max",maxlength:"maxlength",size:"size",placeholder:"placeholder",inputId:"inputId",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",required:"required",name:"name",ariaLabelledBy:"ariaLabelledBy",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",formatInput:"formatInput",decimalSeparator:"decimalSeparator",thousandSeparator:"thousandSeparator",precision:"precision",step:"step"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([bTe])],decls:7,vars:28,consts:[[1,"ui-spinner","ui-widget","ui-corner-all"],["type","text",3,"value","disabled","readonly","ngStyle","ngClass","keydown","blur","input","change","focus"],["inputfield",""],["type","button","tabindex","-1",3,"ngClass","disabled","mouseleave","mousedown","mouseup"],[1,"ui-spinner-button-icon","pi","pi-caret-up","ui-clickable"],[1,"ui-spinner-button-icon","pi","pi-caret-down","ui-clickable"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("keydown",function(r){return o.onInputKeydown(r)})("blur",function(r){return o.onInputBlur(r)})("input",function(r){return o.onInput(r)})("change",function(r){return o.onInputChange(r)})("focus",function(r){return o.onInputFocus(r)}),A(),x(3,"button",3),me("mouseleave",function(r){return o.onUpButtonMouseleave(r)})("mousedown",function(r){return o.onUpButtonMousedown(r)})("mouseup",function(r){return o.onUpButtonMouseup(r)}),le(4,"span",4),A(),x(5,"button",3),me("mouseleave",function(r){return o.onDownButtonMouseleave(r)})("mousedown",function(r){return o.onDownButtonMousedown(r)})("mouseup",function(r){return o.onDownButtonMouseup(r)}),le(6,"span",5),A()()),2&n&&(h(1),Ve(o.inputStyleClass),d("value",o.formattedValue||null)("disabled",o.disabled)("readonly",o.readonly)("ngStyle",o.inputStyle)("ngClass","ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all"),K("id",o.inputId)("name",o.name)("aria-valumin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("aria-labelledby",o.ariaLabelledBy)("size",o.size)("maxlength",o.maxlength)("tabindex",o.tabindex)("placeholder",o.placeholder)("required",o.required),h(2),d("ngClass",He(24,CTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly),h(2),d("ngClass",He(26,vTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly))},dependencies:[Ct,Ht],styles:["@layer primeng{.ui-spinner{display:inline-block;overflow:visible;padding:0;position:relative;vertical-align:middle}.ui-spinner-input{vertical-align:middle;padding-right:1.5em}.ui-spinner-button{cursor:default;display:block;height:50%;margin:0;overflow:hidden;padding:0;position:absolute;right:0;text-align:center;vertical-align:middle;width:1.5em}.ui-spinner .ui-spinner-button-icon{position:absolute;top:50%;left:50%;margin-top:-.5em;margin-left:-.5em;width:1em}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-fluid .ui-spinner{width:100%}.ui-fluid .ui-spinner .ui-spinner-input{padding-right:2em;width:100%}.ui-fluid .ui-spinner .ui-spinner-button{width:1.5em}.ui-fluid .ui-spinner .ui-spinner-button .ui-spinner-button-icon{left:.7em}}\n"],encapsulation:2,changeDetection:0})}return t})(),xTe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs]})}return t})(),Fv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),nSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Fv,bi,Mi,Fv]})}return t})(),dSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,qn,Nn]})}return t})(),OSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Qe,dn,Nn,Mr,Qi,qn,Qe,Nn]})}return t})(),oEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Nn,dn,mn,Mr,Qi,Qe]})}return t})(),sEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,uu]})}return t})(),fEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn,Qe]})}return t})();const gEe=function(t,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i}};function mEe(t,i){if(1&t&&le(0,"span",3),2&t){const e=f();Ve(e.checked?e.onIcon:e.offIcon),d("ngClass",mt(4,gEe,"left"===e.iconPos,"right"===e.iconPos)),K("data-pc-section","icon")}}function _Ee(t,i){if(1&t&&(x(0,"span",4),Le(1),A()),2&t){const e=f();K("data-pc-section","label"),h(1),dt(e.checked?e.hasOnLabel?e.onLabel:"":e.hasOffLabel?e.offLabel:"")}}const IEe=function(t,i,e){return{"p-button p-togglebutton p-component":!0,"p-button-icon-only":t,"p-highlight":i,"p-disabled":e}},CEe={provide:un,useExisting:ft(()=>vEe),multi:!0};let vEe=(()=>{class t{cd;onLabel;offLabel;onIcon;offIcon;ariaLabel;ariaLabelledBy;disabled;style;styleClass;inputId;tabindex;iconPos="left";onChange=new ge;checked=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}toggle(e){this.disabled||(this.checked=!this.checked,this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onKeyDown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}onBlur(){this.onModelTouched()}writeValue(e){this.checked=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.onLabel&&this.onLabel.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-toggleButton"]],hostAttrs:[1,"p-element"],inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",style:"style",styleClass:"styleClass",inputId:"inputId",tabindex:"tabindex",iconPos:"iconPos"},outputs:{onChange:"onChange"},features:[yt([CEe])],decls:3,vars:16,consts:[["role","switch","pRipple","",3,"ngClass","ngStyle","click","keydown"],[3,"class","ngClass",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeyDown(r)}),g(1,mEe,1,7,"span",1),g(2,_Ee,2,2,"span",2),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(12,IEe,o.onIcon&&o.offIcon&&!o.hasOnLabel&&!o.hasOffLabel,o.checked,o.disabled))("ngStyle",o.style),K("tabindex",o.disabled?null:"0")("aria-checked",o.checked)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-name","togglebutton")("data-pc-section","root"),h(1),d("ngIf",o.onIcon||o.offIcon),h(1),d("ngIf",o.onLabel||o.offLabel))},dependencies:[Ct,gt,Ht,oo],styles:['@layer primeng{.p-button[_ngcontent-%COMP%]{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label[_ngcontent-%COMP%]{flex:1 1 auto}.p-button-icon-right[_ngcontent-%COMP%]{order:1}.p-button[_ngcontent-%COMP%]:disabled{cursor:default;pointer-events:none}.p-button-icon-only[_ngcontent-%COMP%]{justify-content:center}.p-button-icon-only[_ngcontent-%COMP%]:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical[_ngcontent-%COMP%]{flex-direction:column}.p-button-icon-bottom[_ngcontent-%COMP%]{order:2}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]{margin:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:last-child){border-right:0 none}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:focus{position:relative;z-index:1}p-button[iconpos=right][_ngcontent-%COMP%] spinnericon[_ngcontent-%COMP%]{order:1}}'],changeDetection:0})}return t})(),bEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn]})}return t})(),wEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),oke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,yi,bi,Qi,eg,Qs,_s,ng,Qe,Oi]})}return t})(),uke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Oi,Qe,Oi]})}return t})();const dke=["split"],pke=["area1"],hke=["area2"],fke=["layoutMenuScroller"],gke=function(t,i,e,n,o,s){return{"layout-wrapper-overlay-sidebar":t,"layout-wrapper-slim-sidebar":i,"layout-wrapper-horizontal-sidebar":e,"layout-wrapper-overlay-sidebar-active":n,"layout-wrapper-sidebar-inactive":o,"layout-wrapper-sidebar-mobile-active":s}},mke=function(){return{height:"100%"}};let Rv=(()=>{class t{constructor(e){this.renderer=e,this.direction="horizontal",this.sizes={percent:{area1:12,area2:88},pixel:{area1:120,area2:"*",area3:160},useTransition:!0,av1:!0,av2:!0},this.action={area1:12,area2:88,useTransition:!1,av1:!0,av2:!0},this.layoutMode="static",this.megaMenuMode="dark",this.menuMode="light",this.profileMode="inline"}dragEnd(e,{sizes:n}){"percent"===e?(this.action.area1=n[0],this.action.area2=n[1]):"pixel"===e&&(this.sizes.pixel.area1=n[0],this.sizes.pixel.area2=n[1],this.sizes.pixel.area3=n[2])}ngAfterViewInit(){setTimeout(()=>{this.layoutMenuScrollerViewChild.moveBar()},100)}onLayoutClick(){this.topbarItemClick||(this.activeTopbarItem=null,this.topbarMenuActive=!1),this.rightPanelClick||(this.rightPanelActive=!1),this.megaMenuClick||(this.megaMenuActive=!1),!this.usermenuClick&&this.isSlim()&&(this.usermenuActive=!1,this.activeProfileItem=null),this.menuClick||((this.isHorizontal()||this.isSlim())&&(this.resetMenu=!0),(this.overlayMenuActive||this.staticMenuMobileActive)&&this.hideOverlayMenu(),this.menuHoverActive=!1),this.topbarItemClick=!1,this.menuClick=!1,this.rightPanelClick=!1,this.megaMenuClick=!1,this.usermenuClick=!1}onMenuButtonClick(e){this.menuClick=!0,this.topbarMenuActive=!1,"overlay"===this.layoutMode?this.overlayMenuActive=!this.overlayMenuActive:this.isDesktop()?(this.staticMenuDesktopInactive=!this.staticMenuDesktopInactive,88==this.action.area2&&12==this.action.area1?(this.action.area2=100,this.action.area1=0):100==this.action.area2&&0==this.action.area1&&(this.action.area2=88,this.action.area1=12)):this.staticMenuMobileActive=!this.staticMenuMobileActive,e.preventDefault()}onMenuClick(e){this.menuClick=!0,this.resetMenu=!1}onTopbarMenuButtonClick(e){this.topbarItemClick=!0,this.topbarMenuActive=!this.topbarMenuActive,this.hideOverlayMenu(),e.preventDefault()}onTopbarItemClick(e,n){this.topbarItemClick=!0,this.activeTopbarItem=this.activeTopbarItem===n?null:n,e.preventDefault()}onTopbarSubItemClick(e){e.preventDefault()}onRightPanelButtonClick(e){this.rightPanelClick=!0,this.rightPanelActive=!this.rightPanelActive,e.preventDefault()}onRightPanelClick(){this.rightPanelClick=!0}onMegaMenuButtonClick(e){this.megaMenuClick=!0,this.megaMenuActive=!this.megaMenuActive,e.preventDefault()}onMegaMenuClick(){this.megaMenuClick=!0}hideOverlayMenu(){this.overlayMenuActive=!1,this.staticMenuMobileActive=!1}isTablet(){const e=window.innerWidth;return e<=1024&&e>640}isDesktop(){return window.innerWidth>1024}isMobile(){return window.innerWidth<=640}isHorizontal(){return"horizontal"===this.layoutMode}isSlim(){return"slim"===this.layoutMode}isOverlay(){return"overlay"===this.layoutMode}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-root"]],viewQuery:function(n,o){if(1&n&&(je(dke,5),je(pke,5),je(hke,5),je(fke,7)),2&n){let s;Se(s=Ee())&&(o.split=s.first),Se(s=Ee())&&(o.area1=s.first),Se(s=Ee())&&(o.area2=s.first),Se(s=Ee())&&(o.layoutMenuScrollerViewChild=s.first)}},decls:17,vars:17,consts:[[1,"layout-wrapper",3,"ngClass","click"],[1,"ui-g-12","ui-md-12","reportSection",2,"padding-left","0px"],["unit","percent",3,"direction","useTransition","dragEnd"],["split","asSplit"],[1,"area1",2,"overflow","auto","width","auto","height","auto","margin-top","38px",3,"size","visible"],["area1","asSplitArea"],[1,"layout-sidebar",3,"click"],["layoutMenuScroller",""],[1,"sidebar-scroll-content"],[2,"overflow","auto","height","auto","width","auto",3,"size","visible"],["area2","asSplitArea"],[1,"layout-main"],[1,"layout-main-content"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(){return o.onLayoutClick()}),le(1,"app-topbar"),x(2,"div",1)(3,"as-split",2,3),me("dragEnd",function(r){return o.dragEnd("percent",r)}),x(5,"as-split-area",4,5)(7,"div",6),me("click",function(r){return o.onMenuClick(r)}),x(8,"p-scrollPanel",null,7)(10,"div",8),le(11,"ginger-report-menu"),A()()()(),x(12,"as-split-area",9,10)(14,"div",11)(15,"div",12),le(16,"router-outlet"),A()()()()()()),2&n&&(d("ngClass",ea(9,gke,o.isOverlay(),o.isSlim(),o.isHorizontal(),o.overlayMenuActive,o.staticMenuDesktopInactive,o.staticMenuMobileActive)),h(3),d("direction",o.direction)("useTransition",o.action.useTransition),h(2),d("size",o.action.area1)("visible",o.action.av1),h(3),yn(Jt(16,mke)),h(4),d("size",o.action.area2)("visible",o.action.av2))},styles:[".reportSection .as-horizontal>.as-split-gutter>.as-split-gutter-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAB3SURBVChT3ZGxDcAgDASfNAzADiwA+2/AAJRUDMAADo8lZIkmUbpcgV+2dYVBSklijEJCCAJArvmgtcYC7z2X4LixOoa1eWCdzLOlzt47y+a509EzxkCtFTlnMB9O5v85yboj2fecQUeGl390OEspOjV8derIAtxNg4Qs31DpLQAAAABJRU5ErkJggg==)} .reportSection .as-horizontal>.as-split-gutter{height:auto!important;margin-top:0} .reportSection .layout-main{margin-left:0!important} .reportSection .layout-sidebar{position:relative!important;width:auto;top:25px;border-right:unset;height:99%} .reportSection .ui-panelmenu-content .ui-widget-content{height:1000px!important} .reportSection .layout-sidebar .ui-scrollpanel .sidebar-scroll-content{width:auto;padding-right:0} .reportSection .ui-panelmenu .ui-menuitem-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important} .reportSection a.p-menuitem-link-active{font-weight:700!important}"]})}return t})(),_ke=(()=>{class t{constructor(e,n,o,s,r){this.app=e,this.router=n,this.activeRoute=o,this.communicatorService=s,this.userDataManagerService=r,this.logoLink="#3423"}ngOnInit(){this.activeRoute.queryParams.subscribe(e=>{const n=e.ExecutionId;typeof n<"u"&&n&&(this.logoLink=`#/?ExecutionId=${n}`)})}refreshReport(){this.userDataManagerService.setItemCache(null),this.communicatorService.refreshScreen("RefreshData")}static#e=this.\u0275fac=function(n){return new(n||t)(V(Rv),V(io),V(Di),V(Ws),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-topbar"]],decls:7,vars:1,consts:[[1,"layout-topbar",2,"border-bottom","4px solid transparent","border-image","linear-gradient(to right, #ec008c, #f77341 63%, #fdb515)","border-image-slice","1","z-index","9999"],[1,"logo",3,"href"],["src","assets/layout/images/amdocs_icon.png","alt","Amdocs-logo","height","30",1,"amdocs_icon"],["src","assets/layout/images/amdocs.png","alt","Amdocs-logo"],["id","menu-button","href","#",3,"click"],[1,"fa","fa-align-left"],["type","button","pButton","","icon","pi pi-refresh","pTooltip","Refresh report data","tooltipPosition","right",1,"p-button","refreshBtn",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"a",1),le(2,"img",2)(3,"img",3),A(),x(4,"a",4),me("click",function(r){return o.app.onMenuButtonClick(r)}),le(5,"i",5),A(),x(6,"button",6),me("click",function(){return o.refreshReport()}),A()()),2&n&&(h(1),g_("href",o.logoLink,Ls))},dependencies:[Kl,hf],styles:[".refreshBtn[_ngcontent-%COMP%]{border-radius:40px;height:40px;width:40px!important;font-size:2em;position:absolute;right:10px;top:8px;background-color:#ffbf3f;color:#000;border:#FFBF3F}.p-button[_ngcontent-%COMP%]:enabled:hover{background-color:#f8e08e;color:#000}"]})}return t})();const $O={production:!0},Ike=["gutterEls"];function Cke(t,i){if(1&t){const e=De();x(0,"div",2,3),me("keydown",function(o){G(e);const s=f().index;return q(f().startKeyboardDrag(o,2*s+1,s+1))})("mousedown",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("touchstart",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("mouseup",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))})("touchend",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))}),le(2,"div",4),A()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f();fo("flex-basis",s.gutterSize,"px")("order",2*n+1),K("aria-label",s.gutterAriaLabel)("aria-orientation",s.direction)("aria-valuemin",o.minSize)("aria-valuemax",o.maxSize)("aria-valuenow",o.size)("aria-valuetext",s.getAriaAreaSizeText(o.size))}}function vke(t,i){1&t&&g(0,Cke,3,10,"div",1),2&t&&d("ngIf",!1===i.last)}const bke=["*"];function fd(t){if(void 0!==t.changedTouches&&t.changedTouches.length>0)return{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(void 0!==t.clientX&&void 0!==t.clientY)return{x:t.clientX,y:t.clientY};if(void 0!==t.currentTarget){const i=t.currentTarget;return{x:i.offsetLeft,y:i.offsetTop}}return null}function KO(t,i,e){return Math.abs(t.x-i.x)<=e&&Math.abs(t.y-i.y)<=e}function GO(t,i){const e=t.nativeElement.getBoundingClientRect();return"horizontal"===i?e.width:e.height}function gd(t){return"boolean"==typeof t?t:"false"!==t}function jr(t,i){return null==t?i:(t=Number(t),!isNaN(t)&&t>=0?t:i)}function qO(t,i){if("percent"===t){const e=i.reduce((n,o)=>null!==o?n+o:n,0);return i.every(n=>null!==n)&&e>99.9&&e<100.1}if("pixel"===t)return 1===i.filter(e=>null===e).length}function lg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.minSize?null:t.component.minSize>t.size?t.size:t.component.minSize}function cg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.maxSize?null:t.component.maxSize{const r=function xke(t,i,e,n){return 0===e?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:i.sizePercentAtStart,pixelRemain:0}:0===i.sizePixelAtStart&&e<0?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:e}:"percent"===t?function Ake(t,i,e){const o=(t.sizePixelAtStart+i)/e*100;if(i>0){if(null!==t.area.maxSize&&o>t.area.maxSize){const s=t.area.maxSize/100*e;return{areaSnapshot:t,pixelAbsorb:s,percentAfterAbsorption:t.area.maxSize,pixelRemain:t.sizePixelAtStart+i-s}}return{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:o>100?100:o,pixelRemain:0}}if(i<0){if(null!==t.area.minSize&&o0?null!==t.area.maxSize&&n>t.area.maxSize?{areaSnapshot:t,pixelAbsorb:t.area.maxSize-t.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:n-t.area.maxSize}:{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:-1,pixelRemain:0}:i<0?null!==t.area.minSize&&n{class t{set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=jr(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=jr(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=gd(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=gd(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=gd(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=jr(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new ce(e=>this.transitionEndSubscriber=e).pipe(nk(20))}constructor(e,n,o,s,r){this.ngZone=e,this.elRef=n,this.cdRef=o,this.renderer=s,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new ge(!1),this.dragEnd=new ge(!1),this.gutterClick=new ge(!1),this.gutterDblClick=new ge(!1),this.dragProgressSubject=new re,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=r?Object.assign(this._config,r):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const n={component:e,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===e.visible?(this.displayedAreas.push(n),this.build(!0,!0)):this.hiddenAreas.push(n)}removeArea(e){if(this.displayedAreas.some(n=>n.component===e)){const n=this.displayedAreas.find(o=>o.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(n),1),this.build(!0,!0)}else if(this.hiddenAreas.some(n=>n.component===e)){const n=this.hiddenAreas.find(o=>o.component===e);this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1)}}updateArea(e,n,o){!0===e.visible&&this.build(n,o)}showArea(e){const n=this.hiddenAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1);this.displayedAreas.push(...o),this.build(!0,!0)}hideArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.displayedAreas.splice(this.displayedAreas.indexOf(n),1);o.forEach(s=>{s.order=0,s.size=0}),this.hiddenAreas.push(...o),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const n=e.map(s=>jr(s,null));return!1!==qO(this.unit,n)&&(this.displayedAreas.forEach((s,r)=>s.component._size=n[r]),this.build(!1,!0),!0)}build(e,n){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(o=>null!==o.component.order)&&this.displayedAreas.sort((o,s)=>o.component.order-s.component.order),this.displayedAreas.forEach((o,s)=>{o.order=2*s,o.component.setStyleOrder(o.order)})),!0===n){const o=qO(this.unit,this.displayedAreas.map(s=>s.component.size));switch(this.unit){case"percent":{const s=100/this.displayedAreas.length;this.displayedAreas.forEach(r=>{r.size=o?r.component.size:s,r.minSize=lg(r),r.maxSize=cg(r)});break}case"pixel":if(o)this.displayedAreas.forEach(s=>{s.size=s.component.size,s.minSize=lg(s),s.maxSize=cg(s)});else{const s=this.displayedAreas.filter(r=>null===r.component.size);if(0===s.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((r,a)=>{r.size=0===a?null:r.component.size,r.minSize=0===a?null:lg(r),r.maxSize=0===a?null:cg(r)});else if(s.length>1){let r=!1;this.displayedAreas.forEach(a=>{null===a.component.size?!1===r?(a.size=null,a.minSize=null,a.maxSize=null,r=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=lg(a),a.maxSize=cg(a))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(n=>{n.component.setStyleFlex(0,0,`calc( ${n.size}% - ${n.size/100*e}px )`,null!==n.minSize&&n.minSize===n.size,null!==n.maxSize&&n.maxSize===n.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,n){const o=fd(e);this.startPoint&&KO(this.startPoint,o,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",n),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",n),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(e,n,o){if(!0===this.disabled||!0===this.isWaitingClear)return;const s=function yke(t,i){if("horizontal"===i)switch(t.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===i)switch(t.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const e=t.currentTarget,n="PageUp"===t.key||"PageDown"===t.key?500:50;let o=e.offsetLeft,s=e.offsetTop;switch(t.key){case"ArrowLeft":o-=n;break;case"ArrowRight":o+=n;break;case"ArrowUp":s-=n;break;case"ArrowDown":s+=n;break;case"PageUp":"vertical"===i?s-=n:o+=n;break;case"PageDown":"vertical"===i?s+=n:o-=n;break;default:return null}return{x:o,y:s}}(e,this.direction);null!==s&&(this.endPoint=s,this.startPoint=fd(e),e.preventDefault(),e.stopPropagation(),this.setupForDragEvent(n,o),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(e,n,o){e.preventDefault(),e.stopPropagation(),this.startPoint=fd(e),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(n,o),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(e,n){this.snapshot={gutterNum:n,lastSteppedOffset:0,allAreasSizePixel:GO(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(o=>{const s={area:o,sizePixelAtStart:GO(o.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?o.size:-1};o.ordere&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[s]):this.snapshot.areasAfterGutter.push(s))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((o,s)=>o+s.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(e){e.preventDefault(),e.stopPropagation();const n=fd(e);null!==this._clickTimeout&&!KO(this.startPoint,n,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=fd(e),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let e="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(e=-e);const n=Math.round(e/this.gutterStep)*this.gutterStep;if(n===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=n;let o=Jl(this.unit,this.snapshot.areasBeforeGutter,-n,this.snapshot.allAreasSizePixel),s=Jl(this.unit,this.snapshot.areasAfterGutter,n,this.snapshot.allAreasSizePixel);if(0!==o.remain&&0!==s.remain?Math.abs(o.remain)===Math.abs(s.remain)||(Math.abs(o.remain)>Math.abs(s.remain)?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)):0!==o.remain?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):0!==s.remain&&(o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const r=[...o.list,...s.list],a=r.find(l=>0!==l.percentAfterAbsorption&&l.percentAfterAbsorption!==l.areaSnapshot.area.minSize&&l.percentAfterAbsorption!==l.areaSnapshot.area.maxSize);a&&(a.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-r.filter(l=>l!==a).reduce((l,c)=>l+c.percentAfterAbsorption,0))}o.list.forEach(r=>WO(this.unit,r)),s.list.forEach(r=>WO(this.unit,r)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(n=>n.component.unlockEvents());this.dragListeners.length>0;){const n=this.dragListeners.pop();n&&n()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(e,n){const o=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:n,sizes:o}):"end"===e?this.dragEnd.emit({gutterNum:n,sizes:o}):"click"===e?this.gutterClick.emit({gutterNum:n,sizes:o}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:n,sizes:o}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(o)):"progress"===e&&this.dragProgressSubject.next({gutterNum:n,sizes:o})}ngOnDestroy(){this.stopDragging()}collapseArea(e,n,o){const s=this.displayedAreas.find(l=>l.component===e);if(void 0===s)return;const r="right"===o?1:-1;s.sizeBeforeCollapse||(s.sizeBeforeCollapse=s.size,s.gutterBeforeCollapse=r),s.size=n;const a=this.gutterEls.find(l=>l.nativeElement.style.order===`${s.order+r}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}expandArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n||!n.sizeBeforeCollapse)return;n.size=n.sizeBeforeCollapse,n.sizeBeforeCollapse=null;const o=this.gutterEls.find(s=>s.nativeElement.style.order===`${n.order+n.gutterBeforeCollapse}`);o&&this.renderer.removeClass(o.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}getAriaAreaSizeText(e){return null===e?null:e.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(Ft),V(hn),V(Tke,8))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["as-split"]],viewQuery:function(n,o){if(1&n&&je(Ike,5),2&n){let s;Se(s=Ee())&&(o.gutterEls=s)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:bke,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(n,o){1&n&&(Ti(),Kn(0),g(1,vke,1,1,"ng-template",0)),2&n&&(h(1),d("ngForOf",o.displayedAreas))},dependencies:[Jn,gt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return t})(),Ske=(()=>{class t{set order(e){this._order=jr(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=jr(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=jr(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=jr(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=gd(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=gd(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(e,n,o,s){this.ngZone=e,this.elRef=n,this.renderer=o,this.split=s,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",n=>{"flex-basis"===n.propertyName&&this.split.notify("transitionEnd",-1)})});const e=this.renderer.createElement("div");this.renderer.addClass(e,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,e)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,e)})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,n,o,s,r){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",n),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",o),!0===s?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===r?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(e=0,n="right"){this.split.collapseArea(this,e,n)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(hn),V(QO))};static#t=this.\u0275dir=ut({type:t,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return t})(),Eke=(()=>{class t{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[Xe]})}return t})();const Dke=function(){return{width:"auto"}};let kke=(()=>{class t{constructor(e,n){this.communicatorService=e,this.route=n,this.guid="",this.executionGeneralDetailsData=[]}ngOnInit(){this.communicatorService.messageSourceHasNewMessage.subscribe(e=>{console.log("messge arrived to menu"),console.log(e),this.items=e}),this.route.queryParams.subscribe(e=>{this.guid="",this.guid=e.Guid,typeof this.guid<"u"&&this.guid&&this.searchForSelectedRecNode(this.items)})}searchForSelectedRecNode(e){let n=!1;if(null==e)n=!1;else for(const o of e){if(o.id===this.guid){n=!0;break}if(typeof o.items<"u"&&null!=o.items&&this.searchForSelectedRecNode(o.items)){o.expanded=!0,n=!0;break}}return n}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ginger-report-menu"]],decls:1,vars:5,consts:[[3,"model","multiple"]],template:function(n,o){1&n&&le(0,"p-panelMenu",0),2&n&&(yn(Jt(4,Dke)),d("model",o.items)("multiple",!1))},dependencies:[ZM],styles:[".p-panelmenu .p-panelmenu-header-action .p-menuitem-icon{margin-left:.2rem!important;margin-right:.5rem!important} .p-panelmenu .p-component{padding-top:10px}"]})}return t})(),Mke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t,bootstrap:[Rv]});static#n=this.\u0275inj=Ge({providers:[{provide:"environmentObj",useValue:$O},{provide:Ir,useClass:G2}],imports:[R0,uu,uhe,eE,NE,JD,Ife,oge,Mi,uk,cge,Oge,qM,qge,mme,Xme,f_e,nO,D_e,Ek,_f,V_e,Q_e,pIe,kk,yIe,MIe,_v,Zs,OIe,UCe,wve,o1e,z1e,$1e,yv,Eye,sxe,bxe,kxe,vf,Wxe,YM,xAe,Nwe,xv,Gwe,f2e,y2e,Ik,J2e,_Te,xTe,nSe,dSe,wk,OSe,oEe,sEe,Fv,fEe,bEe,wEe,Nn,oke,JM,uke,Spe,_v,Xe,Eke.forRoot()]})}return t})();Dg(Rv,function(){return[Ct,QI,b2e,kke,QO,Ske,_ke]},[]),AB().bootstrapModule(Mke).catch(t=>console.error(t))},7536:function(tc){tc.exports=function(xe){var z={};function L(ae){if(z[ae])return z[ae].exports;var H=z[ae]={exports:{},id:ae,loaded:!1};return xe[ae].call(H.exports,H,H.exports,L),H.loaded=!0,H.exports}return L.m=xe,L.c=z,L.p="",L(0)}([function(xe,z,L){xe.exports=L(53)},function(xe,z,L){"use strict";var H=ue(L(2)),F=ue(L(18)),N=L(29),O=ue(N),I=ue(L(30)),T=ue(L(42)),k=ue(L(34)),D=ue(L(31)),M=ue(L(32)),ee=ue(L(43)),ne=ue(L(33)),Q=ue(L(44)),se=ue(L(51)),U=ue(L(52));function ue(pe){return pe&&pe.__esModule?pe:{default:pe}}F.default.register({"blots/block":O.default,"blots/block/embed":N.BlockEmbed,"blots/break":I.default,"blots/container":T.default,"blots/cursor":k.default,"blots/embed":D.default,"blots/inline":M.default,"blots/scroll":ee.default,"blots/text":ne.default,"modules/clipboard":Q.default,"modules/history":se.default,"modules/keyboard":U.default}),H.default.register(O.default,I.default,k.default,M.default,ee.default,ne.default),xe.exports=F.default},function(xe,z,L){"use strict";var ae=L(3),H=L(7),Z=L(12),F=L(13),N=L(14),O=L(15),S=L(16),I=L(17),v=L(8),T=L(10),C=L(11),k=L(9),y=L(6),D={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:ae.default,Format:H.default,Leaf:Z.default,Embed:S.default,Scroll:F.default,Block:O.default,Inline:N.default,Text:I.default,Attributor:{Attribute:v.default,Class:T.default,Style:C.default,Store:k.default}};Object.defineProperty(z,"__esModule",{value:!0}),z.default=D},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(4),Z=L(5),F=L(6),N=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.prototype.appendChild=function(v){this.insertBefore(v)},I.prototype.attach=function(){var v=this;S.prototype.attach.call(this),this.children=new H.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(T){try{var C=O(T);v.insertBefore(C,v.children.head)}catch(k){if(k instanceof F.ParchmentError)return;throw k}})},I.prototype.deleteAt=function(v,T){if(0===v&&T===this.length())return this.remove();this.children.forEachAt(v,T,function(C,k,y){C.deleteAt(k,y)})},I.prototype.descendant=function(v,T){var C=this.children.find(T),k=C[0],y=C[1];return null==v.blotName&&v(k)||null!=v.blotName&&k instanceof v?[k,y]:k instanceof I?k.descendant(v,y):[null,-1]},I.prototype.descendants=function(v,T,C){void 0===T&&(T=0),void 0===C&&(C=Number.MAX_VALUE);var k=[],y=C;return this.children.forEachAt(T,C,function(D,w,M){(null==v.blotName&&v(D)||null!=v.blotName&&D instanceof v)&&k.push(D),D instanceof I&&(k=k.concat(D.descendants(v,w,y))),y-=M}),k},I.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),S.prototype.detach.call(this)},I.prototype.formatAt=function(v,T,C,k){this.children.forEachAt(v,T,function(y,D,w){y.formatAt(D,w,C,k)})},I.prototype.insertAt=function(v,T,C){var k=this.children.find(v),y=k[0];if(y)y.insertAt(k[1],T,C);else{var w=null==C?F.create("text",T):F.create(T,C);this.appendChild(w)}},I.prototype.insertBefore=function(v,T){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(C){return v instanceof C}))throw new F.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,T)},I.prototype.length=function(){return this.children.reduce(function(v,T){return v+T.length()},0)},I.prototype.moveChildren=function(v,T){this.children.forEach(function(C){v.insertBefore(C,T)})},I.prototype.optimize=function(){if(S.prototype.optimize.call(this),0===this.children.length)if(null!=this.statics.defaultChild){var v=F.create(this.statics.defaultChild);this.appendChild(v),v.optimize()}else this.remove()},I.prototype.path=function(v,T){void 0===T&&(T=!1);var C=this.children.find(v,T),k=C[0],y=C[1],D=[[this,v]];return k instanceof I?D.concat(k.path(y,T)):(null!=k&&D.push([k,y]),D)},I.prototype.removeChild=function(v){this.children.remove(v)},I.prototype.replace=function(v){v instanceof I&&v.moveChildren(this),S.prototype.replace.call(this,v)},I.prototype.split=function(v,T){if(void 0===T&&(T=!1),!T){if(0===v)return this;if(v===this.length())return this.next}var C=this.clone();return this.parent.insertBefore(C,this.next),this.children.forEachAt(v,this.length(),function(k,y,D){k=k.split(y,T),C.appendChild(k)}),C},I.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},I.prototype.update=function(v){var T=this,C=[],k=[];v.forEach(function(y){y.target===T.domNode&&"childList"===y.type&&(C.push.apply(C,y.addedNodes),k.push.apply(k,y.removedNodes))}),k.forEach(function(y){if(!(null!=y.parentNode&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var D=F.find(y);null!=D&&(null==D.domNode.parentNode||D.domNode.parentNode===T.domNode)&&D.detach()}}),C.filter(function(y){return y.parentNode==T.domNode}).sort(function(y,D){return y===D?0:y.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var D=null;null!=y.nextSibling&&(D=F.find(y.nextSibling));var w=O(y);(w.next!=D||null==w.next)&&(null!=w.parent&&w.parent.removeChild(T),T.insertBefore(w,D))})},I}(Z.default);function O(S){var I=F.find(S);if(null==I)try{I=F.create(S)}catch{I=F.create(F.Scope.INLINE),[].slice.call(S.childNodes).forEach(function(T){I.domNode.appendChild(T)}),S.parentNode.replaceChild(I.domNode,S),I.attach()}return I}Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z){"use strict";var L=function(){function ae(){this.head=this.tail=void 0,this.length=0}return ae.prototype.append=function(){for(var H=[],Z=0;Z1&&this.append.apply(this,H.slice(1))},ae.prototype.contains=function(H){for(var Z,F=this.iterator();Z=F();)if(Z===H)return!0;return!1},ae.prototype.insertBefore=function(H,Z){H.next=Z,null!=Z?(H.prev=Z.prev,null!=Z.prev&&(Z.prev.next=H),Z.prev=H,Z===this.head&&(this.head=H)):null!=this.tail?(this.tail.next=H,H.prev=this.tail,this.tail=H):(H.prev=void 0,this.head=this.tail=H),this.length+=1},ae.prototype.offset=function(H){for(var Z=0,F=this.head;null!=F;){if(F===H)return Z;Z+=F.length(),F=F.next}return-1},ae.prototype.remove=function(H){this.contains(H)&&(null!=H.prev&&(H.prev.next=H.next),null!=H.next&&(H.next.prev=H.prev),H===this.head&&(this.head=H.next),H===this.tail&&(this.tail=H.prev),this.length-=1)},ae.prototype.iterator=function(H){return void 0===H&&(H=this.head),function(){var Z=H;return null!=H&&(H=H.next),Z}},ae.prototype.find=function(H,Z){void 0===Z&&(Z=!1);for(var F,N=this.iterator();F=N();){var O=F.length();if(Hv?F(I,H-v,Math.min(Z,v+C-H)):F(I,0,Math.min(C,H+Z-v)),v+=C}},ae.prototype.map=function(H){return this.reduce(function(Z,F){return Z.push(H(F)),Z},[])},ae.prototype.reduce=function(H,Z){for(var F,N=this.iterator();F=N();)Z=H(Z,F);return Z},ae}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=L},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F){this.domNode=F,this.attach()}return Object.defineProperty(Z.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),Z.create=function(F){if(null==this.tagName)throw new ae.ParchmentError("Blot definition missing tagName");var N;return Array.isArray(this.tagName)?("string"==typeof F&&(F=F.toUpperCase(),parseInt(F).toString()===F&&(F=parseInt(F))),N="number"==typeof F?document.createElement(this.tagName[F-1]):this.tagName.indexOf(F)>-1?document.createElement(F):document.createElement(this.tagName[0])):N=document.createElement(this.tagName),this.className&&N.classList.add(this.className),N},Z.prototype.attach=function(){this.domNode[ae.DATA_KEY]={blot:this}},Z.prototype.clone=function(){var F=this.domNode.cloneNode();return ae.create(F)},Z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[ae.DATA_KEY]},Z.prototype.deleteAt=function(F,N){this.isolate(F,N).remove()},Z.prototype.formatAt=function(F,N,O,S){var I=this.isolate(F,N);if(null!=ae.query(O,ae.Scope.BLOT)&&S)I.wrap(O,S);else if(null!=ae.query(O,ae.Scope.ATTRIBUTE)){var v=ae.create(this.statics.scope);I.wrap(v),v.format(O,S)}},Z.prototype.insertAt=function(F,N,O){var S=null==O?ae.create("text",N):ae.create(N,O),I=this.split(F);this.parent.insertBefore(S,I)},Z.prototype.insertInto=function(F,N){if(null!=this.parent&&this.parent.children.remove(this),F.children.insertBefore(this,N),null!=N)var O=N.domNode;(null==this.next||this.domNode.nextSibling!=O)&&F.domNode.insertBefore(this.domNode,typeof O<"u"?O:null),this.parent=F},Z.prototype.isolate=function(F,N){var O=this.split(F);return O.split(N),O},Z.prototype.length=function(){return 1},Z.prototype.offset=function(F){return void 0===F&&(F=this.parent),null==this.parent||this==F?0:this.parent.children.offset(this)+this.parent.offset(F)},Z.prototype.optimize=function(){null!=this.domNode[ae.DATA_KEY]&&delete this.domNode[ae.DATA_KEY].mutations},Z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},Z.prototype.replace=function(F){null!=F.parent&&(F.parent.insertBefore(this,F.next),F.remove())},Z.prototype.replaceWith=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return O.replace(this),O},Z.prototype.split=function(F,N){return 0===F?this:this.next},Z.prototype.update=function(F){void 0===F&&(F=[])},Z.prototype.wrap=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return null!=this.parent&&this.parent.insertBefore(O,this.next),O.appendChild(this),O},Z}();H.blotName="abstract",Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z){"use strict";var L=this&&this.__extends||function(C,k){for(var y in k)k.hasOwnProperty(y)&&(C[y]=k[y]);function D(){this.constructor=C}C.prototype=null===k?Object.create(k):(D.prototype=k.prototype,new D)},ae=function(C){function k(y){var D;return(D=C.call(this,y="[Parchment] "+y)||this).message=y,D.name=D.constructor.name,D}return L(k,C),k}(Error);z.ParchmentError=ae;var O,C,H={},Z={},F={},N={};function v(C,k){var y;if(void 0===k&&(k=O.ANY),"string"==typeof C)y=N[C]||H[C];else if(C instanceof Text)y=N.text;else if("number"==typeof C)C&O.LEVEL&O.BLOCK?y=N.block:C&O.LEVEL&O.INLINE&&(y=N.inline);else if(C instanceof HTMLElement){var D=(C.getAttribute("class")||"").split(/\s+/);for(var w in D)if(y=Z[D[w]])break;y=y||F[C.tagName]}return null==y?null:k&O.LEVEL&y.scope&&k&O.TYPE&y.scope?y:null}z.DATA_KEY="__blot",(C=O=z.Scope||(z.Scope={}))[C.TYPE=3]="TYPE",C[C.LEVEL=12]="LEVEL",C[C.ATTRIBUTE=13]="ATTRIBUTE",C[C.BLOT=14]="BLOT",C[C.INLINE=7]="INLINE",C[C.BLOCK=11]="BLOCK",C[C.BLOCK_BLOT=10]="BLOCK_BLOT",C[C.INLINE_BLOT=6]="INLINE_BLOT",C[C.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",C[C.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",C[C.ANY=15]="ANY",z.create=function S(C,k){var y=v(C);if(null==y)throw new ae("Unable to create "+C+" blot");var D=y,w=C instanceof Node?C:D.create(k);return new D(w,k)},z.find=function I(C,k){return void 0===k&&(k=!1),null==C?null:null!=C[z.DATA_KEY]?C[z.DATA_KEY].blot:k?I(C.parentNode,k):null},z.query=v,z.register=function T(){for(var C=[],k=0;k1)return C.map(function(w){return T(w)});var y=C[0];if("string"!=typeof y.blotName&&"string"!=typeof y.attrName)throw new ae("Invalid definition");if("abstract"===y.blotName)throw new ae("Cannot register abstract class");return N[y.blotName||y.attrName]=y,"string"==typeof y.keyName?H[y.keyName]=y:(null!=y.className&&(Z[y.className]=y),null!=y.tagName&&(y.tagName=Array.isArray(y.tagName)?y.tagName.map(function(w){return w.toUpperCase()}):y.tagName.toUpperCase(),(Array.isArray(y.tagName)?y.tagName:[y.tagName]).forEach(function(w){(null==F[w]||null==y.className)&&(F[w]=y)}))),y}},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(8),Z=L(9),F=L(3),N=L(6),O=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.formats=function(v){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?v.tagName.toLowerCase():void 0)},I.prototype.attach=function(){S.prototype.attach.call(this),this.attributes=new Z.default(this.domNode)},I.prototype.format=function(v,T){var C=N.query(v);C instanceof H.default?this.attributes.attribute(C,T):T&&null!=C&&(v!==this.statics.blotName||this.formats()[v]!==T)&&this.replaceWith(v,T)},I.prototype.formats=function(){var v=this.attributes.values(),T=this.statics.formats(this.domNode);return null!=T&&(v[this.statics.blotName]=T),v},I.prototype.replaceWith=function(v,T){var C=S.prototype.replaceWith.call(this,v,T);return this.attributes.copy(C),C},I.prototype.update=function(v){var T=this;S.prototype.update.call(this,v),v.some(function(C){return C.target===T.domNode&&"attributes"===C.type})&&this.attributes.build()},I.prototype.wrap=function(v,T){var C=S.prototype.wrap.call(this,v,T);return C instanceof I&&C.statics.scope===this.statics.scope&&this.attributes.move(C),C},I}(F.default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F,N,O){void 0===O&&(O={}),this.attrName=F,this.keyName=N,this.scope=null!=O.scope?O.scope&ae.Scope.LEVEL|ae.Scope.TYPE&ae.Scope.ATTRIBUTE:ae.Scope.ATTRIBUTE,null!=O.whitelist&&(this.whitelist=O.whitelist)}return Z.keys=function(F){return[].map.call(F.attributes,function(N){return N.name})},Z.prototype.add=function(F,N){return!!this.canAdd(F,N)&&(F.setAttribute(this.keyName,N),!0)},Z.prototype.canAdd=function(F,N){return null!=ae.query(F,ae.Scope.BLOT&(this.scope|ae.Scope.TYPE))&&(null==this.whitelist||this.whitelist.indexOf(N)>-1)},Z.prototype.remove=function(F){F.removeAttribute(this.keyName)},Z.prototype.value=function(F){var N=F.getAttribute(this.keyName);return this.canAdd(F,N)?N:""},Z}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z,L){"use strict";var ae=L(8),H=L(10),Z=L(11),F=L(6),N=function(){function O(S){this.attributes={},this.domNode=S,this.build()}return O.prototype.attribute=function(S,I){I?S.add(this.domNode,I)&&(null!=S.value(this.domNode)?this.attributes[S.attrName]=S:delete this.attributes[S.attrName]):(S.remove(this.domNode),delete this.attributes[S.attrName])},O.prototype.build=function(){var S=this;this.attributes={};var I=ae.default.keys(this.domNode),v=H.default.keys(this.domNode),T=Z.default.keys(this.domNode);I.concat(v).concat(T).forEach(function(C){var k=F.query(C,F.Scope.ATTRIBUTE);k instanceof ae.default&&(S.attributes[k.attrName]=k)})},O.prototype.copy=function(S){var I=this;Object.keys(this.attributes).forEach(function(v){var T=I.attributes[v].value(I.domNode);S.format(v,T)})},O.prototype.move=function(S){var I=this;this.copy(S),Object.keys(this.attributes).forEach(function(v){I.attributes[v].remove(I.domNode)}),this.attributes={}},O.prototype.values=function(){var S=this;return Object.keys(this.attributes).reduce(function(I,v){return I[v]=S.attributes[v].value(S.domNode),I},{})},O}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N,O){return(N.getAttribute("class")||"").split(/\s+/).filter(function(I){return 0===I.indexOf(O+"-")})}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("class")||"").split(/\s+/).map(function(I){return I.split("-").slice(0,-1).join("-")})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(this.remove(S),S.classList.add(this.keyName+"-"+I),!0)},O.prototype.remove=function(S){Z(S,this.keyName).forEach(function(v){S.classList.remove(v)}),0===S.classList.length&&S.removeAttribute("class")},O.prototype.value=function(S){var v=(Z(S,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(S,v)?v:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N){var O=N.split("-"),S=O.slice(1).map(function(I){return I[0].toUpperCase()+I.slice(1)}).join("");return O[0]+S}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("style")||"").split(";").map(function(I){return I.split(":")[0].trim()})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(S.style[Z(this.keyName)]=I,!0)},O.prototype.remove=function(S){S.style[Z(this.keyName)]="",S.getAttribute("style")||S.removeAttribute("style")},O.prototype.value=function(S){var I=S.style[Z(this.keyName)];return this.canAdd(S,I)?I:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(5),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.value=function(S){return!0},O.prototype.index=function(S,I){return S!==this.domNode?-1:Math.min(I,1)},O.prototype.position=function(S,I){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return S>0&&(v+=1),[this.parent.domNode,v]},O.prototype.value=function(){return(S={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,S;var S},O}(H.default);F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(3),Z=L(6),F={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},O=function(S){function I(v){var T=S.call(this,v)||this;return T.parent=null,T.observer=new MutationObserver(function(C){T.update(C)}),T.observer.observe(T.domNode,F),T}return ae(I,S),I.prototype.detach=function(){S.prototype.detach.call(this),this.observer.disconnect()},I.prototype.deleteAt=function(v,T){this.update(),0===v&&T===this.length()?this.children.forEach(function(C){C.remove()}):S.prototype.deleteAt.call(this,v,T)},I.prototype.formatAt=function(v,T,C,k){this.update(),S.prototype.formatAt.call(this,v,T,C,k)},I.prototype.insertAt=function(v,T,C){this.update(),S.prototype.insertAt.call(this,v,T,C)},I.prototype.optimize=function(v){var T=this;void 0===v&&(v=[]),S.prototype.optimize.call(this);for(var C=[].slice.call(this.observer.takeRecords());C.length>0;)v.push(C.pop());for(var k=function(M,$){void 0===$&&($=!0),null!=M&&M!==T&&null!=M.domNode.parentNode&&(null==M.domNode[Z.DATA_KEY].mutations&&(M.domNode[Z.DATA_KEY].mutations=[]),$&&k(M.parent))},y=function(M){null==M.domNode[Z.DATA_KEY]||null==M.domNode[Z.DATA_KEY].mutations||(M instanceof H.default&&M.children.forEach(y),M.optimize())},D=v,w=0;D.length>0;w+=1){if(w>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(D.forEach(function(M){var $=Z.find(M.target,!0);null!=$&&($.domNode===M.target&&("childList"===M.type?(k(Z.find(M.previousSibling,!1)),[].forEach.call(M.addedNodes,function(ee){var B=Z.find(ee,!1);k(B,!1),B instanceof H.default&&B.children.forEach(function(ne){k(ne,!1)})})):"attributes"===M.type&&k($.prev)),k($))}),this.children.forEach(y),C=(D=[].slice.call(this.observer.takeRecords())).slice();C.length>0;)v.push(C.pop())}},I.prototype.update=function(v){var T=this;(v=v||this.observer.takeRecords()).map(function(C){var k=Z.find(C.target,!0);if(null!=k)return null==k.domNode[Z.DATA_KEY].mutations?(k.domNode[Z.DATA_KEY].mutations=[C],k):(k.domNode[Z.DATA_KEY].mutations.push(C),null)}).forEach(function(C){null==C||C===T||null==C.domNode[Z.DATA_KEY]||C.update(C.domNode[Z.DATA_KEY].mutations||[])}),null!=this.domNode[Z.DATA_KEY].mutations&&S.prototype.update.call(this,this.domNode[Z.DATA_KEY].mutations),this.optimize(v)},I}(H.default);O.blotName="scroll",O.defaultChild="block",O.scope=Z.Scope.BLOCK_BLOT,O.tagName="DIV",Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(O,S){for(var I in S)S.hasOwnProperty(I)&&(O[I]=S[I]);function v(){this.constructor=O}O.prototype=null===S?Object.create(S):(v.prototype=S.prototype,new v)},H=L(7),Z=L(6);var N=function(O){function S(){return O.apply(this,arguments)||this}return ae(S,O),S.formats=function(I){if(I.tagName!==S.tagName)return O.formats.call(this,I)},S.prototype.format=function(I,v){var T=this;I!==this.statics.blotName||v?O.prototype.format.call(this,I,v):(this.children.forEach(function(C){C instanceof H.default||(C=C.wrap(S.blotName,!0)),T.attributes.copy(C)}),this.unwrap())},S.prototype.formatAt=function(I,v,T,C){null!=this.formats()[T]||Z.query(T,Z.Scope.ATTRIBUTE)?this.isolate(I,v).format(T,C):O.prototype.formatAt.call(this,I,v,T,C)},S.prototype.optimize=function(){O.prototype.optimize.call(this);var I=this.formats();if(0===Object.keys(I).length)return this.unwrap();var v=this.next;v instanceof S&&v.prev===this&&function F(O,S){if(Object.keys(O).length!==Object.keys(S).length)return!1;for(var I in O)if(O[I]!==S[I])return!1;return!0}(I,v.formats())&&(v.moveChildren(this),v.remove())},S}(H.default);N.blotName="inline",N.scope=Z.Scope.INLINE_BLOT,N.tagName="SPAN",Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(7),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.formats=function(S){var I=Z.query(O.blotName).tagName;if(S.tagName!==I)return N.formats.call(this,S)},O.prototype.format=function(S,I){null!=Z.query(S,Z.Scope.BLOCK)&&(S!==this.statics.blotName||I?N.prototype.format.call(this,S,I):this.replaceWith(O.blotName))},O.prototype.formatAt=function(S,I,v,T){null!=Z.query(v,Z.Scope.BLOCK)?this.format(v,T):N.prototype.formatAt.call(this,S,I,v,T)},O.prototype.insertAt=function(S,I,v){if(null==v||null!=Z.query(I,Z.Scope.INLINE))N.prototype.insertAt.call(this,S,I,v);else{var T=this.split(S),C=Z.create(I,v);T.parent.insertBefore(C,T)}},O}(H.default);F.blotName="block",F.scope=Z.Scope.BLOCK_BLOT,F.tagName="P",Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(F,N){for(var O in N)N.hasOwnProperty(O)&&(F[O]=N[O]);function S(){this.constructor=F}F.prototype=null===N?Object.create(N):(S.prototype=N.prototype,new S)},Z=function(F){function N(){return F.apply(this,arguments)||this}return ae(N,F),N.formats=function(O){},N.prototype.format=function(O,S){F.prototype.formatAt.call(this,0,this.length(),O,S)},N.prototype.formatAt=function(O,S,I,v){0===O&&S===this.length()?this.format(I,v):F.prototype.formatAt.call(this,O,S,I,v)},N.prototype.formats=function(){return this.statics.formats(this.domNode)},N}(L(12).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=Z},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(12),Z=L(6),F=function(N){function O(S){var I=N.call(this,S)||this;return I.text=I.statics.value(I.domNode),I}return ae(O,N),O.create=function(S){return document.createTextNode(S)},O.value=function(S){return S.data},O.prototype.deleteAt=function(S,I){this.domNode.data=this.text=this.text.slice(0,S)+this.text.slice(S+I)},O.prototype.index=function(S,I){return this.domNode===S?I:-1},O.prototype.insertAt=function(S,I,v){null==v?(this.text=this.text.slice(0,S)+I+this.text.slice(S),this.domNode.data=this.text):N.prototype.insertAt.call(this,S,I,v)},O.prototype.length=function(){return this.text.length},O.prototype.optimize=function(){N.prototype.optimize.call(this),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof O&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},O.prototype.position=function(S,I){return void 0===I&&(I=!1),[this.domNode,S]},O.prototype.split=function(S,I){if(void 0===I&&(I=!1),!I){if(0===S)return this;if(S===this.length())return this.next}var v=Z.create(this.domNode.splitText(S));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},O.prototype.update=function(S){var I=this;S.some(function(v){return"characterData"===v.type&&v.target===I.domNode})&&(this.text=this.statics.value(this.domNode))},O.prototype.value=function(){return this.text},O}(H.default);F.blotName="text",F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.overload=z.expandConfig=void 0;var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},H=function(ce,ie){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return function de(ce,ie){var J=[],oe=!0,Ie=!1,re=void 0;try{for(var Be,ye=ce[Symbol.iterator]();!(oe=(Be=ye.next()).done)&&(J.push(Be.value),!ie||J.length!==ie);oe=!0);}catch(Me){Ie=!0,re=Me}finally{try{!oe&&ye.return&&ye.return()}finally{if(Ie)throw re}}return J}(ce,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function de(ce,ie){for(var J=0;J1&&void 0!==arguments[1]?arguments[1]:{};if(function se(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,de),this.options=ue(ce,J),this.container=this.options.container,this.scrollingContainer=this.options.scrollingContainer||document.body,null==this.container)return X.error("Invalid Quill container",ce);this.options.debug&&de.debug(this.options.debug);var oe=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new v.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new S.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(re){re===v.default.events.TEXT_CHANGE&&ie.root.classList.toggle("ql-blank",ie.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(re,ye){var Be=ie.selection.lastRange,Me=Be&&0===Be.length?Be.index:void 0;pe.call(ie,function(){return ie.editor.update(null,ye,Me)},re)});var Ie=this.clipboard.convert("
"+oe+"


");this.setContents(Ie),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return Z(de,null,[{key:"debug",value:function(ie){!0===ie&&(ie="log"),B.default.level(ie)}},{key:"import",value:function(ie){return null==this.imports[ie]&&X.error("Cannot import "+ie+". Are you sure it was registered?"),this.imports[ie]}},{key:"register",value:function(ie,J){var oe=this,Ie=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof ie){var re=ie.attrName||ie.blotName;"string"==typeof re?this.register("formats/"+re,ie,J):Object.keys(ie).forEach(function(ye){oe.register(ye,ie[ye],J)})}else null!=this.imports[ie]&&!Ie&&X.warn("Overwriting "+ie+" with",J),this.imports[ie]=J,(ie.startsWith("blots/")||ie.startsWith("formats/"))&&"abstract"!==J.blotName&&y.default.register(J)}}]),Z(de,[{key:"addContainer",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof ie){var oe=ie;(ie=document.createElement("div")).classList.add(oe)}return this.container.insertBefore(ie,J),ie}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return pe.call(this,function(){return Ie.editor.deleteText(ie,J)},oe=ye[3],ie=ye[0],-1*(J=ye[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ie=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(ie),this.container.classList.toggle("ql-disabled",!ie),ie||this.blur()}},{key:"focus",value:function(){var ie=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ie,this.selection.scrollIntoView()}},{key:"format",value:function(ie,J){var oe=this;return pe.call(this,function(){var re=oe.getSelection(!0),ye=new N.default;if(null==re)return ye;if(y.default.query(ie,y.default.Scope.BLOCK))ye=oe.editor.formatLine(re.index,re.length,R({},ie,J));else{if(0===re.length)return oe.selection.format(ie,J),ye;ye=oe.editor.formatText(re.index,re.length,R({},ie,J))}return oe.setSelection(re,v.default.sources.SILENT),ye},arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API)}},{key:"formatLine",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatLine(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"formatText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatText(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"getBounds",value:function(ie){return"number"==typeof ie?this.selection.getBounds(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(ie.index,ie.length)}},{key:"getContents",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getContents(ie=Ie[0],J=Ie[1])}},{key:"getFormat",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection();return"number"==typeof ie?this.editor.getFormat(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(ie.index,ie.length)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getModule",value:function(ie){return this.theme.modules[ie]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getText(ie=Ie[0],J=Ie[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ie,J,oe){var Ie=this;return pe.call(this,function(){return Ie.editor.insertEmbed(ie,J,oe)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:de.sources.API,ie)}},{key:"insertText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,0,oe,Ie,re),Ue=H(Me,4);return Be=Ue[2],pe.call(this,function(){return ye.editor.insertText(ie,J,Be)},re=Ue[3],ie=Ue[0],J.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(ie,J,oe){this.clipboard.dangerouslyPasteHTML(ie,J,oe)}},{key:"removeFormat",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return J=ye[1],pe.call(this,function(){return Ie.editor.removeFormat(ie,J)},oe=ye[3],ie=ye[0])}},{key:"setContents",value:function(ie){var J=this;return pe.call(this,function(){ie=new N.default(ie);var Ie=J.getLength(),re=J.editor.deleteText(0,Ie),ye=J.editor.applyDelta(ie),Be=ye.ops[ye.ops.length-1];return null!=Be&&"string"==typeof Be.insert&&"\n"===Be.insert[Be.insert.length-1]&&(J.editor.deleteText(J.getLength()-1,1),ye.delete(1)),re.compose(ye)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API)}},{key:"setSelection",value:function(ie,J,oe){if(null==ie)this.selection.setRange(null,J||de.sources.API);else{var Ie=_e(ie,J,oe),re=H(Ie,4);oe=re[3],this.selection.setRange(new D.Range(ie=re[0],J=re[1]),oe)}this.selection.scrollIntoView()}},{key:"setText",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API,oe=(new N.default).insert(ie);return this.setContents(oe,J)}},{key:"update",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,J=this.scroll.update(ie);return this.selection.update(ie),J}},{key:"updateContents",value:function(ie){var J=this,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API;return pe.call(this,function(){return ie=new N.default(ie),J.editor.applyDelta(ie,oe)},oe,!0)}}]),de}();function ue(de,ce){if((ce=(0,$.default)(!0,{container:de,modules:{clipboard:!0,keyboard:!0,history:!0}},ce)).theme&&ce.theme!==U.DEFAULTS.theme){if(ce.theme=U.import("themes/"+ce.theme),null==ce.theme)throw new Error("Invalid theme "+ce.theme+". Did you register it?")}else ce.theme=Y.default;var ie=(0,$.default)(!0,{},ce.theme.DEFAULTS);[ie,ce].forEach(function(Ie){Ie.modules=Ie.modules||{},Object.keys(Ie.modules).forEach(function(re){!0===Ie.modules[re]&&(Ie.modules[re]={})})});var oe=Object.keys(ie.modules).concat(Object.keys(ce.modules)).reduce(function(Ie,re){var ye=U.import("modules/"+re);return null==ye?X.error("Cannot load "+re+" module. Are you sure you registered it?"):Ie[re]=ye.DEFAULTS||{},Ie},{});return null!=ce.modules&&ce.modules.toolbar&&ce.modules.toolbar.constructor!==Object&&(ce.modules.toolbar={container:ce.modules.toolbar}),ce=(0,$.default)(!0,{},U.DEFAULTS,{modules:oe},ie,ce),["bounds","container","scrollingContainer"].forEach(function(Ie){"string"==typeof ce[Ie]&&(ce[Ie]=document.querySelector(ce[Ie]))}),ce.modules=Object.keys(ce.modules).reduce(function(Ie,re){return ce.modules[re]&&(Ie[re]=ce.modules[re]),Ie},{}),ce}function pe(de,ce,ie,J){if(this.options.strict&&!this.isEnabled()&&ce===v.default.sources.USER)return new N.default;var oe=null==ie?null:this.getSelection(),Ie=this.editor.delta,re=de();if(null!=oe&&ce===v.default.sources.USER&&(!0===ie&&(ie=oe.index),null==J?oe=he(oe,re,ce):0!==J&&(oe=he(oe,ie,J,ce)),this.setSelection(oe,v.default.sources.SILENT)),re.length()>0){var ye,Me,Be=[v.default.events.TEXT_CHANGE,re,Ie,ce];(ye=this.emitter).emit.apply(ye,[v.default.events.EDITOR_CHANGE].concat(Be)),ce!==v.default.sources.SILENT&&(Me=this.emitter).emit.apply(Me,Be)}return re}function _e(de,ce,ie,J,oe){var Ie={};return"number"==typeof de.index&&"number"==typeof de.length?"number"!=typeof ce?(oe=J,J=ie,ie=ce,ce=de.length,de=de.index):(ce=de.length,de=de.index):"number"!=typeof ce&&(oe=J,J=ie,ie=ce,ce=0),"object"===(typeof ie>"u"?"undefined":ae(ie))?(Ie=ie,oe=J):"string"==typeof ie&&(null!=J?Ie[ie]=J:oe=ie),[de,ce,Ie,oe=oe||v.default.sources.API]}function he(de,ce,ie,J){if(null==de)return null;var oe=void 0,Ie=void 0;if(ce instanceof N.default){var re=[de.index,de.index+de.length].map(function(Ue){return ce.transformPosition(Ue,J===v.default.sources.USER)}),ye=H(re,2);oe=ye[0],Ie=ye[1]}else{var Be=[de.index,de.index+de.length].map(function(Ue){return Ue=0?Ue+ie:Math.max(ce,Ue+ie)}),Me=H(Be,2);oe=Me[0],Ie=Me[1]}return new D.Range(oe,Ie-oe)}U.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},U.events=v.default.events,U.sources=v.default.sources,U.version="1.1.8",U.imports={delta:N.default,parchment:y.default,"core/module":C.default,"core/theme":Y.default},z.expandConfig=ue,z.overload=_e,z.default=U},function(xe,z){"use strict";var ae,L=document.createElement("div");L.classList.toggle("test-class",!1),L.classList.contains("test-class")&&(ae=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(H,Z){return arguments.length>1&&!this.contains(H)==!Z?Z:ae.call(this,H)}),String.prototype.startsWith||(String.prototype.startsWith=function(ae,H){return this.substr(H=H||0,ae.length)===ae}),String.prototype.endsWith||(String.prototype.endsWith=function(ae,H){var Z=this.toString();("number"!=typeof H||!isFinite(H)||Math.floor(H)!==H||H>Z.length)&&(H=Z.length);var F=Z.indexOf(ae,H-=ae.length);return-1!==F&&F===H}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(H){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof H)throw new TypeError("predicate must be a function");for(var O,Z=Object(this),F=Z.length>>>0,N=arguments[1],S=0;S0&&(v.attributes=I),this.push(v))},O.prototype.delete=function(S){return S<=0?this:this.push({delete:S})},O.prototype.retain=function(S,I){if(S<=0)return this;var v={retain:S};return null!=I&&"object"==typeof I&&Object.keys(I).length>0&&(v.attributes=I),this.push(v)},O.prototype.push=function(S){var I=this.ops.length,v=this.ops[I-1];if(S=Z(!0,{},S),"object"==typeof v){if("number"==typeof S.delete&&"number"==typeof v.delete)return this.ops[I-1]={delete:v.delete+S.delete},this;if("number"==typeof v.delete&&null!=S.insert&&"object"!=typeof(v=this.ops[(I-=1)-1]))return this.ops.unshift(S),this;if(H(S.attributes,v.attributes)){if("string"==typeof S.insert&&"string"==typeof v.insert)return this.ops[I-1]={insert:v.insert+S.insert},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this;if("number"==typeof S.retain&&"number"==typeof v.retain)return this.ops[I-1]={retain:v.retain+S.retain},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this}}return I===this.ops.length?this.ops.push(S):this.ops.splice(I,0,S),this},O.prototype.filter=function(S){return this.ops.filter(S)},O.prototype.forEach=function(S){this.ops.forEach(S)},O.prototype.map=function(S){return this.ops.map(S)},O.prototype.partition=function(S){var I=[],v=[];return this.forEach(function(T){(S(T)?I:v).push(T)}),[I,v]},O.prototype.reduce=function(S,I){return this.ops.reduce(S,I)},O.prototype.chop=function(){var S=this.ops[this.ops.length-1];return S&&S.retain&&!S.attributes&&this.ops.pop(),this},O.prototype.length=function(){return this.reduce(function(S,I){return S+F.length(I)},0)},O.prototype.slice=function(S,I){S=S||0,"number"!=typeof I&&(I=1/0);for(var v=[],T=F.iterator(this.ops),C=0;C0&&(I.push(S.ops[0]),I.ops=I.ops.concat(S.ops.slice(1))),I},O.prototype.diff=function(S,I){if(this.ops===S.ops)return new O;var v=[this,S].map(function(D){return D.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:N;var M=ops===S.ops?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")}),T=new O,C=ae(v[0],v[1],I),k=F.iterator(this.ops),y=F.iterator(S.ops);return C.forEach(function(D){for(var w=D[1].length;w>0;){var M=0;switch(D[0]){case ae.INSERT:M=Math.min(y.peekLength(),w),T.push(y.next(M));break;case ae.DELETE:M=Math.min(w,k.peekLength()),k.next(M),T.delete(M);break;case ae.EQUAL:M=Math.min(k.peekLength(),y.peekLength(),w);var $=k.next(M),ee=y.next(M);H($.insert,ee.insert)?T.retain(M,F.attributes.diff($.attributes,ee.attributes)):T.push(ee).delete(M)}w-=M}}),T.chop()},O.prototype.eachLine=function(S,I){I=I||"\n";for(var v=F.iterator(this.ops),T=new O;v.hasNext();){if("insert"!==v.peekType())return;var C=v.peek(),k=F.length(C)-v.peekLength(),y="string"==typeof C.insert?C.insert.indexOf(I,k)-k:-1;y<0?T.push(v.next()):y>0?T.push(v.next(y)):(S(T,v.next(1).attributes||{}),T=new O)}T.length()>0&&S(T,{})},O.prototype.transform=function(S,I){if(I=!!I,"number"==typeof S)return this.transformPosition(S,I);for(var v=F.iterator(this.ops),T=F.iterator(S.ops),C=new O;v.hasNext()||T.hasNext();)if("insert"!==v.peekType()||!I&&"insert"===T.peekType())if("insert"===T.peekType())C.push(T.next());else{var k=Math.min(v.peekLength(),T.peekLength()),y=v.next(k),D=T.next(k);if(y.delete)continue;D.delete?C.push(D):C.retain(k,F.attributes.transform(y.attributes,D.attributes,I))}else C.retain(F.length(v.next()));return C.chop()},O.prototype.transformPosition=function(S,I){I=!!I;for(var v=F.iterator(this.ops),T=0;v.hasNext()&&T<=S;){var C=v.peekLength(),k=v.peekType();v.next(),"delete"!==k?("insert"===k&&(TM.length?w:M,B=w.length>M.length?M:w,ne=ee.indexOf(B);if(-1!=ne)return $=[[ae,ee.substring(0,ne)],[H,B],[ae,ee.substring(ne+B.length)]],w.length>M.length&&($[0][0]=$[2][0]=L),$;if(1==B.length)return[[L,w],[ae,M]];var Y=function v(w,M){var $=w.length>M.length?w:M,ee=w.length>M.length?M:w;if($.length<4||2*ee.length<$.length)return null;function B(pe,_e,he){for(var J,oe,Ie,re,de=pe.substring(he,he+Math.floor(pe.length/4)),ce=-1,ie="";-1!=(ce=_e.indexOf(de,ce+1));){var ye=S(pe.substring(he),_e.substring(ce)),Be=I(pe.substring(0,he),_e.substring(0,ce));ie.length=pe.length?[J,oe,Ie,re,ie]:null}var Q,R,se,X,U,ne=B($,ee,Math.ceil($.length/4)),Y=B($,ee,Math.ceil($.length/2));return ne||Y?(Q=Y?ne&&ne[4].length>Y[4].length?ne:Y:ne,w.length>M.length?(R=Q[0],se=Q[1],X=Q[2],U=Q[3]):(X=Q[0],U=Q[1],R=Q[2],se=Q[3]),[R,se,X,U,Q[4]]):null}(w,M);if(Y){var R=Y[1],X=Y[3],U=Y[4],ue=Z(Y[0],Y[2]),pe=Z(R,X);return ue.concat([[H,U]],pe)}return function N(w,M){for(var $=w.length,ee=M.length,B=Math.ceil(($+ee)/2),ne=B,Y=2*B,Q=new Array(Y),R=new Array(Y),se=0;se$)pe+=2;else if(oe>ee)ue+=2;else if(U&&(Ie=ne+X-ce)>=0&&Ie=(re=$-R[Ie]))return O(w,M,J,oe)}for(var ye=-de+_e;ye<=de-he;ye+=2){for(var re,Ie=ne+ye,Be=(re=ye==-de||ye!=de&&R[Ie-1]$)he+=2;else if(Be>ee)_e+=2;else if(!U){var J;if((ie=ne+X-ye)>=0&&ie=(re=$-re)))return O(w,M,J,oe)}}}return[[L,w],[ae,M]]}(w,M)}(w=w.substring(0,w.length-ee),M=M.substring(0,M.length-ee));return B&&Y.unshift([H,B]),ne&&Y.push([H,ne]),T(Y),null!=$&&(Y=function y(w,M){var $=function k(w,M){if(0===M)return[H,w];for(var $=0,ee=0;ee0&&ee.splice(B+2,0,[Y[0],Q]),D(ee,B,3)}return w}(Y,$)),Y}function O(w,M,$,ee){var B=w.substring(0,$),ne=M.substring(0,ee),Y=w.substring($),Q=M.substring(ee),R=Z(B,ne),se=Z(Y,Q);return R.concat(se)}function S(w,M){if(!w||!M||w.charAt(0)!=M.charAt(0))return 0;for(var $=0,ee=Math.min(w.length,M.length),B=ee,ne=0;$1?(0!==$&&0!==ee&&(0!==(Y=S(ne,B))&&(M-$-ee>0&&w[M-$-ee-1][0]==H?w[M-$-ee-1][1]+=ne.substring(0,Y):(w.splice(0,0,[H,ne.substring(0,Y)]),M++),ne=ne.substring(Y),B=B.substring(Y)),0!==(Y=I(ne,B))&&(w[M][1]=ne.substring(ne.length-Y)+w[M][1],ne=ne.substring(0,ne.length-Y),B=B.substring(0,B.length-Y))),0===$?w.splice(M-ee,$+ee,[ae,ne]):0===ee?w.splice(M-$,$+ee,[L,B]):w.splice(M-$-ee,$+ee,[L,B],[ae,ne]),M=M-$-ee+($?1:0)+(ee?1:0)+1):0!==M&&w[M-1][0]==H?(w[M-1][1]+=w[M][1],w.splice(M,1)):M++,ee=0,$=0,B="",ne=""}""===w[w.length-1][1]&&w.pop();var Q=!1;for(M=1;M=0&&ee>=M-1;ee--)if(ee+1=0;C--)if(y[C]!=D[C])return!1;for(C=y.length-1;C>=0;C--)if(!F(I[k=y[C]],v[k],T))return!1;return typeof I==typeof v}(I,v,T))};function N(I){return null==I}function O(I){return!(!I||"object"!=typeof I||"number"!=typeof I.length||"function"!=typeof I.copy||"function"!=typeof I.slice||I.length>0&&"number"!=typeof I[0])}},function(xe,z){function L(ae){var H=[];for(var Z in ae)H.push(Z);return H}(xe.exports="function"==typeof Object.keys?Object.keys:L).shim=L},function(xe,z){var L="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function ae(Z){return"[object Arguments]"==Object.prototype.toString.call(Z)}function H(Z){return Z&&"object"==typeof Z&&"number"==typeof Z.length&&Object.prototype.hasOwnProperty.call(Z,"callee")&&!Object.prototype.propertyIsEnumerable.call(Z,"callee")||!1}(z=xe.exports=L?ae:H).supported=ae,z.unsupported=H},function(xe,z){"use strict";var L=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,H=function(N){return"function"==typeof Array.isArray?Array.isArray(N):"[object Array]"===ae.call(N)},Z=function(N){if(!N||"[object Object]"!==ae.call(N))return!1;var I,O=L.call(N,"constructor"),S=N.constructor&&N.constructor.prototype&&L.call(N.constructor.prototype,"isPrototypeOf");if(N.constructor&&!O&&!S)return!1;for(I in N);return typeof I>"u"||L.call(N,I)};xe.exports=function F(){var N,O,S,I,v,T,C=arguments[0],k=1,y=arguments.length,D=!1;for("boolean"==typeof C?(D=C,C=arguments[1]||{},k=2):("object"!=typeof C&&"function"!=typeof C||null==C)&&(C={});k0?I:void 0},diff:function(N,O){"object"!=typeof N&&(N={}),"object"!=typeof O&&(O={});var S=Object.keys(N).concat(Object.keys(O)).reduce(function(I,v){return ae(N[v],O[v])||(I[v]=void 0===O[v]?null:O[v]),I},{});return Object.keys(S).length>0?S:void 0},transform:function(N,O,S){if("object"!=typeof N)return O;if("object"==typeof O){if(!S)return O;var I=Object.keys(O).reduce(function(v,T){return void 0===N[T]&&(v[T]=O[T]),v},{});return Object.keys(I).length>0?I:void 0}}},iterator:function(N){return new F(N)},length:function(N){return"number"==typeof N.delete?N.delete:"number"==typeof N.retain?N.retain:"string"==typeof N.insert?N.insert.length:1}};function F(N){this.ops=N,this.index=0,this.offset=0}F.prototype.hasNext=function(){return this.peekLength()<1/0},F.prototype.next=function(N){N||(N=1/0);var O=this.ops[this.index];if(O){var S=this.offset,I=Z.length(O);if(N>=I-S?(N=I-S,this.index+=1,this.offset=0):this.offset+=N,"number"==typeof O.delete)return{delete:N};var v={};return O.attributes&&(v.attributes=O.attributes),"number"==typeof O.retain?v.retain=N:v.insert="string"==typeof O.insert?O.insert.substr(S,N):O.insert,v}return{retain:1/0}},F.prototype.peek=function(){return this.ops[this.index]},F.prototype.peekLength=function(){return this.ops[this.index]?Z.length(this.ops[this.index])-this.offset:1/0},F.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},xe.exports=Z},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pe){return typeof pe}:function(pe){return pe&&"function"==typeof Symbol&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},H=function(_e,he){if(Array.isArray(_e))return _e;if(Symbol.iterator in Object(_e))return function pe(_e,he){var de=[],ce=!0,ie=!1,J=void 0;try{for(var Ie,oe=_e[Symbol.iterator]();!(ce=(Ie=oe.next()).done)&&(de.push(Ie.value),!he||de.length!==he);ce=!0);}catch(re){ie=!0,J=re}finally{try{!ce&&oe.return&&oe.return()}finally{if(ie)throw J}}return de}(_e,he);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function pe(_e,he){for(var de=0;de=ie&&!ye.endsWith("\n")&&(ce=!0),de.scroll.insertAt(J,ye);var Be=de.scroll.line(J),Me=H(Be,2),Ue=Me[0],Bn=Me[1],at=(0,Y.default)({},(0,D.bubbleFormats)(Ue));if(Ue instanceof w.default){var Fe=Ue.descendant(v.default.Leaf,Bn),Re=H(Fe,1);at=(0,Y.default)(at,(0,D.bubbleFormats)(Re[0]))}re=S.default.attributes.diff(at,re)||{}}else if("object"===ae(oe.insert)){var rt=Object.keys(oe.insert)[0];if(null==rt)return J;de.scroll.insertAt(J,rt,oe.insert[rt])}ie+=Ie}return Object.keys(re).forEach(function(ot){de.scroll.formatAt(J,Ie,ot,re[ot])}),J+Ie},0),he.reduce(function(J,oe){return"number"==typeof oe.delete?(de.scroll.deleteAt(J,oe.delete),J):J+(oe.retain||oe.insert.length||1)},0),this.scroll.batch=!1,this.scroll.optimize(),this.update(he)}},{key:"deleteText",value:function(he,de){return this.scroll.deleteAt(he,de),this.update((new N.default).retain(he).delete(de))}},{key:"formatLine",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(ie).forEach(function(J){var oe=ce.scroll.lines(he,Math.max(de,1)),Ie=de;oe.forEach(function(re){var ye=re.length();if(re instanceof C.default){var Be=he-re.offset(ce.scroll),Me=re.newlineIndex(Be+Ie)-Be+1;re.formatAt(Be,Me,J,ie[J])}else re.format(J,ie[J]);Ie-=ye})}),this.scroll.optimize(),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"formatText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de,J,ie[J])}),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"getContents",value:function(he,de){return this.delta.slice(he,he+de)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(he,de){return he.concat(de.delta())},new N.default)}},{key:"getFormat",value:function(he){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ce=[],ie=[];0===de?this.scroll.path(he).forEach(function(oe){var re=H(oe,1)[0];re instanceof w.default?ce.push(re):re instanceof v.default.Leaf&&ie.push(re)}):(ce=this.scroll.lines(he,de),ie=this.scroll.descendants(v.default.Leaf,he,de));var J=[ce,ie].map(function(oe){if(0===oe.length)return{};for(var Ie=(0,D.bubbleFormats)(oe.shift());Object.keys(Ie).length>0;){var re=oe.shift();if(null==re)return Ie;Ie=U((0,D.bubbleFormats)(re),Ie)}return Ie});return Y.default.apply(Y.default,J)}},{key:"getText",value:function(he,de){return this.getContents(he,de).filter(function(ce){return"string"==typeof ce.insert}).map(function(ce){return ce.insert}).join("")}},{key:"insertEmbed",value:function(he,de,ce){return this.scroll.insertAt(he,de,ce),this.update((new N.default).retain(he).insert(function R(pe,_e,he){return _e in pe?Object.defineProperty(pe,_e,{value:he,enumerable:!0,configurable:!0,writable:!0}):pe[_e]=he,pe}({},de,ce)))}},{key:"insertText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return de=de.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(he,de),Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de.length,J,ie[J])}),this.update((new N.default).retain(he).insert(de,(0,$.default)(ie)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var he=this.scroll.children.head;return he.length()<=1&&0==Object.keys(he.formats()).length}},{key:"removeFormat",value:function(he,de){var ce=this.getText(he,de),ie=this.scroll.line(he+de),J=H(ie,2),oe=J[0],Ie=J[1],re=0,ye=new N.default;null!=oe&&(re=oe instanceof C.default?oe.newlineIndex(Ie)-Ie+1:oe.length()-Ie,ye=oe.delta().slice(Ie,Ie+re-1).insert("\n"));var Me=this.getContents(he,de+re).diff((new N.default).insert(ce).concat(ye)),Ue=(new N.default).retain(he).concat(Me);return this.applyDelta(Ue)}},{key:"update",value:function(he){var oe,Ie,re,ye,Be,Me,ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,J=this.delta;return 1===ce.length&&"characterData"===ce[0].type&&v.default.find(ce[0].target)?(oe=v.default.find(ce[0].target),Ie=(0,D.bubbleFormats)(oe),re=oe.offset(this.scroll),ye=ce[0].oldValue.replace(y.default.CONTENTS,""),Be=(new N.default).insert(ye),Me=(new N.default).insert(oe.value()),he=(new N.default).retain(re).concat(Be.diff(Me,ie)).reduce(function(Bn,at){return at.insert?Bn.insert(at.insert,Ie):Bn.push(at)},new N.default),this.delta=J.compose(he)):(this.delta=this.getDelta(),(!he||!(0,B.default)(J.compose(he),this.delta))&&(he=J.diff(this.delta,ie))),he}}]),pe}();function U(pe,_e){return Object.keys(_e).reduce(function(he,de){return null==pe[de]||(_e[de]===pe[de]?he[de]=_e[de]:Array.isArray(_e[de])?_e[de].indexOf(pe[de])<0&&(he[de]=_e[de].concat([pe[de]])):he[de]=[_e[de],pe[de]]),he},{})}z.default=X},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Code=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R=R+se)){var pe=this.newlineIndex(R,!0)+1,_e=ue-pe+1,he=this.isolate(pe,_e),de=he.next;he.format(X,U),de instanceof Y&&de.formatAt(0,R-pe+se-_e,X,U)}}}},{key:"insertAt",value:function(R,se,X){if(null==X){var U=this.descendant(y.default,R),ue=ae(U,2);ue[0].insertAt(ue[1],se)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?R:R+1}},{key:"newlineIndex",value:function(R){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,R).lastIndexOf("\n");var X=this.domNode.textContent.slice(R).indexOf("\n");return X>-1?R+X:-1}},{key:"optimize",value:function(){this.domNode.textContent.endsWith("\n")||this.appendChild(S.default.create("text","\n")),Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"optimize",this).call(this);var R=this.next;null!=R&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(),R.moveChildren(this),R.remove())}},{key:"replace",value:function(R){Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(se){var X=S.default.find(se);null==X?se.parentNode.removeChild(se):X instanceof S.default.Embed?X.remove():X.unwrap()})}}],[{key:"create",value:function(R){var se=Z(Y.__proto__||Object.getPrototypeOf(Y),"create",this).call(this,R);return se.setAttribute("spellcheck",!1),se}},{key:"formats",value:function(){return!0}}]),Y}(v.default);B.blotName="code-block",B.tagName="PRE",B.TAB=" ",z.Code=ee,z.default=B},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BlockEmbed=z.bubbleFormats=void 0;var ae=function(){function X(U,ue){for(var pe=0;pe0&&(pe1&&void 0!==arguments[1]&&arguments[1];if(_e&&(0===pe||pe>=this.length()-1)){var he=this.clone();return 0===pe?(this.parent.insertBefore(he,this),this):(this.parent.insertBefore(he,this.next),he)}var de=H(U.prototype.__proto__||Object.getPrototypeOf(U.prototype),"split",this).call(this,pe,_e);return this.cache={},de}}]),U}(I.default.Block);function se(X){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==X||("function"==typeof X.formats&&(U=(0,F.default)(U,X.formats())),null==X.parent||"scroll"==X.parent.blotName||X.parent.statics.scope!==X.statics.scope)?U:se(X.parent,U)}R.blotName="block",R.tagName="P",R.defaultChild="break",R.allowedChildren=[D.default,k.default,M.default],z.bubbleFormats=se,z.BlockEmbed=Q,z.default=R},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y0){var $=this.parent.isolate(this.offset(),this.length());this.moveChildren($),$.wrap(this)}}}],[{key:"compare",value:function($,ee){var B=w.order.indexOf($),ne=w.order.indexOf(ee);return B>=0||ne>=0?B-ne:$===ee?0:$1?N-1:0),S=1;S"u"&&(C=!0),typeof k>"u"&&(k=1/0),function ee(B,ne){if(null===B)return null;if(0===ne)return B;var Y,Q;if("object"!=typeof B)return B;if(B instanceof ae)Y=new ae;else if(B instanceof H)Y=new H;else if(B instanceof Z)Y=new Z(function(re,ye){B.then(function(Be){re(ee(Be,ne-1))},function(Be){ye(ee(Be,ne-1))})});else if(F.__isArray(B))Y=[];else if(F.__isRegExp(B))Y=new RegExp(B.source,v(B)),B.lastIndex&&(Y.lastIndex=B.lastIndex);else if(F.__isDate(B))Y=new Date(B.getTime());else{if($&&Buffer.isBuffer(B))return Y=new Buffer(B.length),B.copy(Y),Y;B instanceof Error?Y=Object.create(B):typeof y>"u"?(Q=Object.getPrototypeOf(B),Y=Object.create(Q)):(Y=Object.create(y),Q=y)}if(C){var R=w.indexOf(B);if(-1!=R)return M[R];w.push(B),M.push(Y)}if(B instanceof ae)for(var se=B.keys();!(X=se.next()).done;){var U=ee(X.value,ne-1),ue=ee(B.get(X.value),ne-1);Y.set(U,ue)}if(B instanceof H)for(var pe=B.keys();;){var X;if((X=pe.next()).done)break;var _e=ee(X.value,ne-1);Y.add(_e)}for(var he in B){var de;Q&&(de=Object.getOwnPropertyDescriptor(Q,he)),(!de||null!=de.set)&&(Y[he]=ee(B[he],ne-1))}if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(B);for(he=0;he1&&void 0!==arguments[1]?arguments[1]:{};(function L(H,Z){if(!(H instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,H),this.quill=Z,this.options=F};ae.DEFAULTS={},z.default=ae},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Range=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R1&&void 0!==arguments[1]?arguments[1]:0;w(this,ne),this.index=Y,this.length=Q},ee=function(){function ne(Y,Q){var R=this;w(this,ne),this.emitter=Q,this.scroll=Y,this.composing=!1,this.root=this.scroll.domNode,this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){R.composing=!1}),this.cursor=F.default.create("cursor",this),this.lastRange=this.savedRange=new $(0,0),["keyup","mouseup","mouseleave","touchend","touchleave","focus","blur"].forEach(function(se){R.root.addEventListener(se,function(){setTimeout(R.update.bind(R,T.default.sources.USER),100)})}),this.emitter.on(T.default.events.EDITOR_CHANGE,function(se,X){se===T.default.events.TEXT_CHANGE&&X.length()>0&&R.update(T.default.sources.SILENT)}),this.emitter.on(T.default.events.SCROLL_BEFORE_UPDATE,function(){var se=R.getNativeRange();null!=se&&se.start.node!==R.cursor.textNode&&R.emitter.once(T.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(se.start.node,se.start.offset,se.end.node,se.end.offset)}catch{}})}),this.update(T.default.sources.SILENT)}return H(ne,[{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Q,R){if(null==this.scroll.whitelist||this.scroll.whitelist[Q]){this.scroll.update();var se=this.getNativeRange();if(null!=se&&se.native.collapsed&&!F.default.query(Q,F.default.Scope.BLOCK)){if(se.start.node!==this.cursor.textNode){var X=F.default.find(se.start.node,!1);if(null==X)return;if(X instanceof F.default.Leaf){var U=X.split(se.start.offset);X.parent.insertBefore(this.cursor,U)}else X.insertBefore(this.cursor,se.start.node);this.cursor.attach()}this.cursor.format(Q,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Q){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,se=this.scroll.length();Q=Math.min(Q,se-1),R=Math.min(Q+R,se-1)-Q;var X=void 0,U=void 0,ue=this.scroll.leaf(Q),pe=ae(ue,2),_e=pe[0],he=pe[1];if(null==_e)return null;var de=_e.position(he,!0),ce=ae(de,2);U=ce[0],he=ce[1];var ie=document.createRange();if(R>0){ie.setStart(U,he);var J=this.scroll.leaf(Q+R),oe=ae(J,2);if(null==(_e=oe[0]))return null;var Ie=_e.position(he=oe[1],!0),re=ae(Ie,2);ie.setEnd(U=re[0],he=re[1]),X=ie.getBoundingClientRect()}else{var ye="left",Be=void 0;U instanceof Text?(he0&&(ye="right")),X={height:Be.height,left:Be[ye],width:0,top:Be.top}}var Me=this.root.parentNode.getBoundingClientRect();return{left:X.left-Me.left,right:X.left+X.width-Me.left,top:X.top-Me.top,bottom:X.top+X.height-Me.top,height:X.height,width:X.width}}},{key:"getNativeRange",value:function(){var Q=document.getSelection();if(null==Q||Q.rangeCount<=0)return null;var R=Q.getRangeAt(0);if(null==R||!B(this.root,R.startContainer)||!R.collapsed&&!B(this.root,R.endContainer))return null;var se={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[se.start,se.end].forEach(function(X){for(var U=X.node,ue=X.offset;!(U instanceof Text)&&U.childNodes.length>0;)if(U.childNodes.length>ue)U=U.childNodes[ue],ue=0;else{if(U.childNodes.length!==ue)break;ue=(U=U.lastChild)instanceof Text?U.data.length:U.childNodes.length+1}X.node=U,X.offset=ue}),M.info("getNativeRange",se),se}},{key:"getRange",value:function(){var Q=this,R=this.getNativeRange();if(null==R)return[null,null];var se=[[R.start.node,R.start.offset]];R.native.collapsed||se.push([R.end.node,R.end.offset]);var X=se.map(function(pe){var _e=ae(pe,2),he=_e[0],de=_e[1],ce=F.default.find(he,!0),ie=ce.offset(Q.scroll);return 0===de?ie:ce instanceof F.default.Container?ie+ce.length():ie+ce.index(he,de)}),U=Math.min.apply(Math,D(X)),ue=Math.max.apply(Math,D(X));return ue=Math.min(ue,this.scroll.length()-1),[new $(U,ue-U),R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"scrollIntoView",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastRange;if(null!=Q){var R=this.getBounds(Q.index,Q.length);if(null!=R)if(this.root.offsetHeight2&&void 0!==arguments[2]?arguments[2]:Q,X=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,U=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(M.info("setNativeRange",Q,R,se,X),null==Q||null!=this.root.parentNode&&null!=Q.parentNode&&null!=se.parentNode){var ue=document.getSelection();if(null!=ue)if(null!=Q){this.hasFocus()||this.root.focus();var pe=(this.getNativeRange()||{}).native;if(null==pe||U||Q!==pe.startContainer||R!==pe.startOffset||se!==pe.endContainer||X!==pe.endOffset){var _e=document.createRange();_e.setStart(Q,R),_e.setEnd(se,X),ue.removeAllRanges(),ue.addRange(_e)}}else ue.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Q){var U,ue,pe,R=this,se=arguments.length>1&&void 0!==arguments[1]&&arguments[1],X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.default.sources.API;"string"==typeof se&&(X=se,se=!1),M.info("setRange",Q),null!=Q?(U=Q.collapsed?[Q.index]:[Q.index,Q.index+Q.length],ue=[],pe=R.scroll.length(),U.forEach(function(_e,he){_e=Math.min(pe-1,_e);var ce=R.scroll.leaf(_e),ie=ae(ce,2),oe=ie[1],Ie=ie[0].position(oe,0!==he),re=ae(Ie,2);ue.push(re[0],oe=re[1])}),ue.length<2&&(ue=ue.concat(ue)),R.setNativeRange.apply(R,D(ue).concat([se]))):this.setNativeRange(null),this.update(X)}},{key:"update",value:function(){var R,Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.default.sources.USER,se=this.lastRange,X=this.getRange(),U=ae(X,2);if(this.lastRange=U[0],R=U[1],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,I.default)(se,this.lastRange)){var ue;!this.composing&&null!=R&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var _e,pe=[T.default.events.SELECTION_CHANGE,(0,O.default)(this.lastRange),(0,O.default)(se),Q];(ue=this.emitter).emit.apply(ue,[T.default.events.EDITOR_CHANGE].concat(pe)),Q!==T.default.sources.SILENT&&(_e=this.emitter).emit.apply(_e,pe)}}}]),ne}();function B(ne,Y){return Y instanceof Text&&(Y=Y.parentNode),ne.contains(Y)}z.Range=$,z.default=ee},function(xe,z){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var L=function(){function Z(F,N){for(var O=0;O0)||_e instanceof I.BlockEmbed||ie instanceof I.BlockEmbed||(ie instanceof w.default&&ie.deleteAt(ie.length()-1,1),_e.moveChildren(ie,ie.children.head instanceof C.default?null:ie.children.head),_e.remove()),this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(X,U,ue,pe){null!=this.whitelist&&!this.whitelist[ue]||(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,X,U,ue,pe),this.optimize())}},{key:"insertAt",value:function(X,U,ue){if(null==ue||null==this.whitelist||this.whitelist[U]){if(X>=this.length())if(null==ue||null==N.default.query(U,N.default.Scope.BLOCK)){var pe=N.default.create(this.statics.defaultChild);this.appendChild(pe),null==ue&&U.endsWith("\n")&&(U=U.slice(0,-1)),pe.insertAt(0,U,ue)}else{var _e=N.default.create(U,ue);this.appendChild(_e)}else Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,X,U,ue);this.optimize()}}},{key:"insertBefore",value:function(X,U){if(X.statics.scope===N.default.Scope.INLINE_BLOT){var ue=N.default.create(this.statics.defaultChild);ue.appendChild(X),X=ue}Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,X,U)}},{key:"leaf",value:function(X){return this.path(X).pop()||[null,-1]}},{key:"line",value:function(X){return X===this.length()?this.line(X-1):this.descendant(ne,X)}},{key:"lines",value:function(){return function pe(_e,he,de){var ce=[],ie=de;return _e.children.forEachAt(he,de,function(J,oe,Ie){ne(J)?ce.push(J):J instanceof N.default.Container&&(ce=ce.concat(pe(J,oe,ie))),ie-=Ie}),ce}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!0!==this.batch&&(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,X),X.length>0&&this.emitter.emit(S.default.events.SCROLL_OPTIMIZE,X))}},{key:"path",value:function(X){return Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,X).slice(1)}},{key:"update",value:function(X){if(!0!==this.batch){var U=S.default.sources.USER;"string"==typeof X&&(U=X),Array.isArray(X)||(X=this.observer.takeRecords()),X.length>0&&this.emitter.emit(S.default.events.SCROLL_BEFORE_UPDATE,U,X),Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,X.concat([])),X.length>0&&this.emitter.emit(S.default.events.SCROLL_UPDATE,U,X)}}}]),R}(N.default.Scroll);Y.blotName="scroll",Y.className="ql-editor",Y.tagName="DIV",Y.defaultChild="block",Y.allowedChildren=[v.default,I.BlockEmbed,y.default],z.default=Y},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.matchText=z.matchSpacing=z.matchNewline=z.matchBlot=z.matchAttributor=z.default=void 0;var ae=function(Re,Je){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return function Fe(Re,Je){var rt=[],ot=!0,Dt=!1,Xt=void 0;try{for(var ni,rn=Re[Symbol.iterator]();!(ot=(ni=rn.next()).done)&&(rt.push(ni.value),!Je||rt.length!==Je);ot=!0);}catch(Jo){Dt=!0,Xt=Jo}finally{try{!ot&&rn.return&&rn.return()}finally{if(Dt)throw Xt}}return rt}(Re,Je);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function Fe(Re,Je){for(var rt=0;rt0&&(Re=Re.compose((new F.default).retain(Re.length(),Je))),parseFloat(rt.textIndent||0)>0&&(Re=(new F.default).insert("\t").concat(Re)),Re}],["b",oe.bind(oe,"bold")],["i",oe.bind(oe,"italic")],["style",function Be(){return new F.default}]],pe=[y.AlignAttribute,M.DirectionAttribute].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),_e=[y.AlignStyle,D.BackgroundStyle,w.ColorStyle,M.DirectionStyle,$.FontStyle,ee.SizeStyle].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),he=function(Fe){function Re(Je,rt){!function Q(Fe,Re){if(!(Fe instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Re);var ot=function R(Fe,Re){if(!Fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Re||"object"!=typeof Re&&"function"!=typeof Re?Fe:Re}(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Je,rt));return ot.quill.root.addEventListener("paste",ot.onPaste.bind(ot)),ot.container=ot.quill.addContainer("ql-clipboard"),ot.container.setAttribute("contenteditable",!0),ot.container.setAttribute("tabindex",-1),ot.matchers=[],ue.concat(ot.options.matchers).forEach(function(Dt){ot.addMatcher.apply(ot,function Y(Fe){if(Array.isArray(Fe)){for(var Re=0,Je=Array(Fe.length);Re2&&void 0!==arguments[2]?arguments[2]:I.default.sources.API;if("string"==typeof rt)return this.quill.setContents(this.convert(rt),ot);var Xt=this.convert(ot);return this.quill.updateContents((new F.default).retain(rt).concat(Xt),Dt)}},{key:"onPaste",value:function(rt){var ot=this;if(!rt.defaultPrevented&&this.quill.isEnabled()){var Dt=this.quill.getSelection(),Xt=(new F.default).retain(Dt.index),rn=this.quill.scrollingContainer.scrollTop;this.container.focus(),setTimeout(function(){ot.quill.selection.update(I.default.sources.SILENT),Xt=Xt.concat(ot.convert()).delete(Dt.length),ot.quill.updateContents(Xt,I.default.sources.USER),ot.quill.setSelection(Xt.length()-Dt.length,I.default.sources.SILENT),ot.quill.scrollingContainer.scrollTop=rn,ot.quill.selection.scrollIntoView()},1)}}},{key:"prepareMatching",value:function(){var rt=this,ot=[],Dt=[];return this.matchers.forEach(function(Xt){var rn=ae(Xt,2),ni=rn[0],Jo=rn[1];switch(ni){case Node.TEXT_NODE:Dt.push(Jo);break;case Node.ELEMENT_NODE:ot.push(Jo);break;default:[].forEach.call(rt.container.querySelectorAll(ni),function(an){an[U]=an[U]||[],an[U].push(Jo)})}}),[ot,Dt]}}]),Re}(k.default);function de(Fe){if(Fe.nodeType!==Node.ELEMENT_NODE)return{};var Re="__ql-computed-style";return Fe[Re]||(Fe[Re]=window.getComputedStyle(Fe))}function ce(Fe,Re){for(var Je="",rt=Fe.ops.length-1;rt>=0&&Je.length-1}function J(Fe,Re,Je){return Fe.nodeType===Fe.TEXT_NODE?Je.reduce(function(rt,ot){return ot(Fe,rt)},new F.default):Fe.nodeType===Fe.ELEMENT_NODE?[].reduce.call(Fe.childNodes||[],function(rt,ot){var Dt=J(ot,Re,Je);return ot.nodeType===Fe.ELEMENT_NODE&&(Dt=Re.reduce(function(Xt,rn){return rn(ot,Xt)},Dt),Dt=(ot[U]||[]).reduce(function(Xt,rn){return rn(ot,Xt)},Dt)),rt.concat(Dt)},new F.default):new F.default}function oe(Fe,Re,Je){return Je.compose((new F.default).retain(Je.length(),ne({},Fe,!0)))}function Ie(Fe,Re){var Je=O.default.Attributor.Attribute.keys(Fe),rt=O.default.Attributor.Class.keys(Fe),ot=O.default.Attributor.Style.keys(Fe),Dt={};return Je.concat(rt).concat(ot).forEach(function(Xt){var rn=O.default.query(Xt,O.default.Scope.ATTRIBUTE);null!=rn&&(Dt[rn.attrName]=rn.value(Fe),Dt[rn.attrName])||(null!=pe[Xt]&&(Dt[(rn=pe[Xt]).attrName]=rn.value(Fe)),null!=_e[Xt]&&(Dt[(rn=_e[Xt]).attrName]=rn.value(Fe)))}),Object.keys(Dt).length>0&&(Re=Re.compose((new F.default).retain(Re.length(),Dt))),Re}function re(Fe,Re){var Je=O.default.query(Fe);if(null==Je)return Re;if(Je.prototype instanceof O.default.Embed){var rt={},ot=Je.value(Fe);null!=ot&&(rt[Je.blotName]=ot,Re=(new F.default).insert(rt,Je.formats(Fe)))}else if("function"==typeof Je.formats){var Dt=ne({},Je.blotName,Je.formats(Fe));Re=Re.compose((new F.default).retain(Re.length(),Dt))}return Re}function Me(Fe,Re){return ie(Fe)&&!ce(Re,"\n")&&Re.insert("\n"),Re}function Ue(Fe,Re){if(ie(Fe)&&null!=Fe.nextElementSibling&&!ce(Re,"\n\n")){var Je=Fe.offsetHeight+parseFloat(de(Fe).marginTop)+parseFloat(de(Fe).marginBottom);Fe.nextElementSibling.offsetTop>Fe.offsetTop+1.5*Je&&Re.insert("\n")}return Re}function at(Fe,Re){var Je=Fe.data;if("O:P"===Fe.parentNode.tagName)return Re.insert(Je.trim());if(!de(Fe.parentNode).whiteSpace.startsWith("pre")){var rt=function(Dt,Xt){return(Xt=Xt.replace(/[^\u00a0]/g,"")).length<1&&Dt?" ":Xt};Je=(Je=Je.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,rt.bind(rt,!0)),(null==Fe.previousSibling&&ie(Fe.parentNode)||null!=Fe.previousSibling&&ie(Fe.previousSibling))&&(Je=Je.replace(/^\s+/,rt.bind(rt,!1))),(null==Fe.nextSibling&&ie(Fe.parentNode)||null!=Fe.nextSibling&&ie(Fe.nextSibling))&&(Je=Je.replace(/\s+$/,rt.bind(rt,!1)))}return Re.insert(Je)}he.DEFAULTS={matchers:[]},z.default=he,z.matchAttributor=Ie,z.matchBlot=re,z.matchNewline=Me,z.matchSpacing=Ue,z.matchText=at},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.AlignStyle=z.AlignClass=z.AlignAttribute=void 0;var H=function Z(I){return I&&I.__esModule?I:{default:I}}(L(2));var F={scope:H.default.Scope.BLOCK,whitelist:["right","center","justify"]},N=new H.default.Attributor.Attribute("align","align",F),O=new H.default.Attributor.Class("align","ql-align",F),S=new H.default.Attributor.Style("align","text-align",F);z.AlignAttribute=N,z.AlignClass=O,z.AlignStyle=S},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.BackgroundStyle=z.BackgroundClass=void 0;var H=function F(S){return S&&S.__esModule?S:{default:S}}(L(2)),Z=L(47);var N=new H.default.Attributor.Class("background","ql-bg",{scope:H.default.Scope.INLINE}),O=new Z.ColorAttributor("background","background-color",{scope:H.default.Scope.INLINE});z.BackgroundClass=N,z.BackgroundStyle=O},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.ColorStyle=z.ColorClass=z.ColorAttributor=void 0;var ae=function(){function k(y,D){for(var w=0;wY&&this.stack.undo.length>0){var Q=this.stack.undo.pop();ne=ne.compose(Q.undo),ee=Q.redo.compose(ee)}else this.lastRecorded=Y;this.stack.undo.push({redo:ee,undo:ne}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ee){this.stack.undo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)}),this.stack.redo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),M}(I(L(39)).default);function D(w){var M=w.reduce(function(ee,B){return ee+(B.delete||0)},0),$=w.length()-M;return function y(w){var M=w.ops[w.ops.length-1];return null!=M&&(null!=M.insert?"string"==typeof M.insert&&M.insert.endsWith("\n"):null!=M.attributes&&Object.keys(M.attributes).some(function($){return null!=Z.default.query($,Z.default.Scope.BLOCK)}))}(w)&&($-=1),$}k.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},z.default=k,z.getLastChangeIndex=D},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},H=function(oe,Ie){if(Array.isArray(oe))return oe;if(Symbol.iterator in Object(oe))return function J(oe,Ie){var re=[],ye=!0,Be=!1,Me=void 0;try{for(var Bn,Ue=oe[Symbol.iterator]();!(ye=(Bn=Ue.next()).done)&&(re.push(Bn.value),!Ie||re.length!==Ie);ye=!0);}catch(at){Be=!0,Me=at}finally{try{!ye&&Ue.return&&Ue.return()}finally{if(Be)throw Me}}return re}(oe,Ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function J(oe,Ie){for(var re=0;re1&&void 0!==arguments[1]?arguments[1]:{},Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Me=ie(re);if(null==Me||null==Me.key)return se.warn("Attempted to add invalid keyboard binding",Me);"function"==typeof ye&&(ye={handler:ye}),"function"==typeof Be&&(Be={handler:Be}),Me=(0,v.default)(Me,ye,Be),this.bindings[Me.key]=this.bindings[Me.key]||[],this.bindings[Me.key].push(Me)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(ye){if(!ye.defaultPrevented){var Me=(re.bindings[ye.which||ye.keyCode]||[]).filter(function(jn){return oe.match(ye,jn)});if(0!==Me.length){var Ue=re.quill.getSelection();if(null!=Ue&&re.quill.hasFocus()){var Bn=re.quill.scroll.line(Ue.index),at=H(Bn,2),Fe=at[0],Re=at[1],Je=re.quill.scroll.leaf(Ue.index),rt=H(Je,2),ot=rt[0],Dt=rt[1],Xt=0===Ue.length?[ot,Dt]:re.quill.scroll.leaf(Ue.index+Ue.length),rn=H(Xt,2),ni=rn[0],Jo=rn[1],an=ot instanceof y.default.Text?ot.value().slice(0,Dt):"",As=ni instanceof y.default.Text?ni.value().slice(Jo):"",bo={collapsed:0===Ue.length,empty:0===Ue.length&&Fe.length()<=1,format:re.quill.getFormat(Ue),offset:Re,prefix:an,suffix:As};Me.some(function(jn){if(null!=jn.collapsed&&jn.collapsed!==bo.collapsed||null!=jn.empty&&jn.empty!==bo.empty||null!=jn.offset&&jn.offset!==bo.offset)return!1;if(Array.isArray(jn.format)){if(jn.format.every(function(yo){return null==bo.format[yo]}))return!1}else if("object"===ae(jn.format)&&!Object.keys(jn.format).every(function(yo){return!0===jn.format[yo]?null!=bo.format[yo]:!1===jn.format[yo]?null==bo.format[yo]:(0,S.default)(jn.format[yo],bo.format[yo])}))return!1;return!(null!=jn.prefix&&!jn.prefix.test(bo.prefix)||null!=jn.suffix&&!jn.suffix.test(bo.suffix))&&!0!==jn.handler.call(re,Ue,bo)})&&ye.preventDefault()}}}})}}]),oe}(B.default);function ue(J,oe){if(0!==J.index){var Ie=this.quill.scroll.line(J.index),re=H(Ie,1),Be={};if(0===oe.offset){var Me=re[0].formats(),Ue=this.quill.getFormat(J.index-1,1);Be=C.default.attributes.diff(Me,Ue)||{}}this.quill.deleteText(J.index-1,1,w.default.sources.USER),Object.keys(Be).length>0&&this.quill.formatLine(J.index-1,1,Be,w.default.sources.USER),this.quill.selection.scrollIntoView()}}function pe(J){J.index>=this.quill.getLength()-1||this.quill.deleteText(J.index,1,w.default.sources.USER)}function _e(J){this.quill.deleteText(J,w.default.sources.USER),this.quill.setSelection(J.index,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}function he(J,oe){var Ie=this;J.length>0&&this.quill.scroll.deleteAt(J.index,J.length);var re=Object.keys(oe.format).reduce(function(ye,Be){return y.default.query(Be,y.default.Scope.BLOCK)&&!Array.isArray(oe.format[Be])&&(ye[Be]=oe.format[Be]),ye},{});this.quill.insertText(J.index,"\n",re,w.default.sources.USER),this.quill.selection.scrollIntoView(),Object.keys(oe.format).forEach(function(ye){null==re[ye]&&(Array.isArray(oe.format[ye])||"link"!==ye&&Ie.quill.format(ye,oe.format[ye],w.default.sources.USER))})}function de(J){return{key:U.keys.TAB,shiftKey:!J,format:{"code-block":!0},handler:function(Ie){var re=y.default.query("code-block"),ye=Ie.index,Be=Ie.length,Me=this.quill.scroll.descendant(re,ye),Ue=H(Me,2),Bn=Ue[0],at=Ue[1];if(null!=Bn){var Fe=this.quill.scroll.offset(Bn),Re=Bn.newlineIndex(at,!0)+1,Je=Bn.newlineIndex(Fe+at+Be),rt=Bn.domNode.textContent.slice(Re,Je).split("\n");at=0,rt.forEach(function(ot,Dt){J?(Bn.insertAt(Re+at,re.TAB),at+=re.TAB.length,0===Dt?ye+=re.TAB.length:Be+=re.TAB.length):ot.startsWith(re.TAB)&&(Bn.deleteAt(Re+at,re.TAB.length),at-=re.TAB.length,0===Dt?ye-=re.TAB.length:Be-=re.TAB.length),at+=ot.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(ye,Be,w.default.sources.SILENT)}}}}function ce(J){return{key:J[0].toUpperCase(),shortKey:!0,handler:function(Ie,re){this.quill.format(J,!re.format[J],w.default.sources.USER)}}}function ie(J){if("string"==typeof J||"number"==typeof J)return ie({key:J});if("object"===(typeof J>"u"?"undefined":ae(J))&&(J=(0,N.default)(J,!1)),"string"==typeof J.key)if(null!=U.keys[J.key.toUpperCase()])J.key=U.keys[J.key.toUpperCase()];else{if(1!==J.key.length)return null;J.key=J.key.toUpperCase().charCodeAt(0)}return J}U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:ce("bold"),italic:ce("italic"),underline:ce("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,format:["blockquote","indent","list"],offset:0,handler:function(oe,Ie){null!=Ie.format.indent?this.quill.format("indent","-1",w.default.sources.USER):null!=Ie.format.blockquote?this.quill.format("blockquote",!1,w.default.sources.USER):null!=Ie.format.list&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(oe){this.quill.deleteText(oe.index-1,1,w.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(oe,Ie){Ie.collapsed||this.quill.scroll.deleteAt(oe.index,oe.length),this.quill.insertText(oe.index,"\t",w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(oe,Ie){this.quill.format("list",!1,w.default.sources.USER),Ie.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n");var Ie=this.quill.scroll.line(oe.index+1);H(Ie,1)[0].format("list","unchecked"),this.quill.update(w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n"),this.quill.formatText(oe.index+1,1,"header",!1,w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^(1\.|-)$/,handler:function(oe,Ie){var re=Ie.prefix.length;this.quill.scroll.deleteAt(oe.index-re,re),this.quill.formatLine(oe.index-re,1,"list",1===re?"bullet":"ordered",w.default.sources.USER),this.quill.setSelection(oe.index-re,w.default.sources.SILENT)}}}},z.default=U},function(xe,z,L){"use strict";var H=an(L(1)),Z=L(45),F=L(48),N=L(54),S=an(L(55)),v=an(L(56)),T=L(57),C=an(T),k=L(46),y=L(47),D=L(49),w=L(50),$=an(L(58)),B=an(L(59)),Y=an(L(60)),R=an(L(61)),X=an(L(62)),ue=an(L(63)),_e=an(L(64)),de=an(L(65)),ce=L(28),ie=an(ce),oe=an(L(66)),re=an(L(67)),Be=an(L(68)),Ue=an(L(69)),at=an(L(102)),Re=an(L(104)),rt=an(L(105)),Dt=an(L(106)),rn=an(L(107)),Jo=an(L(109));function an(As){return As&&As.__esModule?As:{default:As}}H.default.register({"attributors/attribute/direction":F.DirectionAttribute,"attributors/class/align":Z.AlignClass,"attributors/class/background":k.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":F.DirectionClass,"attributors/class/font":D.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":Z.AlignStyle,"attributors/style/background":k.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":F.DirectionStyle,"attributors/style/font":D.FontStyle,"attributors/style/size":w.SizeStyle},!0),H.default.register({"formats/align":Z.AlignClass,"formats/direction":F.DirectionClass,"formats/indent":N.IndentClass,"formats/background":k.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":D.FontClass,"formats/size":w.SizeClass,"formats/blockquote":S.default,"formats/code-block":ie.default,"formats/header":v.default,"formats/list":C.default,"formats/bold":$.default,"formats/code":ce.Code,"formats/italic":B.default,"formats/link":Y.default,"formats/script":R.default,"formats/strike":X.default,"formats/underline":ue.default,"formats/image":_e.default,"formats/video":de.default,"formats/list/item":T.ListItem,"modules/formula":oe.default,"modules/syntax":re.default,"modules/toolbar":Be.default,"themes/bubble":rn.default,"themes/snow":Jo.default,"ui/icons":Ue.default,"ui/picker":at.default,"ui/icon-picker":rt.default,"ui/color-picker":Re.default,"ui/tooltip":Dt.default},!0),xe.exports=H.default},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.IndentClass=void 0;var ae=function(){function C(k,y){for(var D=0;D0&&this.children.tail.format(B,ne)}},{key:"formats",value:function(){return function T(M,$,ee){return $ in M?Object.defineProperty(M,$,{value:ee,enumerable:!0,configurable:!0,writable:!0}):M[$]=ee,M}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(B,ne){if(B instanceof D)H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"insertBefore",this).call(this,B,ne);else{var Y=null==ne?this.length():ne.offset(this),Q=this.split(Y);Q.parent.insertBefore(B,Q)}}},{key:"optimize",value:function(){H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this);var B=this.next;null!=B&&B.prev===this&&B.statics.blotName===this.statics.blotName&&B.domNode.tagName===this.domNode.tagName&&B.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(B.moveChildren(this),B.remove())}},{key:"replace",value:function(B){if(B.statics.blotName!==this.statics.blotName){var ne=F.default.create(this.statics.defaultChild);B.moveChildren(ne),this.appendChild(ne)}H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"replace",this).call(this,B)}}],[{key:"create",value:function(B){var ne="ordered"===B?"OL":"UL",Y=H($.__proto__||Object.getPrototypeOf($),"create",this).call(this,ne);return("checked"===B||"unchecked"===B)&&Y.setAttribute("data-checked","checked"===B),Y}},{key:"formats",value:function(B){return"OL"===B.tagName?"ordered":"UL"===B.tagName?B.hasAttribute("data-checked")?"true"===B.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),$}(I.default);w.blotName="list",w.scope=F.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[D],z.ListItem=D,z.default=w},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1}v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",z.default=v,z.sanitize=T},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return"string"==typeof w&&M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,N.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(F.default);C.blotName="image",C.tagName="IMG",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function k(y,D){for(var w=0;w-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return M.setAttribute("frameborder","0"),M.setAttribute("allowfullscreen",!0),M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"sanitize",value:function(w){return N.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(Z.BlockEmbed);C.blotName="video",C.className="ql-video",C.tagName="IFRAME",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.FormulaBlot=void 0;var ae=function(){function y(D,w){for(var M=0;M0||null==this.cachedHTML)&&(this.domNode.innerHTML=Y(Q),this.attach()),this.cachedHTML=this.domNode.innerHTML}}}]),B}(C(L(28)).default);w.className="ql-syntax";var M=new F.default.Attributor.Class("token","hljs",{scope:F.default.Scope.INLINE}),$=function(ee){function B(ne,Y){k(this,B);var Q=y(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,ne,Y));if("function"!=typeof Q.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");O.default.register(M,!0),O.default.register(w,!0);var R=null;return Q.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){null==R&&(R=setTimeout(function(){Q.highlight(),R=null},100))}),Q.highlight(),Q}return D(B,ee),ae(B,[{key:"highlight",value:function(){var Y=this;if(!this.quill.selection.composing){var Q=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(R){R.highlight(Y.options.highlight)}),this.quill.update(O.default.sources.SILENT),null!=Q&&this.quill.setSelection(Q,O.default.sources.SILENT)}}}]),B}(I.default);$.DEFAULTS={highlight:null==window.hljs?null:function(ee){return window.hljs.highlightAuto(ee).value}},z.CodeBlock=w,z.CodeToken=M,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.addControls=z.default=void 0;var ae=function(se,X){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return function R(se,X){var U=[],ue=!0,pe=!1,_e=void 0;try{for(var de,he=se[Symbol.iterator]();!(ue=(de=he.next()).done)&&(U.push(de.value),!X||U.length!==X);ue=!0);}catch(ce){pe=!0,_e=ce}finally{try{!ue&&he.return&&he.return()}finally{if(pe)throw _e}}return U}(se,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function R(se,X){for(var U=0;U '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},H=function(){function I(v,T){for(var C=0;C1&&void 0!==arguments[1]&&arguments[1],k=this.container.querySelector(".ql-selected");if(T!==k&&(k?.classList.remove("ql-selected"),null!=T&&(T.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(T.parentNode.children,T),T.hasAttribute("data-value")?this.label.setAttribute("data-value",T.getAttribute("data-value")):this.label.removeAttribute("data-value"),T.hasAttribute("data-label")?this.label.setAttribute("data-label",T.getAttribute("data-label")):this.label.removeAttribute("data-label"),C))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":ae(Event))){var y=document.createEvent("Event");y.initEvent("change",!0,!0),this.select.dispatchEvent(y)}this.close()}}},{key:"update",value:function(){var T=void 0;if(this.select.selectedIndex>-1){var C=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];T=this.select.options[this.select.selectedIndex],this.selectItem(C)}else this.selectItem(null);var k=null!=T&&T!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),I}();z.default=S},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y=this.quill.root.offsetHeight)}},{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(N){var O=N.left+N.width/2-this.root.offsetWidth/2,S=N.bottom+this.quill.root.scrollTop;this.root.style.left=O+"px",this.root.style.top=S+"px";var I=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),T=0;return v.right>I.right&&(this.root.style.left=O+(T=I.right-v.right)+"px"),v.left0){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var U=R.quill.scroll.lines(X.index,X.length);if(1===U.length)R.position(R.quill.getBounds(X));else{var ue=U[U.length-1],pe=ue.offset(R.quill.scroll),_e=Math.min(ue.length()-1,X.index+X.length-pe),he=R.quill.getBounds(new v.Range(pe,_e));R.position(he)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return w(ne,B),H(ne,[{key:"listen",value:function(){var Q=this;ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Q.root.classList.remove("ql-editing")}),this.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Q.root.classList.contains("ql-hidden")){var R=Q.quill.getSelection();null!=R&&Q.position(Q.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Q){var R=ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"position",this).call(this,Q),se=this.root.querySelector(".ql-tooltip-arrow");if(se.style.marginLeft="",0===R)return R;se.style.marginLeft=-1*R-se.offsetWidth/2+"px"}}]),ne}(S.BaseTooltip);ee.TEMPLATE=['','
','','',"
"].join(""),z.BubbleTooltip=ee,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BaseTooltip=void 0;var ae=function(){function ie(J,oe){for(var Ie=0;Ie0&&void 0!==arguments[0]?arguments[0]:"link",re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=re?this.textbox.value=re:Ie!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Ie)||""),this.root.setAttribute("data-mode",Ie)}},{key:"restoreFocus",value:function(){var Ie=this.quill.root.scrollTop;this.quill.focus(),this.quill.root.scrollTop=Ie}},{key:"save",value:function(){var Ie=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var re=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ie,I.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ie,I.default.sources.USER)),this.quill.root.scrollTop=re;break;case"video":var ye=Ie.match(/^(https?):\/\/(www\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ie.match(/^(https?):\/\/(www\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);ye?Ie=ye[1]+"://www.youtube.com/embed/"+ye[3]+"?showinfo=0":(ye=Ie.match(/^(https?):\/\/(www\.)?vimeo\.com\/(\d+)/))&&(Ie=ye[1]+"://player.vimeo.com/video/"+ye[3]+"/");case"formula":var Be=this.quill.getSelection(!0),Me=Be.index+Be.length;null!=Be&&(this.quill.insertEmbed(Me,this.root.getAttribute("data-mode"),Ie,I.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Me+1," ",I.default.sources.USER),this.quill.setSelection(Me+2,I.default.sources.USER))}this.textbox.value="",this.hide()}}]),J}(ne.default);function ce(ie,J){var oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];J.forEach(function(Ie){var re=document.createElement("option");Ie===oe?re.setAttribute("selected","selected"):re.setAttribute("value",Ie),ie.appendChild(re)})}z.BaseTooltip=de,z.default=he},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(R,se){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function Q(R,se){var X=[],U=!0,ue=!1,pe=void 0;try{for(var he,_e=R[Symbol.iterator]();!(U=(he=_e.next()).done)&&(X.push(he.value),!se||X.length!==se);U=!0);}catch(de){ue=!0,pe=de}finally{try{!U&&_e.return&&_e.return()}finally{if(ue)throw pe}}return X}(R,se);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function Q(R,se,X){null===R&&(R=Function.prototype);var U=Object.getOwnPropertyDescriptor(R,se);if(void 0===U){var ue=Object.getPrototypeOf(R);return null===ue?void 0:Q(ue,se,X)}if("value"in U)return U.value;var pe=U.get;return void 0===pe?void 0:pe.call(X)},Z=function(){function Q(R,se){for(var X=0;X','','',''].join(""),z.default=ne}])}},tc=>{tc(tc.s=5544)}]); \ No newline at end of file From 35f0c9d56c816fb614274e115baae6c57975c4b5 Mon Sep 17 00:00:00 2001 From: Sudarshan Sathe Date: Mon, 29 Apr 2024 19:35:29 +0530 Subject: [PATCH 04/86] fix account report file name issue --- .../CenteralizedExecutionLogger/AccountReportExecutionLogger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ginger/GingerCoreNET/Run/RunListenerLib/CenteralizedExecutionLogger/AccountReportExecutionLogger.cs b/Ginger/GingerCoreNET/Run/RunListenerLib/CenteralizedExecutionLogger/AccountReportExecutionLogger.cs index e245327022..324f9c08be 100644 --- a/Ginger/GingerCoreNET/Run/RunListenerLib/CenteralizedExecutionLogger/AccountReportExecutionLogger.cs +++ b/Ginger/GingerCoreNET/Run/RunListenerLib/CenteralizedExecutionLogger/AccountReportExecutionLogger.cs @@ -239,7 +239,7 @@ private async Task SendDataOnActionEndTask(Act action) AccountReportAction accountReportAction = AccountReportEntitiesDataMapping.MapActionEndData(action, mContext); foreach (ArtifactDetails artifact in action.Artifacts) { - artifactList.Add(artifact.ArtifactOriginalPath); + artifactList.Add(artifact.ArtifactNewPath); } await AccountReportApiHandler.SendScreenShotsToCentralDBAsync((Guid)WorkSpace.Instance.RunsetExecutor.RunSetConfig.ExecutionID, action.ScreenShots.ToList()); await AccountReportApiHandler.SendArtifactsToCentralDBAsync((Guid)WorkSpace.Instance.RunsetExecutor.RunSetConfig.ExecutionID, artifactList); From 0216ec1efae05f0549f67191f84a2d179ab640f8 Mon Sep 17 00:00:00 2001 From: Sudarshan Sathe Date: Mon, 29 Apr 2024 20:22:00 +0530 Subject: [PATCH 05/86] fix file name issue --- Ginger/GingerCoreNET/GingerCoreNET.csproj | 3 +++ Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html | 2 +- .../{main.9fb32635369394e3.js => main.6a73809b9e1090f3.js} | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) rename Ginger/GingerCoreNET/Reports/Ginger-Web-Client/{main.9fb32635369394e3.js => main.6a73809b9e1090f3.js} (71%) diff --git a/Ginger/GingerCoreNET/GingerCoreNET.csproj b/Ginger/GingerCoreNET/GingerCoreNET.csproj index 7f65130e82..36d0944300 100644 --- a/Ginger/GingerCoreNET/GingerCoreNET.csproj +++ b/Ginger/GingerCoreNET/GingerCoreNET.csproj @@ -1150,6 +1150,9 @@ Always + + Always + Always diff --git a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html index 77071ea9c9..3a06112c34 100644 --- a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html +++ b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/index.html @@ -20,5 +20,5 @@
- + diff --git a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.9fb32635369394e3.js b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.6a73809b9e1090f3.js similarity index 71% rename from Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.9fb32635369394e3.js rename to Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.6a73809b9e1090f3.js index a66fc07095..1d29de7a48 100644 --- a/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.9fb32635369394e3.js +++ b/Ginger/GingerCoreNET/Reports/Ginger-Web-Client/main.6a73809b9e1090f3.js @@ -1 +1 @@ -(self.webpackChunkGinger_HtmlReport_Web_App=self.webpackChunkGinger_HtmlReport_Web_App||[]).push([[179],{5544:(tc,xe,z)=>{"use strict";function L(t){return"function"==typeof t}function ae(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const H=ae(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Z(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class F{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(L(n))try{n()}catch(s){i=s instanceof H?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{S(s)}catch(r){i=i??[],r instanceof H?i=[...i,...r.errors]:i.push(r)}}if(i)throw new H(i)}}add(i){var e;if(i&&i!==this)if(this.closed)S(i);else{if(i instanceof F){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Z(e,i)}remove(i){const{_finalizers:e}=this;e&&Z(e,i),i instanceof F&&i._removeParent(this)}}F.EMPTY=(()=>{const t=new F;return t.closed=!0,t})();const N=F.EMPTY;function O(t){return t instanceof F||t&&"closed"in t&&L(t.remove)&&L(t.add)&&L(t.unsubscribe)}function S(t){L(t)?t():t.unsubscribe()}const I={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},v={setTimeout(t,i,...e){const{delegate:n}=v;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=v;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function T(t){v.setTimeout(()=>{const{onUnhandledError:i}=I;if(!i)throw t;i(t)})}function C(){}const k=w("C",void 0,void 0);function w(t,i,e){return{kind:t,value:i,error:e}}let M=null;function $(t){if(I.useDeprecatedSynchronousErrorHandling){const i=!M;if(i&&(M={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=M;if(M=null,e)throw n}}else t()}class B extends F{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,O(i)&&i.add(this)):this.destination=ue}static create(i,e,n){return new R(i,e,n)}next(i){this.isStopped?U(function D(t){return w("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?U(function y(t){return w("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?U(k,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function Y(t,i){return ne.call(t,i)}class Q{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){se(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){se(n)}else se(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){se(e)}}}class R extends B{constructor(i,e,n){let o;if(super(),L(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let s;this&&I.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&Y(i.next,s),error:i.error&&Y(i.error,s),complete:i.complete&&Y(i.complete,s)}):o=i}this.destination=new Q(o)}}function se(t){I.useDeprecatedSynchronousErrorHandling?function ee(t){I.useDeprecatedSynchronousErrorHandling&&M&&(M.errorThrown=!0,M.error=t)}(t):T(t)}function U(t,i){const{onStoppedNotification:e}=I;e&&v.setTimeout(()=>e(t,i))}const ue={closed:!0,next:C,error:function X(t){throw t},complete:C},pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function _e(t){return t}function de(t){return 0===t.length?_e:1===t.length?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}let ce=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){const s=function oe(t){return t&&t instanceof B||function J(t){return t&&L(t.next)&&L(t.error)&&L(t.complete)}(t)&&O(t)}(e)?e:new R(e,n,o);return $(()=>{const{operator:r,source:a}=this;s.add(r?r.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=ie(n))((o,s)=>{const r=new R({next:a=>{try{e(a)}catch(l){s(l),r.unsubscribe()}},error:s,complete:o});this.subscribe(r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[pe](){return this}pipe(...e){return de(e)(this)}toPromise(e){return new(e=ie(e))((n,o)=>{let s;this.subscribe(r=>s=r,r=>o(r),()=>n(s))})}}return t.create=i=>new t(i),t})();function ie(t){var i;return null!==(i=t??I.Promise)&&void 0!==i?i:Promise}const Ie=ae(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class t extends ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new ye(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ie}next(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:o,observers:s}=this;return n||o?N:(this.currentObservers=null,s.push(e),new F(()=>{this.currentObservers=null,Z(s,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:o,isStopped:s}=this;n?e.error(o):s&&e.complete()}asObservable(){const e=new ce;return e.source=this,e}}return t.create=(i,e)=>new ye(i,e),t})();class ye extends re{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:N}}function Be(t){return L(t?.lift)}function Me(t){return i=>{if(Be(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,i,e,n,o){return new Bn(t,i,e,n,o)}class Bn extends B{constructor(i,e,n,o,s,r){super(i),this.onFinalize=s,this.shouldUnsubscribe=r,this._next=e?function(a){try{e(a)}catch(l){i.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function at(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>{n.next(t.call(i,s,o++))}))})}function or(t){return this instanceof or?(this.v=t,this):new or(t)}function Hv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function yo(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=t[s]&&function(r){return new Promise(function(a,l){!function o(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}(a,l,(r=t[s](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const dg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function zv(t){return L(t?.then)}function jv(t){return L(t[pe])}function Uv(t){return Symbol.asyncIterator&&L(t?.[Symbol.asyncIterator])}function $v(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Kv=function d4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Gv(t){return L(t?.[Kv])}function qv(t){return function Bv(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=e.apply(t,i||[]),s=[];return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;function r(m){n[m]&&(o[m]=function(_){return new Promise(function(b,E){s.push([m,_,b,E])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof or?Promise.resolve(m.value.v).then(c,u):p(s[0][2],m)}(n[m](_))}catch(b){p(s[0][3],b)}}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,_){m(_),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:o}=yield or(e.read());if(o)return yield or(void 0);yield yield or(n)}}finally{e.releaseLock()}})}function Wv(t){return L(t?.getReader)}function Ni(t){if(t instanceof ce)return t;if(null!=t){if(jv(t))return function p4(t){return new ce(i=>{const e=t[pe]();if(L(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(dg(t))return function h4(t){return new ce(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,T)})}(t);if(Uv(t))return Qv(t);if(Gv(t))return function g4(t){return new ce(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(Wv(t))return function m4(t){return Qv(qv(t))}(t)}throw $v(t)}function Qv(t){return new ce(i=>{(function _4(t,i){var e,n,o,s;return function As(t,i,e,n){return new(e||(e=Promise))(function(s,r){function a(u){try{c(n.next(u))}catch(p){r(p)}}function l(u){try{c(n.throw(u))}catch(p){r(p)}}function c(u){u.done?s(u.value):function o(s){return s instanceof e?s:new e(function(r){r(s)})}(u.value).then(a,l)}c((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Hv(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(r){o={error:r}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(o)throw o.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function ws(t,i,e,n=0,o=!1){const s=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}function si(t,i,e=1/0){return L(i)?si((n,o)=>at((s,r)=>i(n,s,o,r))(Ni(t(n,o))),e):("number"==typeof i&&(e=i),Me((n,o)=>function I4(t,i,e,n,o,s,r,a){const l=[];let c=0,u=0,p=!1;const m=()=>{p&&!l.length&&!c&&i.complete()},_=E=>c{s&&i.next(E),c++;let P=!1;Ni(e(E,u++)).subscribe(Ue(i,W=>{o?.(W),s?_(W):i.next(W)},()=>{P=!0},void 0,()=>{if(P)try{for(c--;l.length&&cb(W)):b(W)}m()}catch(W){i.error(W)}}))};return t.subscribe(Ue(i,_,()=>{p=!0,m()})),()=>{a?.()}}(n,o,t,e)))}function Ta(t=1/0){return si(_e,t)}const es=new ce(t=>t.complete());function Zv(t){return t&&L(t.schedule)}function pg(t){return t[t.length-1]}function Yv(t){return L(pg(t))?t.pop():void 0}function ic(t){return Zv(pg(t))?t.pop():void 0}function Xv(t,i=0){return Me((e,n)=>{e.subscribe(Ue(n,o=>ws(n,t,()=>n.next(o),i),()=>ws(n,t,()=>n.complete(),i),o=>ws(n,t,()=>n.error(o),i)))})}function Jv(t,i=0){return Me((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function e1(t,i){if(!t)throw new Error("Iterable cannot be null");return new ce(e=>{ws(e,i,()=>{const n=t[Symbol.asyncIterator]();ws(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ri(t,i){return i?function T4(t,i){if(null!=t){if(jv(t))return function b4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(dg(t))return function x4(t,i){return new ce(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(zv(t))return function y4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(Uv(t))return e1(t,i);if(Gv(t))return function A4(t,i){return new ce(e=>{let n;return ws(e,i,()=>{n=t[Kv](),ws(e,i,()=>{let o,s;try{({value:o,done:s}=n.next())}catch(r){return void e.error(r)}s?e.complete():e.next(o)},0,!0)}),()=>L(n?.return)&&n.return()})}(t,i);if(Wv(t))return function w4(t,i){return e1(qv(t),i)}(t,i)}throw $v(t)}(t,i):Ni(t)}class xo extends re{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}function ht(...t){return ri(t,ic(t))}function t1(t={}){const{connector:i=(()=>new re),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return s=>{let r,a,l,c=0,u=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),r=l=void 0,u=p=!1},b=()=>{const E=r;_(),E?.unsubscribe()};return Me((E,P)=>{c++,!p&&!u&&m();const W=l=l??i();P.add(()=>{c--,0===c&&!p&&!u&&(a=hg(b,o))}),W.subscribe(P),!r&&c>0&&(r=new R({next:te=>W.next(te),error:te=>{p=!0,m(),a=hg(_,e,te),W.error(te)},complete:()=>{u=!0,m(),a=hg(_,n),W.complete()}}),Ni(E).subscribe(r))})(s)}}function hg(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new R({next:()=>{n.unsubscribe(),t()}});return Ni(i(...e)).subscribe(n)}function Ao(t,i){return Me((e,n)=>{let o=null,s=0,r=!1;const a=()=>r&&!o&&n.complete();e.subscribe(Ue(n,l=>{o?.unsubscribe();let c=0;const u=s++;Ni(t(l,u)).subscribe(o=Ue(n,p=>n.next(i?i(l,p,u,c++):p),()=>{o=null,a()}))},()=>{r=!0,a()}))})}function D4(t,i){return t===i}function fn(t){for(let i in t)if(t[i]===fn)return i;throw Error("Could not find renamed property on target object.")}function _d(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ai(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ai).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function fg(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const k4=fn({__forward_ref__:fn});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return ai(this())},t}function vt(t){return gg(t)?t():t}function gg(t){return"function"==typeof t&&t.hasOwnProperty(k4)&&t.__forward_ref__===ft}function mg(t){return t&&!!t.\u0275providers}const n1="https://g.co/ng/security#xss";class Ae extends Error{constructor(i,e){super(function Id(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function xt(t){return"string"==typeof t?t:null==t?"":String(t)}function _g(t,i){throw new Ae(-201,!1)}function wo(t,i){null==t&&function _t(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function nt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const o1=nt;function Ge(t){return{providers:t.providers||[],imports:t.imports||[]}}function Cd(t){return s1(t,bd)||s1(t,r1)}function s1(t,i){return t.hasOwnProperty(i)?t[i]:null}function vd(t){return t&&(t.hasOwnProperty(Ig)||t.hasOwnProperty(V4))?t[Ig]:null}const bd=fn({\u0275prov:fn}),Ig=fn({\u0275inj:fn}),r1=fn({ngInjectableDef:fn}),V4=fn({ngInjectorDef:fn});var zt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(zt||{});let Cg;function a1(){return Cg}function Yi(t){const i=Cg;return Cg=t,i}function l1(t,i,e){const n=Cd(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&zt.Optional?null:void 0!==i?i:void _g(ai(t))}const Tn=globalThis;class Ye{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=nt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const oc={},Ag="__NG_DI_FLAG__",yd="ngTempTokenPath",z4=/\n/gm,u1="__source";let Sa;function sr(t){const i=Sa;return Sa=t,i}function $4(t,i=zt.Default){if(void 0===Sa)throw new Ae(-203,!1);return null===Sa?l1(t,void 0,i):Sa.get(t,i&zt.Optional?null:void 0,i)}function Ze(t,i=zt.Default){return(a1()||$4)(vt(t),i)}function et(t,i=zt.Default){return Ze(t,xd(i))}function xd(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function wg(t){const i=[];for(let e=0;ei){r=s-1;break}}}for(;ss?"":o[p+1].toLowerCase();const _=8&n?m:null;if(_&&-1!==f1(_,c,0)||2&n&&c!==m){if(Bo(n))return!1;r=!0}}}}else{if(!r&&!Bo(n)&&!Bo(l))return!1;if(r&&Bo(l))continue;r=!1,n=l|1&n}}return Bo(n)||r}function Bo(t){return 0==(1&t)}function Y4(t,i,e,n){if(null===i)return-1;let o=0;if(n||!e){let s=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?o+="."+r:4&n&&(o+=" "+r);else""!==o&&!Bo(r)&&(i+=b1(s,o),o=""),n=r,s=s||!Bo(n);e++}return""!==o&&(i+=b1(s,o)),i}function Oe(t){return Ts(()=>{const i=x1(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ad.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||To.Emulated,styles:t.styles||nn,_:null,schemas:t.schemas||null,tView:null,id:""};A1(e);const n=t.dependencies;return e.directiveDefs=Td(n,!1),e.pipeDefs=Td(n,!0),e.id=function cL(t){let i=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(e),e})}function Dg(t,i,e){const n=t.\u0275cmp;n.directiveDefs=Td(i,!1),n.pipeDefs=Td(e,!0)}function sL(t){return Zt(t)||fi(t)}function rL(t){return null!==t}function qe(t){return Ts(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function y1(t,i){if(null==t)return ts;const e={};for(const n in t)if(t.hasOwnProperty(n)){let o=t[n],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),e[o]=n,i&&(i[o]=s)}return e}function ut(t){return Ts(()=>{const i=x1(t);return A1(i),i})}function Vi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[wd]||null}function fi(t){return t[Tg]||null}function Bi(t){return t[Sg]||null}function lo(t,i){const e=t[p1]||null;if(!e&&!0===i)throw new Error(`Type ${ai(t)} does not have '\u0275mod' property.`);return e}function x1(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||ts,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:y1(t.inputs,i),outputs:y1(t.outputs)}}function A1(t){t.features?.forEach(i=>i(t))}function Td(t,i){if(!t)return null;const e=i?Bi:sL;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(rL)}const Un=0,it=1,kt=2,Fn=3,Ho=4,lc=5,xi=6,Da=7,Zn=8,rr=9,ka=10,At=11,cc=12,w1=13,Ma=14,Yn=15,uc=16,Oa=17,ns=18,dc=19,T1=20,ar=21,Es=22,pc=23,hc=24,Ut=25,kg=1,S1=2,is=7,La=9,gi=11;function Xi(t){return Array.isArray(t)&&"object"==typeof t[kg]}function Hi(t){return Array.isArray(t)&&!0===t[kg]}function Mg(t){return 0!=(4&t.flags)}function $r(t){return t.componentOffset>-1}function Ed(t){return 1==(1&t.flags)}function zo(t){return!!t.template}function Og(t){return 0!=(512&t[kt])}function Kr(t,i){return t.hasOwnProperty(Ss)?t[Ss]:null}const lr=Symbol("SIGNAL");function k1(t,i){return(null===t||"object"!=typeof t)&&Object.is(t,i)}let mi=null,Dd=!1;function So(t){const i=mi;return mi=t,i}const kd={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function M1(t){if(Dd)throw new Error("");if(null===mi)return;const i=mi.nextProducerIndex++;Pa(mi),it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function F1(t){Pa(t);for(let i=0;i0}function Pa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function V1(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ds(t,i){const e=Object.create(fL);e.computation=t,i?.equal&&(e.equal=i.equal);const n=()=>{if(O1(e),M1(e),e.value===Pd)throw e.error;return e.value};return n[lr]=e,n}const Pg=Symbol("UNSET"),Fg=Symbol("COMPUTING"),Pd=Symbol("ERRORED"),fL=(()=>({...kd,value:Pg,dirty:!0,error:null,equal:k1,producerMustRecompute:t=>t.value===Pg||t.value===Fg,producerRecomputeValue(t){if(t.value===Fg)throw new Error("Detected cycle in computations.");const i=t.value;t.value=Fg;const e=Md(t);let n;try{n=t.computation()}catch(o){n=Pd,t.error=o}finally{Od(t,e)}i!==Pg&&i!==Pd&&n!==Pd&&t.equal(i,n)?t.value=i:(t.value=n,t.version++)}}))();let B1=function gL(){throw new Error};function Rg(){B1()}let Ng=null;function bn(t,i){const e=Object.create(_L);function n(){return M1(e),e.value}return e.value=t,i?.equal&&(e.equal=i.equal),n.set=z1,n.update=IL,n.mutate=CL,n.asReadonly=vL,n[lr]=e,n}const _L=(()=>({...kd,equal:k1,readonlyFn:void 0}))();function H1(t){t.version++,L1(t),Ng?.()}function z1(t){const i=this[lr];Lg()||Rg(),i.equal(i.value,t)||(i.value=t,H1(i))}function IL(t){Lg()||Rg(),z1.call(this,t(this[lr].value))}function CL(t){const i=this[lr];Lg()||Rg(),t(i.value),H1(i)}function vL(){const t=this[lr];if(void 0===t.readonlyFn){const i=()=>this();i[lr]=t,t.readonlyFn=i}return t.readonlyFn}const U1=()=>{},yL=(()=>({...kd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:U1}))();class xL{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Hn(){return $1}function $1(t){return t.type.prototype.ngOnChanges&&(t.setInput=wL),AL}function AL(){const t=G1(this),i=t?.current;if(i){const e=t.previous;if(e===ts)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function wL(t,i,e,n){const o=this.declaredInputs[e],s=G1(t)||function TL(t,i){return t[K1]=i}(t,{previous:ts,current:null}),r=s.current||(s.current={}),a=s.previous,l=a[o];r[o]=new xL(l&&l.currentValue,i,a===ts),t[n]=i}Hn.ngInherit=!0;const K1="__ngSimpleChanges__";function G1(t){return t[K1]||null}const os=function(t,i,e){};function Sn(t){for(;Array.isArray(t);)t=t[Un];return t}function Fd(t,i){return Sn(i[t])}function Ji(t,i){return Sn(i[t.index])}function Q1(t,i){return t.data[i]}function Fa(t,i){return t[i]}function co(t,i){const e=i[t];return Xi(e)?e:e[Un]}function cr(t,i){return null==i?null:t[i]}function Z1(t){t[Oa]=0}function OL(t){1024&t[kt]||(t[kt]|=1024,X1(t,1))}function Y1(t){1024&t[kt]&&(t[kt]&=-1025,X1(t,-1))}function X1(t,i){let e=t[Fn];if(null===e)return;e[lc]+=i;let n=e;for(e=e[Fn];null!==e&&(1===i&&1===n[lc]||-1===i&&0===n[lc]);)e[lc]+=i,n=e,e=e[Fn]}function J1(t,i){if(256==(256&t[kt]))throw new Ae(911,!1);null===t[ar]&&(t[ar]=[]),t[ar].push(i)}const It={lFrame:cb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function tb(){return It.bindingsEnabled}function Ra(){return null!==It.skipHydrationRootTNode}function Ne(){return It.lFrame.lView}function Yt(){return It.lFrame.tView}function G(t){return It.lFrame.contextLView=t,t[Zn]}function q(t){return It.lFrame.contextLView=null,t}function _i(){let t=nb();for(;null!==t&&64===t.type;)t=t.parent;return t}function nb(){return It.lFrame.currentTNode}function ss(t,i){const e=It.lFrame;e.currentTNode=t,e.isParent=i}function Hg(){return It.lFrame.isParent}function zg(){It.lFrame.isParent=!1}function zi(){const t=It.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Na(){return It.lFrame.bindingIndex++}function Ms(t){const i=It.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function $L(t,i){const e=It.lFrame;e.bindingIndex=e.bindingRootIndex=t,jg(i)}function jg(t){It.lFrame.currentDirectiveIndex=t}function rb(){return It.lFrame.currentQueryIndex}function $g(t){It.lFrame.currentQueryIndex=t}function GL(t){const i=t[it];return 2===i.type?i.declTNode:1===i.type?t[xi]:null}function ab(t,i,e){if(e&zt.SkipSelf){let o=i,s=t;for(;!(o=o.parent,null!==o||e&zt.Host||(o=GL(s),null===o||(s=s[Ma],10&o.type))););if(null===o)return!1;i=o,t=s}const n=It.lFrame=lb();return n.currentTNode=i,n.lView=t,!0}function Kg(t){const i=lb(),e=t[it];It.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function lb(){const t=It.lFrame,i=null===t?null:t.child;return null===i?cb(t):i}function cb(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function ub(){const t=It.lFrame;return It.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const db=ub;function Gg(){const t=ub();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ji(){return It.lFrame.selectedIndex}function Gr(t){It.lFrame.selectedIndex=t}function zn(){const t=It.lFrame;return Q1(t.tView,t.selectedIndex)}function Mt(){It.lFrame.currentNamespace="svg"}let hb=!0;function Rd(){return hb}function ur(t){hb=t}function Nd(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Oa]+=65536),(a>13>16&&(3&t[kt])===i&&(t[kt]+=8192,gb(a,s)):gb(a,s)}const Va=-1;class _c{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Qg(t){return t!==Va}function Ic(t){return 32767&t}function Cc(t,i){let e=function iP(t){return t>>16}(t),n=i;for(;e>0;)n=n[Ma],e--;return n}let Zg=!0;function Hd(t){const i=Zg;return Zg=t,i}const mb=255,_b=5;let oP=0;const rs={};function zd(t,i){const e=Ib(t,i);if(-1!==e)return e;const n=i[it];n.firstCreatePass&&(t.injectorIndex=i.length,Yg(n.data,t),Yg(i,null),Yg(n.blueprint,null));const o=jd(t,i),s=t.injectorIndex;if(Qg(o)){const r=Ic(o),a=Cc(o,i),l=a[it].data;for(let c=0;c<8;c++)i[s+c]=a[r+c]|l[r+c]}return i[s+8]=o,s}function Yg(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Ib(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function jd(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;null!==o;){if(n=wb(o),null===n)return Va;if(e++,o=o[Ma],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Va}function Xg(t,i,e){!function sP(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(rc)&&(n=e[rc]),null==n&&(n=e[rc]=oP++);const o=n&mb;i.data[t+(o>>_b)]|=1<=0?i&mb:uP:i}(e);if("function"==typeof s){if(!ab(i,t,n))return n&zt.Host?Cb(o,0,n):vb(i,e,n,o);try{let r;if(r=s(n),null!=r||n&zt.Optional)return r;_g()}finally{db()}}else if("number"==typeof s){let r=null,a=Ib(t,i),l=Va,c=n&zt.Host?i[Yn][xi]:null;for((-1===a||n&zt.SkipSelf)&&(l=-1===a?jd(t,i):i[a+8],l!==Va&&Ab(n,!1)?(r=i[it],a=Ic(l),i=Cc(l,i)):a=-1);-1!==a;){const u=i[it];if(xb(s,a,u.data)){const p=aP(a,i,e,r,n,c);if(p!==rs)return p}l=i[a+8],l!==Va&&Ab(n,i[it].data[a+8]===c)&&xb(s,a,i)?(r=u,a=Ic(l),i=Cc(l,i)):a=-1}}return o}function aP(t,i,e,n,o,s){const r=i[it],a=r.data[t+8],u=Ud(a,r,e,null==n?$r(a)&&Zg:n!=r&&0!=(3&a.type),o&zt.Host&&s===a);return null!==u?qr(i,r,u,a):rs}function Ud(t,i,e,n,o){const s=t.providerIndexes,r=i.data,a=1048575&s,l=t.directiveStart,u=s>>20,m=o?a+u:t.directiveEnd;for(let _=n?a:a+u;_=l&&b.type===e)return _}if(o){const _=r[l];if(_&&zo(_)&&_.type===e)return l}return null}function qr(t,i,e,n){let o=t[e];const s=i.data;if(function eP(t){return t instanceof _c}(o)){const r=o;r.resolving&&function M4(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Ae(-200,`Circular dependency in DI detected for ${t}${e}`)}(function pn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():xt(t)}(s[e]));const a=Hd(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?Yi(r.injectImpl):null;ab(t,n,zt.Default);try{o=t[e]=r.factory(void 0,s,t,n),i.firstCreatePass&&e>=n.directiveStart&&function XL(t,i,e){const{ngOnChanges:n,ngOnInit:o,ngDoCheck:s}=i.type.prototype;if(n){const r=$1(i);(e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r)}o&&(e.preOrderHooks??=[]).push(0-t,o),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}(e,s[e],i)}finally{null!==c&&Yi(c),Hd(a),r.resolving=!1,db()}}return o}function xb(t,i,e){return!!(e[i+(t>>_b)]&1<{const i=t.prototype.constructor,e=i[Ss]||Jg(i),n=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){const s=o[Ss]||Jg(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Jg(t){return gg(t)?()=>{const i=Jg(vt(t));return i&&i()}:Kr(t)}function wb(t){const i=t[it],e=i.type;return 2===e?i.declTNode:1===e?t[xi]:null}const Ha="__parameters__";function ja(t,i,e){return Ts(()=>{const n=function em(t){return function(...e){if(t){const n=t(...e);for(const o in n)this[o]=n[o]}}}(i);function o(...s){if(this instanceof o)return n.apply(this,s),this;const r=new o(...s);return a.annotation=r,a;function a(l,c,u){const p=l.hasOwnProperty(Ha)?l[Ha]:Object.defineProperty(l,Ha,{value:[]})[Ha];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(r),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $a(t,i){t.forEach(e=>Array.isArray(e)?$a(e,i):i(e))}function Sb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Kd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function yc(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function IP(t,i,e,n){let o=t.length;if(o==i)t.push(e,n);else if(1===o)t.push(n,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>i;)t[o]=t[o-2],o--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function tm(t,i){const e=Ka(t,i);if(e>=0)return t[1|e]}function Ka(t,i){return function Eb(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){const s=n+(o-n>>1),r=t[s<i?o=s:n=s+1}return~(o<|^->||--!>|)/g,zP="\u200b$1\u200b";const rm=new Map;let jP=0;const lm="__ngContext__";function Ai(t,i){Xi(i)?(t[lm]=i[dc],function $P(t){rm.set(t[dc],t)}(i)):t[lm]=i}let cm;function um(t,i){return cm(t,i)}function wc(t){const i=t[Fn];return Hi(i)?i[Fn]:i}function Wb(t){return Zb(t[cc])}function Qb(t){return Zb(t[Ho])}function Zb(t){for(;null!==t&&!Hi(t);)t=t[Ho];return t}function Wa(t,i,e,n,o){if(null!=n){let s,r=!1;Hi(n)?s=n:Xi(n)&&(r=!0,n=n[Un]);const a=Sn(n);0===t&&null!==e?null==o?ey(i,e,a):Wr(i,e,a,o||null,!0):1===t&&null!==e?Wr(i,e,a,o||null,!0):2===t?function rp(t,i,e){const n=op(t,i);n&&function u5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,a,r):3===t&&i.destroyNode(a),null!=s&&function h5(t,i,e,n,o){const s=e[is];s!==Sn(e)&&Wa(i,t,n,s,o);for(let a=gi;ai.replace(HP,zP))}(i))}function np(t,i,e){return t.createElement(i,e)}function Xb(t,i){const e=t[La],n=e.indexOf(i);Y1(i),e.splice(n,1)}function ip(t,i){if(t.length<=gi)return;const e=gi+i,n=t[e];if(n){const o=n[uc];null!==o&&o!==t&&Xb(o,n),i>0&&(t[e-1][Ho]=n[Ho]);const s=Kd(t,gi+i);!function t5(t,i){Sc(t,i,i[At],2,null,null),i[Un]=null,i[xi]=null}(n[it],n);const r=s[ns];null!==r&&r.detachView(s[it]),n[Fn]=null,n[Ho]=null,n[kt]&=-129}return n}function pm(t,i){if(!(256&i[kt])){const e=i[At];i[pc]&&R1(i[pc]),i[hc]&&R1(i[hc]),e.destroyNode&&Sc(t,i,e,3,null,null),function s5(t){let i=t[cc];if(!i)return hm(t[it],t);for(;i;){let e=null;if(Xi(i))e=i[cc];else{const n=i[gi];n&&(e=n)}if(!e){for(;i&&!i[Ho]&&i!==t;)Xi(i)&&hm(i[it],i),i=i[Fn];null===i&&(i=t),Xi(i)&&hm(i[it],i),e=i&&i[Ho]}i=e}}(i)}}function hm(t,i){if(!(256&i[kt])){i[kt]&=-129,i[kt]|=256,function c5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r]():n[-r].unsubscribe(),s+=2}else e[s].call(n[e[s+1]]);null!==n&&(i[Da]=null);const o=i[ar];if(null!==o){i[ar]=null;for(let s=0;s-1){const{encapsulation:s}=t.data[n.directiveStart+o];if(s===To.None||s===To.Emulated)return null}return Ji(n,e)}}(t,i.parent,e)}function Wr(t,i,e,n,o){t.insertBefore(i,e,n,o)}function ey(t,i,e){t.appendChild(i,e)}function ty(t,i,e,n,o){null!==n?Wr(t,i,e,n,o):ey(t,i,e)}function op(t,i){return t.parentNode(i)}function ny(t,i,e){return oy(t,i,e)}let gm,ap,Cm,lp,oy=function iy(t,i,e){return 40&t.type?Ji(t,e):null};function sp(t,i,e,n){const o=fm(t,n,i),s=i[At],a=ny(n.parent||i[xi],n,i);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return ap}()?.createHTML(t)||t}function Za(){if(void 0!==Cm)return Cm;if(typeof document<"u")return document;throw new Ae(210,!1)}function vm(){if(void 0===lp&&(lp=null,Tn.trustedTypes))try{lp=Tn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lp}function dy(t){return vm()?.createHTML(t)||t}function hy(t){return vm()?.createScriptURL(t)||t}class fy{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${n1})`}}function pr(t){return t instanceof fy?t.changingThisBreaksApplicationSecurity:t}function Ec(t,i){const e=function w5(t){return t instanceof fy&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${n1})`)}return e===i}class T5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(Qa(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class S5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Qa(i),e}}const D5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bm(t){return(t=String(t)).match(D5)?t:"unsafe:"+t}function Os(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Dc(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const my=Os("area,br,col,hr,img,wbr"),_y=Os("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Iy=Os("rp,rt"),ym=Dc(my,Dc(_y,Os("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dc(Iy,Os("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Dc(Iy,_y)),xm=Os("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cy=Dc(xm,Os("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Os("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),k5=Os("script,style,template");class M5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!ym.hasOwnProperty(e))return this.sanitizedSomething=!0,!k5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let o=0;o"),!0}endElement(i){const e=i.nodeName.toLowerCase();ym.hasOwnProperty(e)&&!my.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(vy(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const O5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L5=/([^\#-~ |!])/g;function vy(t){return t.replace(/&/g,"&").replace(O5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(L5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let cp;function Am(t){return"content"in t&&function F5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ya=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ya||{});function hr(t){const i=kc();return i?dy(i.sanitize(Ya.HTML,t)||""):Ec(t,"HTML")?dy(pr(t)):function P5(t,i){let e=null;try{cp=cp||function gy(t){const i=new S5(t);return function E5(){try{return!!(new window.DOMParser).parseFromString(Qa(""),"text/html")}catch{return!1}}()?new T5(i):i}(t);let n=i?String(i):"";e=cp.getInertBodyElement(n);let o=5,s=n;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,n=s,s=e.innerHTML,e=cp.getInertBodyElement(n)}while(n!==s);return Qa((new M5).sanitizeChildren(Am(e)||e))}finally{if(e){const n=Am(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Za(),xt(t))}function Ls(t){const i=kc();return i?i.sanitize(Ya.URL,t)||"":Ec(t,"URL")?pr(t):bm(xt(t))}function by(t){const i=kc();if(i)return hy(i.sanitize(Ya.RESOURCE_URL,t)||"");if(Ec(t,"ResourceURL"))return hy(pr(t));throw new Ae(904,!1)}function kc(){const t=Ne();return t&&t[ka].sanitizer}const Mc=new Ye("ENVIRONMENT_INITIALIZER"),xy=new Ye("INJECTOR",-1),Ay=new Ye("INJECTOR_DEF_TYPES");class wm{get(i,e=oc){if(e===oc){const n=new Error(`NullInjectorError: No provider for ${ai(i)}!`);throw n.name="NullInjectorError",n}return e}}function z5(...t){return{\u0275providers:wy(0,t),\u0275fromNgModule:!0}}function wy(t,...i){const e=[],n=new Set;let o;const s=r=>{e.push(r)};return $a(i,r=>{const a=r;up(a,s,[],n)&&(o||=[],o.push(a))}),void 0!==o&&Ty(o,s),e}function Ty(t,i){for(let e=0;e{i(s,n)})}}function up(t,i,e,n){if(!(t=vt(t)))return!1;let o=null,s=vd(t);const r=!s&&Zt(t);if(s||r){if(r&&!r.standalone)return!1;o=t}else{const l=t.ngModule;if(s=vd(l),!s)return!1;o=l}const a=n.has(o);if(r){if(a)return!1;if(n.add(o),r.dependencies){const l="function"==typeof r.dependencies?r.dependencies():r.dependencies;for(const c of l)up(c,i,e,n)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;n.add(o);try{$a(s.imports,u=>{up(u,i,e,n)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Ty(c,i)}if(!a){const c=Kr(o)||(()=>new o);i({provide:o,useFactory:c,deps:nn},o),i({provide:Ay,useValue:o,multi:!0},o),i({provide:Mc,useValue:()=>Ze(o),multi:!0},o)}const l=s.providers;if(null!=l&&!a){const c=t;Sm(l,u=>{i(u,c)})}}}return o!==t&&void 0!==t.providers}function Sm(t,i){for(let e of t)mg(e)&&(e=e.\u0275providers),Array.isArray(e)?Sm(e,i):i(e)}const j5=fn({provide:String,useValue:fn});function Em(t){return null!==t&&"object"==typeof t&&j5 in t}function Qr(t){return"function"==typeof t}const Dm=new Ye("Set Injector scope."),dp={},$5={};let km;function pp(){return void 0===km&&(km=new wm),km}class po{}class Xa extends po{get destroyed(){return this._destroyed}constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Om(i,r=>this.processProvider(r)),this.records.set(xy,Ja(void 0,this)),o.has("environment")&&this.records.set(po,Ja(void 0,this));const s=this.records.get(Dm);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ay.multi,nn,zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of i)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const e=sr(this),n=Yi(void 0);try{return i()}finally{sr(e),Yi(n)}}get(i,e=oc,n=zt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(h1))return i[h1](this);n=xd(n);const s=sr(this),r=Yi(void 0);try{if(!(n&zt.SkipSelf)){let l=this.records.get(i);if(void 0===l){const c=function Q5(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ye}(i)&&Cd(i);l=c&&this.injectableDefInScope(c)?Ja(Mm(i),dp):null,this.records.set(i,l)}if(null!=l)return this.hydrate(i,l)}return(n&zt.Self?pp():this.parent).get(i,e=n&zt.Optional&&e===oc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[yd]=a[yd]||[]).unshift(ai(i)),s)throw a;return function G4(t,i,e,n){const o=t[yd];throw i[u1]&&o.unshift(i[u1]),t.message=function q4(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=ai(i);if(Array.isArray(i))o=i.map(ai).join(" -> ");else if("object"==typeof i){let s=[];for(let r in i)if(i.hasOwnProperty(r)){let a=i[r];s.push(r+":"+("string"==typeof a?JSON.stringify(a):ai(a)))}o=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(z4,"\n ")}`}("\n"+t.message,o,e,n),t.ngTokenPath=o,t[yd]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{Yi(r),sr(s)}}resolveInjectorInitializers(){const i=sr(this),e=Yi(void 0);try{const o=this.get(Mc.multi,nn,zt.Self);for(const s of o)s()}finally{sr(i),Yi(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(ai(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ae(205,!1)}processProvider(i){let e=Qr(i=vt(i))?i:vt(i&&i.provide);const n=function G5(t){return Em(t)?Ja(void 0,t.useValue):Ja(Dy(t),dp)}(i);if(Qr(i)||!0!==i.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=Ja(void 0,dp,!0),o.factory=()=>wg(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===dp&&(e.value=$5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=vt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){const e=this._onDestroyHooks.indexOf(i);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Mm(t){const i=Cd(t),e=null!==i?i.factory:Kr(t);if(null!==e)return e;if(t instanceof Ye)throw new Ae(204,!1);if(t instanceof Function)return function K5(t){const i=t.length;if(i>0)throw yc(i,"?"),new Ae(204,!1);const e=function N4(t){return t&&(t[bd]||t[r1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ae(204,!1)}function Dy(t,i,e){let n;if(Qr(t)){const o=vt(t);return Kr(o)||Mm(o)}if(Em(t))n=()=>vt(t.useValue);else if(function Ey(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...wg(t.deps||[]));else if(function Sy(t){return!(!t||!t.useExisting)}(t))n=()=>Ze(vt(t.useExisting));else{const o=vt(t&&(t.useClass||t.provide));if(!function q5(t){return!!t.deps}(t))return Kr(o)||Mm(o);n=()=>new o(...wg(t.deps))}return n}function Ja(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Om(t,i){for(const e of t)Array.isArray(e)?Om(e,i):e&&mg(e)?Om(e.\u0275providers,i):i(e)}const hp=new Ye("AppId",{providedIn:"root",factory:()=>Z5}),Z5="ng",ky=new Ye("Platform Initializer"),$n=new Ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),My=new Ye("AnimationModuleType"),Oy=new Ye("CSP nonce",{providedIn:"root",factory:()=>Za().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ly=(t,i,e)=>null;function Hm(t,i,e=!1){return Ly(t,i,e)}class rF{}class Ry{}class lF{resolveComponentFactory(i){throw function aF(t){const i=Error(`No component factory found for ${ai(t)}.`);return i.ngComponent=t,i}(i)}}let Cp=(()=>{class t{static#e=this.NULL=new lF}return t})();function cF(){return nl(_i(),Ne())}function nl(t,i){return new bt(Ji(t,i))}let bt=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=cF}return t})();function uF(t){return t instanceof bt?t.nativeElement:t}class Pc{}let hn=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function dF(){const t=Ne(),e=co(_i().index,t);return(Xi(e)?e:t)[At]}()}return t})(),pF=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>null})}return t})();class Fc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const hF=new Fc("16.2.12"),Um={};function zy(t,i=null,e=null,n){const o=jy(t,i,e,n);return o.resolveInjectorInitializers(),o}function jy(t,i=null,e=null,n,o=new Set){const s=[e||nn,z5(t)];return n=n||("object"==typeof t?void 0:ai(t)),new Xa(s,i||pp(),n||null,o)}let $i=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=oc;static#t=this.NULL=new wm;static create(e,n){if(Array.isArray(e))return zy({name:""},n,e,"");{const o=e.name??"";return zy({name:o},e.parent,e.providers,o)}}static#n=this.\u0275prov=nt({token:t,providedIn:"any",factory:()=>Ze(xy)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Km(t){return t.ngOriginalError}class Ps{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Km(i);for(;e&&Km(e);)e=Km(e);return e||null}}let vp=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=vF;static#t=this.__NG_ENV_ID__=e=>e}return t})();class CF extends vp{constructor(i){super(),this._lView=i}onDestroy(i){return J1(this._lView,i),()=>function LL(t,i){if(null===t[ar])return;const e=t[ar].indexOf(i);-1!==e&&t[ar].splice(e,1)}(this._lView,i)}}function vF(){return new CF(Ne())}function Gm(t){return i=>{setTimeout(t,void 0,i)}}const ge=class bF extends re{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let o=i,s=e||(()=>null),r=n;if(i&&"object"==typeof i){const l=i;o=l.next?.bind(l),s=l.error?.bind(l),r=l.complete?.bind(l)}this.__isAsync&&(s=Gm(s),o&&(o=Gm(o)),r&&(r=Gm(r)));const a=super.subscribe({next:o,error:s,complete:r});return i instanceof F&&i.add(a),a}};function $y(...t){}class Tt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),typeof Zone>"u")throw new Ae(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&e,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function yF(){const t="function"==typeof Tn.requestAnimationFrame;let i=Tn[t?"requestAnimationFrame":"setTimeout"],e=Tn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function wF(t){const i=()=>{!function AF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Wm(t),t.isCheckStableRunning=!0,qm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Wm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,o,s,r,a)=>{if(function SF(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(o,s,r,a);try{return Ky(t),e.invokeTask(o,s,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&i(),Gy(t)}},onInvoke:(e,n,o,s,r,a,l)=>{try{return Ky(t),e.invoke(o,s,r,a,l)}finally{t.shouldCoalesceRunChangeDetection&&i(),Gy(t)}},onHasTask:(e,n,o,s)=>{e.hasTask(o,s),n===o&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Wm(t),qm(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,o,s)=>(e.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tt.isInAngularZone())throw new Ae(909,!1)}static assertNotInAngularZone(){if(Tt.isInAngularZone())throw new Ae(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+o,i,xF,$y,$y);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const xF={};function qm(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Wm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ky(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gy(t){t._nesting--,qm(t)}class TF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ge,this.onMicrotaskEmpty=new ge,this.onStable=new ge,this.onError=new ge}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}}const qy=new Ye("",{providedIn:"root",factory:Wy});function Wy(){const t=et(Tt);let i=!0;return function S4(...t){const i=ic(t),e=function v4(t,i){return"number"==typeof pg(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Ni(n[0]):Ta(e)(ri(n,i)):es}(new ce(o=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(i),o.complete()})}),new ce(o=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,o.next(!0))})})});const r=t.onUnstable.subscribe(()=>{Tt.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),r.unsubscribe()}}).pipe(t1()))}function Qy(t){return t.ownerDocument}function Fs(t){return t instanceof Function?t():t}let Qm=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function Rc(t){for(;t;){t[kt]|=64;const i=wc(t);if(Og(t)&&!i)return t;t=i}return null}const ex=new Ye("",{providedIn:"root",factory:()=>!1});let yp=null;function ox(t,i){return t[i]??ax()}function sx(t,i){const e=ax();e.producerNode?.length&&(t[i]=yp,e.lView=t,yp=rx())}const RF={...kd,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Rc(t.lView)},lView:null};function rx(){return Object.create(RF)}function ax(){return yp??=rx(),yp}const St={};function h(t){lx(Yt(),Ne(),ji()+t,!1)}function lx(t,i,e,n){if(!n)if(3==(3&i[kt])){const s=t.preOrderCheckHooks;null!==s&&Vd(i,s,e)}else{const s=t.preOrderHooks;null!==s&&Bd(i,s,0,e)}Gr(e)}function V(t,i=zt.Default){const e=Ne();return null===e?Ze(t,i):bb(_i(),e,vt(t),i)}function xp(t,i,e,n,o,s,r,a,l,c,u){const p=i.blueprint.slice();return p[Un]=o,p[kt]=140|n,(null!==c||t&&2048&t[kt])&&(p[kt]|=2048),Z1(p),p[Fn]=p[Ma]=t,p[Zn]=e,p[ka]=r||t&&t[ka],p[At]=a||t&&t[At],p[rr]=l||t&&t[rr]||null,p[xi]=s,p[dc]=function UP(){return jP++}(),p[Es]=u,p[T1]=c,p[Yn]=2==i.type?t[Yn]:p,p}function sl(t,i,e,n,o){let s=t.data[i];if(null===s)s=function Zm(t,i,e,n,o){const s=nb(),r=Hg(),l=t.data[i]=function $F(t,i,e,n,o,s){let r=i?i.injectorIndex:-1,a=0;return Ra()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?s:s&&s.parent,e,i,n,o);return null===t.firstChild&&(t.firstChild=l),null!==s&&(r?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(t,i,e,n,o),function UL(){return It.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=n,s.attrs=o;const r=function mc(){const t=It.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();s.injectorIndex=null===r?-1:r.injectorIndex}return ss(s,!0),s}function Nc(t,i,e,n){if(0===e)return-1;const o=i.length;for(let s=0;sUt&&lx(t,i,Ut,!1),os(a?2:0,o);const c=a?s:null,u=Md(c);try{null!==c&&(c.dirty=!1),e(n,o)}finally{Od(c,u)}}finally{a&&null===i[pc]&&sx(i,pc),Gr(r),os(a?3:1,o)}}function Ym(t,i,e){if(Mg(i)){const n=So(null);try{const s=i.directiveEnd;for(let r=i.directiveStart;rnull;function hx(t,i,e,n){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const s=t[o];null===n?fx(e,i,o,s):n.hasOwnProperty(o)&&fx(e,i,n[o],s)}return e}function fx(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function ho(t,i,e,n,o,s,r,a){const l=Ji(i,e);let u,c=i.inputs;!a&&null!=c&&(u=c[n])?(s_(t,e,u,n,o),$r(i)&&function qF(t,i){const e=co(i,t);16&e[kt]||(e[kt]|=64)}(e,i.index)):3&i.type&&(n=function GF(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),o=null!=r?r(o,i.value||"",n):o,s.setProperty(l,n,o))}function t_(t,i,e,n){if(tb()){const o=null===n?null:{"":-1},s=function JF(t,i){const e=t.directiveRegistry;let n=null,o=null;if(e)for(let s=0;s0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(r)!=a&&r.push(a),r.push(e,n,s)}}(t,i,n,Nc(t,e,o.hostVars,St),o)}function as(t,i,e,n,o,s){const r=Ji(t,i);!function i_(t,i,e,n,o,s,r){if(null==s)t.removeAttribute(i,o,e);else{const a=null==r?xt(s):r(s,n||"",o);t.setAttribute(i,o,a,e)}}(i[At],r,s,t.value,e,n,o)}function sR(t,i,e,n,o,s){const r=s[i];if(null!==r)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,o){const s=typeof Zone>"u"?null:Zone.current,r=function bL(t,i,e){const n=Object.create(yL);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;const o=r=>{n.cleanupFn=r};return n.ref={notify:()=>P1(n),run:()=>{if(n.dirty=!1,n.hasRun&&!F1(n))return;n.hasRun=!0;const r=Md(n);try{n.cleanupFn(),n.cleanupFn=U1,n.fn(o)}finally{Od(n,r)}},cleanup:()=>n.cleanupFn()},n.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,s)},o);let a;this.all.add(r),r.notify();const l=()=>{r.cleanup(),a?.(),this.all.delete(r),this.queue.delete(r)};return a=n?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function a_(t,i){!i?.injector&&function $m(t){if(!a1()&&!function U4(){return Sa}())throw new Ae(-203,!1)}();const e=i?.injector??et($i),n=e.get(Ax),o=!0!==i?.manualCleanup?e.get(vp):null;return n.create(t,o,!!i?.allowSignalWrites)}function wp(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,s=0;if(null!==i)for(let r=0;r0){Sx(t,1);const o=e.components;null!==o&&Dx(t,o,1)}}function Dx(t,i,e){for(let n=0;n-1&&(ip(i,n),Kd(e,n))}this._attachedToViewContainer=!1}pm(this._lView[it],this._lView)}onDestroy(i){J1(this._lView,i)}markForCheck(){Rc(this._cdRefInjectingView||this._lView)}detach(){this._lView[kt]&=-129}reattach(){this._lView[kt]|=128}detectChanges(){Tp(this._lView[it],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function o5(t,i){Sc(t,i,i[At],2,null,null)}(this._lView[it],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ae(902,!1);this._appRef=i}}class hR extends Bc{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Tp(i[it],i,i[Zn],!1)}checkNoChanges(){}get context(){return null}}class kx extends Cp{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Zt(i);return new Hc(e,this.ngModule)}}function Mx(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class gR{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=xd(n);const o=this.injector.get(i,Um,n);return o!==Um||e===Um?o:this.parentInjector.get(i,e,n)}}class Hc extends Ry{get inputs(){const i=this.componentDef,e=i.inputTransforms,n=Mx(i.inputs);if(null!==e)for(const o of n)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return n}get outputs(){return Mx(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function iL(t){return t.map(nL).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,o){let s=(o=o||this.ngModule)instanceof po?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const r=s?new gR(i,s):i,a=r.get(Pc,null);if(null===a)throw new Ae(407,!1);const p={rendererFactory:a,sanitizer:r.get(pF,null),effectManager:r.get(Ax,null),afterRenderEventManager:r.get(Qm,null)},m=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=n?function BF(t,i,e,n){const s=n.get(ex,!1)||e===To.ShadowDom,r=t.selectRootElement(i,s);return function HF(t){px(t)}(r),r}(m,n,this.componentDef.encapsulation,r):np(m,_,function fR(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(_)),W=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let te=null;null!==b&&(te=Hm(b,r,!0));const fe=e_(0,null,null,1,0,null,null,null,null,null,null),Ce=xp(null,fe,null,W,null,null,p,m,r,null,te);let ve,ke;Kg(Ce);try{const Pe=this.componentDef;let $e,Ke=null;Pe.findHostDirectiveDefs?($e=[],Ke=new Map,Pe.findHostDirectiveDefs(Pe,$e,Ke),$e.push(Pe)):$e=[Pe];const pt=function _R(t,i){const e=t[it],n=Ut;return t[n]=i,sl(e,n,2,"#host",null)}(Ce,b),jt=function IR(t,i,e,n,o,s,r){const a=o[it];!function CR(t,i,e,n){for(const o of t)i.mergedAttrs=ac(i.mergedAttrs,o.hostAttrs);null!==i.mergedAttrs&&(wp(i,i.mergedAttrs,!0),null!==e&&uy(n,e,i))}(n,t,i,r);let l=null;null!==i&&(l=Hm(i,o[rr]));const c=s.rendererFactory.createRenderer(i,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const p=xp(o,dx(e),null,u,o[t.index],t,s,c,null,null,l);return a.firstCreatePass&&n_(a,t,n.length-1),Ap(o,p),o[t.index]=p}(pt,b,Pe,$e,Ce,p,m);ke=Q1(fe,Ut),b&&function bR(t,i,e,n){if(n)Eg(t,e,["ng-version",hF.full]);else{const{attrs:o,classes:s}=function oL(t){const i=[],e=[];let n=1,o=2;for(;n0&&cy(t,e,s.join(" "))}}(m,Pe,b,n),void 0!==e&&function yR(t,i,e){const n=t.projection=[];for(let o=0;o=0;n--){const o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=ac(o.hostAttrs,e=ac(e,o.hostAttrs))}}(n)}function Sp(t){return t===ts?{}:t===nn?[]:t}function wR(t,i){const e=t.viewQuery;t.viewQuery=e?(n,o)=>{i(n,o),e(n,o)}:i}function TR(t,i){const e=t.contentQueries;t.contentQueries=e?(n,o,s)=>{i(n,o,s),e(n,o,s)}:i}function SR(t,i){const e=t.hostBindings;t.hostBindings=e?(n,o)=>{i(n,o),e(n,o)}:i}function Rx(t){const i=t.inputConfig,e={};for(const n in i)if(i.hasOwnProperty(n)){const o=i[n];Array.isArray(o)&&o[2]&&(e[n]=o[2])}t.inputTransforms=e}function Ep(t){return!!l_(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function l_(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ls(t,i,e){return t[i]=e}function zc(t,i){return t[i]}function wi(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Zr(t,i,e,n){const o=wi(t,i,e);return wi(t,i+1,n)||o}function Dp(t,i,e,n,o){const s=Zr(t,i,e,n);return wi(t,i+2,o)||s}function Do(t,i,e,n,o,s){const r=Zr(t,i,e,n);return Zr(t,i+2,o,s)||r}function K(t,i,e,n){const o=Ne();return wi(o,Na(),i)&&(Yt(),as(zn(),o,t,i,e,n)),K}function al(t,i,e,n){return wi(t,Na(),e)?i+xt(e)+n:St}function ll(t,i,e,n,o,s){const a=Zr(t,function ks(){return It.lFrame.bindingIndex}(),e,o);return Ms(2),a?i+xt(e)+n+xt(o)+s:St}function g(t,i,e,n,o,s,r,a){const l=Ne(),c=Yt(),u=t+Ut,p=c.firstCreatePass?function XR(t,i,e,n,o,s,r,a,l){const c=i.consts,u=sl(i,t,4,r||null,cr(c,a));t_(i,e,u,cr(c,l)),Nd(i,u);const p=u.tView=e_(2,u,n,o,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return null!==i.queries&&(i.queries.template(i,u),p.queries=i.queries.embeddedTView(u)),u}(u,c,l,i,e,n,o,s,r):c.data[u];ss(p,!1);const m=Qx(c,l,p,t);Rd()&&sp(c,l,m,p),Ai(m,l),Ap(l,l[u]=Ix(m,l,m,p)),Ed(p)&&Xm(c,l,p),null!=r&&Jm(l,p,a)}let Qx=function Zx(t,i,e,n){return ur(!0),i[At].createComment("")};function Bt(t){return Fa(function jL(){return It.lFrame.contextLView}(),Ut+t)}function d(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!1),d}function f_(t,i,e,n,o){const r=o?"class":"style";s_(t,e,i.inputs[r],r,n)}function x(t,i,e,n){const o=Ne(),s=Yt(),r=Ut+t,a=o[At],l=s.firstCreatePass?function n6(t,i,e,n,o,s){const r=i.consts,l=sl(i,t,2,n,cr(r,o));return t_(i,e,l,cr(r,s)),null!==l.attrs&&wp(l,l.attrs,!1),null!==l.mergedAttrs&&wp(l,l.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,l),l}(r,s,o,i,e,n):s.data[r],c=Yx(s,o,l,a,i,t);o[r]=c;const u=Ed(l);return ss(l,!0),uy(a,c,l),32!=(32&l.flags)&&Rd()&&sp(s,o,c,l),0===function PL(){return It.lFrame.elementDepthCount}()&&Ai(c,o),function FL(){It.lFrame.elementDepthCount++}(),u&&(Xm(s,o,l),Ym(s,l,o)),null!==n&&Jm(o,l),x}function A(){let t=_i();Hg()?zg():(t=t.parent,ss(t,!1));const i=t;(function NL(t){return It.skipHydrationRootTNode===t})(i)&&function zL(){It.skipHydrationRootTNode=null}(),function RL(){It.lFrame.elementDepthCount--}();const e=Yt();return e.firstCreatePass&&(Nd(e,t),Mg(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function tP(t){return 0!=(8&t.flags)}(i)&&f_(e,i,Ne(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function nP(t){return 0!=(16&t.flags)}(i)&&f_(e,i,Ne(),i.stylesWithoutHost,!1),A}function le(t,i,e,n){return x(t,i,e,n),A(),le}let Yx=(t,i,e,n,o,s)=>(ur(!0),np(n,o,function pb(){return It.lFrame.currentNamespace}()));function we(t,i,e){const n=Ne(),o=Yt(),s=t+Ut,r=o.firstCreatePass?function r6(t,i,e,n,o){const s=i.consts,r=cr(s,n),a=sl(i,t,8,"ng-container",r);return null!==r&&wp(a,r,!0),t_(i,e,a,cr(s,o)),null!==i.queries&&i.queries.elementStart(i,a),a}(s,o,n,i,e):o.data[s];ss(r,!0);const a=Xx(o,n,r,t);return n[s]=a,Rd()&&sp(o,n,a,r),Ai(a,n),Ed(r)&&(Xm(o,n,r),Ym(o,r,n)),null!=e&&Jm(n,r),we}function Te(){let t=_i();const i=Yt();return Hg()?zg():(t=t.parent,ss(t,!1)),i.firstCreatePass&&(Nd(i,t),Mg(t)&&i.queries.elementEnd(t)),Te}function ze(t,i,e){return we(t,i,e),Te(),ze}let Xx=(t,i,e,n)=>(ur(!0),dm(i[At],""));function De(){return Ne()}function Kc(t){return!!t&&"function"==typeof t.then}function Jx(t){return!!t&&"function"==typeof t.subscribe}function me(t,i,e,n){const o=Ne(),s=Yt(),r=_i();return function tA(t,i,e,n,o,s,r){const a=Ed(n),c=t.firstCreatePass&&bx(t),u=i[Zn],p=vx(i);let m=!0;if(3&n.type||r){const E=Ji(n,i),P=r?r(E):E,W=p.length,te=r?Ce=>r(Sn(Ce[n.index])):n.index;let fe=null;if(!r&&a&&(fe=function c6(t,i,e,n){const o=t.cleanup;if(null!=o)for(let s=0;sl?a[l]:null}"string"==typeof r&&(s+=2)}return null}(t,i,o,n.index)),null!==fe)(fe.__ngLastListenerFn__||fe).__ngNextListenerFn__=s,fe.__ngLastListenerFn__=s,m=!1;else{s=iA(n,i,u,s,!1);const Ce=e.listen(P,o,s);p.push(s,Ce),c&&c.push(o,te,W,W+1)}}else s=iA(n,i,u,s,!1);const _=n.outputs;let b;if(m&&null!==_&&(b=_[o])){const E=b.length;if(E)for(let P=0;P-1?co(t.index,i):i);let l=nA(i,e,n,r),c=s.__ngNextListenerFn__;for(;c;)l=nA(i,e,c,r)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&r.preventDefault(),l}}function f(t=1){return function qL(t){return(It.lFrame.contextLView=function WL(t,i){for(;t>0;)i=i[Ma],t--;return i}(t,It.lFrame.contextLView))[Zn]}(t)}function u6(t,i){let e=null;const n=function X4(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let o=0;o>17&32767}function I_(t){return 2|t}function Yr(t){return(131068&t)>>2}function C_(t,i){return-131069&t|i<<2}function v_(t){return 1|t}function dA(t,i,e,n,o){const s=t[e+1],r=null===i;let a=n?fr(s):Yr(s),l=!1;for(;0!==a&&(!1===l||r);){const u=t[a+1];m6(t[a],i)&&(l=!0,t[a+1]=n?v_(u):I_(u)),a=n?fr(u):Yr(u)}l&&(t[e+1]=n?I_(s):v_(s))}function m6(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Ka(t,i)>=0}const ci={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pA(t){return t.substring(ci.key,ci.keyEnd)}function _6(t){return t.substring(ci.value,ci.valueEnd)}function hA(t,i){const e=ci.textEnd;return e===i?-1:(i=ci.keyEnd=function v6(t,i,e){for(;i32;)i++;return i}(t,ci.key=i,e),gl(t,i,e))}function fA(t,i){const e=ci.textEnd;let n=ci.key=gl(t,i,e);return e===n?-1:(n=ci.keyEnd=function b6(t,i,e){let n;for(;i=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=mA(t,n,e),n=ci.value=gl(t,n,e),n=ci.valueEnd=function y6(t,i,e){let n=-1,o=-1,s=-1,r=i,a=r;for(;r32&&(a=r),s=o,o=n,n=-33&l}return a}(t,n,e),mA(t,n,e))}function gA(t){ci.key=0,ci.keyEnd=0,ci.value=0,ci.valueEnd=0,ci.textEnd=t.length}function gl(t,i,e){for(;i=0;e=fA(i,e))vA(t,pA(i),_6(i))}function Ve(t){Uo(D6,cs,t,!0)}function cs(t,i){for(let e=function I6(t){return gA(t),hA(t,gl(t,0,ci.textEnd))}(i);e>=0;e=hA(i,e))uo(t,pA(i),!0)}function jo(t,i,e,n){const o=Ne(),s=Yt(),r=Ms(2);s.firstUpdatePass&&CA(s,t,r,n),i!==St&&wi(o,r,i)&&bA(s,s.data[ji()],o,o[At],t,o[r+1]=function M6(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ai(pr(t)))),t}(i,e),n,r)}function Uo(t,i,e,n){const o=Yt(),s=Ms(2);o.firstUpdatePass&&CA(o,null,s,n);const r=Ne();if(e!==St&&wi(r,s,e)){const a=o.data[ji()];if(xA(a,n)&&!IA(o,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=fg(l,e||"")),f_(o,a,r,e,n)}else!function k6(t,i,e,n,o,s,r,a){o===St&&(o=nn);let l=0,c=0,u=0=t.expandoStartIndex}function CA(t,i,e,n){const o=t.data;if(null===o[e+1]){const s=o[ji()],r=IA(t,e);xA(s,n)&&null===i&&!r&&(i=!1),i=function A6(t,i,e,n){const o=function Ug(t){const i=It.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let s=n?i.residualClasses:i.residualStyles;if(null===o)0===(n?i.classBindings:i.styleBindings)&&(e=Gc(e=b_(null,t,i,e,n),i.attrs,n),s=null);else{const r=i.directiveStylingLast;if(-1===r||t[r]!==o)if(e=b_(o,t,i,e,n),null===s){let l=function w6(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Yr(n))return t[fr(n)]}(t,i,n);void 0!==l&&Array.isArray(l)&&(l=b_(null,t,i,l[1],n),l=Gc(l,i.attrs,n),function T6(t,i,e,n){t[fr(e?i.classBindings:i.styleBindings)]=n}(t,i,n,l))}else s=function S6(t,i,e){let n;const o=i.directiveEnd;for(let s=1+i.directiveStylingLast;s0)&&(c=!0)):u=e,o)if(0!==l){const m=fr(t[a+1]);t[n+1]=Lp(m,a),0!==m&&(t[m+1]=C_(t[m+1],n)),t[a+1]=function p6(t,i){return 131071&t|i<<17}(t[a+1],n)}else t[n+1]=Lp(a,0),0!==a&&(t[a+1]=C_(t[a+1],n)),a=n;else t[n+1]=Lp(l,0),0===a?a=n:t[l+1]=C_(t[l+1],n),l=n;c&&(t[n+1]=I_(t[n+1])),dA(t,u,n,!0),dA(t,u,n,!1),function g6(t,i,e,n,o){const s=o?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof i&&Ka(s,i)>=0&&(e[n+1]=v_(e[n+1]))}(i,u,t,n,s),r=Lp(a,l),s?i.classBindings=r:i.styleBindings=r}(o,s,i,e,r,n)}}function b_(t,i,e,n,o){let s=null;const r=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let m=e[o+1];m===St&&(m=p?nn:void 0);let _=p?tm(m,n):u===n?m:void 0;if(c&&!Pp(_)&&(_=tm(l,n)),Pp(_)&&(a=_,r))return a;const b=t[o+1];o=r?fr(b):Yr(b)}if(null!==i){let l=s?i.residualClasses:i.residualStyles;null!=l&&(a=tm(l,n))}return a}function Pp(t){return void 0!==t}function xA(t,i){return 0!=(t.flags&(i?8:16))}function Le(t,i=""){const e=Ne(),n=Yt(),o=t+Ut,s=n.firstCreatePass?sl(n,o,1,i,null):n.data[o],r=AA(n,e,s,i,t);e[o]=r,Rd()&&sp(n,e,r,s),ss(s,!1)}let AA=(t,i,e,n,o)=>(ur(!0),function tp(t,i){return t.createText(i)}(i[At],n));function dt(t){return Pt("",t,""),dt}function Pt(t,i,e){const n=Ne(),o=al(n,t,i,e);return o!==St&&Rs(n,ji(),o),Pt}function Fp(t,i,e,n,o){const s=Ne(),r=ll(s,t,i,e,n,o);return r!==St&&Rs(s,ji(),r),Fp}function y_(t,i,e){Uo(uo,cs,al(Ne(),t,i,e),!0)}function x_(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!0),x_}const Xr=void 0;var X6=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Y6(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ml={};function Ki(t){const i=function J6(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=UA(i);if(e)return e;const n=i.split("-")[0];if(e=UA(n),e)return e;if("en"===n)return X6;throw new Ae(701,!1)}function UA(t){return t in ml||(ml[t]=Tn.ng&&Tn.ng.common&&Tn.ng.common.locales&&Tn.ng.common.locales[t]),ml[t]}var En=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(En||{});const _l="en-US";let $A=_l;function T_(t,i,e,n,o){if(t=vt(t),Array.isArray(t))for(let s=0;s>20;if(Qr(t)||!t.multi){const _=new _c(c,o,V),b=E_(l,i,o?u:u+m,p);-1===b?(Xg(zd(a,r),s,l),S_(s,t,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(_),r.push(_)):(e[b]=_,r[b]=_)}else{const _=E_(l,i,u+m,p),b=E_(l,i,u,u+m),P=b>=0&&e[b];if(o&&!P||!o&&!(_>=0&&e[_])){Xg(zd(a,r),s,l);const W=function X9(t,i,e,n,o){const s=new _c(t,e,V);return s.multi=[],s.index=i,s.componentProviders=0,gw(s,o,n&&!e),s}(o?Y9:Z9,e.length,o,n,c);!o&&P&&(e[b].providerFactory=W),S_(s,t,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(W),r.push(W)}else S_(s,t,_>-1?_:b,gw(e[o?b:_],c,!o&&n));!o&&n&&P&&e[b].componentProviders++}}}function S_(t,i,e,n){const o=Qr(i),s=function U5(t){return!!t.useClass}(i);if(o||s){const l=(s?vt(i.useClass):i).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){const u=c.indexOf(e);-1===u?c.push(e,[n,l]):c[u+1].push(n,l)}else c.push(e,l)}}}function gw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function E_(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>function Q9(t,i,e){const n=Yt();if(n.firstCreatePass){const o=zo(t);T_(e,n.data,n.blueprint,o,!0),T_(i,n.data,n.blueprint,o,!1)}}(n,o?o(t):t,i)}}class Jr{}class mw{}class k_ extends Jr{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kx(this);const o=lo(i);this._bootstrapComponents=Fs(o.bootstrap),this._r3Injector=jy(i,e,[{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver},...n],ai(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class M_ extends mw{constructor(i){super(),this.moduleType=i}create(i){return new k_(this.moduleType,i,[])}}class _w extends Jr{constructor(i){super(),this.componentFactoryResolver=new kx(this),this.instance=null;const e=new Xa([...i.providers,{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver}],i.parent||pp(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function O_(t,i,e=null){return new _w({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}let t7=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=wy(0,e.type),o=n.length>0?O_([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=nt({token:t,providedIn:"environment",factory:()=>new t(Ze(po))})}return t})();function Et(t){t.getStandaloneInjector=i=>i.get(t7).getOrCreateStandaloneInjector(t)}function Jt(t,i,e){const n=zi()+t,o=Ne();return o[n]===St?ls(o,n,e?i.call(e):i()):zc(o,n)}function He(t,i,e,n){return function ww(t,i,e,n,o,s){const r=i+e;return wi(t,r,o)?ls(t,r+1,s?n.call(s,o):n(o)):Xc(t,r+1)}(Ne(),zi(),t,i,e,n)}function mt(t,i,e,n,o){return Tw(Ne(),zi(),t,i,e,n,o)}function Rn(t,i,e,n,o,s){return function Sw(t,i,e,n,o,s,r,a){const l=i+e;return Dp(t,l,o,s,r)?ls(t,l+3,a?n.call(a,o,s,r):n(o,s,r)):Xc(t,l+3)}(Ne(),zi(),t,i,e,n,o,s)}function gr(t,i,e,n,o,s,r){return function Ew(t,i,e,n,o,s,r,a,l){const c=i+e;return Do(t,c,o,s,r,a)?ls(t,c+4,l?n.call(l,o,s,r,a):n(o,s,r,a)):Xc(t,c+4)}(Ne(),zi(),t,i,e,n,o,s,r)}function Hp(t,i,e,n,o,s,r,a){const l=zi()+t,c=Ne(),u=Do(c,l,e,n,o,s);return wi(c,l+4,r)||u?ls(c,l+5,a?i.call(a,e,n,o,s,r):i(e,n,o,s,r)):zc(c,l+5)}function ea(t,i,e,n,o,s,r,a,l){const c=zi()+t,u=Ne(),p=Do(u,c,e,n,o,s);return Zr(u,c+4,r,a)||p?ls(u,c+6,l?i.call(l,e,n,o,s,r,a):i(e,n,o,s,r,a)):zc(u,c+6)}function zp(t,i,e,n){return function Dw(t,i,e,n,o,s){let r=i+e,a=!1;for(let l=0;l=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];const s=n.factory||(n.factory=Kr(n.type)),a=Yi(V);try{const l=Hd(!1),c=s();return Hd(l),function t6(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,Ne(),o,c),c}finally{Yi(a)}}function Cl(t,i,e,n){const o=t+Ut,s=Ne(),r=Fa(s,o);return function Jc(t,i){return t[it].data[i].pure}(s,o)?Tw(s,zi(),i,r.transform,e,n,r):r.transform(e,n)}function _7(){return this._results[Symbol.iterator]()}class P_{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new ge)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=P_.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_7)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const o=function Eo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function mP(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n0&&(e[o-1][Ho]=i),n{class t{static#e=this.__NG_ELEMENT_ID__=y7}return t})();const v7=$o,b7=class extends v7{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){const o=function I7(t,i,e,n){const o=i.tView,a=xp(t,o,e,4096&t[kt]?4096:16,null,i,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[uc]=t[i.index];const c=t[ns];return null!==c&&(a[ns]=c.createEmbeddedView(o)),r_(o,a,e),a}(this._declarationLView,this._declarationTContainer,i,{injector:e,hydrationInfo:n});return new Bc(o)}};function y7(){return jp(_i(),Ne())}function jp(t,i){return 4&t.type?new b7(i,t,nl(t,i)):null}let go=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=E7}return t})();function E7(){return Rw(_i(),Ne())}const D7=go,Pw=class extends D7{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return nl(this._hostTNode,this._hostLView)}get injector(){return new Ui(this._hostTNode,this._hostLView)}get parentInjector(){const i=jd(this._hostTNode,this._hostLView);if(Qg(i)){const e=Cc(i,this._hostLView),n=Ic(i);return new Ui(e[it].data[n+8],e)}return new Ui(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=Fw(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-gi}createEmbeddedView(i,e,n){let o,s;"number"==typeof n?o=n:null!=n&&(o=n.index,s=n.injector);const a=i.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(a,o,false),a}createComponent(i,e,n,o,s){const r=i&&!function bc(t){return"function"==typeof t}(i);let a;if(r)a=e;else{const E=e||{};a=E.index,n=E.injector,o=E.projectableNodes,s=E.environmentInjector||E.ngModuleRef}const l=r?i:new Hc(Zt(i)),c=n||this.parentInjector;if(!s&&null==l.ngModule){const P=(r?c:this.parentInjector).get(po,null);P&&(s=P)}Zt(l.componentType??{});const _=l.create(c,o,null,s);return this.insertImpl(_.hostView,a,false),_}insert(i,e){return this.insertImpl(i,e,!1)}insertImpl(i,e,n){const o=i._lView;if(function ML(t){return Hi(t[Fn])}(o)){const l=this.indexOf(i);if(-1!==l)this.detach(l);else{const c=o[Fn],u=new Pw(c,c[xi],c[Fn]);u.detach(u.indexOf(i))}}const r=this._adjustIndex(e),a=this._lContainer;return C7(a,o,r,!n),i.attachToViewContainerRef(),Sb(F_(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=Fw(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);n&&(Kd(F_(this._lContainer),e),pm(n[it],n))}detach(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);return n&&null!=Kd(F_(this._lContainer),e)?new Bc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Fw(t){return t[8]}function F_(t){return t[8]||(t[8]=[])}function Rw(t,i){let e;const n=i[t.index];return Hi(n)?e=n:(e=Ix(n,i,null,t),i[t.index]=e,Ap(i,e)),Nw(e,i,t,n),new Pw(e,t,i)}let Nw=function Vw(t,i,e,n){if(t[is])return;let o;o=8&e.type?Sn(n):function k7(t,i){const e=t[At],n=e.createComment(""),o=Ji(i,t);return Wr(e,op(e,o),n,function d5(t,i){return t.nextSibling(i)}(e,o),!1),n}(i,e),t[is]=o};class R_{constructor(i){this.queryList=i,this.matches=null}clone(){return new R_(this.queryList)}setDirty(){this.queryList.setDirty()}}class N_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,o=[];for(let s=0;s0)n.push(r[a/2]);else{const c=s[a+1],u=i[-l];for(let p=gi;p{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=et(G_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const s=o();if(Kc(s))e.push(s);else if(Jx(s)){const r=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(r)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),a2=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const us=new Ye("LocaleId",{providedIn:"root",factory:()=>et(us,zt.Optional|zt.SkipSelf)||function sN(){return typeof $localize<"u"&&$localize.locale||_l}()});let Kp=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xo(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class lN{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let l2=(()=>{class t{compileModuleSync(e){return new M_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=Fs(lo(e).declarations).reduce((r,a)=>{const l=Zt(a);return l&&r.push(new Hc(l)),r},[]);return new lN(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const p2=new Ye(""),qp=new Ye("");let X_,Z_=(()=>{class t{constructor(e,n,o){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,X_||(function kN(t){X_=t}(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:o})}whenStable(e,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Tt),Ze(Y_),Ze(qp))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),Y_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return X_?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),mr=null;const h2=new Ye("AllowMultipleToken"),J_=new Ye("PlatformDestroyListeners"),e0=new Ye("appBootstrapListener");class g2{constructor(i,e){this.name=i,this.token=e}}function _2(t,i,e=[]){const n=`Platform: ${i}`,o=new Ye(n);return(s=[])=>{let r=t0();if(!r||r.injector.get(h2,!1)){const a=[...e,...s,{provide:o,useValue:!0}];t?t(a):function LN(t){if(mr&&!mr.get(h2,!1))throw new Ae(400,!1);(function f2(){!function mL(t){B1=t}(()=>{throw new Ae(600,!1)})})(),mr=t;const i=t.get(C2);(function m2(t){t.get(ky,null)?.forEach(e=>e())})(t)}(function I2(t=[],i){return $i.create({name:i,providers:[{provide:Dm,useValue:"platform"},{provide:J_,useValue:new Set([()=>mr=null])},...t]})}(a,n))}return function FN(t){const i=t0();if(!i)throw new Ae(401,!1);return i}()}}function t0(){return mr?.get(C2)??null}let C2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const o=function RN(t="zone.js",i){return"noop"===t?new TF:"zone.js"===t?new Tt(i):t}(n?.ngZone,function v2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{const s=function e7(t,i,e){return new k_(t,i,e)}(e.moduleType,this.injector,function w2(t){return[{provide:Tt,useFactory:t},{provide:Mc,multi:!0,useFactory:()=>{const i=et(VN,{optional:!0});return()=>i.initialize()}},{provide:A2,useFactory:NN},{provide:qy,useFactory:Wy}]}(()=>o)),r=s.injector.get(Ps,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{r.handleError(l)}});s.onDestroy(()=>{Wp(this._modules,s),a.unsubscribe()})}),function b2(t,i,e){try{const n=e();return Kc(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(r,o,()=>{const a=s.injector.get(q_);return a.runInitializers(),a.donePromise.then(()=>(function KA(t){wo(t,"Expected localeId to be defined"),"string"==typeof t&&($A=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(us,_l)||_l),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const o=y2({},n);return function MN(t,i,e){const n=new M_(e);return Promise.resolve(n)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(e){const n=e.injector.get(ta);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>n.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Ae(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ae(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(J_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(Ze($i))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function y2(t,i){return Array.isArray(i)?i.reduce(y2,t):{...t,...i}}let ta=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=et(A2),this.zoneIsStable=et(qy),this.componentTypes=[],this.components=[],this.isStable=et(Kp).hasPendingTasks.pipe(Ao(e=>e?ht(!1):this.zoneIsStable),function E4(t,i=_e){return t=t??D4,Me((e,n)=>{let o,s=!0;e.subscribe(Ue(n,r=>{const a=i(r);(s||!t(o,a))&&(s=!1,o=a,n.next(r))}))})}(),t1()),this._injector=et(po)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const o=e instanceof Ry;if(!this._injector.get(q_).done)throw!o&&function Ea(t){const i=Zt(t)||fi(t)||Bi(t);return null!==i&&i.standalone}(e),new Ae(405,!1);let r;r=o?e:this._injector.get(Cp).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const a=function ON(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Jr),c=r.create($i.NULL,[],n||r.selector,a),u=c.location.nativeElement,p=c.injector.get(p2,null);return p?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Wp(this.components,c),p?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ae(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Wp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(e0,[]);n.push(...this._bootstrapListeners),n.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Wp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ae(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const A2=new Ye("",{providedIn:"root",factory:()=>et(Ps).handleError.bind(void 0)});function NN(){const t=et(Tt),i=et(Ps);return e=>t.runOutsideAngular(()=>i.handleError(e))}let VN=(()=>{class t{constructor(){this.zone=et(Tt),this.applicationRef=et(ta)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let Ft=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=HN}return t})();function HN(t){return function zN(t,i,e){if($r(t)&&!e){const n=co(t.index,i);return new Bc(n,n)}return 47&t.type?new Bc(i[Yn],i):null}(_i(),Ne(),16==(16&t))}class D2{constructor(){}supports(i){return Ep(i)}create(i){return new qN(i)}}const GN=(t,i)=>i;class qN{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||GN}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,a,r,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,r,o),n=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,s,o)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,s,o)):i=this._addAfter(new WN(e,n),s,o),i}_verifyReinsertion(i,e,n,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?i=this._reinsertAfter(s,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const o=i._prevRemoved,s=i._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const o=null===e?this._itHead:e._next;return i._next=o,i._prev=e,null===o?this._itTail=i:o._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new k2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new k2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class WN{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class QN{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class k2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new QN,this.map.set(e,n)),n.add(i)}get(i,e){const o=this.map.get(i);return o?o.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function M2(t,i,e){const n=t.previousIndex;if(null===n)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const o=this._records.get(i);this._maybeAddToChanges(o,e);const s=o._prev,r=o._next;return s&&(s._next=r),r&&(r._prev=s),o._next=null,o._prev=null,o}const n=new YN(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class YN{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function L2(){return new Yp([new D2])}let Yp=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:L2});constructor(e){this.factories=e}static create(e,n){if(null!=n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||L2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(null!=n)return n;throw new Ae(901,!1)}}return t})();function P2(){return new yl([new O2])}let yl=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:P2});constructor(e){this.factories=e}static create(e,n){if(n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||P2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new Ae(901,!1)}}return t})();const e8=_2(null,"core",[]);let t8=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ta))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function xl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let l0=null;function _r(){return l0}class m8{}const Wt=new Ye("DocumentToken");let c0=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(I8)},providedIn:"platform"})}return t})();const _8=new Ye("Location Initialized");let I8=(()=>{class t extends c0{constructor(){super(),this._doc=et(Wt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function u0(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function U2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ns(t){return t&&"?"!==t[0]?"?"+t:t}let Ir=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(K2)},providedIn:"root"})}return t})();const $2=new Ye("appBaseHref");let K2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??et(Wt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return u0(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Ns(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=u0(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),d0=(()=>{class t{constructor(e){this._subject=new ge,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function b8(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(U2(q2(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Ns(n))}normalize(e){return t.stripTrailingSlash(function v8(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,q2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n,complete:o})}static#e=this.normalizeQueryParams=Ns;static#t=this.joinWithSlash=u0;static#n=this.stripTrailingSlash=U2;static#i=this.\u0275fac=function(n){return new(n||t)(Ze(Ir))};static#o=this.\u0275prov=nt({token:t,factory:function(){return function C8(){return new d0(Ze(Ir))}()},providedIn:"root"})}return t})();function q2(t){return t.replace(/\/index.html$/,"")}var qi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(qi||{}),xn=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(xn||{}),mo=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(mo||{}),Xn=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(Xn||{});function eh(t,i){return Mo(Ki(t)[En.DateFormat],i)}function th(t,i){return Mo(Ki(t)[En.TimeFormat],i)}function nh(t,i){return Mo(Ki(t)[En.DateTimeFormat],i)}function ko(t,i){const e=Ki(t),n=e[En.NumberSymbols][i];if(typeof n>"u"){if(i===Xn.CurrencyDecimal)return e[En.NumberSymbols][Xn.Decimal];if(i===Xn.CurrencyGroup)return e[En.NumberSymbols][Xn.Group]}return n}function Q2(t){if(!t[En.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[En.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Mo(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function h0(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const F8=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nu={},R8=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Vs=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Vs||{}),ln=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ln||{}),cn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(cn||{});function N8(t,i,e,n){let o=function G8(t){if(X2(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,s=1,r=1]=t.split("-").map(a=>+a);return ih(o,s-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(F8))return function q8(t){const i=new Date(0);let e=0,n=0;const o=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-e,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,r,a,l,c),i}(n)}const i=new Date(t);if(!X2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Bs(e,i)||i;let a,r=[];for(;i;){if(a=R8.exec(i),!a){r.push(i);break}{r=r.concat(a.slice(1));const u=r.pop();if(!u)break;i=u}}let l=o.getTimezoneOffset();n&&(l=Y2(n,l),o=function K8(t,i,e){const n=e?-1:1,o=t.getTimezoneOffset();return function $8(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(Y2(i,o)-o))}(o,n,!0));let c="";return r.forEach(u=>{const p=function U8(t){if(g0[t])return g0[t];let i;switch(t){case"G":case"GG":case"GGG":i=Dn(cn.Eras,xn.Abbreviated);break;case"GGGG":i=Dn(cn.Eras,xn.Wide);break;case"GGGGG":i=Dn(cn.Eras,xn.Narrow);break;case"y":i=ii(ln.FullYear,1,0,!1,!0);break;case"yy":i=ii(ln.FullYear,2,0,!0,!0);break;case"yyy":i=ii(ln.FullYear,3,0,!1,!0);break;case"yyyy":i=ii(ln.FullYear,4,0,!1,!0);break;case"Y":i=ah(1);break;case"YY":i=ah(2,!0);break;case"YYY":i=ah(3);break;case"YYYY":i=ah(4);break;case"M":case"L":i=ii(ln.Month,1,1);break;case"MM":case"LL":i=ii(ln.Month,2,1);break;case"MMM":i=Dn(cn.Months,xn.Abbreviated);break;case"MMMM":i=Dn(cn.Months,xn.Wide);break;case"MMMMM":i=Dn(cn.Months,xn.Narrow);break;case"LLL":i=Dn(cn.Months,xn.Abbreviated,qi.Standalone);break;case"LLLL":i=Dn(cn.Months,xn.Wide,qi.Standalone);break;case"LLLLL":i=Dn(cn.Months,xn.Narrow,qi.Standalone);break;case"w":i=f0(1);break;case"ww":i=f0(2);break;case"W":i=f0(1,!0);break;case"d":i=ii(ln.Date,1);break;case"dd":i=ii(ln.Date,2);break;case"c":case"cc":i=ii(ln.Day,1);break;case"ccc":i=Dn(cn.Days,xn.Abbreviated,qi.Standalone);break;case"cccc":i=Dn(cn.Days,xn.Wide,qi.Standalone);break;case"ccccc":i=Dn(cn.Days,xn.Narrow,qi.Standalone);break;case"cccccc":i=Dn(cn.Days,xn.Short,qi.Standalone);break;case"E":case"EE":case"EEE":i=Dn(cn.Days,xn.Abbreviated);break;case"EEEE":i=Dn(cn.Days,xn.Wide);break;case"EEEEE":i=Dn(cn.Days,xn.Narrow);break;case"EEEEEE":i=Dn(cn.Days,xn.Short);break;case"a":case"aa":case"aaa":i=Dn(cn.DayPeriods,xn.Abbreviated);break;case"aaaa":i=Dn(cn.DayPeriods,xn.Wide);break;case"aaaaa":i=Dn(cn.DayPeriods,xn.Narrow);break;case"b":case"bb":case"bbb":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Standalone,!0);break;case"bbbb":i=Dn(cn.DayPeriods,xn.Wide,qi.Standalone,!0);break;case"bbbbb":i=Dn(cn.DayPeriods,xn.Narrow,qi.Standalone,!0);break;case"B":case"BB":case"BBB":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Format,!0);break;case"BBBB":i=Dn(cn.DayPeriods,xn.Wide,qi.Format,!0);break;case"BBBBB":i=Dn(cn.DayPeriods,xn.Narrow,qi.Format,!0);break;case"h":i=ii(ln.Hours,1,-12);break;case"hh":i=ii(ln.Hours,2,-12);break;case"H":i=ii(ln.Hours,1);break;case"HH":i=ii(ln.Hours,2);break;case"m":i=ii(ln.Minutes,1);break;case"mm":i=ii(ln.Minutes,2);break;case"s":i=ii(ln.Seconds,1);break;case"ss":i=ii(ln.Seconds,2);break;case"S":i=ii(ln.FractionalSeconds,1);break;case"SS":i=ii(ln.FractionalSeconds,2);break;case"SSS":i=ii(ln.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=sh(Vs.Short);break;case"ZZZZZ":i=sh(Vs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=sh(Vs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=sh(Vs.Long);break;default:return null}return g0[t]=i,i}(u);c+=p?p(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ih(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Bs(t,i){const e=function x8(t){return Ki(t)[En.LocaleId]}(t);if(nu[e]=nu[e]||{},nu[e][i])return nu[e][i];let n="";switch(i){case"shortDate":n=eh(t,mo.Short);break;case"mediumDate":n=eh(t,mo.Medium);break;case"longDate":n=eh(t,mo.Long);break;case"fullDate":n=eh(t,mo.Full);break;case"shortTime":n=th(t,mo.Short);break;case"mediumTime":n=th(t,mo.Medium);break;case"longTime":n=th(t,mo.Long);break;case"fullTime":n=th(t,mo.Full);break;case"short":const o=Bs(t,"shortTime"),s=Bs(t,"shortDate");n=oh(nh(t,mo.Short),[o,s]);break;case"medium":const r=Bs(t,"mediumTime"),a=Bs(t,"mediumDate");n=oh(nh(t,mo.Medium),[r,a]);break;case"long":const l=Bs(t,"longTime"),c=Bs(t,"longDate");n=oh(nh(t,mo.Long),[l,c]);break;case"full":const u=Bs(t,"fullTime"),p=Bs(t,"fullDate");n=oh(nh(t,mo.Full),[u,p])}return n&&(nu[e][i]=n),n}function oh(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Ko(t,i,e="-",n,o){let s="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,s=e));let r=String(t);for(;r.length0||a>-e)&&(a+=e),t===ln.Hours)0===a&&-12===e&&(a=12);else if(t===ln.FractionalSeconds)return function V8(t,i){return Ko(t,3).substring(0,i)}(a,i);const l=ko(r,Xn.MinusSign);return Ko(a,i,l,n,o)}}function Dn(t,i,e=qi.Format,n=!1){return function(o,s){return function H8(t,i,e,n,o,s){switch(e){case cn.Months:return function T8(t,i,e){const n=Ki(t),s=Mo([n[En.MonthsFormat],n[En.MonthsStandalone]],i);return Mo(s,e)}(i,o,n)[t.getMonth()];case cn.Days:return function w8(t,i,e){const n=Ki(t),s=Mo([n[En.DaysFormat],n[En.DaysStandalone]],i);return Mo(s,e)}(i,o,n)[t.getDay()];case cn.DayPeriods:const r=t.getHours(),a=t.getMinutes();if(s){const c=function k8(t){const i=Ki(t);return Q2(i),(i[En.ExtraData][2]||[]).map(n=>"string"==typeof n?h0(n):[h0(n[0]),h0(n[1])])}(i),u=function M8(t,i,e){const n=Ki(t);Q2(n);const s=Mo([n[En.ExtraData][0],n[En.ExtraData][1]],i)||[];return Mo(s,e)||[]}(i,o,n),p=c.findIndex(m=>{if(Array.isArray(m)){const[_,b]=m,E=r>=_.hours&&a>=_.minutes,P=r0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Vs.Short:return(o>=0?"+":"")+Ko(r,2,s)+Ko(Math.abs(o%60),2,s);case Vs.ShortGMT:return"GMT"+(o>=0?"+":"")+Ko(r,1,s);case Vs.Long:return"GMT"+(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);case Vs.Extended:return 0===n?"Z":(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const z8=0,rh=4;function Z2(t){return ih(t.getFullYear(),t.getMonth(),t.getDate()+(rh-t.getDay()))}function f0(t,i=!1){return function(e,n){let o;if(i){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,r=e.getDate();o=1+Math.floor((r+s)/7)}else{const s=Z2(e),r=function j8(t){const i=ih(t,z8,1).getDay();return ih(t,0,1+(i<=rh?rh:rh+7)-i)}(s.getFullYear()),a=s.getTime()-r.getTime();o=1+Math.round(a/6048e5)}return Ko(o,t,ko(n,Xn.MinusSign))}}function ah(t,i=!1){return function(e,n){return Ko(Z2(e).getFullYear(),t,ko(n,Xn.MinusSign),i)}}const g0={};function Y2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function X2(t){return t instanceof Date&&!isNaN(t.valueOf())}function nT(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[o,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(s)}return null}const b0=/\s+/,iT=[];let Ct=(()=>{class t{constructor(e,n,o,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=o,this._renderer=s,this.initialClasses=iT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(b0):iT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(b0):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(b0).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(n){return new(n||t)(V(Yp),V(yl),V(bt),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class rV{constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((o,s,r)=>{if(null==o.previousIndex)n.createEmbeddedView(this._template,new rV(o.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===s?void 0:s);else if(null!==s){const a=n.get(s);n.move(a,r),sT(a,o)}});for(let o=0,s=n.length;o{sT(n.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(Yp))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function sT(t,i){t.context.$implicit=i.item}let gt=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new aV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rT("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class aV{constructor(){this.$implicit=null,this.ngIf=null}}function rT(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ai(i)}'.`)}class y0{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let wl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),ch=(()=>{class t{constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new y0(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),x0=(()=>{class t{constructor(e,n,o){o._addDefault(new y0(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),Ht=(()=>{class t{constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[o,s]=e.split("."),r=-1===o.indexOf("-")?void 0:dr.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,r):this._renderer.removeStyle(this._ngEl.nativeElement,o,r)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(V(bt),V(yl),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),on=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:r}=this;this._viewRef=n.createEmbeddedView(o,s,r?{injector:r}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(V(go))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]})}return t})();const CV=new Ye("DATE_PIPE_DEFAULT_TIMEZONE"),vV=new Ye("DATE_PIPE_DEFAULT_OPTIONS");let Hs=(()=>{class t{constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,s){if(null==e||""===e||e!=e)return null;try{return N8(e,n??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(r){throw function Go(t,i){return new Ae(2100,!1)}()}}static#e=this.\u0275fac=function(n){return new(n||t)(V(us,16),V(CV,24),V(vV,24))};static#t=this.\u0275pipe=Vi({name:"date",type:t,pure:!0,standalone:!0})}return t})(),Xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();const cT="browser";function ei(t){return t===cT}function uT(t){return"server"===t}let LV=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new PV(Ze(Wt),window)})}return t})();class PV{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function FV(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=n.currentNode;for(;o;){const s=o.shadowRoot;if(s){const r=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(r)return r}o=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],o-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class dT{}class oB extends m8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class E0 extends oB{static makeCurrent(){!function g8(t){l0||(l0=t)}(new E0)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function sB(){return su=su||document.querySelector("base"),su?su.getAttribute("href"):null}();return null==e?null:function rB(t){ph=ph||document.createElement("a"),ph.setAttribute("href",t);const i=ph.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return nT(document.cookie,i)}}let ph,su=null,lB=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const D0=new Ye("EventManagerPlugins");let mT=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,o){return this._findPluginFor(n).addEventListener(e,n,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new Ae(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(D0),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class _T{constructor(i){this._doc=i}}const k0="ng-app-id";let IT=(()=>{class t{constructor(e,n,o,s={}){this.doc=e,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uT(s),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(o=>o.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${k0}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(o=>{null!=o.textContent&&n.set(o.textContent,o)}),n}return null}changeUsageCount(e,n){const o=this.styleRef;if(o.has(e)){const s=o.get(e);return s.usage+=n,s.usage}return o.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===e)return o.delete(n),s.removeAttribute(k0),s;{const r=this.doc.createElement("style");return this.nonce&&r.setAttribute("nonce",this.nonce),r.textContent=n,this.platformIsServer&&r.setAttribute(k0,this.appId),r}}addStyleToHost(e,n){const o=this.getStyleElement(e,n);e.appendChild(o);const s=this.styleRef,r=s.get(n)?.elements;r?r.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(hp),Ze(Oy,8),Ze($n))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const M0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},O0=/%COMP%/g,pB=new Ye("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vT(t,i){return i.map(e=>e.replace(O0,t))}let L0=(()=>{class t{constructor(e,n,o,s,r,a,l,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=r,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uT(a),this.defaultRenderer=new P0(e,r,l,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===To.ShadowDom&&(n={...n,encapsulation:To.Emulated});const o=this.getOrCreateRenderer(e,n);return o instanceof yT?o.applyToHost(e):o instanceof F0&&o.applyStyles(),o}getOrCreateRenderer(e,n){const o=this.rendererByCompId;let s=o.get(n.id);if(!s){const r=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case To.Emulated:s=new yT(l,c,n,this.appId,u,r,a,p);break;case To.ShadowDom:return new mB(l,c,e,n,r,a,this.nonce,p);default:s=new F0(l,c,n,u,r,a,p)}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(mT),Ze(IT),Ze(hp),Ze(pB),Ze(Wt),Ze($n),Ze(Tt),Ze(Oy))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class P0{constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(M0[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(bT(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(bT(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?this.doc.querySelector(i):i;if(!n)throw new Ae(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;const s=M0[o];s?i.setAttributeNS(s,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const o=M0[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(dr.DashCase|dr.Important)?i.style.setProperty(e,n,o&dr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&dr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){if("string"==typeof i&&!(i=_r().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if("__ngUnwrap__"===e)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))&&e.preventDefault()}}}function bT(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class mB extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vT(o.id,o.styles);for(const u of c){const p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class F0 extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?vT(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class yT extends F0{constructor(i,e,n,o,s,r,a,l){const c=o+"-"+n.id;super(i,e,n,s,r,a,l,c),this.contentAttr=function hB(t){return"_ngcontent-%COMP%".replace(O0,t)}(c),this.hostAttr=function fB(t){return"_nghost-%COMP%".replace(O0,t)}(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let _B=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o){return e.addEventListener(n,o,!1),()=>this.removeEventListener(e,n,o)}removeEventListener(e,n,o){return e.removeEventListener(n,o)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const xT=["alt","control","meta","shift"],IB={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let vB=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,o){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(n.pop());let r="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),r="code."),xT.forEach(c=>{const u=n.indexOf(c);u>-1&&(n.splice(u,1),r+=c+".")}),r+=s,0!=n.length||0===s.length)return null;const l={};return l.domEventName=o,l.fullKey=r,l}static matchEventFullKeyCode(e,n){let o=IB[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(o=e.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),xT.forEach(r=>{r!==o&&(0,CB[r])(e)&&(s+=r+".")}),s+=o,s===n)}static eventCallback(e,n,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const AB=_2(e8,"browser",[{provide:$n,useValue:cT},{provide:ky,useValue:function bB(){E0.makeCurrent()},multi:!0},{provide:Wt,useFactory:function xB(){return function C5(t){Cm=t}(document),document},deps:[]}]),wB=new Ye(""),TT=[{provide:qp,useClass:class aB{addToWindow(i){Tn.getAngularTestability=(n,o=!0)=>{const s=i.findTestabilityInTree(n,o);if(null==s)throw new Ae(5103,!1);return s},Tn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Tn.getAllAngularRootElements=()=>i.getAllRootElements(),Tn.frameworkStabilizers||(Tn.frameworkStabilizers=[]),Tn.frameworkStabilizers.push(n=>{const o=Tn.getAllAngularTestabilities();let s=o.length,r=!1;const a=function(l){r=r||l,s--,0==s&&n(r)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:p2,useClass:Z_,deps:[Tt,Y_,qp]},{provide:Z_,useClass:Z_,deps:[Tt,Y_,qp]}],ST=[{provide:Dm,useValue:"root"},{provide:Ps,useFactory:function yB(){return new Ps},deps:[]},{provide:D0,useClass:_B,multi:!0,deps:[Wt,Tt,$n]},{provide:D0,useClass:vB,multi:!0,deps:[Wt]},L0,IT,mT,{provide:Pc,useExisting:L0},{provide:dT,useClass:lB,deps:[]},[]];let R0=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:hp,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wB,12))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[...ST,...TT],imports:[Xe,t8]})}return t})(),ET=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:function(n){let o=null;return o=n?new n:function SB(){return new ET(Ze(Wt))}(),o},providedIn:"root"})}return t})();typeof window<"u"&&window;const{isArray:OB}=Array,{getPrototypeOf:LB,prototype:PB,keys:FB}=Object;function OT(t){if(1===t.length){const i=t[0];if(OB(i))return{args:i,keys:null};if(function RB(t){return t&&"object"==typeof t&&LB(t)===PB}(i)){const e=FB(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:NB}=Array;function V0(t){return at(i=>function VB(t,i){return NB(i)?t(...i):t(i)}(t,i))}function LT(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}let PT=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt))};static#t=this.\u0275dir=ut({type:t})}return t})(),ia=(()=>{class t extends PT{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275dir=ut({type:t,features:[st]})}return t})();const un=new Ye("NgValueAccessor"),zB={provide:un,useExisting:ft(()=>B0),multi:!0},UB=new Ye("CompositionEventMode");let B0=(()=>{class t extends PT{constructor(e,n,o){super(e,n),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jB(){const t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt),V(UB,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){1&n&&me("input",function(r){return o._handleInput(r.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(r){return o._compositionEnd(r.target.value)})},features:[yt([zB]),st]})}return t})();const Si=new Ye("NgValidators"),br=new Ye("NgAsyncValidators");function KT(t){return null!=t}function GT(t){return Kc(t)?ri(t):t}function qT(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function WT(t,i){return i.map(e=>e(t))}function QT(t){return t.map(i=>function KB(t){return!t.validate}(i)?i:e=>i.validate(e))}function H0(t){return null!=t?function ZT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return qT(WT(e,i))}}(QT(t)):null}function z0(t){return null!=t?function YT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return function BB(...t){const i=Yv(t),{args:e,keys:n}=OT(t),o=new ce(s=>{const{length:r}=e;if(!r)return void s.complete();const a=new Array(r);let l=r,c=r;for(let u=0;u{p||(p=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!p)&&(c||s.next(n?LT(n,a):a),s.complete())}))}});return i?o.pipe(V0(i)):o}(WT(e,i).map(GT)).pipe(at(qT))}}(QT(t)):null}function XT(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function j0(t){return t?Array.isArray(t)?t:[t]:[]}function fh(t,i){return Array.isArray(t)?t.includes(i):t===i}function tS(t,i){const e=j0(i);return j0(t).forEach(o=>{fh(e,o)||e.push(o)}),e}function nS(t,i){return j0(i).filter(e=>!fh(t,e))}class iS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=H0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=z0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Wi extends iS{get formDirective(){return null}get path(){return null}}class ds extends iS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oS{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let sS=(()=>{class t extends oS{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(ds,2))};static#t=this.\u0275dir=ut({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){2&n&&Ii("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[st]})}return t})();const ru="VALID",mh="INVALID",Tl="PENDING",au="DISABLED";function _h(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class cS{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===ru}get invalid(){return this.status===mh}get pending(){return this.status==Tl}get disabled(){return this.status===au}get enabled(){return this.status!==au}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(tS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(tS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(nS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(nS(i,this._rawAsyncValidators))}hasValidator(i){return fh(this._rawValidators,i)}hasAsyncValidator(i){return fh(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tl,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=au,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=ru,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ru||this.status===Tl)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?au:ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tl,this._hasOwnPendingAsyncValidator=!0;const e=GT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?au:this.errors?mh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tl)?Tl:this._anyControlsHaveStatus(mh)?mh:ru}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){_h(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function ZB(t){return Array.isArray(t)?H0(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function YB(t){return Array.isArray(t)?z0(t):t||null}(this._rawAsyncValidators)}}const Sl=new Ye("CallSetDisabledState",{providedIn:"root",factory:()=>Ih}),Ih="always";function lu(t,i,e=Ih){(function W0(t,i){const e=function JT(t){return t._rawValidators}(t);null!==i.validator?t.setValidators(XT(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=function eS(t){return t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(XT(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const o=()=>t.updateValueAndValidity();bh(i._rawValidators,o),bh(i._rawAsyncValidators,o)})(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function eH(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&uS(t,i)})}(t,i),function nH(t,i){const e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function tH(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&uS(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function JB(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function bh(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function uS(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function hS(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function fS(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const gS=class extends cS{constructor(i=null,e,n){super(function K0(t){return(_h(t)?t.validators:t)||null}(e),function G0(t,i){return(_h(i)?i.asyncValidators:t)||null}(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_h(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=fS(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){hS(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){hS(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){fS(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},uH={provide:ds,useExisting:ft(()=>xh)},IS=(()=>Promise.resolve())();let xh=(()=>{class t extends ds{constructor(e,n,o,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this.control=new gS,this._registered=!1,this.name="",this.update=new ge,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=function Y0(t,i){if(!i)return null;let e,n,o;return Array.isArray(i),i.forEach(s=>{s.constructor===B0?e=s:function sH(t){return Object.getPrototypeOf(t.constructor)===ia}(s)?n=s:o=s}),o||n||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Z0(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){IS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,o=0!==n&&xl(n);IS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Ch(t,i){return[...i.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi,9),V(Si,10),V(br,10),V(un,10),V(Ft,8),V(Sl,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([uH]),st,Hn]})}return t})(),vS=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})(),FH=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[vS]})}return t})(),uu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sl,useValue:e.callSetDisabledState??Ih}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[FH]})}return t})();function El(t,i){return L(i)?si(t,i,1):si(t,1)}function zs(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>t.call(i,s,o++)&&n.next(s)))})}function du(t){return Me((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}class Ah{}class wh{}class qo{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const o=e.slice(0,n),s=o.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof qo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const o=("a"===i.op?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":const s=i.value;if(s){let r=this.headers.get(e);if(!r)return;r=r.filter(a=>-1===s.indexOf(a)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(i,e){const n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class NH{encodeKey(i){return VS(i)}encodeValue(i){return VS(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const BH=/%(\d[a-f0-9])/gi,HH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VS(t){return encodeURIComponent(t).replace(BH,(i,e)=>HH[e]??i)}function Th(t){return`${t}`}class yr{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new NH,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function VH(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[r,a]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],l=e.get(r)||[];l.push(a),e.set(r,l)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],o=Array.isArray(n)?n.map(Th):[Th(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new yr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Th(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(Th(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class zH{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function BS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function HS(t){return typeof Blob<"u"&&t instanceof Blob}function zS(t){return typeof FormData<"u"&&t instanceof FormData}class pu{constructor(i,e,n,o){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function jH(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qo),this.context||(this.context=new zH),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ap.set(m,i.setHeaders[m]),l)),i.setParams&&(c=Object.keys(i.setParams).reduce((p,m)=>p.set(m,i.setParams[m]),c)),new pu(e,n,s,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:r})}}var Dl=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Dl||{});class sI{constructor(i,e=200,n="OK"){this.headers=i.headers||new qo,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class rI extends sI{constructor(i={}){super(i),this.type=Dl.ResponseHeader}clone(i={}){return new rI({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class kl extends sI{constructor(i={}){super(i),this.type=Dl.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new kl({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class jS extends sI{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function aI(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let lI=(()=>{class t{constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof pu)s=e;else{let l,c;l=o.headers instanceof qo?o.headers:new qo(o.headers),o.params&&(c=o.params instanceof yr?o.params:new yr({fromObject:o.params})),s=new pu(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const r=ht(s).pipe(El(l=>this.handler.handle(l)));if(e instanceof pu||"events"===o.observe)return r;const a=r.pipe(zs(l=>l instanceof kl));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(at(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(at(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new yr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,aI(o,n))}post(e,n,o={}){return this.request("POST",e,aI(o,n))}put(e,n,o={}){return this.request("PUT",e,aI(o,n))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Ah))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function KS(t,i){return i(t)}function KH(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}const qH=new Ye(""),hu=new Ye(""),GS=new Ye("");function WH(){let t=null;return(i,e)=>{null===t&&(t=(et(qH,{optional:!0})??[]).reduceRight(KH,KS));const n=et(Kp),o=n.add();return t(i,e).pipe(du(()=>n.remove(o)))}}let qS=(()=>{class t extends Ah{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=et(Kp)}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(hu),...this.injector.get(GS,[])]));this.chain=o.reduceRight((s,r)=>function GH(t,i,e){return(n,o)=>e.runInContext(()=>i(n,s=>t(s,o)))}(s,r,this.injector),KS)}const n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(du(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wh),Ze(po))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const XH=/^\)\]\}',?\n/;let QS=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Ae(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?ri(n.\u0275loadImpl()):ht(null)).pipe(Ao(()=>new ce(s=>{const r=n.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((E,P)=>r.setRequestHeader(E,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&r.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();r.responseType="json"!==E?E:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const E=r.statusText||"OK",P=new qo(r.getAllResponseHeaders()),W=function JH(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new rI({headers:P,status:r.status,statusText:E,url:W}),l},u=()=>{let{headers:E,status:P,statusText:W,url:te}=c(),fe=null;204!==P&&(fe=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=fe?200:0);let Ce=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof fe){const ve=fe;fe=fe.replace(XH,"");try{fe=""!==fe?JSON.parse(fe):null}catch(ke){fe=ve,Ce&&(Ce=!1,fe={error:ke,text:fe})}}Ce?(s.next(new kl({body:fe,headers:E,status:P,statusText:W,url:te||void 0})),s.complete()):s.error(new jS({error:fe,headers:E,status:P,statusText:W,url:te||void 0}))},p=E=>{const{url:P}=c(),W=new jS({error:E,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});s.error(W)};let m=!1;const _=E=>{m||(s.next(c()),m=!0);let P={type:Dl.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),s.next(P)},b=E=>{let P={type:Dl.UploadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),s.next(P)};return r.addEventListener("load",u),r.addEventListener("error",p),r.addEventListener("timeout",p),r.addEventListener("abort",p),e.reportProgress&&(r.addEventListener("progress",_),null!==a&&r.upload&&r.upload.addEventListener("progress",b)),r.send(a),s.next({type:Dl.Sent}),()=>{r.removeEventListener("error",p),r.removeEventListener("abort",p),r.removeEventListener("load",u),r.removeEventListener("timeout",p),e.reportProgress&&(r.removeEventListener("progress",_),null!==a&&r.upload&&r.upload.removeEventListener("progress",b)),r.readyState!==r.DONE&&r.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(dT))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const cI=new Ye("XSRF_ENABLED"),ZS=new Ye("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),YS=new Ye("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class XS{}let nz=(()=>{class t{constructor(e,n,o){this.doc=e,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=nT(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze($n),Ze(ZS))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function iz(t,i){const e=t.url.toLowerCase();if(!et(cI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=et(XS).getToken(),o=et(YS);return null!=n&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var xr=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(xr||{});function oz(...t){const i=[lI,QS,qS,{provide:Ah,useExisting:qS},{provide:wh,useExisting:QS},{provide:hu,useValue:iz,multi:!0},{provide:cI,useValue:!0},{provide:XS,useClass:nz}];for(const e of t)i.push(...e.\u0275providers);return function Tm(t){return{\u0275providers:t}}(i)}const JS=new Ye("LEGACY_INTERCEPTOR_FN");function sz(){return function sa(t,i){return{\u0275kind:t,\u0275providers:i}}(xr.LegacyInterceptors,[{provide:JS,useFactory:WH},{provide:hu,useExisting:JS,multi:!0}])}let eE=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[oz(sz())]})}return t})();class tE{}class dz{}const js="*";function Oo(t,i){return{type:7,name:t,definitions:i,options:{}}}function On(t,i=null){return{type:4,styles:i,timings:t}}function nE(t,i=null){return{type:2,steps:t,options:i}}function en(t){return{type:6,styles:t,offset:null}}function Us(t,i,e){return{type:0,name:t,styles:i,options:e}}function Ln(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ml(t,i=null){return{type:8,animation:t,options:i}}function Eh(t,i=null){return{type:10,animation:t,options:i}}class fu{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class iE{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,o=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==s&&this._onFinish()}),r.onDestroy(()=>{++n==s&&this._onDestroy()}),r.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function oE(t){return new Ae(3e3,!1)}function Ar(t){switch(t.length){case 0:return new fu;case 1:return t[0];default:return new iE(t)}}function sE(t,i,e=new Map,n=new Map){const o=[],s=[];let r=-1,a=null;if(i.forEach(l=>{const c=l.get("offset"),u=c==r,p=u&&a||new Map;l.forEach((m,_)=>{let b=_,E=m;if("offset"!==_)switch(b=t.normalizePropertyName(b,o),E){case"!":E=e.get(_);break;case js:E=n.get(_);break;default:E=t.normalizeStyleValue(_,b,E,o)}p.set(b,E)}),u||s.push(p),a=p,r=c}),o.length)throw function Pz(t){return new Ae(3502,!1)}();return s}function dI(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&pI(e,"start",t)));break;case"done":t.onDone(()=>n(e&&pI(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&pI(e,"destroy",t)))}}function pI(t,i,e){const s=hI(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),r=t._data;return null!=r&&(s._data=r),s}function hI(t,i,e,n,o="",s=0,r){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:s,disabled:!!r}}function _o(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function rE(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}const Gz=(()=>typeof document>"u"?null:document.documentElement)();function fI(t){const i=t.parentNode||t.host||null;return i===Gz?null:i}let ra=null,aE=!1;function lE(t,i){for(;i;){if(i===t)return!0;i=fI(i)}return!1}function cE(t,i,e){if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]}let uE=(()=>{class t{validateStyleProperty(e){return function Wz(t){ra||(ra=function Qz(){return typeof document<"u"?document.body:null}()||{},aE=!!ra.style&&"WebkitAppearance"in ra.style);let i=!0;return ra.style&&!function qz(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in ra.style,!i&&aE&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in ra.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return lE(e,n)}getParentElement(e){return fI(e)}query(e,n,o){return cE(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,s,r,a=[],l){return new fu(o,s)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),gI=(()=>{class t{static#e=this.NOOP=new uE}return t})();const Zz=1e3,mI="ng-enter",Dh="ng-leave",kh="ng-trigger",Mh=".ng-trigger",pE="ng-animating",_I=".ng-animating";function $s(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:II(parseFloat(i[1]),i[2])}function II(t,i){return"s"===i?t*Zz:t}function Oh(t,i,e){return t.hasOwnProperty("duration")?t:function Xz(t,i,e){let o,s=0,r="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return i.push(oE()),{duration:0,delay:0,easing:""};o=II(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=II(parseFloat(l),a[4]));const c=a[5];c&&(r=c)}else o=t;if(!e){let a=!1,l=i.length;o<0&&(i.push(function pz(){return new Ae(3100,!1)}()),a=!0),s<0&&(i.push(function hz(){return new Ae(3101,!1)}()),a=!0),a&&i.splice(l,0,oE())}return{duration:o,delay:s,easing:r}}(t,i,e)}function gu(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function hE(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function wr(t,i=new Map,e){if(e)for(let[n,o]of e)i.set(n,o);for(let[n,o]of t)i.set(n,o);return i}function ps(t,i,e){i.forEach((n,o)=>{const s=vI(o);e&&!e.has(o)&&e.set(o,t.style[s]),t.style[s]=n})}function aa(t,i){i.forEach((e,n)=>{const o=vI(n);t.style[o]=""})}function mu(t){return Array.isArray(t)?1==t.length?t[0]:nE(t):t}const CI=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(t){let i=[];if("string"==typeof t){let e;for(;e=CI.exec(t);)i.push(e[1]);CI.lastIndex=0}return i}function _u(t,i,e){const n=t.toString(),o=n.replace(CI,(s,r)=>{let a=i[r];return null==a&&(e.push(function gz(t){return new Ae(3003,!1)}()),a=""),a.toString()});return o==n?t:o}function Lh(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const tj=/-+([a-z0-9])/g;function vI(t){return t.replace(tj,(...i)=>i[1].toUpperCase())}function Io(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function mz(t){return new Ae(3004,!1)}()}}function mE(t,i){return window.getComputedStyle(t)[i]}const Ph="*";function oj(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function sj(t,i,e){if(":"==t[0]){const l=function rj(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof l)return void i.push(l);t=l}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function Dz(t){return new Ae(3015,!1)}()),i;const o=n[1],s=n[2],r=n[3];i.push(_E(o,r));"<"==s[0]&&!(o==Ph&&r==Ph)&&i.push(_E(r,o))}(n,e,i)):e.push(t),e}const Fh=new Set(["true","1"]),Rh=new Set(["false","0"]);function _E(t,i){const e=Fh.has(t)||Rh.has(t),n=Fh.has(i)||Rh.has(i);return(o,s)=>{let r=t==Ph||t==o,a=i==Ph||i==s;return!r&&e&&"boolean"==typeof o&&(r=o?Fh.has(t):Rh.has(t)),!a&&n&&"boolean"==typeof s&&(a=s?Fh.has(i):Rh.has(i)),r&&a}}const aj=new RegExp("s*:selfs*,?","g");function bI(t,i,e,n){return new lj(t).build(i,e,n)}class lj{constructor(i){this._driver=i}build(i,e,n){const o=new dj(e);return this._resetContextStyleTimingState(o),Io(this,mu(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0;const s=[],r=[];return"@"==i.name.charAt(0)&&e.errors.push(function Iz(){return new Ae(3006,!1)}()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,o+=l.depCount,r.push(l)}else e.errors.push(function Cz(){return new Ae(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:r,queryCount:n,depCount:o,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{gE(l).forEach(c=>{r.hasOwnProperty(c)||s.add(c)})})}),s.size&&(Lh(s.values()),e.errors.push(function vz(t,i){return new Ae(3008,!1)}()))}return{type:0,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=Io(this,mu(i.animation),e);return{type:1,matchers:oj(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:la(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>Io(this,n,e)),options:la(i.options)}}visitGroup(i,e){const n=e.currentTime;let o=0;const s=i.steps.map(r=>{e.currentTime=n;const a=Io(this,r,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:s,options:la(i.options)}}visitAnimate(i,e){const n=function hj(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return yI(Oh(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=yI(0,0,"");return s.dynamic=!0,s.strValue=e,s}const o=Oh(e,i);return yI(o.duration,o.delay,o.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let o,s=i.styles?i.styles:en({});if(5==s.type)o=this.visitKeyframes(s,e);else{let r=i.styles,a=!1;if(!r){a=!0;const c={};n.easing&&(c.easing=n.easing),r=en(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(r,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of o)"string"==typeof a?a===js?n.push(a):e.errors.push(new Ae(3002,!1)):n.push(hE(a));let s=!1,r=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(r=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let o=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),i.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let p=!0;u&&(s!=o&&s>=u.startTime&&o<=u.endTime&&(e.errors.push(function yz(t,i,e,n,o){return new Ae(3010,!1)}()),p=!1),s=u.startTime),p&&c.set(l,{startTime:s,endTime:o}),e.options&&function ej(t,i,e){const n=i.params||{},o=gE(t);o.length&&o.forEach(s=>{n.hasOwnProperty(s)||e.push(function fz(t){return new Ae(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function xz(){return new Ae(3011,!1)}()),n;let s=0;const r=[];let a=!1,l=!1,c=0;const u=i.steps.map(W=>{const te=this._makeStyleAst(W,e);let fe=null!=te.offset?te.offset:function pj(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(te.styles),Ce=0;return null!=fe&&(s++,Ce=te.offset=fe),l=l||Ce<0||Ce>1,a=a||Ce0&&s{const fe=m>0?te==_?1:m*te:r[te],Ce=fe*P;e.currentTime=b+E.delay+Ce,E.duration=Ce,this._validateStyleAst(W,e),W.offset=fe,n.styles.push(W)}),n}visitReference(i,e){return{type:8,animation:Io(this,mu(i.animation),e),options:la(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:la(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:la(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;const[s,r]=function cj(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(aj,"")),t=t.replace(/@\*/g,Mh).replace(/@\w+/g,e=>Mh+"-"+e.slice(1)).replace(/:animating/g,_I),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+s:s,_o(e.collectedStyles,e.currentQuerySelector,new Map);const a=Io(this,mu(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:r,animation:a,originalSelector:i.selector,options:la(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Sz(){return new Ae(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Oh(i.timings,e.errors,!0);return{type:12,animation:Io(this,mu(i.animation),e),timings:n,options:null}}}class dj{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function la(t){return t?(t=gu(t)).params&&(t.params=function uj(t){return t?gu(t):null}(t.params)):t={},t}function yI(t,i,e){return{duration:t,delay:i,easing:e}}function xI(t,i,e,n,o,s,r=null,a=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:s,totalTime:o+s,easing:r,subTimeline:a}}class Nh{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const mj=new RegExp(":enter","g"),Ij=new RegExp(":leave","g");function AI(t,i,e,n,o,s=new Map,r=new Map,a,l,c=[]){return(new Cj).buildKeyframes(t,i,e,n,o,s,r,a,l,c)}class Cj{buildKeyframes(i,e,n,o,s,r,a,l,c,u=[]){c=c||new Nh;const p=new wI(i,e,c,o,s,u,[]);p.options=l;const m=l.delay?$s(l.delay):0;p.currentTimeline.delayNextStep(m),p.currentTimeline.setStyles([r],null,p.errors,l),Io(this,n,p);const _=p.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let E=_.length-1;E>=0;E--){const P=_[E];if(P.element===e){b=P;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,p.errors,l)}return _.length?_.map(b=>b.buildKeyframes()):[xI(e,[],[],[],0,m,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const o=e.createSubContext(i.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const o of i){const s=o?.delay;if(s){const r="number"==typeof s?s:$s(_u(s,o?.params??{},e.errors));n.delayNextStep(r)}}}_visitSubInstructions(i,e,n){let s=e.currentTimeline.currentTime;const r=null!=n.duration?$s(n.duration):null,a=null!=n.delay?$s(n.delay):null;return 0!==r&&i.forEach(l=>{const c=e.appendInstructionToTimeline(l,r,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(i,e){e.updateOptions(i.options,!0),Io(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let o=e;const s=i.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Vh);const r=$s(s.delay);o.delayNextStep(r)}i.steps.length&&(i.steps.forEach(r=>Io(this,r,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let o=e.currentTimeline.currentTime;const s=i.options&&i.options.delay?$s(i.options.delay):0;i.steps.forEach(r=>{const a=e.createSubContext(i.options);s&&a.delayNextStep(s),Io(this,r,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return Oh(e.params?_u(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();const s=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(s):n.setStyles(i.styles,s,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,o=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,i.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+s),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,o=i.options||{},s=o.delay?$s(o.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vh);let r=n;const a=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const p=e.createSubContext(i.options,c);s&&p.delayNextStep(s),c===e.element&&(l=p.currentTimeline),Io(this,i.animation,p),p.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,p.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,o=e.currentTimeline,s=i.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let l=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const p=u.currentTime;Io(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-p+(o.startTime-n.currentTimeline.startTime)}}const Vh={};class wI{constructor(i,e,n,o,s,r,a,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let o=this.options;null!=n.duration&&(o.duration=$s(n.duration)),null!=n.delay&&(o.delay=$s(n.delay));const s=n.params;if(s){let r=o.params;r||(r=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=_u(s[a],r,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){const o=e||this.element,s=new wI(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=Vh,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},s=new vj(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,s,r){let a=[];if(o&&a.push(this.element),i.length>0){i=(i=i.replace(mj,"."+this._enterClassName)).replace(Ij,"."+this._leaveClassName);let c=this._driver.query(this.element,i,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&0==a.length&&r.push(function Ez(t){return new Ae(3014,!1)}()),a}}class Bh{constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Bh(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||js),this._currentKeyframe.set(e,js);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},r=function bj(t,i){const e=new Map;let n;return t.forEach(o=>{if("*"===o){n=n||i.keys();for(let s of n)e.set(s,js)}else wr(o,e)}),e}(i,this._globalTimelineStyles);for(let[a,l]of r){const c=_u(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??js),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=wr(a,new Map,this._backFill);c.forEach((u,p)=>{"!"===u?i.add(p):u===js&&e.add(p)}),n||c.set("offset",l/this.duration),o.push(c)});const s=i.size?Lh(i.values()):[],r=e.size?Lh(e.values()):[];if(n){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return xI(this.element,o,s,r,this.duration,this.startTime,this.easing,!1)}}class vj extends Bh{constructor(i,e,n,o,s,r,a=!1){super(i,e,r.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,a=e/r,l=wr(i[0]);l.set("offset",0),s.push(l);const c=wr(i[0]);c.set("offset",vE(a)),s.push(c);const u=i.length-1;for(let p=1;p<=u;p++){let m=wr(i[p]);const _=m.get("offset");m.set("offset",vE((e+_*n)/r)),s.push(m)}n=r,e=0,o="",i=s}return xI(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}}function vE(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class TI{}const yj=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 xj extends TI{normalizePropertyName(i,e){return vI(i)}normalizeStyleValue(i,e,n,o){let s="";const r=n.toString().trim();if(yj.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function _z(t,i){return new Ae(3005,!1)}())}return r+s}}function bE(t,i,e,n,o,s,r,a,l,c,u,p,m){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:s,toState:n,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:m}}const SI={};class yE{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return function Aj(t,i,e,n,o){return t.some(s=>s(i,e,n,o))}(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return void 0!==i&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,s,r,a,l,c,u){const p=[],m=this.ast.options&&this.ast.options.params||SI,b=this.buildStyles(n,a&&a.params||SI,p),E=l&&l.params||SI,P=this.buildStyles(o,E,p),W=new Set,te=new Map,fe=new Map,Ce="void"===o,ve={params:wj(E,m),delay:this.ast.options?.delay},ke=u?[]:AI(i,e,this.ast.animation,s,r,b,P,ve,c,p);let Pe=0;if(ke.forEach(Ke=>{Pe=Math.max(Ke.duration+Ke.delay,Pe)}),p.length)return bE(e,this._triggerName,n,o,Ce,b,P,[],[],te,fe,Pe,p);ke.forEach(Ke=>{const pt=Ke.element,jt=_o(te,pt,new Set);Ke.preStyleProps.forEach(vn=>jt.add(vn));const Vt=_o(fe,pt,new Set);Ke.postStyleProps.forEach(vn=>Vt.add(vn)),pt!==e&&W.add(pt)});const $e=Lh(W.values());return bE(e,this._triggerName,n,o,Ce,b,P,ke,$e,te,fe,Pe)}}function wj(t,i){const e=gu(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class Tj{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,o=gu(this.defaultParams);return Object.keys(i).forEach(s=>{const r=i[s];null!==r&&(o[s]=r)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((r,a)=>{r&&(r=_u(r,o,e));const l=this.normalizer.normalizePropertyName(a,e);r=this.normalizer.normalizeStyleValue(a,l,r,e),n.set(a,r)})}),n}}class Ej{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new Tj(o.style,o.options&&o.options.params||{},n))}),xE(this.states,"true","1"),xE(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new yE(i,o,this.states))}),this.fallbackTransition=function Dj(t,i,e){return new yE(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,a)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(r=>r.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function xE(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const kj=new Nh;class Mj{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],s=bI(this._driver,e,n,[]);if(n.length)throw function Fz(t){return new Ae(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,e,n){const o=i.element,s=sE(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,s,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const o=[],s=this._animations.get(i);let r;const a=new Map;if(s?(r=AI(this._driver,e,s,mI,Dh,new Map,new Map,n,kj,o),r.forEach(u=>{const p=_o(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(o.push(function Rz(){return new Ae(3300,!1)}()),r=[]),o.length)throw function Nz(t){return new Ae(3504,!1)}();a.forEach((u,p)=>{u.forEach((m,_)=>{u.set(_,this._driver.computeStyle(p,_,js))})});const c=Ar(r.map(u=>{const p=a.get(u.element);return this._buildPlayer(u,new Map,p)}));return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function Vz(t){return new Ae(3301,!1)}();return e}listen(i,e,n,o){const s=hI(e,"","","");return dI(this._getPlayer(i),n,s,o),()=>{}}command(i,e,n,o){if("register"==n)return void this.register(i,o[0]);if("create"==n)return void this.create(i,e,o[0]||{});const s=this._getPlayer(i);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i)}}}const AE="ng-animate-queued",EI="ng-animate-disabled",Rj=[],wE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wo="__ng_removed";class DI{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function zj(t){return t??null}(n?i.value:i),n){const s=gu(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(o=>{null==n[o]&&(n[o]=e[o])})}}}const Iu="void",kI=new DI(Iu);class Vj{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Lo(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw function Bz(t,i){return new Ae(3302,!1)}();if(null==n||0==n.length)throw function Hz(t){return new Ae(3303,!1)}();if(!function jj(t){return"start"==t||"done"==t}(n))throw function zz(t,i){return new Ae(3400,!1)}();const s=_o(this._elementListeners,i,[]),r={name:e,phase:n,callback:o};s.push(r);const a=_o(this._engine.statesByElement,i,new Map);return a.has(e)||(Lo(i,kh),Lo(i,kh+"-"+e),a.set(e,kI)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(r);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function jz(t){return new Ae(3401,!1)}();return e}trigger(i,e,n,o=!0){const s=this._getTrigger(e),r=new MI(this.id,e,i);let a=this._engine.statesByElement.get(i);a||(Lo(i,kh),Lo(i,kh+"-"+e),this._engine.statesByElement.set(i,a=new Map));let l=a.get(e);const c=new DI(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=kI),c.value!==Iu&&l.value===c.value){if(!function Kj(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let o=0;o{aa(i,P),ps(i,W)})}return}const m=_o(this._engine.playersByElement,i,[]);m.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let _=s.matchTransition(l.value,c.value,i,c.params),b=!1;if(!_){if(!o)return;_=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:_,fromState:l,toState:c,player:r,isFallbackTransition:b}),b||(Lo(i,AE),r.onStart(()=>{Ol(i,AE)})),r.onDone(()=>{let E=this.players.indexOf(r);E>=0&&this.players.splice(E,1);const P=this._engine.playersByElement.get(i);if(P){let W=P.indexOf(r);W>=0&&P.splice(W,1)}}),this.players.push(r),m.push(r),r}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,Mh,!0);n.forEach(o=>{if(o[Wo])return;const s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(r=>r.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){const s=this._engine.statesByElement.get(i),r=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){const u=this.trigger(i,c,Iu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,r),n&&Ar(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const o=new Set;e.forEach(s=>{const r=s.name;if(o.has(r))return;o.add(r);const l=this._triggers.get(r).fallbackTransition,c=n.get(r)||kI,u=new DI(Iu),p=new MI(this.id,r,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:r,transition:l,fromState:c,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(i):[];if(s&&s.length)o=!0;else{let r=i;for(;r=r.parentNode;)if(n.statesByElement.get(r)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{const s=i[Wo];(!s||s===wE)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Lo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const o=n.player;if(o.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(a=>{if(a.name==n.triggerName){const l=hI(s,n.triggerName,n.fromState.value,n.toState.value);l._data=i,dI(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{const s=n.transition.ast.depCount,r=o.transition.ast.depCount;return 0==s||0==r?s-r:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class Bj{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Vj(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,i),r=!0;break}a=this.driver.getParentElement(a)}r||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);const o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let o of n.values())if(o.namespaceId){const s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}return e}trigger(i,e,n,o){if(Hh(e)){const s=this._fetchNamespace(i);if(s)return s.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Hh(e))return;const s=e[Wo];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(i){const r=this._fetchNamespace(i);r&&r.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Lo(i,EI)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Ol(i,EI))}removeNode(i,e,n){if(Hh(e)){const o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);const s=this.namespacesByHostElement.get(e);s&&s.id!==i&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,s){this.collectedLeaveElements.push(e),e[Wo]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,e,n,o,s){return Hh(e)?this._fetchNamespace(i).listen(e,n,o,s):()=>{}}_buildInstruction(i,e,n,o,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,s)}destroyInnerAnimations(i){let e=this.driver.query(i,Mh,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,_I,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Ar(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Wo];if(e&&e.setForRemoval){if(i[Wo]=wE,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(EI)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?Ar(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw function Uz(t){return new Ae(3402,!1)}()}_flushAnimations(i,e){const n=new Nh,o=[],s=new Map,r=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(We=>{u.add(We);const tt=this.driver.query(We,".ng-animate-queued",!0);for(let ct=0;ct{const ct=mI+E++;b.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))});const P=[],W=new Set,te=new Set;for(let We=0;WeW.add(Kt)):te.add(tt))}const fe=new Map,Ce=EE(m,Array.from(W));Ce.forEach((We,tt)=>{const ct=Dh+E++;fe.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))}),i.push(()=>{_.forEach((We,tt)=>{const ct=b.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),Ce.forEach((We,tt)=>{const ct=fe.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),P.forEach(We=>{this.processLeaveNode(We)})});const ve=[],ke=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ct=>{const Kt=ct.player,Pn=ct.element;if(ve.push(Kt),this.collectedEnterElements.length){const Ri=Pn[Wo];if(Ri&&Ri.setForMove){if(Ri.previousTriggersValues&&Ri.previousTriggersValues.has(ct.triggerName)){const wa=Ri.previousTriggersValues.get(ct.triggerName),Vo=this.statesByElement.get(ct.element);if(Vo&&Vo.has(ct.triggerName)){const ug=Vo.get(ct.triggerName);ug.value=wa,Vo.set(ct.triggerName,ug)}}return void Kt.destroy()}}const Zi=!p||!this.driver.containsElement(p,Pn),oi=fe.get(Pn),ro=b.get(Pn),wn=this._buildInstruction(ct,n,ro,oi,Zi);if(wn.errors&&wn.errors.length)return void ke.push(wn);if(Zi)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);if(ct.isFallbackTransition)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);const ec=[];wn.timelines.forEach(Ri=>{Ri.stretchStartingKeyframe=!0,this.disabledNodes.has(Ri.element)||ec.push(Ri)}),wn.timelines=ec,n.append(Pn,wn.timelines),r.push({instruction:wn,player:Kt,element:Pn}),wn.queriedElements.forEach(Ri=>_o(a,Ri,[]).push(Kt)),wn.preStyleProps.forEach((Ri,wa)=>{if(Ri.size){let Vo=l.get(wa);Vo||l.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))}}),wn.postStyleProps.forEach((Ri,wa)=>{let Vo=c.get(wa);Vo||c.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))})});if(ke.length){const We=[];ke.forEach(tt=>{We.push(function $z(t,i){return new Ae(3505,!1)}())}),ve.forEach(tt=>tt.destroy()),this.reportError(We)}const Pe=new Map,$e=new Map;r.forEach(We=>{const tt=We.element;n.has(tt)&&($e.set(tt,tt),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,Pe))}),o.forEach(We=>{const tt=We.element;this._getPreviousPlayers(tt,!1,We.namespaceId,We.triggerName,null).forEach(Kt=>{_o(Pe,tt,[]).push(Kt),Kt.destroy()})});const Ke=P.filter(We=>kE(We,l,c)),pt=new Map;SE(pt,this.driver,te,c,js).forEach(We=>{kE(We,l,c)&&Ke.push(We)});const Vt=new Map;_.forEach((We,tt)=>{SE(Vt,this.driver,new Set(We),l,"!")}),Ke.forEach(We=>{const tt=pt.get(We),ct=Vt.get(We);pt.set(We,new Map([...tt?.entries()??[],...ct?.entries()??[]]))});const vn=[],hi=[],wt={};r.forEach(We=>{const{element:tt,player:ct,instruction:Kt}=We;if(n.has(tt)){if(u.has(tt))return ct.onDestroy(()=>ps(tt,Kt.toStyles)),ct.disabled=!0,ct.overrideTotalTime(Kt.totalTime),void o.push(ct);let Pn=wt;if($e.size>1){let oi=tt;const ro=[];for(;oi=oi.parentNode;){const wn=$e.get(oi);if(wn){Pn=wn;break}ro.push(oi)}ro.forEach(wn=>$e.set(wn,Pn))}const Zi=this._buildAnimation(ct.namespaceId,Kt,Pe,s,Vt,pt);if(ct.setRealPlayer(Zi),Pn===wt)vn.push(ct);else{const oi=this.playersByElement.get(Pn);oi&&oi.length&&(ct.parentPlayer=Ar(oi)),o.push(ct)}}else aa(tt,Kt.fromStyles),ct.onDestroy(()=>ps(tt,Kt.toStyles)),hi.push(ct),u.has(tt)&&o.push(ct)}),hi.forEach(We=>{const tt=s.get(We.element);if(tt&&tt.length){const ct=Ar(tt);We.setRealPlayer(ct)}}),o.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!Zi.destroyed);Pn.length?Uj(this,tt,Pn):this.processLeaveNode(tt)}return P.length=0,vn.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const tt=this.players.indexOf(We);this.players.splice(tt,1)}),We.play()}),vn}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,s){let r=[];if(e){const a=this.playersByQueriedElement.get(i);a&&(r=a)}else{const a=this.playersByElement.get(i);if(a){const l=!s||s==Iu;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||r.push(c)})}}return(n||o)&&(r=r.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),r}_beforeAnimationBuild(i,e,n){const s=e.element,r=e.isRemovalTransition?void 0:i,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,p=_o(n,c,[]);this._getPreviousPlayers(c,u,r,a,e.toState).forEach(_=>{const b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),p.push(_)})}aa(s,e.fromStyles)}_buildAnimation(i,e,n,o,s,r){const a=e.triggerName,l=e.element,c=[],u=new Set,p=new Set,m=e.timelines.map(b=>{const E=b.element;u.add(E);const P=E[Wo];if(P&&P.removedBeforeQueried)return new fu(b.duration,b.delay);const W=E!==l,te=function $j(t){const i=[];return DE(t,i),i}((n.get(E)||Rj).map(Pe=>Pe.getRealPlayer())).filter(Pe=>!!Pe.element&&Pe.element===E),fe=s.get(E),Ce=r.get(E),ve=sE(this._normalizer,b.keyframes,fe,Ce),ke=this._buildPlayer(b,ve,te);if(b.subTimeline&&o&&p.add(E),W){const Pe=new MI(i,a,E);Pe.setRealPlayer(ke),c.push(Pe)}return ke});c.forEach(b=>{_o(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function Hj(t,i,e){let n=t.get(i);if(n){if(n.length){const o=n.indexOf(e);n.splice(o,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>Lo(b,pE));const _=Ar(m);return _.onDestroy(()=>{u.forEach(b=>Ol(b,pE)),ps(l,e.toStyles)}),p.forEach(b=>{_o(o,b,[]).push(_)}),_}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new fu(i.duration,i.delay)}}class MI{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new fu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>dI(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){_o(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Hh(t){return t&&1===t.nodeType}function TE(t,i){const e=t.style.display;return t.style.display=i??"none",e}function SE(t,i,e,n,o){const s=[];e.forEach(l=>s.push(TE(l)));const r=[];n.forEach((l,c)=>{const u=new Map;l.forEach(p=>{const m=i.computeStyle(c,p,o);u.set(p,m),(!m||0==m.length)&&(c[Wo]=Nj,r.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>TE(l,s[a++])),r}function EE(t,i){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==i.length)return e;const o=new Set(i),s=new Map;function r(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:r(c),s.set(a,l),l}return i.forEach(a=>{const l=r(a);1!==l&&e.get(l).push(a)}),e}function Lo(t,i){t.classList?.add(i)}function Ol(t,i){t.classList?.remove(i)}function Uj(t,i,e){Ar(e).onDone(()=>t.processLeaveNode(i))}function DE(t,i){for(let e=0;eo.add(s)):i.set(t,n),e.delete(t),!0}class zh{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Bj(i,e,n),this._timelineEngine=new Mj(i,e,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,n,o,s){const r=i+"-"+o;let a=this._triggerCache[r];if(!a){const l=[],u=bI(this._driver,s,l,[]);if(l.length)throw function Lz(t,i){return new Ae(3404,!1)}();a=function Sj(t,i,e){return new Ej(t,i,e)}(o,u,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,o,a)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if("@"==n.charAt(0)){const[s,r]=rE(n);this._timelineEngine.command(s,e,r,o)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,s){if("@"==n.charAt(0)){const[r,a]=rE(n);return this._timelineEngine.listen(r,e,a,s)}return this._transitionEngine.listen(i,e,n,o,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let qj=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ps(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ps(this._element,this._initialStyles),this._endStyles&&(ps(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(aa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(aa(this._element,this._endStyles),this._endStyles=null),ps(this._element,this._initialStyles),this._state=3)}}return t})();function OI(t){let i=null;return t.forEach((e,n)=>{(function Wj(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class ME{constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{"offset"!==o&&i.set(o,this._finished?n:mE(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Qj{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return lE(i,e)}getParentElement(i){return fI(i)}query(i,e,n){return cE(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,o,s,r=[]){const l={duration:n,delay:o,fill:0==o?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=r.filter(_=>_ instanceof ME);(function nj(t,i){return 0===t||0===i})(n,o)&&u.forEach(_=>{_.currentSnapshot.forEach((b,E)=>c.set(E,b))});let p=function Jz(t){return t.length?t[0]instanceof Map?t:t.map(i=>hE(i)):[]}(e).map(_=>wr(_));p=function ij(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((s,r)=>{n.has(r)||o.push(r),n.set(r,s)}),o.length)for(let s=1;sr.set(a,mE(t,a)))}}return i}(i,p,c);const m=function Gj(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=OI(i[0]),i.length>1&&(n=OI(i[i.length-1]))):i instanceof Map&&(e=OI(i)),e||n?new qj(t,e,n):null}(i,p);return new ME(i,p,l,m)}}let Zj=(()=>{class t extends tE{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:To.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?nE(e):e;return OE(this._renderer,null,n,"register",[o]),new Yj(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class Yj extends dz{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Xj(this._id,i,e||{},this._renderer)}}class Xj{constructor(i,e,n,o){this.id=i,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return OE(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function OE(t,i,e,n,o){return t.setProperty(i,`@@${e}:${n}`,o)}const LE="@.disabled";let Jj=(()=>{class t{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(s,r)=>{const a=r?.parentNode(s);a&&r.removeChild(a,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let u=this._rendererCache.get(s);return u||(u=new PE("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const r=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(r,a,e,u.name,u)};return n.data.animation.forEach(l),new eU(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){e>=0&&en(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[r,a]=s;r(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(zh),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class PE{constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==LE?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class eU extends PE{constructor(i,e,n,o,s){super(e,n,o,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const o=function tU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let s=e.slice(1),r="";return"@"!=s.charAt(0)&&([s,r]=function nU(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,o,s,r,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(i,e,n)}}const FE=[{provide:tE,useClass:Zj},{provide:TI,useFactory:function oU(){return new xj}},{provide:zh,useClass:(()=>{class t extends zh{constructor(e,n,o,s){super(e.body,n,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(gI),Ze(TI),Ze(ta))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})()},{provide:Pc,useFactory:function sU(t,i,e){return new Jj(t,i,e)},deps:[L0,zh,Tt]}],LI=[{provide:gI,useFactory:()=>new Qj},{provide:My,useValue:"BrowserAnimations"},...FE],RE=[{provide:gI,useClass:uE},{provide:My,useValue:"NoopAnimations"},...FE];let NE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?RE:LI}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:LI,imports:[R0]})}return t})();function Cu(...t){const i=ic(t),e=Yv(t),{args:n,keys:o}=OT(t);if(0===n.length)return ri([],i);const s=new ce(function aU(t,i,e=_e){return n=>{VE(i,()=>{const{length:o}=t,s=new Array(o);let r=o,a=o;for(let l=0;l{const c=ri(t[l],i);let u=!1;c.subscribe(Ue(n,p=>{s[l]=p,u||(u=!0,a--),a||n.next(e(s.slice()))},()=>{--r||n.complete()}))},n)},n)}}(n,i,o?r=>LT(o,r):_e));return e?s.pipe(V0(e)):s}function VE(t,i,e){t?ws(e,t,i):i()}const Uh=ae(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function PI(...t){return function lU(){return Ta(1)}()(ri(t,ic(t)))}function BE(t){return new ce(i=>{Ni(t()).subscribe(i)})}function Ll(t,i){const e=L(t)?t:()=>t,n=o=>o.error(e());return new ce(i?o=>i.schedule(n,0,o):n)}function FI(){return Me((t,i)=>{let e=null;t._refCount++;const n=Ue(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class HE extends ce{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Be(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new F;const e=this.getSubject();i.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=F.EMPTY)}return i}refCount(){return FI()(this)}}function Pl(t){return t<=0?()=>es:Me((i,e)=>{let n=0;i.subscribe(Ue(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function $h(t){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function zE(t=uU){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function uU(){return new Uh}function ca(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,Pl(1),e?$h(i):zE(()=>new Uh))}function Ei(t,i,e){const n=L(t)||i||e?{next:t,error:i,complete:e}:t;return n?Me((o,s)=>{var r;null===(r=n.subscribe)||void 0===r||r.call(n);let a=!0;o.subscribe(Ue(s,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),s.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),s.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),s.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):_e}function Ci(t){return Me((i,e)=>{let s,n=null,o=!1;n=i.subscribe(Ue(e,void 0,void 0,r=>{s=Ni(t(r,Ci(t)(i))),n?(n.unsubscribe(),n=null,s.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,s.subscribe(e))})}function RI(t){return t<=0?()=>es:Me((i,e)=>{let n=[];i.subscribe(Ue(e,o=>{n.push(o),t{for(const o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}const Ot="primary",vu=Symbol("RouteTitle");class mU{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Fl(t){return new mU(t)}function _U(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[s]===o)}return t===i}function UE(t){return t.length>0?t[t.length-1]:null}function Tr(t){return function rU(t){return!!t&&(t instanceof ce||L(t.lift)&&L(t.subscribe))}(t)?t:Kc(t)?ri(Promise.resolve(t)):ht(t)}const CU={exact:function GE(t,i,e){if(!ua(t.segments,i.segments)||!Kh(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!GE(t.children[n],i.children[n],e))return!1;return!0},subset:qE},$E={exact:function vU(t,i){return hs(t,i)},subset:function bU(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>jE(t[e],i[e]))},ignored:()=>!0};function KE(t,i,e){return CU[e.paths](t.root,i.root,e.matrixParams)&&$E[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function qE(t,i,e){return WE(t,i,i.segments,e)}function WE(t,i,e,n){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!ua(o,e)||i.hasChildren()||!Kh(o,e,n))}if(t.segments.length===e.length){if(!ua(t.segments,e)||!Kh(t.segments,e,n))return!1;for(const o in i.children)if(!t.children[o]||!qE(t.children[o],i.children[o],n))return!1;return!0}{const o=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(ua(t.segments,o)&&Kh(t.segments,o,n)&&t.children[Ot])&&WE(t.children[Ot],i,s,n)}}function Kh(t,i,e){return i.every((n,o)=>$E[e](t[o].parameters,n.parameters))}class Rl{constructor(i=new gn([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return AU.serialize(this)}}class gn{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gh(this)}}class bu{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Fl(this.parameters)),this._parameterMap}toString(){return YE(this)}}function ua(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let yu=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new NI},providedIn:"root"})}return t})();class NI{parse(i){const e=new FU(i);return new Rl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${xu(i.root,!0)}`,n=function SU(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(o=>`${qh(e)}=${qh(o)}`).join("&"):`${qh(e)}=${qh(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function wU(t){return encodeURI(t)}(i.fragment)}`:""}`}}const AU=new NI;function Gh(t){return t.segments.map(i=>YE(i)).join("/")}function xu(t,i){if(!t.hasChildren())return Gh(t);if(i){const e=t.children[Ot]?xu(t.children[Ot],!1):"",n=[];return Object.entries(t.children).forEach(([o,s])=>{o!==Ot&&n.push(`${o}:${xu(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function xU(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Ot&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Ot&&(e=e.concat(i(o,n)))}),e}(t,(n,o)=>o===Ot?[xu(t.children[Ot],!1)]:[`${o}:${xu(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ot]?`${Gh(t)}/${e[0]}`:`${Gh(t)}/(${e.join("//")})`}}function QE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qh(t){return QE(t).replace(/%3B/gi,";")}function VI(t){return QE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wh(t){return decodeURIComponent(t)}function ZE(t){return Wh(t.replace(/\+/g,"%20"))}function YE(t){return`${VI(t.path)}${function TU(t){return Object.keys(t).map(i=>`;${VI(i)}=${VI(t[i])}`).join("")}(t.parameters)}`}const EU=/^[^\/()?;#]+/;function BI(t){const i=t.match(EU);return i?i[0]:""}const DU=/^[^\/()?;=#]+/,MU=/^[^=?&#]+/,LU=/^[^&#]+/;class FU{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gn([],{}):new gn([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ot]=new gn(i,e)),n}parseSegment(){const i=BI(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new Ae(4009,!1);return this.capture(i),new bu(Wh(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=function kU(t){const i=t.match(DU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=BI(this.remaining);o&&(n=o,this.capture(n))}i[Wh(e)]=Wh(n)}parseQueryParam(i){const e=function OU(t){const i=t.match(MU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=function PU(t){const i=t.match(LU);return i?i[0]:""}(this.remaining);r&&(n=r,this.capture(n))}const o=ZE(e),s=ZE(n);if(i.hasOwnProperty(o)){let r=i[o];Array.isArray(r)||(r=[r],i[o]=r),r.push(s)}else i[o]=s}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=BI(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new Ae(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Ot);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[Ot]:new gn([],r),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new Ae(4011,!1)}}function XE(t){return t.segments.length>0?new gn([],{[Ot]:t}):t}function JE(t){const i={};for(const n of Object.keys(t.children)){const s=JE(t.children[n]);if(n===Ot&&0===s.segments.length&&s.hasChildren())for(const[r,a]of Object.entries(s.children))i[r]=a;else(s.segments.length>0||s.hasChildren())&&(i[n]=s)}return function RU(t){if(1===t.numberOfChildren&&t.children[Ot]){const i=t.children[Ot];return new gn(t.segments.concat(i.segments),i.children)}return t}(new gn(t.segments,i))}function da(t){return t instanceof Rl}function eD(t){let i;const o=XE(function e(s){const r={};for(const l of s.children){const c=e(l);r[l.outlet]=c}const a=new gn(s.url,r);return s===t&&(i=a),a}(t.root));return i??o}function tD(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(0===i.length)return HI(o,o,o,e,n);const s=function VU(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iD(!0,0,t);let i=0,e=!1;const n=t.reduce((o,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===r?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?i++:""!=a&&o.push(a))}),o):[...o,s]},[]);return new iD(e,i,n)}(i);if(s.toRoot())return HI(o,o,new gn([],{}),e,n);const r=function BU(t,i,e){if(t.isAbsolute)return new Zh(i,!0,0);if(!e)return new Zh(i,!1,NaN);if(null===e.parent)return new Zh(e,!0,0);const n=Qh(t.commands[0])?0:1;return function HU(t,i,e){let n=t,o=i,s=e;for(;s>o;){if(s-=o,n=n.parent,!n)throw new Ae(4005,!1);o=n.segments.length}return new Zh(n,!1,o-s)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(s,o,t),a=r.processChildren?wu(r.segmentGroup,r.index,s.commands):oD(r.segmentGroup,r.index,s.commands);return HI(o,r.segmentGroup,a,e,n)}function Qh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Au(t){return"object"==typeof t&&null!=t&&t.outlets}function HI(t,i,e,n,o){let r,s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),r=t===i?e:nD(t,i,e);const a=XE(JE(r));return new Rl(a,s,o)}function nD(t,i,e){const n={};return Object.entries(t.children).forEach(([o,s])=>{n[o]=s===i?e:nD(s,i,e)}),new gn(t.segments,n)}class iD{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Qh(n[0]))throw new Ae(4003,!1);const o=n.find(Au);if(o&&o!==UE(n))throw new Ae(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zh{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function oD(t,i,e){if(t||(t=new gn([],{})),0===t.segments.length&&t.hasChildren())return wu(t,i,e);const n=function jU(t,i,e){let n=0,o=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;const r=t.segments[o],a=e[n];if(Au(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!rD(l,c,r))return s;n+=2}else{if(!rD(l,{},r))return s;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexs!==Ot)&&t.children[Ot]&&1===t.numberOfChildren&&0===t.children[Ot].segments.length){const s=wu(t.children[Ot],i,e);return new gn(t.segments,s.children)}return Object.entries(n).forEach(([s,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=oD(t.children[s],i,r))}),Object.entries(t.children).forEach(([s,r])=>{void 0===n[s]&&(o[s]=r)}),new gn(t.segments,o)}}function zI(t,i,e){const n=t.segments.slice(0,i);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(i[e]=zI(new gn([],{}),0,n))}),i}function sD(t){const i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function rD(t,i,e){return t==e.path&&hs(i,e.parameters)}const Tu="imperative";class fs{constructor(i,e){this.id=i,this.url=e}}class Yh extends fs{constructor(i,e,n="imperative",o=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sr extends fs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Su extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nl extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=16}}class Xh extends fs{constructor(i,e,n,o){super(i,e),this.error=n,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aD extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $U extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KU extends fs{constructor(i,e,n,o,s){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class GU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WU{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QU{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ZU{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YU{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XU{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JU{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lD{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jI{}class UI{constructor(i){this.url=i}}class e${constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Eu,this.attachRef=null}}let Eu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new e$,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class cD{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=$I(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=$I(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=KI(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return KI(i,this._root).map(e=>e.value)}}function $I(t,i){if(t===i.value)return i;for(const e of i.children){const n=$I(t,e);if(n)return n}return null}function KI(t,i){if(t===i.value)return[i];for(const e of i.children){const n=KI(t,e);if(n.length)return n.unshift(i),n}return[]}class Ks{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vl(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class uD extends cD{constructor(i,e){super(i),this.snapshot=e,GI(this,i)}toString(){return this.snapshot.toString()}}function dD(t,i){const e=function t$(t,i){const r=new Jh([],{},{},"",{},Ot,i,null,{});return new hD("",new Ks(r,[]))}(0,i),n=new xo([new bu("",{})]),o=new xo({}),s=new xo({}),r=new xo({}),a=new xo(""),l=new Di(n,o,r,a,s,Ot,i,e.root);return l.snapshot=e.root,new uD(new Ks(l,[]),e)}class Di{constructor(i,e,n,o,s,r,a,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=s,this.outlet=r,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(at(c=>c[vu]))??ht(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(at(i=>Fl(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(at(i=>Fl(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pD(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const o=e[n],s=e[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(s.component)break;n--}}return function n$(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Jh{get title(){return this.data?.[vu]}constructor(i,e,n,o,s,r,a,l,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s,this.outlet=r,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Fl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hD extends cD{constructor(i,e){super(e),this.url=i,GI(this,e)}toString(){return fD(this._root)}}function GI(t,i){i.value._routerState=t,i.children.forEach(e=>GI(t,e))}function fD(t){const i=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${i}`}function qI(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),function IU(t,i){if(t.length!==i.length)return!1;for(let e=0;ehs(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||WI(t.parent,i.parent))}let QI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ot,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.parentContexts=et(Eu),this.location=et(go),this.changeDetector=et(Ft),this.environmentInjector=et(po),this.inputBinder=et(ef,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ae(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ae(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ae(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Ae(4013,!1);this._activatedRoute=e;const o=this.location,r=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new i$(e,a,o.injector);this.activated=o.createComponent(r,{index:o.length,injector:l,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]})}return t})();class i${constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Di?this.route:i===Eu?this.childContexts:this.parent.get(i,e)}}const ef=new Ye("");let gD=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:n}=e,o=Cu([n.queryParams,n.params,n.data]).pipe(Ao(([s,r,a],l)=>(a={...s,...r,...a},0===l?ht(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const r=function f8(t){const i=Zt(t);if(!i)return null;const e=new Hc(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(n.component);if(r)for(const{templateName:a}of r.inputs)e.activatedComponentRef.setInput(a,s[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Du(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const o=function s$(t,i,e){return i.children.map(n=>{for(const o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Du(t,n,o);return Du(t,n)})}(t,i,e);return new Ks(n,o)}{if(t.shouldAttach(i.value)){const s=t.retrieve(i.value);if(null!==s){const r=s.route;return r.value._futureSnapshot=i.value,r.children=i.children.map(a=>Du(t,a)),r}}const n=function r$(t){return new Di(new xo(t.url),new xo(t.params),new xo(t.queryParams),new xo(t.fragment),new xo(t.data),t.outlet,t.component,t)}(i.value),o=i.children.map(s=>Du(t,s));return new Ks(n,o)}}const ZI="ngNavigationCancelingError";function mD(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=da(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=_D(!1,0,i);return o.url=e,o.navigationBehaviorOptions=n,o}function _D(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[ZI]=!0,n.cancellationCode=i,e&&(n.url=e),n}function ID(t){return t&&t[ZI]}let CD=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Et],decls:1,vars:0,template:function(n,o){1&n&&le(0,"router-outlet")},dependencies:[QI],encapsulation:2})}return t})();function YI(t){const i=t.children&&t.children.map(YI),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ot&&(e.component=CD),e}function Qo(t){return t.outlet||Ot}function ku(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class f${constructor(i,e,n,o,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=s}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),qI(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{const r=s.value.outlet;this.deactivateRoutes(s,o[r],n),delete o[r]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(o===s)if(o.component){const r=n.getContext(o.outlet);r&&this.deactivateChildRoutes(i,e,r.children)}else this.deactivateChildRoutes(i,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);if(n&&n.outlet){const r=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:r,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],n),this.forwardEvent(new JU(s.value.snapshot))}),i.children.length&&this.forwardEvent(new YU(i.value.snapshot))}activateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(qI(o),o===s)if(o.component){const r=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,r.children)}else this.activateChildRoutes(i,e,n);else if(o.component){const r=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(a.contexts),r.attachRef=a.componentRef,r.route=a.route.value,r.outlet&&r.outlet.attach(a.componentRef,a.route.value),qI(a.route.value),this.activateChildRoutes(i,null,r.children)}else{const a=ku(o.snapshot);r.attachRef=null,r.route=o,r.injector=a,r.outlet&&r.outlet.activateWith(o,r.injector),this.activateChildRoutes(i,null,r.children)}}else this.activateChildRoutes(i,null,n)}}class vD{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class tf{constructor(i,e){this.component=i,this.route=e}}function g$(t,i,e){const n=t._root;return Mu(n,i?i._root:null,e,[n.value])}function Bl(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function R4(t){return null!==Cd(t)}(t)?i.get(t):t:n}function Mu(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Vl(i);return t.children.forEach(r=>{(function _$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,r=i?i.value:null,a=e?e.getContext(t.value.outlet):null;if(r&&s.routeConfig===r.routeConfig){const l=function I$(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!ua(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ua(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WI(t,i)||!hs(t.queryParams,i.queryParams);default:return!WI(t,i)}}(r,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vD(n)):(s.data=r.data,s._resolvedData=r._resolvedData),Mu(t,i,s.component?a?a.children:null:e,n,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new tf(a.outlet.component,r))}else r&&Ou(i,a,o),o.canActivateChecks.push(new vD(n)),Mu(t,null,s.component?a?a.children:null:e,n,o)})(r,s[r.value.outlet],e,n.concat([r.value]),o),delete s[r.value.outlet]}),Object.entries(s).forEach(([r,a])=>Ou(a,e.getContext(r),o)),o}function Ou(t,i,e){const n=Vl(t),o=t.value;Object.entries(n).forEach(([s,r])=>{Ou(r,o.component?i?i.children.getContext(s):null:i,e)}),e.canDeactivateChecks.push(new tf(o.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,o))}function Lu(t){return"function"==typeof t}function bD(t){return t instanceof Uh||"EmptyError"===t?.name}const nf=Symbol("INITIAL_VALUE");function Hl(){return Ao(t=>Cu(t.map(i=>i.pipe(Pl(1),function cU(...t){const i=ic(t);return Me((e,n)=>{(i?PI(t,e,i):PI(t,e)).subscribe(n)})}(nf)))).pipe(at(i=>{for(const e of i)if(!0!==e){if(e===nf)return nf;if(!1===e||e instanceof Rl)return e}return!0}),zs(i=>i!==nf),Pl(1)))}function yD(t){return function he(...t){return de(t)}(Ei(i=>{if(da(i))throw mD(0,i)}),at(i=>!0===i))}class sf{constructor(i){this.segmentGroup=i||null}}class xD{constructor(i){this.urlTree=i}}function zl(t){return Ll(new sf(t))}function AD(t){return Ll(new xD(t))}class V${constructor(i,e){this.urlSerializer=i,this.urlTree=e}noMatchError(i){return new Ae(4002,!1)}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return ht(n);if(o.numberOfChildren>1||!o.children[Ot])return Ll(new Ae(4e3,!1));o=o.children[Ot]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,o){const s=this.createSegmentGroup(i,e.root,n,o);return new Rl(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Object.entries(i).forEach(([o,s])=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);n[o]=e[a]}else n[o]=s}),n}createSegmentGroup(i,e,n,o){const s=this.createSegments(i,e.segments,n,o);let r={};return Object.entries(e.children).forEach(([a,l])=>{r[a]=this.createSegmentGroup(i,l,n,o)}),new gn(s,r)}createSegments(i,e,n,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,o):this.findOrReturn(s,n))}findPosParam(i,e,n){const o=n[e.path.substring(1)];if(!o)throw new Ae(4001,!1);return o}findOrReturn(i,e){let n=0;for(const o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}}const XI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B$(t,i,e,n,o){const s=JI(t,i,e);return s.matched?(n=function l$(t,i){return t.providers&&!t._injector&&(t._injector=O_(t.providers,i,`Route: ${t.path}`)),t._injector??i}(i,n),function F$(t,i,e,n){const o=i.canMatch;return o&&0!==o.length?ht(o.map(r=>{const a=Bl(r,t);return Tr(function A$(t){return t&&Lu(t.canMatch)}(a)?a.canMatch(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD()):ht(!0)}(n,i,e).pipe(at(r=>!0===r?s:{...XI}))):ht(s)}function JI(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...XI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(i.matcher||_U)(e,t,i);if(!o)return{...XI};const s={};Object.entries(o.posParams??{}).forEach(([a,l])=>{s[a]=l.path});const r=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:r,positionalParamSegments:o.posParams??{}}}function wD(t,i,e,n){return e.length>0&&function j$(t,i,e){return e.some(n=>rf(t,i,n)&&Qo(n)!==Ot)}(t,e,n)?{segmentGroup:new gn(i,z$(n,new gn(e,t.children))),slicedSegments:[]}:0===e.length&&function U$(t,i,e){return e.some(n=>rf(t,i,n))}(t,e,n)?{segmentGroup:new gn(t.segments,H$(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new gn(t.segments,t.children),slicedSegments:e}}function H$(t,i,e,n,o){const s={};for(const r of n)if(rf(t,e,r)&&!o[Qo(r)]){const a=new gn([],{});s[Qo(r)]=a}return{...o,...s}}function z$(t,i){const e={};e[Ot]=i;for(const n of t)if(""===n.path&&Qo(n)!==Ot){const o=new gn([],{});e[Qo(n)]=o}return e}function rf(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}class q${constructor(i,e,n,o,s,r,a){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=r,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new V$(this.urlSerializer,this.urlTree)}noMatchError(i){return new Ae(4002,!1)}recognize(){const i=wD(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Ot).pipe(Ci(e=>{if(e instanceof xD)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof sf?this.noMatchError(e):e}),at(e=>{const n=new Jh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ot,this.rootComponentType,null,{}),o=new Ks(n,e),s=new hD("",o),r=function NU(t,i,e=null,n=null){return tD(eD(t),i,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(s._root),{state:s,tree:r}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,Ot).pipe(Ci(n=>{throw n instanceof sf?this.noMatchError(n):n}))}inheritParamsAndData(i){const e=i.value,n=pD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(i,e,n,o){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,o,!0)}processChildren(i,e,n){const o=[];for(const s of Object.keys(n.children))"primary"===s?o.unshift(s):o.push(s);return ri(o).pipe(El(s=>{const r=n.children[s],a=function p$(t,i){const e=t.filter(n=>Qo(n)===i);return e.push(...t.filter(n=>Qo(n)!==i)),e}(e,s);return this.processSegmentGroup(i,a,r,s)}),function pU(t,i){return Me(function dU(t,i,e,n,o){return(s,r)=>{let a=e,l=i,c=0;s.subscribe(Ue(r,u=>{const p=c++;l=a?t(l,u,p):(a=!0,u),n&&r.next(l)},o&&(()=>{a&&r.next(l),r.complete()})))}}(t,i,arguments.length>=2,!0))}((s,r)=>(s.push(...r),s)),$h(null),function hU(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,RI(1),e?$h(i):zE(()=>new Uh))}(),si(s=>{if(null===s)return zl(n);const r=TD(s);return function W$(t){t.sort((i,e)=>i.value.outlet===Ot?-1:e.value.outlet===Ot?1:i.value.outlet.localeCompare(e.value.outlet))}(r),ht(r)}))}processSegment(i,e,n,o,s,r){return ri(e).pipe(El(a=>this.processSegmentAgainstRoute(a._injector??i,e,a,n,o,s,r).pipe(Ci(l=>{if(l instanceof sf)return ht(null);throw l}))),ca(a=>!!a),Ci(a=>{if(bD(a))return function K$(t,i,e){return 0===i.length&&!t.children[e]}(n,o,s)?ht([]):zl(n);throw a}))}processSegmentAgainstRoute(i,e,n,o,s,r,a){return function $$(t,i,e,n){return!!(Qo(t)===n||n!==Ot&&rf(i,e,t))&&("**"===t.path||JI(i,t,e).matched)}(n,o,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(i,o,n,s,r,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,s,r):zl(o):zl(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,o,r):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,o){const s=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?AD(s):this.applyRedirects.lineralizeSegments(n,s).pipe(si(r=>{const a=new gn(r,{});return this.processSegment(i,e,a,r,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=JI(e,o,s);if(!a)return zl(e);const p=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?AD(p):this.applyRedirects.lineralizeSegments(o,p).pipe(si(m=>this.processSegment(i,n,e,m.concat(c),r,!1)))}matchSegmentAgainstRoute(i,e,n,o,s,r){let a;if("**"===n.path){const l=o.length>0?UE(o).parameters:{};a=ht({snapshot:new Jh(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=B$(e,n,o,i).pipe(at(({matched:l,consumedSegments:c,remainingSegments:u,parameters:p})=>l?{snapshot:new Jh(c,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Ao(l=>null===l?zl(e):this.getChildConfig(i=n._injector??i,n,o).pipe(Ao(({routes:c})=>{const u=n._loadedInjector??i,{snapshot:p,consumedSegments:m,remainingSegments:_}=l,{segmentGroup:b,slicedSegments:E}=wD(e,m,_,c);if(0===E.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(at(W=>null===W?null:[new Ks(p,W)]));if(0===c.length&&0===E.length)return ht([new Ks(p,[])]);const P=Qo(n)===s;return this.processSegment(u,c,b,E,P?Ot:s,!0).pipe(at(W=>[new Ks(p,W)]))}))))}getChildConfig(i,e,n){return e.children?ht({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ht({routes:e._loadedRoutes,injector:e._loadedInjector}):function P$(t,i,e,n){const o=i.canLoad;return void 0===o||0===o.length?ht(!0):ht(o.map(r=>{const a=Bl(r,t);return Tr(function v$(t){return t&&Lu(t.canLoad)}(a)?a.canLoad(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD())}(i,e,n).pipe(si(o=>o?this.configLoader.loadChildren(i,e).pipe(Ei(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function N$(t){return Ll(_D(!1,3))}())):ht({routes:[],injector:i})}}function Q$(t){const i=t.value.routeConfig;return i&&""===i.path}function TD(t){const i=[],e=new Set;for(const n of t){if(!Q$(n)){i.push(n);continue}const o=i.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...n.children),e.add(o)):i.push(n)}for(const n of e){const o=TD(n.children);i.push(new Ks(n.value,o))}return i.filter(n=>!e.has(n))}function SD(t){return t.data||{}}function ED(t){return t.resolve||{}}function DD(t){return"string"==typeof t.title||null===t.title}function eC(t){return Ao(i=>{const e=t(i);return e?ri(e).pipe(at(()=>i)):ht(i)})}const jl=new Ye("ROUTES");let tC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=et(l2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ht(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Tr(e.loadComponent()).pipe(at(kD),Ei(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),du(()=>{this.componentLoaders.delete(e)})),o=new HE(n,()=>new re).pipe(FI());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ht({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const s=function nK(t,i,e,n){return Tr(t.loadChildren()).pipe(at(kD),si(o=>o instanceof mw||Array.isArray(o)?ht(o):ri(i.compileModuleAsync(o))),at(o=>{n&&n(t);let s,r,a=!1;return Array.isArray(o)?(r=o,!0):(s=o.create(e).injector,r=s.get(jl,[],{optional:!0,self:!0}).flat()),{routes:r.map(YI),injector:s}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(du(()=>{this.childrenLoaders.delete(n)})),r=new HE(s,()=>new re).pipe(FI());return this.childrenLoaders.set(n,r),r}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kD(t){return function iK(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let af=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=et(tC),this.environmentInjector=et(po),this.urlSerializer=et(yu),this.rootContexts=et(Eu),this.inputBindingEnabled=null!==et(ef,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ht(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new QU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new WU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,o){return this.transitions=new xo({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Tu,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(zs(s=>0!==s.id),at(s=>({...s,extractedUrl:e.urlHandlingStrategy.extract(s.rawUrl)})),Ao(s=>{this.currentTransition=s;let r=!1,a=!1;return ht(s).pipe(Ei(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Ao(l=>{const c=l.currentBrowserUrl.toString(),u=!e.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),es}if(e.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ht(l).pipe(Ao(m=>{const _=this.transitions?.getValue();return this.events.next(new Yh(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),_!==this.transitions?.getValue()?es:Promise.resolve(m)}),function Z$(t,i,e,n,o,s){return si(r=>function G$(t,i,e,n,o,s,r="emptyOnly"){return new q$(t,i,e,n,o,r,s).recognize()}(t,i,e,n,r.extractedUrl,o,s).pipe(at(({state:a,tree:l})=>({...r,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Ei(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const _=new aD(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(_)}));if(u&&e.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:_,source:b,restoredState:E,extras:P}=l,W=new Yh(m,this.urlSerializer.serialize(_),b,E);this.events.next(W);const te=dD(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:te,urlAfterRedirects:_,extras:{...P,skipLocationChange:!1,replaceUrl:!1}},ht(s)}{const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),es}}),Ei(l=>{const c=new $U(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),at(l=>(this.currentTransition=s={...l,guards:g$(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function T$(t,i){return si(e=>{const{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:r}}=e;return 0===r.length&&0===s.length?ht({...e,guardsResult:!0}):function S$(t,i,e,n){return ri(t).pipe(si(o=>function L$(t,i,e,n,o){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ht(s.map(a=>{const l=ku(i)??o,c=Bl(a,l);return Tr(function x$(t){return t&&Lu(t.canDeactivate)}(c)?c.canDeactivate(t,i,e,n):l.runInContext(()=>c(t,i,e,n))).pipe(ca())})).pipe(Hl()):ht(!0)}(o.component,o.route,e,i,n)),ca(o=>!0!==o,!0))}(r,n,o,t).pipe(si(a=>a&&function C$(t){return"boolean"==typeof t}(a)?function E$(t,i,e,n){return ri(i).pipe(El(o=>PI(function k$(t,i){return null!==t&&i&&i(new ZU(t)),ht(!0)}(o.route.parent,n),function D$(t,i){return null!==t&&i&&i(new XU(t)),ht(!0)}(o.route,n),function O$(t,i,e){const n=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(r=>function m$(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(r)).filter(r=>null!==r).map(r=>BE(()=>ht(r.guards.map(l=>{const c=ku(r.node)??e,u=Bl(l,c);return Tr(function y$(t){return t&&Lu(t.canActivateChild)}(u)?u.canActivateChild(n,t):c.runInContext(()=>u(n,t))).pipe(ca())})).pipe(Hl())));return ht(s).pipe(Hl())}(t,o.path,e),function M$(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ht(!0);const o=n.map(s=>BE(()=>{const r=ku(i)??e,a=Bl(s,r);return Tr(function b$(t){return t&&Lu(t.canActivate)}(a)?a.canActivate(i,t):r.runInContext(()=>a(i,t))).pipe(ca())}));return ht(o).pipe(Hl())}(t,o.route,e))),ca(o=>!0!==o,!0))}(n,s,t,i):ht(a)),at(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),Ei(l=>{if(s.guardsResult=l.guardsResult,da(l.guardsResult))throw mD(0,l.guardsResult);const c=new KU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),zs(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),eC(l=>{if(l.guards.canActivateChecks.length)return ht(l).pipe(Ei(c=>{const u=new GU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ao(c=>{let u=!1;return ht(c).pipe(function Y$(t,i){return si(e=>{const{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return ht(e);let s=0;return ri(o).pipe(El(r=>function X$(t,i,e,n){const o=t.routeConfig,s=t._resolve;return void 0!==o?.title&&!DD(o)&&(s[vu]=o.title),function J$(t,i,e,n){const o=function eK(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ht({});const s={};return ri(o).pipe(si(r=>function tK(t,i,e,n){const o=ku(i)??n,s=Bl(t,o);return Tr(s.resolve?s.resolve(i,e):o.runInContext(()=>s(i,e)))}(t[r],i,e,n).pipe(ca(),Ei(a=>{s[r]=a}))),RI(1),function fU(t){return at(()=>t)}(s),Ci(r=>bD(r)?es:Ll(r)))}(s,t,i,n).pipe(at(r=>(t._resolvedData=r,t.data=pD(t,e).resolve,o&&DD(o)&&(t.data[vu]=o.title),null)))}(r.route,n,t,i)),Ei(()=>s++),RI(1),si(r=>s===o.length?ht(e):es))})}(e.paramsInheritanceStrategy,this.environmentInjector),Ei({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),Ei(c=>{const u=new qU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),eC(l=>{const c=u=>{const p=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ei(m=>{u.component=m}),at(()=>{})));for(const m of u.children)p.push(...c(m));return p};return Cu(c(l.targetSnapshot.root)).pipe($h(),Pl(1))}),eC(()=>this.afterPreactivation()),at(l=>{const c=function o$(t,i,e){const n=Du(t,i._root,e?e._root:void 0);return new uD(n,i)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:c},s}),Ei(()=>{this.events.next(new jI)}),((t,i,e,n)=>at(o=>(new f$(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Pl(1),Ei({next:l=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Sr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),e.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{r=!0}}),function gU(t){return Me((i,e)=>{Ni(t).subscribe(Ue(e,()=>e.complete(),C)),!e.closed&&i.subscribe(e)})}(this.transitionAbortSubject.pipe(Ei(l=>{throw l}))),du(()=>{r||a||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Ci(l=>{if(a=!0,ID(l))this.events.next(new Su(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function a$(t){return ID(t)&&da(t.url)}(l)?this.events.next(new UI(l.url)):s.resolve(!1);else{this.events.next(new Xh(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(l))}catch(c){s.reject(c)}}return es}))}))}cancelNavigationTransition(e,n,o){const s=new Su(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(s),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MD(t){return t!==Tu}let OD=(()=>{class t{buildTitle(e){let n,o=e.root;for(;void 0!==o;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ot);return n}getResolvedTitleForRoute(e){return e.data[vu]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(oK)},providedIn:"root"})}return t})(),oK=(()=>{class t extends OD{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ET))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(aK)},providedIn:"root"})}return t})();class rK{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let aK=(()=>{class t extends rK{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lf=new Ye("",{providedIn:"root",factory:()=>({})});let lK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(cK)},providedIn:"root"})}return t})(),cK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pu=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Pu||{});function LD(t,i){t.events.pipe(zs(e=>e instanceof Sr||e instanceof Su||e instanceof Xh||e instanceof Nl),at(e=>e instanceof Sr||e instanceof Nl?Pu.COMPLETE:e instanceof Su&&(0===e.code||1===e.code)?Pu.REDIRECTING:Pu.FAILED),zs(e=>e!==Pu.REDIRECTING),Pl(1)).subscribe(()=>{i()})}function uK(t){throw t}function dK(t,i,e){return i.parse("/")}const pK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let io=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=et(a2),this.isNgZoneEnabled=!1,this._events=new re,this.options=et(lf,{optional:!0})||{},this.pendingTasks=et(Kp),this.errorHandler=this.options.errorHandler||uK,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dK,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=et(lK),this.routeReuseStrategy=et(sK),this.titleStrategy=et(OD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=et(jl,{optional:!0})?.flat()??[],this.navigationTransitions=et(af),this.urlSerializer=et(yu),this.location=et(d0),this.componentInputBindingEnabled=!!et(ef,{optional:!0}),this.eventsSubscription=new F,this.isNgZoneEnabled=et(Tt)instanceof Tt&&Tt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dD(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(PD(n)&&this._events.next(n));if(n instanceof Yh)MD(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(n instanceof Nl)this.rawUrlTree=o.rawUrl;else if(n instanceof aD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(n instanceof jI)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(n instanceof Su)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(o);else if(n instanceof UI){const s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),r={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||MD(o.source)};this.scheduleNavigation(s,Tu,null,r,{resolve:o.resolve,reject:o.reject,promise:o.promise})}n instanceof Xh&&this.restoreHistory(o,!0),n instanceof Sr&&(this.navigated=!0),PD(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Tu,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,o){const s={replaceUrl:!0},r=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,n,r,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(YI),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){const{relativeTo:o,queryParams:s,fragment:r,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:r;let p,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{p=eD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),p=this.currentUrlTree.root}return tD(p,e,u,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){const o=da(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Tu,null,n)}navigate(e,n={skipLocationChange:!1}){return function fK(t){for(let i=0;i{const s=e[o];return null!=s&&(n[o]=s),n},{})}scheduleNavigation(e,n,o,s,r){if(this.disposed)return Promise.resolve(!1);let a,l,c;r?(a=r.resolve,l=r.reject,c=r.promise):c=new Promise((p,m)=>{a=p,l=m});const u=this.pendingTasks.add();return LD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}setBrowserUrl(e,n){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){const r={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(o,"",r)}else{const s={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function PD(t){return!(t instanceof jI||t instanceof UI)}let pa=(()=>{class t{constructor(e,n,o,s,r,a){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=r,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=r.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Sr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,n,o,s,r){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||o||s||r||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function yy(t,i,e){return function H5(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?by:Ls}(i,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const o=this.renderer,s=this.el.nativeElement;null!==n?o.setAttribute(s,e,n):o.removeAttribute(s,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(Di),function $d(t){return function rP(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let o=0;for(;o{class t{get isActive(){return this._isActive}constructor(e,n,o,s,r){this.router=e,this.element=n,this.renderer=o,this.cdr=s,this.link=r,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ge,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Sr&&this.update()})}ngAfterContentInit(){ht(this.links.changes,ht(null)).pipe(Ta()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=ri(e).pipe(Ta()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const n=function gK(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(bt),V(hn),V(Ft),V(pa,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(1&n&&Gt(s,pa,5),2&n){let r;Se(r=Ee())&&(o.links=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]})}return t})();class FD{}let mK=(()=>{class t{constructor(e,n,o,s,r){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(zs(e=>e instanceof Sr),El(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const o=[];for(const s of n){s.providers&&!s._injector&&(s._injector=O_(s.providers,e,`Route: ${s.path}`));const r=s._injector??e,a=s._loadedInjector??r;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(r,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(a,s.children??s._loadedRoutes))}return ri(o).pipe(Ta())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;o=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ht(null);const s=o.pipe(si(r=>null===r?ht(void 0):(n._loadedRoutes=r.routes,n._loadedInjector=r.injector,this.processRoutes(r.injector??e,r.routes))));return n.loadComponent&&!n._loadedComponent?ri([s,this.loader.loadComponent(n)]).pipe(Ta()):s})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(io),Ze(l2),Ze(po),Ze(FD),Ze(tC))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const nC=new Ye("");let RD=(()=>{class t{constructor(e,n,o,s,r={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Yh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Sr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Nl&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){!function cx(){throw new Error("invalid")}()};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Gs(t,i){return{\u0275kind:t,\u0275providers:i}}function VD(){const t=et($i);return i=>{const e=t.get(ta);if(i!==e.components[0])return;const n=t.get(io),o=t.get(BD);1===t.get(iC)&&n.initialNavigation(),t.get(HD,null,zt.Optional)?.setUpPreloading(),t.get(nC,null,zt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const BD=new Ye("",{factory:()=>new re}),iC=new Ye("",{providedIn:"root",factory:()=>1}),HD=new Ye("");function vK(t){return Gs(0,[{provide:HD,useExisting:mK},{provide:FD,useExisting:t}])}const zD=new Ye("ROUTER_FORROOT_GUARD"),yK=[d0,{provide:yu,useClass:NI},io,Eu,{provide:Di,useFactory:function ND(t){return t.routerState.root},deps:[io]},tC,[]];function xK(){return new g2("Router",io)}let qn=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[yK,[],{provide:jl,multi:!0,useValue:e},{provide:zD,useFactory:SK,deps:[[io,new qd,new Wd]]},{provide:lf,useValue:n||{}},n?.useHash?{provide:Ir,useClass:G2}:{provide:Ir,useClass:K2},{provide:nC,useFactory:()=>{const t=et(LV),i=et(Tt),e=et(lf),n=et(af),o=et(yu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new RD(o,n,t,i,e)}},n?.preloadingStrategy?vK(n.preloadingStrategy).\u0275providers:[],{provide:g2,multi:!0,useFactory:xK},n?.initialNavigation?EK(n):[],n?.bindToComponentInputs?Gs(8,[gD,{provide:ef,useExisting:gD}]).\u0275providers:[],[{provide:jD,useFactory:VD},{provide:e0,multi:!0,useExisting:jD}]]}}static forChild(e){return{ngModule:t,providers:[{provide:jl,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(zD,8))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function SK(t){return"guarded"}function EK(t){return["disabled"===t.initialNavigation?Gs(3,[{provide:G_,multi:!0,useFactory:()=>{const i=et(io);return()=>{i.setUpLocationChangeListener()}}},{provide:iC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Gs(2,[{provide:iC,useValue:0},{provide:G_,multi:!0,deps:[$i],useFactory:i=>{const e=i.get(_8,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const o=i.get(io),s=i.get(BD);LD(o,()=>{n(!0)}),i.get(af).afterPreactivation=()=>(n(!0),s.closed?ht(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const jD=new Ye("");class kK{}class MK{}var Lt=function(t){return t[t.Passed="Passed"]="Passed",t[t.Failed="Failed"]="Failed",t[t.FailIgnored="FailIgnored"]="FailIgnored",t[t.Blocked="Blocked"]="Blocked",t[t.Stopped="Stopped"]="Stopped",t[t.Pending="Pending"]="Pending",t[t.InProgress="In Progress"]="InProgress",t[t.Canceled="Canceled"]="Canceled",t[t.Queued="Queued"]="Queued",t[t.FailedToQueue="Failed To Queue"]="FailedToQueue",t[t.Others="Others"]="Others",t}(Lt||{}),Er=function(t){return t[t.BusinessFlowsActivities=0]="BusinessFlowsActivities",t[t.ActivitiesActions=1]="ActivitiesActions",t[t.OutputValidation=2]="OutputValidation",t}(Er||{});class UD{}class OK{}class $D{}class LK{}var oC=function(t){return t[t.html=0]="html",t[t.htm=1]="htm",t[t.xls=2]="xls",t[t.xlsx=3]="xlsx",t[t.csv=4]="csv",t[t.json=5]="json",t[t.ppt=6]="ppt",t[t.jpg=7]="jpg",t[t.jpeg=8]="jpeg",t[t.png=9]="png",t[t.bmp=10]="bmp",t[t.txt=11]="txt",t[t.doc=12]="doc",t[t.docx=13]="docx",t[t.xml=14]="xml",t[t.pdf=15]="pdf",t[t.gif=16]="gif",t}(oC||{});let Co=(()=>{class t{constructor(){}getByKey(e){return JSON.parse(sessionStorage.getItem(e))}isExist(e){return null!=sessionStorage.getItem(e)}setItem(e,n){this.getByKey(e)||this.reomveByKey(e),sessionStorage.setItem(e,JSON.stringify(n))}setItemCache(e){this.runset=e}getItemCache(){return this.runset}reomveByKey(e){this.getByKey(e)&&sessionStorage.removeItem(e)}clearSession(){sessionStorage.clear()}msToTime1(e){var n=e%1e3,o=(e=(e-n)/1e3)%60,s=(e=(e-o)/60)%60,r=(e-s)/60;return(0==r?"00":r.toString())+":"+(0==s?"00":s.toString())+":"+(0==o?"00":o.toString())+"."+n}pad(e,n=2){return("00"+e).slice(-n)}msToTime(e){"seconds"==this.getByKey("timeFormat")&&(e*=1e3);var o=e%1e3,s=(e=(e-o)/1e3)%60,r=(e=(e-s)/60)%60;return this.pad((e-r)/60)+":"+this.pad(r)+":"+this.pad(s)+"."+this.pad(o,3)}replaceUnicodeChar(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u0021/g,"!")).replace(/u0022/g,'"')).replace(/u0023/g,"#")).replace(/u0024/g,"$")).replace(/u0025/g,"%")).replace(/u0026/g,"&")).replace(/u0027/g,"'")).replace(/u0028/g,"(")).replace(/u0029/g,")")).replace(/u002A/g,"*")).replace(/u002B/g,"+")).replace(/u002C/g,",")).replace(/u002D/g,"-")).replace(/u002E/g,".")).replace(/u002F/g,"/")).replace(/u003A/g,":")).replace(/u003B/g,";")).replace(/u003C/g,"<")).replace(/u003D/g,"=")).replace(/u003E/g,">")).replace(/u003F/g,"?")).replace(/u0040/g,"@")).replace(/u005B/g,"[")).replace(/u005C/g,"\\")).replace(/u005D/g,"]")).replace(/u005E/g,"^")).replace(/u005F/g,"_")).replace(/u0060/g,"`")).replace(/u007B/g,"{")).replace(/u007C/g,"|")).replace(/u007D/g,"}")).replace(/u007E/g,"~")).replace(/!/g,"!")).replace(/"/g,'"')).replace(/#/g,"#")).replace(/$/g,"$")).replace(/%/g,"%")).replace(/&/g,"&")).replace(/'/g,"'")).replace(/(/g,"(")).replace(/)/g,")")).replace(/*/g,"*")).replace(/+/g,"+")).replace(/,/g,",")).replace(/-/g,"-")).replace(/./g,".")).replace(///g,"/")).replace(/:/g,":")).replace(/;/g,";")).replace(/</g,"<")).replace(/=/g,"=")).replace(/>/g,">")).replace(/?/g,"?")).replace(/@/g,"@")).replace(/[/g,"[")).replace(/\/g,"\\")).replace(/]/g,"]")).replace(/^/g,"^")).replace(/_/g,"_")).replace(/`/g,"`")).replace(/{/g,"{")).replace(/|/g,"|")).replace(/}/g,"}")).replace(/~/g,"~")).trimStart()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KD(t,i,e,n,o,s,r){try{var a=t[s](r),l=a.value}catch(c){return void e(c)}a.done?i(l):Promise.resolve(l).then(n,o)}function Fu(t){return function(){var i=this,e=arguments;return new Promise(function(n,o){var s=t.apply(i,e);function r(l){KD(s,n,o,r,a,"next",l)}function a(l){KD(s,n,o,r,a,"throw",l)}r(void 0)})}}class PK extends F{constructor(i,e){super()}schedule(i,e=0){return this}}const uf={setInterval(t,i,...e){const{delegate:n}=uf;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=uf;return(i?.clearInterval||clearInterval)(t)},delegate:void 0},sC={now:()=>(sC.delegate||Date).now(),delegate:void 0};class Ru{constructor(i,e=Ru.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Ru.now=sC.now;const GD=new class RK extends Ru{constructor(i,e=Ru.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}(class FK extends PK{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return uf.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&uf.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let o,n=!1;try{this.work(i)}catch(s){n=!0,o=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}),NK=GD;function gs(t=1/0){let i;i=t&&"object"==typeof t?t:{count:t};const{count:e=1/0,delay:n,resetOnSuccess:o=!1}=i;return e<=0?_e:Me((s,r)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(Ue(r,p=>{o&&(a=0),r.next(p)},void 0,p=>{if(a++{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=n){const _="number"==typeof n?function BK(t=0,i,e=NK){let n=-1;return null!=i&&(Zv(i)?e=i:n=i),new ce(o=>{let s=function VK(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let r=0;return e.schedule(function(){o.closed||(o.next(r++),0<=n?this.schedule(void 0,n):o.complete())},s)})}(n):Ni(n(p,a)),b=Ue(r,()=>{b.unsubscribe(),m()},()=>{r.complete()});_.subscribe(b)}else m()}else r.error(p)})),u&&(l.unsubscribe(),l=null,c())};c()})}let ms=(()=>{class t{constructor(){this.baseAppUrl="",this.accountId=1,this.topBarTitle="",this.hideRightPanel=!1,this.imagePath="assets/screenshots/",this.artifactPath="assets/artifacts/",this.isServerLoading=!1}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ha=(()=>{class t{constructor(e,n){this.httpClient=e,this.globalVarService=n,this.httpOptions={headers:new qo({"Content-Type":"application/json"}),params:{}}}GetAccountHtmlReport(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReport",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBriefCase(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBriefCase/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParent(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParentAwait(e){var n=this;return Fu(function*(){return yield n.httpClient.post(n.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActivityById(e){var n=this;return Fu(function*(){return yield n.httpClient.get(n.globalVarService.baseAppUrl+"HtmlReport/GetActivityById/"+e,n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActionById(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetActionById/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBrief(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBrief/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActionsStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActionsStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActivitiesStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActivitiesStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}DownloadRunsetImages(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/DownloadRunsetImages",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}handleError(e){let n="";return n=e.error instanceof ErrorEvent?e.error.message:`Error Code: ${e.status}\nMessage: ${e.message}`,Ll(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qs=(()=>{class t{initService(e=!1){e&&(this.runset=null,this.businessFlows=[],this.activities=[],this.actions=[]),this.runset=this.getRunset(),this.businessFlows=this.getAllBusinessFlows(),this.activities=this.getAllActivities(),this.actions=this.getAllActions()}constructor(e,n,o){this._userDataManagerService=e,this.restServiceObj=n,this.globalVarService=o}populateChartsData(e,n){e.push(["Passed",n[0]]),e.push(["Failed",n[1]]),e.push(["Blocked",n[2]]),e.push(["Stopped",n[3]]),e.push(["Pending",n[4]]),e.push(["In Progress",n[5]]),e.push(["Canceled",n[6]])}getRunset(){return this._userDataManagerService.getItemCache()}getAllBusinessFlows(){return(null==this.businessFlows||this.businessFlows.length<=0)&&(this.businessFlows=this.getBusinessFlows()),this.businessFlows}getBusinessFlows(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)e.push(o);return e}getActivities(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)e.push(s);return e}getAllActivities(){return(null==this.activities||this.activities.length<=0)&&(this.activities=this.getActivities()),this.activities}getActions(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)if(null!=s.ActionsColl)for(let r of s.ActionsColl)e.push(r);return e}getAllActions(){return(null==this.actions||this.actions.length<=0)&&(this.actions=this.getActions()),this.actions}getRateArray(e){let n=[],o=this.businessFlows.filter(r=>r.RunStatus==e).length,s=this.businessFlows.length-o;return n.push(o),n.push(s),n}getOthersRateArray(e){}getRunnerExecutionStatus(e){let n=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Passed).length,o=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Failed).length,s=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Stopped).length,r=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Blocked).length,a=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Pending).length,l=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.InProgress).length,c=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Canceled).length,u=e.BusinessFlowsColl.length;return s>0?Lt.Stopped:r>0?Lt.Blocked:o>0?Lt.Failed:n==u?Lt.Passed:a==u||a==u?Lt.Pending:l==u?Lt.InProgress:c==u?Lt.Canceled:null}getRunnersExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.runset.RunnersColl)this.populateArrayByRunStatus(e,n.RunStatus);return e}getAllBusinessFlowsExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.businessFlows)this.populateArrayByRunStatus(e,n.RunStatus);return e}getRunnerBusinessFlowsExecutionStatusArray(e){let n=[0,0,0,0,0,0,0];for(let o of e.BusinessFlowsColl)this.populateArrayByRunStatus(n,o.RunStatus);return n}getActionsExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(this.runset),this.runset.TotalActionsPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)if(null!=r.ActionsColl&&r.ActionsColl.length)for(let a of r.ActionsColl)this.populateArrayByRunStatus(e,a.RunStatus);return e}return null}getActionsCount(e){let n=0;for(let o of e.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)null!=r.ActionsColl&&r.ActionsColl.length&&(n+=r.ActionsColl.length);return n}getActivitiesExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActivitiesCount(this.runset),this.runset.TotalActivitesPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)this.populateArrayByRunStatus(e,r.RunStatus);return e}return null}getActivitiesCount(e){let n=0;for(let o of e.RunnersColl)for(let s of o.BusinessFlowsColl)null!=s.ActivitiesColl&&s.ActivitiesColl.length>0&&(n+=s.ActivitiesColl.length);return n}populateArrayByRunStatus(e,n){switch("In Progress"==n.toString()&&(n=Lt.InProgress),n){case Lt.Passed:e[0]++;break;case Lt.Stopped:e[3]++;break;case Lt.Failed:e[1]++;break;case Lt.Pending:e[4]++;break;case Lt.Blocked:e[2]++;break;case Lt.InProgress:e[5]++;break;case Lt.Canceled:e[6]++}}getStatusClass(e,n=!0){let o="";return"Passed"==e?(o="passed-color",n?"fa fa-check-circle-o "+o:o):"Failed"==e?(o="failed-color",n?"fa fa-times-circle-o "+o:o):"Blocked"==e?(o="blocked-color",n?"fa fa-ban "+o:o):"Stopped"==e?(o="stopped-color",n?"fa fa-stop-circle-o "+o:o):"Pending"==e?(o="pending-color",n?"fa fa-clock-o "+o:o):"Skipped"==e?(o="skipped-color",n?"fa fa-minus-circle "+o:o):"In Progress"==e?(o="inprogress-color",n?"fa fa-hourglass-half "+o:o):"Canceled"==e?(o="canceled-color",n?"fa fa-stop-circle-o "+o:o):"Other"==e?"other-color":void 0}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Co),Ze(ha),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qD=(()=>{class t{constructor(){}load(...e){const n=[];return e.forEach(o=>n.push(this.loadScript(o))),Promise.all(n)}loadScript(e){return new Promise((n,o)=>{let s=document.createElement("script");s.setAttribute("data-complete","completeCallback"),s.setAttribute("data-cancel","cancelCallback"),s.setAttribute("data-error","errorCallback"),s.type="text/javascript",s.src=e,s.readyState?s.onreadystatechange=()=>{("loaded"===s.readyState||"complete"===s.readyState)&&(s.onreadystatechange=null,n({script:e,loaded:!0,status:"Loaded"}))}:s.onload=()=>{n({script:e,loaded:!0,status:"Loaded"})},s.onerror=r=>n({script:e,loaded:!1,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(s)})}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HK=(()=>{class t{constructor(e,n,o,s){this._http=e,this._userDataManagerService=n,this.calculatedDataService=o,this.fileLoader=s}getRunsetFromJsonByHttpRequest(){return null==this.runset&&(this.runset=this._http.get("assets/Execution_Data/executiondata.json"),this.runset.subscribe(e=>{const n={...e};this._userDataManagerService.setItem("0",n),this.calculatedDataService.initService()})),this.runset}GetExecutionData(){return new Promise((e,n)=>{let o=null;const s="assets/Execution_Data/executiondata.js?t="+Math.random().toString();this.fileLoader.load(s).then(r=>{typeof window.runsetData<"u"?(o=window.runsetData,o.TotalActionsPerExecution=this.calculatedDataService.getActionsCount(o),o.TotalActivitesPerExecution=this.calculatedDataService.getActivitiesCount(o),this._userDataManagerService.setItemCache(o),this.calculatedDataService.initService(),e(o)):e(null)}).catch(r=>console.log(r))})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(Co),Ze(qs),Ze(qD))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ws=(()=>{class t{constructor(){this.messageSource=new re,this.itemChangedSource=new re,this.refreshChangedSource=new re,this.bfActivitiesSourceChange=new re,this.loadbfActivities=new re,this.runnerStatLoad=new re,this.bfStatLoad=new re,this.activityStatLoad=new re,this.actionStatLoad=new re,this.messageSourceHasNewMessage=this.messageSource.asObservable(),this.onItemChangedMessage=this.itemChangedSource.asObservable(),this.onRefreshChangedMessage=this.refreshChangedSource.asObservable(),this.onBfActivitiesDataChange=this.bfActivitiesSourceChange.asObservable(),this.onloadbfActivities=this.loadbfActivities.asObservable(),this.onactivityStatLoad=this.activityStatLoad.asObservable(),this.onactionStatLoad=this.actionStatLoad.asObservable(),this.onrunnerStatLoad=this.runnerStatLoad.asObservable(),this.onbfStatLoad=this.bfStatLoad.asObservable()}newMessage(e){this.messageSource.next(e)}changeItem(e){this.itemChangedSource.next(e)}refreshScreen(e){this.refreshChangedSource.next(e)}bfActivitiesChange(e){this.bfActivitiesSourceChange.next(e)}loadbfActivitiesData(e){this.loadbfActivities.next(e)}loadactivityStat(e){this.activityStatLoad.next(e)}loadactionStat(e){this.actionStatLoad.next(e)}loadrunnerStat(e){this.runnerStatLoad.next(e)}loadbfStat(e){this.bfStatLoad.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),WD=(()=>{class t{constructor(){this.selectedRouteLink="",this.selectedGuid=""}GetMenuFromRunSet(e,n=null){const o=[],s={id:e.GUID,label:e.Name,routerLink:["/"],icon:"fa fa-play-circle",expanded:!0,title:e.Name,queryParams:n?{ExecutionId:n}:null};return this.CheckSelectedGuid(s.id,s.routerLink),this.SetRunners(e,s),o.push(s),o}SetRunners(e,n){return n.items=[],e.RunnersColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+o.Seq],icon:"fa fa-play-circle-o",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetBusinessFlow(o,r)}),n}SetBusinessFlow(e,n){e.BusinessFlowsColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+e.Seq+"/"+o.Seq],icon:"fa fa-sitemap",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetActivites(o,e,r)})}SetActivites(e,n,o){null!=e.ActivitiesColl&&e.ActivitiesColl.forEach(s=>{let r=this.getStatusIcon(s.RunStatus);const a={id:s.GUID,label:s.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/"+s.Seq],icon:"fa fa-bars",title:s.Name,styleClass:r};this.CheckSelectedGuid(a.id,a.routerLink),o.items.push(a),a.items=[],this.SetActions(s,a,n,e)})}SetActions(e,n,o,s){null!=e.ActionsColl&&e.ActionsColl.forEach(r=>{let a=this.getStatusIcon(r.RunStatus);const l={id:r.GUID,label:r.Name,routerLink:["/"+o.Seq+"/"+s.Seq+"/"+e.Seq+"/"+r.Seq],icon:"fa fa-bolt",title:r.Name,styleClass:a};this.CheckSelectedGuid(l.id,l.routerLink),n.items.push(l)})}SetActGroups(e,n,o){const s={id:"",label:"Activities Groups",icon:"activityGroup-menu-icon",items:[]};e.ActivitiesGroupsColl.forEach(r=>{const a={id:r.GUID,label:r.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/ag/ag/"+r.Name],icon:"fa fa-fw fa-exclamation-circle",title:r.Name};this.CheckSelectedGuid(a.id,a.routerLink),s.items.push(a)}),o.items.push(s)}GetShortName(e){return e.length>20?e.substring(0,20)+"...":e}CheckSelectedGuid(e,n){typeof this.selectedGuid<"u"&&this.selectedGuid&&""===this.selectedRouteLink&&this.selectedGuid===e&&(this.selectedRouteLink=n+"?Guid="+e)}getStatusIcon(e){let n=" "+e+"Status";return e==Lt.Failed||e==Lt.FailIgnored||e==Lt.Passed||e==Lt.Canceled?n:e==Lt.InProgress||n.search("Progress")?"InProgressStatus":e==Lt.Queued||e==Lt.Stopped?n:void 0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class be{static equals(i,e,n){return n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof i&&"object"==typeof e){var s,r,a,n=Array.isArray(i),o=Array.isArray(e);if(n&&o){if((r=i.length)!=e.length)return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[s],e[s]))return!1;return!0}if(n!=o)return!1;var l=this.isDate(i),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return i.getTime()==e.getTime();var u=i instanceof RegExp,p=e instanceof RegExp;if(u!=p)return!1;if(u&&p)return i.toString()==e.toString();var m=Object.keys(i);if((r=m.length)!==Object.keys(e).length)return!1;for(s=r;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,m[s]))return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[a=m[s]],e[a]))return!1;return!0}return i!=i&&e!=e}static resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),o=i;for(let s=0,r=n.length;s=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static insertIntoOrderedArray(i,e,n,o){if(n.length>0){let s=!1;for(let r=0;re){n.splice(r,0,i),s=!0;break}s||n.push(i)}else n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let o=0;o-1&&(i=i.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),i}static isDate(i){return"[object Date]"===Object.prototype.toString.call(i)}static isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!this.isDate(i)&&"object"==typeof i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}static compare(i,e,n,o=1){let s=-1;const r=this.isEmpty(i),a=this.isEmpty(e);return s=r&&a?0:r?o:a?-o:"string"==typeof i&&"string"==typeof e?i.localeCompare(e,n,{numeric:!0}):ie?1:0,s}static sort(i,e,n=1,o,s=1){return(1===s?n:s)*be.compare(i,e,o,n)}static merge(i,e){if(null!=i||null!=e)return null!=i&&"object"!=typeof i||null!=e&&"object"!=typeof e?null!=i&&"string"!=typeof i||null!=e&&"string"!=typeof e?e||i:[i||"",e||""].join(" "):{...i||{},...e||{}}}static isPrintableCharacter(i=""){return this.isNotEmpty(i)&&1===i.length&&i.match(/\S| /)}static getItemValue(i,...e){return this.isFunction(i)?i(...e):i}static findLastIndex(i,e){let n=-1;if(this.isNotEmpty(i))try{n=i.findLastIndex(e)}catch{n=i.lastIndexOf([...i].reverse().find(e))}return n}static findLast(i,e){let n;if(this.isNotEmpty(i))try{n=i.findLast(e)}catch{n=[...i].reverse().find(e)}return n}}var QD=0;function $t(t="pn_id_"){return`${t}${++QD}`}var Wn=function zK(){let t=[];const o=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:o,set:(s,r,a)=>{r&&(r.style.zIndex=String(((s,r)=>{let a=t.length>0?t[t.length-1]:{key:s,value:r},l=a.value+(a.key===s?0:r)+2;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(r=>r.value!==s)})(o(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const ZD=["*"];let vi=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),YD=(()=>class t{static AND="and";static OR="or"})(),df=(()=>{class t{filter(e,n,o,s,r){let a=[];if(e)for(let l of e)for(let c of n){let u=be.resolveFieldData(l,c);if(this.filters[s](u,o,r)){a.push(l);break}}return a}filters={startsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return be.removeAccents(e.toString()).toLocaleLowerCase(o).slice(0,s.length)===s},contains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1!==be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},notContains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1===be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},endsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o),r=be.removeAccents(e.toString()).toLocaleLowerCase(o);return-1!==r.indexOf(s,r.length-s.length)},equals:(e,n,o)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o)),notEquals:(e,n,o)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let o=0;onull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,o)=>this.filters.equals(e,n,o),isNot:(e,n,o)=>this.filters.notEquals(e,n,o),before:(e,n,o)=>this.filters.lt(e,n,o),after:(e,n,o)=>this.filters.gt(e,n,o),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dr=(()=>{class t{clickSource=new re;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ki=(()=>{class t{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[vi.STARTS_WITH,vi.CONTAINS,vi.NOT_CONTAINS,vi.ENDS_WITH,vi.EQUALS,vi.NOT_EQUALS],numeric:[vi.EQUALS,vi.NOT_EQUALS,vi.LESS_THAN,vi.LESS_THAN_OR_EQUAL_TO,vi.GREATER_THAN,vi.GREATER_THAN_OR_EQUAL_TO],date:[vi.DATE_IS,vi.DATE_IS_NOT,vi.DATE_BEFORE,vi.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new re;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-header"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),rC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-footer"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),sn=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(V($o))};static \u0275dir=ut({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),Qe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),di=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})(),j=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let o=n.trim().split(" ");for(let s=0;so.split(" ").forEach(s=>this.removeClass(e,s)))}static hasClass(e,n){return!(!e||!n)&&(e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return Array.from(e.querySelectorAll(n))}static findSingle(e,n){return this.isElement(e)?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,o=0;for(var s=0;s{if(W)return"relative"===getComputedStyle(W).getPropertyValue("position")?W:o(W.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=n.offsetHeight,a=n.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),m=o(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let _,b;a.top+r+s.height>u.height?(_=a.top-m.top-s.height,e.style.transformOrigin="bottom",a.top+_<0&&(_=-1*a.top)):(_=r+a.top-m.top,e.style.transformOrigin="top");const E=a.left+s.width-u.width;b=s.width>u.width?-1*(a.left-m.left):E>0?a.left-m.left-E:a.left-m.left,e.style.top=_+"px",e.style.left=b+"px"}static absolutePosition(e,n){const o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,r=o.width,a=n.offsetHeight,l=n.offsetWidth,c=n.getBoundingClientRect(),u=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),m=this.getViewport();let _,b;c.top+a+s>m.height?(_=c.top+u-s,e.style.transformOrigin="bottom",_<0&&(_=u)):(_=a+c.top+u,e.style.transformOrigin="top"),b=c.left+r>m.width?Math.max(0,c.left+p+l-r):c.left+p,e.style.top=_+"px",e.style.left=b+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let o=this.getParents(e);const s=/(auto|scroll)/,r=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let p=this.findSingle(a,u);p&&r(p)&&n.push(p)}}9!==a.nodeType&&r(a)&&n.push(a)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let o=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=o?parseFloat(o):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),a=r?parseFloat(r):0,l=e.getBoundingClientRect(),u=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,p=e.scrollTop,m=e.clientHeight,_=this.getOuterHeight(n);u<0?e.scrollTop=p+u:u+_>m&&(e.scrollTop=p+u-m+_)}static fadeIn(e,n){e.style.opacity=0;let o=+new Date,s=0,r=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-o)/n,e.style.opacity=s,o=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var o=1,a=50/n;let l=setInterval(()=>{(o-=a)<=0&&(o=0,clearInterval(l)),e.style.opacity=o},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,n){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let o=e.offsetWidth;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return o}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static width(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n}static getOuterHeight(e,n){let o=e.offsetHeight;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return o}static getHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),n}static getViewport(){let e=window,n=document,o=n.documentElement,s=n.getElementsByTagName("body")[0];return{width:e.innerWidth||o.clientWidth||s.clientWidth,height:e.innerHeight||o.clientHeight||s.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let o=e.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(n,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,n){if(this.isElement(n))n.appendChild(e);else{if(!(n&&n.el&&n.el.nativeElement))throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let o=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,o){e[n].apply(e,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableElements(e,n=""){let o=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),s=[];for(let r of o)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return s}static getFirstFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[0]:null}static getLastFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(e,n=!1){const o=t.getFocusableElements(e);let s=0;if(o&&o.length>0){const r=o.indexOf(o[0].ownerDocument.activeElement);n?s=-1==r||0===r?o.length-1:r-1:-1!=r&&r!==o.length-1&&(s=r+1)}return o[s]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:const o=typeof e;if("string"===o)return document.querySelector(e);if("object"===o&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const r=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return r&&9===r.nodeType||this.isExist(r)?r:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){const o=e.getAttribute(n);return isNaN(o)?"true"===o||"false"===o?"true"===o:o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})();class Vu{element;listener;scrollableParents;constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=j.getScrollableParents(this.element);for(let i=0;i{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=be.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[Et],ngContentSelectors:UK,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0})}return t})(),bi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Qi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function $K(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.collapseIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function KK(t,i){1&t&&le(0,"ChevronDownIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function GK(t,i){if(1&t&&(we(0),g(1,$K,1,4,"span",9),g(2,KK,1,2,"ChevronDownIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.collapseIcon),h(1),d("ngIf",!e.accordion.collapseIcon)}}function qK(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.expandIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function WK(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function QK(t,i){if(1&t&&(we(0),g(1,qK,1,4,"span",9),g(2,WK,1,2,"ChevronRightIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.expandIcon),h(1),d("ngIf",!e.accordion.expandIcon)}}function ZK(t,i){if(1&t&&(we(0),g(1,GK,3,2,"ng-container",3),g(2,QK,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.selected),h(1),d("ngIf",!e.selected)}}function YK(t,i){}function XK(t,i){1&t&&g(0,YK,0,0,"ng-template")}function JK(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.header," ")}}function eG(t,i){1&t&&ze(0)}function tG(t,i){1&t&&Kn(0,1,["*ngIf","hasHeaderFacet"])}function nG(t,i){1&t&&ze(0)}function iG(t,i){if(1&t&&(we(0),g(1,nG,1,0,"ng-container",6),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)}}const oG=["*",[["p-header"]]],sG=function(t){return{$implicit:t}},XD=function(t){return{transitionParams:t}},rG=function(t){return{value:"visible",params:t}},aG=function(t){return{value:"hidden",params:t}},lG=["*","p-header"],cG=["*"];let fa=(()=>{class t{el;changeDetector;id;header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}headerAriaLevel=2;selectedChange=new ge;headerFacet;templates;_selected=!1;get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}contentTemplate;headerTemplate;iconTemplate;loaded=!1;accordion;constructor(e,n,o){this.el=n,this.changeDetector=o,this.accordion=e,this.id=$t()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"icon":this.iconTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var o=0;o0}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ga)),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordionTab"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,4),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:"headerAriaLevel"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:lG,decls:12,vars:45,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],["role","heading",1,"p-accordion-header"],["role","button",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-accordion-header-text"]],template:function(n,o){1&n&&(Ti(oG),x(0,"div",0)(1,"div",1)(2,"a",2),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeydown(r)}),g(3,ZK,3,2,"ng-container",3),g(4,XK,1,0,null,4),g(5,JK,2,1,"span",5),g(6,eG,1,0,"ng-container",6),g(7,tG,1,0,"ng-content",3),A()(),x(8,"div",7)(9,"div",8),Kn(10),g(11,iG,2,1,"ng-container",3),A()()()),2&n&&(Ii("p-accordion-tab-active",o.selected),d("ngClass",o.tabStyleClass)("ngStyle",o.tabStyle),K("data-pc-name","accordiontab"),h(1),Ii("p-highlight",o.selected)("p-disabled",o.disabled),K("aria-level",o.headerAriaLevel)("data-p-disabled",o.disabled)("data-pc-section","header"),h(1),yn(o.headerStyle),d("ngClass",o.headerStyleClass),K("tabindex",o.disabled?null:0)("id",o.getTabHeaderActionId(o.id))("aria-controls",o.getTabContentId(o.id))("aria-expanded",o.selected)("aria-disabled",o.disabled)("data-pc-section","headeraction"),h(1),d("ngIf",!o.iconTemplate),h(1),d("ngTemplateOutlet",o.iconTemplate)("ngTemplateOutletContext",He(35,sG,o.selected)),h(1),d("ngIf",!o.hasHeaderFacet),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.hasHeaderFacet),h(1),d("@tabContent",o.selected?He(39,rG,He(37,XD,o.transitionOptions)):He(43,aG,He(41,XD,o.transitionOptions))),K("id",o.getTabContentId(o.id))("aria-hidden",!o.selected)("aria-labelledby",o.getTabHeaderActionId(o.id))("data-pc-section","toggleablecontent"),h(1),d("ngClass",o.contentStyleClass)("ngStyle",o.contentStyle),h(2),d("ngIf",o.contentTemplate&&(o.cache?o.loaded:o.selected)))},dependencies:function(){return[Ct,gt,on,Ht,Qi,bi]},styles:["@layer primeng{.p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}}\n"],encapsulation:2,data:{animation:[Oo("tabContent",[Us("hidden",en({height:"0",visibility:"hidden"})),Us("visible",en({height:"*",visibility:"visible"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),ga=(()=>{class t{el;changeDetector;multiple=!1;style;styleClass;expandIcon;collapseIcon;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}selectOnFocus=!1;get headerAriaLevel(){return this._headerAriaLevel}set headerAriaLevel(e){"number"==typeof e&&e>0?this._headerAriaLevel=e:2!==this._headerAriaLevel&&(this._headerAriaLevel=2)}onClose=new ge;onOpen=new ge;activeIndexChange=new ge;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,n){this.el=e,this.changeDetector=n}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e)}}onTabArrowDownKey(e){const n=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const n=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const n=this.findFirstHeaderAction();this.changeFocusedTab(n),e.preventDefault()}changeFocusedTab(e){e&&(j.focus(e),this.selectOnFocus&&this.tabs.forEach((n,o)=>{let s=this.multiple?this._activeIndex.includes(o):o===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),n.id==e.id&&(n.selected=!n.selected,this._activeIndex.includes(o)?this._activeIndex=this._activeIndex.filter(r=>r!==o):this._activeIndex.push(o))):n.id==e.id?(n.selected=!n.selected,this._activeIndex=o):n.selected=!1,n.selectedChange.emit(s),this.activeIndexChange.emit(this._activeIndex),n.changeDetector.markForCheck()}))}findNextHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){return this.findNextHeaderAction(this.el.nativeElement.firstElementChild.childNodes[0],!0)}findLastHeaderAction(){const e=this.el.nativeElement.firstElementChild.childNodes;return this.findPrevHeaderAction(e[e.length-1],!0)}onTabEndKey(e){const n=this.findLastHeaderAction();this.changeFocusedTab(n),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(n.selected){if(!this.multiple)return void(e=o);e.push(o)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordion"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,fa,5),2&n){let r;Se(r=Ee())&&(o.tabList=r)}},hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown",function(r){return o.onKeydown(r)})},inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex",selectOnFocus:"selectOnFocus",headerAriaLevel:"headerAriaLevel"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:cG,decls:2,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(n,o){1&n&&(Ti(),x(0,"div",0),Kn(1),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-accordion p-component")("ngStyle",o.style))},dependencies:[Ct,Ht],encapsulation:2,changeDetection:0})}return t})(),JD=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qi,bi,Qe]})}return t})();function uG(t,i){if(1&t&&(x(0,"div",8)(1,"span"),Le(2),A()()),2&t){const e=f(2).$implicit,n=f();h(1),Ve(n.getstatus(e.value)),h(1),dt(e.value)}}function dG(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit;h(1),dt(e.value)}}const pG=function(){return["Execution Status"]};function hG(t,i){if(1&t&&(x(0,"div",3),g(1,uG,3,4,"div",6),g(2,dG,2,1,"div",7),A()),2&t){const e=f().$implicit;h(1),d("ngSwitchCase",Jt(1,pG).includes(e.field)?e.field:"")}}function fG(t,i){1&t&&(x(0,"div",3),Le(1,"N/A"),A())}function gG(t,i){if(1&t&&(we(0,2),x(1,"div",3)(2,"strong"),Le(3),A()(),g(4,hG,3,2,"div",4),g(5,fG,2,0,"ng-template",null,5,In),Te()),2&t){const e=i.$implicit,n=Bt(6);d("ngSwitch",e.field),h(3),Pt(" ",e.field,": "),h(1),d("ngIf",e.value)("ngIfElse",n)}}let Ul=(()=>{class t{constructor(){}ngOnInit(){}getstatus(e){return"Passed"==e?"passed-color":"Failed"==e?"failed-color":"Blocked"==e?"blocked-color":"Stopped"==e?"stopped-color":"Pending"==e?"pending-color":"Skipped"==e?"skipped-color":"In Progress"==e?"inprogress-color":"Canceled"==e?"canceled-color":"Other"==e?"other-color":void 0}datepipe(e){e.includes("s")&&(e=e.replace("s",""));var n=new Date(0,0,0,0,0,0,0);return n.toLocaleString("HH:mm:ss.SSS"),n.setSeconds(e),n.setMilliseconds(e.split(".")[1]),n}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-general-details"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[1,"col-12","md:col-3","row"],["class","col-12 md:col-3 row",4,"ngIf","ngIfElse"],["elseBlock",""],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"numbers-style"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,gG,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.data))},dependencies:[Jn,gt,wl,ch,x0],styles:[".row[_ngcontent-%COMP%]{border:solid 1px #ffffff;background-color:#f5f5f6;padding:1rem}.row[_ngcontent-%COMP%]:nth-child(4n+1){background:#eaebeb!important}.row[_ngcontent-%COMP%]:nth-child(4n+3){background:#eaebeb!important}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}"]})}return t})();class ek extends re{constructor(i=1/0,e=1/0,n=sC){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:r}=this;e||(n.push(i),!o&&n.push(s.now()+r)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,s=o.slice();for(let r=0;ra=>t[r](i,a,e)):function CG(t){return L(t.addListener)&&L(t.removeListener)}(t)?mG.map(tk(t,i)):function vG(t){return L(t.on)&&L(t.off)}(t)?IG.map(tk(t,i)):[];if(!o&&dg(t))return si(r=>aC(r,i,e))(Ni(t));if(!o)throw new TypeError("Invalid event target");return new ce(r=>{const a=(...l)=>r.next(1s(a)})}function tk(t,i){return e=>n=>t[e](i,n)}function nk(t,i=GD){return Me((e,n)=>{let o=null,s=null,r=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=s;s=null,n.next(c)}};function l(){const c=r+t,u=i.now();if(u{s=c,r=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{s=o=null}))})}const yG=["*"];var An=function(t){return t.AnnotationChart="AnnotationChart",t.AreaChart="AreaChart",t.Bar="Bar",t.BarChart="BarChart",t.BubbleChart="BubbleChart",t.Calendar="Calendar",t.CandlestickChart="CandlestickChart",t.ColumnChart="ColumnChart",t.ComboChart="ComboChart",t.PieChart="PieChart",t.Gantt="Gantt",t.Gauge="Gauge",t.GeoChart="GeoChart",t.Histogram="Histogram",t.Line="Line",t.LineChart="LineChart",t.Map="Map",t.OrgChart="OrgChart",t.Sankey="Sankey",t.Scatter="Scatter",t.ScatterChart="ScatterChart",t.SteppedAreaChart="SteppedAreaChart",t.Table="Table",t.Timeline="Timeline",t.TreeMap="TreeMap",t.WordTree="wordtree",t}(An||{});const xG={[An.AnnotationChart]:"annotationchart",[An.AreaChart]:"corechart",[An.Bar]:"bar",[An.BarChart]:"corechart",[An.BubbleChart]:"corechart",[An.Calendar]:"calendar",[An.CandlestickChart]:"corechart",[An.ColumnChart]:"corechart",[An.ComboChart]:"corechart",[An.PieChart]:"corechart",[An.Gantt]:"gantt",[An.Gauge]:"gauge",[An.GeoChart]:"geochart",[An.Histogram]:"corechart",[An.Line]:"line",[An.LineChart]:"corechart",[An.Map]:"map",[An.OrgChart]:"orgchart",[An.Sankey]:"sankey",[An.Scatter]:"scatter",[An.ScatterChart]:"corechart",[An.SteppedAreaChart]:"corechart",[An.Table]:"table",[An.Timeline]:"timeline",[An.TreeMap]:"treemap",[An.WordTree]:"wordtree"},ok=new Ye("GOOGLE_CHARTS_CONFIG"),wG=new Ye("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>ht({version:"current",safeMode:!1,...et(ok,zt.Optional)||{}})});let pf=(()=>{class t{constructor(e,n,o){this.zone=e,this.localeId=n,this.config$=o,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new re}isGoogleChartsAvailable(){return!(typeof google>"u"||typeof google.charts>"u")}loadChartPackages(...e){return this.loadGoogleCharts().pipe(si(()=>this.config$),at(n=>({version:"current",safeMode:!1,...n||{}})),Ao(n=>new ce(o=>{google.charts.load(n.version,{packages:e,language:this.localeId,mapsApiKey:n.mapsApiKey,safeMode:n.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{o.next(),o.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return ht(void 0);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(n=>n.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(Ze(Tt),Ze(us),Ze(wG))},t.\u0275prov=nt({token:t,factory:t.\u0275fac}),t})(),sk=(()=>{class t{create(e,n,o){if(null==e)return;let s=!0;null!=n&&(s=!1);const r=google.visualization.arrayToDataTable(this.getDataAsTable(e,n),s);return o&&this.applyFormatters(r,o),r}getDataAsTable(e,n){return n?[n,...e]:e}applyFormatters(e,n){for(const o of n)o.formatter.format(e,o.colIndex)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),EG=(()=>{class t{constructor(e){this.loaderService=e,this.error=new ge,this.ready=new ge,this.stateChange=new ge,this.id=function TG(){return"_"+Math.random().toString(36).substr(2,9)}(),this.wrapperReadySubject=new ek(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(V(pf))},t.\u0275cmp=Oe({type:t,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,n){2&e&&x_("id",n.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[Hn],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),t})(),DG=(()=>{class t{constructor(e,n,o){this.element=e,this.loaderService=n,this.dataTableService=o,this.ready=new ge,this.error=new ge,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(o=>o.wrapperReady$),n=this.controlWrappers.map(o=>o.for).map(o=>Array.isArray(o)?Cu(o.map(s=>s.wrapperReady$)):o.wrapperReady$);Cu([...e,...n]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(n,o,s)=>{google.visualization.events.addListener(n,o,s)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",n=>this.error.emit(n))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const n=e.for.map(o=>o.chartWrapper);this.dashboard.bind(e.controlWrapper,n)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk))},t.\u0275cmp=Oe({type:t,selectors:[["dashboard"]],contentQueries:function(e,n,o){if(1&e&&Gt(o,EG,4),2&e){let s;Se(s=Ee())&&(n.controlWrappers=s)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[Hn],ngContentSelectors:yG,decls:1,vars:0,template:function(e,n){1&e&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0}),t})(),rk=(()=>{class t{constructor(e,n,o,s){this.element=e,this.scriptLoaderService=n,this.dataTableService=o,this.dashboard=s,this.options={},this.dynamicResize=!1,this.ready=new ge,this.error=new ge,this.select=new ge,this.mouseover=new ge,this.mouseleave=new ge,this.wrapperReadySubject=new ek(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){this.scriptLoaderService.loadChartPackages(function AG(t){return xG[t]}(this.type)).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let n=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),n=!0),e.type&&(this.wrapper.setChartType(this.type),n=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),n=!0),n&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,n){const o=this.registerChartEvent(this.chart,e,n);return this.eventListeners.set(o,{eventName:e,callback:n,handle:o}),o}removeEventListener(e){const n=this.eventListeners.get(e);n&&(google.visualization.events.removeListener(n.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=aC(window,"resize",{passive:!0}).pipe(nk(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return{title:this.title,width:this.width,height:this.height,...this.options}}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,n,o){return google.visualization.events.addListener(e,n,o)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk),V(DG,8))},t.\u0275cmp=Oe({type:t,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",options:"options",formatters:"formatters",dynamicResize:"dynamicResize"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[Hn],decls:0,vars:0,template:function(e,n){},styles:["[_nghost-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:block}"],changeDetection:0}),t})(),kG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:ok,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qe({type:t}),t.\u0275inj=Ge({providers:[pf]}),t})(),MG=(()=>{class t{constructor(e){this.communicatorService=e}ngOnInit(){this.InitGraph(),this.communicatorService.onactionStatLoad.subscribe(e=>{"Completed"==e&&"Actions"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Activities"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Runners"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Business Flows"==this.title&&this.InitGraph()})}InitGraph(){this.type="PieChart",this.title=this.chartTitle,this.data=this.executionData,this.columnNames=["Status","Percentage"],this.options={chartArea:{left:0,height:220,width:400},height:400,width:400,legend:{position:"labeled"},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"],is3D:!1,pieHole:.7,pieSliceText:"none",titleTextStyle:{fontFamily:"Arial",fontColor:"#000000",fontSize:12,bold:!0}},this.data=this.executionData}delay(e){return new Promise(n=>setTimeout(n,e))}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-chart"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function OG(t,i){if(1&t&&(x(0,"div")(1,"div",1),le(2,"app-google-chart",2)(3,"app-google-chart",2)(4,"app-google-chart",2)(5,"app-google-chart",2),A()()),2&t){const e=f();h(2),d("executionData",e.runnerData)("chartTitle",e.GingerRunnerTitle),h(1),d("executionData",e.businessFlowsData)("chartTitle",e.BusinessFlowsTitle),h(1),d("executionData",e.activitiesData)("chartTitle",e.ActivitiesTitle),h(1),d("executionData",e.actionsData)("chartTitle",e.ActionsTitle)}}let LG=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this._userDataManagerService=o,this.communicatorService=s,this.isStatisticsVisibleEvent=new ge,this.isStatisticsVisible=!1,this.lables=[Lt.Passed,Lt.Failed,Lt.Blocked,Lt.Stopped,Lt.Pending],this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.LoadActivityStat=!0,this.LoadActionStat=!0}ngOnInit(){}initComponents(){this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.RunsetJson=this._userDataManagerService.getItemCache(),this.LoadActivityStat=null==this._userDataManagerService.getByKey("LoadActivityStat")||this._userDataManagerService.getByKey("LoadActivityStat"),this.LoadActionStat=null==this._userDataManagerService.getByKey("LoadActionStat")||this._userDataManagerService.getByKey("LoadActionStat"),this.activitiesData=this._userDataManagerService.getByKey("ActivitiesStatistics"),this.actionsData=this._userDataManagerService.getByKey("ActionsStatistics"),this.executionDataGingerRunner=this.calculatedDataService.getRunnersExecutionStatusArray(),this.GingerRunnerTitle="Runners",this.calculatedDataService.populateChartsData(this.runnerData,this.executionDataGingerRunner),this.communicatorService.loadrunnerStat("Completed"),this.executionDataBusinessFlows=this.calculatedDataService.getAllBusinessFlowsExecutionStatusArray(),this.BusinessFlowsTitle="Business Flows",this.calculatedDataService.populateChartsData(this.businessFlowsData,this.executionDataBusinessFlows),this.communicatorService.loadbfStat("Completed"),this.ActivitiesTitle="Activities",this.ActionsTitle="Actions",(null==this.activitiesData||null==this.activitiesData||this.activitiesData.length<0||this.LoadActivityStat)&&(this.activitiesData=[],this.executionDataActivities=this.calculatedDataService.getActivitiesExecutionStatusArray(),null!=this.executionDataActivities?this.calculatedDataService.populateChartsData(this.activitiesData,this.executionDataActivities):this.restServiceObj.GetAllActivitiesStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.activitiesData,o),this._userDataManagerService.setItem("ActivitiesStatistics",this.activitiesData),this.communicatorService.loadactivityStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActivityStat","false")}})),(null==this.actionsData||null==this.actionsData||this.actionsData.length<0||this.LoadActivityStat)&&(this.actionsData=[],this.executionDataActions=this.calculatedDataService.getActionsExecutionStatusArray(),null!=this.executionDataActions?this.calculatedDataService.populateChartsData(this.actionsData,this.executionDataActions):this.restServiceObj.GetAllActionsStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.actionsData,o),this._userDataManagerService.setItem("ActionsStatistics",this.actionsData),this.communicatorService.loadactionStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActionStat","false")}})),null!=this.runnerData&&this.runnerData.length>0||this.businessFlowsData&&this.businessFlowsData.length>0||this.activitiesData&&this.activitiesData.length>0||this.actionsData&&this.actionsData.length>0?(this.isStatisticsVisibleEvent.emit(!0),this.isStatisticsVisible=!0):(this.isStatisticsVisibleEvent.emit(!1),this.isStatisticsVisible=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(Co),V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-execution-statistic"]],outputs:{isStatisticsVisibleEvent:"isStatisticsVisibleEvent"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex-container"],[3,"executionData","chartTitle"]],template:function(n,o){1&n&&g(0,OG,6,8,"div",0),2&n&&d("ngIf",o.isStatisticsVisible)},dependencies:[gt,MG],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:wrap}"]})}return t})(),_s=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oo=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){ei(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let n=this.getInk();if(!n||"none"===this.document.defaultView?.getComputedStyle(n,null).display)return;if(j.removeClass(n,"p-ink-active"),!j.getHeight(n)&&!j.getWidth(n)){let a=Math.max(j.getOuterWidth(this.el.nativeElement),j.getOuterHeight(this.el.nativeElement));n.style.height=a+"px",n.style.width=a+"px"}let o=j.getOffset(this.el.nativeElement),s=e.pageX-o.left+this.document.body.scrollTop-j.getWidth(n)/2,r=e.pageY-o.top+this.document.body.scrollLeft-j.getHeight(n)/2;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px"),j.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&j.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let hf=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(kr);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(e,n){this.el=e,this.document=n}ngAfterViewInit(){j.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[kr.button,kr.component];return this.icon&&!this.label&&be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly),this.loading&&(e.push(kr.disabled,kr.loading),!this.icon&&this.label&&e.push(kr.labelOnly),this.icon&&!this.label&&!be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(this.label){let e=this.document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=this.document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&j.addClass(e,n);let o=this.getIconClass();o&&j.addMultipleClasses(e,o),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=j.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=j.findSingle(this.htmlElement,".p-button-icon"),n=j.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?e.className=this.iconPos?"p-button-icon "+(n?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(n){return new(n||t)(V(bt),V(Wt))};static \u0275dir=ut({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,_s,Qe]})}return t})(),Mr=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ff=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mn=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ak=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const $G=["container"],KG=["inputfield"],GG=["contentWrapper"];function qG(t,i){if(1&t){const e=De();x(0,"TimesIcon",10),me("click",function(){return G(e),q(f(3).clear())}),A()}2&t&&d("styleClass","p-calendar-clear-icon")}function WG(t,i){}function QG(t,i){1&t&&g(0,WG,0,0,"ng-template")}function ZG(t,i){if(1&t){const e=De();x(0,"span",11),me("click",function(){return G(e),q(f(3).clear())}),g(1,QG,1,0,null,12),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function YG(t,i){if(1&t&&(we(0),g(1,qG,1,1,"TimesIcon",8),g(2,ZG,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function XG(t,i){1&t&&le(0,"span",15),2&t&&d("ngClass",f(3).icon)}function JG(t,i){1&t&&le(0,"CalendarIcon")}function eq(t,i){}function tq(t,i){1&t&&g(0,eq,0,0,"ng-template")}function nq(t,i){if(1&t&&(we(0),g(1,JG,1,0,"CalendarIcon",6),g(2,tq,1,0,null,12),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.triggerIconTemplate),h(1),d("ngTemplateOutlet",e.triggerIconTemplate)}}function iq(t,i){if(1&t){const e=De();x(0,"button",13),me("click",function(o){G(e),f();const s=Bt(1);return q(f().onButtonClick(o,s))}),g(1,XG,1,1,"span",14),g(2,nq,3,2,"ng-container",6),A()}if(2&t){const e=f(2);d("disabled",e.disabled),K("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId),h(1),d("ngIf",e.icon),h(1),d("ngIf",!e.icon)}}function oq(t,i){if(1&t){const e=De();x(0,"input",4,5),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("click",function(){return G(e),q(f().onInputClick())})("blur",function(o){return G(e),q(f().onInputBlur(o))})("input",function(o){return G(e),q(f().onUserInput(o))}),A(),g(2,YG,3,2,"ng-container",6),g(3,iq,3,6,"button",7)}if(2&t){const e=f();Ve(e.inputStyleClass),d("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),K("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),h(2),d("ngIf",e.showClear&&!e.disabled&&null!=e.value),h(1),d("ngIf",e.showIcon)}}function sq(t,i){1&t&&ze(0)}function rq(t,i){1&t&&le(0,"ChevronLeftIcon",37),2&t&&d("styleClass","p-datepicker-prev-icon")}function aq(t,i){}function lq(t,i){1&t&&g(0,aq,0,0,"ng-template")}function cq(t,i){if(1&t&&(x(0,"span",38),g(1,lq,1,0,null,12),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.previousIconTemplate)}}function uq(t,i){if(1&t){const e=De();x(0,"button",35),me("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(4).onPrevButtonClick(o))}),g(1,rq,1,1,"ChevronLeftIcon",32),g(2,cq,2,1,"span",36),A()}if(2&t){const e=f(4);K("aria-label",e.prevIconAriaLabel),h(1),d("ngIf",!e.previousIconTemplate),h(1),d("ngIf",e.previousIconTemplate)}}function dq(t,i){if(1&t){const e=De();x(0,"button",39),me("click",function(o){return G(e),q(f(4).switchToMonthView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseMonth")),h(1),Pt(" ",n.getMonthName(e.month)," ")}}function pq(t,i){if(1&t){const e=De();x(0,"button",40),me("click",function(o){return G(e),q(f(4).switchToYearView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseYear")),h(1),Pt(" ",n.getYear(e)," ")}}function hq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(5);h(1),Fp("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function fq(t,i){1&t&&ze(0)}const lC=function(t){return{$implicit:t}};function gq(t,i){if(1&t&&(x(0,"span",41),g(1,hq,2,2,"ng-container",6),g(2,fq,1,0,"ng-container",42),A()),2&t){const e=f(4);h(1),d("ngIf",!e.decadeTemplate),h(1),d("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",He(3,lC,e.yearPickerValues))}}function mq(t,i){1&t&&le(0,"ChevronRightIcon",37),2&t&&d("styleClass","p-datepicker-next-icon")}function _q(t,i){}function Iq(t,i){1&t&&g(0,_q,0,0,"ng-template")}function Cq(t,i){if(1&t&&(x(0,"span",43),g(1,Iq,1,0,null,12),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.nextIconTemplate)}}function vq(t,i){if(1&t&&(x(0,"th",49)(1,"span"),Le(2),A()()),2&t){const e=f(5);h(2),dt(e.getTranslation("weekHeader"))}}function bq(t,i){if(1&t&&(x(0,"th",50)(1,"span"),Le(2),A()()),2&t){const e=i.$implicit;h(2),dt(e)}}function yq(t,i){if(1&t&&(x(0,"td",53)(1,"span",54),Le(2),A()()),2&t){const e=f().index,n=f(2).$implicit;h(2),Pt(" ",n.weekNumbers[e]," ")}}function xq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2).$implicit;h(1),dt(e.day)}}function Aq(t,i){1&t&&ze(0)}function wq(t,i){if(1&t&&(we(0),g(1,Aq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Tq(t,i){1&t&&ze(0)}function Sq(t,i){if(1&t&&(we(0),g(1,Tq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.disabledDateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Eq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f(2).$implicit;h(1),Pt(" ",e.day," ")}}const cC=function(t,i){return{"p-highlight":t,"p-disabled":i}};function Dq(t,i){if(1&t){const e=De();we(0),x(1,"span",55),me("click",function(o){G(e);const s=f().$implicit;return q(f(6).onDateSelect(o,s))})("keydown",function(o){G(e);const s=f().$implicit,r=f(3).index;return q(f(3).onDateCellKeydown(o,s,r))}),g(2,xq,2,1,"ng-container",6),g(3,wq,2,4,"ng-container",6),g(4,Sq,2,4,"ng-container",6),A(),g(5,Eq,2,1,"div",56),Te()}if(2&t){const e=f().$implicit,n=f(6);h(1),d("ngClass",mt(5,cC,n.isSelected(e)&&e.selectable,!e.selectable)),h(1),d("ngIf",!n.dateTemplate&&(e.selectable||!n.disabledDateTemplate)),h(1),d("ngIf",e.selectable||!n.disabledDateTemplate),h(1),d("ngIf",!e.selectable),h(1),d("ngIf",n.isSelected(e))}}const kq=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function Mq(t,i){if(1&t&&(x(0,"td",15),g(1,Dq,6,8,"ng-container",6),A()),2&t){const e=i.$implicit,n=f(6);d("ngClass",mt(3,kq,e.otherMonth,e.today)),K("aria-label",e.day),h(1),d("ngIf",!e.otherMonth||n.showOtherMonths)}}function Oq(t,i){if(1&t&&(x(0,"tr"),g(1,yq,3,1,"td",51),g(2,Mq,2,6,"td",52),A()),2&t){const e=i.$implicit,n=f(5);h(1),d("ngIf",n.showWeek),h(1),d("ngForOf",e)}}function Lq(t,i){if(1&t&&(x(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),g(4,vq,3,1,"th",46),g(5,bq,3,1,"th",47),A()(),x(6,"tbody"),g(7,Oq,3,2,"tr",48),A()()()),2&t){const e=f().$implicit,n=f(3);h(4),d("ngIf",n.showWeek),h(1),d("ngForOf",n.weekDays),h(2),d("ngForOf",e.dates)}}function Pq(t,i){if(1&t){const e=De();x(0,"div",24)(1,"div",25),g(2,uq,3,3,"button",26),x(3,"div",27),g(4,dq,2,3,"button",28),g(5,pq,2,3,"button",29),g(6,gq,3,5,"span",30),A(),x(7,"button",31),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).onNextButtonClick(o))}),g(8,mq,1,1,"ChevronRightIcon",32),g(9,Cq,2,1,"span",33),A()(),g(10,Lq,8,3,"div",34),A()}if(2&t){const e=i.index,n=f(3);h(2),d("ngIf",0===e),h(2),d("ngIf","date"===n.currentView),h(1),d("ngIf","year"!==n.currentView),h(1),d("ngIf","year"===n.currentView),h(1),fo("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),K("aria-label",n.nextIconAriaLabel),h(1),d("ngIf",!n.nextIconTemplate),h(1),d("ngIf",n.nextIconTemplate),h(1),d("ngIf","date"===n.currentView)}}function Fq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Rq(t,i){if(1&t){const e=De();x(0,"span",60),me("click",function(o){const r=G(e).index;return q(f(4).onMonthSelect(o,r))})("keydown",function(o){const r=G(e).index;return q(f(4).onMonthCellKeydown(o,r))}),Le(1),g(2,Fq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(4);d("ngClass",mt(3,cC,o.isMonthSelected(n),o.isMonthDisabled(n))),h(1),Pt(" ",e," "),h(1),d("ngIf",o.isMonthSelected(n))}}function Nq(t,i){if(1&t&&(x(0,"div",58),g(1,Rq,3,6,"span",59),A()),2&t){const e=f(3);h(1),d("ngForOf",e.monthPickerValues())}}function Vq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Bq(t,i){if(1&t){const e=De();x(0,"span",63),me("click",function(o){const r=G(e).$implicit;return q(f(4).onYearSelect(o,r))})("keydown",function(o){const r=G(e).$implicit;return q(f(4).onYearCellKeydown(o,r))}),Le(1),g(2,Vq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=f(4);d("ngClass",mt(3,cC,n.isYearSelected(e),n.isYearDisabled(e))),h(1),Pt(" ",e," "),h(1),d("ngIf",n.isYearSelected(e))}}function Hq(t,i){if(1&t&&(x(0,"div",61),g(1,Bq,3,6,"span",62),A()),2&t){const e=f(3);h(1),d("ngForOf",e.yearPickerValues())}}function zq(t,i){if(1&t&&(we(0),x(1,"div",20),g(2,Pq,11,10,"div",21),A(),g(3,Nq,2,1,"div",22),g(4,Hq,2,1,"div",23),Te()),2&t){const e=f(2);h(2),d("ngForOf",e.months),h(1),d("ngIf","month"===e.currentView),h(1),d("ngIf","year"===e.currentView)}}function jq(t,i){1&t&&le(0,"ChevronUpIcon")}function Uq(t,i){}function $q(t,i){1&t&&g(0,Uq,0,0,"ng-template")}function Kq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Gq(t,i){1&t&&le(0,"ChevronDownIcon")}function qq(t,i){}function Wq(t,i){1&t&&g(0,qq,0,0,"ng-template")}function Qq(t,i){1&t&&le(0,"ChevronUpIcon")}function Zq(t,i){}function Yq(t,i){1&t&&g(0,Zq,0,0,"ng-template")}function Xq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Jq(t,i){1&t&&le(0,"ChevronDownIcon")}function eW(t,i){}function tW(t,i){1&t&&g(0,eW,0,0,"ng-template")}function nW(t,i){if(1&t&&(x(0,"div",67)(1,"span"),Le(2),A()()),2&t){const e=f(3);h(2),dt(e.timeSeparator)}}function iW(t,i){1&t&&le(0,"ChevronUpIcon")}function oW(t,i){}function sW(t,i){1&t&&g(0,oW,0,0,"ng-template")}function rW(t,i){1&t&&(we(0),Le(1,"0"),Te())}function aW(t,i){1&t&&le(0,"ChevronDownIcon")}function lW(t,i){}function cW(t,i){1&t&&g(0,lW,0,0,"ng-template")}function uW(t,i){if(1&t){const e=De();x(0,"div",72)(1,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).incrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).incrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(2,iW,1,0,"ChevronUpIcon",6),g(3,sW,1,0,null,12),A(),x(4,"span"),g(5,rW,2,0,"ng-container",6),Le(6),A(),x(7,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).decrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).decrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(8,aW,1,0,"ChevronDownIcon",6),g(9,cW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("nextSecond")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentSecond<10),h(1),dt(e.currentSecond),h(1),K("aria-label",e.getTranslation("prevSecond")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function dW(t,i){1&t&&le(0,"ChevronUpIcon")}function pW(t,i){}function hW(t,i){1&t&&g(0,pW,0,0,"ng-template")}function fW(t,i){1&t&&le(0,"ChevronDownIcon")}function gW(t,i){}function mW(t,i){1&t&&g(0,gW,0,0,"ng-template")}function _W(t,i){if(1&t){const e=De();x(0,"div",73)(1,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(2,dW,1,0,"ChevronUpIcon",6),g(3,hW,1,0,null,12),A(),x(4,"span"),Le(5),A(),x(6,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(7,fW,1,0,"ChevronDownIcon",6),g(8,mW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("am")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),dt(e.pm?"PM":"AM"),h(1),K("aria-label",e.getTranslation("pm")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function IW(t,i){if(1&t){const e=De();x(0,"div",64)(1,"div",65)(2,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).incrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(3,jq,1,0,"ChevronUpIcon",6),g(4,$q,1,0,null,12),A(),x(5,"span"),g(6,Kq,2,0,"ng-container",6),Le(7),A(),x(8,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).decrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(9,Gq,1,0,"ChevronDownIcon",6),g(10,Wq,1,0,null,12),A()(),x(11,"div",67)(12,"span"),Le(13),A()(),x(14,"div",68)(15,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).incrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(16,Qq,1,0,"ChevronUpIcon",6),g(17,Yq,1,0,null,12),A(),x(18,"span"),g(19,Xq,2,0,"ng-container",6),Le(20),A(),x(21,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).decrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(22,Jq,1,0,"ChevronDownIcon",6),g(23,tW,1,0,null,12),A()(),g(24,nW,3,1,"div",69),g(25,uW,10,8,"div",70),g(26,_W,9,7,"div",71),A()}if(2&t){const e=f(2);h(2),K("aria-label",e.getTranslation("nextHour")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentHour<10),h(1),dt(e.currentHour),h(1),K("aria-label",e.getTranslation("prevHour")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(3),dt(e.timeSeparator),h(2),K("aria-label",e.getTranslation("nextMinute")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentMinute<10),h(1),dt(e.currentMinute),h(1),K("aria-label",e.getTranslation("prevMinute")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf","12"==e.hourFormat)}}const lk=function(t){return[t]};function CW(t,i){if(1&t){const e=De();x(0,"div",75)(1,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onTodayButtonClick(o))}),A(),x(2,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onClearButtonClick(o))}),A()()}if(2&t){const e=f(2);h(1),d("label",e.getTranslation("today"))("ngClass",He(4,lk,e.todayButtonStyleClass)),h(1),d("label",e.getTranslation("clear"))("ngClass",He(6,lk,e.clearButtonStyleClass))}}function vW(t,i){1&t&&ze(0)}const bW=function(t,i,e,n,o,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":o,"p-datepicker-touch-ui":s}},ck=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},yW=function(t){return{value:"visibleTouchUI",params:t}},xW=function(t){return{value:"visible",params:t}};function AW(t,i){if(1&t){const e=De();x(0,"div",16,17),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationDone(o))})("click",function(o){return G(e),q(f().onOverlayClick(o))}),Kn(2),g(3,sq,1,0,"ng-container",12),g(4,zq,5,3,"ng-container",6),g(5,IW,27,20,"div",18),g(6,CW,3,8,"div",19),Kn(7,1),g(8,vW,1,0,"ng-container",12),A()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngStyle",e.panelStyle)("ngClass",ea(14,bW,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?He(24,yW,mt(21,ck,e.showTransitionOptions,e.hideTransitionOptions)):He(29,xW,mt(26,ck,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),h(3),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",!e.timeOnly),h(1),d("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),h(1),d("ngIf",e.showButtonBar),h(2),d("ngTemplateOutlet",e.footerTemplate)}}const wW=[[["p-header"]],[["p-footer"]]],TW=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},SW=["p-header","p-footer"],EW={provide:un,useExisting:ft(()=>DW),multi:!0};let DW=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const n=e.split(":"),o=parseInt(n[0]),s=parseInt(n[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new ge;onBlur=new ge;onClose=new ge;onSelect=new ge;onClear=new ge;onInput=new ge;onTodayClick=new ge;onClearClick=new ge;onMonthChange=new ge;onYearChange=new ge;onClickOutside=new ge;onShow=new ge;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.zone=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=$t(),this.panelId=this.attributeSelector+"_panel";const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=j.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let o=e;o<=n;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(di.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(n+o);return e}createMonths(e,n){this.months=this.months=[];for(let o=0;o11&&(s=s%11-1,r=n+1),this.months.push(this.createMonth(s,r))}}getWeekNumber(e){let n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1}createMonth(e,n){let o=[],s=this.getFirstDayOfMonthIndex(e,n),r=this.getDaysCountInMonth(e,n),a=this.getDaysCountInPrevMonth(e,n),l=1,c=new Date,u=[],p=Math.ceil((r+s)/7);for(let m=0;mr){let E=this.getNextMonthAndYear(e,n);_.push({day:l-r,month:E.month,year:E.year,otherMonth:!0,today:this.isToday(c,l-r,E.month,E.year),selectable:this.isSelectable(l-r,E.month,E.year,!0)})}else _.push({day:l,month:e,year:n,today:this.isToday(c,l,e,n),selectable:this.isSelectable(l,e,n,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(_[0].year,_[0].month,_[0].day))),o.push(_)}return{month:e,year:n,dates:o,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYeare[e.length-1]){let n=e[e.length-1]-e[0];this.populateYearOptions(e[0]+n,e[e.length-1]+n)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let n=new Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate=o.getTime()?s=n:(o=n,s=null),this.updateModel([o,s])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(n);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let o=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,n){let o,s;return 0===e?(o=11,s=n-1):(o=e-1,s=n),{month:o,year:s}}getNextMonthAndYear(e,n){let o,s;return 11===e?(o=0,s=n+1):(o=e+1,s=n),{month:o,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let o of this.value)if(n=this.isDateEquals(o,e),n)break;return n}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[n,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=n&&s<=(o??n)}return!1}isMonthDisabled(e){for(let n=1;n=r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,o,s){return e.getDate()===n&&e.getMonth()===o&&e.getFullYear()===s}isSelectable(e,n,o,s){let r=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(r=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(j.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,o){const s=e.currentTarget,r=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.nextElementSibling;l?j.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];j.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=r.previousElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")||j.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=r.nextElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")?this.navigateToMonth(!1,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+3:r-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+2:r-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let s=j.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r=s[s.length-1];r.tabIndex="0",r.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=j.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;n=j.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(e=n[n.length-1])}else e=j.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let n;if("month"===this.currentView){let o=j.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=j.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let o=j.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=j.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(n=j.findSingle(e,"span.p-highlight"),!n){let o=j.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");n=o||j.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||n.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=j.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==o||0===o)if(this.focusTrap)n[n.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else n[o-1].focus();else if(-1==o)if(this.timeOnly)n[0].focus();else{let s=0;for(let r=0;ra||this.minDate.getHours()===a&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?o-24:o:"12"==this.hourFormat&&(this.currentHour<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.validateTime(o,this.currentMinute,this.currentSecond,s)&&(this.currentHour=o,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,n,o){this.disabled||(this.repeat(e,null,n,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,o,s){let r=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,s),this.cd.markForCheck()},r),o){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let n=this.currentHour-this.stepHour,o=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),n=n<=0?12+n:n),this.validateTime(n,this.currentMinute,this.currentSecond,o)&&(this.currentHour=n,this.pm=o),e.preventDefault()}incrementMinute(e){let n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let o=this.parseValueFromString(n);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);n=[];for(let s of o)n.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");n=[];for(let s=0;s{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),j.blockBodyScroll())}disableModality(){this.mask&&(j.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let n,e=this.document.body.children;for(let o=0;o{const p=o+1{let _=""+p;if(s(u))for(;_.lengths(u)?_[p]:m[p];let l="",c=!1;if(e)for(o=0;o11&&12!=o&&(o-=12),n+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,n+=":",n+=s<10?"0"+s:s,this.showSeconds&&(n+=":",n+=r<10?"0"+r:r),"12"==this.hourFormat&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(n[0]),r=parseInt(n[1]),a=this.showSeconds?parseInt(n[2]):null;if(isNaN(s)||isNaN(r)||s>23||r>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:r,second:a}}parseDate(e,n){if(null==n||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let o,s,r,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,p=-1,m=-1,_=!1,E=fe=>{let Ce=o+1{let Ce=E(fe),ve="@"===fe?14:"!"===fe?20:"y"===fe&&Ce?4:"o"===fe?3:2,Pe=new RegExp("^\\d{"+("y"===fe?ve:1)+","+ve+"}"),$e=e.substring(a).match(Pe);if(!$e)throw"Missing number at position "+a;return a+=$e[0].length,parseInt($e[0],10)},W=(fe,Ce,ve)=>{let ke=-1,Pe=E(fe)?ve:Ce,$e=[];for(let Ke=0;Ke-(Ke[1].length-pt[1].length));for(let Ke=0;Ke<$e.length;Ke++){let pt=$e[Ke][1];if(e.substr(a,pt.length).toLowerCase()===pt.toLowerCase()){ke=$e[Ke][0],a+=pt.length;break}}if(-1!==ke)return ke+1;throw"Unknown name at position "+a},te=()=>{if(e.charAt(a)!==n.charAt(o))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(p=1),o=0;o-1)for(u=1,p=m;s=this.getDaysCountInMonth(c,u-1),!(p<=s);)u++,p-=s;if("year"===this.view&&(u=-1===u?1:u,p=-1===p?1:p),b=this.daylightSavingAdjust(new Date(c,u-1,p)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==p)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let n=new Date,o={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,o),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return j.hasClass(e.target,"p-datepicker-prev")||j.hasClass(e.target,"p-datepicker-prev-icon")||j.hasClass(e.target,"p-datepicker-next")||j.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(Tt),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-calendar"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($G,5),je(KG,5),je(GG,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputfieldViewChild=s.first),Se(s=Ee())&&(o.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focus)("p-calendar-clearable",o.showClear&&!o.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[yt([EW])],ngContentSelectors:SW,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(n,o){1&n&&(Ti(wW),x(0,"span",0,1),g(2,oq,4,20,"ng-template",2),g(3,AW,9,31,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngClass",gr(6,TW,o.showIcon,o.timeOnly,o.disabled,o.focus||o.overlayVisible))("ngStyle",o.style),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:function(){return[Ct,Jn,gt,on,Ht,hf,oo,Mr,Qi,ff,bi,mn,ak]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Us("visibleTouchUI",en({transform:"translate(-50%,-50%)",opacity:1})),Ln("void => visible",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}",en({opacity:1,transform:"*"}))]),Ln("visible => void",[On("{{hideTransitionParams}}",en({opacity:0}))]),Ln("void => visibleTouchUI",[en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),On("{{showTransitionParams}}")]),Ln("visibleTouchUI => void",[On("{{hideTransitionParams}}",en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),uk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,Mr,Qi,ff,bi,mn,ak,Mi,Qe]})}return t})(),uC=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=j.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),gf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kW=["overlay"],MW=["content"];function OW(t,i){1&t&&ze(0)}const LW=function(t,i,e){return{showTransitionParams:t,hideTransitionParams:i,transform:e}},PW=function(t){return{value:"visible",params:t}},FW=function(t){return{mode:t}},RW=function(t){return{$implicit:t}};function NW(t,i){if(1&t){const e=De();x(0,"div",1,3),me("click",function(o){return G(e),q(f(2).onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){return G(e),q(f(2).onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){return G(e),q(f(2).onOverlayContentAnimationDone(o))}),Kn(2),g(3,OW,1,0,"ng-container",4),A()}if(2&t){const e=f(2);Ve(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",He(11,PW,Rn(7,LW,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),h(3),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",He(15,RW,He(13,FW,e.overlayMode)))}}const VW=function(t,i,e,n,o,s,r,a,l,c,u,p,m,_){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":i,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":o,"p-overlay-bottom":s,"p-overlay-bottom-start":r,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":p,"p-overlay-right-start":m,"p-overlay-right-end":_}};function BW(t,i){if(1&t){const e=De();x(0,"div",1,2),me("click",function(){return G(e),q(f().onOverlayClick())}),g(2,NW,4,17,"div",0),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass",zp(5,VW,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),h(2),d("ngIf",e.visible)}}const HW=["*"],zW={provide:un,useExisting:ft(()=>mf),multi:!0},jW=Ml([en({transform:"{{transform}}",opacity:0}),On("{{showTransitionParams}}")]),UW=Ml([On("{{hideTransitionParams}}",en({transform:"{{transform}}",opacity:0}))]);let mf=(()=>{class t{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return be.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return be.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return be.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return be.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new ge;onBeforeShow=new ge;onShow=new ge;onBeforeHide=new ge;onHide=new ge;onAnimationStart=new ge;onAnimationDone=new ge;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(ei(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return j.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,n,o,s,r,a,l,c){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.config=r,this.overlayService=a,this.cd=l,this.zone=c,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,n=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.addClass(this.document?.body,"p-overflow-hidden")}hide(e,n=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&j.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Wn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),j.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&j.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const n=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(n,!0),this.bindListeners();break;case"void":this.hide(n,!0),this.unbindListeners(),j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(n),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",e)}handleEvents(e,n){this[e].emit(n),this.options&&this.options[e]&&this.options[e](n),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](n)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&o}):o)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===e.code&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(ki),V(Dr),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-overlay"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(kW,5),je(MW,5)),2&n){let s;Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[yt([zW])],ngContentSelectors:HW,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(Ti(),g(0,BW,3,20,"div",0)),2&n&&d("ngIf",o.modalVisible)},dependencies:[Ct,gt,on,Ht],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[Oo("overlayContentAnimation",[Ln(":enter",[Eh(jW)]),Ln(":leave",[Eh(UW)])])]},changeDetection:0})}return t})(),$l=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Qe]})}return t})();const $W=["element"],KW=["content"];function GW(t,i){1&t&&ze(0)}const dC=function(t,i){return{$implicit:t,options:i}};function qW(t,i){if(1&t&&(we(0),g(1,GW,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(2,dC,e.loadedItems,e.getContentOptions()))}}function WW(t,i){1&t&&ze(0)}function QW(t,i){if(1&t&&(we(0),g(1,WW,1,0,"ng-container",7),Te()),2&t){const e=i.$implicit,n=i.index,o=f(3);h(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",mt(2,dC,e,o.getOptions(n)))}}const ZW=function(t){return{"p-scroller-loading":t}};function YW(t,i){if(1&t&&(x(0,"div",8,9),g(2,QW,2,5,"ng-container",10),A()),2&t){const e=f(2);d("ngClass",He(5,ZW,e.d_loading))("ngStyle",e.contentStyle),K("data-pc-section","content"),h(2),d("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function XW(t,i){1&t&&le(0,"div",11),2&t&&(d("ngStyle",f(2).spacerStyle),K("data-pc-section","spacer"))}function JW(t,i){1&t&&ze(0)}const eQ=function(t){return{numCols:t}},dk=function(t){return{options:t}};function tQ(t,i){if(1&t&&(we(0),g(1,JW,1,0,"ng-container",7),Te()),2&t){const e=i.index,n=f(4);h(1),d("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",He(4,dk,n.getLoaderOptions(e,n.both&&He(2,eQ,n._numItemsInViewport.cols))))}}function nQ(t,i){if(1&t&&(we(0),g(1,tQ,2,6,"ng-container",14),Te()),2&t){const e=f(3);h(1),d("ngForOf",e.loaderArr)}}function iQ(t,i){1&t&&ze(0)}const oQ=function(){return{styleClass:"p-scroller-loading-icon"}};function sQ(t,i){if(1&t&&(we(0),g(1,iQ,1,0,"ng-container",7),Te()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",He(3,dk,Jt(2,oQ)))}}function rQ(t,i){1&t&&le(0,"SpinnerIcon",16),2&t&&(d("styleClass","p-scroller-loading-icon"),K("data-pc-section","loadingIcon"))}function aQ(t,i){if(1&t&&(g(0,sQ,2,5,"ng-container",0),g(1,rQ,1,2,"ng-template",null,15,In)),2&t){const e=Bt(2);d("ngIf",f(3).loaderIconTemplate)("ngIfElse",e)}}const lQ=function(t){return{"p-component-overlay":t}};function cQ(t,i){if(1&t&&(x(0,"div",12),g(1,nQ,2,1,"ng-container",0),g(2,aQ,3,2,"ng-template",null,13,In),A()),2&t){const e=Bt(3),n=f(2);d("ngClass",He(4,lQ,!n.loaderTemplate)),K("data-pc-section","loader"),h(1),d("ngIf",n.loaderTemplate)("ngIfElse",e)}}const uQ=function(t,i,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":i,"p-horizontal-scroll":e}};function dQ(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("scroll",function(o){return G(e),q(f().onContainerScroll(o))}),g(3,qW,2,5,"ng-container",0),g(4,YW,3,7,"ng-template",null,4,In),g(6,XW,1,2,"div",5),g(7,cQ,4,6,"div",6),A(),Te()}if(2&t){const e=Bt(5),n=f();h(1),Ve(n._styleClass),d("ngStyle",n._style)("ngClass",Rn(12,uQ,n.inline,n.both,n.horizontal)),K("id",n._id)("tabindex",n.tabindex)("data-pc-name","scroller")("data-pc-section","root"),h(2),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngIf",n._showSpacer),h(1),d("ngIf",!n.loaderDisabled&&n._showLoader&&n.d_loading)}}function pQ(t,i){1&t&&ze(0)}const hQ=function(t,i){return{rows:t,columns:i}};function fQ(t,i){if(1&t&&(we(0),g(1,pQ,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(5,dC,e.items,mt(2,hQ,e._items,e.loadedColumns)))}}function gQ(t,i){if(1&t&&(Kn(0),g(1,fQ,2,8,"ng-container",17)),2&t){const e=f();h(1),d("ngIf",e.contentTemplate)}}const mQ=["*"];let Bu=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([n,o])=>this[`_${n}`]!==o&&(this[`_${n}`]=o))}onLazyLoad=new ge;onScroll=new ge;onScrollIndexChange=new ge;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.zone=r}ngOnInit(){this.setInitialState()}ngOnChanges(e){let n=!1;if(e.loading){const{previousValue:o,currentValue:s}=e.loading;this.lazy&&o!==s&&s!==this.d_loading&&(this.d_loading=s,n=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:o,currentValue:s}=e.numToleratedItems;o!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){const{previousValue:o,currentValue:s}=e.options;this.lazy&&o?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,n=!0),o?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!n&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){ei(this.platformId)&&j.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=j.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=j.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||j.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,n="auto"){const{numToleratedItems:o}=this.calculateNumItems(),s=this.getContentPosition(),r=(u=0,p)=>u<=p?0:u,a=(u,p,m)=>u*p+m,l=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:n});let c=0;this.both?(c={rows:r(e[0],o[0]),cols:r(e[1],o[1])},l(a(c.cols,this._itemSize[1],s.left),a(c.rows,this._itemSize[0],s.top))):(c=r(e,o),this.horizontal?l(a(c,this._itemSize,s.left),0):l(0,a(c,this._itemSize,s.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(e,n,o="auto"){if(n){const{first:s,viewport:r}=this.getRenderedRange(),a=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:o}),c="to-end"===n;if("to-start"===n){if(this.both)r.first.rows-s.rows>e[0]?a(r.first.cols*this._itemSize[1],(r.first.rows-1)*this._itemSize[0]):r.first.cols-s.cols>e[1]&&a((r.first.cols-1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.first-s>e){const u=(r.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)r.last.rows-s.rows<=e[0]+1?a(r.first.cols*this._itemSize[1],(r.first.rows+1)*this._itemSize[0]):r.last.cols-s.cols<=e[1]+1&&a((r.first.cols+1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.last-s<=e+1){const u=(r.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,o)}getRenderedRange(){const e=(s,r)=>Math.floor(s/(r||s));let n=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:s,scrollLeft:r}=this.elementViewChild.nativeElement;this.both?(n={rows:e(s,this._itemSize[0]),cols:e(r,this._itemSize[1])},o={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols}):(n=e(this.horizontal?r:s,this._itemSize),o=n+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:n,last:o}}}calculateNumItems(){const e=this.getContentPosition(),n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,o=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,s=(c,u)=>Math.ceil(c/(u||c)),r=c=>Math.ceil(c/2),a=this.both?{rows:s(o,this._itemSize[0]),cols:s(n,this._itemSize[1])}:s(this.horizontal?n:o,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[r(a.rows),r(a.cols)]:r(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:n}=this.calculateNumItems(),o=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,n]=[j.getWidth(this.contentEl),j.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),n!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,s]=[j.getWidth(this.elementViewChild.nativeElement),j.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=othis.elementViewChild.nativeElement.style[r]=a;this.both||this.horizontal?(s("height",o),s("width",n)):s("height",o)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),n=(o,s,r,a=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(s||[]).length*r+a+"px"};this.both?(n("height",this._items,this._itemSize[0],e.y),n("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?n("width",this._columns||this._items,this._itemSize,e.x):n("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const n=e?e.first:this.first,o=(r,a)=>r*a,s=(r=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${r}px, ${a}px, 0)`};if(this.both)s(o(n.cols,this._itemSize[1]),o(n.rows,this._itemSize[0]));else{const r=o(n,this._itemSize);this.horizontal?s(r,0):s(0,r)}}}onScrollPositionChange(e){const n=e.target,o=this.getContentPosition(),s=(P,W)=>P?P>W?P-W:P:0,r=(P,W)=>Math.floor(P/(W||P)),a=(P,W,te,fe,Ce,ve)=>P<=Ce?Ce:ve?te-fe-Ce:W+Ce-1,l=(P,W,te,fe,Ce,ve,ke)=>P<=ve?0:Math.max(0,ke?PW?te:P-2*ve),c=(P,W,te,fe,Ce,ve=!1)=>{let ke=W+fe+2*Ce;return P>=Ce&&(ke+=Ce+1),this.getLast(ke,ve)},u=s(n.scrollTop,o.top),p=s(n.scrollLeft,o.left);let m=this.both?{rows:0,cols:0}:0,_=this.last,b=!1,E=this.lastScrollPos;if(this.both){const P=this.lastScrollPos.top<=u,W=this.lastScrollPos.left<=p;if(!this._appendOnly||this._appendOnly&&(P||W)){const te={rows:r(u,this._itemSize[0]),cols:r(p,this._itemSize[1])},fe={rows:a(te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],P),cols:a(te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],W)};m={rows:l(te.rows,fe.rows,this.first.rows,0,0,this.d_numToleratedItems[0],P),cols:l(te.cols,fe.cols,this.first.cols,0,0,this.d_numToleratedItems[1],W)},_={rows:c(te.rows,m.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(te.cols,m.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||_.rows!==this.last.rows||m.cols!==this.first.cols||_.cols!==this.last.cols||this.isRangeChanged,E={top:u,left:p}}}else{const P=this.horizontal?p:u,W=this.lastScrollPos<=P;if(!this._appendOnly||this._appendOnly&&W){const te=r(P,this._itemSize);m=l(te,a(te,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,W),this.first,0,0,this.d_numToleratedItems,W),_=c(te,m,0,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||_!==this.last||this.isRangeChanged,E=P}}return{first:m,last:_,isRangeChanged:b,scrollPos:E}}onScrollChange(e){const{first:n,last:o,isRangeChanged:s,scrollPos:r}=this.onScrollPositionChange(e);if(s){const a={first:n,last:o};if(this.setContentPosition(a),this.first=n,this.last=o,this.lastScrollPos=r,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):n,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:n}=this.onScrollPositionChange(e);(n||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){ei(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,n=j.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,n,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(j.isVisible(this.elementViewChild?.nativeElement)){const[e,n]=[j.getWidth(this.elementViewChild?.nativeElement),j.getHeight(this.elementViewChild?.nativeElement)],[o,s]=[e!==this.defaultWidth,n!==this.defaultHeight];(this.both?o||s:this.horizontal?o:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=n,this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,n){return this.options&&this.options[e]?this.options[e](n):this[e].emit(n)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,n)=>this.getLoaderOptions(e,n),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const n=(this._items||[]).length,o=this.both?this.first.rows+e:this.first+e;return{index:o,count:n,first:0===o,last:o===n-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(e,n){const o=this.loaderArr.length;return{index:e,count:o,first:0===e,last:e===o-1,even:e%2==0,odd:e%2!=0,...n}}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-scroller"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($W,5),je(KW,5)),2&n){let s;Se(s=Ee())&&(o.elementViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Hn],ngContentSelectors:mQ,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(n,o){if(1&n&&(Ti(),g(0,dQ,8,16,"ng-container",0),g(1,gQ,2,1,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",!o._disabled)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,_s]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return t})(),Oi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,_s,Qe]})}return t})(),Kl=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:$t()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.config=s,this.renderer=r,this.viewContainer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(j.hasClass(e.relatedTarget,"p-tooltip")||j.hasClass(e.relatedTarget,"p-tooltip-text")||j.hasClass(e.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?j.appendChild(this.container,this.el.nativeElement):j.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",n=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),j.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Wn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Wn.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof $o){const n=this.viewContainer.createEmbeddedView(e);n.detectChanges(),n.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+j.getWindowScrollLeft(),top:e.top+j.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+j.getOuterWidth(this.el.nativeElement),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-j.getOuterWidth(this.container),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top-j.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top+j.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return j.hasClass(e,"p-inputwrapper")?j.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,o=e.left,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getViewport();return o+s>a.width||o<0||n<0||n+r>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):j.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Wn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(ki),V(hn),V(go))};static \u0275dir=ut({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.escape",function(r){return o.onPressEscape(r)},0,Qy)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Hn]})}return t})(),Nn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),Qs=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function _Q(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function IQ(t,i){1&t&&ze(0)}const Hu=function(t){return{height:t}},CQ=function(t,i,e){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},pC=function(t){return{$implicit:t}},vQ=["container"],bQ=["filter"],yQ=["focusInput"],xQ=["editableInput"],AQ=["items"],wQ=["scroller"],TQ=["overlay"],SQ=["firstHiddenFocusableEl"],EQ=["lastHiddenFocusableEl"];function DQ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.label())}}function kQ(t,i){1&t&&ze(0)}function MQ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(3);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.placeholder)}}function OQ(t,i){if(1&t&&g(0,MQ,2,1,"span",4),2&t){const e=f(2);d("ngIf",e.label()===e.placeholder||e.label()&&!e.placeholder)}}function LQ(t,i){if(1&t){const e=De();x(0,"span",10,11),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),g(2,DQ,2,1,"ng-container",12),g(3,kQ,1,0,"ng-container",13),g(4,OQ,1,1,"ng-template",null,14,In),A()}if(2&t){const e=Bt(5),n=f();d("ngClass",n.inputClass)("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("autofocus",n.autofocus),K("aria-disabled",n.disabled)("id",n.inputId)("aria-label",n.ariaLabel||("p-emptylabel"===n.label()?void 0:n.label()))("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible)("aria-controls",n.id+"_list")("tabindex",n.disabled?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0),h(2),d("ngIf",!n.selectedItemTemplate)("ngIfElse",e),h(1),d("ngTemplateOutlet",n.selectedItemTemplate)("ngTemplateOutletContext",He(19,pC,n.modelValue()))}}function PQ(t,i){if(1&t){const e=De();x(0,"input",15,16),me("input",function(o){return G(e),q(f().onEditableInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))}),A()}if(2&t){const e=f();d("ngClass",e.inputClass)("disabled",e.disabled),K("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function FQ(t,i){if(1&t){const e=De();x(0,"TimesIcon",19),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-dropdown-clear-icon"),K("data-pc-section","clearicon"))}function RQ(t,i){}function NQ(t,i){1&t&&g(0,RQ,0,0,"ng-template")}function VQ(t,i){if(1&t){const e=De();x(0,"span",20),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,NQ,1,0,null,21),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function BQ(t,i){if(1&t&&(we(0),g(1,FQ,1,2,"TimesIcon",17),g(2,VQ,2,2,"span",18),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function HQ(t,i){1&t&&le(0,"span",24),2&t&&d("ngClass",f(2).dropdownIcon)}function zQ(t,i){1&t&&le(0,"ChevronDownIcon",25),2&t&&d("styleClass","p-dropdown-trigger-icon")}function jQ(t,i){if(1&t&&(we(0),g(1,HQ,1,1,"span",22),g(2,zQ,1,1,"ChevronDownIcon",23),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function UQ(t,i){}function $Q(t,i){1&t&&g(0,UQ,0,0,"ng-template")}function KQ(t,i){if(1&t&&(x(0,"span",26),g(1,$Q,1,0,null,21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function GQ(t,i){1&t&&ze(0)}function qQ(t,i){1&t&&ze(0)}const pk=function(t){return{options:t}};function WQ(t,i){if(1&t&&(we(0),g(1,qQ,1,0,"ng-container",13),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,pk,e.filterOptions))}}function QQ(t,i){1&t&&le(0,"SearchIcon",25),2&t&&d("styleClass","p-dropdown-filter-icon")}function ZQ(t,i){}function YQ(t,i){1&t&&g(0,ZQ,0,0,"ng-template")}function XQ(t,i){if(1&t&&(x(0,"span",41),g(1,YQ,1,0,null,21),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function JQ(t,i){if(1&t){const e=De();x(0,"div",37)(1,"input",38,39),me("input",function(o){return G(e),q(f(3).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,QQ,1,1,"SearchIcon",23),g(4,XQ,2,1,"span",40),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||""),K("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function eZ(t,i){if(1&t&&(x(0,"div",35),me("click",function(n){return n.stopPropagation()}),g(1,WQ,2,4,"ng-container",12),g(2,JQ,5,7,"ng-template",null,36,In),A()),2&t){const e=Bt(3),n=f(2);h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function tZ(t,i){1&t&&ze(0)}const hk=function(t,i){return{$implicit:t,options:i}};function nZ(t,i){if(1&t&&g(0,tZ,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,hk,e,n))}}function iZ(t,i){1&t&&ze(0)}function oZ(t,i){if(1&t&&g(0,iZ,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,pk,e))}}function sZ(t,i){1&t&&(we(0),g(1,oZ,1,4,"ng-template",44),Te())}function rZ(t,i){if(1&t){const e=De();x(0,"p-scroller",42,43),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,nZ,1,5,"ng-template",9),g(3,sZ,2,0,"ng-container",4),A()}if(2&t){const e=f(2);yn(He(8,Hu,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function aZ(t,i){1&t&&ze(0)}const lZ=function(){return{}};function cZ(t,i){if(1&t&&(we(0),g(1,aZ,1,0,"ng-container",13),Te()),2&t){f();const e=Bt(9),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,hk,n.visibleOptions(),Jt(2,lZ)))}}function uZ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function dZ(t,i){1&t&&ze(0)}function pZ(t,i){if(1&t&&(we(0),x(1,"li",49),g(2,uZ,2,1,"span",4),g(3,dZ,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,Hu,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,pC,o.optionGroup))}}function hZ(t,i){if(1&t){const e=De();we(0),x(1,"p-dropdownItem",50),me("onClick",function(o){G(e);const s=f().$implicit;return q(f(3).onOptionSelect(o,s))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function fZ(t,i){if(1&t&&(g(0,pZ,4,9,"ng-container",4),g(1,hZ,2,9,"ng-container",4)),2&t){const e=i.$implicit;d("ngIf",e.group),h(1),d("ngIf",!e.group)}}function gZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function mZ(t,i){1&t&&ze(0,null,52)}function _Z(t,i){if(1&t&&(x(0,"li",51),g(1,gZ,2,1,"ng-container",12),g(2,mZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function IZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function CZ(t,i){1&t&&ze(0,null,53)}function vZ(t,i){if(1&t&&(x(0,"li",51),g(1,IZ,2,1,"ng-container",12),g(2,CZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function bZ(t,i){if(1&t&&(x(0,"ul",45,46),g(2,fZ,2,2,"ng-template",47),g(3,_Z,3,6,"li",48),g(4,vZ,3,6,"li",48),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",o.filterValue&&o.isEmpty()),h(1),d("ngIf",!o.filterValue&&o.isEmpty())}}function yZ(t,i){1&t&&ze(0)}function xZ(t,i){if(1&t){const e=De();x(0,"div",27)(1,"span",28,29),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,GQ,1,0,"ng-container",21),g(4,eZ,4,2,"div",30),x(5,"div",31),g(6,rZ,4,10,"p-scroller",32),g(7,cZ,2,6,"ng-container",4),g(8,bZ,5,7,"ng-template",null,33,In),A(),g(10,yZ,1,0,"ng-container",21),x(11,"span",28,34),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",e.filter),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngTemplateOutlet",e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const AZ={provide:un,useExisting:ft(()=>fk),multi:!0};let wZ=(()=>{class t{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new ge;onMouseEnter=new ge;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),g(1,_Q,2,1,"span",1),g(2,IQ,1,0,"ng-container",2),A()),2&n&&(d("id",o.id)("ngStyle",He(13,Hu,o.itemSize+"px"))("ngClass",Rn(15,CQ,o.selected,o.disabled,o.focused)),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(19,pC,o.option)))},dependencies:[Ct,gt,on,Ht,oo],encapsulation:2})}return t})(),fk=(()=>{class t{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get options(){return this._options()}set options(e){this._options.set(e)}onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onShow=new ge;onHide=new ge;onClear=new ge;onLazyLoad=new ge;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=bn(null);modelValue=bn(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=bn(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=bn(-1);labelId;listId;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&be.isNotEmpty(this.modelValue())&&""!==this.modelValue()&&this.showClear&&!this.disabled}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder&&e===this.placeholder,"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||e&&"p-emptylabel"!==e&&0!==e.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterBy||this.filterFields||this.optionValue?this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):this.options.filter(o=>-1!==o.toLowerCase().indexOf(this._filterValue().toLowerCase()));if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{const e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions()[e]):this.placeholder||"p-emptylabel"});constructor(e,n,o,s,r,a){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,a_(()=>{this.modelValue()&&this.editable&&this.updateEditableLabel()})}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&j.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&!this.modelValue()){const e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,o=!0,s=!1){const r=this.getOptionValue(n);this.updateModel(r,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o&&this.hide(!0),!1===s&&this.onChange.emit({originalEvent:e,value:r})}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder&&!this.modelValue()&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=void 0===this.getOptionLabel(this.modelValue())?this.editableInputViewChild.nativeElement.value:this.getOptionLabel(this.modelValue()))}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&void 0!==e?.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==e.target.tagName&&"clearicon"!==e.target.getAttribute("data-pc-section")&&!e.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.cd.detectChanges()))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}onEditableInput(e){const n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:n})}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n){if(!this.disabled&&!this.readonly)switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){const o=this.visibleOptions()[n];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(),e.preventDefault()}else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1)):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!n&&this.onEnterKey(e)}onEnterKey(e){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.hide()}else this.onArrowDownKey(e);e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild.el.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild.nativeElement;j.focus(n)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),this.cd.markForCheck()}applyFocus(){this.editable?j.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():j.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e)}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dropdown"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(vQ,5),je(bQ,5),je(yQ,5),je(xQ,5),je(AQ,5),je(wQ,5),je(TQ,5),je(SQ,5),je(EQ,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.editableInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[yt([AZ])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultPlaceholder",""],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,LQ,6,21,"span",2),g(3,PQ,2,5,"input",3),g(4,BQ,3,2,"ng-container",4),x(5,"div",5),g(6,jQ,3,2,"ng-container",4),g(7,KQ,2,1,"span",6),A(),x(8,"p-overlay",7,8),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(10,xZ,13,19,"ng-template",9),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),d("ngIf",!o.editable),h(1),d("ngIf",o.editable),h(1),d("ngIf",o.isVisibleClearIcon),h(1),K("aria-expanded",o.overlayVisible)("data-pc-section","trigger"),h(1),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,Bu,uC,mn,bi,Qs,wZ]},styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_f=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,gf,mn,bi,Qs,$l,Qe,Oi]})}return t})(),Or=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),If=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),hC=(()=>{class t{el;ngModel;cd;filled;constructor(e,n,o){this.el=e,this.ngModel=n,this.cd=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(n){return new(n||t)(V(bt),V(xh,8),V(Ft))};static \u0275dir=ut({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(n,o){1&n&&me("input",function(r){return o.onInput(r)}),2&n&&Ii("p-filled",o.filled)}})}return t})(),Zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const TZ=["input"];function SZ(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("ngClass","p-inputnumber-clear-icon"),K("data-pc-section","clearIcon"))}function EZ(t,i){}function DZ(t,i){1&t&&g(0,EZ,0,0,"ng-template")}function kZ(t,i){if(1&t){const e=De();x(0,"span",9),me("click",function(){return G(e),q(f(2).clear())}),g(1,DZ,1,0,null,10),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function MZ(t,i){if(1&t&&(we(0),g(1,SZ,1,2,"TimesIcon",6),g(2,kZ,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function OZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function LZ(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function PZ(t,i){}function FZ(t,i){1&t&&g(0,PZ,0,0,"ng-template")}function RZ(t,i){if(1&t&&(we(0),g(1,LZ,1,1,"AngleUpIcon",3),g(2,FZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function NZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function VZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function BZ(t,i){}function HZ(t,i){1&t&&g(0,BZ,0,0,"ng-template")}function zZ(t,i){if(1&t&&(we(0),g(1,VZ,1,1,"AngleDownIcon",3),g(2,HZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const gk=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},mk=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function jZ(t,i){if(1&t){const e=De();x(0,"span",11)(1,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(2,OZ,1,2,"span",13),g(3,RZ,3,2,"ng-container",3),A(),x(4,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(5,NZ,1,2,"span",13),g(6,zZ,3,2,"ng-container",3),A()()}if(2&t){const e=f();K("data-pc-section","buttonGroup"),h(1),Ve(e.incrementButtonClass),d("ngClass",Jt(17,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon),h(1),Ve(e.decrementButtonClass),d("ngClass",Jt(18,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section",e.decrementbutton),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}function UZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function $Z(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function KZ(t,i){}function GZ(t,i){1&t&&g(0,KZ,0,0,"ng-template")}function qZ(t,i){if(1&t&&(we(0),g(1,$Z,1,1,"AngleUpIcon",3),g(2,GZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function WZ(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(1,UZ,1,2,"span",13),g(2,qZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.incrementButtonClass),d("ngClass",Jt(8,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon)}}function QZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function ZZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function YZ(t,i){}function XZ(t,i){1&t&&g(0,YZ,0,0,"ng-template")}function JZ(t,i){if(1&t&&(we(0),g(1,ZZ,1,1,"AngleDownIcon",3),g(2,XZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function eY(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(1,QZ,1,2,"span",13),g(2,JZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.decrementButtonClass),d("ngClass",Jt(8,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","decrementbutton"),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}const tY=function(t,i,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},nY={provide:un,useExisting:ft(()=>_k),multi:!0};let _k=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new ge;onFocus=new ge;onBlur=new ge;onKeyDown=new ge;onClear=new ge;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,n,o,s){this.document=e,this.el=n,this.cd=o,this.injector=s}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(o=>!!e[o])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template}})}ngOnInit(){this.ngControl=this.injector.get(ds,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(e.map((o,s)=>[o,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=o=>n.get(o)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let o=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(o=this.prefix+o),this.suffix&&(o+=this.suffix),o}return e.toString()}return""}parseValue(e){let n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if("-"===n)return n;let o=+n;return isNaN(o)?null:o}return null}repeat(e,n,o){if(this.readonly)return;let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let o=this.step*n,s=this.parseValue(this.input?.nativeElement.value)||0,r=this.validateValue(s+o);this.maxlength&&this.maxlength0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n-1)+s.slice(n)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Delete":if(e.preventDefault(),n===o){const a=s.charAt(n),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,r=s.slice(0,n)+s.slice(n+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(n+1,n+1):r=s.slice(0,n)+s.slice(n+1);else if(l>0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n)+s.slice(n+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault())}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let n=e.which||e.keyCode,o=String.fromCharCode(n);const s=this.isDecimalSign(o),r=this.isMinusSign(o);13!=n&&e.preventDefault();const a=this.parseValue(this.input.nativeElement.value+o),l=null!=a?a.toString():"";this.maxlength&&l.length>this.maxlength||(48<=n&&n<=57||r||s)&&this.insert(e,o,{isDecimalSign:s,isMinusSign:r})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(n){this.maxlength&&(n=n.toString().substring(0,this.maxlength));let o=this.parseValue(n);null!=o&&this.insert(e,o.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const n=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:o,suffixCharIndex:s,currencyCharIndex:r}}insert(e,n,o={isDecimalSign:!1,isMinusSign:!1}){const s=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let r=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:p,currencyCharIndex:m}=this.getCharIndexes(l);let _;if(o.isMinusSign)0===r&&(_=l,(-1===u||0!==a)&&(_=this.insertText(l,n,0,a)),this.updateValue(e,_,n,"insert"));else if(o.isDecimalSign)c>0&&r===c?this.updateValue(e,l,n,"insert"):(c>r&&c0&&r>c){if(r+n.length-(c+1)<=b){const P=m>=r?m-1:p>=r?p:l.length;_=l.slice(0,r)+n+l.slice(r+n.length,P)+l.slice(P),this.updateValue(e,_,n,E)}}else _=this.insertText(l,n,r,a),this.updateValue(e,_,n,E)}}insertText(e,n,o,s){if(2===("."===n?n:n.split(".")).length){const a=e.slice(o,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,o)+this.formatValue(n)+e.slice(s):e||this.formatValue(n)}return s-o===e.length?this.formatValue(n):0===o?n+e.slice(s):s===e.length?e.slice(0,o)+n:e.slice(0,o)+n+e.slice(s)}deleteRange(e,n,o){let s;return s=o-n===e.length?"":0===n?e.slice(o):o===e.length?e.slice(0,n):e.slice(0,n)+e.slice(o),s}initCursor(){let e=this.input?.nativeElement.selectionStart,n=this.input?.nativeElement.value,o=n.length,s=null,r=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=r;let a=n.charAt(e);if(this.isNumeralChar(a))return e+r;let l=e-1;for(;l>=0;){if(a=n.charAt(l),this.isNumeralChar(a)){s=l+r;break}l--}if(null!==s)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,n,o,s){n=n||"";let r=this.input?.nativeElement.value,a=this.formatValue(e),l=r.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft),V($i))};static \u0275cmp=Oe({type:t,selectors:[["p-inputNumber"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(TZ,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-inputnumber-clearable",o.showClear&&"vertical"!=o.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[yt([nY]),Hn],decls:7,vars:39,consts:[[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("input",function(r){return o.onUserInput(r)})("keydown",function(r){return o.onInputKeyDown(r)})("keypress",function(r){return o.onInputKeyPress(r)})("paste",function(r){return o.onPaste(r)})("click",function(){return o.onInputClick()})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A(),g(3,MZ,3,2,"ng-container",3),g(4,jZ,7,19,"span",4),g(5,WZ,3,9,"button",5),g(6,eY,3,9,"button",5),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(35,tY,o.showButtons&&"stacked"===o.buttonLayout,o.showButtons&&"horizontal"===o.buttonLayout,o.showButtons&&"vertical"===o.buttonLayout))("ngStyle",o.style),K("data-pc-name","inputnumber")("data-pc-section","root"),h(1),Ve(o.inputStyleClass),d("ngClass","p-inputnumber-input")("ngStyle",o.inputStyle)("value",o.formattedValue())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("aria-valuemin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("placeholder",o.placeholder)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("title",o.title)("size",o.size)("name",o.name)("autocomplete",o.autocomplete)("maxlength",o.maxlength)("tabindex",o.tabindex)("aria-required",o.ariaRequired)("required",o.required)("min",o.min)("max",o.max)("data-pc-section","input"),h(2),d("ngIf","vertical"!=o.buttonLayout&&o.showClear&&o.value),h(1),d("ngIf",o.showButtons&&"stacked"===o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout))},dependencies:function(){return[Ct,gt,on,Ht,hC,hf,mn,If,Or]},styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),fC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Mi,mn,If,Or,Qe]})}return t})(),gC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),_C=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Zo=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function iY(t,i){1&t&&ze(0)}const IC=function(t){return{$implicit:t}};function oY(t,i){if(1&t&&(x(0,"div",15),g(1,iY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","start"),h(1),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function sY(t,i){if(1&t&&(x(0,"span",17),Le(1),A()),2&t){const e=f(2);h(1),dt(e.currentPageReport)}}function rY(t,i){1&t&&le(0,"AngleDoubleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function aY(t,i){}function lY(t,i){1&t&&g(0,aY,0,0,"ng-template")}function cY(t,i){if(1&t&&(x(0,"span",20),g(1,lY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const Cf=function(t){return{"p-disabled":t}};function uY(t,i){if(1&t){const e=De();x(0,"button",18),me("click",function(o){return G(e),q(f(2).changePageToFirst(o))}),g(1,rY,1,1,"AngleDoubleLeftIcon",6),g(2,cY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isFirstPage()||e.empty())("ngClass",He(5,Cf,e.isFirstPage()||e.empty())),K("aria-label","firstPageLabel"),h(1),d("ngIf",!e.firstPageLinkIconTemplate),h(1),d("ngIf",e.firstPageLinkIconTemplate)}}function dY(t,i){1&t&&le(0,"AngleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function pY(t,i){}function hY(t,i){1&t&&g(0,pY,0,0,"ng-template")}function fY(t,i){if(1&t&&(x(0,"span",20),g(1,hY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const gY=function(t){return{"p-highlight":t}};function mY(t,i){if(1&t){const e=De();x(0,"button",24),me("click",function(o){const r=G(e).$implicit;return q(f(3).onPageLinkClick(o,r-1))}),Le(1),A()}if(2&t){const e=i.$implicit,n=f(3);d("ngClass",He(2,gY,e-1==n.getPage())),h(1),Pt(" ",n.getLocalization(e)," ")}}function _Y(t,i){if(1&t&&(x(0,"span",22),g(1,mY,2,4,"button",23),A()),2&t){const e=f(2);h(1),d("ngForOf",e.pageLinks)}}function IY(t,i){1&t&&Le(0),2&t&&dt(f(3).currentPageReport)}function CY(t,i){if(1&t){const e=De();x(0,"p-dropdown",25),me("onChange",function(o){return G(e),q(f(2).onPageDropdownChange(o))}),g(1,IY,1,1,"ng-template",26),A()}if(2&t){const e=f(2);d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),K("aria-label","jumpToPageDropdownLabel")}}function vY(t,i){1&t&&le(0,"AngleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function bY(t,i){}function yY(t,i){1&t&&g(0,bY,0,0,"ng-template")}function xY(t,i){if(1&t&&(x(0,"span",20),g(1,yY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function AY(t,i){1&t&&le(0,"AngleDoubleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function wY(t,i){}function TY(t,i){1&t&&g(0,wY,0,0,"ng-template")}function SY(t,i){if(1&t&&(x(0,"span",20),g(1,TY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function EY(t,i){if(1&t){const e=De();x(0,"button",27),me("click",function(o){return G(e),q(f(2).changePageToLast(o))}),g(1,AY,1,1,"AngleDoubleRightIcon",6),g(2,SY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isLastPage()||e.empty())("ngClass",He(4,Cf,e.isLastPage()||e.empty())),h(1),d("ngIf",!e.lastPageLinkIconTemplate),h(1),d("ngIf",e.lastPageLinkIconTemplate)}}function DY(t,i){if(1&t){const e=De();x(0,"p-inputNumber",28),me("ngModelChange",function(o){return G(e),q(f(2).changePage(o-1))}),A()}if(2&t){const e=f(2);d("ngModel",e.currentPage())("disabled",e.empty())}}function kY(t,i){1&t&&ze(0)}function MY(t,i){if(1&t&&g(0,kY,1,0,"ng-container",16),2&t){const e=i.$implicit;d("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",He(2,IC,e))}}function OY(t,i){1&t&&(we(0),g(1,MY,1,4,"ng-template",31),Te())}function LY(t,i){if(1&t){const e=De();x(0,"p-dropdown",29),me("ngModelChange",function(o){return G(e),q(f(2).rows=o)})("onChange",function(o){return G(e),q(f(2).onRppChange(o))}),g(1,OY,2,0,"ng-container",30),A()}if(2&t){const e=f(2);d("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),h(1),d("ngIf",e.dropdownItemTemplate)}}function PY(t,i){1&t&&ze(0)}function FY(t,i){if(1&t&&(x(0,"div",32),g(1,PY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","end"),h(1),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function RY(t,i){if(1&t){const e=De();x(0,"div",1),g(1,oY,2,5,"div",2),g(2,sY,2,1,"span",3),g(3,uY,3,7,"button",4),x(4,"button",5),me("click",function(o){return G(e),q(f().changePageToPrev(o))}),g(5,dY,1,1,"AngleLeftIcon",6),g(6,fY,2,1,"span",7),A(),g(7,_Y,2,1,"span",8),g(8,CY,2,6,"p-dropdown",9),x(9,"button",10),me("click",function(o){return G(e),q(f().changePageToNext(o))}),g(10,vY,1,1,"AngleRightIcon",6),g(11,xY,2,1,"span",7),A(),g(12,EY,3,6,"button",11),g(13,DY,1,2,"p-inputNumber",12),g(14,LY,2,6,"p-dropdown",13),g(15,FY,2,5,"div",14),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass","p-paginator p-component"),K("data-pc-section","paginator")("data-pc-section","root"),h(1),d("ngIf",e.templateLeft),h(1),d("ngIf",e.showCurrentPageReport),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("disabled",e.isFirstPage()||e.empty())("ngClass",He(25,Cf,e.isFirstPage()||e.empty())),K("aria-label","prevPageLabel"),h(1),d("ngIf",!e.previousPageLinkIconTemplate),h(1),d("ngIf",e.previousPageLinkIconTemplate),h(1),d("ngIf",e.showPageLinks),h(1),d("ngIf",e.showJumpToPageDropdown),h(1),d("disabled",e.isLastPage()||e.empty())("ngClass",He(27,Cf,e.isLastPage()||e.empty())),K("aria-label","lastPageLabel"),h(1),d("ngIf",!e.nextPageLinkIconTemplate),h(1),d("ngIf",e.nextPageLinkIconTemplate),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("ngIf",e.showJumpToPageInput),h(1),d("ngIf",e.rowsPerPageOptions),h(1),d("ngIf",e.templateRight)}}let NY=(()=>{class t{cd;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new ge;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const n=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(n.map((s,r)=>[r,s]));return e>9?String(e).split("").map(r=>o.get(Number(r))).join(""):o.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),n=Math.min(this.pageLinkSize,e),o=Math.max(0,Math.ceil(this.getPage()-n/2)),s=Math.min(e-1,o+n-1);return o=Math.max(0,o-(this.pageLinkSize-(s-o+1))),[o,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),o=e[1];for(let s=e[0];s<=o;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,n){this.changePage(n),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-paginator"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Hn],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(n,o){1&n&&g(0,RY,16,29,"div",0),2&n&&d("ngIf",!!o.alwaysShow||o.pageLinks&&o.pageLinks.length>1)},dependencies:function(){return[Ct,Jn,gt,on,Ht,fk,sn,_k,sS,xh,oo,gC,mC,_C,Zo]},styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),vf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,_f,fC,uu,Qe,dn,gC,mC,_C,Zo,_f,fC,uu,Qe]})}return t})();const VY=["container"];function BY(t,i){1&t&&le(0,"span",8),2&t&&(Ve(f(2).$implicit.icon),d("ngClass","p-button-icon p-button-icon-left"),K("data-pc-section","icon"))}function HY(t,i){if(1&t&&(we(0),g(1,BY,1,4,"span",6),x(2,"span",7),Le(3),A(),Te()),2&t){const e=f().$implicit,n=f();h(1),d("ngIf",e.icon),h(1),K("data-pc-section","label"),h(1),dt(n.getOptionLabel(e))}}function zY(t,i){1&t&&ze(0)}const jY=function(t,i){return{$implicit:t,index:i}};function UY(t,i){if(1&t&&g(0,zY,1,0,"ng-container",9),2&t){const e=f(),n=e.$implicit,o=e.index;d("ngTemplateOutlet",f().selectButtonTemplate)("ngTemplateOutletContext",mt(2,jY,n,o))}}const $Y=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function KY(t,i){if(1&t){const e=De();x(0,"div",3),me("click",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onOptionSelect(o,r,a))})("keydown",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onKeyDown(o,r,a))})("focus",function(o){const r=G(e).index;return q(f().onFocus(o,r))})("blur",function(){return G(e),q(f().onBlur())}),g(1,HY,4,3,"ng-container",4),g(2,UY,1,5,"ng-template",null,5,In),A()}if(2&t){const e=i.$implicit,n=i.index,o=Bt(3),s=f();Ve(e.styleClass),d("role",s.multiple?"checkbox":"radio")("ngClass",Rn(14,$Y,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),K("tabindex",n===s.focusedIndex?"0":"-1")("aria-label",e.label)("aria-checked",s.isSelected(e))("aria-disabled",s.optionDisabled)("aria-pressed",s.isSelected(e))("title",e.title)("aria-labelledby",s.getOptionLabel(e))("data-pc-section","button"),h(1),d("ngIf",!s.itemTemplate)("ngIfElse",o)}}const GY={provide:un,useExisting:ft(()=>qY),multi:!0};let qY=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new ge;onChange=new ge;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,n,o){if(this.disabled||this.isOptionDisabled(n))return;let s=this.isSelected(n);if(s&&this.unselectable)return;let a,r=this.getOptionValue(n);if(this.multiple)a=s?this.value.filter(l=>!be.equals(l,r,this.equalityKey)):this.value?[...this.value,r]:[r];else{if(s&&!this.allowEmpty)return;a=s?null:r}this.focusedIndex=o,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:n,index:o})}onKeyDown(e,n,o){switch(e.code){case"Space":this.onOptionSelect(e,n,o),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}}changeTabIndexes(e,n){let o,s;for(let r=0;r<=this.container.nativeElement.children.length-1;r++)"0"===this.container.nativeElement.children[r].getAttribute("tabindex")&&(o={elem:this.container.nativeElement.children[r],index:r});s="prev"===n?0===o.index?this.container.nativeElement.children.length-1:o.index-1:o.index===this.container.nativeElement.children.length-1?0:o.index+1,this.focusedIndex=s,this.container.nativeElement.children[s].focus()}onFocus(e,n){this.focusedIndex=n}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!be.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1;const o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let s of this.value)if(be.equals(s,o,this.dataKey)){n=!0;break}}else n=be.equals(this.getOptionValue(e),this.value,this.equalityKey);return n}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-selectButton"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,5),2&n){let r;Se(r=Ee())&&(o.itemTemplate=r.first)}},viewQuery:function(n,o){if(1&n&&je(VY,5),2&n){let s;Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:"unselectable",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[yt([GY])],decls:3,vars:8,consts:[["role","group",3,"ngClass","ngStyle"],["container",""],["pRipple","","class","p-button p-component",3,"role","class","ngClass","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","",1,"p-button","p-component",3,"role","ngClass","click","keydown","focus","blur"],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,KY,4,18,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",o.style),K("aria-labelledby",o.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),h(2),d("ngForOf",o.options))},dependencies:[Ct,Jn,gt,on,Ht,oo],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return t})(),Ik=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,Qe]})}return t})(),yi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function WY(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxTrueIcon),K("data-pc-section","checkIcon"))}function QY(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","checkIcon"))}function ZY(t,i){}function YY(t,i){1&t&&g(0,ZY,0,0,"ng-template")}function XY(t,i){if(1&t&&(x(0,"span",12),g(1,YY,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","checkIcon"),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function JY(t,i){if(1&t&&(we(0),g(1,QY,1,2,"CheckIcon",9),g(2,XY,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function eX(t,i){if(1&t&&(we(0),g(1,WY,1,2,"span",7),g(2,JY,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxTrueIcon),h(1),d("ngIf",!e.checkboxTrueIcon)}}function tX(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxFalseIcon),K("data-pc-section","uncheckIcon"))}function nX(t,i){1&t&&le(0,"TimesIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","uncheckIcon"))}function iX(t,i){}function oX(t,i){1&t&&g(0,iX,0,0,"ng-template")}function sX(t,i){if(1&t&&(x(0,"span",12),g(1,oX,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","uncheckIcon"),h(1),d("ngTemplateOutlet",e.uncheckIconTemplate)}}function rX(t,i){if(1&t&&(we(0),g(1,nX,1,2,"TimesIcon",9),g(2,sX,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.uncheckIconTemplate),h(1),d("ngIf",e.uncheckIconTemplate)}}function aX(t,i){if(1&t&&(we(0),g(1,tX,1,2,"span",7),g(2,rX,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxFalseIcon),h(1),d("ngIf",!e.checkboxFalseIcon)}}const lX=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function cX(t,i){if(1&t&&(x(0,"label",14),Le(1),A()),2&t){const e=f();d("ngClass",Rn(3,lX,null!=e.value,e.disabled,e.focused)),K("for",e.inputId),h(1),dt(e.label)}}const uX=function(t,i){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},dX=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},pX={provide:un,useExisting:ft(()=>hX),multi:!0};let hX=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabel;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new ge;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.focus())}onKeyDown(e){"Enter"===e.key&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[yt([pX])],decls:8,vars:26,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none",3,"name","readonly","disabled","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-tristatecheckbox-label",3,"ngClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-tristatecheckbox-label",3,"ngClass"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.onClick(a,l))}),x(1,"div",1)(2,"input",2,3),me("keydown",function(a){return o.onKeyDown(a)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,eX,3,2,"ng-container",5),g(6,aX,3,2,"ng-container",5),A()(),g(7,cX,2,7,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(19,uX,o.disabled,o.focused)),K("data-pc-name","tristatecheckbox")("data-pc-section","root"),h(2),d("name",o.name)("readonly",o.readonly)("disabled",o.disabled),K("id",o.inputId)("tabindex",o.tabindex)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(22,dX,null!=o.value,o.disabled,o.focused)),K("aria-checked",!0===o.value),h(1),d("ngIf",!0===o.value),h(1),d("ngIf",!1===o.value),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi,mn]},encapsulation:2,changeDetection:0})}return t})(),fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,yi,mn,Qe]})}return t})(),CC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),gX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Ck=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[st,Et],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),A(),x(6,"defs")(7,"clipPath",5),le(8,"rect",6),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(6),d("id",o.pathId))},encapsulation:2})}return t})(),vk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.59836 13.2009C2.44634 13.2009 2.29432 13.1449 2.1743 13.0248L0.174024 11.0246C-0.0580081 10.7925 -0.0580081 10.4085 0.174024 10.1764C0.406057 9.94441 0.79011 9.94441 1.02214 10.1764L2.59836 11.7527L4.17458 10.1764C4.40662 9.94441 4.79067 9.94441 5.0227 10.1764C5.25473 10.4085 5.25473 10.7925 5.0227 11.0246L3.02242 13.0248C2.90241 13.1449 2.75038 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),bk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.59864 3.99958C4.44662 3.99958 4.2946 3.94357 4.17458 3.82356L2.59836 2.24734L1.02214 3.82356C0.79011 4.05559 0.406057 4.05559 0.174024 3.82356C-0.0580081 3.59152 -0.0580081 3.20747 0.174024 2.97544L2.1743 0.97516C2.40634 0.743127 2.79039 0.743127 3.02242 0.97516L5.0227 2.97544C5.25473 3.20747 5.25473 3.59152 5.0227 3.82356C4.90268 3.94357 4.75066 3.99958 4.59864 3.99958Z","fill","currentColor"],["d","M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),mX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const _X=["container"],IX=["resizeHelper"],CX=["reorderIndicatorUp"],vX=["reorderIndicatorDown"],bX=["wrapper"],yX=["table"],xX=["thead"],AX=["tfoot"],wX=["scroller"];function TX(t,i){1&t&&le(0,"i"),2&t&&Ve("p-datatable-loading-icon "+f(2).loadingIcon)}function SX(t,i){1&t&&le(0,"SpinnerIcon",19),2&t&&d("spin",!0)("styleClass","p-datatable-loading-icon")}function EX(t,i){}function DX(t,i){1&t&&g(0,EX,0,0,"ng-template")}function kX(t,i){if(1&t&&(x(0,"span",20),g(1,DX,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function MX(t,i){if(1&t&&(we(0),g(1,SX,1,2,"SpinnerIcon",17),g(2,kX,2,1,"span",18),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function OX(t,i){if(1&t&&(x(0,"div",15),g(1,TX,1,2,"i",16),g(2,MX,3,2,"ng-container",8),A()),2&t){const e=f();h(1),d("ngIf",e.loadingIcon),h(1),d("ngIf",!e.loadingIcon)}}function LX(t,i){1&t&&ze(0)}function PX(t,i){if(1&t&&(x(0,"div",22),g(1,LX,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.captionTemplate)}}function FX(t,i){1&t&&ze(0)}function RX(t,i){1&t&&g(0,FX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function NX(t,i){1&t&&g(0,RX,1,1,"ng-template",24)}function VX(t,i){1&t&&ze(0)}function BX(t,i){1&t&&g(0,VX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function HX(t,i){1&t&&g(0,BX,1,1,"ng-template",25)}function zX(t,i){1&t&&ze(0)}function jX(t,i){1&t&&g(0,zX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function UX(t,i){1&t&&g(0,jX,1,1,"ng-template",26)}function $X(t,i){1&t&&ze(0)}function KX(t,i){1&t&&g(0,$X,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function GX(t,i){1&t&&g(0,KX,1,1,"ng-template",27)}function qX(t,i){if(1&t){const e=De();x(0,"p-paginator",23),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,NX,1,0,null,8),g(2,HX,1,0,null,8),g(3,UX,1,0,null,8),g(4,GX,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function WX(t,i){1&t&&ze(0)}const yk=function(t,i){return{$implicit:t,options:i}};function QX(t,i){if(1&t&&g(0,WX,1,0,"ng-container",31),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(10))("ngTemplateOutletContext",mt(2,yk,e,n))}}const ZX=function(t){return{height:t}};function YX(t,i){if(1&t){const e=De();x(0,"p-scroller",28,29),me("onLazyLoad",function(o){return G(e),q(f().onLazyItemLoad(o))}),g(2,QX,1,5,"ng-template",30),A()}if(2&t){const e=f();yn(He(15,ZX,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),d("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function XX(t,i){1&t&&ze(0)}const JX=function(t){return{columns:t}};function eJ(t,i){if(1&t&&(we(0),g(1,XX,1,0,"ng-container",31),Te()),2&t){const e=f(),n=Bt(10);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(4,yk,e.processedData,He(2,JX,e.columns)))}}function tJ(t,i){1&t&&ze(0)}function nJ(t,i){1&t&&ze(0)}function iJ(t,i){if(1&t&&le(0,"tbody",40),2&t){const e=f().options,n=f();d("value",n.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",n.frozenBodyTemplate)("frozen",!0)}}function oJ(t,i){if(1&t&&le(0,"tbody",41),2&t){const e=f().options;yn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function sJ(t,i){1&t&&ze(0)}const Lr=function(t){return{$implicit:t}};function rJ(t,i){if(1&t&&(x(0,"tfoot",42,43),g(2,sJ,1,0,"ng-container",31),A()),2&t){const e=f().options,n=f();h(2),d("ngTemplateOutlet",n.footerGroupedTemplate||n.footerTemplate)("ngTemplateOutletContext",He(2,Lr,e.columns))}}const aJ=function(t,i,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":i,"p-datatable-resizable-table-fit":e}};function lJ(t,i){if(1&t&&(x(0,"table",32,33),g(2,tJ,1,0,"ng-container",31),x(3,"thead",34,35),g(5,nJ,1,0,"ng-container",31),A(),g(6,iJ,1,5,"tbody",36),le(7,"tbody",37),g(8,oJ,1,2,"tbody",38),g(9,rJ,3,4,"tfoot",39),A()),2&t){const e=i.options,n=f();yn(n.tableStyle),Ve(n.tableStyleClass),d("ngClass",Rn(20,aJ,n.scrollable,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode)),K("id",n.id+"-table"),h(2),d("ngTemplateOutlet",n.colGroupTemplate)("ngTemplateOutletContext",He(24,Lr,e.columns)),h(3),d("ngTemplateOutlet",n.headerGroupedTemplate||n.headerTemplate)("ngTemplateOutletContext",He(26,Lr,e.columns)),h(1),d("ngIf",n.frozenValue||n.frozenBodyTemplate),h(1),yn(e.contentStyle),d("ngClass",e.contentStyleClass)("value",n.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",n.bodyTemplate)("scrollerOptions",e),h(1),d("ngIf",e.spacerStyle),h(1),d("ngIf",n.footerGroupedTemplate||n.footerTemplate)}}function cJ(t,i){1&t&&ze(0)}function uJ(t,i){1&t&&g(0,cJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function dJ(t,i){1&t&&g(0,uJ,1,1,"ng-template",24)}function pJ(t,i){1&t&&ze(0)}function hJ(t,i){1&t&&g(0,pJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function fJ(t,i){1&t&&g(0,hJ,1,1,"ng-template",25)}function gJ(t,i){1&t&&ze(0)}function mJ(t,i){1&t&&g(0,gJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function _J(t,i){1&t&&g(0,mJ,1,1,"ng-template",26)}function IJ(t,i){1&t&&ze(0)}function CJ(t,i){1&t&&g(0,IJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function vJ(t,i){1&t&&g(0,CJ,1,1,"ng-template",27)}function bJ(t,i){if(1&t){const e=De();x(0,"p-paginator",44),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,dJ,1,0,null,8),g(2,fJ,1,0,null,8),g(3,_J,1,0,null,8),g(4,vJ,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function yJ(t,i){1&t&&ze(0)}function xJ(t,i){if(1&t&&(x(0,"div",45),g(1,yJ,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.summaryTemplate)}}function AJ(t,i){1&t&&le(0,"div",46,47)}function wJ(t,i){1&t&&le(0,"ArrowDownIcon")}function TJ(t,i){}function SJ(t,i){1&t&&g(0,TJ,0,0,"ng-template")}function EJ(t,i){if(1&t&&(x(0,"span",48,49),g(2,wJ,1,0,"ArrowDownIcon",8),g(3,SJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorUpIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function DJ(t,i){1&t&&le(0,"ArrowUpIcon")}function kJ(t,i){}function MJ(t,i){1&t&&g(0,kJ,0,0,"ng-template")}function OJ(t,i){if(1&t&&(x(0,"span",50,51),g(2,DJ,1,0,"ArrowUpIcon",8),g(3,MJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorDownIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const LJ=function(t,i,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":i,"p-datatable-flex-scrollable":e}},PJ=function(t){return{maxHeight:t}},FJ=["pTableBody",""];function RJ(t,i){1&t&&ze(0)}const bC=function(t,i,e,n,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o}};function NJ(t,i){if(1&t&&(we(0,3),g(1,RJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function VJ(t,i){1&t&&ze(0)}function BJ(t,i){if(1&t&&(we(0),g(1,VJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function HJ(t,i){1&t&&ze(0)}const zJ=function(t,i,e,n,o,s,r){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o,rowgroup:s,rowspan:r}};function jJ(t,i){if(1&t&&(we(0),g(1,HJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",function Aw(t,i,e,n,o,s,r,a,l,c){const u=zi()+t,p=Ne();let m=Do(p,u,e,n,o,s);return Dp(p,u+4,r,a,l)||m?ls(p,u+7,c?i.call(c,e,n,o,s,r,a,l):i(e,n,o,s,r,a,l)):zc(p,u+7)}(2,zJ,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen,s.shouldRenderRowspan(s.value,n,o),s.calculateRowGroupSize(s.value,n,o)))}}function UJ(t,i){1&t&&ze(0)}function $J(t,i){if(1&t&&(we(0,3),g(1,UJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function KJ(t,i){if(1&t&&(g(0,NJ,2,8,"ng-container",2),g(1,BJ,2,8,"ng-container",0),g(2,jJ,2,10,"ng-container",0),g(3,$J,2,8,"ng-container",2)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",o.dt.groupHeaderTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,n)),h(1),d("ngIf","rowspan"!==o.dt.rowGroupMode),h(1),d("ngIf","rowspan"===o.dt.rowGroupMode),h(1),d("ngIf",o.dt.groupFooterTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,e,n))}}function GJ(t,i){if(1&t&&(we(0),g(1,KJ,4,4,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function qJ(t,i){1&t&&ze(0)}const bf=function(t,i,e,n,o,s){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:o,frozen:s}};function WJ(t,i){if(1&t&&(we(0),g(1,qJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.template)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function QJ(t,i){1&t&&ze(0)}function ZJ(t,i){if(1&t&&(we(0,3),g(1,QJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function YJ(t,i){1&t&&ze(0)}function XJ(t,i){1&t&&ze(0)}function JJ(t,i){if(1&t&&(we(0,3),g(1,XJ,1,0,"ng-container",4),Te()),2&t){const e=f(2),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}const xk=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function eee(t,i){if(1&t&&(we(0),g(1,YJ,1,0,"ng-container",4),g(2,JJ,2,9,"ng-container",2),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",gr(3,xk,n,s.getRowIndex(o),s.columns,s.frozen)),h(1),d("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,n,s.getRowIndex(o)))}}function tee(t,i){if(1&t&&(g(0,WJ,2,9,"ng-container",0),g(1,ZJ,2,9,"ng-container",2),g(2,eee,3,8,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",!o.dt.groupHeaderTemplate),h(1),d("ngIf",o.dt.groupHeaderTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(n))),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function nee(t,i){if(1&t&&(we(0),g(1,tee,3,3,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function iee(t,i){1&t&&ze(0)}function oee(t,i){1&t&&ze(0)}function see(t,i){if(1&t&&(we(0),g(1,oee,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",gr(2,xk,n,s.getRowIndex(o),s.columns,s.frozen))}}function ree(t,i){if(1&t&&(g(0,iee,1,0,"ng-container",4),g(1,see,2,7,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ea(3,bf,e,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(e),"row"===o.dt.editMode&&o.dt.isRowEditing(e),o.frozen)),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function aee(t,i){if(1&t&&(we(0),g(1,ree,2,10,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function lee(t,i){1&t&&ze(0)}const Ak=function(t,i){return{$implicit:t,frozen:i}};function cee(t,i){if(1&t&&(we(0),g(1,lee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}function uee(t,i){1&t&&ze(0)}function dee(t,i){if(1&t&&(we(0),g(1,uee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}let yC=(()=>{class t{sortSource=new re;selectionSource=new re;contextMenuSource=new re;valueSource=new re;totalRecordsSource=new re;columnsSource=new re;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),xC=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new ge;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,n)=>n;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new ge;selectionChange=new ge;onRowSelect=new ge;onRowUnselect=new ge;onPage=new ge;onSort=new ge;onFilter=new ge;onLazyLoad=new ge;onRowExpand=new ge;onRowCollapse=new ge;onContextMenuSelect=new ge;onColResize=new ge;onColReorder=new ge;onRowReorder=new ge;onEditInit=new ge;onEditComplete=new ge;onEditCancel=new ge;onHeaderCheckboxToggle=new ge;sortFunction=new ge;firstChange=new ge;rowsChange=new ge;onStateSave=new ge;onStateRestore=new ge;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=$t();styleElement;responsiveStyleElement;window;constructor(e,n,o,s,r,a,l,c,u,p){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.config=p,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const n=e||this.processedData;if(n&&this.paginator){const o=this.lazy?0:this.first;return n.slice(o,o+this.rows)}return n}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(be.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(be.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let n=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let o=n.metaKey||n.ctrlKey,s=this.getSortMeta(e.field);s?o?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&n){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:n}):(this.value.sort((s,r)=>{let a=be.resolveFieldData(s,e),l=be.resolveFieldData(r,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):al?1:0,n*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let o={field:e,order:n};this.onSort.emit(o),this.tableService.onSort(o)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,o,s){const r=be.resolveFieldData(e,o[s].field),a=be.resolveFieldData(n,o[s].field);return 0===be.compare(r,a,this.filterLocale)?o.length-1>s?this.multisortField(e,n,o,s+1):0:this.compareValuesOnSort(r,a,o[s].order)}compareValuesOnSort(e,n,o){return be.sort(e,n,o,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let n=0;nb!=m),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row"})}else this.isSingleSelectionMode()?(this._selection=r,this.selectionChange.emit(r),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(p?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,r],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})):(this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let p=this.findIndexInSelection(r);this._selection=this.selection.filter((m,_)=>_!=p),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const n=e.rowData,o=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(n),r=this.dataKey?String(be.resolveFieldData(n,this.dataKey)):null;if(!s){if(!this.isRowSelectable(n,o))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),r&&(this.selectionKeys={},this.selectionKeys[r]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),r&&(this.selectionKeys[r]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let o,s;this.anchorRowIndex>n?(o=n,s=this.anchorRowIndex):this.anchorRowIndexr?(n=this.anchorRowIndex,o=this.rangeRowIndex):sm!=c);let u=this.dataKey?String(be.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[be.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length)for(let o=0;ol!=r),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const o=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let s=this.selectionPageOnly&&this._selection?this._selection.filter(r=>!o.some(a=>this.equals(r,a))):[];n&&(s=this.frozenValue?[...s,...this.frozenValue,...o]:[...s,...o],s=this.rowSelectable?s.filter((r,a)=>this.rowSelectable({data:r,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:be.equals(e,n,this.dataKey)}filter(e,n,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let n=0;nthis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let n of e)n.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let n,o="",s=this.columns;e&&e.selectionOnly?n=this.selection||[]:e&&e.allValues?n=this.value||[]:(n=this.filteredValue||this.value,this.frozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let l=0;l{o+="\n";for(let u=0;u{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(j.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===j.find(n,".ng-invalid.ng-dirty").length){let o=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[o]}}cancelRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let o=String(be.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[o]?(delete this.expandedRowKeys[o],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[o]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;j.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,o=this.resizeColumnElement.offsetWidth+e;if(o>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;o>15&&a>15&&this.resizeTableCells(o,a)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(o,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",j.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const n=j.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return j.find(n,"tr > th").forEach(s=>e.push(j.getOuterWidth(s))),e}onColumnDragStart(e,n){this.reorderIconWidth=j.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=j.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let o=j.getOffset(this.containerViewChild?.nativeElement),s=j.getOffset(n);if(this.draggedColumn!=n){j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),j.indexWithinGroup(n,"preorderablecolumn");let l=s.left-o.left,u=s.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-o.top+n.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,n){if(e.preventDefault(),this.draggedColumn){let o=j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=j.indexWithinGroup(n,"preorderablecolumn"),r=o!=s;if(r&&(s-o==1&&-1===this.dropPosition||o-s==1&&1===this.dropPosition)&&(r=!1),r&&so&&-1===this.dropPosition&&(s-=1),r&&(be.reorderArray(this.columns,o,s),this.onColReorder.emit({dragIndex:o,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement&&this.resizeColumnElement.isSameNode(this.draggedColumn)){let a="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();be.reorderArray(a,o+1,s+1),this.updateStyleElement(a,o,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,n){let o=j.index(this.resizeColumnElement),s="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(s,o,e,n)}updateStyleElement(e,n,o,s){this.destroyStyleElement(),this.createStyleElement();let r="";e.forEach((a,l)=>{let c=l===n?o:s&&l===n+1?s:a;r+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {\n width: ${c}px !important; max-width: ${c}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",r)}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,o){if(this.rowDragging&&this.draggedRowIndex!==n){let s=j.getOffset(o).top,r=e.pageY,a=s+j.getOuterHeight(o)/2,l=o.previousElementSibling;rthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;be.reorderArray(this.value,this.draggedRowIndex,o),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:o})}this.onRowDragLeave(e,n),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!ei(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const n=this.getStorage().getItem(this.stateKey),o=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let r=JSON.parse(n,function(r,a){return"string"==typeof a&&o.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=r.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=r.rows,this.rowsChange.emit(this.rows))),r.sortField&&(this.restoringSort=!0,this._sortField=r.sortField,this._sortOrder=r.sortOrder),r.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=r.multiSortMeta),r.filters&&(this.restoringFilter=!0,this.filters=r.filters),this.resizableColumns&&(this.columnWidthsState=r.columnWidths,this.tableWidthState=r.tableWidth),r.expandedRowKeys&&(this.expandedRowKeys=r.expandedRowKeys),r.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(r.selection)),this.stateRestored=!0,this.onStateRestore.emit(r)}}saveColumnWidths(e){let n=[];j.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(s=>n.push(j.getOuterWidth(s))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=j.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),be.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((o,s)=>{n+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {\n width: ${o}px !important; max-width: ${o}px !important\n }\n `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(o=>{n.push(o.field||o.key)}),e.columnOrder=n}}restoreColumnOrder(){const n=this.getStorage().getItem(this.stateKey);if(n){let s=JSON.parse(n).columnOrder;if(s){let r=[];s.map(a=>{let l=this.findColumnByKey(a);l&&r.push(l)}),this.columnOrderStateRestored=!0,this.columns=r}}}findColumnByKey(e){if(!this.columns)return null;for(let n of this.columns)if(n.key===e||n.field===e)return n}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){ei(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(bt),V(Tt),V(yC),V(Ft),V(df),V(Dr),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-table"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(_X,5),je(IX,5),je(CX,5),je(vX,5),je(bX,5),je(yX,5),je(xX,5),je(AX,5),je(wX,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.resizeHelperViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorUpViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorDownViewChild=s.first),Se(s=Ee())&&(o.wrapperViewChild=s.first),Se(s=Ee())&&(o.tableViewChild=s.first),Se(s=Ee())&&(o.tableHeaderViewChild=s.first),Se(s=Ee())&&(o.tableFooterViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[yt([yC]),Hn],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],["role","rowgroup",1,"p-datatable-thead"],["thead",""],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,OX,3,2,"div",2),g(3,PX,2,1,"div",3),g(4,qX,5,23,"p-paginator",4),x(5,"div",5,6),g(7,YX,3,17,"p-scroller",7),g(8,eJ,2,7,"ng-container",8),g(9,lJ,10,28,"ng-template",null,9,In),A(),g(11,bJ,5,23,"p-paginator",10),g(12,xJ,2,1,"div",11),g(13,AJ,2,0,"div",12),g(14,EJ,4,2,"span",13),g(15,OJ,4,2,"span",14),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(16,LJ,o.rowHover||o.selectionMode,o.scrollable,o.scrollable&&"flex"===o.scrollHeight)),K("id",o.id),h(2),d("ngIf",o.loading&&o.showLoader),h(1),d("ngIf",o.captionTemplate),h(1),d("ngIf",o.paginator&&("top"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngStyle",He(20,PJ,o.virtualScroll?"":o.scrollHeight)),h(2),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.paginator&&("bottom"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngIf",o.summaryTemplate),h(1),d("ngIf",o.resizableColumns),h(1),d("ngIf",o.reorderableColumns),h(1),d("ngIf",o.reorderableColumns))},dependencies:function(){return[Ct,gt,on,Ht,NY,sn,Bu,CC,vC,_s,rte]},styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return t})(),rte=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,n,o,s){this.dt=e,this.tableService=n,this.cd=o,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o+1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}calculateRowGroupSize(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=s,a=0;for(;s===r;){a++;let l=e[++o];if(!l)break;r=be.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=j.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=j.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,n){return this.dt.virtualScroll&&(n=n||this.scrollerOptions)?n[e]:null}getRowIndex(e){const n=this.dt.paginator?this.dt.first+e:e,o=this.getScrollerOption("getItemOptions");return o?o(n).index:n}static \u0275fac=function(n){return new(n||t)(V(xC),V(yC),V(Ft),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:FJ,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(g(0,GJ,2,2,"ng-container",0),g(1,nee,2,2,"ng-container",0),g(2,aee,2,2,"ng-container",0),g(3,cee,2,5,"ng-container",0),g(4,dee,2,5,"ng-container",0)),2&n&&(d("ngIf",!o.dt.expandedRowTemplate),h(1),d("ngIf",o.dt.expandedRowTemplate&&!(o.frozen&&o.dt.frozenExpandedRowTemplate)),h(1),d("ngIf",o.dt.frozenExpandedRowTemplate&&o.frozen),h(1),d("ngIf",o.dt.loading),h(1),d("ngIf",o.dt.isEmpty()&&!o.dt.loading))},dependencies:[Jn,gt,on],encapsulation:2})}return t})(),ate=(()=>{class t{dt;data;pRowTogglerDisabled;constructor(e){this.dt=e}onClick(e){this.isEnabled()&&(this.dt.toggleRow(this.data,e),e.preventDefault())}isEnabled(){return!0!==this.pRowTogglerDisabled}static \u0275fac=function(n){return new(n||t)(V(xC))};static \u0275dir=ut({type:t,selectors:[["","pRowToggler",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("click",function(r){return o.onClick(r)})},inputs:{data:["pRowToggler","data"],pRowTogglerDisabled:"pRowTogglerDisabled"}})}return t})(),wk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,Zs,_f,uu,Mi,Ik,uk,fC,fX,Oi,CC,vC,_s,Ck,bk,vk,yi,gX,mX,Qe,Oi]})}return t})(),Tk=(()=>{class t{el;pFocusTrapDisabled=!1;constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const n=j.getNextFocusableElement(this.el.nativeElement,e.shiftKey);n&&(n.focus(),n.select?.())}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.tab",function(r){return o.onkeydown(r)})("keydown.shift.tab",function(r){return o.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}})}return t})(),Sk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),AC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),wC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const lte=["titlebar"],cte=["content"],ute=["footer"];function dte(t,i){if(1&t){const e=De();x(0,"div",11),me("mousedown",function(o){return G(e),q(f(3).initResize(o))}),A()}}function pte(t,i){if(1&t&&(x(0,"span",18),Le(1),A()),2&t){const e=f(4);d("id",e.getAriaLabelledBy()),h(1),dt(e.header)}}function hte(t,i){1&t&&(x(0,"span",18),Kn(1,1),A()),2&t&&d("id",f(4).getAriaLabelledBy())}function fte(t,i){1&t&&ze(0)}function gte(t,i){if(1&t&&le(0,"span",22),2&t){const e=f(5);d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function mte(t,i){1&t&&le(0,"WindowMaximizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function _te(t,i){1&t&&le(0,"WindowMinimizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function Ite(t,i){if(1&t&&(we(0),g(1,mte,1,1,"WindowMaximizeIcon",23),g(2,_te,1,1,"WindowMinimizeIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.maximized&&!e.maximizeIconTemplate),h(1),d("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function Cte(t,i){}function vte(t,i){1&t&&g(0,Cte,0,0,"ng-template")}function bte(t,i){if(1&t&&(we(0),g(1,vte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.maximizeIconTemplate)}}function yte(t,i){}function xte(t,i){1&t&&g(0,yte,0,0,"ng-template")}function Ate(t,i){if(1&t&&(we(0),g(1,xte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.minimizeIconTemplate)}}const wte=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function Tte(t,i){if(1&t){const e=De();x(0,"button",19),me("click",function(){return G(e),q(f(4).maximize())})("keydown.enter",function(){return G(e),q(f(4).maximize())}),g(1,gte,1,1,"span",20),g(2,Ite,3,2,"ng-container",21),g(3,bte,2,1,"ng-container",21),g(4,Ate,2,1,"ng-container",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,wte)),h(1),d("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),h(1),d("ngIf",!e.maximizeIcon),h(1),d("ngIf",!e.maximized),h(1),d("ngIf",e.maximized)}}function Ste(t,i){1&t&&le(0,"span",27),2&t&&d("ngClass",f(6).closeIcon)}function Ete(t,i){1&t&&le(0,"TimesIcon",24),2&t&&d("styleClass","p-dialog-header-close-icon")}function Dte(t,i){if(1&t&&(we(0),g(1,Ste,1,1,"span",26),g(2,Ete,1,1,"TimesIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",e.closeIcon),h(1),d("ngIf",!e.closeIcon)}}function kte(t,i){}function Mte(t,i){1&t&&g(0,kte,0,0,"ng-template")}function Ote(t,i){if(1&t&&(x(0,"span"),g(1,Mte,1,0,null,9),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}const Lte=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function Pte(t,i){if(1&t){const e=De();x(0,"button",25),me("click",function(o){return G(e),q(f(4).close(o))})("keydown.enter",function(o){return G(e),q(f(4).close(o))}),g(1,Dte,3,2,"ng-container",21),g(2,Ote,2,1,"span",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,Lte)),K("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),h(1),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Fte(t,i){if(1&t){const e=De();x(0,"div",12,13),me("mousedown",function(o){return G(e),q(f(3).initDrag(o))}),g(2,pte,2,2,"span",14),g(3,hte,2,1,"span",14),g(4,fte,1,0,"ng-container",9),x(5,"div",15),g(6,Tte,5,6,"button",16),g(7,Pte,3,6,"button",17),A()()}if(2&t){const e=f(3);h(2),d("ngIf",!e.headerFacet&&!e.headerTemplate),h(1),d("ngIf",e.headerFacet),h(1),d("ngTemplateOutlet",e.headerTemplate),h(2),d("ngIf",e.maximizable),h(1),d("ngIf",e.closable)}}function Rte(t,i){1&t&&ze(0)}function Nte(t,i){1&t&&ze(0)}function Vte(t,i){if(1&t&&(x(0,"div",28,29),Kn(2,2),g(3,Nte,1,0,"ng-container",9),A()),2&t){const e=f(3);h(3),d("ngTemplateOutlet",e.footerTemplate)}}const Bte=function(t,i,e,n){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},Hte=function(t,i){return{transform:t,transition:i}},zte=function(t){return{value:"visible",params:t}};function jte(t,i){if(1&t){const e=De();x(0,"div",3,4),me("@animation.start",function(o){return G(e),q(f(2).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(2).onAnimationEnd(o))}),g(2,dte,1,0,"div",5),g(3,Fte,8,5,"div",6),x(4,"div",7,8),Kn(6),g(7,Rte,1,0,"ng-container",9),A(),g(8,Vte,4,1,"div",10),A()}if(2&t){const e=f(2);Ve(e.styleClass),d("ngClass",gr(16,Bte,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",He(24,zte,mt(21,Hte,e.transformOptions,e.transitionOptions))),K("aria-labelledby",e.ariaLabelledBy)("aria-modal",!0),h(2),d("ngIf",e.resizable),h(1),d("ngIf",e.showHeader),h(1),Ve(e.contentStyleClass),d("ngClass","p-dialog-content")("ngStyle",e.contentStyle),h(3),d("ngTemplateOutlet",e.contentTemplate),h(1),d("ngIf",e.footerFacet||e.footerTemplate)}}const Ute=function(t,i,e,n,o,s,r,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":o,"p-dialog-top-left":s,"p-dialog-top-right":r,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function $te(t,i){if(1&t&&(x(0,"div",1),g(1,jte,9,26,"div",2),A()),2&t){const e=f();Ve(e.maskStyleClass),d("ngClass",zp(4,Ute,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),h(1),d("ngIf",e.visible)}}const Kte=["*",[["p-header"]],[["p-footer"]]],Gte=["*","p-header","p-footer"],qte=Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}")]),Wte=Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Qte=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="-1";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onShow=new ge;onHide=new ge;visibleChange=new ge;onResizeInit=new ge;onResizeEnd=new ge;onDragEnd=new ge;onMaximize=new ge;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy;documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=$t();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.zone=r,this.cd=a,this.config=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return null!==this.header?$t()+"_header":null}focus(){let e=j.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&j.blockBodyScroll()}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&j.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?j.blockBodyScroll():j.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Wn.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(ei(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`\n @media screen and (max-width: ${n}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[n]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){j.hasClass(e.target,"p-dialog-header-icon")||j.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",j.addClass(this.document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let n=j.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==o||0===o?n[n.length-1].focus():n[o-1].focus():-1==o||o===n.length-1?n[0].focus():n[o+1].focus()}else n[0].focus()}}onDrag(e){if(this.dragging){const n=j.getOuterWidth(this.container),o=j.getOuterHeight(this.container),s=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=getComputedStyle(this.container),c=parseFloat(l.marginLeft),u=parseFloat(l.marginTop),p=a.left+s-c,m=a.top+r-u,_=j.getViewport();this.container.style.position="fixed",this.keepInViewport?(p>=this.minX&&p+n<_.width&&(this._style.left=`${p}px`,this.lastPageX=e.pageX,this.container.style.left=`${p}px`),m>=this.minY&&m+o<_.height&&(this._style.top=`${m}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${p}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,j.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getOuterHeight(this.contentViewChild?.nativeElement),l=s+n,c=r+o,u=this.container.style.minWidth,p=this.container.style.minHeight,m=this.container.getBoundingClientRect(),_=j.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=n,c+=o),(!u||l>parseInt(u))&&m.left+l<_.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!p||c>parseInt(p))&&m.top+c<_.height&&(this.contentViewChild.nativeElement.style.height=a+c-r+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",n=>{27==n.which&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):j.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&j.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&j.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(j.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&j.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dialog"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(lte,5),je(cte,5),je(ute,5)),2&n){let s;Se(s=Ee())&&(o.headerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:Gte,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(n,o){1&n&&(Ti(Kte),g(0,$te,2,15,"div",0)),2&n&&d("ngIf",o.maskVisible)},dependencies:function(){return[Ct,gt,on,Ht,Tk,oo,mn,AC,wC]},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[Eh(qte)]),Ln("visible => void",[Eh(Wte)])])]},changeDetection:0})}return t})(),Ek=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Sk,dn,mn,AC,wC,Qe]})}return t})();function Zte(t,i){if(1&t&&(x(0,"div"),le(1,"app-activities-table",3),A()),2&t){const e=f();h(1),d("activities",e.activities)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("fieldsLinksArr",e.fieldsLinksArr)}}function Yte(t,i){if(1&t&&(x(0,"div"),le(1,"app-actions-table",4),A()),2&t){const e=f();h(1),d("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("activitySeq",e.activitySeq)}}function Xte(t,i){if(1&t&&(x(0,"div"),le(1,"app-table",5),A()),2&t){const e=f();h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)("statusFieldName","Status")}}function Jte(t,i){1&t&&(x(0,"div",6),le(1,"div",7),A())}let Dk=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this.globalVarService=o,this._userDataManagerService=s,this.tableExpenderType1=Er}ngOnInit(){if(this.tableExpenderType==Er.BusinessFlowsActivities)this.totalactivitiesCount=0,this.RunsetJson=this._userDataManagerService.getItemCache(),this.CollectBfActivitiesData(this.entity);else if(this.tableExpenderType==Er.ActivitiesActions){const e=this.entity.Seq;this.activitySeq=e,this.actions=this.entity.ActionsColl,this.routerLinkEntityPath=e+"/",this.fieldsLinksArr=[{field:"Name",link:this.routerLinkEntityPath,param:"Seq"}]}else this.tableExpenderType==Er.OutputValidation&&(this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}],this.outputValuesData=this.getOutputValues(this.entity.OutputValues))}checkIfLastRun(e){return e===this.totalactivitiesCount}CollectBfActivitiesData(e){this.hideRepoLoader=!0;let n=0;e.ActivitiesGroupsColl.forEach(s=>{this.totalactivitiesCount=this.totalactivitiesCount+s.ExecutedActivitiesGUID.length});const o=this.globalVarService.totalRecPerActivityPull;e.NumberOfActivities=0,e.ActivitiesGroupsColl.forEach(s=>{let r=0;e.ActivitiesColl=[];const a={};a.ExecutionId=this.RunsetJson.ExecutionId,a.ParentId=s.GUID,a.From=r*o,a.Take=o,a.IsLoadActions=!1,this.restServiceObj.GetActivitiesByParent(a).subscribe(l=>{r++;const c=JSON.parse(l.response),u=c.TotalRec;for(e.NumberOfActivities+=u,e.ActivitiesColl.push(...c.ResponseColl),n+=c.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1);r*o{if(m.isSuccsess){const _=JSON.parse(m.response);e.ActivitiesColl.push(..._.ResponseColl),n+=_.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1)}})}})})}orderActivites(){this.entity.ActivitiesColl=this.entity.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}InitActivitieData(){if(null!=this.entity&&null!=this.entity.ActivitiesColl){this.orderActivites();var e=this.entity;const n=e.Seq;this.activities=e.ActivitiesColl;for(let o of e.ActivitiesColl)o.NumberOfActions=o.ActionsColl.length;this.fieldsLinksArr=[{field:"Name",link:n+"/",param:"Seq"},{field:"ActivityGroupName",link:n+"/ag/ag/",param:"ActivityGroupName"}]}}getOutputValues(e){let n=[];for(let o of e){let s=o.split("_:_"),r=new $D;r.ParameterName=s[0],r.ActualValue=s[1],r.ExpectedValue=s[2],r.Status=s[3],n.push(r)}return n}getActivityGroupName(e){for(let n of this.entity.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table-expended-section"]],inputs:{tableExpenderType:"tableExpenderType",entity:"entity"},decls:5,vars:5,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[3,"activities","addExpender","tableExpenderType","fieldsLinksArr"],[3,"addExpender","tableExpenderType","actions","fieldsLinksArr","activitySeq"],[3,"cols","data","statusFieldName"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zte,2,4,"div",1),g(2,Yte,2,5,"div",1),g(3,Xte,2,3,"div",1),A(),g(4,Jte,2,0,"div",2)),2&n&&(d("ngSwitch",o.tableExpenderType),h(1),d("ngSwitchCase",o.tableExpenderType1.BusinessFlowsActivities),h(1),d("ngSwitchCase",o.tableExpenderType1.ActivitiesActions),h(1),d("ngSwitchCase",o.tableExpenderType1.OutputValidation),h(1),d("ngIf",o.hideRepoLoader))}})}return t})();const ene=["mask"],tne=["container"],nne=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ine=function(t){return{value:"visible",params:t}};function one(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",7),me("@animation.start",function(o){return G(e),q(f(3).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(3).onAnimationEnd(o))})("maskHide",function(){return G(e),q(f(3).onMaskHide())})("activeItemChange",function(o){return G(e),q(f(3).onActiveItemChange(o))}),A()}if(2&t){const e=f(3);d("@animation",He(8,ine,mt(5,nne,e.showTransitionOptions,e.hideTransitionOptions)))("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)("ngStyle",e.containerStyle)}}const sne=function(t){return{"p-galleria-mask p-component-overlay p-component-overlay-enter":!0,"p-galleria-visible":t}};function rne(t,i){if(1&t&&(x(0,"div",4,5),g(2,one,1,10,"p-galleriaContent",6),A()),2&t){const e=f(2);Ve(e.maskClass),d("ngClass",He(6,sne,e.visible)),K("role",e.fullScreen?"dialog":"region")("aria-modal",e.fullScreen?"true":void 0),h(2),d("ngIf",e.visible)}}function ane(t,i){if(1&t&&(x(0,"div",null,2),g(2,rne,3,8,"div",3),A()),2&t){const e=f();h(2),d("ngIf",e.maskVisible)}}function lne(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",8),me("activeItemChange",function(o){return G(e),q(f().onActiveItemChange(o))}),A()}if(2&t){const e=f();d("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)}}const cne=["closeButton"];function une(t,i){1&t&&le(0,"TimesIcon",11),2&t&&d("styleClass","p-galleria-close-icon")}function dne(t,i){}function pne(t,i){1&t&&g(0,dne,0,0,"ng-template")}function hne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(){return G(e),q(f(2).maskHide.emit())}),g(1,une,1,1,"TimesIcon",9),g(2,pne,1,0,null,10),A()}if(2&t){const e=f(2);K("aria-label",e.closeAriaLabel())("data-pc-section","closebutton"),h(1),d("ngIf",!e.galleria.closeIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.closeIconTemplate)}}function fne(t,i){if(1&t&&(x(0,"div",12),le(1,"p-galleriaItemSlot",13),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}function gne(t,i){if(1&t){const e=De();x(0,"p-galleriaThumbnails",14),me("onActiveIndexChange",function(o){return G(e),q(f(2).onActiveIndexChange(o))})("stopSlideShow",function(){return G(e),q(f(2).stopSlideShow())}),A()}if(2&t){const e=f(2);d("containerId",e.id)("value",e.value)("activeIndex",e.activeIndex)("templates",e.galleria.templates)("numVisible",e.numVisible)("responsiveOptions",e.galleria.responsiveOptions)("circular",e.galleria.circular)("isVertical",e.isVertical())("contentHeight",e.galleria.verticalThumbnailViewPortHeight)("showThumbnailNavigators",e.galleria.showThumbnailNavigators)("slideShowActive",e.slideShowActive)}}function mne(t,i){if(1&t&&(x(0,"div",15),le(1,"p-galleriaItemSlot",16),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}const _ne=function(t,i,e){return{"p-galleria p-component":!0,"p-galleria-fullscreen":t,"p-galleria-indicator-onitem":i,"p-galleria-item-nav-onhover":e}},Ine=function(){return{}};function Cne(t,i){if(1&t){const e=De();x(0,"div",1),g(1,hne,3,4,"button",2),g(2,fne,2,1,"div",3),x(3,"div",4)(4,"p-galleriaItem",5),me("onActiveIndexChange",function(o){return G(e),q(f().onActiveIndexChange(o))})("startSlideShow",function(){return G(e),q(f().startSlideShow())})("stopSlideShow",function(){return G(e),q(f().stopSlideShow())}),A(),g(5,gne,1,11,"p-galleriaThumbnails",6),A(),g(6,mne,2,1,"div",7),A()}if(2&t){const e=f();Ve(e.galleriaClass()),d("ngClass",Rn(22,_ne,e.galleria.fullScreen,e.galleria.showIndicatorsOnItem,e.galleria.showItemNavigatorsOnHover&&!e.galleria.fullScreen))("ngStyle",e.galleria.fullScreen?Jt(26,Ine):e.galleria.containerStyle),K("id",e.id),h(1),d("ngIf",e.galleria.fullScreen),h(1),d("ngIf",e.galleria.templates&&e.galleria.headerFacet),h(1),K("aria-live",e.galleria.autoPlay?"polite":"off"),h(1),d("id",e.id)("value",e.value)("activeIndex",e.activeIndex)("circular",e.galleria.circular)("templates",e.galleria.templates)("showIndicators",e.galleria.showIndicators)("changeItemOnIndicatorHover",e.galleria.changeItemOnIndicatorHover)("indicatorFacet",e.galleria.indicatorFacet)("captionFacet",e.galleria.captionFacet)("showItemNavigators",e.galleria.showItemNavigators)("autoPlay",e.galleria.autoPlay)("slideShowActive",e.slideShowActive),h(1),d("ngIf",e.galleria.showThumbnails),h(1),d("ngIf",e.galleria.templates&&e.galleria.footerFacet)}}function vne(t,i){1&t&&ze(0)}function bne(t,i){if(1&t&&(we(0),g(1,vne,1,0,"ng-container",1),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",e.context)}}function yne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-item-prev-icon")}function xne(t,i){}function Ane(t,i){1&t&&g(0,xne,0,0,"ng-template")}const wne=function(t){return{"p-galleria-item-prev p-galleria-item-nav p-link":!0,"p-disabled":t}};function Tne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,yne,1,1,"ChevronLeftIcon",9),g(2,Ane,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,wne,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),h(1),d("ngIf",!e.galleria.itemPreviousIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemPreviousIconTemplate)}}function Sne(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&d("styleClass","p-galleria-item-next-icon")}function Ene(t,i){}function Dne(t,i){1&t&&g(0,Ene,0,0,"ng-template")}const kne=function(t){return{"p-galleria-item-next p-galleria-item-nav p-link":!0,"p-disabled":t}};function Mne(t,i){if(1&t){const e=De();x(0,"button",12),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Sne,1,1,"ChevronRightIcon",9),g(2,Dne,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,kne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),h(1),d("ngIf",!e.galleria.itemNextIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemNextIconTemplate)}}function One(t,i){if(1&t&&(x(0,"div",13),le(1,"p-galleriaItemSlot",14),A()),2&t){const e=f();h(1),d("item",e.activeItem)("templates",e.templates)}}function Lne(t,i){1&t&&le(0,"button",20)}const Pne=function(t){return{"p-galleria-indicator":!0,"p-highlight":t}};function Fne(t,i){if(1&t){const e=De();x(0,"li",17),me("click",function(){const s=G(e).index;return q(f(2).onIndicatorClick(s))})("mouseenter",function(){const s=G(e).index;return q(f(2).onIndicatorMouseEnter(s))})("keydown",function(o){const r=G(e).index;return q(f(2).onIndicatorKeyDown(o,r))}),g(1,Lne,1,0,"button",18),le(2,"p-galleriaItemSlot",19),A()}if(2&t){const e=i.index,n=f(2);d("ngClass",He(7,Pne,n.isIndicatorItemActive(e))),K("aria-label",n.ariaPageLabel(e+1))("aria-selected",n.activeIndex===e)("aria-controls",n.id+"_item_"+e),h(1),d("ngIf",!n.indicatorFacet),h(1),d("index",e)("templates",n.templates)}}function Rne(t,i){if(1&t&&(x(0,"ul",15),g(1,Fne,3,9,"li",16),A()),2&t){const e=f();h(1),d("ngForOf",e.value)}}const Nne=["itemsContainer"];function Vne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Bne(t,i){1&t&&le(0,"ChevronUpIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Hne(t,i){if(1&t&&(we(0),g(1,Vne,1,1,"ChevronLeftIcon",10),g(2,Bne,1,1,"ChevronUpIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function zne(t,i){}function jne(t,i){1&t&&g(0,zne,0,0,"ng-template")}const Une=function(t){return{"p-galleria-thumbnail-prev p-link":!0,"p-disabled":t}};function $ne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,Hne,3,2,"ng-container",8),g(2,jne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Une,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),K("aria-label",e.ariaPrevButtonLabel()),h(1),d("ngIf",!e.galleria.previousThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.previousThumbnailIconTemplate)}}const Kne=function(t,i,e,n){return{"p-galleria-thumbnail-item":!0,"p-galleria-thumbnail-item-current":t,"p-galleria-thumbnail-item-active":i,"p-galleria-thumbnail-item-start":e,"p-galleria-thumbnail-item-end":n}};function Gne(t,i){if(1&t){const e=De();x(0,"div",12),me("keydown",function(o){const r=G(e).index;return q(f().onThumbnailKeydown(o,r))}),x(1,"div",13),me("click",function(){const s=G(e).index;return q(f().onItemClick(s))})("touchend",function(){const s=G(e).index;return q(f().onItemClick(s))})("keydown.enter",function(){const s=G(e).index;return q(f().onItemClick(s))}),le(2,"p-galleriaItemSlot",14),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",gr(10,Kne,o.activeIndex===n,o.isItemActive(n),o.firstItemAciveIndex()===n,o.lastItemActiveIndex()===n)),K("aria-selected",o.activeIndex===n)("aria-controls",o.containerId+"_item_"+n)("data-pc-section","thumbnailitem")("data-p-active",o.activeIndex===n),h(1),K("tabindex",o.activeIndex===n?0:-1)("aria-current",o.activeIndex===n?"page":void 0)("aria-label",o.ariaPageLabel(n+1)),h(1),d("item",e)("templates",o.templates)}}function qne(t,i){1&t&&le(0,"ChevronRightIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Wne(t,i){1&t&&le(0,"ChevronDownIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Qne(t,i){if(1&t&&(we(0),g(1,qne,1,1,"ChevronRightIcon",15),g(2,Wne,1,1,"ChevronDownIcon",15),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function Zne(t,i){}function Yne(t,i){1&t&&g(0,Zne,0,0,"ng-template")}const Xne=function(t){return{"p-galleria-thumbnail-next p-link":!0,"p-disabled":t}};function Jne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Qne,3,2,"ng-container",8),g(2,Yne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Xne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),K("aria-label",e.ariaNextButtonLabel()),h(1),d("ngIf",!e.galleria.nextThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.nextThumbnailIconTemplate)}}const eie=function(t){return{height:t}};let yf=(()=>{class t{document;platformId;element;cd;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}fullScreen=!1;id;value;numVisible=3;responsiveOptions;showItemNavigators=!1;showThumbnailNavigators=!0;showItemNavigatorsOnHover=!1;changeItemOnIndicatorHover=!1;circular=!1;autoPlay=!1;shouldStopAutoplayByClick=!0;transitionInterval=4e3;showThumbnails=!0;thumbnailsPosition="bottom";verticalThumbnailViewPortHeight="300px";showIndicators=!1;showIndicatorsOnItem=!1;indicatorsPosition="bottom";baseZIndex=0;maskClass;containerClass;containerStyle;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}activeIndexChange=new ge;visibleChange=new ge;mask;container;templates;_visible=!1;_activeIndex=0;headerFacet;footerFacet;indicatorFacet;captionFacet;closeIconTemplate;previousThumbnailIconTemplate;nextThumbnailIconTemplate;itemPreviousIconTemplate;itemNextIconTemplate;maskVisible=!1;constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.element=o,this.cd=s,this.config=r}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerFacet=e.template;break;case"footer":this.footerFacet=e.template;break;case"indicator":this.indicatorFacet=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"itemnexticon":this.itemNextIconTemplate=e.template;break;case"itempreviousicon":this.itemPreviousIconTemplate=e.template;break;case"previousthumbnailicon":this.previousThumbnailIconTemplate=e.template;break;case"nextthumbnailicon":this.nextThumbnailIconTemplate=e.template;break;case"caption":this.captionFacet=e.template}})}ngOnChanges(e){e.value&&e.value.currentValue?.length{j.focus(j.findSingle(this.container.nativeElement,'[data-pc-section="closebutton"]'))},25);break;case"void":j.addClass(this.mask?.nativeElement,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&this.disableModality()}enableModality(){j.blockBodyScroll(),this.cd.markForCheck(),this.mask&&Wn.set("modal",this.mask.nativeElement,this.baseZIndex||this.config.zIndex.modal)}disableModality(){j.unblockBodyScroll(),this.maskVisible=!1,this.cd.markForCheck(),this.mask&&Wn.clear(this.mask.nativeElement)}ngOnDestroy(){this.fullScreen&&j.removeClass(this.document.body,"p-overflow-hidden"),this.mask&&this.disableModality()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleria"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ene,5),je(tne,5)),2&n){let s;Se(s=Ee())&&(o.mask=s.first),Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{activeIndex:"activeIndex",fullScreen:"fullScreen",id:"id",value:"value",numVisible:"numVisible",responsiveOptions:"responsiveOptions",showItemNavigators:"showItemNavigators",showThumbnailNavigators:"showThumbnailNavigators",showItemNavigatorsOnHover:"showItemNavigatorsOnHover",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",circular:"circular",autoPlay:"autoPlay",shouldStopAutoplayByClick:"shouldStopAutoplayByClick",transitionInterval:"transitionInterval",showThumbnails:"showThumbnails",thumbnailsPosition:"thumbnailsPosition",verticalThumbnailViewPortHeight:"verticalThumbnailViewPortHeight",showIndicators:"showIndicators",showIndicatorsOnItem:"showIndicatorsOnItem",indicatorsPosition:"indicatorsPosition",baseZIndex:"baseZIndex",maskClass:"maskClass",containerClass:"containerClass",containerStyle:"containerStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",visible:"visible"},outputs:{activeIndexChange:"activeIndexChange",visibleChange:"visibleChange"},features:[Hn],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["windowed",""],["container",""],[3,"ngClass","class",4,"ngIf"],[3,"ngClass"],["mask",""],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange",4,"ngIf"],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange"],[3,"value","activeIndex","numVisible","activeItemChange"]],template:function(n,o){if(1&n&&(g(0,ane,3,1,"div",0),g(1,lne,1,3,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",o.fullScreen)("ngIfElse",s)}},dependencies:function(){return[Ct,gt,Ht,tie]},styles:["@layer primeng{.p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[en({transform:"scale(0.7)",opacity:0}),On("{{showTransitionParams}}")]),Ln("visible => void",[On("{{hideTransitionParams}}",en({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),tie=(()=>{class t{galleria;cd;differs;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}value=[];numVisible;maskHide=new ge;activeItemChange=new ge;closeButton;id;_activeIndex=0;slideShowActive=!0;interval;styleClass;differ;constructor(e,n,o,s){this.galleria=e,this.cd=n,this.differs=o,this.config=s,this.id=this.galleria.id||$t(),this.differ=this.differs.find(this.galleria).create()}ngDoCheck(){const e=this.differ.diff(this.galleria);e&&e.forEachItem.length>0&&this.cd.markForCheck()}galleriaClass(){const e=this.galleria.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.galleria.thumbnailsPosition),n=this.galleria.showIndicators&&this.getPositionClass("p-galleria-indicators",this.galleria.indicatorsPosition);return(this.galleria.containerClass?this.galleria.containerClass+" ":"")+(e?e+" ":"")+(n?n+" ":"")}startSlideShow(){ei(this.galleria.platformId)&&(this.interval=setInterval(()=>{let e=this.galleria.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1;this.onActiveIndexChange(e),this.activeIndex=e},this.galleria.transitionInterval),this.slideShowActive=!0)}stopSlideShow(){this.galleria.autoPlay&&!this.galleria.shouldStopAutoplayByClick||(this.interval&&clearInterval(this.interval),this.slideShowActive=!1)}getPositionClass(e,n){const s=["top","left","bottom","right"].find(r=>r===n);return s?`${e}-${s}`:""}isVertical(){return"left"===this.galleria.thumbnailsPosition||"right"===this.galleria.thumbnailsPosition}onActiveIndexChange(e){this.activeIndex!==e&&(this.activeIndex=e,this.activeItemChange.emit(this.activeIndex))}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Ft),V(yl),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaContent"]],viewQuery:function(n,o){if(1&n&&je(cne,5),2&n){let s;Se(s=Ee())&&(o.closeButton=s.first)}},inputs:{activeIndex:"activeIndex",value:"value",numVisible:"numVisible"},outputs:{maskHide:"maskHide",activeItemChange:"activeItemChange"},decls:1,vars:1,consts:[["pFocusTrap","",3,"ngClass","ngStyle","class",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle"],["type","button","class","p-galleria-close p-link","pRipple","",3,"click",4,"ngIf"],["class","p-galleria-header",4,"ngIf"],[1,"p-galleria-content"],[3,"id","value","activeIndex","circular","templates","showIndicators","changeItemOnIndicatorHover","indicatorFacet","captionFacet","showItemNavigators","autoPlay","slideShowActive","onActiveIndexChange","startSlideShow","stopSlideShow"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow",4,"ngIf"],["class","p-galleria-footer",4,"ngIf"],["type","button","pRipple","",1,"p-galleria-close","p-link",3,"click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-galleria-header"],["type","header",3,"templates"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow"],[1,"p-galleria-footer"],["type","footer",3,"templates"]],template:function(n,o){1&n&&g(0,Cne,7,27,"div",0),2&n&&d("ngIf",o.value&&o.value.length>0)},dependencies:function(){return[Ct,gt,on,Ht,oo,mn,Tk,TC,nie,iie]},encapsulation:2,changeDetection:0})}return t})(),TC=(()=>{class t{templates;index;get item(){return this._item}set item(e){this._item=e,this.templates&&this.templates.forEach(n=>{if(n.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=n.template}})}type;contentTemplate;context;_item;ngAfterContentInit(){this.templates?.forEach(e=>{if(e.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=e.template;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=e.template;break;default:this.context={},this.contentTemplate=e.template}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItemSlot"]],inputs:{templates:"templates",index:"index",item:"item",type:"type"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&g(0,bne,2,2,"ng-container",0),2&n&&d("ngIf",o.contentTemplate)},dependencies:[gt,on],encapsulation:2,changeDetection:0})}return t})(),nie=(()=>{class t{galleria;id;circular=!1;value;showItemNavigators=!1;showIndicators=!0;slideShowActive=!0;changeItemOnIndicatorHover=!0;autoPlay=!1;templates;indicatorFacet;captionFacet;startSlideShow=new ge;stopSlideShow=new ge;onActiveIndexChange=new ge;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}get activeItem(){return this.value&&this.value[this._activeIndex]}_activeIndex=0;constructor(e){this.galleria=e}ngOnChanges({autoPlay:e}){e?.currentValue&&this.startSlideShow.emit(),e&&!1===e.currentValue&&this.stopTheSlideShow()}next(){this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1)}prev(){this.onActiveIndexChange.emit(this.circular&&0===this.activeIndex?this.value.length-1:0!==this.activeIndex?this.activeIndex-1:0)}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}navForward(e){this.stopTheSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()}navBackward(e){this.stopTheSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()}onIndicatorClick(e){this.stopTheSlideShow(),this.onActiveIndexChange.emit(e)}onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopTheSlideShow(),this.onActiveIndexChange.emit(e))}onIndicatorKeyDown(e,n){switch(e.code){case"Enter":case"Space":this.stopTheSlideShow(),this.onActiveIndexChange.emit(n),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1}isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex}isIndicatorItemActive(e){return this.activeIndex===e}ariaSlideLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slide:void 0}ariaSlideNumber(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItem"]],inputs:{id:"id",circular:"circular",value:"value",showItemNavigators:"showItemNavigators",showIndicators:"showIndicators",slideShowActive:"slideShowActive",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",autoPlay:"autoPlay",templates:"templates",indicatorFacet:"indicatorFacet",captionFacet:"captionFacet",activeIndex:"activeIndex"},outputs:{startSlideShow:"startSlideShow",stopSlideShow:"stopSlideShow",onActiveIndexChange:"onActiveIndexChange"},features:[Hn],decls:8,vars:11,consts:[[1,"p-galleria-item-wrapper"],[1,"p-galleria-item-container"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],["role","group",3,"id"],["type","item",1,"p-galleria-item",3,"item","templates"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click",4,"ngIf"],["class","p-galleria-caption",4,"ngIf"],["class","p-galleria-indicators p-reset",4,"ngIf"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click"],[1,"p-galleria-caption"],["type","caption",3,"item","templates"],[1,"p-galleria-indicators","p-reset"],["tabindex","0",3,"ngClass","click","mouseenter","keydown",4,"ngFor","ngForOf"],["tabindex","0",3,"ngClass","click","mouseenter","keydown"],["type","button","tabIndex","-1","class","p-link",4,"ngIf"],["type","indicator",3,"index","templates"],["type","button","tabIndex","-1",1,"p-link"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,Tne,3,6,"button",2),x(3,"div",3),le(4,"p-galleriaItemSlot",4),A(),g(5,Mne,3,6,"button",5),g(6,One,2,2,"div",6),A(),g(7,Rne,2,1,"ul",7),A()),2&n&&(h(2),d("ngIf",o.showItemNavigators),h(1),fo("width","100%"),d("id",o.id+"_item_"+o.activeIndex),K("aria-label",o.ariaSlideNumber(o.activeIndex+1))("aria-roledescription",o.ariaSlideLabel()),h(1),d("item",o.activeItem)("templates",o.templates),h(1),d("ngIf",o.showItemNavigators),h(1),d("ngIf",o.captionFacet),h(1),d("ngIf",o.showIndicators))},dependencies:function(){return[Ct,Jn,gt,on,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),iie=(()=>{class t{galleria;document;platformId;renderer;cd;containerId;value;isVertical=!1;slideShowActive=!1;circular=!1;responsiveOptions;contentHeight="300px";showThumbnailNavigators=!0;templates;onActiveIndexChange=new ge;stopSlideShow=new ge;itemsContainer;get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e,this._oldNumVisible=this.d_numVisible,this.d_numVisible=e}get activeIndex(){return this._activeIndex}set activeIndex(e){this._oldactiveIndex=this._activeIndex,this._activeIndex=e}index;startPos=null;thumbnailsStyle=null;sortedResponsiveOptions=null;totalShiftedItems=0;page=0;documentResizeListener;_numVisible=0;d_numVisible=0;_oldNumVisible=0;_activeIndex=0;_oldactiveIndex=0;constructor(e,n,o,s,r){this.galleria=e,this.document=n,this.platformId=o,this.renderer=s,this.cd=r}ngOnInit(){this.createStyle(),this.responsiveOptions&&this.bindDocumentListeners()}ngAfterContentChecked(){let e=this.totalShiftedItems;(this._oldNumVisible!==this.d_numVisible||this._oldactiveIndex!==this._activeIndex)&&this.itemsContainer&&(e=this._activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex(){const s=n.breakpoint,r=o.breakpoint;let a=null;return a=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof s&&"string"==typeof r?s.localeCompare(r,void 0,{numeric:!0}):sr?1:0,-1*a});for(let n=0;n=e&&(n=s)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible,this.cd.markForCheck())}}getTabIndex(e){return this.isItemActive(e)?0:null}navForward(e){this.stopTheSlideShow();let n=this._activeIndex+1;n+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItemsthis.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1),this.onActiveIndexChange.emit(this.circular&&0===this._activeIndex?this.value.length-1:n),e.cancelable&&e.preventDefault()}onItemClick(e){this.stopTheSlideShow();let n=e;if(n!==this._activeIndex){const o=n+this.totalShiftedItems;let s=0;n0&&-1*this.totalShiftedItems!=0&&this.step(s)):(s=this.getMedianItemIndex()-o,s<0&&-1*this.totalShiftedItems!0===j.getAttribute(r,"data-p-active")),o=j.findSingle(this.itemsContainer.nativeElement,'[tabindex="0"]'),s=e.findIndex(r=>r===o.parentElement);e[s].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"}findFocusedIndicatorIndex(){const e=[...j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]')],n=j.findSingle(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(o=>o===n.parentElement)}changedFocusedIndicator(e,n){const o=j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]');o[e].children[0].tabIndex="-1",o[n].children[0].tabIndex="0",o[n].children[0].focus()}step(e){let n=this.totalShiftedItems+e;e<0&&-1*n+this.d_numVisible>this.value.length-1?n=this.d_numVisible-this.value.length:e>0&&n>0&&(n=0),this.circular&&(e<0&&this.value.length-1===this._activeIndex?n=0:e>0&&0===this._activeIndex&&(n=this.d_numVisible-this.value.length)),this.itemsContainer&&(j.removeClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${n*(100/this.d_numVisible)}%, 0)`:`translate3d(${n*(100/this.d_numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=n}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}changePageOnTouch(e,n){n<0?this.navForward(e):this.navBackward(e)}getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0}getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1}onTransitionEnd(){this.itemsContainer&&this.itemsContainer.nativeElement&&(j.addClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="")}onTouchEnd(e){let n=e.changedTouches[0];this.changePageOnTouch(e,this.isVertical?n.pageY-this.startPos.y:n.pageX-this.startPos.x)}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchStart(e){let n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}}isNavBackwardDisabled(){return!this.circular&&0===this._activeIndex||this.value.length<=this.d_numVisible}isNavForwardDisabled(){return!this.circular&&this._activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}firstItemAciveIndex(){return-1*this.totalShiftedItems}lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1}isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e}bindDocumentListeners(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView||"window","resize",()=>{this.calculatePosition()}))}unbindDocumentListeners(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle)}ariaPrevButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.prevPageLabel:void 0}ariaNextButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.nextPageLabel:void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Wt),V($n),V(hn),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaThumbnails"]],viewQuery:function(n,o){if(1&n&&je(Nne,5),2&n){let s;Se(s=Ee())&&(o.itemsContainer=s.first)}},inputs:{containerId:"containerId",value:"value",isVertical:"isVertical",slideShowActive:"slideShowActive",circular:"circular",responsiveOptions:"responsiveOptions",contentHeight:"contentHeight",showThumbnailNavigators:"showThumbnailNavigators",templates:"templates",numVisible:"numVisible",activeIndex:"activeIndex"},outputs:{onActiveIndexChange:"onActiveIndexChange",stopSlideShow:"stopSlideShow"},decls:8,vars:6,consts:[[1,"p-galleria-thumbnail-wrapper"],[1,"p-galleria-thumbnail-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-galleria-thumbnail-items-container",3,"ngStyle"],["role","tablist",1,"p-galleria-thumbnail-items",3,"transitionend","touchstart","touchmove"],["itemsContainer",""],[3,"ngClass","keydown",4,"ngFor","ngForOf"],["type","button","pRipple","",3,"ngClass","disabled","click"],[4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"ngClass","keydown"],[1,"p-galleria-thumbnail-item-content",3,"click","touchend","keydown.enter"],["type","thumbnail",3,"item","templates"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,$ne,3,7,"button",2),x(3,"div",3)(4,"div",4,5),me("transitionend",function(){return o.onTransitionEnd()})("touchstart",function(r){return o.onTouchStart(r)})("touchmove",function(r){return o.onTouchMove(r)}),g(6,Gne,3,15,"div",6),A()(),g(7,Jne,3,7,"button",2),A()()),2&n&&(h(2),d("ngIf",o.showThumbnailNavigators),h(1),d("ngStyle",He(4,eie,o.isVertical?o.contentHeight:"")),h(3),d("ngForOf",o.value),h(1),d("ngIf",o.showThumbnailNavigators))},dependencies:function(){return[Ct,Jn,gt,on,Ht,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),kk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,mn,Qi,Mr,AC,wC,Sk,Xe,Qe]})}return t})();const oie=["galleria"],sie=function(t){return{width:t}};function rie(t,i){if(1&t&&le(0,"img",7),2&t){const e=i.$implicit,n=f(2);d("src",e.itemImageSrc,Ls)("ngStyle",He(2,sie,n.fullscreen?"":"100%"))}}function aie(t,i){if(1&t&&(x(0,"div"),le(1,"img",8),A()),2&t){const e=i.$implicit;y_("grid grid-nogutter justify-content-center ",e.title,""),h(1),d("src",e.thumbnailImageSrc,Ls)}}function lie(t,i){if(1&t&&(x(0,"span",13)(1,"span"),Le(2),A(),x(3,"span"),Le(4),A(),le(5,"span"),A()),2&t){const e=f(4);h(2),Fp("",e.activeIndex+1,"/",e.images.length,""),h(2),dt(e.images[e.activeIndex].alt),h(1),y_("title ",e.getStatusWithIcon(e.images[e.activeIndex].title),"")}}function cie(t,i){if(1&t){const e=De();x(0,"div",10),g(1,lie,6,6,"span",11),x(2,"button",12),me("click",function(){return G(e),q(f(3).toggleFullScreen())}),A()()}if(2&t){const e=f(3);h(1),d("ngIf",e.images),h(1),Ve(e.fullScreenIcon())}}function uie(t,i){1&t&&g(0,cie,3,4,"ng-template",9)}const die=function(t,i){return{footerMargin:t,smallThumbnail:i}},pie=function(){return{"max-width":"100%"}};function hie(t,i){if(1&t){const e=De();x(0,"div",1)(1,"p-galleria",2,3),me("valueChange",function(o){return G(e),q(f().images=o)})("activeIndexChange",function(o){return G(e),q(f().activeIndex=o)}),g(3,rie,1,4,"ng-template",4),g(4,aie,2,4,"ng-template",5),g(5,uie,1,0,null,6),A()()}if(2&t){const e=f();d("ngClass",mt(14,die,e.showFooter,!e.showFooter)),h(1),d("value",e.images)("activeIndex",e.activeIndex)("numVisible",10)("showThumbnails",e.showThumbnails)("showItemNavigators",!1)("showItemNavigatorsOnHover",!1)("circular",!0)("autoPlay",!1)("transitionInterval",3e3)("containerStyle",Jt(17,pie))("containerClass",e.galleriaClass())("thumbnailsPosition",e.top),h(4),d("ngIf",e.showFooter)}}let SC=(()=>{class t{constructor(e,n,o,s,r,a){this.globalVarService=e,this._userDataManagerService=n,this.route=o,this.calculatedDataService=s,this.communicatorService=r,this.cd=a,this.isScreenshotVisibleEvent=new ge,this.showFooter=!0,this.autoplaychecked=!1,this.fullscreen=!1,this.activeIndex=0,this.position="left",this.responsiveOptions=[{breakpoint:"1024px",numVisible:5},{breakpoint:"768px",numVisible:3},{breakpoint:"560px",numVisible:1}]}ngOnInit(){this.showThumbnails=this._thumbnails,this.route.params.subscribe(e=>{this.paramChanged(),this.bindDocumentListeners()}),this.communicatorService.onBfActivitiesDataChange.subscribe(e=>{"Last Loading Data"===e&&(this.paramChanged(),this.bindDocumentListeners())})}handleChange(e){this.bindDocumentListeners()}setThumbnails(){}paramChanged(){"action"==this.EntityType?this.setScurrentAction():("businessflow"==this.EntityType||"activity"==this.EntityType)&&this.setAllActions(),this.images=[];for(const e of this.actions)for(const n of e.ScreenShots)this.images.push({itemImageSrc:this.globalVarService.imagePath+n,thumbnailImageSrc:this.globalVarService.imagePath+n,alt:e.Path,title:e.RunStatus.toString()});this.isScreenshotVisibleEvent.emit(null!=this.images&&this.images.length>0)}getStatusWithIcon(e){return this.calculatedDataService.getStatusClass(e)}onThumbnailButtonClick(){this.showThumbnails=!this.showThumbnails}toggleFullScreen(){this.fullscreen?this.closePreviewFullScreen():this.openPreviewFullScreen(),this.cd.detach()}openPreviewFullScreen(){let e=this.galleria?.element.nativeElement.querySelector(".p-galleria");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}onFullScreenChange(){this.fullscreen=!this.fullscreen,this.cd.detectChanges(),this.cd.reattach()}closePreviewFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}bindDocumentListeners(){this.onFullScreenListener=this.onFullScreenChange.bind(this),document.addEventListener("fullscreenchange",this.onFullScreenListener),document.addEventListener("mozfullscreenchange",this.onFullScreenListener),document.addEventListener("webkitfullscreenchange",this.onFullScreenListener),document.addEventListener("msfullscreenchange",this.onFullScreenListener)}unbindDocumentListeners(){document.removeEventListener("fullscreenchange",this.onFullScreenListener),document.removeEventListener("mozfullscreenchange",this.onFullScreenListener),document.removeEventListener("webkitfullscreenchange",this.onFullScreenListener),document.removeEventListener("msfullscreenchange",this.onFullScreenListener),this.onFullScreenListener=null}ngOnDestroy(){this.unbindDocumentListeners()}galleriaClass(){return"custom-galleria "+(this.fullscreen?"fullscreen":"")}fullScreenIcon(){return"pi "+(this.fullscreen?"fullscreen-button pi-window-minimize":"fullscreen-button pi-window-maximize")}setAllActions(){const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");if(this.actions=[],e&&n&&o){const r=e.RunnersColl.filter(a=>a.Seq===n)[0].BusinessFlowsColl.filter(a=>a.Seq===o)[0];for(const a of r.ActivitiesColl)for(const l of a.ActionsColl)l.Path=a.ActivityGroupName+" / "+a.Name,this.actions.push(l)}}setScurrentAction(){this.actions=[];const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");var s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");if(null!=r&&0==r&&(r=this.Action_seq),null!=s&&0==s&&(s=this.Activity_seq),e&&n&&o&&s&&r){const c=e.RunnersColl.filter(u=>u.Seq===n)[0].BusinessFlowsColl.filter(u=>u.Seq===o)[0].ActivitiesColl.filter(u=>u.Seq===s)[0];this.actions.push(c.ActionsColl.filter(u=>u.Seq===r)[0])}}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V(Co),V(Di),V(qs),V(Ws),V(Ft))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["screenshot-carousel"]],viewQuery:function(n,o){if(1&n&&je(oie,5),2&n){let s;Se(s=Ee())&&(o.galleria=s.first)}},inputs:{_height:"_height",_thumbnails:"_thumbnails",autoplay:"autoplay",EntityType:"EntityType",Action_seq:"Action_seq",Activity_seq:"Activity_seq",showFooter:"showFooter"},outputs:{isScreenshotVisibleEvent:"isScreenshotVisibleEvent"},decls:1,vars:1,consts:[["class","screenshot-carousel",3,"ngClass",4,"ngIf"],[1,"screenshot-carousel",3,"ngClass"],[3,"value","activeIndex","numVisible","showThumbnails","showItemNavigators","showItemNavigatorsOnHover","circular","autoPlay","transitionInterval","containerStyle","containerClass","thumbnailsPosition","valueChange","activeIndexChange"],["galleria",""],["pTemplate","item"],["pTemplate","thumbnail"],[4,"ngIf"],[3,"src","ngStyle"],[2,"width","100px",3,"src"],["pTemplate","footer"],[1,"custom-galleria-footer"],["class","title-container",4,"ngIf"],["type","button",3,"click"],[1,"title-container"]],template:function(n,o){1&n&&g(0,hie,6,18,"div",0),2&n&&d("ngIf",null!=o.images&&o.images.length>0)},dependencies:[Ct,gt,Ht,sn,yf],styles:[".screenshot-carousel .passed-color{color:#109717;text-align:center} .screenshot-carousel .failed-color{color:#dc3812;text-align:center} .screenshot-carousel .blocked-color{color:#a21025;text-align:center} .screenshot-carousel .stopped-color{color:#ed5588;text-align:center} .screenshot-carousel .pending-color{color:#f90;text-align:center} .screenshot-carousel .skipped-color{color:#737373;text-align:center} .screenshot-carousel .inprogress-color{color:#eab330;text-align:center} .screenshot-carousel .canceled-color{color:#ca0088;text-align:center} p-galleriaitemslot .Passed{border-top:5px solid #109717!important} p-galleriaitemslot .Failed{border-top:5px solid #DC3812!important} p-galleriaitemslot .Blocked{border-top:5px solid #A21025!important} p-galleriaitemslot .Stopped{border-top:5px solid #ED5588!important} p-galleriaitemslot .Pending{border-top:5px solid #FF9900!important} p-galleriaitemslot .Skipped{border-top:5px solid #737373!important} p-galleriaitemslot .InProgress{border-top:5px solid #EAB330!important} p-galleriaitemslot .Canceled{border-top:5px solid #CA0088!important} .footerMargin .p-galleria-item-wrapper{margin-bottom:90px!important} .smallThumbnail .p-galleria-item-wrapper{width:100px!important}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen{display:flex;flex-direction:column}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen .p-galleria-content{flex-grow:1;justify-content:center}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-content{position:relative}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-wrapper{position:absolute;bottom:0;left:0;width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-items-container{width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer{display:flex;align-items:center;background-color:#fff;color:#000;border:1px solid;padding:5px}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button{background-color:transparent;color:#000;border:0 none;border-radius:0;margin:.2rem 0}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button.fullscreen-button{margin-left:auto}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button:hover{background-color:#ffffff1a}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span{font-size:1.2rem;padding-left:.829rem}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span.title{font-weight:700;font-size:1.5rem}"]})}return t})();function fie(t,i){1&t&&le(0,"div")}function gie(t,i){1&t&&le(0,"th",9)}function mie(t,i){if(1&t&&(x(0,"th"),Le(1),A()),2&t){const e=i.$implicit;h(1),Pt(" ",e.header," ")}}function _ie(t,i){if(1&t&&(x(0,"tr"),g(1,fie,1,0,"div",6),g(2,gie,1,0,"ng-template",null,7,In),g(4,mie,2,1,"th",8),A()),2&t){const e=i.$implicit,n=Bt(3),o=f();h(1),d("ngIf",o.addExpender)("ngIfThen",n),h(3),d("ngForOf",e)}}function Iie(t,i){1&t&&le(0,"div")}function Cie(t,i){if(1&t&&(x(0,"td")(1,"a",12),le(2,"i",13),A()()),2&t){const e=f(),n=e.$implicit,o=e.expanded;h(1),d("pRowToggler",n),h(1),d("ngClass",o?"pi pi-chevron-down":"pi pi-chevron-right")}}const vie=function(t){return{Guid:t}};function bie(t,i){if(1&t&&(x(0,"div")(1,"b")(2,"a",21),Le(3),A()()()),2&t){const e=f().$implicit,n=f(2).$implicit,o=f();h(2),__("routerLink","",e.link,"",o.getParamsURL(n,e),""),d("queryParams",He(4,vie,n.GUID)),h(1),Pt(" ",n[e.field]," ")}}function yie(t,i){if(1&t&&(x(0,"div"),g(1,bie,4,6,"div",16),A()),2&t){const e=i.$implicit;h(1),d("ngSwitchCase",e.field)}}function xie(t,i){if(1&t&&(x(0,"div"),Le(1),Il(2,"date"),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",Cl(2,1,n[e.field],"short")," ")}}function Aie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.msToTime(n[e.field])," ")}}function wie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}const Tie=function(t,i,e,n,o,s,r,a,l){return{"passed-color":t,"failed-color":i,"blocked-color":e,"stopped-color":n,"pending-color":o,"skipped-color":s,"inprogress-color":r,"canceled-color":a,"other-color":l}};function Sie(t,i){if(1&t&&(x(0,"div")(1,"div",13),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(1),d("ngClass",zp(2,Tie,["Passed"===e[n.statusFieldName],"Failed"===e[n.statusFieldName],"Blocked"===e[n.statusFieldName],"Stopped"===e[n.statusFieldName],"Pending"===e[n.statusFieldName],"Skipped"===e[n.statusFieldName],"In Progress"===e[n.statusFieldName],"Canceled"===e[n.statusFieldName],"Other"===e[n.statusFieldName]])),h(1),Pt(" ",e[n.statusFieldName]," ")}}function Eie(t,i){if(1&t&&(x(0,"div"),g(1,Sie,3,12,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.statusFieldName)}}function Die(t,i){if(1&t&&(x(0,"div")(1,"div",23),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(2),Pt(" ",e[n.errorFieldName]," ")}}function kie(t,i){if(1&t&&(x(0,"div"),g(1,Die,3,1,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.errorFieldName)}}function Mie(t,i){if(1&t&&(x(0,"div")(1,"div",24),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}function Oie(t,i){if(1&t&&(x(0,"div"),g(1,Mie,3,1,"div",16),A()),2&t){const e=f().$implicit,n=f(2);h(1),d("ngSwitchCase",n.boldAndCenterFields.includes(e.field)?e.field:"")}}function Lie(t,i){if(1&t){const e=De();x(0,"div")(1,"screenshot-carousel",25),me("isScreenshotVisibleEvent",function(o){return G(e),q(f(4).setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f(3).$implicit,n=f();h(1),d("showFooter",!1)("Activity_seq",n.activitySeq)("Action_seq",e.Seq)("EntityType",n.EntityType)("_height",100)("_thumbnails",!1)}}function Pie(t,i){1&t&&(x(0,"div"),g(1,Lie,2,6,"div",16),A()),2&t&&(h(1),d("ngSwitchCase","Screenshots"))}function Fie(t,i){if(1&t&&(x(0,"div",24),Le(1),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"% ")}}function Rie(t,i){if(1&t&&(x(0,"div")(1,"pre",29),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.getXML(n[e.field]),"\n ")}}function Nie(t,i){if(1&t&&(x(0,"div",30),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field]," ")}}function Vie(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"")}}function Bie(t,i){if(1&t&&(x(0,"div"),g(1,Rie,3,1,"div",26),g(2,Nie,2,1,"div",27),g(3,Vie,2,1,"ng-template",null,28,In),A()),2&t){const e=Bt(4),n=f().$implicit,o=f().$implicit,s=f();h(1),d("ngIf",o[n.field].includes("{class t{constructor(e,n,o){this.communicatorService=e,this.globalVarService=n,this._userDataManagerService=o,this.addExpender=!1,this.ShouldImagePop=!1,this.imagePopSrc="",this.imagePopName="",this.showScreenshotPanel=!0,this.EntityType="action"}ngOnInit(){}printf(e){console.log(e)}msToTime(e){return this._userDataManagerService.msToTime(e)}getParamsURL(e,n){var o="";if(!n.params)return e[n.param];for(let s of n.params)o=o+e[s]+"/";return o}onRouterCLick(e){console.log(e)}showImage(e){this.ShouldImagePop=!0,this.imagePopSrc=this.globalVarService.imagePath+e,this.imagePopName=e}getXML(e){let n;return n="\n"+e,n}isJson(e){try{JSON.parse(e)}catch{return console.log("not json"),!1}return console.log("is json"),!0}getJson(e){try{return JSON.parse(e)}catch{console.log("not json")}}trackByFunction(e,n){return n?n.field:null}setScreenshotVisiblity(e){this.showScreenshotPanel=e}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table"]],inputs:{cols:"cols",data:"data",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",errorFieldName:"errorFieldName",statusFieldName:"statusFieldName",boldAndCenterFields:"boldAndCenterFields",activitySeq:"activitySeq"},decls:6,vars:9,consts:[["dataKey","Seq",3,"columns","value"],["pTemplate","header"],["pTemplate","body"],["pTemplate","rowexpansion"],[3,"header","visible","responsive","visibleChange"],[2,"height","40vw",3,"src"],[4,"ngIf","ngIfThen"],["addExpenderBlock",""],[4,"ngFor","ngForOf"],[2,"width","3em"],["addExpenderBlock1",""],["class","row",3,"ngSwitch",4,"ngFor","ngForOf"],["href","#",3,"pRowToggler"],[3,"ngClass"],[1,"row",3,"ngSwitch"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngIf"],["class","bold-and-center",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["data","rowData",3,"routerLink","queryParams"],[1,"numbers-style"],[1,"failed-color"],[1,"bold-and-center"],[3,"showFooter","Activity_seq","Action_seq","EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],[4,"ngIf","ngIfElse"],["style"," display: inline-block;width: 180px;white-space: nowrap;overflow: hidden !important;text-overflow: ellipsis;",4,"ngIf","ngIfElse"],["elseBlock1",""],["lang","xml"],[2,"display","inline-block","width","180px","white-space","nowrap","overflow","hidden !important","text-overflow","ellipsis"],[1,"p-fluid",2,"font-size","16px","padding","20px"],[3,"tableExpenderType","entity"]],template:function(n,o){1&n&&(x(0,"p-table",0),g(1,_ie,5,3,"ng-template",1),g(2,Gie,5,3,"ng-template",2),g(3,qie,4,3,"ng-template",3),A(),x(4,"p-dialog",4),me("visibleChange",function(r){return o.ShouldImagePop=r}),le(5,"img",5),A()),2&n&&(d("columns",o.cols)("value",o.data),h(4),yn(Jt(8,Wie)),d("header",o.imagePopName)("visible",o.ShouldImagePop)("responsive",!0),h(1),d("src",o.imagePopSrc,Ls))},dependencies:[Ct,Jn,gt,wl,ch,x0,sn,xC,ate,pa,Qte,Dk,SC,Hs],styles:[".bold-and-center[_ngcontent-%COMP%]{font-weight:700;text-align:center}.alignCenter[_ngcontent-%COMP%]{text-align:center}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}.row[_ngcontent-%COMP%]{text-align:center}.item1[_ngcontent-%COMP%]{width:90%;text-align:left;margin-bottom:10px}"],data:{animation:[Oo("rowExpansionTrigger",[Us("void",en({transform:"translateX(-10%)",opacity:0})),Us("active",en({transform:"translateX(0)",opacity:1})),Ln("* <=> *",On("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}})}return t})();const Qie=["exeStatistics"];function Zie(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Run set Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),Pt(" ",e.RunsetJson.Name,"")}}function Yie(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runsetDetails)}}function Xie(t,i){if(1&t){const e=De();x(0,"p-accordionTab",13)(1,"app-execution-statistic",14,15),me("isStatisticsVisibleEvent",function(o){return G(e),q(f().setStatisticsVisiblity(o))}),A()()}2&t&&d("selected",!0)}const Jie=function(){return["BusinessFlowSeq"]};function eoe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.runnersCols)("data",e.runnersData)("fieldsLinksArr",e.fieldsLinksArr)("statusFieldName","BusinessFlowExecutionStaus")("boldAndCenterFields",Jt(6,Jie))}}function toe(t,i){1&t&&(x(0,"div",18),le(1,"div",19),A())}function noe(t,i){if(1&t&&(x(0,"p"),Le(1),A()),2&t){const e=f();h(1),dt(e.ErrorMessage)}}const ioe=function(t,i){return{hideDiv:t,showDiv:i}};let ooe=(()=>{class t{constructor(e,n,o,s,r,a,l,c,u,p,m,_){this.executionDataService=e,this.datePipe=n,this.communicatorService=o,this.reportHelperService=s,this.activeRoute=r,this.router=a,this.fileLoader=l,this.globalVarService=u,this.restServiceObj=p,this.userDataManagerService=m,this.calculatedDataService=_,this.runnersData=[],this.ErrorMessage="",this.showStatisticsPanel=!0,this.globalVarService.baseAppUrl=c.baseUrl,this.globalVarService.totalRecPerActivityPull=c.totalRecPerActivityPull,this.globalVarService.topBarTitle=c.topBarTitle}ngAfterViewInit(){null!=this.executionStatisticComponent&&null!=this.RunsetJson&&this.executionStatisticComponent.initComponents()}ngOnInit(){this.communicatorService.onRefreshChangedMessage.subscribe(e=>{"RefreshData"===e&&this.showRunset(!0)}),this.reportHelperService.selectedGuid="",this.reportHelperService.selectedRouteLink="",this.activeRoute.queryParams.subscribe(e=>{const n=e.Routed_Guid;console.log("found selected guid "+n),this.reportHelperService.selectedGuid=typeof n<"u"&&n?n:""}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"BusinessFlowName",link:"",params:["Seq","BusinessFlowSeq"]}],null==this.RunsetJson&&this.showRunset(),this.runnersCols=[{field:"Seq",header:"Runner Number"},{field:"Name",header:"Ginger Runner Name"},{field:"Environment",header:"Ginger Runner Environment Name"},{field:"BusinessFlowSeq",header:"Business Flow Execution Sequence"},{field:"BusinessFlowName",header:"Business Flow Name"},{field:"BusinessFlowDescription",header:"Business Flow Description"},{field:"BusinessFlowRunDescription",header:"Business Flow Run Description"},{field:"BusinessFlowExecutionStaus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Passed Rate"}]}showRunset(e=!1){this.hideRepoLoader=!0,this.showReport=!1;var n=this.activeRoute.snapshot.queryParamMap.get("ExecutionId");const o=this.activeRoute.snapshot.paramMap.get("BusinessFlowId"),s=this.activeRoute.snapshot.paramMap.get("ExecutionId");null!=s&&(n=s),null==n?n=localStorage.getItem("executionId"):localStorage.setItem("executionId",n),console.log("run set query guid is :"+n),n?(this.globalVarService.imagePath="images/",this.globalVarService.isServerLoading=!0,this.globalVarService.executionServerId=n,this.RunsetJson=this.userDataManagerService.getItemCache(),null==this.RunsetJson||this.RunsetJson.GUID!=n?this.restServiceObj.GetAccountHtmlReportBriefCase(n).subscribe(r=>{if(r.isSuccsess){if(this.showReport=!0,console.log(r.response),this.RunsetJson=JSON.parse(r.response),this.RunsetJson.Name=this.userDataManagerService.replaceUnicodeChar(this.RunsetJson.Name),this.RunsetJson.RunnersColl.length<=0)return void console.log("error on loading report");this.userDataManagerService.setItemCache(this.RunsetJson),this.RunsetJson.RunStatus==Lt.InProgress&&(this.userDataManagerService.setItem("LoadActivityStat","true"),this.userDataManagerService.setItem("LoadActionStat","true")),this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController(),null!=o&&this.RunsetJson.RunnersColl.forEach(a=>{a.BusinessFlowsColl.forEach(l=>{l.InstanceGUID==o&&this.router.navigateByUrl(a.Seq+"/"+l.Seq)})}),e&&null!=this.RunsetJson&&this.router.navigateByUrl("/?ExecutionId="+this.RunsetJson.ExecutionId)}else null==r.response||"NotFound"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="No record found"):"0"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Account Report Service is down"):"DatabaseDown"==r.response&&(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Postgres Database is down")}):(this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController())):(this.userDataManagerService.setItem("timeFormat","seconds"),this.globalVarService.imagePath="assets/screenshots/",this.executionDataService.GetExecutionData().then(r=>{this.hideRepoLoader=!1,null!=r?(this.showReport=!0,this.RunsetJson={...r},this.initController()):this.showReport=!1}))}GetFirstActivitesReponse(e){return this.restServiceObj.GetActivitiesByParentAwait(e)}downloadImages(e){this.restServiceObj.DownloadRunsetImages(e).subscribe(n=>{console.log(n.isSuccsess)})}initController(e=null){const n=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,e);this.communicatorService.newMessage(n),this.populateRunnerDetails(),null!=this.executionStatisticComponent&&this.executionStatisticComponent.initComponents(),this.runsetDetails=[{field:"Name",value:this.RunsetJson.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.RunsetJson.StartTimeStamp,"short")},{field:"RunSet Description",value:this.RunsetJson.Description},{field:"Execution End Time",value:this.datePipe.transform(this.RunsetJson.EndTimeStamp,"short")},{field:"RunSet Run Description",value:this.RunsetJson.RunDescription},{field:"Executed by User",value:this.RunsetJson.ExecutedbyUser},{field:"Execution Duration",value:this.userDataManagerService.msToTime(this.RunsetJson.Elapsed)},{field:"Execution Status",value:this.RunsetJson.RunStatus},{field:"Executed on Machine",value:this.RunsetJson.MachineName},{field:"Run Set Execution Rate",value:this.RunsetJson.ExecutionRate+"%"},{field:"Run Set Execution Pass Rate",value:this.RunsetJson.PassRate+"%"},{field:"Environment Name",value:this.RunsetJson.Environment},{field:"Ginger Version",value:this.RunsetJson.GingerVersion}],""!==this.reportHelperService.selectedRouteLink&&(console.log("route to guid :"+this.reportHelperService.selectedRouteLink),setTimeout(()=>{this.router.navigateByUrl(this.reportHelperService.selectedRouteLink)},5e3))}setStatisticsVisiblity(e){this.showStatisticsPanel=e}populateRunnerDetails(){this.runnersData=[];for(const e of this.RunsetJson.RunnersColl){let n=new MK;for(const o of e.BusinessFlowsColl)n={Name:e.Name,Environment:e.Environment,Seq:e.Seq,GUID:e.GUID,BusinessFlowSeq:o.Seq,BusinessFlowName:o.Name,BusinessFlowDescription:o.Description,PassRate:o.PassRate,BusinessFlowExecutionStaus:o.RunStatus,BusinessFlowRunDescription:o.RunDescription,ExecutionRate:o.ExecutionRate},this.runnersData.push(n)}}getStatus(e=!0){if(null!=this.RunsetJson&&null!=this.RunsetJson.RunStatus)return this.calculatedDataService.getStatusClass(this.RunsetJson.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(HK),V(Hs),V(Ws),V(WD),V(Di),V(io),V(qD),V("environmentObj"),V(ms),V(ha),V(Co),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["runset-report"]],viewQuery:function(n,o){if(1&n&&je(Qie,5),2&n){let s;Se(s=Ee())&&(o.executionStatisticComponent=s.first)}},decls:8,vars:11,consts:[[3,"ngClass"],["class","entityName",4,"ngIf"],[3,"multiple"],["header","EXECUTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle"],[2,"font-weight","bold"],["header","EXECUTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected"],[3,"isStatisticsVisibleEvent"],["exeStatistics",""],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data","fieldsLinksArr","statusFieldName","boldAndCenterFields"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zie,5,4,"h4",1),x(2,"p-accordion",2),g(3,Yie,2,2,"p-accordionTab",3),g(4,Xie,3,1,"p-accordionTab",4),g(5,eoe,2,7,"p-accordionTab",5),A()(),g(6,toe,2,0,"div",6),g(7,noe,2,1,"p",7)),2&n&&(d("ngClass",mt(8,ioe,!1===o.showReport,!0===o.showReport)),h(1),d("ngIf",o.RunsetJson),h(1),d("multiple",!0),h(1),d("ngIf",null!=o.runsetDetails&&o.runsetDetails.length>0),h(1),d("ngIf",1==o.showStatisticsPanel),h(1),d("ngIf",o.runnersData.length>0),h(1),d("ngIf",o.hideRepoLoader),h(1),d("ngIf",0==o.showReport&&0==o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,LG,Is],styles:[".lables[_ngcontent-%COMP%]{font-weight:700}.loader[_ngcontent-%COMP%]{position:absolute;top:40%;left:40%;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #0066b2;width:40px;height:40px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return t})(),Mk=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"dashboard"],[1,"ui-m"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),le(2,"runset-report"),A()())},dependencies:[ooe],encapsulation:2})}return t})();const soe=function(){return["NumberOfActions"]};let EC=(()=>{class t{constructor(){}ngOnInit(){this.activitiesCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group Name"},{field:"Name",header:"Activity Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"RunStatus",header:"Execution Status"},{field:"NumberOfActions",header:"Number Of Actions"},{field:"ExecutionRate",header:"Actions Execution Rate"},{field:"PassRate",header:"Actions Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activities-table"]],inputs:{activities:"activities",activitiesGroups:"activitiesGroups",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.activitiesCols)("data",o.activities)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,soe))},dependencies:[Is]})}return t})();const roe=function(){return["CurrentRetryIteration","NumberOfActions"]};let Ok=(()=>{class t{constructor(){}ngOnInit(){this.actionsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Action Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"ActionType",header:"Action Type"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"CurrentRetryIteration",header:"Current Retry Iteration"},{field:"RunStatus",header:"Execution Status"},{field:"Error",header:"Error Details"},{field:"ExInfo",header:"Extra Details"},{field:"Screenshots",header:"Screenshot"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-actions-table"]],inputs:{actions:"actions",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",activitySeq:"activitySeq"},decls:1,vars:9,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields","activitySeq"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.actionsCols)("data",o.actions)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(8,roe))("activitySeq",o.activitySeq)},dependencies:[Is]})}return t})();function Ys(){}const aoe=function(){let t=0;return function(){return t++}}();function tn(t){return null===t||typeof t>"u"}function kn(t){if(Array.isArray&&Array.isArray(t))return!0;const i=Object.prototype.toString.call(t);return"[object"===i.slice(0,7)&&"Array]"===i.slice(-6)}function qt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Po(t,i){return ti(t)?t:i}function Nt(t,i){return typeof t>"u"?i:t}const Lk=(t,i)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*i:+t;function Mn(t,i,e){if(t&&"function"==typeof t.call)return t.apply(e,i)}function _n(t,i,e,n){let o,s,r;if(kn(t))if(s=t.length,n)for(o=s-1;o>=0;o--)i.call(e,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function Pr(t,i){return(Fk[i]||(Fk[i]=function doe(t){const i=function poe(t){const i=t.split("."),e=[];let n="";for(const o of i)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}(t);return e=>{for(const n of i){if(""===n)break;e=e&&e[n]}return e}}(i)))(t)}function DC(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Fo=t=>typeof t<"u",Fr=t=>"function"==typeof t,Rk=(t,i)=>{if(t.size!==i.size)return!1;for(const e of t)if(!i.has(e))return!1;return!0},Vn=Math.PI,Cn=2*Vn,foe=Cn+Vn,wf=Number.POSITIVE_INFINITY,goe=Vn/180,Qn=Vn/2,Uu=Vn/4,Nk=2*Vn/3,Ro=Math.log10,Cs=Math.sign;function Vk(t){const i=Math.round(t);t=$u(t,i,t/1e3)?i:t;const e=Math.pow(10,Math.floor(Ro(t))),n=t/e;return(n<=1?1:n<=2?2:n<=5?5:10)*e}function Gl(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $u(t,i,e){return Math.abs(t-i)l&&c=Math.min(i,e)-n&&t<=Math.max(i,e)+n}function OC(t,i,e){e=e||(r=>t[r]1;)s=o+n>>1,e(s)?o=s:n=s;return{lo:o,hi:n}}const Js=(t,i,e,n)=>OC(t,e,n?o=>t[o][i]<=e:o=>t[o][i]OC(t,e,n=>t[n][i]>=e),jk=["push","pop","shift","splice","unshift"];function Uk(t,i){const e=t._chartjs;if(!e)return;const n=e.listeners,o=n.indexOf(i);-1!==o&&n.splice(o,1),!(n.length>0)&&(jk.forEach(s=>{delete t[s]}),delete t._chartjs)}function $k(t){const i=new Set;let e,n;for(e=0,n=t.length;e"u"?function(t){return t()}:window.requestAnimationFrame;function Gk(t,i,e){const n=e||(r=>Array.prototype.slice.call(r));let o=!1,s=[];return function(...r){s=n(r),o||(o=!0,Kk.call(window,()=>{o=!1,t.apply(i,s)}))}}const LC=t=>"start"===t?"left":"end"===t?"right":"center",Li=(t,i,e)=>"start"===t?i:"end"===t?e:(i+e)/2;function qk(t,i,e){const n=i.length;let o=0,s=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:u,minDefined:p,maxDefined:m}=r.getUserBounds();p&&(o=pi(Math.min(Js(a,r.axis,c).lo,e?n:Js(i,l,r.getPixelForValue(c)).lo),0,n-1)),s=m?pi(Math.max(Js(a,r.axis,u,!0).hi+1,e?0:Js(i,l,r.getPixelForValue(u),!0).hi+1),o,n)-o:n-o}return{start:o,count:s}}function Wk(t){const{xScale:i,yScale:e,_scaleRanges:n}=t,o={xmin:i.min,xmax:i.max,ymin:e.min,ymax:e.max};if(!n)return t._scaleRanges=o,!0;const s=n.xmin!==i.min||n.xmax!==i.max||n.ymin!==e.min||n.ymax!==e.max;return Object.assign(n,o),s}const Tf=t=>0===t||1===t,Qk=(t,i,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-i)*Cn/e),Zk=(t,i,e)=>Math.pow(2,-10*t)*Math.sin((t-i)*Cn/e)+1,Gu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Qn),easeOutSine:t=>Math.sin(t*Qn),easeInOutSine:t=>-.5*(Math.cos(Vn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Tf(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Tf(t)?t:Qk(t,.075,.3),easeOutElastic:t=>Tf(t)?t:Zk(t,.075,.3),easeInOutElastic:t=>Tf(t)?t:t<.5?.5*Qk(2*t,.1125,.45):.5+.5*Zk(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let i=1.70158;return(t/=.5)<1?t*t*((1+(i*=1.525))*t-i)*.5:.5*((t-=2)*t*((1+(i*=1.525))*t+i)+2)},easeInBounce:t=>1-Gu.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*Gu.easeInBounce(2*t):.5*Gu.easeOutBounce(2*t-1)+.5};function qu(t){return t+.5|0}const Rr=(t,i,e)=>Math.max(Math.min(t,e),i);function Wu(t){return Rr(qu(2.55*t),0,255)}function Nr(t){return Rr(qu(255*t),0,255)}function er(t){return Rr(qu(t/2.55)/100,0,1)}function Yk(t){return Rr(qu(100*t),0,100)}const No={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},PC=[..."0123456789ABCDEF"],woe=t=>PC[15&t],Toe=t=>PC[(240&t)>>4]+PC[15&t],Sf=t=>(240&t)>>4==(15&t);const Moe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Xk(t,i,e){const n=i*Math.min(e,1-e),o=(s,r=(s+t/30)%12)=>e-n*Math.max(Math.min(r-3,9-r,1),-1);return[o(0),o(8),o(4)]}function Ooe(t,i,e){const n=(o,s=(o+t/60)%6)=>e-e*i*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Loe(t,i,e){const n=Xk(t,1,.5);let o;for(i+e>1&&(o=1/(i+e),i*=o,e*=o),o=0;o<3;o++)n[o]*=1-i-e,n[o]+=i;return n}function FC(t){const e=t.r/255,n=t.g/255,o=t.b/255,s=Math.max(e,n,o),r=Math.min(e,n,o),a=(s+r)/2;let l,c,u;return s!==r&&(u=s-r,c=a>.5?u/(2-s-r):u/(s+r),l=function Poe(t,i,e,n,o){return t===o?(i-e)/n+(it<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,ql=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Df(t,i,e){if(t){let n=FC(t);n[i]=Math.max(0,Math.min(n[i]+n[i]*e,0===i?360:1)),n=NC(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function n3(t,i){return t&&Object.assign(i||{},t)}function o3(t){var i={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(i={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(i.a=Nr(t[3]))):(i=n3(t,{r:0,g:0,b:0,a:1})).a=Nr(i.a),i}function Goe(t){return"r"===t.charAt(0)?function Uoe(t){const i=joe.exec(t);let n,o,s,e=255;if(i){if(i[7]!==n){const r=+i[7];e=i[8]?Wu(r):Rr(255*r,0,255)}return n=+i[1],o=+i[3],s=+i[5],n=255&(i[2]?Wu(n):Rr(n,0,255)),o=255&(i[4]?Wu(o):Rr(o,0,255)),s=255&(i[6]?Wu(s):Rr(s,0,255)),{r:n,g:o,b:s,a:e}}}(t):function Noe(t){const i=Moe.exec(t);let n,e=255;if(!i)return;i[5]!==n&&(e=i[6]?Wu(+i[5]):Nr(+i[5]));const o=Jk(+i[2]),s=+i[3]/100,r=+i[4]/100;return n="hwb"===i[1]?function Foe(t,i,e){return RC(Loe,t,i,e)}(o,s,r):"hsv"===i[1]?function Roe(t,i,e){return RC(Ooe,t,i,e)}(o,s,r):NC(o,s,r),{r:n[0],g:n[1],b:n[2],a:e}}(t)}class kf{constructor(i){if(i instanceof kf)return i;const e=typeof i;let n;"object"===e?n=o3(i):"string"===e&&(n=function Eoe(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*No[t[1]],g:255&17*No[t[2]],b:255&17*No[t[3]],a:5===i?17*No[t[4]]:255}:(7===i||9===i)&&(e={r:No[t[1]]<<4|No[t[2]],g:No[t[3]]<<4|No[t[4]],b:No[t[5]]<<4|No[t[6]],a:9===i?No[t[7]]<<4|No[t[8]]:255})),e}(i)||function zoe(t){Ef||(Ef=function Hoe(){const t={},i=Object.keys(t3),e=Object.keys(e3);let n,o,s,r,a;for(n=0;n>16&255,s>>8&255,255&s]}return t}(),Ef.transparent=[0,0,0,0]);const i=Ef[t.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255}}(i)||Goe(i)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var i=n3(this._rgb);return i&&(i.a=er(i.a)),i}set rgb(i){this._rgb=o3(i)}rgbString(){return this._valid?function $oe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${er(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function koe(t){var i=(t=>Sf(t.r)&&Sf(t.g)&&Sf(t.b)&&Sf(t.a))(t)?woe:Toe;return t?"#"+i(t.r)+i(t.g)+i(t.b)+((t,i)=>t<255?i(t):"")(t.a,i):void 0}(this._rgb):void 0}hslString(){return this._valid?function Boe(t){if(!t)return;const i=FC(t),e=i[0],n=Yk(i[1]),o=Yk(i[2]);return t.a<255?`hsla(${e}, ${n}%, ${o}%, ${er(t.a)})`:`hsl(${e}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(i,e){if(i){const n=this.rgb,o=i.rgb;let s;const r=e===s?.5:e,a=2*r-1,l=n.a-o.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,n.r=255&c*n.r+s*o.r+.5,n.g=255&c*n.g+s*o.g+.5,n.b=255&c*n.b+s*o.b+.5,n.a=r*n.a+(1-r)*o.a,this.rgb=n}return this}interpolate(i,e){return i&&(this._rgb=function Koe(t,i,e){const n=ql(er(t.r)),o=ql(er(t.g)),s=ql(er(t.b));return{r:Nr(VC(n+e*(ql(er(i.r))-n))),g:Nr(VC(o+e*(ql(er(i.g))-o))),b:Nr(VC(s+e*(ql(er(i.b))-s))),a:t.a+e*(i.a-t.a)}}(this._rgb,i._rgb,e)),this}clone(){return new kf(this.rgb)}alpha(i){return this._rgb.a=Nr(i),this}clearer(i){return this._rgb.a*=1-i,this}greyscale(){const i=this._rgb,e=qu(.3*i.r+.59*i.g+.11*i.b);return i.r=i.g=i.b=e,this}opaquer(i){return this._rgb.a*=1+i,this}negate(){const i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Df(this._rgb,2,i),this}darken(i){return Df(this._rgb,2,-i),this}saturate(i){return Df(this._rgb,1,i),this}desaturate(i){return Df(this._rgb,1,-i),this}rotate(i){return function Voe(t,i){var e=FC(t);e[0]=Jk(e[0]+i),e=NC(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,i),this}}function s3(t){return new kf(t)}function r3(t){if(t&&"object"==typeof t){const i=t.toString();return"[object CanvasPattern]"===i||"[object CanvasGradient]"===i}return!1}function a3(t){return r3(t)?t:s3(t)}function BC(t){return r3(t)?t:s3(t).saturate(.5).darken(.1).hexString()}const ma=Object.create(null),HC=Object.create(null);function Qu(t,i){if(!i)return t;const e=i.split(".");for(let n=0,o=e.length;ne.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,n)=>BC(n.backgroundColor),this.hoverBorderColor=(e,n)=>BC(n.borderColor),this.hoverColor=(e,n)=>BC(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i)}set(i,e){return zC(this,i,e)}get(i){return Qu(this,i)}describe(i,e){return zC(HC,i,e)}override(i,e){return zC(ma,i,e)}route(i,e,n,o){const s=Qu(this,i),r=Qu(this,n),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[o];return qt(l)?Object.assign({},c,l):Nt(l,c)},set(l){this[a]=l}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Mf(t,i,e,n,o){let s=i[o];return s||(s=i[o]=t.measureText(o).width,e.push(o)),s>n&&(n=s),n}function Qoe(t,i,e,n){let o=(n=n||{}).data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==i&&(o=n.data={},s=n.garbageCollect=[],n.font=i),t.save(),t.font=i;let r=0;const a=e.length;let l,c,u,p,m;for(l=0;le.length){for(l=0;l<_;l++)delete o[s[l]];s.splice(0,_)}return r}function _a(t,i,e){const n=t.currentDevicePixelRatio,o=0!==e?Math.max(e/2,.5):0;return Math.round((i-o)*n)/n+o}function l3(t,i){(i=i||t.getContext("2d")).save(),i.resetTransform(),i.clearRect(0,0,t.width,t.height),i.restore()}function jC(t,i,e,n){c3(t,i,e,n,null)}function c3(t,i,e,n,o){let s,r,a,l,c,u;const p=i.pointStyle,m=i.rotation,_=i.radius;let b=(m||0)*goe;if(p&&"object"==typeof p&&(s=p.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(e,n),t.rotate(b),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(_)||_<=0)){switch(t.beginPath(),p){default:o?t.ellipse(e,n,o/2,_,0,0,Cn):t.arc(e,n,_,0,Cn),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),t.closePath();break;case"rectRounded":c=.516*_,l=_-c,r=Math.cos(b+Uu)*l,a=Math.sin(b+Uu)*l,t.arc(e-r,n-a,c,b-Vn,b-Qn),t.arc(e+a,n-r,c,b-Qn,b),t.arc(e+r,n+a,c,b,b+Qn),t.arc(e-a,n+r,c,b+Qn,b+Vn),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*_,u=o?o/2:l,t.rect(e-u,n-l,2*u,2*l);break}b+=Uu;case"rectRot":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+a,n-r),t.lineTo(e+r,n+a),t.lineTo(e-a,n+r),t.closePath();break;case"crossRot":b+=Uu;case"cross":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"star":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r),b+=Uu,r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"line":r=o?o/2:Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(b)*_,n+Math.sin(b)*_)}t.fill(),i.borderWidth>0&&t.stroke()}}function Zu(t,i,e){return e=e||.5,!i||t&&t.x>i.left-e&&t.xi.top-e&&t.y0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=o.string,function Xoe(t,i){i.translation&&t.translate(i.translation[0],i.translation[1]),tn(i.rotation)||t.rotate(i.rotation),i.color&&(t.fillStyle=i.color),i.textAlign&&(t.textAlign=i.textAlign),i.textBaseline&&(t.textBaseline=i.textBaseline)}(t,s),l=0;l+t||0;function UC(t,i){const e={},n=qt(i),o=n?Object.keys(i):i,s=qt(t)?n?r=>Nt(t[r],t[i[r]]):r=>t[r]:()=>t;for(const r of o)e[r]=ise(s(r));return e}function u3(t){return UC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ca(t){return UC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Pi(t){const i=u3(t);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ui(t,i){let e=Nt((t=t||{}).size,(i=i||Qt.font).size);"string"==typeof e&&(e=parseInt(e,10));let n=Nt(t.style,i.style);n&&!(""+n).match(tse)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const o={family:Nt(t.family,i.family),lineHeight:nse(Nt(t.lineHeight,i.lineHeight),e),size:e,style:n,weight:Nt(t.weight,i.weight),string:""};return o.string=function Woe(t){return!t||tn(t.size)||tn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Xu(t,i,e,n){let s,r,a,o=!0;for(s=0,r=t.length;st[0])){Fo(n)||(n=g3("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:e,_fallback:n,_getTarget:o,override:r=>$C([r,...t],i,e,n)};return new Proxy(s,{deleteProperty:(r,a)=>(delete r[a],delete r._keys,delete t[0][a],!0),get:(r,a)=>p3(r,a,()=>function pse(t,i,e,n){let o;for(const s of i)if(o=g3(sse(s,t),e),Fo(o))return KC(t,o)?GC(e,n,t,o):o}(a,i,t,r)),getOwnPropertyDescriptor:(r,a)=>Reflect.getOwnPropertyDescriptor(r._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(r,a)=>m3(r).includes(a),ownKeys:r=>m3(r),set(r,a,l){const c=r._storage||(r._storage=o());return r[a]=c[a]=l,delete r._keys,!0}})}function Wl(t,i,e,n){const o={_cacheable:!1,_proxy:t,_context:i,_subProxy:e,_stack:new Set,_descriptors:d3(t,n),setContext:s=>Wl(t,s,e,n),override:s=>Wl(t.override(s),i,e,n)};return new Proxy(o,{deleteProperty:(s,r)=>(delete s[r],delete t[r],!0),get:(s,r,a)=>p3(s,r,()=>function rse(t,i,e){const{_proxy:n,_context:o,_subProxy:s,_descriptors:r}=t;let a=n[i];return Fr(a)&&r.isScriptable(i)&&(a=function ase(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_stack:a}=e;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),i=i(s,r||n),a.delete(t),KC(t,i)&&(i=GC(o._scopes,o,t,i)),i}(i,a,t,e)),kn(a)&&a.length&&(a=function lse(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_descriptors:a}=e;if(Fo(s.index)&&n(t))i=i[s.index%i.length];else if(qt(i[0])){const l=i,c=o._scopes.filter(u=>u!==l);i=[];for(const u of l){const p=GC(c,o,t,u);i.push(Wl(p,s,r&&r[t],a))}}return i}(i,a,t,r.isIndexable)),KC(i,a)&&(a=Wl(a,o,s&&s[i],r)),a}(s,r,a)),getOwnPropertyDescriptor:(s,r)=>s._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(s,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(s,r,a)=>(t[r]=a,delete s[r],!0)})}function d3(t,i={scriptable:!0,indexable:!0}){const{_scriptable:e=i.scriptable,_indexable:n=i.indexable,_allKeys:o=i.allKeys}=t;return{allKeys:o,scriptable:e,indexable:n,isScriptable:Fr(e)?e:()=>e,isIndexable:Fr(n)?n:()=>n}}const sse=(t,i)=>t?t+DC(i):i,KC=(t,i)=>qt(i)&&"adapters"!==t&&(null===Object.getPrototypeOf(i)||i.constructor===Object);function p3(t,i,e){if(Object.prototype.hasOwnProperty.call(t,i))return t[i];const n=e();return t[i]=n,n}function h3(t,i,e){return Fr(t)?t(i,e):t}const cse=(t,i)=>!0===t?i:"string"==typeof t?Pr(i,t):void 0;function use(t,i,e,n,o){for(const s of i){const r=cse(e,s);if(r){t.add(r);const a=h3(r._fallback,e,o);if(Fo(a)&&a!==e&&a!==n)return a}else if(!1===r&&Fo(n)&&e!==n)return null}return!1}function GC(t,i,e,n){const o=i._rootScopes,s=h3(i._fallback,e,n),r=[...t,...o],a=new Set;a.add(n);let l=f3(a,r,e,s||e,n);return!(null===l||Fo(s)&&s!==e&&(l=f3(a,r,s,l,n),null===l))&&$C(Array.from(a),[""],o,s,()=>function dse(t,i,e){const n=t._getTarget();i in n||(n[i]={});const o=n[i];return kn(o)&&qt(e)?e:o}(i,e,n))}function f3(t,i,e,n,o){for(;e;)e=use(t,i,e,n,o);return e}function g3(t,i){for(const e of i){if(!e)continue;const n=e[t];if(Fo(n))return n}}function m3(t){let i=t._keys;return i||(i=t._keys=function hse(t){const i=new Set;for(const e of t)for(const n of Object.keys(e).filter(o=>!o.startsWith("_")))i.add(n);return Array.from(i)}(t._scopes)),i}function _3(t,i,e,n){const{iScale:o}=t,{key:s="r"}=this._parsing,r=new Array(n);let a,l,c,u;for(a=0,l=n;ai"x"===t?"y":"x";function gse(t,i,e,n){const o=t.skip?i:t,s=i,r=e.skip?i:e,a=MC(s,o),l=MC(r,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const p=n*c,m=n*u;return{previous:{x:s.x-p*(r.x-o.x),y:s.y-p*(r.y-o.y)},next:{x:s.x+m*(r.x-o.x),y:s.y+m*(r.y-o.y)}}}function Pf(t,i,e){return Math.max(Math.min(t,e),i)}function vse(t,i,e,n,o){let s,r,a,l;if(i.spanGaps&&(t=t.filter(c=>!c.skip)),"monotone"===i.cubicInterpolationMode)!function Ise(t,i="x"){const e=I3(i),n=t.length,o=Array(n).fill(0),s=Array(n);let r,a,l,c=Ql(t,0);for(r=0;rwindow.getComputedStyle(t,null),yse=["top","right","bottom","left"];function va(t,i,e){const n={};e=e?"-"+e:"";for(let o=0;o<4;o++){const s=yse[o];n[s]=parseFloat(t[i+"-"+s+e])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const xse=(t,i,e)=>(t>0||i>0)&&(!e||!e.shadowRoot);function ba(t,i){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:n}=i,o=Rf(e),s="border-box"===o.boxSizing,r=va(o,"padding"),a=va(o,"border","width"),{x:l,y:c,box:u}=function Ase(t,i){const e=t.touches,n=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=n;let a,l,r=!1;if(xse(o,s,t.target))a=o,l=s;else{const c=i.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,r=!0}return{x:a,y:l,box:r}}(t,e),p=r.left+(u&&a.left),m=r.top+(u&&a.top);let{width:_,height:b}=i;return s&&(_-=r.width+a.width,b-=r.height+a.height),{x:Math.round((l-p)/_*e.width/n),y:Math.round((c-m)/b*e.height/n)}}const WC=t=>Math.round(10*t)/10;function v3(t,i,e){const n=i||1,o=Math.floor(t.height*n),s=Math.floor(t.width*n);t.height=o/n,t.width=s/n;const r=t.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==o||r.width!==s)&&(t.currentDevicePixelRatio=n,r.height=o,r.width=s,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Sse=function(){let t=!1;try{const i={get passive(){return t=!0,!1}};window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return t}();function b3(t,i){const e=function bse(t,i){return Rf(t).getPropertyValue(i)}(t,i),n=e&&e.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ya(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:t.y+e*(i.y-t.y)}}function Ese(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:"middle"===n?e<.5?t.y:i.y:"after"===n?e<1?t.y:i.y:e>0?i.y:t.y}}function Dse(t,i,e,n){const o={x:t.cp2x,y:t.cp2y},s={x:i.cp1x,y:i.cp1y},r=ya(t,o,e),a=ya(o,s,e),l=ya(s,i,e),c=ya(r,a,e),u=ya(a,l,e);return ya(c,u,e)}const y3=new Map;function Ju(t,i,e){return function kse(t,i){i=i||{};const e=t+JSON.stringify(i);let n=y3.get(e);return n||(n=new Intl.NumberFormat(t,i),y3.set(e,n)),n}(i,e).format(t)}function Zl(t,i,e){return t?function(t,i){return{x:e=>t+t+i-e,setWidth(e){i=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(i,e):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,i)=>t+i,leftForLtr:(t,i)=>t}}function x3(t,i){let e,n;("ltr"===i||"rtl"===i)&&(e=t.canvas.style,n=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",i,"important"),t.prevTextDirection=n)}function A3(t,i){void 0!==i&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",i[0],i[1]))}function w3(t){return"angle"===t?{between:Ku,compare:Ioe,normalize:vo}:{between:Xs,compare:(i,e)=>i-e,normalize:i=>i}}function T3({start:t,end:i,count:e,loop:n,style:o}){return{start:t%e,end:i%e,loop:n&&(i-t+1)%e==0,style:o}}function S3(t,i,e){if(!e)return[t];const{property:n,start:o,end:s}=e,r=i.length,{compare:a,between:l,normalize:c}=w3(n),{start:u,end:p,loop:m,style:_}=function Lse(t,i,e){const{property:n,start:o,end:s}=e,{between:r,normalize:a}=w3(n),l=i.length;let m,_,{start:c,end:u,loop:p}=t;if(p){for(c+=l,u+=l,m=0,_=l;m<_&&r(a(i[c%l][n]),o,s);++m)c--,u--;c%=l,u%=l}return ua({chart:i,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Kk.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let e=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const s=n.items;let l,r=s.length-1,a=!1;for(;r>=0;--r)l=s[r],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(i),a=!0):(s[r]=s[s.length-1],s.pop());a&&(o.draw(),this._notify(o,n,i,"progress")),s.length||(n.running=!1,this._notify(o,n,i,"complete"),n.initial=!1),e+=s.length}),this._lastDate=i,0===e&&(this._running=!1)}_getAnims(i){const e=this._charts;let n=e.get(i);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(i,n)),n}listen(i,e,n){this._getAnims(i).listeners[e].push(n)}add(i,e){!e||!e.length||this._getAnims(i).items.push(...e)}has(i){return this._getAnims(i).items.length>0}start(i){const e=this._charts.get(i);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(i){if(!this._running)return!1;const e=this._charts.get(i);return!(!e||!e.running||!e.items.length)}stop(i){const e=this._charts.get(i);if(!e||!e.items.length)return;const n=e.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();e.items=[],this._notify(i,e,Date.now(),"complete")}remove(i){return this._charts.delete(i)}};const M3="transparent",Hse={boolean:(t,i,e)=>e>.5?i:t,color(t,i,e){const n=a3(t||M3),o=n.valid&&a3(i||M3);return o&&o.valid?o.mix(n,e).hexString():i},number:(t,i,e)=>t+(i-t)*e};class zse{constructor(i,e,n,o){const s=e[n];o=Xu([i.to,o,s,i.from]);const r=Xu([i.from,s,o]);this._active=!0,this._fn=i.fn||Hse[i.type||typeof r],this._easing=Gu[i.easing]||Gu.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=e,this._prop=n,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(i,e,n){if(this._active){this._notify(!1);const o=this._target[this._prop],s=n-this._start,r=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=s,this._loop=!!i.loop,this._to=Xu([i.to,e,o,i.from]),this._from=Xu([i.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){const e=i-this._start,n=this._duration,o=this._prop,s=this._from,r=this._loop,a=this._to;let l;if(this._active=s!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,a,l))}wait(){const i=this._promises||(this._promises=[]);return new Promise((e,n)=>{i.push({res:e,rej:n})})}_notify(i){const e=i?"res":"rej",n=this._promises||[];for(let o=0;o"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Qt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Qt.describe("animations",{_fallback:"animation"}),Qt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class O3{constructor(i,e){this._chart=i,this._properties=new Map,this.configure(e)}configure(i){if(!qt(i))return;const e=this._properties;Object.getOwnPropertyNames(i).forEach(n=>{const o=i[n];if(!qt(o))return;const s={};for(const r of $se)s[r]=o[r];(kn(o.properties)&&o.properties||[n]).forEach(r=>{(r===n||!e.has(r))&&e.set(r,s)})})}_animateOptions(i,e){const n=e.options,o=function Gse(t,i){if(!i)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=i}(i,n);if(!o)return[];const s=this._createAnimations(o,n);return n.$shared&&function Kse(t,i){const e=[],n=Object.keys(i);for(let o=0;o{i.options=n},()=>{}),s}_createAnimations(i,e){const n=this._properties,o=[],s=i.$animations||(i.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(i,e));continue}const u=e[c];let p=s[c];const m=n.get(c);if(p){if(m&&p.active()){p.update(m,u,a);continue}p.cancel()}m&&m.duration?(s[c]=p=new zse(m,i,c,u),o.push(p)):i[c]=u}return o}update(i,e){if(0===this._properties.size)return void Object.assign(i,e);const n=this._createAnimations(i,e);return n.length?(tr.add(this._chart,n),!0):void 0}}function L3(t,i){const e=t&&t.options||{},n=e.reverse,o=void 0===e.min?i:0,s=void 0===e.max?i:0;return{start:n?s:o,end:n?o:s}}function P3(t,i){const e=[],n=t._getSortedDatasetMetas(i);let o,s;for(o=0,s=n.length;o0||!e&&s<0)return o.index}return null}function V3(t,i){const{chart:e,_cachedMeta:n}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:r,index:a}=n,l=s.axis,c=r.axis,u=function Zse(t,i,e){return`${t.id}.${i.id}.${e.stack||e.type}`}(s,r,n),p=i.length;let m;for(let _=0;_e[n].axis===i).shift()}function ed(t,i){const e=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){i=i||t._parsed;for(const o of i){const s=o._stacks;if(!s||void 0===s[n]||void 0===s[n][e])return;delete s[n][e]}}}const ZC=t=>"reset"===t||"none"===t,B3=(t,i)=>i?t:Object.assign({},t);let vs=(()=>{class t{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=R3(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&ed(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),s=(m,_,b,E)=>"x"===m?_:"r"===m?E:b,r=n.xAxisID=Nt(o.xAxisID,QC(e,"x")),a=n.yAxisID=Nt(o.yAxisID,QC(e,"y")),l=n.rAxisID=Nt(o.rAxisID,QC(e,"r")),c=n.indexAxis,u=n.iAxisID=s(c,r,a,l),p=n.vAxisID=s(c,a,r,l);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Uk(this._data,this),e._stacked&&ed(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(qt(n))this._data=function Qse(t){const i=Object.keys(t),e=new Array(i.length);let n,o,s;for(n=0,o=i.length;n{const n="_onData"+DC(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){const r=o.apply(this,s);return t._chartjs.listeners.forEach(a=>{"function"==typeof a[n]&&a[n](...s)}),r}})}))}(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=R3(n.vScale,n),n.stack!==o.stack&&(s=!0,ed(n),n.stack=o.stack),this._resyncElements(e),(s||r!==n._stacked)&&V3(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:s}=this,{iScale:r,_stacked:a}=o,l=r.axis;let p,m,_,c=0===e&&n===s.length||o._sorted,u=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=s,o._sorted=!0,_=s;else{_=kn(s[e])?this.parseArrayData(o,s,e,n):qt(s[e])?this.parseObjectData(o,s,e,n):this.parsePrimitiveData(o,s,e,n);const b=()=>null===m[l]||u&&m[l]t&&!i.hidden&&i._stacked&&{keys:P3(this.chart,!0),values:null})(n,o),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:m}=function Yse(t){const{min:i,max:e,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?i:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}(l);let _,b;function E(){b=s[_];const P=b[l.axis];return!ti(b[e.axis])||p>P||m=0;--_)if(!E()){this.updateRangeFromParsed(u,e,b,c);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let s,r,a;for(s=0,r=n.length;s=0&&ethis.getContext(o,s),m);return P.$shared&&(P.$shared=c,r[a]=Object.freeze(B3(P,c))),P}_resolveAnimations(e,n,o){const s=this.chart,r=this._cachedDataOpts,a=`animation-${n}`,l=r[a];if(l)return l;let c;if(!1!==s.options.animation){const p=this.chart.config,m=p.datasetAnimationScopeKeys(this._type,n),_=p.getOptionScopes(this.getDataset(),m);c=p.createResolver(_,this.getContext(e,o,n))}const u=new O3(s,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||ZC(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(o),a=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,o),{sharedOptions:r,includeOptions:a}}updateElement(e,n,o,s){ZC(s)?Object.assign(e,o):this._resolveAnimations(n,s).update(e,o)}updateSharedOptions(e,n,o){e&&!ZC(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,o,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const s=o.length,r=n.length,a=Math.min(r,s);a&&this.parse(0,a),r>s?this._insertElements(s,r-s,e):r{for(u.length+=n,l=u.length-1;l>=a;l--)u[l]=u[l-n]};for(c(r),l=e;lo-s))}return t._cache.$bar}(i,t.type);let o,s,r,a,n=i._length;const l=()=>{32767===r||-32768===r||(Fo(a)&&(n=Math.min(n,Math.abs(r-a)||n)),a=r)};for(o=0,s=e.length;oMath.abs(a)&&(l=a,c=r),i[e.axis]=c,i._custom={barStart:l,barEnd:c,start:o,end:s,min:r,max:a}}(t,i,e,n):i[e.axis]=e.parse(t,n),i}function z3(t,i,e,n){const o=t.iScale,s=t.vScale,r=o.getLabels(),a=o===s,l=[];let c,u,p,m;for(c=e,u=e+n;ct.x,e="left",n="right"):(i=t.base{class t extends vs{parsePrimitiveData(e,n,o,s){return z3(e,n,o,s)}parseArrayData(e,n,o,s){return z3(e,n,o,s)}parseObjectData(e,n,o,s){const{iScale:r,vScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u="x"===r.axis?l:c,p="x"===a.axis?l:c,m=[];let _,b,E,P;for(_=o,b=o+s;_c.controller.options.grouped),r=o.options.stacked,a=[],l=c=>{const u=c.controller.getParsed(n),p=u&&u[c.vScale.axis];if(tn(p)||isNaN(p))return!0};for(const c of s)if((void 0===n||!l(c))&&((!1===r||-1===a.indexOf(c.stack)||void 0===r&&void 0===c.stack)&&a.push(c.stack),c.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,o){const s=this._getStacks(e,o),r=void 0!==n?s.indexOf(n):-1;return-1===r?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,s=[];let r,a;for(r=0,a=n.data.length;r=e?1:-1)}(E,n,a)*r,p===a&&(W-=E/2);const te=n.getPixelForDecimal(0),fe=n.getPixelForDecimal(1),Ce=Math.min(te,fe),ve=Math.max(te,fe);W=Math.max(Math.min(W,ve),Ce),b=W+E}if(W===n.getPixelForValue(a)){const te=Cs(E)*n.getLineWidthForValue(a)/2;W+=te,E-=te}return{size:E,base:W,head:b,center:b+E/2}}_calculateBarIndexPixels(e,n){const o=n.scale,s=this.options,r=s.skipNull,a=Nt(s.maxBarThickness,1/0);let l,c;if(n.grouped){const u=r?this._getStackCount(e):n.stackCount,p="flex"===s.barThickness?function sre(t,i,e,n){const o=i.pixels,s=o[t];let r=t>0?o[t-1]:null,a=t{class t extends vs{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,o,s){const r=super.parsePrimitiveData(e,n,o,s);for(let a=0;a=0;--o)n=Math.max(n,e[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:o,yScale:s}=n,r=this.getParsed(e),a=o.getLabelForValue(r.x),l=s.getLabelForValue(r.y),c=r._custom;return{label:n.label,value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,s),p=a.axis,m=l.axis;for(let _=n;_""}}}},t})(),$3=(()=>{class t extends vs{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=o;else{let a,l,r=c=>+o[c];if(qt(o[e])){const{key:c="value"}=this._parsing;r=u=>+Pr(o[u],c)}for(a=e,l=e+n;a"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/i)(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:p,rotation:m}=this._getRotationExtents(),{ratioX:_,ratioY:b,offsetX:E,offsetY:P}=function fre(t,i,e){let n=1,o=1,s=0,r=0;if(iKu(fe,a,l,!0)?1:Math.max(Ce,Ce*e,ve,ve*e),b=(fe,Ce,ve)=>Ku(fe,a,l,!0)?-1:Math.min(Ce,Ce*e,ve,ve*e),E=_(0,c,p),P=_(Qn,u,m),W=b(Vn,c,p),te=b(Vn+Qn,u,m);n=(E-W)/2,o=(P-te)/2,s=-(E+W)/2,r=-(P+te)/2}return{ratioX:n,ratioY:o,offsetX:s,offsetY:r}}(m,p,c),fe=Math.max(Math.min((o.width-a)/_,(o.height-a)/b)/2,0),Ce=Lk(this.options.radius,fe),ke=(Ce-Math.max(Ce*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=E*Ce,this.offsetY=P*Ce,s.total=this.calculateTotal(),this.outerRadius=Ce-ke*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-ke*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const o=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||null===s._parsed[e]||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Cn)}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,l=a.chartArea,p=(l.left+l.right)/2,m=(l.top+l.bottom)/2,_=r&&a.options.animation.animateScale,b=_?0:this.innerRadius,E=_?0:this.outerRadius,{sharedOptions:P,includeOptions:W}=this._getSharedOptions(n,s);let fe,te=this._getRotation();for(fe=0;fe0&&!isNaN(e)?Cn*(Math.abs(e)/n):0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e],o.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const o=this.chart;let s,r,a,l,c;if(!e)for(s=0,r=o.data.datasets.length;s"spacing"!==i,_indexable:i=>"spacing"!==i},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(i){let e=i.label;const n=": "+i.formattedValue;return kn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}},t})(),gre=(()=>{class t extends vs{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:s=[],_dataset:r}=n,a=this.chart._animationsDisabled;let{start:l,count:c}=qk(n,s,a);this._drawStart=l,this._drawCount=c,Wk(n)&&(l=0,c=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=s;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!a,options:u},e),this.updateElements(s,l,c,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,s),_=a.axis,b=l.axis,{spanGaps:E,segment:P}=this.options,W=Gl(E)?E:Number.POSITIVE_INFINITY,te=this.chart._animationsDisabled||r||"none"===s;let fe=n>0&&this.getParsed(n-1);for(let Ce=n;Ce0&&Math.abs(ke[_]-fe[_])>W,P&&(Pe.parsed=ke,Pe.raw=u.data[Ce]),m&&(Pe.options=p||this.resolveDataElementOptions(Ce,ve.active?"active":s)),te||this.updateElement(ve,Ce,Pe,s),fe=ke}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return o;const r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t.id="line",t.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},t.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},t})(),mre=(()=>{class t extends vs{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e].r,o.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((o,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(rn.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,o=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),l=(r-Math.max(o.cutoutPercentage?r/100*o.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,c=a.options.animation,u=this._cachedMeta.rScale,p=u.xCenter,m=u.yCenter,_=u.getIndexAngle(0)-.5*Vn;let E,b=_;const P=360/this.countVisibleElements();for(E=0;E{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,o){return this.chart.getDataVisibility(e)?Yo(this.resolveDataElementOptions(e,n).angle||o):0}}return t.id="polarArea",t.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:i=>i.chart.data.labels[i.dataIndex]+": "+i.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},t})(),_re=(()=>{class t extends $3{}return t.id="pie",t.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},t})(),Ire=(()=>{class t extends vs{getLabelAndValue(e){const n=this._cachedMeta.vScale,o=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta,o=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(o.points=s,"resize"!==e){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0),this.updateElement(o,void 0,{_loop:!0,_fullLoop:r.length===s.length,options:a},e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,o,s){const r=this._cachedMeta.rScale,a="reset"===s;for(let l=n;l{o[s]=n[s]&&n[s].active()?n[s]._to:this[s]}),o}}Xo.defaults={},Xo.defaultRoutes=void 0;const K3={values:t=>kn(t)?t:""+t,numeric(t,i,e){if(0===t)return"0";const n=this.chart.options.locale;let o,s=t;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=function Cre(t,i){let e=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const r=Ro(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ju(t,n,l)},logarithmic(t,i,e){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(Ro(t)));return 1===n||2===n||5===n?K3.numeric.call(this,t,i,e):""}};var Nf={formatters:K3};function Vf(t,i,e,n,o){const s=Nt(n,0),r=Math.min(Nt(o,t.length),t.length);let l,c,u,a=0;for(e=Math.ceil(e),o&&(l=o-n,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);ci.lineWidth,tickColor:(t,i)=>i.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Nf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Qt.route("scale.ticks","color","","color"),Qt.route("scale.grid","color","","borderColor"),Qt.route("scale.grid","borderColor","","borderColor"),Qt.route("scale.title","color","","color"),Qt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Qt.describe("scales",{_fallback:"scale"}),Qt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const G3=(t,i,e)=>"top"===i||"left"===i?t[i]+e:t[i]-e;function q3(t,i){const e=[],n=t.length/i,o=t.length;let s=0;for(;sr+a)))return l}function td(t){return t.drawTicks?t.tickLength:0}function W3(t,i){if(!t.display)return 0;const e=ui(t.font,i),n=Pi(t.padding);return(kn(t.text)?t.text.length:1)*e.lineHeight+n.height}function Mre(t,i,e){let n=LC(t);return(e&&"right"!==i||!e&&"right"===i)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class xa extends Xo{constructor(i){super(),this.id=i.id,this.type=i.type,this.options=void 0,this.ctx=i.ctx,this.chart=i.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(i){this.options=i.setContext(this.getContext()),this.axis=i.axis,this._userMin=this.parse(i.min),this._userMax=this.parse(i.max),this._suggestedMin=this.parse(i.suggestedMin),this._suggestedMax=this.parse(i.suggestedMax)}parse(i,e){return i}getUserBounds(){let{_userMin:i,_userMax:e,_suggestedMin:n,_suggestedMax:o}=this;return i=Po(i,Number.POSITIVE_INFINITY),e=Po(e,Number.NEGATIVE_INFINITY),n=Po(n,Number.POSITIVE_INFINITY),o=Po(o,Number.NEGATIVE_INFINITY),{min:Po(i,n),max:Po(e,o),minDefined:ti(i),maxDefined:ti(e)}}getMinMax(i){let r,{min:e,max:n,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:e,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;ln?n:e,n=o&&e>n?e:n,{min:Po(e,Po(n,e)),max:Po(n,Po(e,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mn(this.options.beforeUpdate,[this])}update(i,e,n){const{beginAtZero:o,grace:s,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function ose(t,i,e){const{min:n,max:o}=t,s=Lk(i,(o-n)/2),r=(a,l)=>e&&0===a?0:a+l;return{min:r(n,-Math.abs(s)),max:r(o,s)}}(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=an)return function Are(t,i,e,n){let r,o=0,s=e[0];for(n=Math.ceil(n),r=0;ro-s).pop(),i}(n);for(let r=0,a=s.length-1;ro)return l}return Math.max(o,1)}(o,i,n);if(s>0){let u,p;const m=s>1?Math.round((a-r)/(s-1)):null;for(Vf(i,l,c,tn(m)?0:r-m,r),u=0,p=s-1;u=s||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const u=this._getLabelSizes(),p=u.widest.width,m=u.highest.height,_=pi(this.chart.width-p,0,this.maxWidth);a=i.offset?this.maxWidth/n:_/(n-1),p+6>a&&(a=_/(n-(i.offset?.5:1)),l=this.maxHeight-td(i.grid)-e.padding-W3(i.title,this.chart.options.font),c=Math.sqrt(p*p+m*m),r=kC(Math.min(Math.asin(pi((u.highest.height+6)/a,-1,1)),Math.asin(pi(l/c,-1,1))-Math.asin(pi(m/c,-1,1)))),r=Math.max(o,Math.min(s,r))),this.labelRotation=r}afterCalculateLabelRotation(){Mn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mn(this.options.beforeFit,[this])}fit(){const i={width:0,height:0},{chart:e,options:{ticks:n,title:o,grid:s}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=W3(o,e.options.font);if(a?(i.width=this.maxWidth,i.height=td(s)+l):(i.height=this.maxHeight,i.width=td(s)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:p,highest:m}=this._getLabelSizes(),_=2*n.padding,b=Yo(this.labelRotation),E=Math.cos(b),P=Math.sin(b);a?i.height=Math.min(this.maxHeight,i.height+(n.mirror?0:P*p.width+E*m.height)+_):i.width=Math.min(this.maxWidth,i.width+(n.mirror?0:E*p.width+P*m.height)+_),this._calculatePadding(c,u,P,E)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,e,n,o){const{ticks:{align:s,padding:r},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,_=0;l?c?(m=o*i.width,_=n*e.height):(m=n*i.height,_=o*e.width):"start"===s?_=e.width:"end"===s?m=i.width:"inner"!==s&&(m=i.width/2,_=e.width/2),this.paddingLeft=Math.max((m-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((_-p+r)*this.width/(this.width-p),0)}else{let u=e.height/2,p=i.height/2;"start"===s?(u=0,p=i.height):"end"===s&&(u=e.height,p=0),this.paddingTop=u+r,this.paddingBottom=p+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mn(this.options.afterFit,[this])}isHorizontal(){const{axis:i,position:e}=this.options;return"top"===e||"bottom"===e||"x"===i}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(i),e=0,n=i.length;e{const n=e.gc,o=n.length/2;let s;if(o>i){for(s=0;s({width:s[Pe]||0,height:r[Pe]||0});return{first:ke(0),last:ke(e-1),widest:ke(Ce),highest:ke(ve),widths:s,heights:r}}getLabelForValue(i){return i}getPixelForValue(i,e){return NaN}getValueForPixel(i){}getPixelForTick(i){const e=this.ticks;return i<0||i>e.length-1?null:this.getPixelForValue(e[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);const e=this._startPixel+i*this._length;return function Coe(t){return pi(t,-32768,32767)}(this._alignToPixels?_a(this.chart,e,0):e)}getDecimalForPixel(i){const e=(i-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:i,max:e}=this;return i<0&&e<0?e:i>0&&e>0?i:0}getContext(i){const e=this.ticks||[];if(i>=0&&ia*o?a/n:l/o:l*o0}_computeGridLineItems(i){const e=this.axis,n=this.chart,o=this.options,{grid:s,position:r}=o,a=s.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),p=td(s),m=[],_=s.setContext(this.getContext()),b=_.drawBorder?_.borderWidth:0,E=b/2,P=function(wt){return _a(n,wt,b)};let W,te,fe,Ce,ve,ke,Pe,$e,Ke,pt,jt,Vt;if("top"===r)W=P(this.bottom),ke=this.bottom-p,$e=W-E,pt=P(i.top)+E,Vt=i.bottom;else if("bottom"===r)W=P(this.top),pt=i.top,Vt=P(i.bottom)-E,ke=W+E,$e=this.top+p;else if("left"===r)W=P(this.right),ve=this.right-p,Pe=W-E,Ke=P(i.left)+E,jt=i.right;else if("right"===r)W=P(this.left),Ke=i.left,jt=P(i.right)-E,ve=W+E,Pe=this.left+p;else if("x"===e){if("center"===r)W=P((i.top+i.bottom)/2+.5);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}pt=i.top,Vt=i.bottom,ke=W+E,$e=ke+p}else if("y"===e){if("center"===r)W=P((i.left+i.right)/2);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}ve=W-E,Pe=ve-p,Ke=i.left,jt=i.right}const vn=Nt(o.ticks.maxTicksLimit,u),hi=Math.max(1,Math.ceil(u/vn));for(te=0;tes.value===i);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(i){const e=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i));let s,r;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(e.display)for(s=0,r=o.length;s{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]:[{z:e,draw:o=>{this.draw(o)}}]}getMatchingVisibleMetas(i){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let s,r;for(s=0,r=e.length;s{const n=e.split("."),o=n.pop(),s=[t].concat(n).join("."),r=i[e].split("."),a=r.pop(),l=r.join(".");Qt.route(s,o,l,a)})}(i,t.defaultRoutes),t.descriptors&&Qt.describe(i,t.descriptors)}(i,r,n),this.override&&Qt.override(i.id,i.overrides)),r}get(i){return this.items[i]}unregister(i){const e=this.items,n=i.id,o=this.scope;n in e&&delete e[n],o&&n in Qt[o]&&(delete Qt[o][n],this.override&&delete ma[n])}}var bs=new class Rre{constructor(){this.controllers=new Bf(vs,"datasets",!0),this.elements=new Bf(Xo,"elements"),this.plugins=new Bf(Object,"plugins"),this.scales=new Bf(xa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,e,n){[...e].forEach(o=>{const s=n||this._getRegistryForType(o);n||s.isForType(o)||s===this.plugins&&o.id?this._exec(i,s,o):_n(o,r=>{const a=n||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,e,n){const o=DC(i);Mn(n["before"+o],[],n),e[i](n),Mn(n["after"+o],[],n)}_getRegistryForType(i){for(let e=0;e{class t extends vs{update(e){const n=this._cachedMeta,{data:o=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:a}=qk(n,o,s);if(this._drawStart=r,this._drawCount=a,Wk(n)&&(r=0,a=o.length),this.options.showLine){const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:u},e)}this.updateElements(o,r,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=bs.getElement("line")),super.addElements()}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,p=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(p),_=this.includeOptions(s,m),b=a.axis,E=l.axis,{spanGaps:P,segment:W}=this.options,te=Gl(P)?P:Number.POSITIVE_INFINITY,fe=this.chart._animationsDisabled||r||"none"===s;let Ce=n>0&&this.getParsed(n-1);for(let ve=n;ve0&&Math.abs(Pe[b]-Ce[b])>te,W&&($e.parsed=Pe,$e.raw=u.data[ve]),_&&($e.options=m||this.resolveDataElementOptions(ve,ke.active?"active":s)),fe||this.updateElement(ke,ve,$e,s),Ce=Pe}this.updateSharedOptions(m,s,p)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,a)/2}}return t.id="scatter",t.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},t.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:i=>"("+i.label+", "+i.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},t})()});function Aa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Vre={_date:(()=>{class t{constructor(e){this.options=e||{}}init(e){}formats(){return Aa()}parse(e,n){return Aa()}format(e,n){return Aa()}add(e,n,o){return Aa()}diff(e,n,o){return Aa()}startOf(e,n,o){return Aa()}endOf(e,n){return Aa()}}return t.override=function(i){Object.assign(t.prototype,i)},t})()};function Bre(t,i,e,n){const{controller:o,data:s,_sorted:r}=t,a=o._cachedMeta.iScale;if(a&&i===a.axis&&"r"!==i&&r&&s.length){const l=a._reversePixels?voe:Js;if(!n)return l(s,i,e);if(o._sharedOptions){const c=s[0],u="function"==typeof c.getRange&&c.getRange(i);if(u){const p=l(s,i,e-u),m=l(s,i,e+u);return{lo:p.lo,hi:m.hi}}}}return{lo:0,hi:s.length-1}}function nd(t,i,e,n,o){const s=t.getSortedVisibleDatasetMetas(),r=e[i];for(let a=0,l=s.length;a{l[r](i[e],o)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(i.x,i.y,o))}),n&&!a?[]:s}var Ure={evaluateInteractionItems:nd,modes:{index(t,i,e,n){const o=ba(i,t),s=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,p=c.data[u];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:u})}),l):[]},dataset(t,i,e,n){const o=ba(i,t),s=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uXC(t,ba(i,t),e.axis||"xy",n,e.includeInvisible||!1),nearest:(t,i,e,n)=>JC(t,ba(i,t),e.axis||"xy",e.intersect,n,e.includeInvisible||!1),x:(t,i,e,n)=>Q3(t,ba(i,t),"x",e.intersect,n),y:(t,i,e,n)=>Q3(t,ba(i,t),"y",e.intersect,n)}};const Z3=["left","top","right","bottom"];function id(t,i){return t.filter(e=>e.pos===i)}function Y3(t,i){return t.filter(e=>-1===Z3.indexOf(e.pos)&&e.box.axis===i)}function od(t,i){return t.sort((e,n)=>{const o=i?n:e,s=i?e:n;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function X3(t,i,e,n){return Math.max(t[e],i[e])+Math.max(t[n],i[n])}function J3(t,i){t.top=Math.max(t.top,i.top),t.left=Math.max(t.left,i.left),t.bottom=Math.max(t.bottom,i.bottom),t.right=Math.max(t.right,i.right)}function Wre(t,i,e,n){const{pos:o,box:s}=e,r=t.maxPadding;if(!qt(o)){e.size&&(t[o]-=e.size);const p=n[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?s.height:s.width),e.size=p.size/p.count,t[o]+=e.size}s.getPadding&&J3(r,s.getPadding());const a=Math.max(0,i.outerWidth-X3(r,t,"left","right")),l=Math.max(0,i.outerHeight-X3(r,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function Zre(t,i){const e=i.maxPadding;return function n(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(r=>{s[r]=Math.max(i[r],e[r])}),s}(t?["left","right"]:["top","bottom"])}function sd(t,i,e,n){const o=[];let s,r,a,l,c,u;for(s=0,r=t.length,c=0;sc.box.fullSize),!0),n=od(id(i,"left"),!0),o=od(id(i,"right")),s=od(id(i,"top"),!0),r=od(id(i,"bottom")),a=Y3(i,"x"),l=Y3(i,"y");return{fullSize:e,leftAndTop:n.concat(s),rightAndBottom:o.concat(l).concat(r).concat(a),chartArea:id(i,"chartArea"),vertical:n.concat(o).concat(l),horizontal:s.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;_n(t.boxes,E=>{"function"==typeof E.beforeLayout&&E.beforeLayout()});const u=l.reduce((E,P)=>P.box.options&&!1===P.box.options.display?E:E+1,0)||1,p=Object.freeze({outerWidth:i,outerHeight:e,padding:o,availableWidth:s,availableHeight:r,vBoxMaxWidth:s/2/u,hBoxMaxHeight:r/2}),m=Object.assign({},o);J3(m,Pi(n));const _=Object.assign({maxPadding:m,w:s,h:r,x:o.left,y:o.top},o),b=function Gre(t,i){const e=function Kre(t){const i={};for(const e of t){const{stack:n,pos:o,stackWeight:s}=e;if(!n||!Z3.includes(o))continue;const r=i[n]||(i[n]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=s}return i}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=i;let s,r,a;for(s=0,r=t.length;s{const P=E.box;Object.assign(P,t.chartArea),P.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class tM{acquireContext(i,e){}releaseContext(i){return!1}addEventListener(i,e,n){}removeEventListener(i,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(i,e,n,o){return e=Math.max(0,e||i.width),n=n||i.height,{width:e,height:Math.max(0,o?Math.floor(e/o):n)}}isAttached(i){return!0}updateConfig(i){}}class Yre extends tM{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}}const zf="$chartjs",Xre={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nM=t=>null===t||""===t,iM=!!Sse&&{passive:!0};function tae(t,i,e){t.canvas.removeEventListener(i,e,iM)}function jf(t,i){for(const e of t)if(e===i||e.contains(i))return!0}function iae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.addedNodes,n),r=r&&!jf(a.removedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function oae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.removedNodes,n),r=r&&!jf(a.addedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}const rd=new Map;let oM=0;function sM(){const t=window.devicePixelRatio;t!==oM&&(oM=t,rd.forEach((i,e)=>{e.currentDevicePixelRatio!==t&&i()}))}function aae(t,i,e){const n=t.canvas,o=n&&qC(n);if(!o)return;const s=Gk((a,l)=>{const c=o.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;0===c&&0===u||s(c,u)});return r.observe(o),function sae(t,i){rd.size||window.addEventListener("resize",sM),rd.set(t,i)}(t,s),r}function ev(t,i,e){e&&e.disconnect(),"resize"===i&&function rae(t){rd.delete(t),rd.size||window.removeEventListener("resize",sM)}(t)}function lae(t,i,e){const n=t.canvas,o=Gk(s=>{null!==t.ctx&&e(function nae(t,i){const e=Xre[t.type]||t.type,{x:n,y:o}=ba(t,i);return{type:e,chart:i,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(s,t))},t,s=>{const r=s[0];return[r,r.offsetX,r.offsetY]});return function eae(t,i,e){t.addEventListener(i,e,iM)}(n,i,o),o}class cae extends tM{acquireContext(i,e){const n=i&&i.getContext&&i.getContext("2d");return n&&n.canvas===i?(function Jre(t,i){const e=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[zf]={initial:{height:n,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",nM(o)){const s=b3(t,"width");void 0!==s&&(t.width=s)}if(nM(n))if(""===t.style.height)t.height=t.width/(i||2);else{const s=b3(t,"height");void 0!==s&&(t.height=s)}}(i,e),n):null}releaseContext(i){const e=i.canvas;if(!e[zf])return!1;const n=e[zf].initial;["height","width"].forEach(s=>{const r=n[s];tn(r)?e.removeAttribute(s):e.setAttribute(s,r)});const o=n.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[zf],!0}addEventListener(i,e,n){this.removeEventListener(i,e),(i.$proxies||(i.$proxies={}))[e]=({attach:iae,detach:oae,resize:aae}[e]||lae)(i,e,n)}removeEventListener(i,e){const n=i.$proxies||(i.$proxies={}),o=n[e];o&&(({attach:ev,detach:ev,resize:ev}[e]||tae)(i,e,o),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,e,n,o){return function Tse(t,i,e,n){const o=Rf(t),s=va(o,"margin"),r=Ff(o.maxWidth,t,"clientWidth")||wf,a=Ff(o.maxHeight,t,"clientHeight")||wf,l=function wse(t,i,e){let n,o;if(void 0===i||void 0===e){const s=qC(t);if(s){const r=s.getBoundingClientRect(),a=Rf(s),l=va(a,"border","width"),c=va(a,"padding");i=r.width-c.width-l.width,e=r.height-c.height-l.height,n=Ff(a.maxWidth,s,"clientWidth"),o=Ff(a.maxHeight,s,"clientHeight")}else i=t.clientWidth,e=t.clientHeight}return{width:i,height:e,maxWidth:n||wf,maxHeight:o||wf}}(t,i,e);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const p=va(o,"border","width"),m=va(o,"padding");c-=m.width+p.width,u-=m.height+p.height}return c=Math.max(0,c-s.width),u=Math.max(0,n?Math.floor(c/n):u-s.height),c=WC(Math.min(c,r,l.maxWidth)),u=WC(Math.min(u,a,l.maxHeight)),c&&!u&&(u=WC(c/2)),{width:c,height:u}}(i,e,n,o)}isAttached(i){const e=qC(i);return!(!e||!e.isConnected)}}class dae{constructor(){this._init=[]}notify(i,e,n,o){"beforeInit"===e&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install"));const s=o?this._descriptors(i).filter(o):this._descriptors(i),r=this._notify(s,i,e,n);return"afterDestroy"===e&&(this._notify(s,i,"stop"),this._notify(this._init,i,"uninstall")),r}_notify(i,e,n,o){o=o||{};for(const s of i){const r=s.plugin;if(!1===Mn(r[n],[e,o,s.options],r)&&o.cancelable)return!1}return!0}invalidate(){tn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),e}_createDescriptors(i,e){const n=i&&i.config,o=Nt(n.options&&n.options.plugins,{}),s=function pae(t){const i={},e=[],n=Object.keys(bs.plugins.items);for(let s=0;ss.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(o(e,n),i,"stop"),this._notify(o(n,e),i,"start")}}function hae(t,i){return i||!1!==t?!0===t?{}:t:null}function gae(t,{plugin:i,local:e},n,o){const s=t.pluginScopeKeys(i),r=t.getOptionScopes(n,s);return e&&i.defaults&&r.push(i.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function tv(t,i){return((i.datasets||{})[t]||{}).indexAxis||i.indexAxis||(Qt.datasets[t]||{}).indexAxis||"x"}function nv(t,i){return"x"===t||"y"===t?t:i.axis||function Iae(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(i.position)||t.charAt(0).toLowerCase()}function rM(t){const i=t.options||(t.options={});i.plugins=Nt(i.plugins,{}),i.scales=function Cae(t,i){const e=ma[t.type]||{scales:{}},n=i.scales||{},o=tv(t.type,i),s=Object.create(null),r=Object.create(null);return Object.keys(n).forEach(a=>{const l=n[a];if(!qt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=nv(a,l),u=function _ae(t,i){return t===i?"_index_":"_value_"}(c,o),p=e.scales||{};s[c]=s[c]||a,r[a]=ju(Object.create(null),[{axis:c},l,p[c],p[u]])}),t.data.datasets.forEach(a=>{const l=a.type||t.type,c=a.indexAxis||tv(l,i),p=(ma[l]||{}).scales||{};Object.keys(p).forEach(m=>{const _=function mae(t,i){let e=t;return"_index_"===t?e=i:"_value_"===t&&(e="x"===i?"y":"x"),e}(m,c),b=a[_+"AxisID"]||s[_]||_;r[b]=r[b]||Object.create(null),ju(r[b],[{axis:_},n[b],p[m]])})}),Object.keys(r).forEach(a=>{const l=r[a];ju(l,[Qt.scales[l.type],Qt.scale])}),r}(t,i)}function aM(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lM=new Map,cM=new Set;function Uf(t,i){let e=lM.get(t);return e||(e=i(),lM.set(t,e),cM.add(e)),e}const ad=(t,i,e)=>{const n=Pr(i,e);void 0!==n&&t.add(n)};class bae{constructor(i){this._config=function vae(t){return(t=t||{}).data=aM(t.data),rM(t),t}(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=aM(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){const i=this._config;this.clearCache(),rM(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Uf(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,e){return Uf(`${i}.transition.${e}`,()=>[[`datasets.${i}.transitions.${e}`,`transitions.${e}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,e){return Uf(`${i}-${e}`,()=>[[`datasets.${i}.elements.${e}`,`datasets.${i}`,`elements.${e}`,""]])}pluginScopeKeys(i){const e=i.id;return Uf(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,e){const n=this._scopeCache;let o=n.get(i);return(!o||e)&&(o=new Map,n.set(i,o)),o}getOptionScopes(i,e,n){const{options:o,type:s}=this,r=this._cachedScopes(i,n),a=r.get(e);if(a)return a;const l=new Set;e.forEach(u=>{i&&(l.add(i),u.forEach(p=>ad(l,i,p))),u.forEach(p=>ad(l,o,p)),u.forEach(p=>ad(l,ma[s]||{},p)),u.forEach(p=>ad(l,Qt,p)),u.forEach(p=>ad(l,HC,p))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),cM.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:i,type:e}=this;return[i,ma[e]||{},Qt.datasets[e]||{},{type:e},Qt,HC]}resolveNamedOptions(i,e,n,o=[""]){const s={$shared:!0},{resolver:r,subPrefixes:a}=uM(this._resolverCache,i,o);let l=r;(function xae(t,i){const{isScriptable:e,isIndexable:n}=d3(t);for(const o of i){const s=e(o),r=n(o),a=(r||s)&&t[o];if(s&&(Fr(a)||yae(a))||r&&kn(a))return!0}return!1})(r,e)&&(s.$shared=!1,l=Wl(r,n=Fr(n)?n():n,this.createResolver(i,n,a)));for(const c of e)s[c]=l[c];return s}createResolver(i,e,n=[""],o){const{resolver:s}=uM(this._resolverCache,i,n);return qt(e)?Wl(s,e,void 0,o):s}}function uM(t,i,e){let n=t.get(i);n||(n=new Map,t.set(i,n));const o=e.join();let s=n.get(o);return s||(s={resolver:$C(i,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,s)),s}const yae=t=>qt(t)&&Object.getOwnPropertyNames(t).reduce((i,e)=>i||Fr(t[e]),!1),wae=["top","bottom","left","right","chartArea"];function dM(t,i){return"top"===t||"bottom"===t||-1===wae.indexOf(t)&&"x"===i}function pM(t,i){return function(e,n){return e[t]===n[t]?e[i]-n[i]:e[t]-n[t]}}function hM(t){const i=t.chart,e=i.options.animation;i.notifyPlugins("afterRender"),Mn(e&&e.onComplete,[t],i)}function Tae(t){const i=t.chart,e=i.options.animation;Mn(e&&e.onProgress,[t],i)}function fM(t){return C3()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const $f={},gM=t=>{const i=fM(t);return Object.values($f).filter(e=>e.canvas===i).pop()};function Sae(t,i,e){const n=Object.keys(t);for(const o of n){const s=+o;if(s>=i){const r=t[o];delete t[o],(e>0||s>i)&&(t[s+e]=r)}}}class iv{constructor(i,e){const n=this.config=new bae(e),o=fM(i),s=gM(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function uae(t){return!C3()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Yre:cae}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=aoe(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function xoe(t,i){let e;return function(...n){return i?(clearTimeout(e),e=setTimeout(t,i,n)):t.apply(this,n),i}}(p=>this.update(p),r.resizeDelay||0),this._dataChanges=[],$f[this.id]=this,a&&l?(tr.listen(this,"complete",hM),tr.listen(this,"progress",Tae),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:i,maintainAspectRatio:e},width:n,height:o,_aspectRatio:s}=this;return tn(i)?e&&s?s:o?n/o:null:i}get data(){return this.config.data}set data(i){this.config.data=i}get options(){return this._options}set options(i){this.config.options=i}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():v3(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return l3(this.canvas,this.ctx),this}stop(){return tr.stop(this),this}resize(i,e){tr.running(this)?this._resizeBeforeDraw={width:i,height:e}:this._resize(i,e)}_resize(i,e){const n=this.options,r=this.platform.getMaximumSize(this.canvas,i,e,n.maintainAspectRatio&&this.aspectRatio),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,v3(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Mn(n.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){_n(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const i=this.options,e=i.scales,n=this.scales,o=Object.keys(n).reduce((r,a)=>(r[a]=!1,r),{});let s=[];e&&(s=s.concat(Object.keys(e).map(r=>{const a=e[r],l=nv(r,a),c="r"===l,u="x"===l;return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),_n(s,r=>{const a=r.options,l=a.id,c=nv(l,a),u=Nt(a.type,r.dtype);(void 0===a.position||dM(a.position,c)!==dM(r.dposition))&&(a.position=r.dposition),o[l]=!0;let p=null;l in n&&n[l].type===u?p=n[l]:(p=new(bs.getScale(u))({id:l,type:u,ctx:this.ctx,chart:this}),n[p.id]=p),p.init(a,i)}),_n(o,(r,a)=>{r||delete n[a]}),_n(n,r=>{Fi.configure(this,r,r.options),Fi.addBox(this,r)})}_updateMetasets(){const i=this._metasets,e=this.data.datasets.length,n=i.length;if(i.sort((o,s)=>o.index-s.index),n>e){for(let o=e;oe.length&&delete this._stacks,i.forEach((n,o)=>{0===e.filter(s=>s===n._dataset).length&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const i=[],e=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=e.length;n{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(i){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:i,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(i),this.notifyPlugins("afterUpdate",{mode:i}),this._layers.sort(pM("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_n(this.scales,i=>{Fi.removeBox(this,i)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const i=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(i.events);(!Rk(e,n)||!!this._responsiveListeners!==i.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:i}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:s}of e)Sae(i,o,"_removeElements"===n?-s:s)}_getUniformDataChanges(){const i=this._dataChanges;if(!i||!i.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=s=>new Set(i.filter(r=>r[0]===s).map((r,a)=>a+","+r.splice(1).join(","))),o=n(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(i){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Fi.update(this,this.width,this.height,i);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],_n(this.boxes,o=>{n&&"chartArea"===o.position||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(i){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:i,cancelable:!0})){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(i[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(i){const e=this.ctx,n=i._clip,o=!n.disabled,s=this.chartArea,r={meta:i,index:i.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(o&&Of(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),i.controller.draw(),o&&Lf(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(i){return Zu(i,this.chartArea,this._minPadding)}getElementsAtEventForMode(i,e,n,o){const s=Ure.modes[e];return"function"==typeof s?s(this,i,n,o):[]}getDatasetMeta(i){const e=this.data.datasets[i],n=this._metasets;let o=n.filter(s=>s&&s._dataset===e).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:i,_dataset:e,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(i){const e=this.data.datasets[i];if(!e)return!1;const n=this.getDatasetMeta(i);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(i,e){this.getDatasetMeta(i).hidden=!e}toggleDataVisibility(i){this._hiddenIndices[i]=!this._hiddenIndices[i]}getDataVisibility(i){return!this._hiddenIndices[i]}_updateVisibility(i,e,n){const o=n?"show":"hide",s=this.getDatasetMeta(i),r=s.controller._resolveAnimations(void 0,o);Fo(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(i,n),r.update(s,{visible:n}),this.update(a=>a.datasetIndex===i?o:void 0))}hide(i,e){this._updateVisibility(i,e,!1)}show(i,e){this._updateVisibility(i,e,!0)}_destroyDatasetMeta(i){const e=this._metasets[i];e&&e.controller&&e.controller._destroy(),delete this._metasets[i]}_stop(){let i,e;for(this.stop(),tr.remove(this),i=0,e=this.data.datasets.length;i{e.addEventListener(this,s,r),i[s]=r},o=(s,r,a)=>{s.offsetX=r,s.offsetY=a,this._eventHandler(s)};_n(this.options.events,s=>n(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const i=this._responsiveListeners,e=this.platform,n=(l,c)=>{e.addEventListener(this,l,c),i[l]=c},o=(l,c)=>{i[l]&&(e.removeEventListener(this,l,c),delete i[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",s),n("detach",r)};r=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){_n(this._listeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._listeners={},_n(this._responsiveListeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._responsiveListeners=void 0}updateHoverStyle(i,e,n){const o=n?"set":"remove";let s,r,a,l;for("dataset"===e&&(s=this.getDatasetMeta(i[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=i.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[r],index:r}});!xf(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(i,e,n){return this._plugins.notify(this,i,e,n)}_updateHoverStyles(i,e,n){const o=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),r=s(e,i),a=n?i:s(i,e);r.length&&this.updateHoverStyle(r,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(i,e){const n={event:i,replay:e,cancelable:!0,inChartArea:this.isPointInArea(i)},o=r=>(r.options.events||this.options.events).includes(i.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const s=this._handleEvent(i,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(s||n.changed)&&this.render(),this}_handleEvent(i,e,n){const{_active:o=[],options:s}=this,a=this._getActiveElements(i,o,n,e),l=function hoe(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(i),c=function Eae(t,i,e,n){return e&&"mouseout"!==t.type?n?i:t:null}(i,this._lastEvent,n,l);n&&(this._lastEvent=null,Mn(s.onHover,[i,a,this],this),l&&Mn(s.onClick,[i,a,this],this));const u=!xf(a,o);return(u||e)&&(this._active=a,this._updateHoverStyles(a,o,e)),this._lastEvent=c,u}_getActiveElements(i,e,n,o){if("mouseout"===i.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(i,s.mode,s,o)}}const mM=()=>_n(iv.instances,t=>t._plugins.invalidate()),Br=!0;function _M(t,i,e){const{startAngle:n,pixelMargin:o,x:s,y:r,outerRadius:a,innerRadius:l}=i;let c=o/a;t.beginPath(),t.arc(s,r,a,n-c,e+c),l>o?(c=o/l,t.arc(s,r,l,e+c,n-c,!0)):t.arc(s,r,o,e+Qn,n-Qn),t.closePath(),t.clip()}function Yl(t,i,e,n){return{x:e+t*Math.cos(i),y:n+t*Math.sin(i)}}function ov(t,i,e,n,o,s){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=i,p=Math.max(i.outerRadius+n+e-c,0),m=u>0?u+n+e+c:0;let _=0;const b=o-l;if(n){const tt=((u>0?u-n:0)+(p>0?p-n:0))/2;_=(b-(0!==tt?b*tt/(tt+n):b))/2}const P=(b-Math.max(.001,b*p-e/Vn)/p)/2,W=l+P+_,te=o-P-_,{outerStart:fe,outerEnd:Ce,innerStart:ve,innerEnd:ke}=function kae(t,i,e,n){const o=function Dae(t){return UC(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),s=(e-i)/2,r=Math.min(s,n*i/2),a=l=>{const c=(e-Math.min(s,l))*n/2;return pi(l,0,Math.min(s,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:pi(o.innerStart,0,r),innerEnd:pi(o.innerEnd,0,r)}}(i,m,p,te-W),Pe=p-fe,$e=p-Ce,Ke=W+fe/Pe,pt=te-Ce/$e,jt=m+ve,Vt=m+ke,vn=W+ve/jt,hi=te-ke/Vt;if(t.beginPath(),s){if(t.arc(r,a,p,Ke,pt),Ce>0){const tt=Yl($e,pt,r,a);t.arc(tt.x,tt.y,Ce,pt,te+Qn)}const wt=Yl(Vt,te,r,a);if(t.lineTo(wt.x,wt.y),ke>0){const tt=Yl(Vt,hi,r,a);t.arc(tt.x,tt.y,ke,te+Qn,hi+Math.PI)}if(t.arc(r,a,m,te-ke/m,W+ve/m,!0),ve>0){const tt=Yl(jt,vn,r,a);t.arc(tt.x,tt.y,ve,vn+Math.PI,W-Qn)}const We=Yl(Pe,W,r,a);if(t.lineTo(We.x,We.y),fe>0){const tt=Yl(Pe,Ke,r,a);t.arc(tt.x,tt.y,fe,W-Qn,Ke)}}else{t.moveTo(r,a);const wt=Math.cos(Ke)*p+r,We=Math.sin(Ke)*p+a;t.lineTo(wt,We);const tt=Math.cos(pt)*p+r,ct=Math.sin(pt)*p+a;t.lineTo(tt,ct)}t.closePath()}Object.defineProperties(iv,{defaults:{enumerable:Br,value:Qt},instances:{enumerable:Br,value:$f},overrides:{enumerable:Br,value:ma},registry:{enumerable:Br,value:bs},version:{enumerable:Br,value:"3.9.1"},getChart:{enumerable:Br,value:gM},register:{enumerable:Br,value:(...t)=>{bs.add(...t),mM()}},unregister:{enumerable:Br,value:(...t)=>{bs.remove(...t),mM()}}});class Kf extends Xo{constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,e,n){const o=this.getProps(["x","y"],n),{angle:s,distance:r}=zk(o,{x:i,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),m=this.options.spacing/2,b=Nt(p,l-a)>=Cn||Ku(s,a,l),E=Xs(r,c+m,u+m);return b&&E}getCenterPoint(i){const{x:e,y:n,startAngle:o,endAngle:s,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],i),{offset:l,spacing:c}=this.options,u=(o+s)/2,p=(r+a+c+l)/2;return{x:e+Math.cos(u)*p,y:n+Math.sin(u)*p}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:e,circumference:n}=this,o=(e.offset||0)/2,s=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Cn?Math.floor(n/Cn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=0;if(o){a=o/2;const c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=Vn&&(a=o)}i.fillStyle=e.backgroundColor,i.strokeStyle=e.borderColor;const l=function Mae(t,i,e,n,o){const{fullCircles:s,startAngle:r,circumference:a}=i;let l=i.endAngle;if(s){ov(t,i,e,n,r+Cn,o);for(let c=0;ca&&s>a)?n+c-l:c-l}}function Rae(t,i,e,n){const{points:o,options:s}=i,{count:r,start:a,loop:l,ilen:c}=CM(o,e,n),u=function Fae(t){return t.stepped?Zoe:t.tension||"monotone"===t.cubicInterpolationMode?Yoe:Pae}(s);let _,b,E,{move:p=!0,reverse:m}=n||{};for(_=0;_<=c;++_)b=o[(a+(m?c-_:_))%r],!b.skip&&(p?(t.moveTo(b.x,b.y),p=!1):u(t,E,b,m,s.stepped),E=b);return l&&(b=o[(a+(m?c:0))%r],u(t,E,b,m,s.stepped)),!!l}function Nae(t,i,e,n){const o=i.points,{count:s,start:r,ilen:a}=CM(o,e,n),{move:l=!0,reverse:c}=n||{};let m,_,b,E,P,W,u=0,p=0;const te=Ce=>(r+(c?a-Ce:Ce))%s,fe=()=>{E!==P&&(t.lineTo(u,P),t.lineTo(u,E),t.lineTo(u,W))};for(l&&(_=o[te(0)],t.moveTo(_.x,_.y)),m=0;m<=a;++m){if(_=o[te(m)],_.skip)continue;const Ce=_.x,ve=_.y,ke=0|Ce;ke===b?(veP&&(P=ve),u=(p*u+Ce)/++p):(fe(),t.lineTo(Ce,ve),b=ke,p=0,E=P=ve),W=ve}fe()}function sv(t){const i=t.options;return t._decimated||t._loop||i.tension||"monotone"===i.cubicInterpolationMode||i.stepped||i.borderDash&&i.borderDash.length?Rae:Nae}Kf.id="arc",Kf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Kf.defaultRoutes={backgroundColor:"backgroundColor"};const zae="function"==typeof Path2D;let Gf=(()=>{class t extends Xo{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;!o.tension&&"monotone"!==o.cubicInterpolationMode||o.stepped||this._pointsUpdated||(vse(this._points,o,e,o.spanGaps?this._loop:this._fullLoop,n),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Rse(t,i){const e=t.points,n=t.options.spanGaps,o=e.length;if(!o)return[];const s=!!t._loop,{start:r,end:a}=function Pse(t,i,e,n){let o=0,s=i-1;if(e&&!n)for(;oo&&t[s%i].skip;)s--;return s%=i,{start:o,end:s}}(e,o,s,n);return function D3(t,i,e,n){return n&&n.setContext&&e?function Nse(t,i,e,n){const o=t._chart.getContext(),s=k3(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=e.length,c=[];let u=s,p=i[0].start,m=p;function _(b,E,P,W){const te=a?-1:1;if(b!==E){for(b+=l;e[b%l].skip;)b-=te;for(;e[E%l].skip;)E+=te;b%l!=E%l&&(c.push({start:b%l,end:E%l,loop:P,style:W}),u=W,p=E%l)}}for(const b of i){p=a?p:b.start;let P,E=e[p%l];for(m=p+1;m<=b.end;m++){const W=e[m%l];P=k3(n.setContext(Vr(o,{type:"segment",p0:E,p1:W,p0DataIndex:(m-1)%l,p1DataIndex:m%l,datasetIndex:r}))),Vse(P,u)&&_(p,m-1,b.loop,u),E=W,u=P}p"borderDash"!==i&&"fill"!==i},t})();function vM(t,i,e,n){const o=t.options,{[e]:s}=t.getProps([e],n);return Math.abs(i-s){class t extends Xo{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,o){const s=this.options,{x:r,y:a}=this.getProps(["x","y"],o);return Math.pow(e-r,2)+Math.pow(n-a,2){yM(i)})}var Jae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,i,e)=>{if(!e.enabled)return void xM(t);const n=t.width;t.data.datasets.forEach((o,s)=>{const{_data:r,indexAxis:a}=o,l=t.getDatasetMeta(s),c=r||o.data;if("y"===Xu([a,t.options.indexAxis])||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type||t.options.parsing)return;let b,{start:p,count:m}=function Xae(t,i){const e=i.length;let o,n=0;const{iScale:s}=t,{min:r,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(n=pi(Js(i,s.axis,r).lo,0,e-1)),o=c?pi(Js(i,s.axis,a).hi+1,n,e)-n:e-n,{start:n,count:o}}(l,c);if(m<=(e.threshold||4*n))yM(o);else{switch(tn(r)&&(o._data=c,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(E){this._data=E}})),e.algorithm){case"lttb":b=function Zae(t,i,e,n,o){const s=o.samples||n;if(s>=e)return t.slice(i,i+e);const r=[],a=(e-2)/(s-2);let l=0;const c=i+e-1;let p,m,_,b,E,u=i;for(r[l++]=t[u],p=0;p_&&(_=b,m=t[te],E=te);r[l++]=m,u=E}return r[l++]=t[c],r}(c,p,m,n,e);break;case"min-max":b=function Yae(t,i,e,n){let r,a,l,c,u,p,m,_,b,E,o=0,s=0;const P=[],te=t[i].x,Ce=t[i+e-1].x-te;for(r=i;rE&&(E=c,m=r),o=(s*o+a.x)/++s;else{const ke=r-1;if(!tn(p)&&!tn(m)){const Pe=Math.min(p,m),$e=Math.max(p,m);Pe!==_&&Pe!==ke&&P.push({...t[Pe],x:o}),$e!==_&&$e!==ke&&P.push({...t[$e],x:o})}r>0&&ke!==_&&P.push(t[ke]),P.push(a),u=ve,s=0,b=E=c,p=m=_=r}}return P}(c,p,m,n);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=b}})},destroy(t){xM(t)}};function lv(t,i,e,n){if(n)return;let o=i[t],s=e[t];return"angle"===t&&(o=vo(o),s=vo(s)),{property:t,start:o,end:s}}function cv(t,i,e){for(;i>t;i--){const n=e[i];if(!isNaN(n.x)&&!isNaN(n.y))break}return i}function AM(t,i,e,n){return t&&i?n(t[e],i[e]):t?t[e]:i?i[e]:0}function wM(t,i){let e=[],n=!1;return kn(t)?(n=!0,e=t):e=function tle(t,i){const{x:e=null,y:n=null}=t||{},o=i.points,s=[];return i.segments.forEach(({start:r,end:a})=>{a=cv(r,a,o);const l=o[r],c=o[a];null!==n?(s.push({x:l.x,y:n}),s.push({x:c.x,y:n})):null!==e&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}(t,i),e.length?new Gf({points:e,options:{tension:0},_loop:n,_fullLoop:n}):null}function TM(t){return t&&!1!==t.fill}function nle(t,i,e){let o=t[i].fill;const s=[i];let r;if(!e)return o;for(;!1!==o&&-1===s.indexOf(o);){if(!ti(o))return o;if(r=t[o],!r)return!1;if(r.visible)return o;s.push(o),o=r.fill}return!1}function ile(t,i,e){const n=function ale(t){const i=t.options,e=i.fill;let n=Nt(e&&e.target,e);return void 0===n&&(n=!!i.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(qt(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return ti(o)&&Math.floor(o)===o?function ole(t,i,e,n){return("-"===t||"+"===t)&&(e=i+e),!(e===i||e<0||e>=n)&&e}(n[0],i,o,e):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function ule(t,i,e){const n=[];for(let o=0;o=0;--r){const a=o[r].$filler;a&&(a.line.updateControlPoints(s,a.axis),n&&a.fill&&uv(t.ctx,a,s))}},beforeDatasetsDraw(t,i,e){if("beforeDatasetsDraw"!==e.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const s=n[o].$filler;TM(s)&&uv(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,i,e){const n=i.meta.$filler;!TM(n)||"beforeDatasetDraw"!==e.drawTime||uv(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const MM=(t,i)=>{let{boxHeight:e=i,boxWidth:n=i}=t;return t.usePointStyle&&(e=Math.min(e,i),n=t.pointStyleWidth||Math.min(n,i)),{boxWidth:n,boxHeight:e,itemHeight:Math.max(i,e)}};class OM extends Xo{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e,n){this.maxWidth=i,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const i=this.options.labels||{};let e=Mn(i.generateLabels,[this.chart],this)||[];i.filter&&(e=e.filter(n=>i.filter(n,this.chart.data))),i.sort&&(e=e.sort((n,o)=>i.sort(n,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:i,ctx:e}=this;if(!i.display)return void(this.width=this.height=0);const n=i.labels,o=ui(n.font),s=o.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=MM(n,s);let c,u;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(u,i.maxHeight||this.maxHeight)}_fitRows(i,e,n,o){const{ctx:s,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let p=i;s.textAlign="left",s.textBaseline="middle";let m=-1,_=-u;return this.legendItems.forEach((b,E)=>{const P=n+e/2+s.measureText(b.text).width;(0===E||c[c.length-1]+P+2*a>r)&&(p+=u,c[c.length-(E>0?0:1)]=0,_+=u,m++),l[E]={left:0,top:_,row:m,width:P,height:o},c[c.length-1]+=P+a}),p}_fitCols(i,e,n,o){const{ctx:s,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-i;let p=a,m=0,_=0,b=0,E=0;return this.legendItems.forEach((P,W)=>{const te=n+e/2+s.measureText(P.text).width;W>0&&_+o+2*a>u&&(p+=m+a,c.push({width:m,height:_}),b+=m+a,E++,m=_=0),l[W]={left:b,top:_,col:E,width:te,height:o},m=Math.max(m,te),_+=o+a}),p+=m,c.push({width:m,height:_}),p}adjustHitBoxes(){if(!this.options.display)return;const i=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:o},rtl:s}}=this,r=Zl(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Li(n,this.left+o,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=Li(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+i+o,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+o}else{let a=0,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const i=this.ctx;Of(i,this),this._draw(),Lf(i)}}_draw(){const{options:i,columnSizes:e,lineWidths:n,ctx:o}=this,{align:s,labels:r}=i,a=Qt.color,l=Zl(i.rtl,this.left,this.width),c=ui(r.font),{color:u,padding:p}=r,m=c.size,_=m/2;let b;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:E,boxHeight:P,itemHeight:W}=MM(r,m),Ce=this.isHorizontal(),ve=this._computeTitleHeight();b=Ce?{x:Li(s,this.left+p,this.right-n[0]),y:this.top+p+ve,line:0}:{x:this.left+p,y:Li(s,this.top+ve+p,this.bottom-e[0].height),line:0},x3(this.ctx,i.textDirection);const ke=W+p;this.legendItems.forEach((Pe,$e)=>{o.strokeStyle=Pe.fontColor||u,o.fillStyle=Pe.fontColor||u;const Ke=o.measureText(Pe.text).width,pt=l.textAlign(Pe.textAlign||(Pe.textAlign=r.textAlign)),jt=E+_+Ke;let Vt=b.x,vn=b.y;l.setWidth(this.width),Ce?$e>0&&Vt+jt+p>this.right&&(vn=b.y+=ke,b.line++,Vt=b.x=Li(s,this.left+p,this.right-n[b.line])):$e>0&&vn+ke>this.bottom&&(Vt=b.x=Vt+e[b.line].width+p,b.line++,vn=b.y=Li(s,this.top+ve+p,this.bottom-e[b.line].height)),function(Pe,$e,Ke){if(isNaN(E)||E<=0||isNaN(P)||P<0)return;o.save();const pt=Nt(Ke.lineWidth,1);if(o.fillStyle=Nt(Ke.fillStyle,a),o.lineCap=Nt(Ke.lineCap,"butt"),o.lineDashOffset=Nt(Ke.lineDashOffset,0),o.lineJoin=Nt(Ke.lineJoin,"miter"),o.lineWidth=pt,o.strokeStyle=Nt(Ke.strokeStyle,a),o.setLineDash(Nt(Ke.lineDash,[])),r.usePointStyle){const jt={radius:P*Math.SQRT2/2,pointStyle:Ke.pointStyle,rotation:Ke.rotation,borderWidth:pt},Vt=l.xPlus(Pe,E/2);c3(o,jt,Vt,$e+_,r.pointStyleWidth&&E)}else{const jt=$e+Math.max((m-P)/2,0),Vt=l.leftForLtr(Pe,E),vn=Ca(Ke.borderRadius);o.beginPath(),Object.values(vn).some(hi=>0!==hi)?Yu(o,{x:Vt,y:jt,w:E,h:P,radius:vn}):o.rect(Vt,jt,E,P),o.fill(),0!==pt&&o.stroke()}o.restore()}(l.x(Vt),vn,Pe),Vt=((t,i,e,n)=>t===(n?"left":"right")?e:"center"===t?(i+e)/2:i)(pt,Vt+E+_,Ce?Vt+jt:this.right,i.rtl),function(Pe,$e,Ke){Ia(o,Ke.text,Pe,$e+W/2,c,{strikethrough:Ke.hidden,textAlign:l.textAlign(Ke.textAlign)})}(l.x(Vt),vn,Pe),Ce?b.x+=jt+p:b.y+=ke}),A3(this.ctx,i.textDirection)}drawTitle(){const i=this.options,e=i.title,n=ui(e.font),o=Pi(e.padding);if(!e.display)return;const s=Zl(i.rtl,this.left,this.width),r=this.ctx,a=e.position,c=o.top+n.size/2;let u,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),u=this.top+c,p=Li(i.align,p,this.right-m);else{const b=this.columnSizes.reduce((E,P)=>Math.max(E,P.height),0);u=c+Li(i.align,this.top,this.bottom-b-i.labels.padding-this._computeTitleHeight())}const _=Li(a,p,p+m);r.textAlign=s.textAlign(LC(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,Ia(r,e.text,_,u,n)}_computeTitleHeight(){const i=this.options.title,e=ui(i.font),n=Pi(i.padding);return i.display?e.lineHeight+n.height:0}_getLegendItemAt(i,e){let n,o,s;if(Xs(i,this.left,this.right)&&Xs(e,this.top,this.bottom))for(s=this.legendHitBoxes,n=0;nnull!==t&&null!==i&&t.datasetIndex===i.datasetIndex&&t.index===i.index)(o,n);o&&!s&&Mn(e.onLeave,[i,o,this],this),this._hoveredItem=n,n&&!s&&Mn(e.onHover,[i,n,this],this)}else n&&Mn(e.onClick,[i,n,this],this)}}var yle={id:"legend",_element:OM,start(t,i,e){const n=t.legend=new OM({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n)},stop(t){Fi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,i,e){const n=t.legend;Fi.configure(t,n,e),n.options=e},afterUpdate(t){const i=t.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(t,i){i.replay||t.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,i,e){const n=i.datasetIndex,o=e.chart;o.isDatasetVisible(n)?(o.hide(n),i.hidden=!0):(o.show(n),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const i=t.data.datasets,{labels:{usePointStyle:e,pointStyle:n,textAlign:o,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map(r=>{const a=r.controller.getStyle(e?0:void 0),l=Pi(a.borderWidth);return{text:i[r.index].label,fillStyle:a.backgroundColor,fontColor:s,hidden:!r.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:n||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:r.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dv extends Xo{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=i,this.height=this.bottom=e;const o=kn(n.text)?n.text.length:1;this._padding=Pi(n.padding);const s=o*ui(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const i=this.options.position;return"top"===i||"bottom"===i}_drawArgs(i){const{top:e,left:n,bottom:o,right:s,options:r}=this,a=r.align;let c,u,p,l=0;return this.isHorizontal()?(u=Li(a,n,s),p=e+i,c=s-n):("left"===r.position?(u=n+i,p=Li(a,o,e),l=-.5*Vn):(u=s-i,p=Li(a,e,o),l=.5*Vn),c=o-e),{titleX:u,titleY:p,maxWidth:c,rotation:l}}draw(){const i=this.ctx,e=this.options;if(!e.display)return;const n=ui(e.font),s=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Ia(i,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:c,textAlign:LC(e.align),textBaseline:"middle",translation:[r,a]})}}var Ale={id:"title",_element:dv,start(t,i,e){!function xle(t,i){const e=new dv({ctx:t.ctx,options:i,chart:t});Fi.configure(t,e,i),Fi.addBox(t,e),t.titleBlock=e}(t,e)},stop(t){Fi.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,i,e){const n=t.titleBlock;Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Wf=new WeakMap;var wle={id:"subtitle",start(t,i,e){const n=new dv({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n),Wf.set(t,n)},stop(t){Fi.removeBox(t,Wf.get(t)),Wf.delete(t)},beforeUpdate(t,i,e){const n=Wf.get(t);Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ld={average(t){if(!t.length)return!1;let i,e,n=0,o=0,s=0;for(i=0,e=t.length;i-1?t.split("\n"):t}function Tle(t,i){const{element:e,datasetIndex:n,index:o}=i,s=t.getDatasetMeta(n).controller,{label:r,value:a}=s.getLabelAndValue(o);return{chart:t,label:r,parsed:s.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:s.getDataset(),dataIndex:o,datasetIndex:n,element:e}}function LM(t,i){const e=t.chart.ctx,{body:n,footer:o,title:s}=t,{boxWidth:r,boxHeight:a}=i,l=ui(i.bodyFont),c=ui(i.titleFont),u=ui(i.footerFont),p=s.length,m=o.length,_=n.length,b=Pi(i.padding);let E=b.height,P=0,W=n.reduce((Ce,ve)=>Ce+ve.before.length+ve.lines.length+ve.after.length,0);W+=t.beforeBody.length+t.afterBody.length,p&&(E+=p*c.lineHeight+(p-1)*i.titleSpacing+i.titleMarginBottom),W&&(E+=_*(i.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(W-_)*l.lineHeight+(W-1)*i.bodySpacing),m&&(E+=i.footerMarginTop+m*u.lineHeight+(m-1)*i.footerSpacing);let te=0;const fe=function(Ce){P=Math.max(P,e.measureText(Ce).width+te)};return e.save(),e.font=c.string,_n(t.title,fe),e.font=l.string,_n(t.beforeBody.concat(t.afterBody),fe),te=i.displayColors?r+2+i.boxPadding:0,_n(n,Ce=>{_n(Ce.before,fe),_n(Ce.lines,fe),_n(Ce.after,fe)}),te=0,e.font=u.string,_n(t.footer,fe),e.restore(),P+=b.width,{width:P,height:E}}function Dle(t,i,e,n){const{x:o,width:s}=e,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=o<=(a+l)/2?"left":"right":o<=s/2?c="left":o>=r-s/2&&(c="right"),function Ele(t,i,e,n){const{x:o,width:s}=n,r=e.caretSize+e.caretPadding;if("left"===t&&o+s+r>i.width||"right"===t&&o-s-r<0)return!0}(c,t,i,e)&&(c="center"),c}function PM(t,i,e){const n=e.yAlign||i.yAlign||function Sle(t,i){const{y:e,height:n}=i;return et.height-n/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||i.xAlign||Dle(t,i,e,n),yAlign:n}}function FM(t,i,e,n){const{caretSize:o,caretPadding:s,cornerRadius:r}=t,{xAlign:a,yAlign:l}=e,c=o+s,{topLeft:u,topRight:p,bottomLeft:m,bottomRight:_}=Ca(r);let b=function kle(t,i){let{x:e,width:n}=t;return"right"===i?e-=n:"center"===i&&(e-=n/2),e}(i,a);const E=function Mle(t,i,e){let{y:n,height:o}=t;return"top"===i?n+=e:n-="bottom"===i?o+e:o/2,n}(i,l,c);return"center"===l?"left"===a?b+=c:"right"===a&&(b-=c):"left"===a?b-=Math.max(u,m)+o:"right"===a&&(b+=Math.max(p,_)+o),{x:pi(b,0,n.width-i.width),y:pi(E,0,n.height-i.height)}}function Qf(t,i,e){const n=Pi(e.padding);return"center"===i?t.x+t.width/2:"right"===i?t.x+t.width-n.right:t.x+n.left}function RM(t){return ys([],nr(t))}function NM(t,i){const e=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return e?t.override(e):t}let VM=(()=>{class t extends Xo{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&n.options.animation&&o.animations,r=new O3(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=function Ole(t,i,e){return Vr(t,{tooltip:i,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,s=o.beforeTitle.apply(this,[e]),r=o.title.apply(this,[e]),a=o.afterTitle.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}getBeforeBody(e,n){return RM(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:o}=n,s=[];return _n(e,r=>{const a={before:[],lines:[],after:[]},l=NM(o,r);ys(a.before,nr(l.beforeLabel.call(this,r))),ys(a.lines,l.label.call(this,r)),ys(a.after,nr(l.afterLabel.call(this,r))),s.push(a)}),s}getAfterBody(e,n){return RM(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:o}=n,s=o.beforeFooter.apply(this,[e]),r=o.footer.apply(this,[e]),a=o.afterFooter.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}_createItems(e){const n=this._active,o=this.chart.data,s=[],r=[],a=[];let c,u,l=[];for(c=0,u=n.length;ce.filter(p,m,_,o))),e.itemSort&&(l=l.sort((p,m)=>e.itemSort(p,m,o))),_n(l,p=>{const m=NM(e.callbacks,p);s.push(m.labelColor.call(this,p)),r.push(m.labelPointStyle.call(this,p)),a.push(m.labelTextColor.call(this,p))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(e,n){const o=this.options.setContext(this.getContext()),s=this._active;let r,a=[];if(s.length){const l=ld[o.position].call(this,s,this._eventPosition);a=this._createItems(o),this.title=this.getTitle(a,o),this.beforeBody=this.getBeforeBody(a,o),this.body=this.getBody(a,o),this.afterBody=this.getAfterBody(a,o),this.footer=this.getFooter(a,o);const c=this._size=LM(this,o),u=Object.assign({},l,c),p=PM(this.chart,o,u),m=FM(o,u,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,r={opacity:1,x:m.x,y:m.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,s){const r=this.getCaretPosition(e,o,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,o){const{xAlign:s,yAlign:r}=this,{caretSize:a,cornerRadius:l}=o,{topLeft:c,topRight:u,bottomLeft:p,bottomRight:m}=Ca(l),{x:_,y:b}=e,{width:E,height:P}=n;let W,te,fe,Ce,ve,ke;return"center"===r?(ve=b+P/2,"left"===s?(W=_,te=W-a,Ce=ve+a,ke=ve-a):(W=_+E,te=W+a,Ce=ve-a,ke=ve+a),fe=W):(te="left"===s?_+Math.max(c,p)+a:"right"===s?_+E-Math.max(u,m)-a:this.caretX,"top"===r?(Ce=b,ve=Ce-a,W=te-a,fe=te+a):(Ce=b+P,ve=Ce+a,W=te+a,fe=te-a),ke=Ce),{x1:W,x2:te,x3:fe,y1:Ce,y2:ve,y3:ke}}drawTitle(e,n,o){const s=this.title,r=s.length;let a,l,c;if(r){const u=Zl(o.rtl,this.x,this.width);for(e.x=Qf(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",a=ui(o.titleFont),l=o.titleSpacing,n.fillStyle=o.titleColor,n.font=a.string,c=0;c0!==Ce)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Yu(e,{x:W,y:P,w:u,h:c,radius:fe}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Yu(e,{x:te,y:P+1,w:u-2,h:c-2,radius:fe}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(W,P,u,c),e.strokeRect(W,P,u,c),e.fillStyle=a.backgroundColor,e.fillRect(te,P+1,u-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:s}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:p}=o,m=ui(o.bodyFont);let _=m.lineHeight,b=0;const E=Zl(o.rtl,this.x,this.width),P=function(Ke){n.fillText(Ke,E.x(e.x+b),e.y+_/2),e.y+=_+r},W=E.textAlign(a);let te,fe,Ce,ve,ke,Pe,$e;for(n.textAlign=a,n.textBaseline="middle",n.font=m.string,e.x=Qf(this,W,o),n.fillStyle=o.bodyColor,_n(this.beforeBody,P),b=l&&"right"!==W?"center"===a?u/2+p:u+2+p:0,ve=0,Pe=s.length;ve0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,s=o&&o.x,r=o&&o.y;if(s||r){const a=ld[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=LM(this,e),c=Object.assign({},a,this._size),u=PM(n,e,c),p=FM(e,c,u,n);(s._to!==p.x||r._to!==p.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const a=Pi(n.padding);n.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=o,this.drawBackground(r,e,s,n),x3(e,n.textDirection),r.y+=a.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),A3(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,s=e.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),r=!xf(o,s),a=this._positionChanged(s,n);(r||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],a=this._getActiveElements(e,r,n,o),l=this._positionChanged(a,e),c=n||!xf(a,r)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,o,s){const r=this.options;if("mouseout"===e.type)return[];if(!s)return n;const a=this.chart.getElementsAtEventForMode(e,r.mode,r,o);return r.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:o,caretY:s,options:r}=this,a=ld[r.position].call(this,e,n);return!1!==a&&(o!==a.x||s!==a.y)}}return t.positioners=ld,t})();var Ple=Object.freeze({__proto__:null,Decimation:Jae,Filler:Cle,Legend:yle,SubTitle:wle,Title:Ale,Tooltip:{id:"tooltip",_element:VM,positioners:ld,afterInit(t,i,e){e&&(t.tooltip=new VM({chart:t,options:e}))},beforeUpdate(t,i,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,i,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const i=t.tooltip;if(i&&i._willRender()){const e={tooltip:i};if(!1===t.notifyPlugins("beforeTooltipDraw",e))return;i.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,i){t.tooltip&&t.tooltip.handleEvent(i.event,i.replay,i.inChartArea)&&(i.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,i)=>i.bodyFont.size,boxWidth:(t,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ys,title(t){if(t.length>0){const i=t[0],e=i.chart.data.labels,n=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return i.dataset.label||"";if(i.label)return i.label;if(n>0&&i.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Zf extends xa{constructor(i){super(i),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(i){const e=this._addedLabels;if(e.length){const n=this.getLabels();for(const{index:o,label:s}of e)n[o]===s&&n.splice(o,1);this._addedLabels=[]}super.init(i)}parse(i,e){if(tn(i))return null;const n=this.getLabels();return((t,i)=>null===t?null:pi(Math.round(t),0,i))(e=isFinite(e)&&n[e]===i?e:function Rle(t,i,e,n){const o=t.indexOf(i);return-1===o?((t,i,e,n)=>("string"==typeof i?(e=t.push(i)-1,n.unshift({index:e,label:i})):isNaN(i)&&(e=null),e))(t,i,e,n):o!==t.lastIndexOf(i)?e:o}(n,i,Nt(e,i),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(i||(n=0),e||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const i=this.min,e=this.max,n=this.options.offset,o=[];let s=this.getLabels();s=0===i&&e===s.length-1?s:s.slice(i,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let r=i;r<=e;r++)o.push({value:r});return o}getLabelForValue(i){const e=this.getLabels();return i>=0&&ie.length-1?null:this.getPixelForValue(e[i].value)}getValueForPixel(i){return Math.round(this._startValue+this.getDecimalForPixel(i)*this._valueRange)}getBasePixel(){return this.bottom}}function BM(t,i,{horizontal:e,minRotation:n}){const o=Yo(n),s=(e?Math.sin(o):Math.cos(o))||.001;return Math.min(i/s,.75*i*(""+t).length)}Zf.id="category",Zf.defaults={ticks:{callback:Zf.prototype.getLabelForValue}};class Yf extends xa{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,e){return tn(i)||("number"==typeof i||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){const{beginAtZero:i}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:s}=this;const r=l=>o=e?o:l,a=l=>s=n?s:l;if(i){const l=Cs(o),c=Cs(s);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(o===s){let l=1;(s>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(.05*s)),a(s+l),i||r(o-l)}this.min=o,this.max=s}getTickLimit(){const i=this.options.ticks;let o,{maxTicksLimit:e,stepSize:n}=i;return n?(o=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const i=this.options,e=i.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function Vle(t,i){const e=[],{bounds:o,step:s,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:p,includeBounds:m}=t,_=s||1,b=u-1,{min:E,max:P}=i,W=!tn(r),te=!tn(a),fe=!tn(c),Ce=(P-E)/(p+1);let ke,Pe,$e,Ke,ve=Vk((P-E)/b/_)*_;if(ve<1e-14&&!W&&!te)return[{value:E},{value:P}];Ke=Math.ceil(P/ve)-Math.floor(E/ve),Ke>b&&(ve=Vk(Ke*ve/b/_)*_),tn(l)||(ke=Math.pow(10,l),ve=Math.ceil(ve*ke)/ke),"ticks"===o?(Pe=Math.floor(E/ve)*ve,$e=Math.ceil(P/ve)*ve):(Pe=E,$e=P),W&&te&&s&&function _oe(t,i){const e=Math.round(t);return e-i<=t&&e+i>=t}((a-r)/s,ve/1e3)?(Ke=Math.round(Math.min((a-r)/ve,u)),ve=(a-r)/Ke,Pe=r,$e=a):fe?(Pe=W?r:Pe,$e=te?a:$e,Ke=c-1,ve=($e-Pe)/Ke):(Ke=($e-Pe)/ve,Ke=$u(Ke,Math.round(Ke),ve/1e3)?Math.round(Ke):Math.ceil(Ke));const pt=Math.max(Hk(ve),Hk(Pe));ke=Math.pow(10,tn(l)?pt:l),Pe=Math.round(Pe*ke)/ke,$e=Math.round($e*ke)/ke;let jt=0;for(W&&(m&&Pe!==r?(e.push({value:r}),Pe0?n:null;this._zero=!0}determineDataLimits(){const{min:i,max:e}=this.getMinMax(!0);this.min=ti(i)?Math.max(0,i):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let n=this.min,o=this.max;const s=l=>n=i?n:l,r=l=>o=e?o:l,a=(l,c)=>Math.pow(10,Math.floor(Ro(l))+c);n===o&&(n<=0?(s(1),r(10)):(s(a(n,-1)),r(a(o,1)))),n<=0&&s(a(o,-1)),o<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&s(a(n,-1)),this.min=n,this.max=o}buildTicks(){const i=this.options,n=function Ble(t,i){const e=Math.floor(Ro(i.max)),n=Math.ceil(i.max/Math.pow(10,e)),o=[];let s=Po(t.min,Math.pow(10,Math.floor(Ro(i.min)))),r=Math.floor(Ro(s)),a=Math.floor(s/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:s,major:HM(s)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),s=Math.round(a*Math.pow(10,r)*l)/l}while(ro?{start:i-e,end:i}:{start:i,end:i+e}}function jle(t,i,e,n,o){const s=Math.abs(Math.sin(e)),r=Math.abs(Math.cos(e));let a=0,l=0;n.starti.r&&(a=(n.end-i.r)/s,t.r=Math.max(t.r,i.r+a)),o.starti.b&&(l=(o.end-i.b)/r,t.b=Math.max(t.b,i.b+l))}function $le(t){return 0===t||180===t?"center":t<180?"left":"right"}function Kle(t,i,e){return"right"===e?t-=i:"center"===e&&(t-=i/2),t}function Gle(t,i,e){return 90===e||270===e?t-=i/2:(e>270||e<90)&&(t-=i),t}function jM(t,i,e,n){const{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,i,0,Cn);else{let s=t.getPointPosition(0,i);o.moveTo(s.x,s.y);for(let r=1;r{const o=Mn(this.options.pointLabels.callback,[e,n],this);return o||0===o?o:""}).filter((e,n)=>this.chart.getDataVisibility(n))}fit(){const i=this.options;i.display&&i.pointLabels.display?function zle(t){const i={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},i),n=[],o=[],s=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?Vn/s:0;for(let l=0;l=0&&i=0;o--){const s=n.setContext(t.getPointLabelContext(o)),r=ui(s.font),{x:a,y:l,textAlign:c,left:u,top:p,right:m,bottom:_}=t._pointLabelItems[o],{backdropColor:b}=s;if(!tn(b)){const E=Ca(s.borderRadius),P=Pi(s.backdropPadding);e.fillStyle=b;const W=u-P.left,te=p-P.top,fe=m-u+P.width,Ce=_-p+P.height;Object.values(E).some(ve=>0!==ve)?(e.beginPath(),Yu(e,{x:W,y:te,w:fe,h:Ce,radius:E}),e.fill()):e.fillRect(W,te,fe,Ce)}Ia(e,t._pointLabels[o],a,l+r.lineHeight/2,r,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),o.display&&this.ticks.forEach((c,u)=>{0!==u&&(a=this.getDistanceFromCenterForValue(c.value),function Wle(t,i,e,n){const o=t.ctx,s=i.circular,{color:r,lineWidth:a}=i;!s&&!n||!r||!a||e<0||(o.save(),o.strokeStyle=r,o.lineWidth=a,o.setLineDash(i.borderDash),o.lineDashOffset=i.borderDashOffset,o.beginPath(),jM(t,e,s,n),o.closePath(),o.stroke(),o.restore())}(this,o.setContext(this.getContext(u-1)),a,s))}),n.display){for(i.save(),r=s-1;r>=0;r--){const c=n.setContext(this.getPointLabelContext(r)),{color:u,lineWidth:p}=c;!p||!u||(i.lineWidth=p,i.strokeStyle=u,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(l.x,l.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){const i=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let s,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(o),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const c=n.setContext(this.getContext(l)),u=ui(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=u.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;const p=Pi(c.backdropPadding);i.fillRect(-r/2-p.left,-s-u.size/2-p.top,r+p.width,u.size+p.height)}Ia(i,a.label,0,-s,u,{color:c.color})}),i.restore()}drawTitle(){}}cd.id="radialLinear",cd.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},cd.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},cd.descriptors={angleLines:{_fallback:"grid"}};const Xf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},so=Object.keys(Xf);function Zle(t,i){return t-i}function UM(t,i){if(tn(i))return null;const e=t._adapter,{parser:n,round:o,isoWeekday:s}=t._parseOpts;let r=i;return"function"==typeof n&&(r=n(r)),ti(r)||(r="string"==typeof n?e.parse(r,n):e.parse(r)),null===r?null:(o&&(r="week"!==o||!Gl(s)&&!0!==s?e.startOf(r,o):e.startOf(r,"isoWeek",s)),+r)}function $M(t,i,e,n){const o=so.length;for(let s=so.indexOf(t);s=i?e[n]:e[o]]=!0}}else t[i]=!0}function GM(t,i,e){const n=[],o={},s=i.length;let r,a;for(r=0;r=0&&(i[l].major=!0);return i}(t,n,o,e):n}let gv=(()=>{class t extends xa{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const o=e.time||(e.time={}),s=this._adapter=new Vre._date(e.adapters.date);s.init(n),ju(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:UM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:s,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!l&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!a||!l)&&(c(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&c(this.getMinMax(!1))),s=ti(s)&&!isNaN(s)?s:+n.startOf(Date.now(),o),r=ti(r)&&!isNaN(r)?r:+n.endOf(Date.now(),o)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,s="labels"===o.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,l=function boe(t,i,e){let n=0,o=t.length;for(;nn&&t[o-1]>e;)o--;return n>0||o=so.indexOf(e);s--){const r=so[s];if(Xf[r].common&&t._adapter.diff(o,n,r)>=i-1)return r}return so[e?so.indexOf(e):0]}(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=o.major.enabled&&"year"!==this._unit?function Xle(t){for(let i=so.indexOf(t)+1,e=so.length;i+e.value))}initOffsets(e){let s,r,n=0,o=0;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),n=1===e.length?1-s:(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),o=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=pi(n,0,a),o=pi(o,0,a),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,s=this.options,r=s.time,a=r.unit||$M(r.minUnit,n,o,this._getLabelCapacity(n)),l=Nt(r.stepSize,1),c="week"===a&&r.isoWeekday,u=Gl(c)||!0===c,p={};let _,b,m=n;if(u&&(m=+e.startOf(m,"isoWeek",c)),m=+e.startOf(m,u?"day":a),e.diff(o,n,a)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+a);const E="data"===s.ticks.source&&this.getDataTimestamps();for(_=m,b=0;_P-W).map(P=>+P)}getLabelForValue(e){const o=this.options.time;return this._adapter.format(e,o.tooltipFormat?o.tooltipFormat:o.displayFormats.datetime)}_tickFormatFunction(e,n,o,s){const r=this.options,a=r.time.displayFormats,l=this._unit,c=this._majorUnit,p=c&&a[c],m=o[n],b=this._adapter.format(e,s||(c&&p&&m&&m.major?p:l&&a[l])),E=r.ticks.callback;return E?Mn(E,[b,n,o],this):b}generateTickLabels(e){let n,o,s;for(n=0,o=e.length;n0?l:1}getDataTimestamps(){let n,o,e=this._cache.data||[];if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,o=s.length;n=t[n].pos&&i<=t[o].pos&&({lo:n,hi:o}=Js(t,"pos",i)),({pos:s,time:a}=t[n]),({pos:r,time:l}=t[o])):(i>=t[n].time&&i<=t[o].time&&({lo:n,hi:o}=Js(t,"time",i)),({time:s,pos:a}=t[n]),({time:r,pos:l}=t[o]));const c=r-s;return c?a+(l-a)*(i-s)/c:a}class mv extends gv{constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const i=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(i);this._minPos=Jf(e,this.min),this._tableRange=Jf(e,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){const{min:e,max:n}=this,o=[],s=[];let r,a,l,c,u;for(r=0,a=i.length;r=e&&c<=n&&o.push(c);if(o.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=o.length;r{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const nce=["list"];function ice(t,i){1&t&&le(0,"li",5)}function oce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function sce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function rce(t,i){if(1&t&&(we(0),g(1,oce,1,2,"AngleDownIcon",19),g(2,sce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function ace(t,i){}function lce(t,i){1&t&&g(0,ace,0,0,"ng-template")}function cce(t,i){if(1&t&&(we(0),g(1,rce,3,2,"ng-container",8),g(2,lce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function uce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function dce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function pce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function hce(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit;d("ngClass",e.badgeStyleClass),h(1),dt(e.badge)}}const WM=function(t){return{"p-disabled":t}};function fce(t,i){if(1&t&&(x(0,"a",13),g(1,cce,3,2,"ng-container",8),g(2,uce,1,2,"span",14),g(3,dce,2,1,"span",15),g(4,pce,1,1,"ng-template",null,16,In),g(6,hce,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("ngClass",He(10,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==(null==n.item?null:n.item.escape))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function gce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function mce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function _ce(t,i){if(1&t&&(we(0),g(1,gce,1,2,"AngleDownIcon",19),g(2,mce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Ice(t,i){}function Cce(t,i){1&t&&g(0,Ice,0,0,"ng-template")}function vce(t,i){if(1&t&&(we(0),g(1,_ce,3,2,"ng-container",8),g(2,Cce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function bce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function yce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function xce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Ace(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}const QM=function(){return{exact:!1}};function wce(t,i){if(1&t&&(x(0,"a",25),g(1,vce,3,2,"ng-container",8),g(2,bce,1,2,"span",14),g(3,yce,2,1,"span",15),g(4,xce,1,1,"ng-template",null,26,In),g(6,Ace,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(20,QM))("ngClass",He(21,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("title",o.getItemProp(n,"title"))("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function Tce(t,i){if(1&t&&(we(0),g(1,fce,7,12,"a",11),g(2,wce,7,23,"a",12),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function Sce(t,i){}function Ece(t,i){1&t&&g(0,Sce,0,0,"ng-template")}const Dce=function(t){return{$implicit:t}};function kce(t,i){if(1&t&&(we(0),g(1,Ece,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,Dce,e.item))}}function Mce(t,i){if(1&t){const e=De();x(0,"p-panelMenuSub",28),me("itemToggle",function(o){return G(e),q(f(3).onItemToggle(o))}),A()}if(2&t){const e=f(2).$implicit,n=f();d("id",n.getItemId(e)+"_list")("panelId",n.panelId)("items",e.items)("itemTemplate",n.itemTemplate)("transitionOptions",n.transitionOptions)("focusedItemId",n.focusedItemId)("activeItemPath",n.activeItemPath)("level",n.level+1)("parentExpanded",!!n.parentExpanded&&n.isItemExpanded(e))}}function Oce(t,i){if(1&t){const e=De();x(0,"li",6)(1,"div",7),me("click",function(o){G(e);const s=f().$implicit;return q(f().onItemClick(o,s))}),g(2,Tce,3,2,"ng-container",8),g(3,kce,2,4,"ng-container",8),A(),x(4,"div",9),g(5,Mce,1,9,"p-panelMenuSub",10),A()()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();Ve(s.getItemProp(n,"styleClass")),Ii("p-hidden",!1===n.visible)("p-focus",s.isItemFocused(n)&&!s.isItemDisabled(n)),d("ngClass",s.getItemClass(n))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("aria-label",s.getItemProp(n,"label"))("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o))("data-p-disabled",s.isItemDisabled(n)),h(2),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("@submenu",s.getAnimation(n)),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Lce(t,i){if(1&t&&(g(0,ice,1,0,"li",3),g(1,Oce,6,21,"li",4)),2&t){const e=i.$implicit,n=f();d("ngIf",e.separator),h(1),d("ngIf",!e.separator&&n.isItemVisible(e))}}const Pce=function(t){return{"p-submenu-list":!0,"p-panelmenu-root-list":t}},Fce=["submenu"],Rce=["container"];function Nce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Vce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Bce(t,i){if(1&t&&(we(0),g(1,Nce,1,1,"ChevronDownIcon",17),g(2,Vce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Hce(t,i){}function zce(t,i){1&t&&g(0,Hce,0,0,"ng-template")}function jce(t,i){if(1&t&&(we(0),g(1,Bce,3,2,"ng-container",11),g(2,zce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function Uce(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function $ce(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function Kce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Gce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function qce(t,i){if(1&t&&(x(0,"a",10),g(1,jce,3,2,"ng-container",11),g(2,Uce,1,2,"span",12),g(3,$ce,2,1,"span",13),g(4,Kce,1,1,"ng-template",null,14,In),g(6,Gce,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("tabindex",-1)("title",o.getItemProp(n,"title"))("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}function Wce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Qce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Zce(t,i){if(1&t&&(we(0),g(1,Wce,1,1,"ChevronDownIcon",17),g(2,Qce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Yce(t,i){}function Xce(t,i){1&t&&g(0,Yce,0,0,"ng-template")}function Jce(t,i){if(1&t&&(we(0),g(1,Zce,3,2,"ng-container",11),g(2,Xce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function eue(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function tue(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function nue(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function iue(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function oue(t,i){if(1&t&&(x(0,"a",23),g(1,Jce,3,2,"ng-container",11),g(2,eue,1,2,"span",12),g(3,tue,2,1,"span",13),g(4,nue,1,1,"ng-template",null,24,In),g(6,iue,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(18,QM))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("tabindex",-1)("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}const sue=function(t){return{"p-panelmenu-expanded":t}};function rue(t,i){if(1&t){const e=De();x(0,"div",25),me("@rootItem.done",function(){return G(e),q(f(3).onToggleDone())}),x(1,"div",26)(2,"p-panelMenuList",27),me("headerFocus",function(o){return G(e),q(f(3).updateFocusedHeader(o))}),A()()()}if(2&t){const e=f(2),n=e.$implicit,o=e.index,s=f();d("ngClass",He(14,sue,s.isItemActive(n)))("@rootItem",s.getAnimation(n)),K("id",s.getContentId(n,o))("aria-labelledby",s.getHeaderId(n,o))("data-pc-section","toggleablecontent"),h(1),K("data-pc-section","menucontent"),h(1),d("panelId",s.getPanelId(o,n))("items",s.getItemProp(n,"items"))("itemTemplate",s.itemTemplate)("transitionOptions",s.transitionOptions)("root",!0)("activeItem",s.activeItem())("tabindex",s.tabindex)("parentExpanded",s.isItemActive(n))}}const aue=function(t,i){return{"p-component p-panelmenu-header":!0,"p-highlight":t,"p-disabled":i}};function lue(t,i){if(1&t){const e=De();x(0,"div",4)(1,"div",5),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderClick(o,r,a))})("keydown",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderKeyDown(o,r,a))}),x(2,"div",6),g(3,qce,7,10,"a",7),g(4,oue,7,19,"a",8),A()(),g(5,rue,3,16,"div",9),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();d("ngClass",s.getItemProp(n,"headerClass"))("ngStyle",s.getItemProp(n,"style")),K("data-pc-section","panel"),h(1),Ve(s.getItemProp(n,"styleClass")),d("ngClass",mt(21,aue,s.isItemActive(n),s.isItemDisabled(n)))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tabindex",0)("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getHeaderId(n,o))("aria-expanded",s.isItemActive(n))("aria-label",s.getItemProp(n,"label"))("aria-controls",s.getContentId(n,o))("aria-disabled",s.isItemDisabled(n))("data-p-highlight",s.isItemActive(n))("data-p-disabled",s.isItemDisabled(n))("data-pc-section","header"),h(2),d("ngIf",!s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.isItemGroup(n))}}function cue(t,i){if(1&t&&(we(0),g(1,lue,6,24,"div",3),Te()),2&t){const e=i.$implicit,n=f();h(1),d("ngIf",n.isItemVisible(e))}}let due=(()=>{class t{panelMenu;el;panelId;focusedItemId;items;itemTemplate;level=0;activeItemPath;root;tabindex;transitionOptions;parentExpanded;itemToggle=new ge;menuFocus=new ge;menuBlur=new ge;menuKeyDown=new ge;listViewChild;constructor(e,n){this.panelMenu=e,this.el=n}getItemId(e){return e.item?.id??`${this.panelId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{"p-menuitem":!0,"p-disabled":this.isItemDisabled(e)}}getItemProp(e,n,o){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemExpanded(e){return e.expanded}isItemActive(e){return this.isItemExpanded(e)||this.activeItemPath.some(n=>n&&n.key===e.key)}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}getAnimation(e){return this.isItemActive(e)?{value:"visible",params:{transitionParams:this.transitionOptions,height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}onItemClick(e,n){this.isItemDisabled(n)||(this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemToggle.emit({processedItem:n,expanded:!this.isItemActive(n)}))}onItemToggle(e){this.itemToggle.emit(e)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ZM)),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuSub"]],viewQuery:function(n,o){if(1&n&&je(nce,5),2&n){let s;Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",focusedItemId:"focusedItemId",items:"items",itemTemplate:"itemTemplate",level:"level",activeItemPath:"activeItemPath",root:"root",tabindex:"tabindex",transitionOptions:"transitionOptions",parentExpanded:"parentExpanded"},outputs:{itemToggle:"itemToggle",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeyDown:"menuKeyDown"},decls:3,vars:8,consts:[["role","tree",3,"ngClass","tabindex","focusin","focusout","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",4,"ngIf"],["role","treeitem",3,"ngClass","class","p-hidden","p-focus","ngStyle","pTooltip","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator"],["role","treeitem",3,"ngClass","ngStyle","pTooltip","tooltipOptions"],[1,"p-menuitem-content",3,"click"],[4,"ngIf"],[1,"p-toggleable-content"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle",4,"ngIf"],["class","p-menuitem-link",3,"ngClass","target",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],[1,"p-menuitem-link",3,"ngClass","target"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle"]],template:function(n,o){1&n&&(x(0,"ul",0,1),me("focusin",function(r){return o.menuFocus.emit(r)})("focusout",function(r){return o.menuBlur.emit(r)})("keydown",function(r){return o.menuKeyDown.emit(r)}),g(2,Lce,2,2,"ng-template",2),A()),2&n&&(d("ngClass",He(6,Pce,o.root))("tabindex",-1),K("aria-activedescendant",o.focusedItemId)("data-pc-section","menu")("aria-hidden",!o.parentExpanded),h(2),d("ngForOf",o.items))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,Or,Zo,t]},encapsulation:2,data:{animation:[Oo("submenu",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]}})}return t})(),pue=(()=>{class t{panelId;id;items;itemTemplate;parentExpanded;expanded;transitionOptions;root;tabindex;activeItem;itemToggle=new ge;headerFocus=new ge;subMenuViewChild;searchTimeout;searchValue;focused;focusedItem=bn(null);activeItemPath=bn([]);processedItems=bn([]);visibleItems=Ds(()=>{const e=this.processedItems();return this.flatItems(e)});get focusedItemId(){const e=this.focusedItem();return e&&e.item?.id?e.item.id:be.isNotEmpty(this.focusedItem())?`${this.panelId}_${this.focusedItem().key}`:void 0}ngOnChanges(e){e&&e.items&&e.items.currentValue&&this.processedItems.set(this.createProcessedItems(e.items.currentValue||[]))}getItemProp(e,n){return e&&e.item?be.getItemValue(e.item[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemActive(e){return this.activeItemPath().some(n=>n.key===e.parentKey)}isItemGroup(e){return be.isNotEmpty(e.items)}isElementInPanel(e,n){const o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)}isItemMatched(e){return this.isValidItem(e)&&this.getItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isVisibleItem(e){return!!e&&(0===e.level||this.isItemActive(e))&&this.isItemVisible(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e)&&!e.separator}findFirstItem(){return this.visibleItems().find(e=>this.isValidItem(e))}findLastItem(){return be.findLast(this.visibleItems(),e=>this.isValidItem(e))}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={icon:a.icon,expanded:a.expanded,separator:a.separator,item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}findProcessedItemByItemKey(e,n,o=0){if((n=n||this.processedItems())&&n.length)for(let s=0;s{this.isVisibleItem(o)&&(n.push(o),this.flatItems(o.items,n))}),n}changeFocusedItem(e){const{originalEvent:n,processedItem:o,focusOnNext:s,selfCheck:r,allowHeaderFocus:a=!0}=e;be.isNotEmpty(this.focusedItem())&&this.focusedItem().key!==o.key?(this.focusedItem.set(o),this.scrollInView()):a&&this.headerFocus.emit({originalEvent:n,focusOnNext:s,selfCheck:r})}scrollInView(){const e=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`);e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"nearest"})}onFocus(e){this.focused=!0;const n=this.focusedItem()||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem());null!==e.relatedTarget&&this.focusedItem.set(n)}onBlur(e){this.focused=!1,this.focusedItem.set(null),this.searchValue=""}onItemToggle(e){const{processedItem:n,expanded:o}=e;n.expanded=!n.expanded;const s=this.activeItemPath().filter(r=>r.parentKey!==n.parentKey);o&&s.push(n),this.activeItemPath.set(s),this.processedItems.mutate(r=>r.map(a=>a===n?n:a)),this.focusedItem.set(n)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findNextItem(this.focusedItem()):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()}onArrowUpKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findPrevItem(this.focusedItem()):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()}onArrowLeftKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.activeItemPath().some(o=>o.key===this.focusedItem().key)){const o=this.activeItemPath().filter(s=>s.key!==this.focusedItem().key);this.activeItemPath.set(o)}else{const o=be.isNotEmpty(this.focusedItem().parent)?this.focusedItem().parent:this.focusedItem();this.focusedItem.set(o)}e.preventDefault()}}onArrowRightKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.isItemGroup(this.focusedItem()))if(this.activeItemPath().some(s=>s.key===this.focusedItem().key))this.onArrowDownKey(e);else{const s=this.activeItemPath().filter(r=>r.parentKey!==this.focusedItem().parentKey);s.push(this.focusedItem()),this.activeItemPath.set(s)}e.preventDefault()}}onHomeKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()}onEndKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()}onEnterKey(e){if(be.isNotEmpty(this.focusedItem())){const n=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&(j.findSingle(n,'[data-pc-section="action"]')||j.findSingle(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(nthis.isValidItem(s)):void 0)||e}findPrevItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(n>0?be.findLast(this.visibleItems().slice(0,n),s=>this.isValidItem(s)):void 0)||e}searchItems(e,n){this.searchValue=(this.searchValue||"")+n;let o=null,s=!1;if(be.isNotEmpty(this.focusedItem())){const r=this.visibleItems().findIndex(a=>a.key===this.focusedItem().key);o=this.visibleItems().slice(r).find(a=>this.isItemMatched(a)),o=be.isEmpty(o)?this.visibleItems().slice(0,r).find(a=>this.isItemMatched(a)):o}else o=this.visibleItems().find(r=>this.isItemMatched(r));return be.isNotEmpty(o)&&(s=!0),be.isEmpty(o)&&be.isEmpty(this.focusedItem())&&(o=this.findFirstItem()),be.isNotEmpty(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuList"]],viewQuery:function(n,o){if(1&n&&je(Fce,5),2&n){let s;Se(s=Ee())&&(o.subMenuViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",id:"id",items:"items",itemTemplate:"itemTemplate",parentExpanded:"parentExpanded",expanded:"expanded",transitionOptions:"transitionOptions",root:"root",tabindex:"tabindex",activeItem:"activeItem"},outputs:{itemToggle:"itemToggle",headerFocus:"headerFocus"},features:[Hn],decls:2,vars:10,consts:[[3,"root","id","panelId","tabindex","itemTemplate","focusedItemId","activeItemPath","transitionOptions","items","parentExpanded","itemToggle","keydown","menuFocus","menuBlur"],["submenu",""]],template:function(n,o){1&n&&(x(0,"p-panelMenuSub",0,1),me("itemToggle",function(r){return o.onItemToggle(r)})("keydown",function(r){return o.onKeyDown(r)})("menuFocus",function(r){return o.onFocus(r)})("menuBlur",function(r){return o.onBlur(r)}),A()),2&n&&d("root",!0)("id",o.panelId+"_list")("panelId",o.panelId)("tabindex",o.tabindex)("itemTemplate",o.itemTemplate)("focusedItemId",o.focused?o.focusedItemId:void 0)("activeItemPath",o.activeItemPath())("transitionOptions",o.transitionOptions)("items",o.processedItems())("parentExpanded",o.parentExpanded)},dependencies:[due],styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,changeDetection:0})}return t})(),ZM=(()=>{class t{cd;model;style;styleClass;multiple=!1;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";id;tabindex=0;templates;containerViewChild;submenuIconTemplate;itemTemplate;animating;activeItem=bn(null);ngOnInit(){this.id=this.id||$t()}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}constructor(e){this.cd=e}collapseAll(){for(let e of this.model)e.expanded&&(e.expanded=!1);this.cd.detectChanges()}onToggleDone(){this.animating=!1}changeActiveItem(e,n,o,s=!1){if(!this.isItemDisabled(n)){const r=s?n:this.activeItem&&be.equals(n,this.activeItem)?null:n;this.activeItem.set(r)}}getAnimation(e){return e.expanded?{value:"visible",params:{transitionParams:this.animating?this.transitionOptions:"0ms",height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemActive(e){return e.expanded}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemGroup(e){return be.isNotEmpty(e.items)}getPanelId(e,n){return n&&n.id?n.id:`${this.id}_${e}`}getHeaderId(e,n){return e.id?e.id+"_header":`${this.getPanelId(n)}_header`}getContentId(e,n){return e.id?e.id+"_content":`${this.getPanelId(n)}_content`}updateFocusedHeader(e){const{originalEvent:n,focusOnNext:o,selfCheck:s}=e,r=n.currentTarget.closest('[data-pc-section="panel"]'),a=s?j.findSingle(r,'[data-pc-section="header"]'):o?this.findNextHeader(r):this.findPrevHeader(r);a?this.changeFocusedHeader(n,a):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)}changeFocusedHeader(e,n){n&&j.focus(n)}findNextHeader(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeader(s.parentElement):s:null}findPrevHeader(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeader(s.parentElement):s:null}findFirstHeader(){return this.findNextHeader(this.containerViewChild.nativeElement.firstElementChild,!0)}findLastHeader(){return this.findPrevHeader(this.containerViewChild.nativeElement.lastElementChild,!0)}onHeaderClick(e,n,o){if(this.isItemDisabled(n))e.preventDefault();else{if(n.command&&n.command({originalEvent:e,item:n}),!this.multiple)for(let s of this.model)n!==s&&s.expanded&&(s.expanded=!1);n.expanded=!n.expanded,this.changeActiveItem(e,n,o),this.animating=!0,j.focus(e.currentTarget)}}onHeaderKeyDown(e,n,o){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"Space":this.onHeaderEnterKey(e,n,o)}}onHeaderArrowDownKey(e){const n=!0===j.getAttribute(e.currentTarget,"data-p-highlight")?j.findSingle(e.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;n?j.focus(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()}onHeaderArrowUpKey(e){const n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=!0===j.getAttribute(n,"data-p-highlight")?j.findSingle(n.nextElementSibling,'[data-pc-section="menu"]'):null;o?j.focus(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()}onHeaderHomeKey(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()}onHeaderEndKey(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()}onHeaderEnterKey(e,n,o){const s=j.findSingle(e.currentTarget,'[data-pc-section="headeraction"]');s?s.click():this.onHeaderClick(e,n,o),e.preventDefault()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Rce,5),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",multiple:"multiple",transitionOptions:"transitionOptions",id:"id",tabindex:"tabindex"},decls:3,vars:5,consts:[[3,"ngStyle","ngClass"],["container",""],[4,"ngFor","ngForOf"],["class","p-panelmenu-panel",3,"ngClass","ngStyle",4,"ngIf"],[1,"p-panelmenu-panel",3,"ngClass","ngStyle"],["role","button",3,"ngClass","ngStyle","pTooltip","tabindex","tooltipOptions","click","keydown"],[1,"p-panelmenu-header-content"],["class","p-panelmenu-header-action",3,"target",4,"ngIf"],["class","p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["class","p-toggleable-content","role","region",3,"ngClass",4,"ngIf"],[1,"p-panelmenu-header-action",3,"target"],[4,"ngIf"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],["role","region",1,"p-toggleable-content",3,"ngClass"],[1,"p-panelmenu-content"],[3,"panelId","items","itemTemplate","transitionOptions","root","activeItem","tabindex","parentExpanded","headerFocus"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,cue,2,1,"ng-container",2),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass","p-panelmenu p-component"),h(2),d("ngForOf",o.model))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,bi,Qi,pue]},styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,data:{animation:[Oo("rootItem",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),YM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qe,Or,Zo,bi,Qi,qn,Nn,Qe]})}return t})(),eg=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["MinusIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},dependencies:[Xe],encapsulation:2})}return t})(),JM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,dn,Oi,_s,CC,vC,Ck,bk,vk,yi,eg,bi,Qi,Qe,Oi]})}return t})();const Hde=["input"],zde=function(t,i,e){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":t,"p-disabled":i,"p-focus":e}},jde={provide:un,useExisting:ft(()=>Ude),multi:!0};let Ude=(()=>{class t{cd;style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;onChange=new ge;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),e.preventDefault(),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-inputSwitch"]],viewQuery:function(n,o){if(1&n&&je(Hde,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[yt([jde])],decls:5,vars:22,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","focus","blur"],["input",""],[1,"p-inputswitch-slider"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),le(4,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(18,zde,o.checked(),o.disabled,o.focused))("ngStyle",o.style),K("data-pc-name","inputswitch")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("checked",o.checked())("disabled",o.disabled),K("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),h(2),K("data-pc-section","slider"))},dependencies:[Ct,Ht],styles:['@layer primeng{.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}}\n'],encapsulation:2,changeDetection:0})}return t})(),_v=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const $de=["sublist"];function Kde(t,i){if(1&t&&le(0,"li",6),2&t){const e=f().$implicit,n=f(2);yn(n.getItemProp(e,"style")),d("ngClass",n.getSeparatorItemClass(e)),K("id",n.getItemId(e))("data-pc-section","separator")}}function Gde(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function qde(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function Wde(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function Qde(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function Zde(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function Yde(t,i){}function Xde(t,i){1&t&&g(0,Yde,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function Jde(t,i){if(1&t&&(we(0),g(1,Zde,1,3,"AngleRightIcon",23),g(2,Xde,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const eO=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function epe(t,i){if(1&t&&(x(0,"a",14),g(1,Gde,1,5,"span",15),g(2,qde,2,2,"span",16),g(3,Wde,1,2,"ng-template",null,17,In),g(5,Qde,2,2,"span",18),g(6,Jde,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("target",o.getItemProp(n,"target"))("ngClass",He(12,eO,o.getItemProp(n,"disabled"))),K("href",o.getItemProp(n,"url"),Ls)("aria-hidden",!0)("data-automationid",o.getItemProp(n,"automationId"))("data-pc-section","action")("tabindex",-1),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function tpe(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function npe(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function ipe(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function ope(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function spe(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function rpe(t,i){}function ape(t,i){1&t&&g(0,rpe,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function lpe(t,i){if(1&t&&(we(0),g(1,spe,1,3,"AngleRightIcon",23),g(2,ape,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const cpe=function(){return{exact:!1}};function upe(t,i){if(1&t&&(x(0,"a",26),g(1,tpe,1,5,"span",15),g(2,npe,2,2,"span",16),g(3,ipe,1,2,"ng-template",null,17,In),g(5,ope,2,2,"span",18),g(6,lpe,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(21,cpe))("target",o.getItemProp(n,"target"))("ngClass",He(22,eO,o.getItemProp(n,"disabled")))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("data-automationid",o.getItemProp(n,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function dpe(t,i){if(1&t&&(we(0),g(1,epe,7,14,"a",12),g(2,upe,7,24,"a",13),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function ppe(t,i){}function hpe(t,i){1&t&&g(0,ppe,0,0,"ng-template")}const fpe=function(t){return{$implicit:t}};function gpe(t,i){if(1&t&&(we(0),g(1,hpe,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,fpe,e.item))}}function mpe(t,i){if(1&t){const e=De();x(0,"p-contextMenuSub",28),me("itemClick",function(o){return G(e),q(f(4).itemClick.emit(o))})("itemMouseEnter",function(o){return G(e),q(f(4).onItemMouseEnter(o))}),A()}if(2&t){const e=f(2).$implicit,n=f(2);d("items",e.items)("itemTemplate",n.itemTemplate)("menuId",n.menuId)("visible",n.isItemActive(e)&&n.isItemGroup(e))("activeItemPath",n.activeItemPath)("focusedItemId",n.focusedItemId)("level",n.level+1)}}function _pe(t,i){if(1&t){const e=De();x(0,"li",7,8)(2,"div",9),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onItemClick(o,s))})("mouseenter",function(o){G(e);const s=f().$implicit;return q(f(2).onItemMouseEnter({$event:o,processedItem:s}))}),g(3,dpe,3,2,"ng-container",10),g(4,gpe,2,4,"ng-container",10),A(),g(5,mpe,1,7,"p-contextMenuSub",11),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);Ve(s.getItemProp(n,"styleClass")),d("ngStyle",s.getItemProp(n,"style"))("ngClass",s.getItemClass(n))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("data-pc-section","menuitem")("data-p-highlight",s.isItemActive(n))("data-p-focused",s.isItemFocused(n))("data-p-disabled",s.isItemDisabled(n))("aria-label",s.getItemLabel(n))("aria-disabled",s.isItemDisabled(n)||void 0)("aria-haspopup",s.isItemGroup(n)&&!s.getItemProp(n,"to")?"menu":void 0)("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o)),h(2),K("data-pc-section","content"),h(1),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Ipe(t,i){if(1&t&&(g(0,Kde,1,5,"li",4),g(1,_pe,6,21,"li",5)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isItemVisible(e)&&n.getItemProp(e,"separator")),h(1),d("ngIf",n.isItemVisible(e)&&!n.getItemProp(e,"separator"))}}const Cpe=function(t,i){return{"p-submenu-list":t,"p-contextmenu-root-list":i}};function vpe(t,i){if(1&t){const e=De();x(0,"ul",1,2),me("@overlayAnimation.start",function(o){G(e);const s=Bt(1);return q(f().onEnter(o,s))})("keydown",function(o){return G(e),q(f().menuKeydown.emit(o))})("focus",function(o){return G(e),q(f().menuFocus.emit(o))})("blur",function(o){return G(e),q(f().menuBlur.emit(o))}),g(2,Ipe,2,2,"ng-template",3),A()}if(2&t){const e=f();d("ngClass",mt(10,Cpe,!e.root,e.root))("@overlayAnimation",e.visible)("tabindex",e.tabindex),K("id",e.menuId+"_list")("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy)("aria-activedescendant",e.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),h(2),d("ngForOf",e.items)}}const bpe=["rootmenu"],ype=["container"],xpe=function(){return{"p-contextmenu p-component":!0,"p-contextmenu-overlay":!0}},Ape=function(){return{value:"visible"}};function wpe(t,i){if(1&t){const e=De();x(0,"div",1,2),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(2,"p-contextMenuSub",3,4),me("itemClick",function(o){return G(e),q(f().onItemClick(o))})("menuFocus",function(o){return G(e),q(f().onMenuFocus(o))})("menuBlur",function(o){return G(e),q(f().onMenuBlur(o))})("menuKeydown",function(o){return G(e),q(f().onKeyDown(o))})("itemMouseEnter",function(o){return G(e),q(f().onItemMouseEnter(o))}),A()()}if(2&t){const e=f();Ve(e.styleClass),d("ngClass",Jt(20,xpe))("ngStyle",e.style)("@overlayAnimation",Jt(21,Ape)),K("data-pc-section","root")("data-pc-name","contextmenu")("id",e.id),h(2),d("root",!0)("items",e.processedItems)("itemTemplate",e.itemTemplate)("menuId",e.id)("tabindex",e.disabled?-1:e.tabindex)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("visible",e.submenuVisible())("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())}}let Tpe=(()=>{class t{document;el;renderer;cd;contextMenu;ref;visible=!1;items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;tabindex=0;itemClick=new ge;itemMouseEnter=new ge;menuFocus=new ge;menuBlur=new ge;menuKeydown=new ge;sublistViewChild;constructor(e,n,o,s,r,a){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.contextMenu=r,this.ref=a}getItemProp(e,n,o=null){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(e),"p-menuitem-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)}}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(n=>n.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}onItemMouseEnter(e){const{event:n,processedItem:o}=e;this.itemMouseEnter.emit({originalEvent:n,processedItem:o})}onItemClick(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemClick.emit({originalEvent:e,processedItem:n,isFocus:!0})}onEnter(e,n){"void"===e.fromState&&e.toState&&this.position(e.element)}position(e){const n=e.parentElement.parentElement,o=j.getOffset(e.parentElement.parentElement),s=j.getViewport(),r=e.offsetParent?e.offsetWidth:j.getHiddenElementOuterWidth(e),a=j.getOuterWidth(n.children[0]);e.style.top="0px",e.style.left=parseInt(o.left,10)+a+r>s.width-j.calculateScrollbarWidth()?-1*r+"px":a+"px"}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ft(()=>tO)),V(go))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenuSub"]],viewQuery:function(n,o){if(1&n&&je($de,5),2&n){let s;Se(s=Ee())&&(o.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",items:"items",itemTemplate:"itemTemplate",root:"root",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",popup:"popup",menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:"level",focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",tabindex:"tabindex"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},decls:1,vars:1,consts:[["role","menu",3,"ngClass","tabindex","keydown","focus","blur",4,"ngIf"],["role","menu",3,"ngClass","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter"]],template:function(n,o){1&n&&g(0,vpe,3,13,"ul",0),2&n&&d("ngIf",!!o.root||o.visible)},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,oo,Kl,Zo,t]},encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0})]),Ln(":leave",[en({opacity:0})])])]}})}return t})(),tO=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}triggerEvent="contextmenu";target;global;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;id;ariaLabel;ariaLabelledBy;onShow=new ge;onHide=new ge;templates;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;container;outsideClickListener;resizeListener;triggerEventListener;documentClickListener;documentTriggerListener;pageX;pageY;visible=bn(!1);relativeAlign;window;focused=!1;activeItemPath=bn([]);focusedItemInfo=bn({index:-1,level:0,parentKey:"",item:null});submenuVisible=bn(!1);searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){const e=this.activeItemPath().find(n=>n.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:-1!==e.index?`${this.id}${be.isNotEmpty(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView,a_(()=>{const c=this.activeItemPath();be.isNotEmpty(c)?this.bindGlobalListeners():this.visible()||this.unbindGlobalListeners()})}ngOnInit(){this.id=this.id||$t(),this.bindTriggerEventListener()}bindTriggerEventListener(){ei(this.platformId)&&(this.triggerEventListener||(this.global?this.triggerEventListener=this.renderer.listen(this.document,this.triggerEvent,e=>{this.show(e)}):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,e=>{this.show(e)}))))}bindGlobalListeners(){if(ei(this.platformId)){if(!this.documentClickListener){const e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&!n.ctrlKey&&2!==n.button&&"click"!==this.triggerEvent&&this.hide()}),this.documentTriggerListener=this.renderer.listen(e,this.triggerEvent,n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&this.hide()})}this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()}))}}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&be.isNotEmpty(e.items)}isSelected(e){return this.activeItemPath().some(n=>n.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&be.isNotEmpty(e.items)}onItemClick(e){const{processedItem:n}=e,o=this.isProcessedItemGroup(n);if(this.isSelected(n)){const{index:r,key:a,level:l,parentKey:c,item:u}=n;this.activeItemPath.set(this.activeItemPath().filter(p=>a!==p.key&&a.startsWith(p.key))),this.focusedItemInfo.set({index:r,level:l,parentKey:c,item:u}),j.focus(this.rootmenu.sublistViewChild.nativeElement)}else o?this.onItemChange(e):this.hide()}onItemMouseEnter(e){this.onItemChange(e)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}onArrowRightKey(e){const n=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(n)&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide(),e.preventDefault()}else{const n=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}}onArrowLeftKey(e){const n=this.visibleItems[this.focusedItemInfo().index],o=this.activeItemPath().find(a=>a.key===n.parentKey);be.isEmpty(n.parent)||(this.focusedItemInfo.set({index:-1,parentKey:o?o.parentKey:"",item:n.item}),this.searchValue="",this.onArrowDownKey(e));const r=this.activeItemPath().filter(a=>a.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(r),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide();const n=this.findVisibleItem(this.findFirstFocusedItemIndex());this.focusedItemInfo.mutate(o=>{o.index=this.findFirstFocusedItemIndex(),o.item=n.item}),e.preventDefault()}onTabKey(e){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()}onEnterKey(e){if(-1!==this.focusedItemInfo().index){const n=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&j.findSingle(n,'a[data-pc-section="action"]');o?o.click():n&&n.click();const s=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(s)||this.focusedItemInfo.mutate(a=>{a.index=this.findFirstFocusedItemIndex()})}e.preventDefault()}onItemChange(e){const{processedItem:n,isFocus:o}=e;if(be.isEmpty(n))return;const{index:s,key:r,level:a,parentKey:l,items:c}=n,u=be.isNotEmpty(c),p=this.activeItemPath().filter(m=>m.parentKey!==l&&m.parentKey!==r);u&&(p.push(n),this.submenuVisible.set(!0)),this.focusedItemInfo.set({index:s,level:a,parentKey:l,item:n.item}),this.activeItemPath.set(p),o&&j.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;const n=-1!==this.focusedItemInfo().index?this.focusedItemInfo():{index:-1,level:0,parentKey:"",item:null};this.focusedItemInfo.set(n)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue=""}onOverlayAnimationStart(e){"visible"===e.toState&&(this.container=e.element,this.position(),this.moveOnTop(),this.appendOverlay(),this.bindGlobalListeners(),this.onShow.emit(),j.focus(this.rootmenu.sublistViewChild.nativeElement))}onOverlayAnimationEnd(e){"void"===e.toState&&this.onOverlayHide()}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.containerViewChild.nativeElement):j.appendChild(this.containerViewChild.nativeElement,this.appendTo))}moveOnTop(){this.autoZIndex&&this.containerViewChild&&Wn.set("menu",this.containerViewChild.nativeElement,this.baseZIndex+this.config.zIndex.menu)}onOverlayHide(){this.unbindGlobalListeners(),this.cd.destroyed||(this.target=null),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.onHide.emit()}hide(){this.visible.set(!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null})}toggle(e){this.visible()?this.hide():this.show(e)}show(e){this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.pageX=e.pageX,this.pageY=e.pageY,this.visible()?this.position():this.visible.set(!0),e.stopPropagation(),e.preventDefault()}position(){let e=this.pageX+1,n=this.pageY+1,o=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetWidth:j.getHiddenElementOuterWidth(this.containerViewChild.nativeElement),s=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetHeight:j.getHiddenElementOuterHeight(this.containerViewChild.nativeElement),r=j.getViewport();e+o-this.document.scrollingElement.scrollLeft>r.width&&(e-=o),n+s-this.document.scrollingElement.scrollTop>r.height&&(n-=s),ethis.isItemMatched(r)),o=-1===o?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(r=>this.isItemMatched(r)):o+this.focusedItemInfo().index):o=this.visibleItems.findIndex(r=>this.isItemMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedItemInfo().index&&(o=this.findFirstFocusedItemIndex()),-1!==o&&this.changeFocusedItemIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}findVisibleItem(e){return be.isNotEmpty(this.visibleItems)?this.visibleItems[e]:null}findLastFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return be.findLastIndex(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){const n=e>0?be.findLastIndex(this.visibleItems.slice(0,e),o=>this.isValidItem(o)):-1;return n>-1?n:e}findNextItemIndex(e){const n=ethis.isValidItem(o)):-1;return n>-1?n+e+1:e}findFirstFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,n){const o=this.findVisibleItem(n);this.focusedItemInfo().index!==n&&(this.focusedItemInfo.mutate(s=>{s.index=n,s.item=o.item}),this.scrollInView())}scrollInView(e=-1){const o=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedItemId}"]`);o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"})}bindResizeListener(){ei(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()})))}isOutsideClicked(e){return!(this.containerViewChild.nativeElement.isSameNode(e.target)||this.containerViewChild.nativeElement.contains(e.target))}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindTriggerEventListener(){this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null)}removeAppendedElements(){this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.containerViewChild.nativeElement):j.removeChild(this.containerViewChild.nativeElement,this.appendTo))}ngOnDestroy(){this.unbindGlobalListeners(),this.unbindTriggerEventListener(),this.removeAppendedElements()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(bpe,5),je(ype,5)),2&n){let s;Se(s=Ee())&&(o.rootmenu=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",triggerEvent:"triggerEvent",target:"target",global:"global",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],["container",""],[3,"root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","visible","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function(n,o){1&n&&g(0,wpe,4,22,"div",0),2&n&&d("ngIf",o.visible())},dependencies:[Ct,gt,Ht,Tpe],styles:["@layer primeng{.p-contextmenu{position:absolute}.p-contextmenu ul{margin:0;padding:0;list-style:none}.p-contextmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1}.p-contextmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-contextmenu .p-menuitem-text{line-height:1}.p-contextmenu .p-menuitem{position:relative}.p-contextmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-contextmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0}),On("250ms")]),Ln(":leave",[On(".1s linear",en({opacity:0}))])])]},changeDetection:0})}return t})(),nO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),Spe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[Hs],imports:[R0,JD,NE,JM,wk,qM,qn,kG,YM,Ek,_v,kk,nO]})}return t})();Dg(Dk,[gt,wl,ch,Is,EC,Ok],[]);const Epe=function(){return["NumberOfActivities"]};let Dpe=(()=>{class t{constructor(){}ngOnInit(){for(let e of this.businessFlows)null!=e.ActivitiesColl&&(e.NumberOfActivities=e.ActivitiesColl.length);this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}],this.businessFlowGeneralDetailsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Business Flow Name"},{field:"Description",header:"Business Flow Description"},{field:"Description",header:"Business Flow Run Description"},{field:"Environment",header:"Environment Used"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"NumberOfActivities",header:"Number Of Activities"},{field:"RunStatus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow-table"]],inputs:{businessFlows:"businessFlows",tableExpenderType:"tableExpenderType"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.businessFlowGeneralDetailsCols)("data",o.businessFlows)("addExpender",!0)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,Epe))},dependencies:[Is]})}return t})(),kpe=(()=>{class t{constructor(){}ngOnInit(){this.title=this.chartTitle,this.data=this.executionData,this.type="PieChart",this.columnNames=["Browser","Percentage"],this.options={pieHole:.7,legend:{position:"labeled"},chartArea:{left:0,height:220,width:400},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"]},this.width=400,this.height=400}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-doughnut"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function Mpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Runner Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.runner.Name)}}function Ope(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runnerDetails)}}function Lpe(t,i){if(1&t&&(x(0,"p-accordionTab",10)(1,"div",11),le(2,"app-google-doughnut",12),A(),le(3,"app-business-flow-table",13),A()),2&t){const e=f();d("selected",!0),h(2),d("executionData",e.runnerData),h(1),d("businessFlows",e.businessFlows)("tableExpenderType",e.tableExpenderType)}}function Ppe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.gingerRunnerAgentMappingCols)("data",e.agentMappings)}}let Fpe=(()=>{class t{constructor(e,n,o,s,r){this.route=e,this.calculatedDataService=n,this._userDataManagerService=o,this.communicatorService=s,this.datePipe=r,this.runnerData=[],this.tableExpenderType=Er.BusinessFlowsActivities,this.gingerRunnerGeneralDetailsData=[],this.agentMappings=[]}ngOnInit(){this.getRunner(),this.businessFlows=this.runner.BusinessFlowsColl;let e=this.calculatedDataService.getRunnerBusinessFlowsExecutionStatusArray(this.runner);this.calculatedDataService.populateChartsData(this.runnerData,e),this.getAgentMapping(),this.gingerRunnerAgentMappingCols=[{field:"TargetApplication",header:"Target Application"},{field:"AgentName",header:"Agents Mapping"}],this.runnerDetails=[{field:"Business Flow Execution Sequence",value:this.runner.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.runner.StartTimeStamp,"short")},{field:"Ginger Runner Name",value:this.runner.Name},{field:"Execution End Time",value:this.datePipe.transform(this.runner.EndTimeStamp,"short")},{field:"Runner Description",value:this.runner.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.runner.Elapsed)},{field:"Ginger Runner Environment Name",value:this.runner.Environment},{field:"Execution Status",value:this.runner.RunStatus},{field:"Number Of Business Flows",value:this.runner.BusinessFlowsColl.length},{field:"Business Flows Execution Rate",value:this.runner.ExecutionRate+"%"},{field:"Business Flows Pass Rate",value:this.runner.PassRate+"%"}]}getAgentMapping(){for(let n of this.runner.ApplicationAgentsMappingList){var e=n.split("_:_");let o=new kK;o.AgentName=e[0],o.TargetApplication=e[1],this.agentMappings.push(o)}}getRunner(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner");this.runner=e.RunnersColl.filter(o=>o.Seq==n)[0]}getStatus(e=!0){if(null!=this.runner&&null!=this.runner.RunStatus)return this.calculatedDataService.getStatusClass(this.runner.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(qs),V(Co),V(Ws),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-runner-report"]],inputs:{runner:"runner"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected",4,"ngIf"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle-o"],[2,"font-weight","bold"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected"],[3,"data"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],["id","chart_div","align","center"],[3,"executionData"],[3,"businessFlows","tableExpenderType"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,Mpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Ope,2,2,"p-accordionTab",2),g(3,Lpe,4,4,"p-accordionTab",3),g(4,Ppe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.runner),h(1),d("multiple",!0),h(1),d("ngIf",o.runnerDetails.length>0),h(1),d("ngIf",o.runnerData.length>0||o.businessFlows.length>0),h(1),d("ngIf",o.agentMappings.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Dpe,kpe]})}return t})();const Rpe=function(){return["NumberOfActions"]};function Npe(t,i){if(1&t&&le(0,"app-table",1),2&t){const e=f();d("cols",e.outputValidationCols)("data",e.outputValidations)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(6,Rpe))}}let Vpe=(()=>{class t{constructor(){}ngOnInit(){this.outputValidationCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group"},{field:"ActivityName",header:"Activity Name"},{field:"ActionName",header:"Action"},{field:"StartTimeStamp",header:"Start Time"},{field:"EndTimeStamp",header:"End Time"},{field:"Elapsed",header:"Duration"},{field:"RunStatus",header:"Status"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["output-validation"]],inputs:{outputValidations:"outputValidations",tableExpenderType:"tableExpenderType",addExpender:"addExpender"},decls:1,vars:1,consts:[[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields",4,"ngIf"],[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&g(0,Npe,1,7,"app-table",0),2&n&&d("ngIf",o.outputValidations.length>0)},dependencies:[gt,Is]})}return t})();function Bpe(t,i){if(1&t&&(x(0,"h4",9),le(1,"span",10),Le(2," Business Flow Report: "),x(3,"span",11),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.businessFlow.Name)}}function Hpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-general-details",13),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.businessFlowDetails)}}function zpe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-activities-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)("tableExpenderType",e.tableExpenderType)("addExpender",!0)}}function jpe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}function Upe(t,i){if(1&t&&(x(0,"p-accordionTab",18),le(1,"output-validation",19),A()),2&t){const e=f();d("selected",!0),h(1),d("outputValidations",e.outputValidations)("tableExpenderType",e.outputValidationtableExpenderType)("addExpender",!0)}}function $pe(t,i){1&t&&(x(0,"div",20),le(1,"div",21),A())}const Kpe=function(t,i){return{hideDiv:t,showDiv:i,"accordion-header":!0}};let Gpe=(()=>{class t{constructor(e,n,o,s,r,a,l,c){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.restServiceObj=s,this.globalVarService=r,this.communicatorService=a,this.reportHelperService=l,this.calculatedDataService=c,this.showScreenshotPanel=!0,this.EntityType="businessflow",this.actions=[],this.outputValidations=new Array,this.tableExpenderType=Er.ActivitiesActions,this.outputValidationtableExpenderType=Er.OutputValidation}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}setScreenshotVisiblity(e){this.showScreenshotPanel=e}paramChanged(){let e;this.getBusinessFlow(),this.totalactivitiesCount=0,this.actions=[],this.outputValidations=[],this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"ActivityGroupName",link:"ag/ag/",param:"ActivityGroupName"}],null!=this.businessFlow.ExternalID&&""!=this.businessFlow.ExternalID&&(e=this.businessFlow.ExternalID),null!=this.businessFlow.ExternalID2&&""!=this.businessFlow.ExternalID&&(e=null!=e?e+" / "+this.businessFlow.ExternalID2:this.businessFlow.ExternalID2),this.businessFlowDetails=[],this.businessFlowDetails=[{field:"Execution Sequence",value:this.businessFlow.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.businessFlow.StartTimeStamp,"short")},{field:"Business Flow Name",value:this.businessFlow.Name},{field:"Execution End Time",value:this.datePipe.transform(this.businessFlow.EndTimeStamp,"short")},{field:"Business Flow Description",value:this.businessFlow.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.businessFlow.Elapsed)},{field:"Business Flow Run Description",value:this.businessFlow.RunDescription},{field:"Execution Status",value:this.businessFlow.RunStatus},{field:"Environment Name",value:this.businessFlow.Environment},{field:"Business Flow Activities Pass Rate",value:this.businessFlow.PassRate+"%"},{field:"Business Flow Activities Execution Rate",value:this.businessFlow.ExecutionRate+"%"}],null!=e&&this.businessFlowDetails.push({field:"Mapped ALM Entity ID",value:e}),null==this.businessFlow.ActivitiesColl||0==this.businessFlow.ActivitiesColl.length?(this.CollectBfActivitiesData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.totalactivitiesCount})):(this.InitActivitieData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.businessFlow.ActivitiesColl.length})),this.communicatorService.onBfActivitiesDataChange.subscribe(n=>{"Last Loading Data"===n&&(this.AddBusinessFlowToRunsetJson(),this.InitActivitieData(),this.hideRepoLoader=!1)}),this.variablesData=this.getVariables()}orderActivites(){this.businessFlow.ActivitiesColl=this.businessFlow.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}AddBusinessFlowToRunsetJson(){this.orderActivites(),this.RunsetJson.RunnersColl.forEach(e=>{e.BusinessFlowsColl.forEach(n=>{n.GUID==this.businessFlow.GUID&&(n.ActivitiesColl=this.businessFlow.ActivitiesColl)})}),this._userDataManagerService.setItemCache(this.RunsetJson)}InitActivitieData(){this.count=1;for(const n of this.businessFlow.ActivitiesColl)n.NumberOfActions=n.ActionsColl.length,n.ActionsColl.forEach(o=>{this.globalVarService.isServerLoading?this.getActionFromServer(o.GUID,n):this.getOutputValidations(o,n)});this.activities=this.businessFlow.ActivitiesColl;const e=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,this.RunsetJson.ExecutionId);this.communicatorService.newMessage(e),e.forEach(n=>{n.items.forEach(o=>{o.items.forEach(s=>{s.id==this.businessFlow.GUID&&(o.expanded=!0,s.expanded=!0)})})})}CollectBfActivitiesData(){this.hideRepoLoader=!0;let e=0;this.businessFlow.ActivitiesGroupsColl.forEach(o=>{this.totalactivitiesCount=this.totalactivitiesCount+o.ExecutedActivitiesGUID.length});const n=this.globalVarService.totalRecPerActivityPull;this.businessFlow.NumberOfActivities=0,this.businessFlow.ActivitiesGroupsColl.forEach(o=>{let s=0;this.businessFlow.ActivitiesColl=[];const r={};r.ExecutionId=this.RunsetJson.ExecutionId,r.ParentId=o.GUID,r.From=s*n,r.Take=n,r.IsLoadActions=!0,this.restServiceObj.GetActivitiesByParent(r).subscribe(a=>{s++;const l=JSON.parse(a.response),c=l.TotalRec;for(this.businessFlow.NumberOfActivities+=c,this.businessFlow.ActivitiesColl.push(...l.ResponseColl),e+=l.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data");s*n{if(p.isSuccsess){const m=JSON.parse(p.response);this.businessFlow.ActivitiesColl.push(...m.ResponseColl),e+=m.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data")}})}})})}checkIfLastRun(e){return e===this.totalactivitiesCount}getActionFromServer(e,n){this.restServiceObj.GetActionById(e).subscribe(s=>{const r=JSON.parse(s.response);this.getOutputValidations(r,n)})}getOutputValidations(e,n){if((e.RunStatus==Lt.Passed||e.RunStatus==Lt.Failed||e.RunStatus==Lt.FailIgnored)&&e.OutputValues&&e.OutputValues.length>0&&e.OutputValues.some(s=>!s.endsWith("NA"))){var o=new LK;o.Seq=this.count++,o.ActionName=e.Name,o.ActivityGroupName=n.ActivityGroupName,o.ActivityName=n.Name,o.StartTimeStamp=e.StartTimeStamp,o.EndTimeStamp=e.EndTimeStamp,o.Elapsed=e.Elapsed,o.RunStatus=e.RunStatus,o.OutputValues=e.OutputValues.filter(s=>!s.endsWith("NA")),this.outputValidations.push(o)}}getActivityGroupName(e){for(const n of this.businessFlow.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}getBusinessFlow(){const e=+this.route.snapshot.paramMap.get("Runner"),n=+this.route.snapshot.paramMap.get("BusinessFlow");this.RunsetJson=this._userDataManagerService.getItemCache();const o=this.RunsetJson.RunnersColl.filter(s=>s.Seq==e)[0];this.businessFlow=o.BusinessFlowsColl.filter(s=>s.Seq==n)[0]}getVariables(){let e=[];if(this.businessFlow.VariablesBeforeExec)for(var n=0;n0&&(s.EndValue=this.businessFlow.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getStatus(e=!0){if(null!=this.businessFlow&&null!=this.businessFlow.RunStatus)return this.calculatedDataService.getStatusClass(this.businessFlow.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ha),V(ms),V(Ws),V(WD),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow"]],inputs:{businessFlow:"businessFlow"},decls:9,vars:15,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIONS SCREENSHOTS",3,"selected","ngClass"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[1,"entityName"],[1,"fa","fa-sitemap"],[2,"font-weight","bold"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected"],[3,"data"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr","tableExpenderType","addExpender"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected"],[3,"outputValidations","tableExpenderType","addExpender"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(g(0,Bpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Hpe,2,2,"p-accordionTab",2),g(3,zpe,2,5,"p-accordionTab",3),x(4,"p-accordionTab",4)(5,"screenshot-carousel",5),me("isScreenshotVisibleEvent",function(r){return o.setScreenshotVisiblity(r)}),A()(),g(6,jpe,2,3,"p-accordionTab",6),g(7,Upe,2,4,"p-accordionTab",7),A(),g(8,$pe,2,0,"div",8)),2&n&&(d("ngIf",o.businessFlow),h(1),d("multiple",!0),h(1),d("ngIf",o.businessFlowDetails.length>0),h(1),d("ngIf",null!=o.activities&&o.activities.length>0),h(1),d("selected",!0)("ngClass",mt(12,Kpe,!1===o.showScreenshotPanel,!0===o.showScreenshotPanel)),h(1),d("EntityType",o.EntityType)("_height",1e3)("_thumbnails",!0),h(1),d("ngIf",o.variablesData.length>0),h(1),d("ngIf",o.outputValidations.length>0),h(1),d("ngIf",o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,Is,EC,Vpe,SC]})}return t})();function qpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Activity Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.activity.Name)}}function Wpe(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityDetails)}}function Qpe(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-actions-table",11),A()),2&t){const e=f();d("selected",!0),h(1),d("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("addExpender",!1)}}function Zpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}let Ype=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a}runAsyncLogic(e){var n=this;return Fu(function*(){const o=yield n.getActivityDataFromServer(e),s=JSON.parse(o.response);n.activity.VariablesAfterExec=s.VariablesAfterExec,n.activity.VariablesBeforeExec=s.VariablesBeforeExec,n.variablesData=n.getVariables()})()}getActivityDataFromServer(e){var n=this;return Fu(function*(){return yield n.restServiceObj.GetActivityById(e)})()}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}paramChanged(){let e;this.getActivity(),null!=this.activity.ExternalID&&""!=this.activity.ExternalID&&(e=this.activity.ExternalID),null!=this.activity.ExternalID2&&""!=this.activity.ExternalID&&(e=null!=e?e+" / "+this.activity.ExternalID2:this.activity.ExternalID2),this.actions=this.activity.ActionsColl,this.variablesData=this.getVariables(),this.activityDetails=[{field:"Execution Sequence",value:this.activity.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.activity.StartTimeStamp,"short")},{field:"Activity Group Name",value:this.activity.ActivityGroupName},{field:"Execution End Time",value:this.datePipe.transform(this.activity.EndTimeStamp,"short")},{field:"Description",value:this.activity.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activity.Elapsed)},{field:"Activity Name",value:this.activity.Name},{field:"Execution Status",value:this.activity.RunStatus},{field:"Actions Pass Rate",value:this.activity.PassRate+"%"},{field:"Actions Execution Rate",value:this.activity.ExecutionRate+"%"},{field:"Number Of Actions",value:this.activity.ActionsColl.length}],null!=e&&this.activityDetails.push({field:"Mapped ALM Entity ID",value:e}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}]}getVariables(){let e=[];if(this.activity.VariablesBeforeExec&&this.activity.VariablesBeforeExec.length>0)for(var n=0;n0&&(s.EndValue=this.activity.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getActivity(){var e=this;return Fu(function*(){const n=+e.route.snapshot.paramMap.get("Runner"),o=+e.route.snapshot.paramMap.get("BusinessFlow"),s=+e.route.snapshot.paramMap.get("Activity"),l=e._userDataManagerService.getItemCache().RunnersColl.filter(c=>c.Seq==n)[0].BusinessFlowsColl.filter(c=>c.Seq==o)[0];e.activity=l.ActivitiesColl.filter(c=>c.Seq==s)[0],e.globalVarService.isServerLoading&&(yield e.runAsyncLogic(e.activity.GUID))})()}getStatus(e=!0){if(null!=this.activity&&null!=this.activity.RunStatus)return this.calculatedDataService.getStatusClass(this.activity.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-report"]],inputs:{activity:"activity"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTIVITY GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bars"],[2,"font-weight","bold"],["header","ACTIVITY GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"actions","fieldsLinksArr","addExpender"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,qpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Wpe,2,2,"p-accordionTab",2),g(3,Qpe,2,4,"p-accordionTab",3),g(4,Zpe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.activity),h(1),d("multiple",!0),h(1),d("ngIf",o.activityDetails.length>0),h(1),d("ngIf",o.actions.length>0),h(1),d("ngIf",o.variablesData.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Ok]})}return t})();function Xpe(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("contextmenu",function(o){const r=G(e).$implicit;return q(f().onContextMenu(o,r.Value,r.Key))})("dblclick",function(){const s=G(e).$implicit;return q(f().DownLoad(s.Value,s.Key))}),le(3,"span",4),x(4,"p",5),Le(5),A()(),le(6,"p-contextMenu",6),Te()}if(2&t){const e=i.$implicit,n=Bt(2),o=f();h(3),d("innerHtml",o.getIcon(e.Value),hr),h(2),dt(e.Key),h(1),d("target",n)("model",o.contextMenuItems)}}let Jpe=(()=>{class t{constructor(e,n,o){this.globalVarService=e,this.activeRoute=o;var s=localStorage.getItem("executionId");this.globalVarService.artifactPath=s?"artifacts/":null}ngOnInit(){}onContextMenu(e,n,o){this.contextMenuItems=[],this.contextMenuItems.push({label:"Download",icon:"fas fa-external-link-alt",command:()=>this.DownLoad(n,o)})}ViewContent(){}getIcon(e){const o=e.split(".").pop();return oC[o]===oC.json?"":""}DownLoad(e,n){let o=document.createElement("a");o.setAttribute("type","hidden"),o.href=null!=this.globalVarService.artifactPath?this.globalVarService.artifactPath+e:e,o.download=e,o.target="_blank",document.body.appendChild(o),o.click(),o.remove()}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V("environmentObj"),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["artifacts"]],inputs:{action:"action"},decls:2,vars:1,consts:[[1,"grid"],[4,"ngFor","ngForOf"],[1,"col-12","md:col-3","xl:col-2",3,"contextmenu","dblclick"],["art",""],[1,"fileicon",3,"innerHtml"],[1,"text-900","text-lg","font-medium","hideTxt",2,"padding-top","10px"],[3,"target","model"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Xpe,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.action.Artifacts))},dependencies:[Jn,tO],styles:[".hideTxt[_ngcontent-%COMP%]{display:inline-block;width:220px;white-space:pre-line;overflow:hidden!important;text-overflow:ellipsis;line-height:1rem} .fileicon img{font-size:3rem;width:60px} .fileicon i{font-size:6rem}"]})}return t})();function ehe(t,i){if(1&t&&(x(0,"h4",7),le(1,"span",8),Le(2," Action Report: "),x(3,"span",9),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.action.Name)}}function the(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-general-details",11),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.actionDetails)}}function nhe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.inputValuesCols)("data",e.inputValuesData)}}function ihe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)}}function ohe(t,i){if(1&t&&(x(0,"p-accordionTab",15),le(1,"artifacts",16),A()),2&t){const e=f();d("selected",!0),h(1),d("action",e.action)}}function she(t,i){if(1&t){const e=De();x(0,"p-accordionTab",17)(1,"screenshot-carousel",18),me("isScreenshotVisibleEvent",function(o){return G(e),q(f().setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f();d("selected",!0),h(1),d("EntityType",e.EntityType)("_height",1e3)("_thumbnails",!0)}}let rhe=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a,this.EntityType="action",this.showScreenshotPanel=!0}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.inputValuesCols=[{field:"Name",header:"Name"},{field:"Value",header:"Value"},{field:"CalculatedValue",header:"Calculated Value"}],this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}]}paramChanged(){this.getAction(),this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues(),this.actionDetails=[{field:"Execution Sequence",value:this.action.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.action.StartTimeStamp,"short")},{field:"Action Name",value:this.action.Name},{field:"Execution End Time",value:this.datePipe.transform(this.action.EndTimeStamp,"short")},{field:"Description",value:this.action.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.action.Elapsed)},{field:"Run Description",value:this.action.RunDescription},{field:"Execution Status",value:this.action.RunStatus},{field:"Action Type",value:this.action.ActionType},{field:"Current Retry Iteration",value:this.action.CurrentRetryIteration},{field:"Error Details",value:this.action.Error},{field:"Additional information",value:this.action.ExInfo},{field:"Screenshots",value:this.action.ScreenShots.length}]}getInputValues(){let e=[];for(let n of this.action.InputValues){let o=n.split("_:_"),s=new OK;s.Name=o[0],s.Value=this._userDataManagerService.replaceUnicodeChar(o[1]),s.CalculatedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),e.push(s)}return e}getOutputValues(){let e=[];for(let n of this.action.OutputValues){let o=n.split("_:_"),s=new $D;s.ParameterName=o[0],s.ActualValue=this._userDataManagerService.replaceUnicodeChar(o[1]),s.ExpectedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),s.Status=o[3],e.push(s)}return e}setScreenshotVisiblity(e){this.showScreenshotPanel=e}getAction(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow"),s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");let c=e.RunnersColl.filter(u=>u.Seq==n)[0].BusinessFlowsColl.filter(u=>u.Seq==o)[0].ActivitiesColl.filter(u=>u.Seq==s)[0];this.action=c.ActionsColl.filter(u=>u.Seq==r)[0],this.globalVarService.isServerLoading&&this.getActionFromServer(this.action.GUID)}getActionFromServer(e){this.restServiceObj.GetActionById(e).subscribe(n=>{const o=JSON.parse(n.response);this.action.InputValues=o.InputValues,this.action.OutputValues=o.OutputValues,this.action.FlowControls=o.FlowControls,this.action.Artifacts=o.Artifacts,this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues()})}getStatus(e=!0){if(null!=this.action&&null!=this.action.RunStatus)return this.calculatedDataService.getStatusClass(this.action.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-action-report"]],inputs:{action:"action"},decls:7,vars:7,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bolt"],[2,"font-weight","bold"],["header","ACTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected"],[3,"action"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"]],template:function(n,o){1&n&&(g(0,ehe,5,4,"h4",0),x(1,"p-accordion",1),g(2,the,2,2,"p-accordionTab",2),g(3,nhe,2,3,"p-accordionTab",3),g(4,ihe,2,3,"p-accordionTab",4),g(5,ohe,2,2,"p-accordionTab",5),g(6,she,2,4,"p-accordionTab",6),A()),2&n&&(d("ngIf",o.action),h(1),d("multiple",!0),h(1),d("ngIf",o.actionDetails.length>0),h(1),d("ngIf",!!o.action.InputValues&&o.action.InputValues.length),h(1),d("ngIf",!!o.action.OutputValues&&o.action.OutputValues.length),h(1),d("ngIf",!!o.action.Artifacts&&o.action.Artifacts.length),h(1),d("ngIf",!!o.action.ScreenShots&&o.action.ScreenShots.length))},dependencies:[Ct,gt,ga,fa,Ul,Is,SC,Jpe]})}return t})();function ahe(t,i){if(1&t&&(x(0,"p-accordionTab",4),le(1,"app-general-details",5),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityGroupDetails)}}function lhe(t,i){if(1&t&&(x(0,"p-accordionTab",6),le(1,"app-activities-table",7),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)}}const dhe=qn.forRoot([{path:"",component:Mk},{path:"BusinessFlow/:ExecutionId/:BusinessFlowId",component:Mk},{path:":Runner",component:Fpe},{path:":Runner/:BusinessFlow",component:Gpe},{path:":Runner/:BusinessFlow/ag/ag/:ActivityGroupName",component:(()=>{class t{constructor(e,n,o){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.activities=[]}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()})}paramChanged(){let e;this.getActivityGroupByName(),null!=this.activityGroup.ExternalID&&""!=this.activityGroup.ExternalID&&(e=this.activityGroup.ExternalID),null!=this.activityGroup.ExternalID2&&""!=this.activityGroup.ExternalID&&(e=null!=e?e+" / "+this.activityGroup.ExternalID2:this.activityGroup.ExternalID2),this.activityGroupDetails=[{field:"Activity Group Name",value:this.activityGroup.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.activityGroup.StartTimeStamp,"short")},{field:"Description",value:this.activityGroup.Description},{field:"Execution End Time",value:this.datePipe.transform(this.activityGroup.EndTimeStamp,"short")},{field:"Automation Percentage",value:this.activityGroup.AutomationPercentage},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activityGroup.Elapsed)},{field:"Execution Status",value:this.activityGroup.RunStatus}],null!=e&&this.activityGroupDetails.push({field:"Mapped ALM Entity ID",value:e});for(let n of this.businessFlow.ActivitiesGroupsColl)if(n.Name==this.activityGroupName)for(let o of this.businessFlow.ActivitiesColl)n.ExecutedActivitiesGUID.includes(o.GUID)&&(o.ActivityGroupName=n.Name,o.NumberOfActions=o.ActionsColl.length,this.activities.push(o));this.fieldsLinksArr=[{field:"Name",link:"../../../",param:"Seq"}]}getActivityGroupByName(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");this.activityGroupName=this.route.snapshot.paramMap.get("ActivityGroupName");let s=e.RunnersColl.filter(r=>r.Seq==n)[0];this.businessFlow=s.BusinessFlowsColl.filter(r=>r.Seq==o)[0],this.activityGroup=this.businessFlow.ActivitiesGroupsColl.filter(r=>r.Name==this.activityGroupName)[0]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-group-report"]],decls:6,vars:3,consts:[[1,"fa","fa-fw","fa-exclamation-circle"],[3,"multiple"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr"]],template:function(n,o){1&n&&(x(0,"h4"),le(1,"span",0),Le(2," Activity Group Report"),A(),x(3,"p-accordion",1),g(4,ahe,2,2,"p-accordionTab",2),g(5,lhe,2,3,"p-accordionTab",3),A()),2&n&&(h(3),d("multiple",!0),h(1),d("ngIf",o.activityGroupDetails.length>0),h(1),d("ngIf",o.activities.length>0))},dependencies:[Ct,gt,ga,fa,Ul,EC]})}return t})()},{path:":Runner/:BusinessFlow/:Activity",component:Ype},{path:":Runner/:BusinessFlow/:Activity/:Action",component:rhe}],{scrollPositionRestoration:"enabled"});let ir=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const phe=["container"],hhe=["focusInput"],fhe=["multiIn"],ghe=["multiContainer"],mhe=["ddBtn"],_he=["items"],Ihe=["scroller"],Che=["overlay"];function vhe(t,i){if(1&t){const e=De();x(0,"input",12,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()}if(2&t){const e=f();Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("type",e.type)("autocomplete",e.autocomplete)("required",e.required)("name",e.name)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("value",e.inputValue())("id",e.inputId)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function bhe(t,i){if(1&t){const e=De();x(0,"TimesIcon",16),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-autocomplete-clear-icon"),K("aria-hidden",!0))}function yhe(t,i){}function xhe(t,i){1&t&&g(0,yhe,0,0,"ng-template")}function Ahe(t,i){if(1&t){const e=De();x(0,"span",17),me("click",function(){return G(e),q(f(2).clear())}),g(1,xhe,1,0,null,9),A()}if(2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function whe(t,i){if(1&t&&(we(0),g(1,bhe,1,2,"TimesIcon",14),g(2,Ahe,2,2,"span",15),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function The(t,i){1&t&&ze(0)}function She(t,i){if(1&t&&(x(0,"span",30),Le(1),A()),2&t){const e=f().$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function Ehe(t,i){1&t&&le(0,"TimesCircleIcon",31),2&t&&(d("styleClass","p-autocomplete-token-icon"),K("aria-hidden",!0))}function Dhe(t,i){}function khe(t,i){1&t&&g(0,Dhe,0,0,"ng-template")}function Mhe(t,i){if(1&t&&(x(0,"span",32),g(1,khe,1,0,null,9),A()),2&t){const e=f(3);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeIconTemplate)}}const Ohe=function(t){return{"p-autocomplete-token":!0,"p-focus":t}},Iv=function(t){return{$implicit:t}};function Lhe(t,i){if(1&t){const e=De();x(0,"li",23,24),g(2,The,1,0,"ng-container",25),g(3,She,2,1,"span",26),x(4,"span",27),me("click",function(o){const r=G(e).index;return q(f(2).removeOption(o,r))}),g(5,Ehe,1,2,"TimesCircleIcon",28),g(6,Mhe,2,2,"span",29),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",He(11,Ohe,o.focusedMultipleOptionIndex()===n)),K("id",o.id+"_multiple_option_"+n)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",n+1)("aria-selected",!0),h(2),d("ngTemplateOutlet",o.selectedItemTemplate)("ngTemplateOutletContext",He(13,Iv,e)),h(1),d("ngIf",!o.selectedItemTemplate),h(2),d("ngIf",!o.removeIconTemplate),h(1),d("ngIf",o.removeIconTemplate)}}function Phe(t,i){if(1&t){const e=De();x(0,"ul",18,19),me("focus",function(o){return G(e),q(f().onMultipleContainerFocus(o))})("blur",function(o){return G(e),q(f().onMultipleContainerBlur(o))})("keydown",function(o){return G(e),q(f().onMultipleContainerKeyDown(o))}),g(2,Lhe,7,15,"li",20),x(3,"li",21)(4,"input",22,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()()()}if(2&t){const e=f();Ve(e.multiContainerClass),d("tabindex",-1),K("aria-orientation","horizontal")("aria-activedescendant",e.focused?e.focusedMultipleOptionId:void 0),h(2),d("ngForOf",e.modelValue()),h(2),Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("autocomplete",e.autocomplete)("required",e.required)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("type",e.type)("id",e.inputId)("name",e.name)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function Fhe(t,i){1&t&&le(0,"SpinnerIcon",35),2&t&&(d("styleClass","p-autocomplete-loader")("spin",!0),K("aria-hidden",!0))}function Rhe(t,i){}function Nhe(t,i){1&t&&g(0,Rhe,0,0,"ng-template")}function Vhe(t,i){if(1&t&&(x(0,"span",36),g(1,Nhe,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function Bhe(t,i){if(1&t&&(we(0),g(1,Fhe,1,3,"SpinnerIcon",33),g(2,Vhe,2,2,"span",34),Te()),2&t){const e=f();h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function Hhe(t,i){1&t&&le(0,"span",40),2&t&&(d("ngClass",f(2).dropdownIcon),K("aria-hidden",!0))}function zhe(t,i){1&t&&le(0,"ChevronDownIcon")}function jhe(t,i){}function Uhe(t,i){1&t&&g(0,jhe,0,0,"ng-template")}function $he(t,i){if(1&t&&(we(0),g(1,zhe,1,0,"ChevronDownIcon",3),g(2,Uhe,1,0,null,9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.dropdownIconTemplate),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function Khe(t,i){if(1&t){const e=De();x(0,"button",37,38),me("click",function(o){return G(e),q(f().handleDropdownClick(o))}),g(2,Hhe,1,2,"span",39),g(3,$he,3,2,"ng-container",3),A()}if(2&t){const e=f();d("disabled",e.disabled),K("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),h(2),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Ghe(t,i){1&t&&ze(0)}function qhe(t,i){1&t&&ze(0)}const iO=function(t,i){return{$implicit:t,options:i}};function Whe(t,i){if(1&t&&g(0,qhe,1,0,"ng-container",25),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(14))("ngTemplateOutletContext",mt(2,iO,e,n))}}function Qhe(t,i){1&t&&ze(0)}const Zhe=function(t){return{options:t}};function Yhe(t,i){if(1&t&&g(0,Qhe,1,0,"ng-container",25),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,Zhe,e))}}function Xhe(t,i){1&t&&(we(0),g(1,Yhe,1,4,"ng-template",44),Te())}const tg=function(t){return{height:t}};function Jhe(t,i){if(1&t){const e=De();x(0,"p-scroller",41,42),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,Whe,1,5,"ng-template",43),g(3,Xhe,2,0,"ng-container",3),A()}if(2&t){const e=f();yn(He(8,tg,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function efe(t,i){1&t&&ze(0)}const tfe=function(){return{}};function nfe(t,i){if(1&t&&(we(0),g(1,efe,1,0,"ng-container",25),Te()),2&t){const e=f(),n=Bt(14);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,iO,e.visibleOptions(),Jt(2,tfe)))}}function ife(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function ofe(t,i){1&t&&ze(0)}function sfe(t,i){if(1&t&&(we(0),x(1,"li",50),g(2,ife,2,1,"span",3),g(3,ofe,1,0,"ng-container",25),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,tg,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Iv,o.optionGroup))}}function rfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function afe(t,i){1&t&&ze(0)}const lfe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},cfe=function(t,i){return{$implicit:t,index:i}};function ufe(t,i){if(1&t){const e=De();we(0),x(1,"li",51),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionSelect(o,s))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),g(2,rfe,2,1,"span",3),g(3,afe,1,0,"ng-container",25),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,tg,s.itemSize+"px"))("ngClass",Rn(14,lfe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("data-p-focused",r.focusedOptionIndex()===r.getOptionIndex(o,s))("aria-setsize",r.ariaSetSize)("aria-posinset",r.getAriaPosInset(r.getOptionIndex(o,s))),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,cfe,n,s.getOptions?s.getOptions(o):o))}}function dfe(t,i){if(1&t&&(g(0,sfe,4,9,"ng-container",3),g(1,ufe,4,21,"ng-container",3)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function pfe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.searchResultMessageText," ")}}function hfe(t,i){1&t&&ze(0,null,54)}function ffe(t,i){if(1&t&&(x(0,"li",52),g(1,pfe,2,1,"ng-container",53),g(2,hfe,2,0,"ng-container",9),A()),2&t){const e=f().options,n=f();d("ngStyle",He(4,tg,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function gfe(t,i){1&t&&ze(0)}function mfe(t,i){if(1&t&&(x(0,"ul",45,46),g(2,dfe,2,2,"ng-template",47),g(3,ffe,3,6,"li",48),A(),g(4,gfe,1,0,"ng-container",25),x(5,"span",49),Le(6),A()),2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",!e||e&&0===e.length&&o.showEmptyMessage),h(1),d("ngTemplateOutlet",o.footerTemplate)("ngTemplateOutletContext",He(9,Iv,e)),h(2),Pt(" ",o.selectedMessageText," ")}}const _fe={provide:un,useExisting:ft(()=>Ife),multi:!0};let Ife=(()=>{class t{document;el;renderer;cd;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;optionDisabled;focusOnHover;completeMethod=new ge;onSelect=new ge;onUnselect=new ge;onFocus=new ge;onBlur=new ge;onDropdownClick=new ge;onClear=new ge;onKeyUp=new ge;onShow=new ge;onHide=new ge;onLazyLoad=new ge;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions=bn(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;filled;loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=bn(null);focusedMultipleOptionIndex=bn(-1);focusedOptionIndex=bn(-1);visibleOptions=Ds(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=Ds(()=>{const e=this.modelValue();return this.filled=be.isNotEmpty(this.modelValue()),e?"object"==typeof e?this.getOptionLabel(e)??e:e:""});get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue()||be.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return"p-autocomplete-multiple-container p-component p-inputtext"}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return be.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.config=r,this.overlayService=a,this.zone=l}ngOnInit(){this.id=this.id||$t()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"removetokenicon":this.removeIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}handleSuggestionsChange(){if(this.loading){this._suggestions()||this.emptyTemplate?this.show():this.hide();const e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){return be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,n){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===n.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return this.multiple?e.target===this.multiContainerEL.nativeElement||this.multiContainerEL.nativeElement.contains(e.target):e.target===this.inputEL.nativeElement}isDropdownClicked(e){return!!this.dropdownButton?.nativeElement&&(e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target))}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&j.focus(this.inputEL.nativeElement)}handleDropdownClick(e){let n;this.overlayVisible?this.hide(!0):(j.focus(this.inputEL.nativeElement),n=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,n,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:n})}onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let n=e.target.value;this.multiple||this.updateModel(n),0!==n.length||this.multiple?n.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,n,"input")},this.delay)):this.hide():(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2))}onInputChange(e){if(this.forceSelection){let n=!1;if(this.visibleOptions()){const o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));void 0!==o&&(n=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}n||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}}onArrowDownKey(e){if(!this.overlayVisible)return;const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){const n=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(be.isEmpty(n.value)&&this.hasSelectedOption()?(j.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){const{currentTarget:n}=e;n.setSelectionRange(0,e.shiftKey?n.value.length:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){const{currentTarget:n}=e,o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(be.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){const n=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:n})}e.stopPropagation()}}onArrowLeftKeyOnMultiple(e){const n=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(n)}onArrowRightKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex();n++,this.focusedMultipleOptionIndex.set(n),n>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),j.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,n,o=!0){const s=this.getOptionValue(n);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(n)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:n}),o&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}search(e,n,o){null!=n&&("input"===o&&0===n.trim().length||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:n})))}removeOption(e,n){const o=this.modelValue()[n],s=this.modelValue().filter((r,a)=>a!==n).map(r=>this.getOptionValue(r));this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),j.focus(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.value&&this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=this.multiple?"":this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions()[n],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.inputEL.nativeElement),e&&j.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){const n=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&j.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{n()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.filled=!(!this.value||!this.value.length),this.updateModel(e),this.cd.markForCheck()}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?be.resolveFieldData(e,this.field||this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState&&(this.itemsWrapper=j.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ki),V(Dr),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-autoComplete"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(phe,5),je(hhe,5),je(fhe,5),je(ghe,5),je(mhe,5),je(_he,5),je(Ihe,5),je(Che,5)),2&n){let s;Se(s=Ee())&&(o.containerEL=s.first),Se(s=Ee())&&(o.inputEL=s.first),Se(s=Ee())&&(o.multiInputEl=s.first),Se(s=Ee())&&(o.multiContainerEL=s.first),Se(s=Ee())&&(o.dropdownButton=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused&&!o.disabled||o.autofocus||o.overlayVisible)("p-autocomplete-clearable",o.showClear&&!o.disabled)},inputs:{minLength:"minLength",delay:"delay",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:"readonly",disabled:"disabled",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",maxlength:"maxlength",name:"name",required:"required",size:"size",appendTo:"appendTo",autoHighlight:"autoHighlight",forceSelection:"forceSelection",type:"type",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:"unique",group:"group",completeOnFocus:"completeOnFocus",showClear:"showClear",field:"field",dropdown:"dropdown",showEmptyMessage:"showEmptyMessage",dropdownMode:"dropdownMode",multiple:"multiple",tabindex:"tabindex",dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:"autofocus",autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",optionDisabled:"optionDisabled",focusOnHover:"focusOnHover"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[yt([_fe])],decls:15,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["focusInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"tabindex","focus","blur","keydown"],["multiContainer",""],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"autofocus","ngClass","ngStyle","autocomplete","required","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["role","option",3,"ngClass"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"disabled","click"],["ddBtn",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"ngStyle","ngClass","click","mouseenter"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,vhe,2,23,"input",2),g(3,whe,3,2,"ng-container",3),g(4,Phe,6,28,"ul",4),g(5,Bhe,3,2,"ng-container",3),g(6,Khe,4,5,"button",5),x(7,"p-overlay",6,7),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),x(9,"div",8),g(10,Ghe,1,0,"ng-container",9),g(11,Jhe,4,10,"p-scroller",10),g(12,nfe,2,6,"ng-container",3),g(13,mfe,7,11,"ng-template",null,11,In),A()()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),h(2),d("ngIf",!o.multiple),h(1),d("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),h(1),d("ngIf",o.multiple),h(1),d("ngIf",o.loading),h(1),d("ngIf",o.dropdown),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions),h(2),Ve(o.panelStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight),d("ngClass",o.panelClass)("ngStyle",o.panelStyle),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,hf,oo,Bu,uC,ir,_s,mn,bi]},styles:["@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:-moz-fit-content;width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Cfe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Zs,Mi,Qe,dn,Oi,gf,ir,_s,mn,bi,$l,Qe,Oi,gf]})}return t})(),oO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["HomeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4175 6.79971C13.2874 6.80029 13.1608 6.75807 13.057 6.67955L12.4162 6.19913V12.6073C12.4141 12.7659 12.3502 12.9176 12.2379 13.0298C12.1257 13.142 11.9741 13.206 11.8154 13.208H8.61206C8.61179 13.208 8.61151 13.208 8.61123 13.2081C8.61095 13.208 8.61068 13.208 8.6104 13.208H5.41076C5.40952 13.208 5.40829 13.2081 5.40705 13.2081C5.40581 13.2081 5.40458 13.208 5.40334 13.208H2.20287C2.04418 13.206 1.89257 13.142 1.78035 13.0298C1.66813 12.9176 1.60416 12.7659 1.60209 12.6073V6.19914L0.961256 6.67955C0.833786 6.77515 0.673559 6.8162 0.515823 6.79367C0.358086 6.77114 0.215762 6.68686 0.120159 6.55939C0.0245566 6.43192 -0.0164931 6.2717 0.00604063 6.11396C0.0285744 5.95622 0.112846 5.8139 0.240316 5.7183L1.83796 4.52007L1.84689 4.51337L6.64868 0.912027C6.75267 0.834032 6.87915 0.79187 7.00915 0.79187C7.13914 0.79187 7.26562 0.834032 7.36962 0.912027L12.1719 4.51372L12.1799 4.51971L13.778 5.7183C13.8943 5.81278 13.9711 5.94732 13.9934 6.09553C14.0156 6.24373 13.9816 6.39489 13.8981 6.51934C13.8471 6.60184 13.7766 6.67054 13.6928 6.71942C13.609 6.76831 13.5144 6.79587 13.4175 6.79971ZM6.00783 12.0065H8.01045V7.60074H6.00783V12.0065ZM9.21201 12.0065V6.99995C9.20994 6.84126 9.14598 6.68965 9.03375 6.57743C8.92153 6.46521 8.76992 6.40124 8.61123 6.39917H5.40705C5.24836 6.40124 5.09675 6.46521 4.98453 6.57743C4.8723 6.68965 4.80834 6.84126 4.80627 6.99995V12.0065H2.80366V5.29836L7.00915 2.14564L11.2146 5.29836V12.0065H9.21201Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),sge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qi,oO,Qe,qn,Nn,Qe]})}return t})(),uge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),Lge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Qi,Mr,bi,ff,Xe,Qe]})}return t})();const Pge=["input"];function Fge(t,i){1&t&&le(0,"span",10),2&t&&(d("ngClass",f(3).checkboxIcon),K("data-pc-section","icon"))}function Rge(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","icon"))}function Nge(t,i){if(1&t&&(we(0),g(1,Fge,1,2,"span",8),g(2,Rge,1,2,"CheckIcon",9),Te()),2&t){const e=f(2);h(1),d("ngIf",e.checkboxIcon),h(1),d("ngIf",!e.checkboxIcon)}}function Vge(t,i){}function Bge(t,i){1&t&&g(0,Vge,0,0,"ng-template")}function Hge(t,i){if(1&t&&(x(0,"span",12),g(1,Bge,1,0,null,13),A()),2&t){const e=f(2);K("data-pc-section","icon"),h(1),d("ngTemplateOutlet",e.checkboxIconTemplate)}}function zge(t,i){if(1&t&&(we(0),g(1,Nge,3,2,"ng-container",5),g(2,Hge,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkboxIconTemplate),h(1),d("ngIf",e.checkboxIconTemplate)}}const jge=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function Uge(t,i){if(1&t){const e=De();x(0,"label",14),me("click",function(o){return G(e),q(f().onClick(o))}),Le(1),A()}if(2&t){const e=f();Ve(e.labelStyleClass),d("ngClass",Rn(6,jge,e.checked(),e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),Pt(" ",e.label,"")}}const $ge=function(t,i,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},Kge=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},Gge={provide:un,useExisting:ft(()=>qge),multi:!0};let qge=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new ge;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()&&(this.checkboxIconTemplate=e.template)})}onClick(e){if(!this.disabled&&!this.readonly){let n;this.inputViewChild.nativeElement.focus(),this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(o=>!be.equals(o,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:be.contains(this.value,this.model)}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-checkbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Pge,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([Gge])],decls:7,vars:35,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"value","checked","disabled","readonly","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,zge,3,2,"ng-container",5),A()(),g(6,Uge,2,10,"label",6)),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(27,$ge,o.checked(),o.disabled,o.focused)),K("data-pc-name","checkbox")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("value",o.value)("checked",o.checked())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("name",o.name)("tabindex",o.tabindex)("required",o.required)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-checked",o.checked())("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(31,Kge,o.checked(),o.disabled,o.focused)),K("data-p-highlight",o.checked())("data-p-disabled",o.disabled)("data-p-focused",o.focused)("data-pc-section","input"),h(1),d("ngIf",o.checked()),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return t})(),Wge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,Qe]})}return t})();const Qge=["inputtext"],Zge=["container"];function Yge(t,i){1&t&&ze(0)}function Xge(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f().$implicit,n=f();K("data-pc-section","label"),h(1),dt(n.field?n.resolveFieldData(e,n.field):e)}}function Jge(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",15),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),A()}2&t&&(d("styleClass","p-chips-token-icon"),K("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function eme(t,i){}function tme(t,i){1&t&&g(0,eme,0,0,"ng-template")}function nme(t,i){if(1&t){const e=De();x(0,"span",16),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),g(1,tme,1,0,null,17),A()}if(2&t){const e=f(3);K("data-pc-section","removeTokenIcon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function ime(t,i){if(1&t&&(we(0),g(1,Jge,1,3,"TimesCircleIcon",13),g(2,nme,2,3,"span",14),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}const ome=function(t){return{"p-chips-token":!0,"p-focus":t}},sme=function(t){return{$implicit:t}};function rme(t,i){if(1&t){const e=De();x(0,"li",8,9),me("click",function(o){const r=G(e).$implicit;return q(f().onItemClick(o,r))}),g(2,Yge,1,0,"ng-container",10),g(3,Xge,2,2,"span",11),g(4,ime,3,2,"ng-container",7),A()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",He(12,ome,o.focusedIndex===n)),K("id",o.id+"_chips_item_"+n)("ariaLabel",e)("aria-selected",!0)("aria-setsize",o.value.length)("aria-pointset",n+1)("data-p-focused",o.focusedIndex===n)("data-pc-section","token"),h(2),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",He(14,sme,e)),h(1),d("ngIf",!o.itemTemplate),h(1),d("ngIf",!o.disabled)}}function ame(t,i){if(1&t){const e=De();x(0,"TimesIcon",15),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&d("styleClass","p-chips-clear-icon")}function lme(t,i){}function cme(t,i){1&t&&g(0,lme,0,0,"ng-template")}function ume(t,i){if(1&t){const e=De();x(0,"span",19),me("click",function(){return G(e),q(f(2).clear())}),g(1,cme,1,0,null,17),A()}if(2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function dme(t,i){if(1&t&&(x(0,"li"),g(1,ame,1,1,"TimesIcon",13),g(2,ume,2,1,"span",18),A()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const pme=function(t,i,e,n){return{"p-chips p-component p-input-wrapper":!0,"p-disabled":t,"p-focus":i,"p-inputwrapper-filled":e,"p-inputwrapper-focus":n}},hme=function(){return{"p-inputtext p-chips-multiple-container":!0}},fme=function(t){return{"p-chips-clearable":t}},gme={provide:un,useExisting:ft(()=>mme),multi:!0};let mme=(()=>{class t{document;el;cd;style;styleClass;disabled;field;placeholder;max;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;onAdd=new ge;onRemove=new ge;onFocus=new ge;onBlur=new ge;onChipClick=new ge;onClear=new ge;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=$t();focused;focusedIndex;filled;get focusedOptionId(){return null!==this.focusedIndex?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(e,n,o){this.document=e,this.el=n,this.cd=o}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template}}),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(e)}}onArrowLeftKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex=null===this.focusedIndex?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(e){null!==this.focusedIndex&&this.removeItem(e,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(e){this.disabled||(this.separator&&((e.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(o=>{this.addItem(e,o,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){this.filled=!(!this.value||0===this.value.length)||this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(e,n){this.onChipClick.emit({originalEvent:e,value:n})}writeValue(e){this.value=e,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}resolveFieldData(e,n){if(e&&n){if(-1==n.indexOf("."))return e[n];{let r=n.split("."),a=e;for(var o=0,s=r.length;or!=n),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:e,value:o}),this.updateFilledState(),this.updateMaxedOut()}addItem(e,n,o){this.value=this.value||[],n&&n.trim().length&&(this.allowDuplicate||-1===this.value.indexOf(n))&&!this.isMaxedOut&&(this.value=[...this.value,n],this.onModelChange(this.value),this.onAdd.emit({originalEvent:e,value:n})),this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",o&&e.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(e){const n=e.target.value;switch(e.code){case"Backspace":0===n.length&&this.value&&this.value.length>0&&this.removeItem(e,null!==this.focusedIndex?this.focusedIndex:this.value.length-1);break;case"Enter":n&&n.trim().length&&!this.isMaxedOut&&this.addItem(e,n,!0);break;case"ArrowLeft":0===n.length&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":e.stopPropagation();break;default:this.separator&&(this.separator===e.key||e.key.match(this.separator))&&this.addItem(e,n,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-chips"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(Qge,5),je(Zge,5)),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-chips-clearable",o.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[yt([gme])],decls:8,vars:31,consts:[[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"ngClass","click","focus","blur","keydown"],["container",""],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text",3,"disabled","ngStyle","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],["role","option",3,"ngClass","click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"ul",1,2),me("click",function(){return o.onWrapperClick()})("focus",function(){return o.onContainerFocus()})("blur",function(){return o.onContainerBlur()})("keydown",function(r){return o.onContainerKeyDown(r)}),g(3,rme,5,16,"li",3),x(4,"li",4)(5,"input",5,6),me("keydown",function(r){return o.onKeyDown(r)})("input",function(){return o.onInput()})("paste",function(r){return o.onPaste(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A()(),g(7,dme,3,2,"li",7),A()()),2&n&&(Ve(o.styleClass),d("ngClass",gr(23,pme,o.disabled,o.focused,o.value&&o.value.length||(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value)&&(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value.length),o.focused))("ngStyle",o.style),K("data-pc-name","chips")("data-pc-section","root"),h(1),d("ngClass",Jt(28,hme)),K("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),h(2),d("ngForOf",o.value),h(1),d("ngClass",He(29,fme,o.showClear&&!o.disabled)),K("data-pc-section","inputToken"),h(1),Ve(o.inputStyleClass),d("disabled",o.disabled||o.isMaxedOut)("ngStyle",o.inputStyle),K("id",o.inputId)("placeholder",o.value&&o.value.length?null:o.placeholder)("tabindex",o.tabindex),h(2),d("ngIf",null!=o.value&&o.filled&&!o.disabled&&o.showClear))},dependencies:function(){return[Ct,Jn,gt,on,Ht,ir,mn]},styles:["@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),_me=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Qe,ir,mn,Zs,Qe]})}return t})();Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}",en({transform:"none",opacity:1}))]),Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Jme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,dn,mn,yi,Mi,Qe]})}return t})();const e_e=["container"],t_e=["input"],n_e=["colorSelector"],i_e=["colorHandle"],o_e=["hue"],s_e=["hueHandle"],r_e=function(t){return{"p-disabled":t}};function a_e(t,i){if(1&t){const e=De();x(0,"input",4,5),me("click",function(){return G(e),q(f().onInputClick())})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("focus",function(){return G(e),q(f().onInputFocus())}),A()}if(2&t){const e=f();fo("background-color",e.inputBgColor),d("ngClass",He(7,r_e,e.disabled))("disabled",e.disabled),K("tabindex",e.tabindex)("id",e.inputId)("data-pc-section","input")}}const l_e=function(t,i){return{"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":t,"p-disabled":i}},c_e=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},u_e=function(t){return{value:"visible",params:t}};function d_e(t,i){if(1&t){const e=De();x(0,"div",6),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(1,"div",7)(2,"div",8,9),me("touchstart",function(o){return G(e),q(f().onColorDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())})("mousedown",function(o){return G(e),q(f().onColorMousedown(o))}),x(4,"div",10),le(5,"div",11,12),A()(),x(7,"div",13,14),me("mousedown",function(o){return G(e),q(f().onHueMousedown(o))})("touchstart",function(o){return G(e),q(f().onHueDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())}),le(9,"div",15,16),A()()()}if(2&t){const e=f();d("ngClass",mt(10,l_e,!e.inline,e.disabled))("@overlayAnimation",He(16,u_e,mt(13,c_e,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("data-pc-section","panel"),h(1),K("data-pc-section","content"),h(1),K("data-pc-section","selector"),h(2),K("data-pc-section","color"),h(1),K("data-pc-section","colorHandle"),h(2),K("data-pc-section","hue"),h(2),K("data-pc-section","hueHandle")}}const p_e=function(t,i){return{"p-colorpicker p-component":!0,"p-colorpicker-overlay":t,"p-colorpicker-dragging":i}},h_e={provide:un,useExisting:ft(()=>f_e),multi:!0};let f_e=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;style;styleClass;inline;format="hex";appendTo;disabled;tabindex;inputId;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onChange=new ge;onShow=new ge;onHide=new ge;containerViewChild;inputViewChild;value={h:0,s:100,b:100};inputBgColor;shown;overlayVisible;defaultColor="ff0000";onModelChange=()=>{};onModelTouched=()=>{};documentClickListener;documentResizeListener;documentMousemoveListener;documentMouseupListener;documentHueMoveListener;scrollHandler;selfClick;colorDragging;hueDragging;overlay;colorSelectorViewChild;colorHandleViewChild;hueViewChild;hueHandleViewChild;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueDragStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorDragStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,n){let o=n?n.pageY:e.pageY,s=this.hueViewChild?.nativeElement.getBoundingClientRect().top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,o-s)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onDrag(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,n){let o=n?n.pageX:e.pageX,s=n?n.pageY:e.pageY,r=this.colorSelectorViewChild?.nativeElement.getBoundingClientRect(),a=r.top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0),c=Math.floor(100*Math.max(0,Math.min(150,o-(r.left+this.document.body.scrollLeft)))/150),u=Math.floor(100*(150-Math.max(0,Math.min(150,s-a)))/150);this.value=this.validateHSB({h:this.value.h,s:c,b:u}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){const e={s:100,b:100};e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild?.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inline||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&Wn.clear(e.element),this.onHide.emit({})}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):j.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.overlay)}alignOverlay(){this.appendTo?j.absolutePosition(this.overlay,this.inputViewChild?.nativeElement):j.relativePosition(this.overlay,this.inputViewChild?.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.code){case"Space":this.togglePanel(),e.preventDefault();break;case"Escape":case"Tab":this.hide()}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){this.documentMousemoveListener||(this.documentMousemoveListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousemove",n=>{this.colorDragging&&this.pickColor(n),this.hueDragging&&this.pickHue(n)}))}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){this.documentMouseupListener||(this.documentMouseupListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}))}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var n=6-e.length;if(n>0){for(var o=[],s=0;s-1?e.substring(1):e,16);return{r:n>>16,g:(65280&n)>>8,b:255&n}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var n={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),s=Math.max(e.r,e.g,e.b),r=s-o;return n.b=s,n.s=0!=s?255*r/s:0,n.h=0!=n.s?e.r==s?(e.g-e.b)/r:e.g==s?2+(e.b-e.r)/r:4+(e.r-e.g)/r:-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n}HSBtoRGB(e){var n={r:0,g:0,b:0};let o=e.h,s=255*e.s/100,r=255*e.b/100;if(0==s)n={r,g:r,b:r};else{let a=r,l=(255-s)*r/255,c=o%60*(a-l)/60;360==o&&(o=0),o<60?(n.r=a,n.b=l,n.g=l+c):o<120?(n.g=a,n.b=l,n.r=a-c):o<180?(n.g=a,n.r=l,n.b=l+c):o<240?(n.b=a,n.r=l,n.g=a-c):o<300?(n.b=a,n.g=l,n.r=l+c):o<360?(n.r=a,n.g=l,n.b=a-c):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}RGBtoHEX(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var o in n)1==n[o].length&&(n[o]="0"+n[o]);return n.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-colorPicker"]],viewQuery:function(n,o){if(1&n&&(je(e_e,5),je(t_e,5),je(n_e,5),je(i_e,5),je(o_e,5),je(s_e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.colorSelector=s.first),Se(s=Ee())&&(o.colorHandle=s.first),Se(s=Ee())&&(o.hue=s.first),Se(s=Ee())&&(o.hueHandle=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",inline:"inline",format:"format",appendTo:"appendTo",disabled:"disabled",tabindex:"tabindex",inputId:"inputId",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[yt([h_e])],decls:4,vars:11,consts:[[3,"ngStyle","ngClass"],["container",""],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly",3,"ngClass","disabled","backgroundColor","click","keydown","focus",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview","p-inputtext",3,"ngClass","disabled","click","keydown","focus"],["input",""],[3,"ngClass","click"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],["colorSelector",""],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],["colorHandle",""],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],["hue",""],[1,"p-colorpicker-hue-handle"],["hueHandle",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,a_e,2,9,"input",2),g(3,d_e,11,18,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(8,p_e,!o.inline,o.colorDragging||o.hueDragging)),K("data-pc-name","colorpicker")("data-pc-section","root"),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{position:relative;width:193px;height:166px}.p-colorpicker-overlay-panel{position:absolute;top:0;left:0}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{width:150px;height:150px;top:8px;left:8px;position:absolute}.p-colorpicker-panel .p-colorpicker-color{width:150px;height:150px}.p-colorpicker-panel .p-colorpicker-color-handle{position:absolute;top:0;left:150px;border-radius:100%;width:10px;height:10px;border-width:1px;border-style:solid;margin:-5px 0 0 -5px;cursor:pointer;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue{width:17px;height:150px;top:8px;left:167px;position:absolute;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue-handle{position:absolute;top:150px;left:0;width:21px;margin-left:-2px;margin-top:-5px;height:10px;border-width:2px;border-style:solid;opacity:.85;cursor:pointer}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),g_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),m_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ThLargeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.90909 6.36364H4.45455C4.96087 6.36364 5.44645 6.1625 5.80448 5.80448C6.1625 5.44645 6.36364 4.96087 6.36364 4.45455V1.90909C6.36364 1.40277 6.1625 0.917184 5.80448 0.55916C5.44645 0.201136 4.96087 0 4.45455 0H1.90909C1.40277 0 0.917184 0.201136 0.55916 0.55916C0.201136 0.917184 0 1.40277 0 1.90909V4.45455C0 4.96087 0.201136 5.44645 0.55916 5.80448C0.917184 6.1625 1.40277 6.36364 1.90909 6.36364ZM1.46154 1.46154C1.58041 1.34268 1.741 1.27492 1.90909 1.27273H4.45455C4.62264 1.27492 4.78322 1.34268 4.90209 1.46154C5.02096 1.58041 5.08871 1.741 5.09091 1.90909V4.45455C5.08871 4.62264 5.02096 4.78322 4.90209 4.90209C4.78322 5.02096 4.62264 5.08871 4.45455 5.09091H1.90909C1.741 5.08871 1.58041 5.02096 1.46154 4.90209C1.34268 4.78322 1.27492 4.62264 1.27273 4.45455V1.90909C1.27492 1.741 1.34268 1.58041 1.46154 1.46154ZM1.90909 14H4.45455C4.96087 14 5.44645 13.7989 5.80448 13.4408C6.1625 13.0828 6.36364 12.5972 6.36364 12.0909V9.54544C6.36364 9.03912 6.1625 8.55354 5.80448 8.19551C5.44645 7.83749 4.96087 7.63635 4.45455 7.63635H1.90909C1.40277 7.63635 0.917184 7.83749 0.55916 8.19551C0.201136 8.55354 0 9.03912 0 9.54544V12.0909C0 12.5972 0.201136 13.0828 0.55916 13.4408C0.917184 13.7989 1.40277 14 1.90909 14ZM1.46154 9.0979C1.58041 8.97903 1.741 8.91128 1.90909 8.90908H4.45455C4.62264 8.91128 4.78322 8.97903 4.90209 9.0979C5.02096 9.21677 5.08871 9.37735 5.09091 9.54544V12.0909C5.08871 12.259 5.02096 12.4196 4.90209 12.5384C4.78322 12.6573 4.62264 12.7251 4.45455 12.7273H1.90909C1.741 12.7251 1.58041 12.6573 1.46154 12.5384C1.34268 12.4196 1.27492 12.259 1.27273 12.0909V9.54544C1.27492 9.37735 1.34268 9.21677 1.46154 9.0979ZM12.0909 6.36364H9.54544C9.03912 6.36364 8.55354 6.1625 8.19551 5.80448C7.83749 5.44645 7.63635 4.96087 7.63635 4.45455V1.90909C7.63635 1.40277 7.83749 0.917184 8.19551 0.55916C8.55354 0.201136 9.03912 0 9.54544 0H12.0909C12.5972 0 13.0828 0.201136 13.4408 0.55916C13.7989 0.917184 14 1.40277 14 1.90909V4.45455C14 4.96087 13.7989 5.44645 13.4408 5.80448C13.0828 6.1625 12.5972 6.36364 12.0909 6.36364ZM9.54544 1.27273C9.37735 1.27492 9.21677 1.34268 9.0979 1.46154C8.97903 1.58041 8.91128 1.741 8.90908 1.90909V4.45455C8.91128 4.62264 8.97903 4.78322 9.0979 4.90209C9.21677 5.02096 9.37735 5.08871 9.54544 5.09091H12.0909C12.259 5.08871 12.4196 5.02096 12.5384 4.90209C12.6573 4.78322 12.7251 4.62264 12.7273 4.45455V1.90909C12.7251 1.741 12.6573 1.58041 12.5384 1.46154C12.4196 1.34268 12.259 1.27492 12.0909 1.27273H9.54544ZM9.54544 14H12.0909C12.5972 14 13.0828 13.7989 13.4408 13.4408C13.7989 13.0828 14 12.5972 14 12.0909V9.54544C14 9.03912 13.7989 8.55354 13.4408 8.19551C13.0828 7.83749 12.5972 7.63635 12.0909 7.63635H9.54544C9.03912 7.63635 8.55354 7.83749 8.19551 8.19551C7.83749 8.55354 7.63635 9.03912 7.63635 9.54544V12.0909C7.63635 12.5972 7.83749 13.0828 8.19551 13.4408C8.55354 13.7989 9.03912 14 9.54544 14ZM9.0979 9.0979C9.21677 8.97903 9.37735 8.91128 9.54544 8.90908H12.0909C12.259 8.91128 12.4196 8.97903 12.5384 9.0979C12.6573 9.21677 12.7251 9.37735 12.7273 9.54544V12.0909C12.7251 12.259 12.6573 12.4196 12.5384 12.5384C12.4196 12.6573 12.259 12.7251 12.0909 12.7273H9.54544C9.37735 12.7251 9.21677 12.6573 9.0979 12.5384C8.97903 12.4196 8.91128 12.259 8.90908 12.0909V9.54544C8.91128 9.37735 8.97903 9.21677 9.0979 9.0979Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),lO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BarsIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),k_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,vf,_s,lO,m_e,Qe]})}return t})();var M_e=z(7536);function O_e(t,i){1&t&&ze(0)}function L_e(t,i){if(1&t&&(x(0,"div",3),Kn(1),g(2,O_e,1,0,"ng-container",4),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)}}function P_e(t,i){1&t&&(x(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),Le(4,"Heading"),A(),x(5,"option",8),Le(6,"Subheading"),A(),x(7,"option",9),Le(8,"Normal"),A()(),x(9,"select",10)(10,"option",9),Le(11,"Sans Serif"),A(),x(12,"option",11),Le(13,"Serif"),A(),x(14,"option",12),Le(15,"Monospace"),A()()(),x(16,"span",5),le(17,"button",13)(18,"button",14)(19,"button",15),A(),x(20,"span",5),le(21,"select",16)(22,"select",17),A(),x(23,"span",5),le(24,"button",18)(25,"button",19),x(26,"select",20),le(27,"option",9),x(28,"option",21),Le(29,"center"),A(),x(30,"option",22),Le(31,"right"),A(),x(32,"option",23),Le(33,"justify"),A()()(),x(34,"span",5),le(35,"button",24)(36,"button",25)(37,"button",26),A(),x(38,"span",5),le(39,"button",27),A()())}const F_e=[[["p-header"]]],R_e=["p-header"],N_e={provide:un,useExisting:ft(()=>V_e),multi:!0};let V_e=(()=>{class t{el;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new ge;onTextChange=new ge;onSelectionChange=new ge;templates;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;constructor(e){this.el=e}ngAfterViewInit(){this.initQuillElements(),this.isAttachedQuillEditorToDOM&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.isAttachedQuillEditorToDOM&&this.initQuillEditor(),this.delayedCommand&&this.isAttachedQuillEditorToDOM&&(this.delayedCommand(),this.delayedCommand=null)}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()&&(this.headerTemplate=e.template)})}writeValue(e){if(this.value=e,this.quill)if(e){const n=()=>{this.quill.setContents(this.quill.clipboard.convert(this.value))};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}else{const n=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}initQuillEditor(){this.initQuillElements();const{toolbarElement:e,editorElement:n}=this.quillElements;let o={toolbar:e},s=this.modules?{...o,...this.modules}:o;this.quill=new M_e(n,{modules:s,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(r,a,l)=>{if("user"===l){let c=j.findSingle(n,".ql-editor").innerHTML,u=this.quill.getText().trim();"


"===c&&(c=null),this.onTextChange.emit({htmlValue:c,textValue:u,delta:r,source:l}),this.onModelChange(c),this.onModelTouched()}}),this.quill.on("selection-change",(r,a,l)=>{this.onSelectionChange.emit({range:r,oldRange:a,source:l})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:j.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:j.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-editor"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.toolbar=r.first),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[yt([N_e])],ngContentSelectors:R_e,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(n,o){1&n&&(Ti(F_e),x(0,"div",0),g(1,L_e,3,1,"div",1),g(2,P_e,40,0,"div",1),le(3,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-editor-container"),h(1),d("ngIf",o.toolbar||o.headerTemplate),h(1),d("ngIf",!o.toolbar&&!o.headerTemplate),h(1),d("ngStyle",o.style))},dependencies:[Ct,gt,on,Ht],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0})}return t})(),B_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),ng=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Z_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,eg,ng,Qe]})}return t})(),Y_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["UploadIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[st,Et],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3),A(),x(5,"defs")(6,"clipPath",4),le(7,"rect",5),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(5),d("id",o.pathId))},encapsulation:2})}return t})(),bv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),yv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn]})}return t})(),xv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),hIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,eE,Qe,Mi,xv,yv,dn,ng,Y_e,mn,Qe,Mi,xv,yv]})}return t})(),xIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,mn,Mi,Qe]})}return t})();const AIe=["input"];function wIe(t,i){if(1&t){const e=De();x(0,"TimesIcon",5),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-inputmask-clear-icon"),K("data-pc-section","clearIcon"))}function TIe(t,i){}function SIe(t,i){1&t&&g(0,TIe,0,0,"ng-template")}function EIe(t,i){if(1&t){const e=De();x(0,"span",6),me("click",function(){return G(e),q(f(2).clear())}),g(1,SIe,1,0,null,7),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function DIe(t,i){if(1&t&&(we(0),g(1,wIe,1,2,"TimesIcon",3),g(2,EIe,2,2,"span",4),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const kIe={provide:un,useExisting:ft(()=>MIe),multi:!0};let MIe=(()=>{class t{document;platformId;el;cd;type="text";slotChar="_";autoClear=!0;showClear=!1;style;inputId;styleClass;placeholder;size;maxlength;tabindex;title;ariaLabel;ariaLabelledBy;ariaRequired;disabled;readonly;unmask;name;required;characterPattern="[A-Za-z]";autoFocus;autocomplete;keepBuffer=!1;get mask(){return this._mask}set mask(e){this._mask=e,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}onComplete=new ge;onFocus=new ge;onBlur=new ge;onInput=new ge;onKeydown=new ge;onClear=new ge;inputViewChild;templates;clearIconTemplate;value;_mask;onModelChange=()=>{};onModelTouched=()=>{};input;filled;defs;tests;partialPosition;firstNonMaskPos;lastRequiredNonMaskPos;len;oldVal;buffer;defaultBuffer;focusText;caretTimeoutId;androidChrome=!0;focused;constructor(e,n,o,s){this.document=e,this.platformId=n,this.el=o,this.cd=s}ngOnInit(){if(ei(this.platformId)){let e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e)}this.initMask()}ngAfterContentInit(){this.templates.forEach(e=>{"clearicon"===e.getType()&&(this.clearIconTemplate=e.template)})}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let e=this.mask.split("");for(let n=0;n=0&&!this.tests[e];);return e}shiftL(e,n){let o,s;if(!(e<0)){for(o=e,s=this.seekNext(n);on.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}else{for(this.checkVal(!0);o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}}onInputBlur(e){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(e),this.inputViewChild?.nativeElement.value!=this.focusText||this.inputViewChild?.nativeElement.value!=this.value){this.updateModel(e);let n=this.document.createEvent("HTMLEvents");n.initEvent("change",!0,!1),this.inputViewChild?.nativeElement.dispatchEvent(n)}}onInputKeydown(e){if(this.readonly)return;let o,s,r,a,n=e.which||e.keyCode;ei(this.platformId)&&(a=/iphone/i.test(j.getUserAgent())),this.oldVal=this.inputViewChild?.nativeElement.value,this.onKeydown.emit(e),8===n||46===n||a&&127===n?(o=this.caret(),s=o.begin,r=o.end,r-s==0&&(s=46!==n?this.seekPrev(s):r=this.seekNext(s-1),r=46===n?this.seekNext(r):r),this.clearBuffer(s,r),this.shiftL(s,this.keepBuffer?r-2:r-1),this.updateModel(e),this.onInput.emit(e),e.preventDefault()):13===n?(this.onInputBlur(e),this.updateModel(e)):27===n&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}onKeyPress(e){if(!this.readonly){var s,r,a,l,n=e.which||e.keyCode,o=this.caret();e.ctrlKey||e.altKey||e.metaKey||n<32||n>34&&n<41||(n&&13!==n&&(o.end-o.begin!=0&&(this.clearBuffer(o.begin,o.end),this.shiftL(o.begin,o.end-1)),(s=this.seekNext(o.begin-1)){this.caret(a)},0):this.caret(a),o.begin<=this.lastRequiredNonMaskPos&&(l=this.isCompleted()),this.onInput.emit(e))),e.preventDefault()),this.updateModel(e),this.updateFilledState(),l&&this.onComplete.emit())}}clearBuffer(e,n){if(!this.keepBuffer){let o;for(o=e;on.length){this.clearBuffer(s+1,this.len);break}}else this.buffer[s]===n.charAt(a)&&a++,s{this.inputViewChild?.nativeElement===this.inputViewChild?.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),n==this.mask?.replace("?","").length?this.caret(0,n):this.caret(n))},10),this.onFocus.emit(e)}onInputChange(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.onInput.emit(e)}handleInputChange(e){this.readonly||setTimeout(()=>{var n=this.checkVal(!0);this.caret(n),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}getUnmaskedValue(){let e=[];for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,gf,mn,Qe]})}return t})(),LIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const PIe=["headerchkbox"],FIe=["filter"],RIe=["lastHiddenFocusableElement"],NIe=["firstHiddenFocusableElement"],VIe=["scroller"],BIe=["list"];function HIe(t,i){1&t&&ze(0)}const ig=function(t,i){return{$implicit:t,options:i}};function zIe(t,i){if(1&t&&(x(0,"div",12),Kn(1),g(2,HIe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function jIe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function UIe(t,i){}function $Ie(t,i){1&t&&g(0,UIe,0,0,"ng-template")}function KIe(t,i){if(1&t&&(x(0,"span",25),g(1,$Ie,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function GIe(t,i){if(1&t&&(we(0),g(1,jIe,1,2,"CheckIcon",22),g(2,KIe,2,2,"span",23),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const cO=function(t){return{"p-checkbox-disabled":t}},qIe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function WIe(t,i){if(1&t){const e=De();x(0,"div",17),me("click",function(o){return G(e),q(f(2).onToggleAll(o))})("keydown",function(o){return G(e),q(f(2).onHeaderCheckboxKeyDown(o))}),x(1,"div",18)(2,"input",19,20),me("focus",function(o){return G(e),q(f(2).onHeaderCheckboxFocus(o))})("blur",function(o){return G(e),q(f(2).onHeaderCheckboxBlur(o))}),A()(),x(4,"div",21),g(5,GIe,3,2,"ng-container",6),A()()}if(2&t){const e=f(2);d("ngClass",He(8,cO,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(10,qIe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function QIe(t,i){1&t&&ze(0)}const uO=function(t){return{options:t}};function ZIe(t,i){if(1&t&&(we(0),g(1,QIe,1,0,"ng-container",13),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,uO,e.filterOptions))}}function YIe(t,i){1&t&&le(0,"SearchIcon",24),2&t&&(d("styleClass","p-listbox-filter-icon"),K("aria-hidden",!0))}function XIe(t,i){}function JIe(t,i){1&t&&g(0,XIe,0,0,"ng-template")}function eCe(t,i){if(1&t&&(x(0,"span",33),g(1,JIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function tCe(t,i){if(1&t){const e=De();x(0,"div",29)(1,"input",30,31),me("input",function(o){return G(e),q(f(3).onFilterChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,YIe,1,2,"SearchIcon",22),g(4,eCe,2,2,"span",32),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||"")("disabled",e.disabled)("tabindex",e.disabled||e.focused?-1:e.tabindex),K("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function nCe(t,i){if(1&t&&(g(0,tCe,5,9,"div",27),x(1,"span",28),Le(2),A()),2&t){const e=f(2);d("ngIf",e.filter),h(1),K("data-p-hidden-accessible",!0),h(1),Pt(" ",e.filterResultMessageText," ")}}function iCe(t,i){if(1&t&&(x(0,"div",12),g(1,WIe,6,14,"div",14),g(2,ZIe,2,4,"ng-container",15),g(3,nCe,3,3,"ng-template",null,16,In),A()),2&t){const e=Bt(4),n=f();h(1),d("ngIf",n.checkbox&&n.multiple&&n.showToggleAll),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function oCe(t,i){1&t&&ze(0)}function sCe(t,i){if(1&t&&g(0,oCe,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,ig,e,n))}}function rCe(t,i){1&t&&ze(0)}function aCe(t,i){if(1&t&&g(0,rCe,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,uO,e))}}function lCe(t,i){1&t&&(we(0),g(1,aCe,1,4,"ng-template",37),Te())}const Av=function(t){return{height:t}};function cCe(t,i){if(1&t){const e=De();x(0,"p-scroller",34,35),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,sCe,1,5,"ng-template",36),g(3,lCe,2,0,"ng-container",6),A()}if(2&t){const e=f();yn(He(9,Av,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function uCe(t,i){1&t&&ze(0)}const dCe=function(){return{}};function pCe(t,i){if(1&t&&(we(0),g(1,uCe,1,0,"ng-container",13),Te()),2&t){const e=f(),n=Bt(9);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,ig,e.visibleOptions(),Jt(2,dCe)))}}function hCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function fCe(t,i){1&t&&ze(0)}const gCe=function(t){return{$implicit:t}};function mCe(t,i){if(1&t&&(we(0),x(1,"li",42),g(2,hCe,2,1,"span",6),g(3,fCe,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,Av,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,gCe,o.optionGroup))}}function _Ce(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function ICe(t,i){}function CCe(t,i){1&t&&g(0,ICe,0,0,"ng-template")}function vCe(t,i){if(1&t&&(x(0,"span",25),g(1,CCe,1,0,null,26),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function bCe(t,i){if(1&t&&(we(0),g(1,_Ce,1,2,"CheckIcon",22),g(2,vCe,2,2,"span",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const yCe=function(t){return{"p-highlight":t}};function xCe(t,i){if(1&t&&(x(0,"div",45)(1,"div",46),g(2,bCe,3,2,"ng-container",6),A()()),2&t){const e=f(2).$implicit,n=f(2);d("ngClass",He(3,cO,n.disabled||n.isOptionDisabled(e))),h(1),d("ngClass",He(5,yCe,n.isSelected(e))),h(1),d("ngIf",n.isSelected(e))}}function ACe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function wCe(t,i){1&t&&ze(0)}const TCe=function(t,i,e){return{"p-listbox-item":!0,"p-highlight":t,"p-focus":i,"p-disabled":e}},SCe=function(t,i){return{$implicit:t,index:i}};function ECe(t,i){if(1&t){const e=De();we(0),x(1,"li",43),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index,l=f().options,c=f();return q(c.onOptionSelect(o,r,c.getOptionIndex(a,l)))})("dblclick",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionDoubleClick(o,s))})("mousedown",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseDown(o,a.getOptionIndex(s,r)))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))})("touchend",function(){return G(e),q(f(3).onOptionTouchEnd())}),g(2,xCe,3,7,"div",44),g(3,ACe,2,1,"span",6),g(4,wCe,1,0,"ng-container",13),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,Av,s.itemSize+"px"))("ngClass",Rn(14,TCe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n)))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(o,s))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("aria-setsize",r.ariaSetSize),h(1),d("ngIf",r.checkbox&&r.multiple),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,SCe,n,r.getOptionIndex(o,s)))}}function DCe(t,i){if(1&t&&(g(0,mCe,4,9,"ng-container",6),g(1,ECe,5,21,"ng-container",6)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function kCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyFilterMessageText," ")}}function MCe(t,i){1&t&&ze(0,null,48)}function OCe(t,i){if(1&t&&(x(0,"li",47),g(1,kCe,2,1,"ng-container",15),g(2,MCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),h(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function LCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyMessageText," ")}}function PCe(t,i){1&t&&ze(0,null,49)}function FCe(t,i){if(1&t&&(x(0,"li",47),g(1,LCe,2,1,"ng-container",15),g(2,PCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),h(1),d("ngTemplateOutlet",e.emptyTemplate)}}function RCe(t,i){if(1&t){const e=De();x(0,"ul",38,39),me("focus",function(o){return G(e),q(f().onListFocus(o))})("blur",function(o){return G(e),q(f().onListBlur(o))})("keydown",function(o){return G(e),q(f().onListKeyDown(o))}),g(2,DCe,2,2,"ng-template",40),g(3,OCe,3,3,"li",41),g(4,FCe,3,3,"li",41),A()}if(2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("tabindex",-1)("ngClass",n.contentStyleClass),K("aria-multiselectable",!0)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-label",o.ariaLabel)("aria-multiselectable",o.multiple)("aria-disabled",o.disabled),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function NCe(t,i){1&t&&ze(0)}function VCe(t,i){if(1&t&&(x(0,"div",50),Kn(1,1),g(2,NCe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function BCe(t,i){if(1&t&&(x(0,"span",10),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.emptyMessageText," ")}}const HCe=[[["p-header"]],[["p-footer"]]],zCe=["p-header","p-footer"],jCe={provide:un,useExisting:ft(()=>UCe),multi:!0};let UCe=(()=>{class t{el;cd;filterService;config;renderer;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;focusOnHover;filterMessage;filterFields;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;scrollHeight="200px";tabindex=0;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!1;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel="label";optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}onChange=new ge;onClick=new ge;onDblClick=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onSelectAllChange=new ge;headerCheckboxViewChild;filterViewChild;lastHiddenFocusableElement;firstHiddenFocusableElement;scroller;listViewChild;headerFacet;footerFacet;templates;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;_filterValue=bn(null);_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;focused;get containerClass(){return{"p-listbox p-component":!0,"p-focus":this.focused,"p-disabled":this.disabled}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get filterResultMessageText(){return be.isNotEmpty(this.visibleOptions())?this.filterMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptyFilterMessageText}get filterMessageText(){return this.filterMessage||this.config.translation.searchMessage||""}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptyFilterMessageText(){return this.emptyFilterMessage||this.config.translation.emptySearchMessage||this.config.translation.emptyFilterMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}get searchFields(){return this.filterFields||[this.optionLabel]}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}searchValue;searchTimeout;_selectAll=null;_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);modelValue=bn(null);visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this._options()):this._options()||[];return this._filterValue()?this.filterService.filter(e,this.searchFields,this._filterValue(),this.filterMatchMode,this.filterLocale):e});constructor(e,n,o,s,r){this.el=e,this.cd=n,this.filterService=o,this.config=s,this.renderer=r}ngOnInit(){this.id=this.id||$t(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template}})}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&!this.multiple){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()])}}updateModel(e,n){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.onChange.emit({originalEvent:n,value:this.value})}removeOption(e){return this.modelValue().filter(n=>!be.equals(n,this.getOptionValue(e),this.equalityKey()))}onOptionSelect(e,n,o=-1){this.disabled||this.isOptionDisabled(n)||(e&&this.onClick.emit({originalEvent:e,value:n}),this.multiple?this.onOptionSelectMultiple(e,n):this.onOptionSelectSingle(e,n),this.optionTouched=!1,-1!==o&&this.focusedOptionIndex.set(o))}onOptionSelectMultiple(e,n){let o=this.isSelected(n),s=null;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;o?s=a?this.removeOption(n):[this.getOptionValue(n)]:(s=a&&this.modelValue()||[],s=[...s,this.getOptionValue(n)])}else s=o?this.removeOption(n):[...this.modelValue()||[],this.getOptionValue(n)];this.updateModel(s,e)}onOptionSelectSingle(e,n){let o=this.isSelected(n),s=!1,r=null;!this.optionTouched&&this.metaKeySelection?o?(e.metaKey||e.ctrlKey)&&(r=null,s=!0):(r=this.getOptionValue(n),s=!0):(r=o?null:this.getOptionValue(n),s=!0),s&&this.updateModel(r,e)}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}onToggleAll(e){if(!this.disabled&&!this.readonly){if(j.focus(this.headerCheckboxViewChild.nativeElement),null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:this.value})}e.preventDefault()}}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}onOptionTouchEnd(){this.disabled||(this.optionTouched=!0)}onOptionMouseDown(e,n){this.changeFocusedOptionIndex(e,n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onOptionDoubleClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onFirstHiddenFocus(e){j.focus(this.listViewChild.nativeElement);const n=j.getFirstFocusableElement(this.el.nativeElement,':not([data-p-hidden-focusable="true"])');this.lastHiddenFocusableElement.nativeElement.tabIndex=be.isEmpty(n)?"-1":void 0,this.firstHiddenFocusableElement.nativeElement.tabIndex=-1}onLastHiddenFocus(e){if(e.relatedTarget===this.listViewChild.nativeElement){const o=j.getFirstFocusableElement(this.el.nativeElement,":not(.p-hidden-focusable)");j.focus(o),this.firstHiddenFocusableElement.nativeElement.tabIndex=void 0}else j.focus(this.firstHiddenFocusableElement.nativeElement);this.lastHiddenFocusableElement.nativeElement.tabIndex=-1}onFocusout(e){!this.el.nativeElement.contains(e.relatedTarget)&&this.lastHiddenFocusableElement&&this.firstHiddenFocusableElement&&(this.firstHiddenFocusableElement.nativeElement.tabIndex=this.lastHiddenFocusableElement.nativeElement.tabIndex=void 0)}onListFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.onFocus.emit(e)}onListBlur(e){this.focused=!1,this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.searchValue=""}onHeaderCheckboxFocus(e){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e);break;case"Tab":this.onHeaderCheckboxTabKeyDown(e)}}onHeaderCheckboxTabKeyDown(e){j.focus(this.listViewChild.nativeElement),e.preventDefault()}onFilterChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onFilterBlur(e){this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1)}onListKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onSpaceKey(e);break;case"Tab":break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(this.multiple&&"KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey()}}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowUpKey(e){const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onHomeKey(e,n=!1){if(n)e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1);else{let o=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findLastOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onPageDownKey(e){this.scrollInView(0),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onEnterKey(e){-1!==this.focusedOptionIndex()&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()])),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onShiftKey(){const e=this.focusedOptionIndex();this.startRangeIndex.set(e)}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions()[n]))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}scrollInView(e=-1){const o=j.findSingle(this.listViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroll&&this.scroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex())}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}equalityKey(){return this.optionValue?null:this.dataKey}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){const n=this.getOptionValue(e);return this.multiple?(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey())):be.equals(this.modelValue(),n,this.equalityKey())}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue.set(null)}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft),V(df),V(ki),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-listbox"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(PIe,5),je(FIe,5),je(RIe,5),je(NIe,5),je(VIe,5),je(BIe,5)),2&n){let s;Se(s=Ee())&&(o.headerCheckboxViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElement=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElement=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",focusOnHover:"focusOnHover",filterMessage:"filterMessage",filterFields:"filterFields",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",scrollHeight:"scrollHeight",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue",selectAll:"selectAll"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onSelectAllChange:"onSelectAllChange"},features:[yt([jCe])],ngContentSelectors:zCe,decls:16,vars:24,consts:[[3,"ngClass","ngStyle","focusout"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"tabindex","focus"],["firstHiddenFocusableElement",""],["class","p-listbox-header",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInItems",""],["class","p-listbox-footer",4,"ngIf"],["role","status","aria-live","polite","class","p-hidden-accessible",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["lastHiddenFocusableElement",""],[1,"p-listbox-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"disabled","focus","blur"],["headerchkbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],["class","p-listbox-filter-container",4,"ngIf"],["role","status","attr.aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-filter-container"],["type","text","role","searchbox",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","tabindex","input","keydown","blur"],["filterInput",""],["class","p-listbox-filter-icon",4,"ngIf"],[1,"p-listbox-filter-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-listbox-list",3,"tabindex","ngClass","focus","blur","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-listbox-empty-message","role","option",4,"ngIf"],["role","option",1,"p-listbox-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-listbox-item",3,"ngStyle","ngClass","ariaPosInset","click","dblclick","mousedown","mouseenter","touchend"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-checkbox-box",3,"ngClass"],["role","option",1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(n,o){1&n&&(Ti(HCe),x(0,"div",0),me("focusout",function(r){return o.onFocusout(r)}),x(1,"span",1,2),me("focus",function(r){return o.onFirstHiddenFocus(r)}),A(),g(3,zIe,3,5,"div",3),g(4,iCe,5,3,"div",3),x(5,"div",4),g(6,cCe,4,11,"p-scroller",5),g(7,pCe,2,6,"ng-container",6),g(8,RCe,5,12,"ng-template",null,7,In),A(),g(10,VCe,3,5,"div",8),g(11,BCe,2,1,"span",9),x(12,"span",10),Le(13),A(),x(14,"span",1,11),me("focus",function(r){return o.onLastHiddenFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",o.headerFacet||o.headerTemplate),h(1),d("ngIf",o.checkbox&&o.multiple&&o.showToggleAll||o.filter),h(1),Ve(o.listStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight||"auto"),d("ngClass","p-listbox-list-wrapper")("ngStyle",o.listStyle),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.footerFacet||o.footerTemplate),h(1),d("ngIf",o.isEmpty()),h(2),Pt(" ",o.selectedMessageText," "),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0))},dependencies:function(){return[Ct,Jn,gt,on,Ht,sn,oo,Bu,Qs,yi]},styles:["@layer primeng{.p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),$Ce=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,Qs,yi,Qe,Oi]})}return t})(),Tve=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,Or,Zo,qn,Nn,Qe]})}return t})(),s1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,qn,Nn]})}return t})(),j1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,lO,Or,Zo,qn,Nn,Qe]})}return t})(),K1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,bv,ir,vv]})}return t})();function G1e(t,i){1&t&&le(0,"CheckIcon",7),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function q1e(t,i){}function W1e(t,i){1&t&&g(0,q1e,0,0,"ng-template")}function Q1e(t,i){if(1&t&&(x(0,"span",8),g(1,W1e,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function Z1e(t,i){if(1&t&&(we(0),g(1,G1e,1,2,"CheckIcon",5),g(2,Q1e,2,2,"span",6),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function Y1e(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function X1e(t,i){1&t&&ze(0)}const ud=function(t){return{height:t}},J1e=function(t,i,e){return{"p-multiselect-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},ebe=function(t){return{"p-highlight":t}},Sv=function(t){return{$implicit:t}},tbe=["container"],nbe=["overlay"],ibe=["filterInput"],obe=["focusInput"],sbe=["items"],rbe=["scroller"],abe=["lastHiddenFocusableEl"],lbe=["firstHiddenFocusableEl"],cbe=["headerCheckbox"];function ube(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt(e.label()||"empty")}}function dbe(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",20),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),A()}2&t&&(d("styleClass","p-multiselect-token-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function pbe(t,i){1&t&&ze(0)}function hbe(t,i){if(1&t){const e=De();x(0,"span",21),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),g(1,pbe,1,0,"ng-container",22),A()}if(2&t){const e=f(5);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function fbe(t,i){if(1&t&&(we(0),g(1,dbe,1,3,"TimesCircleIcon",18),g(2,hbe,2,3,"span",19),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}function gbe(t,i){if(1&t&&(x(0,"div",15,16)(2,"span",17),Le(3),A(),g(4,fbe,3,2,"ng-container",7),A()),2&t){const e=i.$implicit,n=f(3);h(3),dt(n.getLabelByValue(e)),h(1),d("ngIf",!n.disabled)}}function mbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),dt(e.placeholder||e.defaultLabel||"empty")}}function _be(t,i){if(1&t&&(we(0),g(1,gbe,5,2,"div",14),g(2,mbe,2,1,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngForOf",e.chipSelectedItems()),h(1),d("ngIf",!e.modelValue()||0===e.modelValue().length)}}function Ibe(t,i){if(1&t&&(we(0),g(1,ube,2,1,"ng-container",7),g(2,_be,3,2,"ng-container",7),Te()),2&t){const e=f();h(1),d("ngIf","comma"===e.display),h(1),d("ngIf","chip"===e.display)}}function Cbe(t,i){1&t&&ze(0)}function vbe(t,i){if(1&t){const e=De();x(0,"TimesIcon",20),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-multiselect-clear-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function bbe(t,i){}function ybe(t,i){1&t&&g(0,bbe,0,0,"ng-template")}function xbe(t,i){if(1&t){const e=De();x(0,"span",24),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,ybe,1,0,null,22),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function Abe(t,i){if(1&t&&(we(0),g(1,vbe,1,3,"TimesIcon",18),g(2,xbe,2,3,"span",23),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function wbe(t,i){1&t&&le(0,"span",27),2&t&&(d("ngClass",f(2).dropdownIcon),K("data-pc-section","triggericon")("aria-hidden",!0))}function Tbe(t,i){1&t&&le(0,"ChevronDownIcon",28),2&t&&(d("styleClass","p-multiselect-trigger-icon"),K("data-pc-section","triggericon")("aria-hidden",!0))}function Sbe(t,i){if(1&t&&(we(0),g(1,wbe,1,3,"span",25),g(2,Tbe,1,3,"ChevronDownIcon",26),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Ebe(t,i){}function Dbe(t,i){1&t&&g(0,Ebe,0,0,"ng-template")}function kbe(t,i){if(1&t&&(x(0,"span",29),g(1,Dbe,1,0,null,22),A()),2&t){const e=f();K("data-pc-section","triggericon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function Mbe(t,i){1&t&&ze(0)}function Obe(t,i){1&t&&ze(0)}const gO=function(t){return{options:t}};function Lbe(t,i){if(1&t&&(we(0),g(1,Obe,1,0,"ng-container",8),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,gO,e.filterOptions))}}function Pbe(t,i){1&t&&le(0,"CheckIcon",28),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function Fbe(t,i){}function Rbe(t,i){1&t&&g(0,Fbe,0,0,"ng-template")}function Nbe(t,i){if(1&t&&(x(0,"span",51),g(1,Rbe,1,0,null,8),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)("ngTemplateOutletContext",He(3,Sv,e.allSelected()))}}function Vbe(t,i){if(1&t&&(we(0),g(1,Pbe,1,2,"CheckIcon",26),g(2,Nbe,2,5,"span",50),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const Bbe=function(t){return{"p-checkbox-disabled":t}},Hbe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function zbe(t,i){if(1&t){const e=De();x(0,"div",46),me("click",function(o){return G(e),q(f(4).onToggleAll(o))})("keydown",function(o){return G(e),q(f(4).onHeaderCheckboxKeyDown(o))}),x(1,"div",2)(2,"input",47,48),me("focus",function(){return G(e),q(f(4).onHeaderCheckboxFocus())})("blur",function(){return G(e),q(f(4).onHeaderCheckboxBlur())}),A()(),x(4,"div",49),g(5,Vbe,3,2,"ng-container",7),A()()}if(2&t){const e=f(4);d("ngClass",He(9,Bbe,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("readonly",e.readonly)("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(11,Hbe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function jbe(t,i){1&t&&le(0,"SearchIcon",28),2&t&&d("styleClass","p-multiselect-filter-icon")}function Ube(t,i){}function $be(t,i){1&t&&g(0,Ube,0,0,"ng-template")}function Kbe(t,i){if(1&t&&(x(0,"span",56),g(1,$be,1,0,null,22),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function Gbe(t,i){if(1&t){const e=De();x(0,"div",52)(1,"input",53,54),me("input",function(o){return G(e),q(f(4).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(4).onFilterKeyDown(o))})("click",function(o){return G(e),q(f(4).onInputClick(o))})("blur",function(o){return G(e),q(f(4).onFilterBlur(o))}),A(),g(3,jbe,1,1,"SearchIcon",26),g(4,Kbe,2,1,"span",55),A()}if(2&t){const e=f(4);h(1),d("value",e._filterValue()||"")("disabled",e.disabled),K("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function qbe(t,i){1&t&&le(0,"TimesIcon",28),2&t&&d("styleClass","p-multiselect-close-icon")}function Wbe(t,i){}function Qbe(t,i){1&t&&g(0,Wbe,0,0,"ng-template")}function Zbe(t,i){if(1&t&&(x(0,"span",57),g(1,Qbe,1,0,null,22),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}function Ybe(t,i){if(1&t){const e=De();g(0,zbe,6,15,"div",42),g(1,Gbe,5,10,"div",43),x(2,"button",44),me("click",function(o){return G(e),q(f(3).close(o))}),g(3,qbe,1,1,"TimesIcon",26),g(4,Zbe,2,1,"span",45),A()}if(2&t){const e=f(3);d("ngIf",e.showToggleAll&&!e.selectionLimit),h(1),d("ngIf",e.filter),h(2),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Xbe(t,i){if(1&t&&(x(0,"div",39),Kn(1),g(2,Mbe,1,0,"ng-container",22),g(3,Lbe,2,4,"ng-container",40),g(4,Ybe,5,4,"ng-template",null,41,In),A()),2&t){const e=Bt(5),n=f(2);h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function Jbe(t,i){1&t&&ze(0)}const mO=function(t,i){return{$implicit:t,options:i}};function eye(t,i){if(1&t&&g(0,Jbe,1,0,"ng-container",8),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(8))("ngTemplateOutletContext",mt(2,mO,e,n))}}function tye(t,i){1&t&&ze(0)}function nye(t,i){if(1&t&&g(0,tye,1,0,"ng-container",8),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,gO,e))}}function iye(t,i){1&t&&(we(0),g(1,nye,1,4,"ng-template",60),Te())}function oye(t,i){if(1&t){const e=De();x(0,"p-scroller",58,59),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,eye,1,5,"ng-template",13),g(3,iye,2,0,"ng-container",7),A()}if(2&t){const e=f(2);yn(He(9,ud,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function sye(t,i){1&t&&ze(0)}const rye=function(){return{}};function aye(t,i){if(1&t&&(we(0),g(1,sye,1,0,"ng-container",8),Te()),2&t){f();const e=Bt(8),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,mO,n.visibleOptions(),Jt(2,rye)))}}function lye(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function cye(t,i){1&t&&ze(0)}function uye(t,i){if(1&t&&(we(0),x(1,"li",65),g(2,lye,2,1,"span",7),g(3,cye,1,0,"ng-container",8),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,ud,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Sv,o.optionGroup))}}function dye(t,i){if(1&t){const e=De();we(0),x(1,"p-multiSelectItem",66),me("onClick",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionSelect(o,!1,a.getOptionIndex(s,r)))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("checkIconTemplate",r.checkIconTemplate)("itemSize",s.itemSize)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function pye(t,i){if(1&t&&(g(0,uye,4,9,"ng-container",7),g(1,dye,2,11,"ng-container",7)),2&t){const e=i.$implicit,n=f(3);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function hye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function fye(t,i){1&t&&ze(0,null,68)}function gye(t,i){if(1&t&&(x(0,"li",67),g(1,hye,2,1,"ng-container",40),g(2,fye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function mye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function _ye(t,i){1&t&&ze(0,null,69)}function Iye(t,i){if(1&t&&(x(0,"li",67),g(1,mye,2,1,"ng-container",40),g(2,_ye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function Cye(t,i){if(1&t&&(x(0,"ul",61,62),g(2,pye,2,2,"ng-template",63),g(3,gye,3,6,"li",64),g(4,Iye,3,6,"li",64),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function vye(t,i){1&t&&ze(0)}function bye(t,i){if(1&t&&(x(0,"div",70),Kn(1,1),g(2,vye,1,0,"ng-container",22),A()),2&t){const e=f(2);h(2),d("ngTemplateOutlet",e.footerTemplate)}}function yye(t,i){if(1&t){const e=De();x(0,"div",30)(1,"span",31,32),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,Xbe,6,3,"div",33),x(4,"div",34),g(5,oye,4,11,"p-scroller",35),g(6,aye,2,6,"ng-container",7),g(7,Cye,5,6,"ng-template",null,36,In),A(),g(9,bye,3,1,"div",37),x(10,"span",31,38),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-multiselect-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden","true")("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",e.showHeader),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngIf",e.footerFacet||e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const xye=[[["p-header"]],[["p-footer"]]],Aye=function(t,i){return{$implicit:t,removeChip:i}},wye=["p-header","p-footer"],Tye={provide:un,useExisting:ft(()=>Eye),multi:!0};let Sye=(()=>{class t{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;template;checkIconTemplate;onClick=new ge;onMouseEnter=new ge;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected})}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",focused:"focused",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkIconTemplate:"checkIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:6,vars:26,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","id","click","mouseenter"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),x(1,"div",1)(2,"div",2),g(3,Z1e,3,2,"ng-container",3),A()(),g(4,Y1e,2,1,"span",3),g(5,X1e,1,0,"ng-container",4),A()),2&n&&(d("ngStyle",He(16,ud,o.itemSize+"px"))("ngClass",Rn(18,J1e,o.selected,o.disabled,o.focused))("id",o.id),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(2),d("ngClass",He(22,ebe,o.selected)),K("aria-checked",o.selected),h(1),d("ngIf",o.selected),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(24,Sv,o.option)))},dependencies:function(){return[Ct,gt,on,Ht,oo,yi]},encapsulation:2})}return t})(),Eye=(()=>{class t{el;renderer;cd;zone;filterService;config;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel="{0} items selected";showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="off";showClear=!1;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.warn("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder=e}get placeholder(){return this._placeholder}get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!1;filterFields;selectOnFocus=!1;autoOptionFocus=!0;onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onClear=new ge;onPanelShow=new ge;onPanelHide=new ge;onLazyLoad=new ge;onRemove=new ge;onSelectAllChange=new ge;containerViewChild;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;templates;searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder;_itemSize;_selectionLimit;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;headerCheckboxFocus;filterOptions;maxSelectionLimitReached;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=bn(null);_filterValue=bn(null);_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);get containerClass(){return{"p-multiselect p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-multiselect-clearable":this.showClear&&!this.disabled,"p-multiselect-chip":"chip"===this.display,"p-focus":this.focused,"p-inputwrapper-filled":be.isNotEmpty(this.modelValue()),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){return{"p-multiselect-label p-inputtext":!0,"p-placeholder":(this.placeholder||this.defaultLabel)&&(this.label()===this.placeholder||this.label()===this.defaultLabel),"p-multiselect-label-empty":!this.selectedItemsTemplate&&("p-emptylabel"===this.label()||0===this.label().length)}}get panelClass(){return{"p-multiselect-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get labelClass(){return{"p-multiselect-label":!0,"p-placeholder":this.label()===this.placeholder||this.label()===this.defaultLabel,"p-multiselect-label-empty":!(this.placeholder||this.defaultLabel||this.modelValue()&&0!==this.modelValue().length)}}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&""!==this.modelValue()&&be.isNotEmpty(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale);if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{let e;const n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(be.isNotEmpty(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let o=0;obe.isNotEmpty(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,o,s,r,a,l){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,this.overlayService=l}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());const e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,o=-1){const{originalEvent:s,option:r}=e;if(this.disabled||this.isOptionDisabled(r))return;let l=null;l=this.isSelected(r)?this.modelValue().filter(c=>!be.equals(c,this.getOptionValue(r),this.equalityKey())):[...this.modelValue()||[],this.getOptionValue(r)],this.updateModel(l,s),-1!==o&&this.focusedOptionIndex.set(o),n&&j.focus(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:l,itemValue:r})}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}searchFields(){return this.filterFields||[this.optionLabel]}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return(this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}isSelected(e){const n=this.getOptionValue(e);return(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){const o=(this.group?this.flatOptions(this._options()):this._options()||[]).find(s=>!this.isOptionGroup(s)&&be.equals(this.getOptionValue(s),e,this.equalityKey()));return o?this.getOptionLabel(o):null}getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue().length+""):this.selectedItemsLabel}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled)return void e.preventDefault();const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if("KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){const{currentTarget:o}=e;if(n)o.setSelectionRange(0,e.shiftKey?o.value.length:0),this.focusedOptionIndex.set(-1);else{let s=e.metaKey||e.ctrlKey,r=this.findFirstOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,r,this.startRangeIndex()),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){const{currentTarget:o}=e;if(n){const s=o.value.length;o.setSelectionRange(e.shiftKey?0:s,s),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,r=this.findLastFocusedOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,this.startRangeIndex(),r),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?-1!==this.focusedOptionIndex()&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(-1!==this.focusedOptionIndex()&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if("INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]'))return void e.preventDefault();(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onInputFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!this.disabled&&!this.readonly){if(null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e)}j.focus(this.headerCheckboxViewChild.nativeElement),this.headerCheckboxFocus=!0,e.preventDefault(),e.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}writeValue(e){this.value=e,this.modelValue.set(this.value),this.checkSelectionLimit(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){const n=be.isNotEmpty(this.modelValue())?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-multiselect-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched()}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.checkSelectionLimit(),this.updateModel(null,e),this.onClear.emit(),e.stopPropagation()}removeOption(e,n){let o=this.modelValue().filter(s=>!be.equals(s,e,this.equalityKey()));this.updateModel(o,n),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}activateFilter(){if(this.hasFilter()&&this._options){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let n=[];for(let o of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(o),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&n.push({...o,[this.optionGroupChildren]:s})}this._filteredOptions=n}else this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelect"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,rC,5),Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(tbe,5),je(nbe,5),je(ibe,5),je(obe,5),je(sbe,5),je(rbe,5),je(abe,5),je(lbe,5),je(cbe,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.filterInputChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.headerCheckboxViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:"focusOnHover",filterFields:"filterFields",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[yt([Tye])],ngContentSelectors:wye,decls:16,vars:41,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["role","combobox",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","focus","blur","keydown"],["focusInput",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-multiselect-trigger"],["class","p-multiselect-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],["lastHiddenFocusableEl",""],[1,"p-multiselect-header"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],["type","checkbox",3,"readonly","disabled","focus","blur"],["headerCheckbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","searchbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input","keydown","click","blur"],["filterInput",""],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","checkIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function(n,o){1&n&&(Ti(xye),x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),x(2,"div",2)(3,"input",3,4),me("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keydown",function(r){return o.onKeyDown(r)}),A()(),x(5,"div",5)(6,"div",6),g(7,Ibe,3,2,"ng-container",7),g(8,Cbe,1,0,"ng-container",8),A(),g(9,Abe,3,2,"ng-container",7),A(),x(10,"div",9),g(11,Sbe,3,2,"ng-container",7),g(12,kbe,2,3,"span",10),A(),x(13,"p-overlay",11,12),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(15,yye,12,18,"ng-template",13),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),K("data-p-hidden-accessible",!0),h(1),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),K("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",o.overlayVisible)("aria-controls",o.id+"_list")("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0),h(2),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),h(1),d("ngClass",o.labelClass),h(1),d("ngIf",!o.selectedItemsTemplate),h(1),d("ngTemplateOutlet",o.selectedItemsTemplate)("ngTemplateOutletContext",mt(38,Aye,o.modelValue(),o.removeOption.bind(o))),h(1),d("ngIf",o.isVisibleClearIcon),h(2),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,oo,Bu,yi,Qs,ir,mn,bi,Sye]},styles:["@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Dye=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,yi,Qs,ir,mn,bi,yi,$l,Qe,Oi]})}return t})();const kye=typeof Intl<"u"&&Intl.v8BreakIterator;class Ev{constructor(i){this._platformId=i,this.isBrowser=this._platformId?ei(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!kye)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}let dd;function Dv(t){return function Mye(){if(null==dd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dd=!0}))}finally{dd=dd||!1}return dd}()?t:!!t.capture}Ev.ngInjectableDef=o1({factory:function(){return new Ev(et($n,8))},token:Ev,providedIn:"root"});const xs={NORMAL:0,NEGATED:1,INVERTED:2};xs[xs.NORMAL]="NORMAL",xs[xs.NEGATED]="NEGATED",xs[xs.INVERTED]="INVERTED";const sg=Dv({passive:!1,capture:!0});class kv{constructor(i,e){this._ngZone=i,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new re,this.pointerUp=new re,this._preventScrollListener=n=>{this._activeDragInstances.size&&n.preventDefault()},this._document=e}registerDropContainer(i){if(!this._dropInstances.has(i)){if(this.getDropContainer(i.id))throw Error(`Drop instance with id "${i.id}" has already been registered.`);this._dropInstances.add(i)}}registerDragItem(i){this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventScrollListener,sg)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventScrollListener,sg)}startDragging(i,e){if(this._activeDragInstances.add(i),1===this._activeDragInstances.size){const n=e.type.startsWith("touch"),s=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:r=>this.pointerMove.next(r),options:sg}).set(s,{handler:r=>this.pointerUp.next(r),options:!0}),n||this._globalListeners.set("wheel",{handler:this._preventScrollListener,options:sg}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(i){this._activeDragInstances.delete(i),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances.has(i)}getDropContainer(i){return Array.from(this._dropInstances).find(e=>e.id===i)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,e)=>{this._document.removeEventListener(e,i.handler,i.options)}),this._globalListeners.clear()}}kv.ngInjectableDef=o1({factory:function(){return new kv(et(Tt),et(Wt))},token:kv,providedIn:"root"});const Lye=new Ye("CDK_DRAG_CONFIG",{providedIn:"root",factory:function Pye(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}});class rg{}let TO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.70786 6.59831C6.80043 6.63674 6.89974 6.65629 6.99997 6.65581C7.19621 6.64081 7.37877 6.54953 7.50853 6.40153L11.0685 2.8416C11.1364 2.69925 11.1586 2.53932 11.132 2.38384C11.1053 2.22837 11.0311 2.08498 10.9195 1.97343C10.808 1.86188 10.6646 1.78766 10.5091 1.76099C10.3536 1.73431 10.1937 1.75649 10.0513 1.82448L6.99997 4.87585L3.9486 1.82448C3.80625 1.75649 3.64632 1.73431 3.49084 1.76099C3.33536 1.78766 3.19197 1.86188 3.08043 1.97343C2.96888 2.08498 2.89466 2.22837 2.86798 2.38384C2.84131 2.53932 2.86349 2.69925 2.93147 2.8416L6.46089 6.43205C6.53132 6.50336 6.61528 6.55989 6.70786 6.59831ZM6.70786 12.1925C6.80043 12.2309 6.89974 12.2505 6.99997 12.25C7.10241 12.2465 7.20306 12.2222 7.29575 12.1785C7.38845 12.1348 7.47124 12.0726 7.53905 11.9957L11.0685 8.46629C11.1614 8.32292 11.2036 8.15249 11.1881 7.98233C11.1727 7.81216 11.1005 7.6521 10.9833 7.52781C10.866 7.40353 10.7104 7.3222 10.5415 7.29688C10.3725 7.27155 10.1999 7.30369 10.0513 7.38814L6.99997 10.4395L3.9486 7.38814C3.80006 7.30369 3.62747 7.27155 3.45849 7.29688C3.28951 7.3222 3.13393 7.40353 3.01667 7.52781C2.89942 7.6521 2.82729 7.81216 2.81184 7.98233C2.79639 8.15249 2.83852 8.32292 2.93148 8.46629L6.4609 12.0262C6.53133 12.0975 6.61529 12.1541 6.70786 12.1925Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),SO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.1504 6.67719C10.2417 6.71508 10.3396 6.73436 10.4385 6.73389C10.6338 6.74289 10.8249 6.67441 10.97 6.54334C11.1109 6.4023 11.19 6.21112 11.19 6.01178C11.19 5.81245 11.1109 5.62127 10.97 5.48023L7.45977 1.96998C7.31873 1.82912 7.12755 1.75 6.92821 1.75C6.72888 1.75 6.5377 1.82912 6.39666 1.96998L2.9165 5.45014C2.83353 5.58905 2.79755 5.751 2.81392 5.91196C2.83028 6.07293 2.89811 6.22433 3.00734 6.34369C3.11656 6.46306 3.26137 6.54402 3.42025 6.57456C3.57914 6.60511 3.74364 6.5836 3.88934 6.51325L6.89813 3.50446L9.90691 6.51325C9.97636 6.58357 10.0592 6.6393 10.1504 6.67719ZM9.93702 11.9993C10.065 12.1452 10.245 12.2352 10.4385 12.25C10.632 12.2352 10.812 12.1452 10.9399 11.9993C11.0633 11.8614 11.1315 11.6828 11.1315 11.4978C11.1315 11.3128 11.0633 11.1342 10.9399 10.9963L7.48987 7.48609C7.34883 7.34523 7.15765 7.26611 6.95832 7.26611C6.75899 7.26611 6.5678 7.34523 6.42677 7.48609L2.91652 10.9963C2.84948 11.1367 2.82761 11.2944 2.85391 11.4477C2.88022 11.601 2.9534 11.7424 3.06339 11.8524C3.17338 11.9624 3.31477 12.0356 3.46808 12.0619C3.62139 12.0882 3.77908 12.0663 3.91945 11.9993L6.92823 8.99048L9.93702 11.9993Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),rxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,rg,TO,SO,If,Or,Qs,Qe,rg]})}return t})(),yxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,bi,ff,Qe,Qe]})}return t})(),Mxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,mn,Qe]})}return t})(),Qxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,ng,eg,Qe]})}return t})(),kO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),MO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const Zxe=["input"];function Yxe(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-password-clear-icon"),K("data-pc-section","clearIcon"))}function Xxe(t,i){}function Jxe(t,i){1&t&&g(0,Xxe,0,0,"ng-template")}function eAe(t,i){if(1&t){const e=De();we(0),g(1,Yxe,1,2,"TimesIcon",5),x(2,"span",6),me("click",function(){return G(e),q(f().clear())}),g(3,Jxe,1,0,null,7),A(),Te()}if(2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function tAe(t,i){if(1&t){const e=De();x(0,"EyeSlashIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","hideIcon")}function nAe(t,i){}function iAe(t,i){1&t&&g(0,nAe,0,0,"ng-template")}function oAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,iAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.hideIconTemplate)}}function sAe(t,i){if(1&t&&(we(0),g(1,tAe,1,1,"EyeSlashIcon",9),g(2,oAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.hideIconTemplate),h(1),d("ngIf",e.hideIconTemplate)}}function rAe(t,i){if(1&t){const e=De();x(0,"EyeIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","showIcon")}function aAe(t,i){}function lAe(t,i){1&t&&g(0,aAe,0,0,"ng-template")}function cAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,lAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.showIconTemplate)}}function uAe(t,i){if(1&t&&(we(0),g(1,rAe,1,1,"EyeIcon",9),g(2,cAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.showIconTemplate),h(1),d("ngIf",e.showIconTemplate)}}function dAe(t,i){if(1&t&&(we(0),g(1,sAe,3,2,"ng-container",3),g(2,uAe,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.unmasked),h(1),d("ngIf",!e.unmasked)}}function pAe(t,i){1&t&&ze(0)}function hAe(t,i){1&t&&ze(0)}function fAe(t,i){if(1&t&&(we(0),g(1,hAe,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)}}const gAe=function(t){return{width:t}};function mAe(t,i){if(1&t&&(x(0,"div",15),le(1,"div",0),Il(2,"mapper"),A(),x(3,"div",16),Le(4),A()),2&t){const e=f(2);K("data-pc-section","meter"),h(1),d("ngClass",Cl(2,6,e.meter,e.strengthClass))("ngStyle",He(9,gAe,e.meter?e.meter.width:"")),K("data-pc-section","meterLabel"),h(2),K("data-pc-section","info"),h(1),dt(e.infoText)}}function _Ae(t,i){1&t&&ze(0)}const IAe=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},CAe=function(t){return{value:"visible",params:t}};function vAe(t,i){if(1&t){const e=De();x(0,"div",11,12),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onAnimationEnd(o))}),g(2,pAe,1,0,"ng-container",7),g(3,fAe,2,1,"ng-container",13),g(4,mAe,5,11,"ng-template",null,14,In),g(6,_Ae,1,0,"ng-container",7),A()}if(2&t){const e=Bt(5),n=f();d("ngClass","p-password-panel p-component")("@overlayAnimation",He(10,CAe,mt(7,IAe,n.showTransitionOptions,n.hideTransitionOptions))),K("data-pc-section","panel"),h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngTemplateOutlet",n.footerTemplate)}}let bAe=(()=>{class t{transform(e,n,...o){return n(e,...o)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Vi({name:"mapper",type:t,pure:!0})}return t})();const yAe={provide:un,useExisting:ft(()=>xAe),multi:!0};let xAe=(()=>{class t{document;platformId;renderer;cd;config;el;overlayService;ariaLabel;ariaLabelledBy;label;disabled;promptLabel;mediumRegex="^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})";strongRegex="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})";weakLabel;mediumLabel;maxLength;strongLabel;inputId;feedback=!0;appendTo;toggleMask;inputStyleClass;styleClass;style;inputStyle;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autocomplete;placeholder;showClear=!1;onFocus=new ge;onBlur=new ge;onClear=new ge;input;contentTemplate;footerTemplate;headerTemplate;clearIconTemplate;hideIconTemplate;showIconTemplate;templates;overlayVisible=!1;meter;infoText;focused=!1;unmasked=!1;mediumCheckRegExp;strongCheckRegExp;resizeListener;scrollHandler;overlay;value=null;onModelChange=()=>{};onModelTouched=()=>{};translationSubscription;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.config=r,this.el=a,this.overlayService=l}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"hideicon":this.hideIconTemplate=e.template;break;case"showicon":this.showIconTemplate=e.template}})}ngOnInit(){this.infoText=this.promptText(),this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.updateUI(this.value||"")})}onAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.appendContainer(),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener();break;case"void":this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null}}onAnimationEnd(e){"void"===e.toState&&Wn.clear(e.element)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).appendChild(this.overlay))}alignOverlay(){this.appendTo?(this.overlay.style.minWidth=j.getOuterWidth(this.input.nativeElement)+"px",j.absolutePosition(this.overlay,this.input.nativeElement)):j.relativePosition(this.overlay,this.input.nativeElement)}onInput(e){this.value=e.target.value,this.onModelChange(this.value)}onInputFocus(e){this.focused=!0,this.feedback&&(this.overlayVisible=!0),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.onModelTouched(),this.onBlur.emit(e)}onKeyUp(e){if(this.feedback){if(this.updateUI(e.target.value),"Escape"===e.code)return void(this.overlayVisible&&(this.overlayVisible=!1));this.overlayVisible||(this.overlayVisible=!0)}}updateUI(e){let n=null,o=null;switch(this.testStrength(e)){case 1:n=this.weakText(),o={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText(),o={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText(),o={strength:"strong",width:"100%"};break;default:n=this.promptText(),o=null}this.meter=o,this.infoText=n}onMaskToggle(){this.unmasked=!this.unmasked}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}testStrength(e){let n=0;return this.strongCheckRegExp.test(e)?n=3:this.mediumCheckRegExp.test(e)?n=2:e.length&&(n=1),n}writeValue(e){this.value=void 0===e?null:e,this.feedback&&this.updateUI(this.value||""),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindScrollListener(){ei(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new Vu(this.input.nativeElement,()=>{this.overlayVisible&&(this.overlayVisible=!1)})),this.scrollHandler.bindScrollListener())}bindResizeListener(){ei(this.platformId)&&!this.resizeListener&&(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",()=>{this.overlayVisible&&!j.isTouchDevice()&&(this.overlayVisible=!1)}))}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}containerClass(e){return{"p-password p-component p-inputwrapper":!0,"p-input-icon-right":e}}inputFieldClass(e){return{"p-password-input":!0,"p-disabled":e}}strengthClass(e){return`p-password-strength ${e?e.strength:""}`}filled(){return null!=this.value&&this.value.toString().length>0}promptText(){return this.promptLabel||this.getTranslation(di.PASSWORD_PROMPT)}weakText(){return this.weakLabel||this.getTranslation(di.WEAK)}mediumText(){return this.mediumLabel||this.getTranslation(di.MEDIUM)}strongText(){return this.strongLabel||this.getTranslation(di.STRONG)}restoreAppend(){this.overlay&&this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).removeChild(this.overlay))}inputType(e){return e?"text":"password"}getTranslation(e){return this.config.getTranslation(e)}clear(){this.value=null,this.onModelChange(this.value),this.writeValue(this.value),this.onClear.emit()}ngOnDestroy(){this.overlay&&(Wn.clear(this.overlay),this.overlay=null),this.restoreAppend(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(ki),V(bt),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-password"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Zxe,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:8,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled())("p-inputwrapper-focus",o.focused)("p-password-clearable",o.showClear)("p-password-mask",o.toggleMask)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",label:"label",disabled:"disabled",promptLabel:"promptLabel",mediumRegex:"mediumRegex",strongRegex:"strongRegex",weakLabel:"weakLabel",mediumLabel:"mediumLabel",maxLength:"maxLength",strongLabel:"strongLabel",inputId:"inputId",feedback:"feedback",appendTo:"appendTo",toggleMask:"toggleMask",inputStyleClass:"inputStyleClass",styleClass:"styleClass",style:"style",inputStyle:"inputStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autocomplete:"autocomplete",placeholder:"placeholder",showClear:"showClear"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClear:"onClear"},features:[yt([yAe])],decls:9,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","",3,"ngClass","ngStyle","value","input","focus","blur","keyup"],["input",""],[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],[1,"p-password-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass","click"],[3,"click",4,"ngIf"],[3,"click"],[3,"ngClass","click"],["overlay",""],[4,"ngIf","ngIfElse"],["content",""],[1,"p-password-meter"],["className","p-password-info"]],template:function(n,o){1&n&&(x(0,"div",0),Il(1,"mapper"),x(2,"input",1,2),me("input",function(r){return o.onInput(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keyup",function(r){return o.onKeyUp(r)}),Il(4,"mapper"),Il(5,"mapper"),A(),g(6,eAe,4,3,"ng-container",3),g(7,dAe,3,2,"ng-container",3),g(8,vAe,7,12,"div",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Cl(1,23,o.toggleMask,o.containerClass))("ngStyle",o.style),K("data-pc-name","password")("data-pc-section","root"),h(2),Ve(o.inputStyleClass),d("ngClass",Cl(4,26,o.disabled,o.inputFieldClass))("ngStyle",o.inputStyle)("value",o.value),K("label",o.label)("aria-label",o.ariaLabel)("aria-labelledBy",o.ariaLabelledBy)("id",o.inputId)("type",Cl(5,29,o.unmasked,o.inputType))("placeholder",o.placeholder)("autocomplete",o.autocomplete)("maxlength",o.maxLength)("data-pc-section","input"),h(4),d("ngIf",o.showClear&&null!=o.value),h(1),d("ngIf",o.toggleMask),h(1),d("ngIf",o.overlayVisible))},dependencies:function(){return[Ct,gt,on,Ht,hC,mn,MO,kO,bAe]},styles:["@layer primeng{.p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}.p-password-input::-ms-reveal,.p-password-input::-ms-clear{display:none}.p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-password-clearable.p-password-mask .p-password-clear-icon{margin-top:unset}.p-password-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),AAe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,mn,MO,kO,Qe]})}return t})();const Nwe={zIndex:1200};let Vwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({providers:[{provide:Lye,useValue:Nwe}],imports:[Xe,Mi,Qe,dn,rg,TO,gC,mC,SO,Or,_C,Zo,If,Qs,oO,Qe,rg]})}return t})();const Bwe=["input"],Hwe=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function zwe(t,i){if(1&t){const e=De();x(0,"label",7),me("click",function(o){return G(e),q(f().select(o))}),Le(1),A()}if(2&t){const e=f(),n=Bt(3);Ve(e.labelStyleClass),d("ngClass",Rn(6,Hwe,n.checked,e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),dt(e.label)}}const jwe=function(t,i,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},Uwe=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},$we={provide:un,useExisting:ft(()=>Gwe),multi:!0};let Kwe=(()=>{class t{accessors=[];add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gwe=(()=>{class t{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new ge;onFocus=new ge;onBlur=new ge;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(e,n,o){this.cd=e,this.injector=n,this.registry=o}ngOnInit(){this.control=this.injector.get(ds),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,o){e.preventDefault(),!this.disabled&&(this.select(e),o&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(n){return new(n||t)(V(Ft),V($i),V(Kwe))};static \u0275cmp=Oe({type:t,selectors:[["p-radioButton"]],viewQuery:function(n,o){if(1&n&&je(Bwe,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([$we])],decls:7,vars:29,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","value","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.handleClick(a,l,!0))}),x(1,"div",1)(2,"input",2,3),me("focus",function(a){return o.onInputFocus(a)})("blur",function(a){return o.onInputBlur(a)}),A()(),x(4,"div",4),le(5,"span",5),A()(),g(6,zwe,2,10,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(21,jwe,o.checked,o.disabled,o.focused)),K("data-pc-name","radiobutton")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper"),h(1),d("checked",o.checked)("disabled",o.disabled)("value",o.value),K("id",o.inputId)("name",o.name)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("tabindex",o.tabindex)("aria-checked",o.checked)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(25,Uwe,o.checked,o.disabled,o.focused)),K("data-pc-section","input"),h(1),K("data-pc-section","icon"),h(1),d("ngIf",o.label))},dependencies:[Ct,gt,Ht],encapsulation:2,changeDetection:0})}return t})(),qwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),FO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BanIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7 0C5.61553 0 4.26215 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.00303296 5.6003 -0.13559 7.00776 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C14 5.14348 13.2625 3.36301 11.9497 2.05025C10.637 0.737498 8.85652 0 7 0ZM1.16667 7C1.16549 5.65478 1.63303 4.35118 2.48889 3.31333L10.6867 11.5111C9.83309 12.2112 8.79816 12.6544 7.70243 12.789C6.60669 12.9236 5.49527 12.744 4.49764 12.2713C3.50001 11.7986 2.65724 11.0521 2.06751 10.1188C1.47778 9.18558 1.16537 8.10397 1.16667 7ZM11.5111 10.6867L3.31334 2.48889C4.43144 1.57388 5.84966 1.10701 7.29265 1.1789C8.73565 1.2508 10.1004 1.85633 11.1221 2.87795C12.1437 3.89956 12.7492 5.26435 12.8211 6.70735C12.893 8.15034 12.4261 9.56856 11.5111 10.6867Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),RO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.9741 13.6721C10.8806 13.6719 10.7886 13.6483 10.7066 13.6033L7.00002 11.6545L3.29345 13.6033C3.19926 13.6539 3.09281 13.6771 2.98612 13.6703C2.87943 13.6636 2.77676 13.6271 2.6897 13.5651C2.60277 13.5014 2.53529 13.4147 2.4948 13.3148C2.45431 13.215 2.44241 13.1058 2.46042 12.9995L3.17881 8.87264L0.167699 5.95324C0.0922333 5.8777 0.039368 5.78258 0.0150625 5.67861C-0.00924303 5.57463 -0.00402231 5.46594 0.030136 5.36477C0.0621323 5.26323 0.122141 5.17278 0.203259 5.10383C0.284377 5.03488 0.383311 4.99023 0.488681 4.97501L4.63087 4.37126L6.48797 0.618832C6.54083 0.530159 6.61581 0.456732 6.70556 0.405741C6.79532 0.35475 6.89678 0.327942 7.00002 0.327942C7.10325 0.327942 7.20471 0.35475 7.29447 0.405741C7.38422 0.456732 7.4592 0.530159 7.51206 0.618832L9.36916 4.37126L13.5114 4.97501C13.6167 4.99023 13.7157 5.03488 13.7968 5.10383C13.8779 5.17278 13.9379 5.26323 13.9699 5.36477C14.0041 5.46594 14.0093 5.57463 13.985 5.67861C13.9607 5.78258 13.9078 5.8777 13.8323 5.95324L10.8212 8.87264L11.532 12.9995C11.55 13.1058 11.5381 13.215 11.4976 13.3148C11.4571 13.4147 11.3896 13.5014 11.3027 13.5651C11.2059 13.632 11.0917 13.6692 10.9741 13.6721ZM7.00002 10.4393C7.09251 10.4404 7.18371 10.4613 7.2675 10.5005L10.2098 12.029L9.65193 8.75036C9.6368 8.6584 9.64343 8.56418 9.6713 8.47526C9.69918 8.38633 9.74751 8.30518 9.81242 8.23832L12.1969 5.94559L8.90298 5.45648C8.81188 5.44198 8.72555 5.406 8.65113 5.35152C8.57671 5.29703 8.51633 5.2256 8.475 5.14314L7.00002 2.1626L5.52503 5.15078C5.4837 5.23324 5.42332 5.30467 5.3489 5.35916C5.27448 5.41365 5.18815 5.44963 5.09705 5.46412L1.80318 5.94559L4.18761 8.23832C4.25252 8.30518 4.30085 8.38633 4.32873 8.47526C4.3566 8.56418 4.36323 8.6584 4.3481 8.75036L3.7902 12.0519L6.73253 10.5234C6.81451 10.4762 6.9058 10.4475 7.00002 10.4393Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),NO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarFillIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.9718 5.36453C13.9398 5.26298 13.8798 5.17252 13.7986 5.10356C13.7175 5.0346 13.6186 4.98994 13.5132 4.97472L9.37043 4.37088L7.51307 0.617955C7.46021 0.529271 7.38522 0.455834 7.29545 0.404836C7.20568 0.353838 7.1042 0.327026 7.00096 0.327026C6.89771 0.327026 6.79624 0.353838 6.70647 0.404836C6.6167 0.455834 6.54171 0.529271 6.48885 0.617955L4.63149 4.37088L0.488746 4.97472C0.383363 4.98994 0.284416 5.0346 0.203286 5.10356C0.122157 5.17252 0.0621407 5.26298 0.03014 5.36453C-0.00402286 5.46571 -0.00924428 5.57442 0.0150645 5.67841C0.0393733 5.7824 0.0922457 5.87753 0.167722 5.95308L3.17924 8.87287L2.4684 13.0003C2.45038 13.1066 2.46229 13.2158 2.50278 13.3157C2.54328 13.4156 2.61077 13.5022 2.6977 13.5659C2.78477 13.628 2.88746 13.6644 2.99416 13.6712C3.10087 13.678 3.20733 13.6547 3.30153 13.6042L7.00096 11.6551L10.708 13.6042C10.79 13.6491 10.882 13.6728 10.9755 13.673C11.0958 13.6716 11.2129 13.6343 11.3119 13.5659C11.3988 13.5022 11.4663 13.4156 11.5068 13.3157C11.5473 13.2158 11.5592 13.1066 11.5412 13.0003L10.8227 8.87287L13.8266 5.95308C13.9033 5.87835 13.9577 5.7836 13.9833 5.67957C14.009 5.57554 14.005 5.4664 13.9718 5.36453Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function Wwe(t,i){if(1&t&&le(0,"span",10),2&t){const e=f(3);d("ngClass",e.iconCancelClass)("ngStyle",e.iconCancelStyle)}}function Qwe(t,i){if(1&t&&le(0,"BanIcon",11),2&t){const e=f(3);d("styleClass","p-rating-icon p-rating-cancel")("ngStyle",e.iconCancelStyle),K("data-pc-section","cancelIcon")}}const Zwe=function(t){return{"p-focus":t}};function Ywe(t,i){if(1&t){const e=De();x(0,"div",5),me("click",function(o){return G(e),q(f(2).onOptionClick(o,0))}),x(1,"span",6)(2,"input",7),me("focus",function(o){return G(e),q(f(2).onInputFocus(o,0))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){return G(e),q(f(2).onChange(o,0))}),A()(),g(3,Wwe,1,2,"span",8),g(4,Qwe,1,3,"BanIcon",9),A()}if(2&t){const e=f(2);d("ngClass",He(10,Zwe,0===e.focusedOptionIndex()&&e.isFocusVisible)),K("data-pc-section","cancelItem"),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",e.name)("checked",0===e.value)("disabled",e.disabled)("readonly",e.readonly),K("aria-label",e.cancelAriaLabel()),h(1),d("ngIf",e.iconCancelClass),h(1),d("ngIf",!e.iconCancelClass)}}function Xwe(t,i){if(1&t&&le(0,"span",16),2&t){const e=f(4);d("ngStyle",e.iconOffStyle)("ngClass",e.iconOffClass),K("data-pc-section","offIcon")}}function Jwe(t,i){1&t&&le(0,"StarIcon",17),2&t&&(d("ngStyle",f(4).iconOffStyle)("styleClass","p-rating-icon"),K("data-pc-section","offIcon"))}function e2e(t,i){if(1&t&&(we(0),g(1,Xwe,1,3,"span",14),g(2,Jwe,1,3,"StarIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOffClass),h(1),d("ngIf",!e.iconOffClass)}}function t2e(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4);d("ngStyle",e.iconOnStyle)("ngClass",e.iconOnClass),K("data-pc-section","onIcon")}}function n2e(t,i){1&t&&le(0,"StarFillIcon",17),2&t&&(d("ngStyle",f(4).iconOnStyle)("styleClass","p-rating-icon p-rating-icon-active"),K("data-pc-section","onIcon"))}function i2e(t,i){if(1&t&&(we(0),g(1,t2e,1,3,"span",18),g(2,n2e,1,3,"StarFillIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOnClass),h(1),d("ngIf",!e.iconOnClass)}}const o2e=function(t,i){return{"p-rating-item-active":t,"p-focus":i}};function s2e(t,i){if(1&t){const e=De();x(0,"div",12),me("click",function(o){const r=G(e).$implicit;return q(f(2).onOptionClick(o,r+1))}),x(1,"span",6)(2,"input",7),me("focus",function(o){const r=G(e).$implicit;return q(f(2).onInputFocus(o,r+1))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){const r=G(e).$implicit;return q(f(2).onChange(o,r+1))}),A()(),g(3,e2e,3,2,"ng-container",13),g(4,i2e,3,2,"ng-container",13),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",mt(9,o2e,e+1<=o.value,e+1===o.focusedOptionIndex()&&o.isFocusVisible)),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",o.name)("checked",0===o.value)("disabled",o.disabled)("readonly",o.readonly),K("aria-label",o.starAriaLabel(e+1)),h(1),d("ngIf",!o.value||n>=o.value),h(1),d("ngIf",o.value&&nf2e),multi:!0};let f2e=(()=>{class t{cd;config;disabled;readonly;stars=5;cancel=!0;iconOnClass;iconOnStyle;iconOffClass;iconOffStyle;iconCancelClass;iconCancelStyle;onRate=new ge;onCancel=new ge;onFocus=new ge;onBlur=new ge;templates;onIconTemplate;offIconTemplate;cancelIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};starsArray;isFocusVisibleItem=!0;focusedOptionIndex=bn(-1);name;constructor(e,n){this.cd=e,this.config=n}ngOnInit(){this.name=this.name||$t(),this.starsArray=[];for(let e=0;e{switch(e.getType()){case"onicon":this.onIconTemplate=e.template;break;case"officon":this.offIconTemplate=e.template;break;case"cancelicon":this.cancelIconTemplate=e.template}})}onOptionClick(e,n){if(!this.readonly&&!this.disabled){this.onOptionSelect(e,n),this.isFocusVisibleItem=!1;const o=j.getFirstFocusableElement(e.currentTarget,"");o&&j.focus(o)}}onOptionSelect(e,n){this.focusedOptionIndex.set(n),this.updateModel(e,n||null)}onChange(e,n){this.onOptionSelect(e,n),this.isFocusVisibleItem=!0}onInputBlur(e){this.focusedOptionIndex.set(-1),this.onBlur.emit(e)}onInputFocus(e,n){this.focusedOptionIndex.set(n),this.onFocus.emit(e)}updateModel(e,n){this.value=n,this.onModelChange(this.value),this.onModelTouched(),n?this.onRate.emit({originalEvent:e,value:n}):this.onCancel.emit()}cancelAriaLabel(){return this.config.translation.clear}starAriaLabel(e){return 1===e?this.config.translation.aria.star:this.config.translation.aria.stars.replace(/{star}/g,e)}getIconTemplate(e){return!this.value||e>=this.value?this.offIconTemplate:this.onIconTemplate}writeValue(e){this.value=e,this.cd.detectChanges()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get isCustomIcon(){return this.templates&&this.templates.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-rating"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",readonly:"readonly",stars:"stars",cancel:"cancel",iconOnClass:"iconOnClass",iconOnStyle:"iconOnStyle",iconOffClass:"iconOffClass",iconOffStyle:"iconOffStyle",iconCancelClass:"iconCancelClass",iconCancelStyle:"iconCancelStyle"},outputs:{onRate:"onRate",onCancel:"onCancel",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([h2e])],decls:4,vars:8,consts:[[1,"p-rating",3,"ngClass"],[4,"ngIf","ngIfElse"],["customTemplate",""],["class","p-rating-item p-rating-cancel-item",3,"ngClass","click",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-rating-item","p-rating-cancel-item",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","radio","value","0",3,"name","checked","disabled","readonly","focus","blur","change"],["class","p-rating-icon p-rating-cancel",3,"ngClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle",4,"ngIf"],[1,"p-rating-icon","p-rating-cancel",3,"ngClass","ngStyle"],[3,"styleClass","ngStyle"],[1,"p-rating-item",3,"ngClass","click"],[4,"ngIf"],["class","p-rating-icon",3,"ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","styleClass",4,"ngIf"],[1,"p-rating-icon",3,"ngStyle","ngClass"],[3,"ngStyle","styleClass"],["class","p-rating-icon p-rating-icon-active",3,"ngStyle","ngClass",4,"ngIf"],[1,"p-rating-icon","p-rating-icon-active",3,"ngStyle","ngClass"],["class","p-rating-icon p-rating-cancel",3,"ngStyle","click",4,"ngIf"],["class","p-rating-icon",3,"click",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngStyle","click"],[4,"ngTemplateOutlet"],[1,"p-rating-icon",3,"click"]],template:function(n,o){if(1&n&&(x(0,"div",0),g(1,r2e,3,2,"ng-container",1),g(2,d2e,2,2,"ng-template",null,2,In),A()),2&n){const s=Bt(3);d("ngClass",mt(5,p2e,o.readonly,o.disabled)),K("data-pc-name","rating")("data-pc-section","root"),h(1),d("ngIf",!o.isCustomIcon)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,NO,RO,FO]},styles:["@layer primeng{.p-rating{display:inline-flex}.p-rating-icon{cursor:pointer}.p-rating.p-rating-readonly .p-rating-icon{cursor:default}}\n"],encapsulation:2,changeDetection:0})}return t})(),g2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,NO,RO,FO,Qe]})}return t})();const m2e=["container"],_2e=["content"],I2e=["xBar"],C2e=["yBar"];function v2e(t,i){1&t&&ze(0)}const b2e=["*"];let y2e=(()=>{class t{platformId;el;zone;cd;document;renderer;style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;templates;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;contentTemplate;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.cd=s,this.document=r,this.renderer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement;const s=this.document.defaultView;let r=s.getComputedStyle(e),a=s.getComputedStyle(o),l=j.getHeight(e)-parseInt(a.height,10);"none"!=r["max-height"]&&0==l&&(e.style.height=n.offsetHeight+parseInt(a.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement,s=n.scrollWidth,r=n.clientWidth,a=-1*(e.clientHeight-o.clientHeight);this.scrollXRatio=r/s;let l=this.yBarViewChild.nativeElement,c=n.scrollHeight,u=n.clientHeight,p=-1*(e.clientWidth-l.clientWidth);this.scrollYRatio=u/c,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)o.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(o,"p-scrollpanel-hidden");else{o.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(o,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollXRatio,10);o.style.cssText="width:"+m+"%; left:"+n.scrollLeft*(100-m)/(s-r)+"%;bottom:"+a+"px;"}if(this.scrollYRatio>=1)l.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(l,"p-scrollpanel-hidden");else{l.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(l,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollYRatio,10);l.style.cssText="height:"+m+"%; top: calc("+n.scrollTop*(100-m)/(c-u)+"% - "+o.clientHeight+"px);right:"+p+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){"horizontal"===this.orientation&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(Ft),V(Wt),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(m2e,5),je(_2e,5),je(I2e,5),je(C2e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.xBarViewChild=s.first),Se(s=Ee())&&(o.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",step:"step"},ngContentSelectors:b2e,decls:11,vars:14,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],["content",""],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["xBar",""],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"],["yBar",""]],template:function(n,o){1&n&&(Ti(),x(0,"div",0,1)(2,"div",2)(3,"div",3,4),me("mouseenter",function(){return o.moveBar()})("scroll",function(r){return o.onScroll(r)}),Kn(5),g(6,v2e,1,0,"ng-container",5),A()(),x(7,"div",6,7),me("mousedown",function(r){return o.onXBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)})("blur",function(){return o.onBlur()}),A(),x(9,"div",8,9),me("mousedown",function(r){return o.onYBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass","p-scrollpanel p-component")("ngStyle",o.style),K("data-pc-name","scrollpanel"),h(2),K("data-pc-section","wrapper"),h(1),K("data-pc-section","content"),h(3),d("ngTemplateOutlet",o.contentTemplate),h(1),K("aria-orientation","horizontal")("aria-valuenow",o.lastScrollLeft)("data-pc-section","barx"),h(2),K("aria-orientation","vertical")("aria-valuenow",o.lastScrollTop)("data-pc-section","bary"))},dependencies:[Ct,on,Ht],styles:["@layer primeng{.p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}}\n"],encapsulation:2,changeDetection:0})}return t})(),x2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),A2e=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CaretLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.5553 13C10.411 13.0006 10.2704 12.9538 10.1554 12.8667L3.04473 7.53369C2.96193 7.4716 2.89474 7.39108 2.84845 7.29852C2.80217 7.20595 2.77808 7.10388 2.77808 7.00039C2.77808 6.8969 2.80217 6.79484 2.84845 6.70227C2.89474 6.60971 2.96193 6.52919 3.04473 6.4671L10.1554 1.13412C10.2549 1.05916 10.3734 1.0136 10.4976 1.0026C10.6217 0.991605 10.7464 1.01561 10.8575 1.0719C10.9668 1.12856 11.0584 1.21398 11.1226 1.31893C11.1869 1.42388 11.2212 1.54438 11.222 1.66742V12.3334C11.2212 12.4564 11.1869 12.5769 11.1226 12.6819C11.0584 12.7868 10.9668 12.8722 10.8575 12.9289C10.7629 12.9735 10.6599 12.9977 10.5553 13ZM4.55574 7.00039L9.88871 11.0001V3.00066L4.55574 7.00039Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),eTe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,A2e,qn,Nn,Qe]})}return t})();const tTe=["sliderHandle"],nTe=["sliderHandleStart"],iTe=["sliderHandleEnd"],oTe=function(t,i){return{left:t,width:i}};function sTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,oTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const rTe=function(t,i){return{bottom:t,height:i}};function aTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,rTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const lTe=function(t){return{height:t}};function cTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,lTe,e.handleValue+"%")),K("data-pc-section","range")}}const uTe=function(t){return{width:t}};function dTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,uTe,e.handleValue+"%")),K("data-pc-section","range")}}const Pv=function(t,i){return{left:t,bottom:i}};function pTe(t,i){if(1&t){const e=De();x(0,"span",6,7),me("touchstart",function(o){return G(e),q(f().onDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(o){return G(e),q(f().onDragEnd(o))})("mousedown",function(o){return G(e),q(f().onMouseDown(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(11,Pv,"horizontal"==e.orientation?e.handleValue+"%":null,"vertical"==e.orientation?e.handleValue+"%":null)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","handle")}}const BO=function(t){return{"p-slider-handle-active":t}};function hTe(t,i){if(1&t){const e=De();x(0,"span",8,9),me("keydown",function(o){return G(e),q(f().onKeyDown(o,0))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,0))})("touchstart",function(o){return G(e),q(f().onDragStart(o,0))})("touchmove",function(o){return G(e),q(f().onDrag(o,0))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeStartLeft,e.rangeStartBottom))("ngClass",He(15,BO,0==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[0]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","startHandler")}}function fTe(t,i){if(1&t){const e=De();x(0,"span",10,11),me("keydown",function(o){return G(e),q(f().onKeyDown(o,1))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,1))})("touchstart",function(o){return G(e),q(f().onDragStart(o,1))})("touchmove",function(o){return G(e),q(f().onDrag(o,1))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeEndLeft,e.rangeEndBottom))("ngClass",He(15,BO,1==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[1]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","endHandler")}}const gTe=function(t,i,e,n){return{"p-slider p-component":!0,"p-disabled":t,"p-slider-horizontal":i,"p-slider-vertical":e,"p-slider-animate":n}},mTe={provide:un,useExisting:ft(()=>_Te),multi:!0};let _Te=(()=>{class t{document;platformId;el;renderer;ngZone;cd;animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;onChange=new ge;onSlideEnd=new ge;sliderHandle;sliderHandleStart;sliderHandleEnd;value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.ngZone=r,this.cd=a}onMouseDown(e,n){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,this.bindDragListeners(),e.target.focus(),e.preventDefault(),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(e,n){if(!this.disabled){var o=e.changedTouches[0];this.startHandleValue=this.range?this.handleValues[n]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,"horizontal"===this.orientation?(this.startx=parseInt(o.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(o.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault()}}onDrag(e){if(!this.disabled){var o,n=e.changedTouches[0];o="horizontal"===this.orientation?Math.floor(100*(parseInt(n.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(n.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(e,o),e.preventDefault()}}onDragEnd(e){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault())}onBarClick(e){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(e),this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(e,n){switch(this.handleIndex=n,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,n),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,n),e.preventDefault();break;case"PageDown":this.decrementValue(e,n,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,n,!0),e.preventDefault();break;case"Home":this.updateValue(this.min,e),e.preventDefault();break;case"End":this.updateValue(this.max,e),e.preventDefault()}}decrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]-this.step:this.values[n]-1:this.step?this.value-this.step:!this.step&&o?this.value-10:this.value-1,this.updateValue(s,e),e.preventDefault()}incrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]+this.step:this.values[n]+1:this.step?this.value+this.step:!this.step&&o?this.value+10:this.value+1,this.updateValue(s,e),e.preventDefault()}handleChange(e){let n=this.calculateHandleValue(e);this.setValueFromHandle(e,n)}bindDragListeners(){ei(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const e=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(e,"mousemove",n=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(n)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(e,"mouseup",n=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:n,values:this.values}:{originalEvent:n,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(e,n){let o=this.getValueFromHandle(n);this.range?this.step?this.handleStepChange(o,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=n,this.updateValue(o,e)):this.step?this.handleStepChange(o,this.value):(this.handleValue=n,this.updateValue(o,e)),this.cd.markForCheck()}handleStepChange(e,n){let o=e-n,s=n,r=this.step;o<0?s=n+Math.ceil(e/r-n/r)*r:o>0&&(s=n+Math.floor(e/r-n/r)*r),this.updateValue(s),this.updateHandleValue()}writeValue(e){this.range?this.values=e||[0,0]:this.value=e||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let e=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=e.left+j.getWindowScrollLeft(),this.initY=e.top+j.getWindowScrollTop(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(e){return"horizontal"===this.orientation?100*(e.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-e.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.valuethis.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(e,n){if(this.range){let o=e;0==this.handleIndex?(othis.values[1]&&o>this.max&&(o=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(o>this.max?(o=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):othis.max&&(e=this.max,this.handleValue=100),this.value=this.getNormalizedValue(e),this.onModelChange(this.value),this.onChange.emit({event:n,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(e){return e/100*(this.max-this.min)+this.min}getDecimalsCount(e){return e&&Math.floor(e)!==e&&e.toString().split(".")[1].length||0}getNormalizedValue(e){let n=this.getDecimalsCount(this.step);return n>0?+parseFloat(e.toString()).toFixed(n):Math.floor(e)}ngOnDestroy(){this.unbindDragListeners()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-slider"]],viewQuery:function(n,o){if(1&n&&(je(tTe,5),je(nTe,5),je(iTe,5)),2&n){let s;Se(s=Ee())&&(o.sliderHandle=s.first),Se(s=Ee())&&(o.sliderHandleStart=s.first),Se(s=Ee())&&(o.sliderHandleEnd=s.first)}},hostAttrs:[1,"p-element"],inputs:{animate:"animate",disabled:"disabled",min:"min",max:"max",orientation:"orientation",step:"step",range:"range",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex"},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[yt([mTe])],decls:8,vars:18,consts:[[3,"ngStyle","ngClass","click"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"ngStyle","touchstart","touchmove","touchend","mousedown","keydown"],["sliderHandle",""],["role","slider",1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleStart",""],[1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleEnd",""]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onBarClick(r)}),g(1,sTe,1,5,"span",1),g(2,aTe,1,5,"span",1),g(3,cTe,1,4,"span",1),g(4,dTe,1,4,"span",1),g(5,pTe,2,14,"span",2),g(6,hTe,2,17,"span",3),g(7,fTe,2,17,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",gr(13,gTe,o.disabled,"horizontal"==o.orientation,"vertical"==o.orientation,o.animate)),K("data-pc-name","slider")("data-pc-section","root"),h(1),d("ngIf",o.range&&"horizontal"==o.orientation),h(1),d("ngIf",o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"horizontal"==o.orientation),h(1),d("ngIf",!o.range),h(1),d("ngIf",o.range),h(1),d("ngIf",o.range))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-slider{position:relative}.p-slider .p-slider-handle{position:absolute;cursor:grab;touch-action:none;display:block}.p-slider-range{position:absolute;display:block}.p-slider-horizontal .p-slider-range{top:0;left:0;height:100%}.p-slider-horizontal .p-slider-handle{top:50%}.p-slider-vertical{height:100px}.p-slider-vertical .p-slider-handle{left:50%}.p-slider-vertical .p-slider-range{bottom:0;left:0;width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),ITe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const CTe=["inputfield"],vTe=function(t){return{"ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},bTe=function(t){return{"ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},yTe={provide:un,useExisting:ft(()=>xTe),multi:!0};let xTe=(()=>{class t{el;cd;onChange=new ge;onFocus=new ge;onBlur=new ge;min;max;maxlength;size;placeholder;inputId;disabled;readonly;tabindex;required;name;ariaLabelledBy;inputStyle;inputStyleClass;formatInput;decimalSeparator;thousandSeparator;precision;value;_step=1;formattedValue;onModelChange=()=>{};onModelTouched=()=>{};keyPattern=/[0-9\+\-]/;timer;focus;filled;negativeSeparator="-";localeDecimalSeparator;localeThousandSeparator;thousandRegExp;calculatedPrecision;inputfieldViewChild;get step(){return this._step}set step(e){if(this._step=e,null!=this._step){let n=this.step.toString().split(/[,]|[.]/);this.calculatedPrecision=n[1]?n[1].length:void 0}}constructor(e,n){this.el=e,this.cd=n}ngOnInit(){this.formatInput&&(this.localeDecimalSeparator=1.1.toLocaleString().substring(1,2),this.localeThousandSeparator=1e3.toLocaleString().substring(1,2),this.thousandRegExp=new RegExp(`[${this.thousandSeparator||this.localeThousandSeparator}]`,"gim"),this.decimalSeparator&&this.thousandSeparator&&this.decimalSeparator===this.thousandSeparator&&console.warn("thousandSeparator and decimalSeparator cannot have the same value."))}repeat(e,n,o){let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let s,o=this.step*n,r=this.getPrecision();s=this.value?"string"==typeof this.value?this.parseValue(this.value):this.value:0,this.value=r?parseFloat(this.toFixed(s+o,r)):s+o,void 0!==this.maxlength&&this.value.toString().length>this.maxlength&&(this.value=s),void 0!==this.min&&this.valuethis.max&&(this.value=this.max),this.formatValue(),this.onModelChange(this.value),this.onChange.emit(e)}getPrecision(){return void 0===this.precision?this.calculatedPrecision:this.precision}toFixed(e,n){let o=Math.pow(10,n||0);return String(Math.round(e*o)/o)}onUpButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,1),this.updateFilledState(),e.preventDefault())}onUpButtonMouseup(e){this.disabled||this.clearTimer()}onUpButtonMouseleave(e){this.disabled||this.clearTimer()}onDownButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,-1),this.updateFilledState(),e.preventDefault())}onDownButtonMouseup(e){this.disabled||this.clearTimer()}onDownButtonMouseleave(e){this.disabled||this.clearTimer()}onInputKeydown(e){38==e.which?(this.spin(e,1),e.preventDefault()):40==e.which&&(this.spin(e,-1),e.preventDefault())}onInputChange(e){this.onChange.emit(e)}onInput(e){this.value=this.parseValue(e.target.value),this.onModelChange(this.value),this.updateFilledState()}onInputBlur(e){this.focus=!1,this.formatValue(),this.onModelTouched(),this.onBlur.emit(e)}onInputFocus(e){this.focus=!0,this.onFocus.emit(e)}parseValue(e){let n,o=this.getPrecision();return""===e.trim()?n=null:(this.formatInput&&(e=e.replace(this.thousandRegExp,"")),o?(e=e.replace(this.formatInput?this.decimalSeparator||this.localeDecimalSeparator:",","."),n=parseFloat(e)):n=parseInt(e,10),isNaN(n)?n=null:(null!==this.max&&n>this.max&&(n=this.max),null!==this.min&&n3&&(e[0]=e[0].replace(new RegExp(`[${this.localeThousandSeparator}]`,"gim"),this.thousandSeparator)),e=e.join(""))),this.formattedValue=e.toString()):this.formattedValue=null,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.formattedValue)}clearTimer(){this.timer&&clearInterval(this.timer)}writeValue(e){this.value=e,this.formatValue(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}updateFilledState(){this.filled=void 0!==this.value&&null!=this.value}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-spinner"]],viewQuery:function(n,o){if(1&n&&je(CTe,5),2&n){let s;Se(s=Ee())&&(o.inputfieldViewChild=s.first)}},hostAttrs:[1,"p-element"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("ui-inputwrapper-filled",o.filled)("ui-inputwrapper-focus",o.focus)},inputs:{min:"min",max:"max",maxlength:"maxlength",size:"size",placeholder:"placeholder",inputId:"inputId",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",required:"required",name:"name",ariaLabelledBy:"ariaLabelledBy",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",formatInput:"formatInput",decimalSeparator:"decimalSeparator",thousandSeparator:"thousandSeparator",precision:"precision",step:"step"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([yTe])],decls:7,vars:28,consts:[[1,"ui-spinner","ui-widget","ui-corner-all"],["type","text",3,"value","disabled","readonly","ngStyle","ngClass","keydown","blur","input","change","focus"],["inputfield",""],["type","button","tabindex","-1",3,"ngClass","disabled","mouseleave","mousedown","mouseup"],[1,"ui-spinner-button-icon","pi","pi-caret-up","ui-clickable"],[1,"ui-spinner-button-icon","pi","pi-caret-down","ui-clickable"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("keydown",function(r){return o.onInputKeydown(r)})("blur",function(r){return o.onInputBlur(r)})("input",function(r){return o.onInput(r)})("change",function(r){return o.onInputChange(r)})("focus",function(r){return o.onInputFocus(r)}),A(),x(3,"button",3),me("mouseleave",function(r){return o.onUpButtonMouseleave(r)})("mousedown",function(r){return o.onUpButtonMousedown(r)})("mouseup",function(r){return o.onUpButtonMouseup(r)}),le(4,"span",4),A(),x(5,"button",3),me("mouseleave",function(r){return o.onDownButtonMouseleave(r)})("mousedown",function(r){return o.onDownButtonMousedown(r)})("mouseup",function(r){return o.onDownButtonMouseup(r)}),le(6,"span",5),A()()),2&n&&(h(1),Ve(o.inputStyleClass),d("value",o.formattedValue||null)("disabled",o.disabled)("readonly",o.readonly)("ngStyle",o.inputStyle)("ngClass","ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all"),K("id",o.inputId)("name",o.name)("aria-valumin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("aria-labelledby",o.ariaLabelledBy)("size",o.size)("maxlength",o.maxlength)("tabindex",o.tabindex)("placeholder",o.placeholder)("required",o.required),h(2),d("ngClass",He(24,vTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly),h(2),d("ngClass",He(26,bTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly))},dependencies:[Ct,Ht],styles:["@layer primeng{.ui-spinner{display:inline-block;overflow:visible;padding:0;position:relative;vertical-align:middle}.ui-spinner-input{vertical-align:middle;padding-right:1.5em}.ui-spinner-button{cursor:default;display:block;height:50%;margin:0;overflow:hidden;padding:0;position:absolute;right:0;text-align:center;vertical-align:middle;width:1.5em}.ui-spinner .ui-spinner-button-icon{position:absolute;top:50%;left:50%;margin-top:-.5em;margin-left:-.5em;width:1em}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-fluid .ui-spinner{width:100%}.ui-fluid .ui-spinner .ui-spinner-input{padding-right:2em;width:100%}.ui-fluid .ui-spinner .ui-spinner-button{width:1.5em}.ui-fluid .ui-spinner .ui-spinner-button .ui-spinner-button-icon{left:.7em}}\n"],encapsulation:2,changeDetection:0})}return t})(),ATe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs]})}return t})(),Fv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),iSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Fv,bi,Mi,Fv]})}return t})(),pSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,qn,Nn]})}return t})(),LSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Qe,dn,Nn,Mr,Qi,qn,Qe,Nn]})}return t})(),sEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Nn,dn,mn,Mr,Qi,Qe]})}return t})(),rEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,uu]})}return t})(),gEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn,Qe]})}return t})();const mEe=function(t,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i}};function _Ee(t,i){if(1&t&&le(0,"span",3),2&t){const e=f();Ve(e.checked?e.onIcon:e.offIcon),d("ngClass",mt(4,mEe,"left"===e.iconPos,"right"===e.iconPos)),K("data-pc-section","icon")}}function IEe(t,i){if(1&t&&(x(0,"span",4),Le(1),A()),2&t){const e=f();K("data-pc-section","label"),h(1),dt(e.checked?e.hasOnLabel?e.onLabel:"":e.hasOffLabel?e.offLabel:"")}}const CEe=function(t,i,e){return{"p-button p-togglebutton p-component":!0,"p-button-icon-only":t,"p-highlight":i,"p-disabled":e}},vEe={provide:un,useExisting:ft(()=>bEe),multi:!0};let bEe=(()=>{class t{cd;onLabel;offLabel;onIcon;offIcon;ariaLabel;ariaLabelledBy;disabled;style;styleClass;inputId;tabindex;iconPos="left";onChange=new ge;checked=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}toggle(e){this.disabled||(this.checked=!this.checked,this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onKeyDown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}onBlur(){this.onModelTouched()}writeValue(e){this.checked=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.onLabel&&this.onLabel.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-toggleButton"]],hostAttrs:[1,"p-element"],inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",style:"style",styleClass:"styleClass",inputId:"inputId",tabindex:"tabindex",iconPos:"iconPos"},outputs:{onChange:"onChange"},features:[yt([vEe])],decls:3,vars:16,consts:[["role","switch","pRipple","",3,"ngClass","ngStyle","click","keydown"],[3,"class","ngClass",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeyDown(r)}),g(1,_Ee,1,7,"span",1),g(2,IEe,2,2,"span",2),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(12,CEe,o.onIcon&&o.offIcon&&!o.hasOnLabel&&!o.hasOffLabel,o.checked,o.disabled))("ngStyle",o.style),K("tabindex",o.disabled?null:"0")("aria-checked",o.checked)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-name","togglebutton")("data-pc-section","root"),h(1),d("ngIf",o.onIcon||o.offIcon),h(1),d("ngIf",o.onLabel||o.offLabel))},dependencies:[Ct,gt,Ht,oo],styles:['@layer primeng{.p-button[_ngcontent-%COMP%]{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label[_ngcontent-%COMP%]{flex:1 1 auto}.p-button-icon-right[_ngcontent-%COMP%]{order:1}.p-button[_ngcontent-%COMP%]:disabled{cursor:default;pointer-events:none}.p-button-icon-only[_ngcontent-%COMP%]{justify-content:center}.p-button-icon-only[_ngcontent-%COMP%]:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical[_ngcontent-%COMP%]{flex-direction:column}.p-button-icon-bottom[_ngcontent-%COMP%]{order:2}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]{margin:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:last-child){border-right:0 none}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:focus{position:relative;z-index:1}p-button[iconpos=right][_ngcontent-%COMP%] spinnericon[_ngcontent-%COMP%]{order:1}}'],changeDetection:0})}return t})(),yEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn]})}return t})(),TEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),ske=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,yi,bi,Qi,eg,Qs,_s,ng,Qe,Oi]})}return t})(),dke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Oi,Qe,Oi]})}return t})();const pke=["split"],hke=["area1"],fke=["area2"],gke=["layoutMenuScroller"],mke=function(t,i,e,n,o,s){return{"layout-wrapper-overlay-sidebar":t,"layout-wrapper-slim-sidebar":i,"layout-wrapper-horizontal-sidebar":e,"layout-wrapper-overlay-sidebar-active":n,"layout-wrapper-sidebar-inactive":o,"layout-wrapper-sidebar-mobile-active":s}},_ke=function(){return{height:"100%"}};let Rv=(()=>{class t{constructor(e){this.renderer=e,this.direction="horizontal",this.sizes={percent:{area1:12,area2:88},pixel:{area1:120,area2:"*",area3:160},useTransition:!0,av1:!0,av2:!0},this.action={area1:12,area2:88,useTransition:!1,av1:!0,av2:!0},this.layoutMode="static",this.megaMenuMode="dark",this.menuMode="light",this.profileMode="inline"}dragEnd(e,{sizes:n}){"percent"===e?(this.action.area1=n[0],this.action.area2=n[1]):"pixel"===e&&(this.sizes.pixel.area1=n[0],this.sizes.pixel.area2=n[1],this.sizes.pixel.area3=n[2])}ngAfterViewInit(){setTimeout(()=>{this.layoutMenuScrollerViewChild.moveBar()},100)}onLayoutClick(){this.topbarItemClick||(this.activeTopbarItem=null,this.topbarMenuActive=!1),this.rightPanelClick||(this.rightPanelActive=!1),this.megaMenuClick||(this.megaMenuActive=!1),!this.usermenuClick&&this.isSlim()&&(this.usermenuActive=!1,this.activeProfileItem=null),this.menuClick||((this.isHorizontal()||this.isSlim())&&(this.resetMenu=!0),(this.overlayMenuActive||this.staticMenuMobileActive)&&this.hideOverlayMenu(),this.menuHoverActive=!1),this.topbarItemClick=!1,this.menuClick=!1,this.rightPanelClick=!1,this.megaMenuClick=!1,this.usermenuClick=!1}onMenuButtonClick(e){this.menuClick=!0,this.topbarMenuActive=!1,"overlay"===this.layoutMode?this.overlayMenuActive=!this.overlayMenuActive:this.isDesktop()?(this.staticMenuDesktopInactive=!this.staticMenuDesktopInactive,88==this.action.area2&&12==this.action.area1?(this.action.area2=100,this.action.area1=0):100==this.action.area2&&0==this.action.area1&&(this.action.area2=88,this.action.area1=12)):this.staticMenuMobileActive=!this.staticMenuMobileActive,e.preventDefault()}onMenuClick(e){this.menuClick=!0,this.resetMenu=!1}onTopbarMenuButtonClick(e){this.topbarItemClick=!0,this.topbarMenuActive=!this.topbarMenuActive,this.hideOverlayMenu(),e.preventDefault()}onTopbarItemClick(e,n){this.topbarItemClick=!0,this.activeTopbarItem=this.activeTopbarItem===n?null:n,e.preventDefault()}onTopbarSubItemClick(e){e.preventDefault()}onRightPanelButtonClick(e){this.rightPanelClick=!0,this.rightPanelActive=!this.rightPanelActive,e.preventDefault()}onRightPanelClick(){this.rightPanelClick=!0}onMegaMenuButtonClick(e){this.megaMenuClick=!0,this.megaMenuActive=!this.megaMenuActive,e.preventDefault()}onMegaMenuClick(){this.megaMenuClick=!0}hideOverlayMenu(){this.overlayMenuActive=!1,this.staticMenuMobileActive=!1}isTablet(){const e=window.innerWidth;return e<=1024&&e>640}isDesktop(){return window.innerWidth>1024}isMobile(){return window.innerWidth<=640}isHorizontal(){return"horizontal"===this.layoutMode}isSlim(){return"slim"===this.layoutMode}isOverlay(){return"overlay"===this.layoutMode}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-root"]],viewQuery:function(n,o){if(1&n&&(je(pke,5),je(hke,5),je(fke,5),je(gke,7)),2&n){let s;Se(s=Ee())&&(o.split=s.first),Se(s=Ee())&&(o.area1=s.first),Se(s=Ee())&&(o.area2=s.first),Se(s=Ee())&&(o.layoutMenuScrollerViewChild=s.first)}},decls:17,vars:17,consts:[[1,"layout-wrapper",3,"ngClass","click"],[1,"ui-g-12","ui-md-12","reportSection",2,"padding-left","0px"],["unit","percent",3,"direction","useTransition","dragEnd"],["split","asSplit"],[1,"area1",2,"overflow","auto","width","auto","height","auto","margin-top","38px",3,"size","visible"],["area1","asSplitArea"],[1,"layout-sidebar",3,"click"],["layoutMenuScroller",""],[1,"sidebar-scroll-content"],[2,"overflow","auto","height","auto","width","auto",3,"size","visible"],["area2","asSplitArea"],[1,"layout-main"],[1,"layout-main-content"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(){return o.onLayoutClick()}),le(1,"app-topbar"),x(2,"div",1)(3,"as-split",2,3),me("dragEnd",function(r){return o.dragEnd("percent",r)}),x(5,"as-split-area",4,5)(7,"div",6),me("click",function(r){return o.onMenuClick(r)}),x(8,"p-scrollPanel",null,7)(10,"div",8),le(11,"ginger-report-menu"),A()()()(),x(12,"as-split-area",9,10)(14,"div",11)(15,"div",12),le(16,"router-outlet"),A()()()()()()),2&n&&(d("ngClass",ea(9,mke,o.isOverlay(),o.isSlim(),o.isHorizontal(),o.overlayMenuActive,o.staticMenuDesktopInactive,o.staticMenuMobileActive)),h(3),d("direction",o.direction)("useTransition",o.action.useTransition),h(2),d("size",o.action.area1)("visible",o.action.av1),h(3),yn(Jt(16,_ke)),h(4),d("size",o.action.area2)("visible",o.action.av2))},styles:[".reportSection .as-horizontal>.as-split-gutter>.as-split-gutter-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAB3SURBVChT3ZGxDcAgDASfNAzADiwA+2/AAJRUDMAADo8lZIkmUbpcgV+2dYVBSklijEJCCAJArvmgtcYC7z2X4LixOoa1eWCdzLOlzt47y+a509EzxkCtFTlnMB9O5v85yboj2fecQUeGl390OEspOjV8derIAtxNg4Qs31DpLQAAAABJRU5ErkJggg==)} .reportSection .as-horizontal>.as-split-gutter{height:auto!important;margin-top:0} .reportSection .layout-main{margin-left:0!important} .reportSection .layout-sidebar{position:relative!important;width:auto;top:25px;border-right:unset;height:99%} .reportSection .ui-panelmenu-content .ui-widget-content{height:1000px!important} .reportSection .layout-sidebar .ui-scrollpanel .sidebar-scroll-content{width:auto;padding-right:0} .reportSection .ui-panelmenu .ui-menuitem-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important} .reportSection a.p-menuitem-link-active{font-weight:700!important}"]})}return t})(),Ike=(()=>{class t{constructor(e,n,o,s,r){this.app=e,this.router=n,this.activeRoute=o,this.communicatorService=s,this.userDataManagerService=r,this.logoLink="#3423"}ngOnInit(){this.activeRoute.queryParams.subscribe(e=>{const n=e.ExecutionId;typeof n<"u"&&n&&(this.logoLink=`#/?ExecutionId=${n}`)})}refreshReport(){this.userDataManagerService.setItemCache(null),this.communicatorService.refreshScreen("RefreshData")}static#e=this.\u0275fac=function(n){return new(n||t)(V(Rv),V(io),V(Di),V(Ws),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-topbar"]],decls:7,vars:1,consts:[[1,"layout-topbar",2,"border-bottom","4px solid transparent","border-image","linear-gradient(to right, #ec008c, #f77341 63%, #fdb515)","border-image-slice","1","z-index","9999"],[1,"logo",3,"href"],["src","assets/layout/images/amdocs_icon.png","alt","Amdocs-logo","height","30",1,"amdocs_icon"],["src","assets/layout/images/amdocs.png","alt","Amdocs-logo"],["id","menu-button","href","#",3,"click"],[1,"fa","fa-align-left"],["type","button","pButton","","icon","pi pi-refresh","pTooltip","Refresh report data","tooltipPosition","right",1,"p-button","refreshBtn",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"a",1),le(2,"img",2)(3,"img",3),A(),x(4,"a",4),me("click",function(r){return o.app.onMenuButtonClick(r)}),le(5,"i",5),A(),x(6,"button",6),me("click",function(){return o.refreshReport()}),A()()),2&n&&(h(1),g_("href",o.logoLink,Ls))},dependencies:[Kl,hf],styles:[".refreshBtn[_ngcontent-%COMP%]{border-radius:40px;height:40px;width:40px!important;font-size:2em;position:absolute;right:10px;top:8px;background-color:#ffbf3f;color:#000;border:#FFBF3F}.p-button[_ngcontent-%COMP%]:enabled:hover{background-color:#f8e08e;color:#000}"]})}return t})();const $O={production:!0},Cke=["gutterEls"];function vke(t,i){if(1&t){const e=De();x(0,"div",2,3),me("keydown",function(o){G(e);const s=f().index;return q(f().startKeyboardDrag(o,2*s+1,s+1))})("mousedown",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("touchstart",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("mouseup",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))})("touchend",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))}),le(2,"div",4),A()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f();fo("flex-basis",s.gutterSize,"px")("order",2*n+1),K("aria-label",s.gutterAriaLabel)("aria-orientation",s.direction)("aria-valuemin",o.minSize)("aria-valuemax",o.maxSize)("aria-valuenow",o.size)("aria-valuetext",s.getAriaAreaSizeText(o.size))}}function bke(t,i){1&t&&g(0,vke,3,10,"div",1),2&t&&d("ngIf",!1===i.last)}const yke=["*"];function fd(t){if(void 0!==t.changedTouches&&t.changedTouches.length>0)return{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(void 0!==t.clientX&&void 0!==t.clientY)return{x:t.clientX,y:t.clientY};if(void 0!==t.currentTarget){const i=t.currentTarget;return{x:i.offsetLeft,y:i.offsetTop}}return null}function KO(t,i,e){return Math.abs(t.x-i.x)<=e&&Math.abs(t.y-i.y)<=e}function GO(t,i){const e=t.nativeElement.getBoundingClientRect();return"horizontal"===i?e.width:e.height}function gd(t){return"boolean"==typeof t?t:"false"!==t}function jr(t,i){return null==t?i:(t=Number(t),!isNaN(t)&&t>=0?t:i)}function qO(t,i){if("percent"===t){const e=i.reduce((n,o)=>null!==o?n+o:n,0);return i.every(n=>null!==n)&&e>99.9&&e<100.1}if("pixel"===t)return 1===i.filter(e=>null===e).length}function lg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.minSize?null:t.component.minSize>t.size?t.size:t.component.minSize}function cg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.maxSize?null:t.component.maxSize{const r=function Ake(t,i,e,n){return 0===e?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:i.sizePercentAtStart,pixelRemain:0}:0===i.sizePixelAtStart&&e<0?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:e}:"percent"===t?function wke(t,i,e){const o=(t.sizePixelAtStart+i)/e*100;if(i>0){if(null!==t.area.maxSize&&o>t.area.maxSize){const s=t.area.maxSize/100*e;return{areaSnapshot:t,pixelAbsorb:s,percentAfterAbsorption:t.area.maxSize,pixelRemain:t.sizePixelAtStart+i-s}}return{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:o>100?100:o,pixelRemain:0}}if(i<0){if(null!==t.area.minSize&&o0?null!==t.area.maxSize&&n>t.area.maxSize?{areaSnapshot:t,pixelAbsorb:t.area.maxSize-t.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:n-t.area.maxSize}:{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:-1,pixelRemain:0}:i<0?null!==t.area.minSize&&n{class t{set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=jr(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=jr(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=gd(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=gd(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=gd(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=jr(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new ce(e=>this.transitionEndSubscriber=e).pipe(nk(20))}constructor(e,n,o,s,r){this.ngZone=e,this.elRef=n,this.cdRef=o,this.renderer=s,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new ge(!1),this.dragEnd=new ge(!1),this.gutterClick=new ge(!1),this.gutterDblClick=new ge(!1),this.dragProgressSubject=new re,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=r?Object.assign(this._config,r):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const n={component:e,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===e.visible?(this.displayedAreas.push(n),this.build(!0,!0)):this.hiddenAreas.push(n)}removeArea(e){if(this.displayedAreas.some(n=>n.component===e)){const n=this.displayedAreas.find(o=>o.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(n),1),this.build(!0,!0)}else if(this.hiddenAreas.some(n=>n.component===e)){const n=this.hiddenAreas.find(o=>o.component===e);this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1)}}updateArea(e,n,o){!0===e.visible&&this.build(n,o)}showArea(e){const n=this.hiddenAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1);this.displayedAreas.push(...o),this.build(!0,!0)}hideArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.displayedAreas.splice(this.displayedAreas.indexOf(n),1);o.forEach(s=>{s.order=0,s.size=0}),this.hiddenAreas.push(...o),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const n=e.map(s=>jr(s,null));return!1!==qO(this.unit,n)&&(this.displayedAreas.forEach((s,r)=>s.component._size=n[r]),this.build(!1,!0),!0)}build(e,n){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(o=>null!==o.component.order)&&this.displayedAreas.sort((o,s)=>o.component.order-s.component.order),this.displayedAreas.forEach((o,s)=>{o.order=2*s,o.component.setStyleOrder(o.order)})),!0===n){const o=qO(this.unit,this.displayedAreas.map(s=>s.component.size));switch(this.unit){case"percent":{const s=100/this.displayedAreas.length;this.displayedAreas.forEach(r=>{r.size=o?r.component.size:s,r.minSize=lg(r),r.maxSize=cg(r)});break}case"pixel":if(o)this.displayedAreas.forEach(s=>{s.size=s.component.size,s.minSize=lg(s),s.maxSize=cg(s)});else{const s=this.displayedAreas.filter(r=>null===r.component.size);if(0===s.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((r,a)=>{r.size=0===a?null:r.component.size,r.minSize=0===a?null:lg(r),r.maxSize=0===a?null:cg(r)});else if(s.length>1){let r=!1;this.displayedAreas.forEach(a=>{null===a.component.size?!1===r?(a.size=null,a.minSize=null,a.maxSize=null,r=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=lg(a),a.maxSize=cg(a))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(n=>{n.component.setStyleFlex(0,0,`calc( ${n.size}% - ${n.size/100*e}px )`,null!==n.minSize&&n.minSize===n.size,null!==n.maxSize&&n.maxSize===n.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,n){const o=fd(e);this.startPoint&&KO(this.startPoint,o,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",n),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",n),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(e,n,o){if(!0===this.disabled||!0===this.isWaitingClear)return;const s=function xke(t,i){if("horizontal"===i)switch(t.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===i)switch(t.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const e=t.currentTarget,n="PageUp"===t.key||"PageDown"===t.key?500:50;let o=e.offsetLeft,s=e.offsetTop;switch(t.key){case"ArrowLeft":o-=n;break;case"ArrowRight":o+=n;break;case"ArrowUp":s-=n;break;case"ArrowDown":s+=n;break;case"PageUp":"vertical"===i?s-=n:o+=n;break;case"PageDown":"vertical"===i?s+=n:o-=n;break;default:return null}return{x:o,y:s}}(e,this.direction);null!==s&&(this.endPoint=s,this.startPoint=fd(e),e.preventDefault(),e.stopPropagation(),this.setupForDragEvent(n,o),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(e,n,o){e.preventDefault(),e.stopPropagation(),this.startPoint=fd(e),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(n,o),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(e,n){this.snapshot={gutterNum:n,lastSteppedOffset:0,allAreasSizePixel:GO(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(o=>{const s={area:o,sizePixelAtStart:GO(o.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?o.size:-1};o.ordere&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[s]):this.snapshot.areasAfterGutter.push(s))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((o,s)=>o+s.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(e){e.preventDefault(),e.stopPropagation();const n=fd(e);null!==this._clickTimeout&&!KO(this.startPoint,n,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=fd(e),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let e="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(e=-e);const n=Math.round(e/this.gutterStep)*this.gutterStep;if(n===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=n;let o=Jl(this.unit,this.snapshot.areasBeforeGutter,-n,this.snapshot.allAreasSizePixel),s=Jl(this.unit,this.snapshot.areasAfterGutter,n,this.snapshot.allAreasSizePixel);if(0!==o.remain&&0!==s.remain?Math.abs(o.remain)===Math.abs(s.remain)||(Math.abs(o.remain)>Math.abs(s.remain)?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)):0!==o.remain?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):0!==s.remain&&(o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const r=[...o.list,...s.list],a=r.find(l=>0!==l.percentAfterAbsorption&&l.percentAfterAbsorption!==l.areaSnapshot.area.minSize&&l.percentAfterAbsorption!==l.areaSnapshot.area.maxSize);a&&(a.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-r.filter(l=>l!==a).reduce((l,c)=>l+c.percentAfterAbsorption,0))}o.list.forEach(r=>WO(this.unit,r)),s.list.forEach(r=>WO(this.unit,r)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(n=>n.component.unlockEvents());this.dragListeners.length>0;){const n=this.dragListeners.pop();n&&n()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(e,n){const o=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:n,sizes:o}):"end"===e?this.dragEnd.emit({gutterNum:n,sizes:o}):"click"===e?this.gutterClick.emit({gutterNum:n,sizes:o}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:n,sizes:o}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(o)):"progress"===e&&this.dragProgressSubject.next({gutterNum:n,sizes:o})}ngOnDestroy(){this.stopDragging()}collapseArea(e,n,o){const s=this.displayedAreas.find(l=>l.component===e);if(void 0===s)return;const r="right"===o?1:-1;s.sizeBeforeCollapse||(s.sizeBeforeCollapse=s.size,s.gutterBeforeCollapse=r),s.size=n;const a=this.gutterEls.find(l=>l.nativeElement.style.order===`${s.order+r}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}expandArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n||!n.sizeBeforeCollapse)return;n.size=n.sizeBeforeCollapse,n.sizeBeforeCollapse=null;const o=this.gutterEls.find(s=>s.nativeElement.style.order===`${n.order+n.gutterBeforeCollapse}`);o&&this.renderer.removeClass(o.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}getAriaAreaSizeText(e){return null===e?null:e.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(Ft),V(hn),V(Ske,8))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["as-split"]],viewQuery:function(n,o){if(1&n&&je(Cke,5),2&n){let s;Se(s=Ee())&&(o.gutterEls=s)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:yke,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(n,o){1&n&&(Ti(),Kn(0),g(1,bke,1,1,"ng-template",0)),2&n&&(h(1),d("ngForOf",o.displayedAreas))},dependencies:[Jn,gt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return t})(),Eke=(()=>{class t{set order(e){this._order=jr(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=jr(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=jr(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=jr(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=gd(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=gd(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(e,n,o,s){this.ngZone=e,this.elRef=n,this.renderer=o,this.split=s,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",n=>{"flex-basis"===n.propertyName&&this.split.notify("transitionEnd",-1)})});const e=this.renderer.createElement("div");this.renderer.addClass(e,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,e)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,e)})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,n,o,s,r){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",n),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",o),!0===s?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===r?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(e=0,n="right"){this.split.collapseArea(this,e,n)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(hn),V(QO))};static#t=this.\u0275dir=ut({type:t,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return t})(),Dke=(()=>{class t{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[Xe]})}return t})();const kke=function(){return{width:"auto"}};let Mke=(()=>{class t{constructor(e,n){this.communicatorService=e,this.route=n,this.guid="",this.executionGeneralDetailsData=[]}ngOnInit(){this.communicatorService.messageSourceHasNewMessage.subscribe(e=>{console.log("messge arrived to menu"),console.log(e),this.items=e}),this.route.queryParams.subscribe(e=>{this.guid="",this.guid=e.Guid,typeof this.guid<"u"&&this.guid&&this.searchForSelectedRecNode(this.items)})}searchForSelectedRecNode(e){let n=!1;if(null==e)n=!1;else for(const o of e){if(o.id===this.guid){n=!0;break}if(typeof o.items<"u"&&null!=o.items&&this.searchForSelectedRecNode(o.items)){o.expanded=!0,n=!0;break}}return n}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ginger-report-menu"]],decls:1,vars:5,consts:[[3,"model","multiple"]],template:function(n,o){1&n&&le(0,"p-panelMenu",0),2&n&&(yn(Jt(4,kke)),d("model",o.items)("multiple",!1))},dependencies:[ZM],styles:[".p-panelmenu .p-panelmenu-header-action .p-menuitem-icon{margin-left:.2rem!important;margin-right:.5rem!important} .p-panelmenu .p-component{padding-top:10px}"]})}return t})(),Oke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t,bootstrap:[Rv]});static#n=this.\u0275inj=Ge({providers:[{provide:"environmentObj",useValue:$O},{provide:Ir,useClass:G2}],imports:[R0,uu,dhe,eE,NE,JD,Cfe,sge,Mi,uk,uge,Lge,qM,Wge,_me,Jme,g_e,nO,k_e,Ek,_f,B_e,Z_e,hIe,kk,xIe,OIe,_v,Zs,LIe,$Ce,Tve,s1e,j1e,K1e,yv,Dye,rxe,yxe,Mxe,vf,Qxe,YM,AAe,Vwe,xv,qwe,g2e,x2e,Ik,eTe,ITe,ATe,iSe,pSe,wk,LSe,sEe,rEe,Fv,gEe,yEe,TEe,Nn,ske,JM,dke,Spe,_v,Xe,Dke.forRoot()]})}return t})();Dg(Rv,function(){return[Ct,QI,y2e,Mke,QO,Eke,Ike]},[]),AB().bootstrapModule(Oke).catch(t=>console.error(t))},7536:function(tc){tc.exports=function(xe){var z={};function L(ae){if(z[ae])return z[ae].exports;var H=z[ae]={exports:{},id:ae,loaded:!1};return xe[ae].call(H.exports,H,H.exports,L),H.loaded=!0,H.exports}return L.m=xe,L.c=z,L.p="",L(0)}([function(xe,z,L){xe.exports=L(53)},function(xe,z,L){"use strict";var H=ue(L(2)),F=ue(L(18)),N=L(29),O=ue(N),I=ue(L(30)),T=ue(L(42)),k=ue(L(34)),D=ue(L(31)),M=ue(L(32)),ee=ue(L(43)),ne=ue(L(33)),Q=ue(L(44)),se=ue(L(51)),U=ue(L(52));function ue(pe){return pe&&pe.__esModule?pe:{default:pe}}F.default.register({"blots/block":O.default,"blots/block/embed":N.BlockEmbed,"blots/break":I.default,"blots/container":T.default,"blots/cursor":k.default,"blots/embed":D.default,"blots/inline":M.default,"blots/scroll":ee.default,"blots/text":ne.default,"modules/clipboard":Q.default,"modules/history":se.default,"modules/keyboard":U.default}),H.default.register(O.default,I.default,k.default,M.default,ee.default,ne.default),xe.exports=F.default},function(xe,z,L){"use strict";var ae=L(3),H=L(7),Z=L(12),F=L(13),N=L(14),O=L(15),S=L(16),I=L(17),v=L(8),T=L(10),C=L(11),k=L(9),y=L(6),D={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:ae.default,Format:H.default,Leaf:Z.default,Embed:S.default,Scroll:F.default,Block:O.default,Inline:N.default,Text:I.default,Attributor:{Attribute:v.default,Class:T.default,Style:C.default,Store:k.default}};Object.defineProperty(z,"__esModule",{value:!0}),z.default=D},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(4),Z=L(5),F=L(6),N=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.prototype.appendChild=function(v){this.insertBefore(v)},I.prototype.attach=function(){var v=this;S.prototype.attach.call(this),this.children=new H.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(T){try{var C=O(T);v.insertBefore(C,v.children.head)}catch(k){if(k instanceof F.ParchmentError)return;throw k}})},I.prototype.deleteAt=function(v,T){if(0===v&&T===this.length())return this.remove();this.children.forEachAt(v,T,function(C,k,y){C.deleteAt(k,y)})},I.prototype.descendant=function(v,T){var C=this.children.find(T),k=C[0],y=C[1];return null==v.blotName&&v(k)||null!=v.blotName&&k instanceof v?[k,y]:k instanceof I?k.descendant(v,y):[null,-1]},I.prototype.descendants=function(v,T,C){void 0===T&&(T=0),void 0===C&&(C=Number.MAX_VALUE);var k=[],y=C;return this.children.forEachAt(T,C,function(D,w,M){(null==v.blotName&&v(D)||null!=v.blotName&&D instanceof v)&&k.push(D),D instanceof I&&(k=k.concat(D.descendants(v,w,y))),y-=M}),k},I.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),S.prototype.detach.call(this)},I.prototype.formatAt=function(v,T,C,k){this.children.forEachAt(v,T,function(y,D,w){y.formatAt(D,w,C,k)})},I.prototype.insertAt=function(v,T,C){var k=this.children.find(v),y=k[0];if(y)y.insertAt(k[1],T,C);else{var w=null==C?F.create("text",T):F.create(T,C);this.appendChild(w)}},I.prototype.insertBefore=function(v,T){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(C){return v instanceof C}))throw new F.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,T)},I.prototype.length=function(){return this.children.reduce(function(v,T){return v+T.length()},0)},I.prototype.moveChildren=function(v,T){this.children.forEach(function(C){v.insertBefore(C,T)})},I.prototype.optimize=function(){if(S.prototype.optimize.call(this),0===this.children.length)if(null!=this.statics.defaultChild){var v=F.create(this.statics.defaultChild);this.appendChild(v),v.optimize()}else this.remove()},I.prototype.path=function(v,T){void 0===T&&(T=!1);var C=this.children.find(v,T),k=C[0],y=C[1],D=[[this,v]];return k instanceof I?D.concat(k.path(y,T)):(null!=k&&D.push([k,y]),D)},I.prototype.removeChild=function(v){this.children.remove(v)},I.prototype.replace=function(v){v instanceof I&&v.moveChildren(this),S.prototype.replace.call(this,v)},I.prototype.split=function(v,T){if(void 0===T&&(T=!1),!T){if(0===v)return this;if(v===this.length())return this.next}var C=this.clone();return this.parent.insertBefore(C,this.next),this.children.forEachAt(v,this.length(),function(k,y,D){k=k.split(y,T),C.appendChild(k)}),C},I.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},I.prototype.update=function(v){var T=this,C=[],k=[];v.forEach(function(y){y.target===T.domNode&&"childList"===y.type&&(C.push.apply(C,y.addedNodes),k.push.apply(k,y.removedNodes))}),k.forEach(function(y){if(!(null!=y.parentNode&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var D=F.find(y);null!=D&&(null==D.domNode.parentNode||D.domNode.parentNode===T.domNode)&&D.detach()}}),C.filter(function(y){return y.parentNode==T.domNode}).sort(function(y,D){return y===D?0:y.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var D=null;null!=y.nextSibling&&(D=F.find(y.nextSibling));var w=O(y);(w.next!=D||null==w.next)&&(null!=w.parent&&w.parent.removeChild(T),T.insertBefore(w,D))})},I}(Z.default);function O(S){var I=F.find(S);if(null==I)try{I=F.create(S)}catch{I=F.create(F.Scope.INLINE),[].slice.call(S.childNodes).forEach(function(T){I.domNode.appendChild(T)}),S.parentNode.replaceChild(I.domNode,S),I.attach()}return I}Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z){"use strict";var L=function(){function ae(){this.head=this.tail=void 0,this.length=0}return ae.prototype.append=function(){for(var H=[],Z=0;Z1&&this.append.apply(this,H.slice(1))},ae.prototype.contains=function(H){for(var Z,F=this.iterator();Z=F();)if(Z===H)return!0;return!1},ae.prototype.insertBefore=function(H,Z){H.next=Z,null!=Z?(H.prev=Z.prev,null!=Z.prev&&(Z.prev.next=H),Z.prev=H,Z===this.head&&(this.head=H)):null!=this.tail?(this.tail.next=H,H.prev=this.tail,this.tail=H):(H.prev=void 0,this.head=this.tail=H),this.length+=1},ae.prototype.offset=function(H){for(var Z=0,F=this.head;null!=F;){if(F===H)return Z;Z+=F.length(),F=F.next}return-1},ae.prototype.remove=function(H){this.contains(H)&&(null!=H.prev&&(H.prev.next=H.next),null!=H.next&&(H.next.prev=H.prev),H===this.head&&(this.head=H.next),H===this.tail&&(this.tail=H.prev),this.length-=1)},ae.prototype.iterator=function(H){return void 0===H&&(H=this.head),function(){var Z=H;return null!=H&&(H=H.next),Z}},ae.prototype.find=function(H,Z){void 0===Z&&(Z=!1);for(var F,N=this.iterator();F=N();){var O=F.length();if(Hv?F(I,H-v,Math.min(Z,v+C-H)):F(I,0,Math.min(C,H+Z-v)),v+=C}},ae.prototype.map=function(H){return this.reduce(function(Z,F){return Z.push(H(F)),Z},[])},ae.prototype.reduce=function(H,Z){for(var F,N=this.iterator();F=N();)Z=H(Z,F);return Z},ae}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=L},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F){this.domNode=F,this.attach()}return Object.defineProperty(Z.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),Z.create=function(F){if(null==this.tagName)throw new ae.ParchmentError("Blot definition missing tagName");var N;return Array.isArray(this.tagName)?("string"==typeof F&&(F=F.toUpperCase(),parseInt(F).toString()===F&&(F=parseInt(F))),N="number"==typeof F?document.createElement(this.tagName[F-1]):this.tagName.indexOf(F)>-1?document.createElement(F):document.createElement(this.tagName[0])):N=document.createElement(this.tagName),this.className&&N.classList.add(this.className),N},Z.prototype.attach=function(){this.domNode[ae.DATA_KEY]={blot:this}},Z.prototype.clone=function(){var F=this.domNode.cloneNode();return ae.create(F)},Z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[ae.DATA_KEY]},Z.prototype.deleteAt=function(F,N){this.isolate(F,N).remove()},Z.prototype.formatAt=function(F,N,O,S){var I=this.isolate(F,N);if(null!=ae.query(O,ae.Scope.BLOT)&&S)I.wrap(O,S);else if(null!=ae.query(O,ae.Scope.ATTRIBUTE)){var v=ae.create(this.statics.scope);I.wrap(v),v.format(O,S)}},Z.prototype.insertAt=function(F,N,O){var S=null==O?ae.create("text",N):ae.create(N,O),I=this.split(F);this.parent.insertBefore(S,I)},Z.prototype.insertInto=function(F,N){if(null!=this.parent&&this.parent.children.remove(this),F.children.insertBefore(this,N),null!=N)var O=N.domNode;(null==this.next||this.domNode.nextSibling!=O)&&F.domNode.insertBefore(this.domNode,typeof O<"u"?O:null),this.parent=F},Z.prototype.isolate=function(F,N){var O=this.split(F);return O.split(N),O},Z.prototype.length=function(){return 1},Z.prototype.offset=function(F){return void 0===F&&(F=this.parent),null==this.parent||this==F?0:this.parent.children.offset(this)+this.parent.offset(F)},Z.prototype.optimize=function(){null!=this.domNode[ae.DATA_KEY]&&delete this.domNode[ae.DATA_KEY].mutations},Z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},Z.prototype.replace=function(F){null!=F.parent&&(F.parent.insertBefore(this,F.next),F.remove())},Z.prototype.replaceWith=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return O.replace(this),O},Z.prototype.split=function(F,N){return 0===F?this:this.next},Z.prototype.update=function(F){void 0===F&&(F=[])},Z.prototype.wrap=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return null!=this.parent&&this.parent.insertBefore(O,this.next),O.appendChild(this),O},Z}();H.blotName="abstract",Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z){"use strict";var L=this&&this.__extends||function(C,k){for(var y in k)k.hasOwnProperty(y)&&(C[y]=k[y]);function D(){this.constructor=C}C.prototype=null===k?Object.create(k):(D.prototype=k.prototype,new D)},ae=function(C){function k(y){var D;return(D=C.call(this,y="[Parchment] "+y)||this).message=y,D.name=D.constructor.name,D}return L(k,C),k}(Error);z.ParchmentError=ae;var O,C,H={},Z={},F={},N={};function v(C,k){var y;if(void 0===k&&(k=O.ANY),"string"==typeof C)y=N[C]||H[C];else if(C instanceof Text)y=N.text;else if("number"==typeof C)C&O.LEVEL&O.BLOCK?y=N.block:C&O.LEVEL&O.INLINE&&(y=N.inline);else if(C instanceof HTMLElement){var D=(C.getAttribute("class")||"").split(/\s+/);for(var w in D)if(y=Z[D[w]])break;y=y||F[C.tagName]}return null==y?null:k&O.LEVEL&y.scope&&k&O.TYPE&y.scope?y:null}z.DATA_KEY="__blot",(C=O=z.Scope||(z.Scope={}))[C.TYPE=3]="TYPE",C[C.LEVEL=12]="LEVEL",C[C.ATTRIBUTE=13]="ATTRIBUTE",C[C.BLOT=14]="BLOT",C[C.INLINE=7]="INLINE",C[C.BLOCK=11]="BLOCK",C[C.BLOCK_BLOT=10]="BLOCK_BLOT",C[C.INLINE_BLOT=6]="INLINE_BLOT",C[C.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",C[C.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",C[C.ANY=15]="ANY",z.create=function S(C,k){var y=v(C);if(null==y)throw new ae("Unable to create "+C+" blot");var D=y,w=C instanceof Node?C:D.create(k);return new D(w,k)},z.find=function I(C,k){return void 0===k&&(k=!1),null==C?null:null!=C[z.DATA_KEY]?C[z.DATA_KEY].blot:k?I(C.parentNode,k):null},z.query=v,z.register=function T(){for(var C=[],k=0;k1)return C.map(function(w){return T(w)});var y=C[0];if("string"!=typeof y.blotName&&"string"!=typeof y.attrName)throw new ae("Invalid definition");if("abstract"===y.blotName)throw new ae("Cannot register abstract class");return N[y.blotName||y.attrName]=y,"string"==typeof y.keyName?H[y.keyName]=y:(null!=y.className&&(Z[y.className]=y),null!=y.tagName&&(y.tagName=Array.isArray(y.tagName)?y.tagName.map(function(w){return w.toUpperCase()}):y.tagName.toUpperCase(),(Array.isArray(y.tagName)?y.tagName:[y.tagName]).forEach(function(w){(null==F[w]||null==y.className)&&(F[w]=y)}))),y}},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(8),Z=L(9),F=L(3),N=L(6),O=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.formats=function(v){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?v.tagName.toLowerCase():void 0)},I.prototype.attach=function(){S.prototype.attach.call(this),this.attributes=new Z.default(this.domNode)},I.prototype.format=function(v,T){var C=N.query(v);C instanceof H.default?this.attributes.attribute(C,T):T&&null!=C&&(v!==this.statics.blotName||this.formats()[v]!==T)&&this.replaceWith(v,T)},I.prototype.formats=function(){var v=this.attributes.values(),T=this.statics.formats(this.domNode);return null!=T&&(v[this.statics.blotName]=T),v},I.prototype.replaceWith=function(v,T){var C=S.prototype.replaceWith.call(this,v,T);return this.attributes.copy(C),C},I.prototype.update=function(v){var T=this;S.prototype.update.call(this,v),v.some(function(C){return C.target===T.domNode&&"attributes"===C.type})&&this.attributes.build()},I.prototype.wrap=function(v,T){var C=S.prototype.wrap.call(this,v,T);return C instanceof I&&C.statics.scope===this.statics.scope&&this.attributes.move(C),C},I}(F.default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F,N,O){void 0===O&&(O={}),this.attrName=F,this.keyName=N,this.scope=null!=O.scope?O.scope&ae.Scope.LEVEL|ae.Scope.TYPE&ae.Scope.ATTRIBUTE:ae.Scope.ATTRIBUTE,null!=O.whitelist&&(this.whitelist=O.whitelist)}return Z.keys=function(F){return[].map.call(F.attributes,function(N){return N.name})},Z.prototype.add=function(F,N){return!!this.canAdd(F,N)&&(F.setAttribute(this.keyName,N),!0)},Z.prototype.canAdd=function(F,N){return null!=ae.query(F,ae.Scope.BLOT&(this.scope|ae.Scope.TYPE))&&(null==this.whitelist||this.whitelist.indexOf(N)>-1)},Z.prototype.remove=function(F){F.removeAttribute(this.keyName)},Z.prototype.value=function(F){var N=F.getAttribute(this.keyName);return this.canAdd(F,N)?N:""},Z}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z,L){"use strict";var ae=L(8),H=L(10),Z=L(11),F=L(6),N=function(){function O(S){this.attributes={},this.domNode=S,this.build()}return O.prototype.attribute=function(S,I){I?S.add(this.domNode,I)&&(null!=S.value(this.domNode)?this.attributes[S.attrName]=S:delete this.attributes[S.attrName]):(S.remove(this.domNode),delete this.attributes[S.attrName])},O.prototype.build=function(){var S=this;this.attributes={};var I=ae.default.keys(this.domNode),v=H.default.keys(this.domNode),T=Z.default.keys(this.domNode);I.concat(v).concat(T).forEach(function(C){var k=F.query(C,F.Scope.ATTRIBUTE);k instanceof ae.default&&(S.attributes[k.attrName]=k)})},O.prototype.copy=function(S){var I=this;Object.keys(this.attributes).forEach(function(v){var T=I.attributes[v].value(I.domNode);S.format(v,T)})},O.prototype.move=function(S){var I=this;this.copy(S),Object.keys(this.attributes).forEach(function(v){I.attributes[v].remove(I.domNode)}),this.attributes={}},O.prototype.values=function(){var S=this;return Object.keys(this.attributes).reduce(function(I,v){return I[v]=S.attributes[v].value(S.domNode),I},{})},O}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N,O){return(N.getAttribute("class")||"").split(/\s+/).filter(function(I){return 0===I.indexOf(O+"-")})}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("class")||"").split(/\s+/).map(function(I){return I.split("-").slice(0,-1).join("-")})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(this.remove(S),S.classList.add(this.keyName+"-"+I),!0)},O.prototype.remove=function(S){Z(S,this.keyName).forEach(function(v){S.classList.remove(v)}),0===S.classList.length&&S.removeAttribute("class")},O.prototype.value=function(S){var v=(Z(S,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(S,v)?v:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N){var O=N.split("-"),S=O.slice(1).map(function(I){return I[0].toUpperCase()+I.slice(1)}).join("");return O[0]+S}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("style")||"").split(";").map(function(I){return I.split(":")[0].trim()})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(S.style[Z(this.keyName)]=I,!0)},O.prototype.remove=function(S){S.style[Z(this.keyName)]="",S.getAttribute("style")||S.removeAttribute("style")},O.prototype.value=function(S){var I=S.style[Z(this.keyName)];return this.canAdd(S,I)?I:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(5),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.value=function(S){return!0},O.prototype.index=function(S,I){return S!==this.domNode?-1:Math.min(I,1)},O.prototype.position=function(S,I){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return S>0&&(v+=1),[this.parent.domNode,v]},O.prototype.value=function(){return(S={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,S;var S},O}(H.default);F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(3),Z=L(6),F={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},O=function(S){function I(v){var T=S.call(this,v)||this;return T.parent=null,T.observer=new MutationObserver(function(C){T.update(C)}),T.observer.observe(T.domNode,F),T}return ae(I,S),I.prototype.detach=function(){S.prototype.detach.call(this),this.observer.disconnect()},I.prototype.deleteAt=function(v,T){this.update(),0===v&&T===this.length()?this.children.forEach(function(C){C.remove()}):S.prototype.deleteAt.call(this,v,T)},I.prototype.formatAt=function(v,T,C,k){this.update(),S.prototype.formatAt.call(this,v,T,C,k)},I.prototype.insertAt=function(v,T,C){this.update(),S.prototype.insertAt.call(this,v,T,C)},I.prototype.optimize=function(v){var T=this;void 0===v&&(v=[]),S.prototype.optimize.call(this);for(var C=[].slice.call(this.observer.takeRecords());C.length>0;)v.push(C.pop());for(var k=function(M,$){void 0===$&&($=!0),null!=M&&M!==T&&null!=M.domNode.parentNode&&(null==M.domNode[Z.DATA_KEY].mutations&&(M.domNode[Z.DATA_KEY].mutations=[]),$&&k(M.parent))},y=function(M){null==M.domNode[Z.DATA_KEY]||null==M.domNode[Z.DATA_KEY].mutations||(M instanceof H.default&&M.children.forEach(y),M.optimize())},D=v,w=0;D.length>0;w+=1){if(w>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(D.forEach(function(M){var $=Z.find(M.target,!0);null!=$&&($.domNode===M.target&&("childList"===M.type?(k(Z.find(M.previousSibling,!1)),[].forEach.call(M.addedNodes,function(ee){var B=Z.find(ee,!1);k(B,!1),B instanceof H.default&&B.children.forEach(function(ne){k(ne,!1)})})):"attributes"===M.type&&k($.prev)),k($))}),this.children.forEach(y),C=(D=[].slice.call(this.observer.takeRecords())).slice();C.length>0;)v.push(C.pop())}},I.prototype.update=function(v){var T=this;(v=v||this.observer.takeRecords()).map(function(C){var k=Z.find(C.target,!0);if(null!=k)return null==k.domNode[Z.DATA_KEY].mutations?(k.domNode[Z.DATA_KEY].mutations=[C],k):(k.domNode[Z.DATA_KEY].mutations.push(C),null)}).forEach(function(C){null==C||C===T||null==C.domNode[Z.DATA_KEY]||C.update(C.domNode[Z.DATA_KEY].mutations||[])}),null!=this.domNode[Z.DATA_KEY].mutations&&S.prototype.update.call(this,this.domNode[Z.DATA_KEY].mutations),this.optimize(v)},I}(H.default);O.blotName="scroll",O.defaultChild="block",O.scope=Z.Scope.BLOCK_BLOT,O.tagName="DIV",Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(O,S){for(var I in S)S.hasOwnProperty(I)&&(O[I]=S[I]);function v(){this.constructor=O}O.prototype=null===S?Object.create(S):(v.prototype=S.prototype,new v)},H=L(7),Z=L(6);var N=function(O){function S(){return O.apply(this,arguments)||this}return ae(S,O),S.formats=function(I){if(I.tagName!==S.tagName)return O.formats.call(this,I)},S.prototype.format=function(I,v){var T=this;I!==this.statics.blotName||v?O.prototype.format.call(this,I,v):(this.children.forEach(function(C){C instanceof H.default||(C=C.wrap(S.blotName,!0)),T.attributes.copy(C)}),this.unwrap())},S.prototype.formatAt=function(I,v,T,C){null!=this.formats()[T]||Z.query(T,Z.Scope.ATTRIBUTE)?this.isolate(I,v).format(T,C):O.prototype.formatAt.call(this,I,v,T,C)},S.prototype.optimize=function(){O.prototype.optimize.call(this);var I=this.formats();if(0===Object.keys(I).length)return this.unwrap();var v=this.next;v instanceof S&&v.prev===this&&function F(O,S){if(Object.keys(O).length!==Object.keys(S).length)return!1;for(var I in O)if(O[I]!==S[I])return!1;return!0}(I,v.formats())&&(v.moveChildren(this),v.remove())},S}(H.default);N.blotName="inline",N.scope=Z.Scope.INLINE_BLOT,N.tagName="SPAN",Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(7),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.formats=function(S){var I=Z.query(O.blotName).tagName;if(S.tagName!==I)return N.formats.call(this,S)},O.prototype.format=function(S,I){null!=Z.query(S,Z.Scope.BLOCK)&&(S!==this.statics.blotName||I?N.prototype.format.call(this,S,I):this.replaceWith(O.blotName))},O.prototype.formatAt=function(S,I,v,T){null!=Z.query(v,Z.Scope.BLOCK)?this.format(v,T):N.prototype.formatAt.call(this,S,I,v,T)},O.prototype.insertAt=function(S,I,v){if(null==v||null!=Z.query(I,Z.Scope.INLINE))N.prototype.insertAt.call(this,S,I,v);else{var T=this.split(S),C=Z.create(I,v);T.parent.insertBefore(C,T)}},O}(H.default);F.blotName="block",F.scope=Z.Scope.BLOCK_BLOT,F.tagName="P",Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(F,N){for(var O in N)N.hasOwnProperty(O)&&(F[O]=N[O]);function S(){this.constructor=F}F.prototype=null===N?Object.create(N):(S.prototype=N.prototype,new S)},Z=function(F){function N(){return F.apply(this,arguments)||this}return ae(N,F),N.formats=function(O){},N.prototype.format=function(O,S){F.prototype.formatAt.call(this,0,this.length(),O,S)},N.prototype.formatAt=function(O,S,I,v){0===O&&S===this.length()?this.format(I,v):F.prototype.formatAt.call(this,O,S,I,v)},N.prototype.formats=function(){return this.statics.formats(this.domNode)},N}(L(12).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=Z},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(12),Z=L(6),F=function(N){function O(S){var I=N.call(this,S)||this;return I.text=I.statics.value(I.domNode),I}return ae(O,N),O.create=function(S){return document.createTextNode(S)},O.value=function(S){return S.data},O.prototype.deleteAt=function(S,I){this.domNode.data=this.text=this.text.slice(0,S)+this.text.slice(S+I)},O.prototype.index=function(S,I){return this.domNode===S?I:-1},O.prototype.insertAt=function(S,I,v){null==v?(this.text=this.text.slice(0,S)+I+this.text.slice(S),this.domNode.data=this.text):N.prototype.insertAt.call(this,S,I,v)},O.prototype.length=function(){return this.text.length},O.prototype.optimize=function(){N.prototype.optimize.call(this),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof O&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},O.prototype.position=function(S,I){return void 0===I&&(I=!1),[this.domNode,S]},O.prototype.split=function(S,I){if(void 0===I&&(I=!1),!I){if(0===S)return this;if(S===this.length())return this.next}var v=Z.create(this.domNode.splitText(S));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},O.prototype.update=function(S){var I=this;S.some(function(v){return"characterData"===v.type&&v.target===I.domNode})&&(this.text=this.statics.value(this.domNode))},O.prototype.value=function(){return this.text},O}(H.default);F.blotName="text",F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.overload=z.expandConfig=void 0;var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},H=function(ce,ie){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return function de(ce,ie){var J=[],oe=!0,Ie=!1,re=void 0;try{for(var Be,ye=ce[Symbol.iterator]();!(oe=(Be=ye.next()).done)&&(J.push(Be.value),!ie||J.length!==ie);oe=!0);}catch(Me){Ie=!0,re=Me}finally{try{!oe&&ye.return&&ye.return()}finally{if(Ie)throw re}}return J}(ce,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function de(ce,ie){for(var J=0;J1&&void 0!==arguments[1]?arguments[1]:{};if(function se(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,de),this.options=ue(ce,J),this.container=this.options.container,this.scrollingContainer=this.options.scrollingContainer||document.body,null==this.container)return X.error("Invalid Quill container",ce);this.options.debug&&de.debug(this.options.debug);var oe=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new v.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new S.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(re){re===v.default.events.TEXT_CHANGE&&ie.root.classList.toggle("ql-blank",ie.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(re,ye){var Be=ie.selection.lastRange,Me=Be&&0===Be.length?Be.index:void 0;pe.call(ie,function(){return ie.editor.update(null,ye,Me)},re)});var Ie=this.clipboard.convert("
"+oe+"


");this.setContents(Ie),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return Z(de,null,[{key:"debug",value:function(ie){!0===ie&&(ie="log"),B.default.level(ie)}},{key:"import",value:function(ie){return null==this.imports[ie]&&X.error("Cannot import "+ie+". Are you sure it was registered?"),this.imports[ie]}},{key:"register",value:function(ie,J){var oe=this,Ie=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof ie){var re=ie.attrName||ie.blotName;"string"==typeof re?this.register("formats/"+re,ie,J):Object.keys(ie).forEach(function(ye){oe.register(ye,ie[ye],J)})}else null!=this.imports[ie]&&!Ie&&X.warn("Overwriting "+ie+" with",J),this.imports[ie]=J,(ie.startsWith("blots/")||ie.startsWith("formats/"))&&"abstract"!==J.blotName&&y.default.register(J)}}]),Z(de,[{key:"addContainer",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof ie){var oe=ie;(ie=document.createElement("div")).classList.add(oe)}return this.container.insertBefore(ie,J),ie}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return pe.call(this,function(){return Ie.editor.deleteText(ie,J)},oe=ye[3],ie=ye[0],-1*(J=ye[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ie=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(ie),this.container.classList.toggle("ql-disabled",!ie),ie||this.blur()}},{key:"focus",value:function(){var ie=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ie,this.selection.scrollIntoView()}},{key:"format",value:function(ie,J){var oe=this;return pe.call(this,function(){var re=oe.getSelection(!0),ye=new N.default;if(null==re)return ye;if(y.default.query(ie,y.default.Scope.BLOCK))ye=oe.editor.formatLine(re.index,re.length,R({},ie,J));else{if(0===re.length)return oe.selection.format(ie,J),ye;ye=oe.editor.formatText(re.index,re.length,R({},ie,J))}return oe.setSelection(re,v.default.sources.SILENT),ye},arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API)}},{key:"formatLine",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatLine(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"formatText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatText(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"getBounds",value:function(ie){return"number"==typeof ie?this.selection.getBounds(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(ie.index,ie.length)}},{key:"getContents",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getContents(ie=Ie[0],J=Ie[1])}},{key:"getFormat",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection();return"number"==typeof ie?this.editor.getFormat(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(ie.index,ie.length)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getModule",value:function(ie){return this.theme.modules[ie]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getText(ie=Ie[0],J=Ie[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ie,J,oe){var Ie=this;return pe.call(this,function(){return Ie.editor.insertEmbed(ie,J,oe)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:de.sources.API,ie)}},{key:"insertText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,0,oe,Ie,re),Ue=H(Me,4);return Be=Ue[2],pe.call(this,function(){return ye.editor.insertText(ie,J,Be)},re=Ue[3],ie=Ue[0],J.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(ie,J,oe){this.clipboard.dangerouslyPasteHTML(ie,J,oe)}},{key:"removeFormat",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return J=ye[1],pe.call(this,function(){return Ie.editor.removeFormat(ie,J)},oe=ye[3],ie=ye[0])}},{key:"setContents",value:function(ie){var J=this;return pe.call(this,function(){ie=new N.default(ie);var Ie=J.getLength(),re=J.editor.deleteText(0,Ie),ye=J.editor.applyDelta(ie),Be=ye.ops[ye.ops.length-1];return null!=Be&&"string"==typeof Be.insert&&"\n"===Be.insert[Be.insert.length-1]&&(J.editor.deleteText(J.getLength()-1,1),ye.delete(1)),re.compose(ye)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API)}},{key:"setSelection",value:function(ie,J,oe){if(null==ie)this.selection.setRange(null,J||de.sources.API);else{var Ie=_e(ie,J,oe),re=H(Ie,4);oe=re[3],this.selection.setRange(new D.Range(ie=re[0],J=re[1]),oe)}this.selection.scrollIntoView()}},{key:"setText",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API,oe=(new N.default).insert(ie);return this.setContents(oe,J)}},{key:"update",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,J=this.scroll.update(ie);return this.selection.update(ie),J}},{key:"updateContents",value:function(ie){var J=this,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API;return pe.call(this,function(){return ie=new N.default(ie),J.editor.applyDelta(ie,oe)},oe,!0)}}]),de}();function ue(de,ce){if((ce=(0,$.default)(!0,{container:de,modules:{clipboard:!0,keyboard:!0,history:!0}},ce)).theme&&ce.theme!==U.DEFAULTS.theme){if(ce.theme=U.import("themes/"+ce.theme),null==ce.theme)throw new Error("Invalid theme "+ce.theme+". Did you register it?")}else ce.theme=Y.default;var ie=(0,$.default)(!0,{},ce.theme.DEFAULTS);[ie,ce].forEach(function(Ie){Ie.modules=Ie.modules||{},Object.keys(Ie.modules).forEach(function(re){!0===Ie.modules[re]&&(Ie.modules[re]={})})});var oe=Object.keys(ie.modules).concat(Object.keys(ce.modules)).reduce(function(Ie,re){var ye=U.import("modules/"+re);return null==ye?X.error("Cannot load "+re+" module. Are you sure you registered it?"):Ie[re]=ye.DEFAULTS||{},Ie},{});return null!=ce.modules&&ce.modules.toolbar&&ce.modules.toolbar.constructor!==Object&&(ce.modules.toolbar={container:ce.modules.toolbar}),ce=(0,$.default)(!0,{},U.DEFAULTS,{modules:oe},ie,ce),["bounds","container","scrollingContainer"].forEach(function(Ie){"string"==typeof ce[Ie]&&(ce[Ie]=document.querySelector(ce[Ie]))}),ce.modules=Object.keys(ce.modules).reduce(function(Ie,re){return ce.modules[re]&&(Ie[re]=ce.modules[re]),Ie},{}),ce}function pe(de,ce,ie,J){if(this.options.strict&&!this.isEnabled()&&ce===v.default.sources.USER)return new N.default;var oe=null==ie?null:this.getSelection(),Ie=this.editor.delta,re=de();if(null!=oe&&ce===v.default.sources.USER&&(!0===ie&&(ie=oe.index),null==J?oe=he(oe,re,ce):0!==J&&(oe=he(oe,ie,J,ce)),this.setSelection(oe,v.default.sources.SILENT)),re.length()>0){var ye,Me,Be=[v.default.events.TEXT_CHANGE,re,Ie,ce];(ye=this.emitter).emit.apply(ye,[v.default.events.EDITOR_CHANGE].concat(Be)),ce!==v.default.sources.SILENT&&(Me=this.emitter).emit.apply(Me,Be)}return re}function _e(de,ce,ie,J,oe){var Ie={};return"number"==typeof de.index&&"number"==typeof de.length?"number"!=typeof ce?(oe=J,J=ie,ie=ce,ce=de.length,de=de.index):(ce=de.length,de=de.index):"number"!=typeof ce&&(oe=J,J=ie,ie=ce,ce=0),"object"===(typeof ie>"u"?"undefined":ae(ie))?(Ie=ie,oe=J):"string"==typeof ie&&(null!=J?Ie[ie]=J:oe=ie),[de,ce,Ie,oe=oe||v.default.sources.API]}function he(de,ce,ie,J){if(null==de)return null;var oe=void 0,Ie=void 0;if(ce instanceof N.default){var re=[de.index,de.index+de.length].map(function(Ue){return ce.transformPosition(Ue,J===v.default.sources.USER)}),ye=H(re,2);oe=ye[0],Ie=ye[1]}else{var Be=[de.index,de.index+de.length].map(function(Ue){return Ue=0?Ue+ie:Math.max(ce,Ue+ie)}),Me=H(Be,2);oe=Me[0],Ie=Me[1]}return new D.Range(oe,Ie-oe)}U.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},U.events=v.default.events,U.sources=v.default.sources,U.version="1.1.8",U.imports={delta:N.default,parchment:y.default,"core/module":C.default,"core/theme":Y.default},z.expandConfig=ue,z.overload=_e,z.default=U},function(xe,z){"use strict";var ae,L=document.createElement("div");L.classList.toggle("test-class",!1),L.classList.contains("test-class")&&(ae=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(H,Z){return arguments.length>1&&!this.contains(H)==!Z?Z:ae.call(this,H)}),String.prototype.startsWith||(String.prototype.startsWith=function(ae,H){return this.substr(H=H||0,ae.length)===ae}),String.prototype.endsWith||(String.prototype.endsWith=function(ae,H){var Z=this.toString();("number"!=typeof H||!isFinite(H)||Math.floor(H)!==H||H>Z.length)&&(H=Z.length);var F=Z.indexOf(ae,H-=ae.length);return-1!==F&&F===H}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(H){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof H)throw new TypeError("predicate must be a function");for(var O,Z=Object(this),F=Z.length>>>0,N=arguments[1],S=0;S0&&(v.attributes=I),this.push(v))},O.prototype.delete=function(S){return S<=0?this:this.push({delete:S})},O.prototype.retain=function(S,I){if(S<=0)return this;var v={retain:S};return null!=I&&"object"==typeof I&&Object.keys(I).length>0&&(v.attributes=I),this.push(v)},O.prototype.push=function(S){var I=this.ops.length,v=this.ops[I-1];if(S=Z(!0,{},S),"object"==typeof v){if("number"==typeof S.delete&&"number"==typeof v.delete)return this.ops[I-1]={delete:v.delete+S.delete},this;if("number"==typeof v.delete&&null!=S.insert&&"object"!=typeof(v=this.ops[(I-=1)-1]))return this.ops.unshift(S),this;if(H(S.attributes,v.attributes)){if("string"==typeof S.insert&&"string"==typeof v.insert)return this.ops[I-1]={insert:v.insert+S.insert},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this;if("number"==typeof S.retain&&"number"==typeof v.retain)return this.ops[I-1]={retain:v.retain+S.retain},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this}}return I===this.ops.length?this.ops.push(S):this.ops.splice(I,0,S),this},O.prototype.filter=function(S){return this.ops.filter(S)},O.prototype.forEach=function(S){this.ops.forEach(S)},O.prototype.map=function(S){return this.ops.map(S)},O.prototype.partition=function(S){var I=[],v=[];return this.forEach(function(T){(S(T)?I:v).push(T)}),[I,v]},O.prototype.reduce=function(S,I){return this.ops.reduce(S,I)},O.prototype.chop=function(){var S=this.ops[this.ops.length-1];return S&&S.retain&&!S.attributes&&this.ops.pop(),this},O.prototype.length=function(){return this.reduce(function(S,I){return S+F.length(I)},0)},O.prototype.slice=function(S,I){S=S||0,"number"!=typeof I&&(I=1/0);for(var v=[],T=F.iterator(this.ops),C=0;C0&&(I.push(S.ops[0]),I.ops=I.ops.concat(S.ops.slice(1))),I},O.prototype.diff=function(S,I){if(this.ops===S.ops)return new O;var v=[this,S].map(function(D){return D.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:N;var M=ops===S.ops?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")}),T=new O,C=ae(v[0],v[1],I),k=F.iterator(this.ops),y=F.iterator(S.ops);return C.forEach(function(D){for(var w=D[1].length;w>0;){var M=0;switch(D[0]){case ae.INSERT:M=Math.min(y.peekLength(),w),T.push(y.next(M));break;case ae.DELETE:M=Math.min(w,k.peekLength()),k.next(M),T.delete(M);break;case ae.EQUAL:M=Math.min(k.peekLength(),y.peekLength(),w);var $=k.next(M),ee=y.next(M);H($.insert,ee.insert)?T.retain(M,F.attributes.diff($.attributes,ee.attributes)):T.push(ee).delete(M)}w-=M}}),T.chop()},O.prototype.eachLine=function(S,I){I=I||"\n";for(var v=F.iterator(this.ops),T=new O;v.hasNext();){if("insert"!==v.peekType())return;var C=v.peek(),k=F.length(C)-v.peekLength(),y="string"==typeof C.insert?C.insert.indexOf(I,k)-k:-1;y<0?T.push(v.next()):y>0?T.push(v.next(y)):(S(T,v.next(1).attributes||{}),T=new O)}T.length()>0&&S(T,{})},O.prototype.transform=function(S,I){if(I=!!I,"number"==typeof S)return this.transformPosition(S,I);for(var v=F.iterator(this.ops),T=F.iterator(S.ops),C=new O;v.hasNext()||T.hasNext();)if("insert"!==v.peekType()||!I&&"insert"===T.peekType())if("insert"===T.peekType())C.push(T.next());else{var k=Math.min(v.peekLength(),T.peekLength()),y=v.next(k),D=T.next(k);if(y.delete)continue;D.delete?C.push(D):C.retain(k,F.attributes.transform(y.attributes,D.attributes,I))}else C.retain(F.length(v.next()));return C.chop()},O.prototype.transformPosition=function(S,I){I=!!I;for(var v=F.iterator(this.ops),T=0;v.hasNext()&&T<=S;){var C=v.peekLength(),k=v.peekType();v.next(),"delete"!==k?("insert"===k&&(TM.length?w:M,B=w.length>M.length?M:w,ne=ee.indexOf(B);if(-1!=ne)return $=[[ae,ee.substring(0,ne)],[H,B],[ae,ee.substring(ne+B.length)]],w.length>M.length&&($[0][0]=$[2][0]=L),$;if(1==B.length)return[[L,w],[ae,M]];var Y=function v(w,M){var $=w.length>M.length?w:M,ee=w.length>M.length?M:w;if($.length<4||2*ee.length<$.length)return null;function B(pe,_e,he){for(var J,oe,Ie,re,de=pe.substring(he,he+Math.floor(pe.length/4)),ce=-1,ie="";-1!=(ce=_e.indexOf(de,ce+1));){var ye=S(pe.substring(he),_e.substring(ce)),Be=I(pe.substring(0,he),_e.substring(0,ce));ie.length=pe.length?[J,oe,Ie,re,ie]:null}var Q,R,se,X,U,ne=B($,ee,Math.ceil($.length/4)),Y=B($,ee,Math.ceil($.length/2));return ne||Y?(Q=Y?ne&&ne[4].length>Y[4].length?ne:Y:ne,w.length>M.length?(R=Q[0],se=Q[1],X=Q[2],U=Q[3]):(X=Q[0],U=Q[1],R=Q[2],se=Q[3]),[R,se,X,U,Q[4]]):null}(w,M);if(Y){var R=Y[1],X=Y[3],U=Y[4],ue=Z(Y[0],Y[2]),pe=Z(R,X);return ue.concat([[H,U]],pe)}return function N(w,M){for(var $=w.length,ee=M.length,B=Math.ceil(($+ee)/2),ne=B,Y=2*B,Q=new Array(Y),R=new Array(Y),se=0;se$)pe+=2;else if(oe>ee)ue+=2;else if(U&&(Ie=ne+X-ce)>=0&&Ie=(re=$-R[Ie]))return O(w,M,J,oe)}for(var ye=-de+_e;ye<=de-he;ye+=2){for(var re,Ie=ne+ye,Be=(re=ye==-de||ye!=de&&R[Ie-1]$)he+=2;else if(Be>ee)_e+=2;else if(!U){var J;if((ie=ne+X-ye)>=0&&ie=(re=$-re)))return O(w,M,J,oe)}}}return[[L,w],[ae,M]]}(w,M)}(w=w.substring(0,w.length-ee),M=M.substring(0,M.length-ee));return B&&Y.unshift([H,B]),ne&&Y.push([H,ne]),T(Y),null!=$&&(Y=function y(w,M){var $=function k(w,M){if(0===M)return[H,w];for(var $=0,ee=0;ee0&&ee.splice(B+2,0,[Y[0],Q]),D(ee,B,3)}return w}(Y,$)),Y}function O(w,M,$,ee){var B=w.substring(0,$),ne=M.substring(0,ee),Y=w.substring($),Q=M.substring(ee),R=Z(B,ne),se=Z(Y,Q);return R.concat(se)}function S(w,M){if(!w||!M||w.charAt(0)!=M.charAt(0))return 0;for(var $=0,ee=Math.min(w.length,M.length),B=ee,ne=0;$1?(0!==$&&0!==ee&&(0!==(Y=S(ne,B))&&(M-$-ee>0&&w[M-$-ee-1][0]==H?w[M-$-ee-1][1]+=ne.substring(0,Y):(w.splice(0,0,[H,ne.substring(0,Y)]),M++),ne=ne.substring(Y),B=B.substring(Y)),0!==(Y=I(ne,B))&&(w[M][1]=ne.substring(ne.length-Y)+w[M][1],ne=ne.substring(0,ne.length-Y),B=B.substring(0,B.length-Y))),0===$?w.splice(M-ee,$+ee,[ae,ne]):0===ee?w.splice(M-$,$+ee,[L,B]):w.splice(M-$-ee,$+ee,[L,B],[ae,ne]),M=M-$-ee+($?1:0)+(ee?1:0)+1):0!==M&&w[M-1][0]==H?(w[M-1][1]+=w[M][1],w.splice(M,1)):M++,ee=0,$=0,B="",ne=""}""===w[w.length-1][1]&&w.pop();var Q=!1;for(M=1;M=0&&ee>=M-1;ee--)if(ee+1=0;C--)if(y[C]!=D[C])return!1;for(C=y.length-1;C>=0;C--)if(!F(I[k=y[C]],v[k],T))return!1;return typeof I==typeof v}(I,v,T))};function N(I){return null==I}function O(I){return!(!I||"object"!=typeof I||"number"!=typeof I.length||"function"!=typeof I.copy||"function"!=typeof I.slice||I.length>0&&"number"!=typeof I[0])}},function(xe,z){function L(ae){var H=[];for(var Z in ae)H.push(Z);return H}(xe.exports="function"==typeof Object.keys?Object.keys:L).shim=L},function(xe,z){var L="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function ae(Z){return"[object Arguments]"==Object.prototype.toString.call(Z)}function H(Z){return Z&&"object"==typeof Z&&"number"==typeof Z.length&&Object.prototype.hasOwnProperty.call(Z,"callee")&&!Object.prototype.propertyIsEnumerable.call(Z,"callee")||!1}(z=xe.exports=L?ae:H).supported=ae,z.unsupported=H},function(xe,z){"use strict";var L=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,H=function(N){return"function"==typeof Array.isArray?Array.isArray(N):"[object Array]"===ae.call(N)},Z=function(N){if(!N||"[object Object]"!==ae.call(N))return!1;var I,O=L.call(N,"constructor"),S=N.constructor&&N.constructor.prototype&&L.call(N.constructor.prototype,"isPrototypeOf");if(N.constructor&&!O&&!S)return!1;for(I in N);return typeof I>"u"||L.call(N,I)};xe.exports=function F(){var N,O,S,I,v,T,C=arguments[0],k=1,y=arguments.length,D=!1;for("boolean"==typeof C?(D=C,C=arguments[1]||{},k=2):("object"!=typeof C&&"function"!=typeof C||null==C)&&(C={});k0?I:void 0},diff:function(N,O){"object"!=typeof N&&(N={}),"object"!=typeof O&&(O={});var S=Object.keys(N).concat(Object.keys(O)).reduce(function(I,v){return ae(N[v],O[v])||(I[v]=void 0===O[v]?null:O[v]),I},{});return Object.keys(S).length>0?S:void 0},transform:function(N,O,S){if("object"!=typeof N)return O;if("object"==typeof O){if(!S)return O;var I=Object.keys(O).reduce(function(v,T){return void 0===N[T]&&(v[T]=O[T]),v},{});return Object.keys(I).length>0?I:void 0}}},iterator:function(N){return new F(N)},length:function(N){return"number"==typeof N.delete?N.delete:"number"==typeof N.retain?N.retain:"string"==typeof N.insert?N.insert.length:1}};function F(N){this.ops=N,this.index=0,this.offset=0}F.prototype.hasNext=function(){return this.peekLength()<1/0},F.prototype.next=function(N){N||(N=1/0);var O=this.ops[this.index];if(O){var S=this.offset,I=Z.length(O);if(N>=I-S?(N=I-S,this.index+=1,this.offset=0):this.offset+=N,"number"==typeof O.delete)return{delete:N};var v={};return O.attributes&&(v.attributes=O.attributes),"number"==typeof O.retain?v.retain=N:v.insert="string"==typeof O.insert?O.insert.substr(S,N):O.insert,v}return{retain:1/0}},F.prototype.peek=function(){return this.ops[this.index]},F.prototype.peekLength=function(){return this.ops[this.index]?Z.length(this.ops[this.index])-this.offset:1/0},F.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},xe.exports=Z},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pe){return typeof pe}:function(pe){return pe&&"function"==typeof Symbol&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},H=function(_e,he){if(Array.isArray(_e))return _e;if(Symbol.iterator in Object(_e))return function pe(_e,he){var de=[],ce=!0,ie=!1,J=void 0;try{for(var Ie,oe=_e[Symbol.iterator]();!(ce=(Ie=oe.next()).done)&&(de.push(Ie.value),!he||de.length!==he);ce=!0);}catch(re){ie=!0,J=re}finally{try{!ce&&oe.return&&oe.return()}finally{if(ie)throw J}}return de}(_e,he);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function pe(_e,he){for(var de=0;de=ie&&!ye.endsWith("\n")&&(ce=!0),de.scroll.insertAt(J,ye);var Be=de.scroll.line(J),Me=H(Be,2),Ue=Me[0],Bn=Me[1],at=(0,Y.default)({},(0,D.bubbleFormats)(Ue));if(Ue instanceof w.default){var Fe=Ue.descendant(v.default.Leaf,Bn),Re=H(Fe,1);at=(0,Y.default)(at,(0,D.bubbleFormats)(Re[0]))}re=S.default.attributes.diff(at,re)||{}}else if("object"===ae(oe.insert)){var rt=Object.keys(oe.insert)[0];if(null==rt)return J;de.scroll.insertAt(J,rt,oe.insert[rt])}ie+=Ie}return Object.keys(re).forEach(function(ot){de.scroll.formatAt(J,Ie,ot,re[ot])}),J+Ie},0),he.reduce(function(J,oe){return"number"==typeof oe.delete?(de.scroll.deleteAt(J,oe.delete),J):J+(oe.retain||oe.insert.length||1)},0),this.scroll.batch=!1,this.scroll.optimize(),this.update(he)}},{key:"deleteText",value:function(he,de){return this.scroll.deleteAt(he,de),this.update((new N.default).retain(he).delete(de))}},{key:"formatLine",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(ie).forEach(function(J){var oe=ce.scroll.lines(he,Math.max(de,1)),Ie=de;oe.forEach(function(re){var ye=re.length();if(re instanceof C.default){var Be=he-re.offset(ce.scroll),Me=re.newlineIndex(Be+Ie)-Be+1;re.formatAt(Be,Me,J,ie[J])}else re.format(J,ie[J]);Ie-=ye})}),this.scroll.optimize(),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"formatText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de,J,ie[J])}),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"getContents",value:function(he,de){return this.delta.slice(he,he+de)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(he,de){return he.concat(de.delta())},new N.default)}},{key:"getFormat",value:function(he){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ce=[],ie=[];0===de?this.scroll.path(he).forEach(function(oe){var re=H(oe,1)[0];re instanceof w.default?ce.push(re):re instanceof v.default.Leaf&&ie.push(re)}):(ce=this.scroll.lines(he,de),ie=this.scroll.descendants(v.default.Leaf,he,de));var J=[ce,ie].map(function(oe){if(0===oe.length)return{};for(var Ie=(0,D.bubbleFormats)(oe.shift());Object.keys(Ie).length>0;){var re=oe.shift();if(null==re)return Ie;Ie=U((0,D.bubbleFormats)(re),Ie)}return Ie});return Y.default.apply(Y.default,J)}},{key:"getText",value:function(he,de){return this.getContents(he,de).filter(function(ce){return"string"==typeof ce.insert}).map(function(ce){return ce.insert}).join("")}},{key:"insertEmbed",value:function(he,de,ce){return this.scroll.insertAt(he,de,ce),this.update((new N.default).retain(he).insert(function R(pe,_e,he){return _e in pe?Object.defineProperty(pe,_e,{value:he,enumerable:!0,configurable:!0,writable:!0}):pe[_e]=he,pe}({},de,ce)))}},{key:"insertText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return de=de.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(he,de),Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de.length,J,ie[J])}),this.update((new N.default).retain(he).insert(de,(0,$.default)(ie)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var he=this.scroll.children.head;return he.length()<=1&&0==Object.keys(he.formats()).length}},{key:"removeFormat",value:function(he,de){var ce=this.getText(he,de),ie=this.scroll.line(he+de),J=H(ie,2),oe=J[0],Ie=J[1],re=0,ye=new N.default;null!=oe&&(re=oe instanceof C.default?oe.newlineIndex(Ie)-Ie+1:oe.length()-Ie,ye=oe.delta().slice(Ie,Ie+re-1).insert("\n"));var Me=this.getContents(he,de+re).diff((new N.default).insert(ce).concat(ye)),Ue=(new N.default).retain(he).concat(Me);return this.applyDelta(Ue)}},{key:"update",value:function(he){var oe,Ie,re,ye,Be,Me,ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,J=this.delta;return 1===ce.length&&"characterData"===ce[0].type&&v.default.find(ce[0].target)?(oe=v.default.find(ce[0].target),Ie=(0,D.bubbleFormats)(oe),re=oe.offset(this.scroll),ye=ce[0].oldValue.replace(y.default.CONTENTS,""),Be=(new N.default).insert(ye),Me=(new N.default).insert(oe.value()),he=(new N.default).retain(re).concat(Be.diff(Me,ie)).reduce(function(Bn,at){return at.insert?Bn.insert(at.insert,Ie):Bn.push(at)},new N.default),this.delta=J.compose(he)):(this.delta=this.getDelta(),(!he||!(0,B.default)(J.compose(he),this.delta))&&(he=J.diff(this.delta,ie))),he}}]),pe}();function U(pe,_e){return Object.keys(_e).reduce(function(he,de){return null==pe[de]||(_e[de]===pe[de]?he[de]=_e[de]:Array.isArray(_e[de])?_e[de].indexOf(pe[de])<0&&(he[de]=_e[de].concat([pe[de]])):he[de]=[_e[de],pe[de]]),he},{})}z.default=X},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Code=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R=R+se)){var pe=this.newlineIndex(R,!0)+1,_e=ue-pe+1,he=this.isolate(pe,_e),de=he.next;he.format(X,U),de instanceof Y&&de.formatAt(0,R-pe+se-_e,X,U)}}}},{key:"insertAt",value:function(R,se,X){if(null==X){var U=this.descendant(y.default,R),ue=ae(U,2);ue[0].insertAt(ue[1],se)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?R:R+1}},{key:"newlineIndex",value:function(R){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,R).lastIndexOf("\n");var X=this.domNode.textContent.slice(R).indexOf("\n");return X>-1?R+X:-1}},{key:"optimize",value:function(){this.domNode.textContent.endsWith("\n")||this.appendChild(S.default.create("text","\n")),Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"optimize",this).call(this);var R=this.next;null!=R&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(),R.moveChildren(this),R.remove())}},{key:"replace",value:function(R){Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(se){var X=S.default.find(se);null==X?se.parentNode.removeChild(se):X instanceof S.default.Embed?X.remove():X.unwrap()})}}],[{key:"create",value:function(R){var se=Z(Y.__proto__||Object.getPrototypeOf(Y),"create",this).call(this,R);return se.setAttribute("spellcheck",!1),se}},{key:"formats",value:function(){return!0}}]),Y}(v.default);B.blotName="code-block",B.tagName="PRE",B.TAB=" ",z.Code=ee,z.default=B},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BlockEmbed=z.bubbleFormats=void 0;var ae=function(){function X(U,ue){for(var pe=0;pe0&&(pe1&&void 0!==arguments[1]&&arguments[1];if(_e&&(0===pe||pe>=this.length()-1)){var he=this.clone();return 0===pe?(this.parent.insertBefore(he,this),this):(this.parent.insertBefore(he,this.next),he)}var de=H(U.prototype.__proto__||Object.getPrototypeOf(U.prototype),"split",this).call(this,pe,_e);return this.cache={},de}}]),U}(I.default.Block);function se(X){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==X||("function"==typeof X.formats&&(U=(0,F.default)(U,X.formats())),null==X.parent||"scroll"==X.parent.blotName||X.parent.statics.scope!==X.statics.scope)?U:se(X.parent,U)}R.blotName="block",R.tagName="P",R.defaultChild="break",R.allowedChildren=[D.default,k.default,M.default],z.bubbleFormats=se,z.BlockEmbed=Q,z.default=R},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y0){var $=this.parent.isolate(this.offset(),this.length());this.moveChildren($),$.wrap(this)}}}],[{key:"compare",value:function($,ee){var B=w.order.indexOf($),ne=w.order.indexOf(ee);return B>=0||ne>=0?B-ne:$===ee?0:$1?N-1:0),S=1;S"u"&&(C=!0),typeof k>"u"&&(k=1/0),function ee(B,ne){if(null===B)return null;if(0===ne)return B;var Y,Q;if("object"!=typeof B)return B;if(B instanceof ae)Y=new ae;else if(B instanceof H)Y=new H;else if(B instanceof Z)Y=new Z(function(re,ye){B.then(function(Be){re(ee(Be,ne-1))},function(Be){ye(ee(Be,ne-1))})});else if(F.__isArray(B))Y=[];else if(F.__isRegExp(B))Y=new RegExp(B.source,v(B)),B.lastIndex&&(Y.lastIndex=B.lastIndex);else if(F.__isDate(B))Y=new Date(B.getTime());else{if($&&Buffer.isBuffer(B))return Y=new Buffer(B.length),B.copy(Y),Y;B instanceof Error?Y=Object.create(B):typeof y>"u"?(Q=Object.getPrototypeOf(B),Y=Object.create(Q)):(Y=Object.create(y),Q=y)}if(C){var R=w.indexOf(B);if(-1!=R)return M[R];w.push(B),M.push(Y)}if(B instanceof ae)for(var se=B.keys();!(X=se.next()).done;){var U=ee(X.value,ne-1),ue=ee(B.get(X.value),ne-1);Y.set(U,ue)}if(B instanceof H)for(var pe=B.keys();;){var X;if((X=pe.next()).done)break;var _e=ee(X.value,ne-1);Y.add(_e)}for(var he in B){var de;Q&&(de=Object.getOwnPropertyDescriptor(Q,he)),(!de||null!=de.set)&&(Y[he]=ee(B[he],ne-1))}if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(B);for(he=0;he1&&void 0!==arguments[1]?arguments[1]:{};(function L(H,Z){if(!(H instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,H),this.quill=Z,this.options=F};ae.DEFAULTS={},z.default=ae},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Range=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R1&&void 0!==arguments[1]?arguments[1]:0;w(this,ne),this.index=Y,this.length=Q},ee=function(){function ne(Y,Q){var R=this;w(this,ne),this.emitter=Q,this.scroll=Y,this.composing=!1,this.root=this.scroll.domNode,this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){R.composing=!1}),this.cursor=F.default.create("cursor",this),this.lastRange=this.savedRange=new $(0,0),["keyup","mouseup","mouseleave","touchend","touchleave","focus","blur"].forEach(function(se){R.root.addEventListener(se,function(){setTimeout(R.update.bind(R,T.default.sources.USER),100)})}),this.emitter.on(T.default.events.EDITOR_CHANGE,function(se,X){se===T.default.events.TEXT_CHANGE&&X.length()>0&&R.update(T.default.sources.SILENT)}),this.emitter.on(T.default.events.SCROLL_BEFORE_UPDATE,function(){var se=R.getNativeRange();null!=se&&se.start.node!==R.cursor.textNode&&R.emitter.once(T.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(se.start.node,se.start.offset,se.end.node,se.end.offset)}catch{}})}),this.update(T.default.sources.SILENT)}return H(ne,[{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Q,R){if(null==this.scroll.whitelist||this.scroll.whitelist[Q]){this.scroll.update();var se=this.getNativeRange();if(null!=se&&se.native.collapsed&&!F.default.query(Q,F.default.Scope.BLOCK)){if(se.start.node!==this.cursor.textNode){var X=F.default.find(se.start.node,!1);if(null==X)return;if(X instanceof F.default.Leaf){var U=X.split(se.start.offset);X.parent.insertBefore(this.cursor,U)}else X.insertBefore(this.cursor,se.start.node);this.cursor.attach()}this.cursor.format(Q,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Q){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,se=this.scroll.length();Q=Math.min(Q,se-1),R=Math.min(Q+R,se-1)-Q;var X=void 0,U=void 0,ue=this.scroll.leaf(Q),pe=ae(ue,2),_e=pe[0],he=pe[1];if(null==_e)return null;var de=_e.position(he,!0),ce=ae(de,2);U=ce[0],he=ce[1];var ie=document.createRange();if(R>0){ie.setStart(U,he);var J=this.scroll.leaf(Q+R),oe=ae(J,2);if(null==(_e=oe[0]))return null;var Ie=_e.position(he=oe[1],!0),re=ae(Ie,2);ie.setEnd(U=re[0],he=re[1]),X=ie.getBoundingClientRect()}else{var ye="left",Be=void 0;U instanceof Text?(he0&&(ye="right")),X={height:Be.height,left:Be[ye],width:0,top:Be.top}}var Me=this.root.parentNode.getBoundingClientRect();return{left:X.left-Me.left,right:X.left+X.width-Me.left,top:X.top-Me.top,bottom:X.top+X.height-Me.top,height:X.height,width:X.width}}},{key:"getNativeRange",value:function(){var Q=document.getSelection();if(null==Q||Q.rangeCount<=0)return null;var R=Q.getRangeAt(0);if(null==R||!B(this.root,R.startContainer)||!R.collapsed&&!B(this.root,R.endContainer))return null;var se={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[se.start,se.end].forEach(function(X){for(var U=X.node,ue=X.offset;!(U instanceof Text)&&U.childNodes.length>0;)if(U.childNodes.length>ue)U=U.childNodes[ue],ue=0;else{if(U.childNodes.length!==ue)break;ue=(U=U.lastChild)instanceof Text?U.data.length:U.childNodes.length+1}X.node=U,X.offset=ue}),M.info("getNativeRange",se),se}},{key:"getRange",value:function(){var Q=this,R=this.getNativeRange();if(null==R)return[null,null];var se=[[R.start.node,R.start.offset]];R.native.collapsed||se.push([R.end.node,R.end.offset]);var X=se.map(function(pe){var _e=ae(pe,2),he=_e[0],de=_e[1],ce=F.default.find(he,!0),ie=ce.offset(Q.scroll);return 0===de?ie:ce instanceof F.default.Container?ie+ce.length():ie+ce.index(he,de)}),U=Math.min.apply(Math,D(X)),ue=Math.max.apply(Math,D(X));return ue=Math.min(ue,this.scroll.length()-1),[new $(U,ue-U),R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"scrollIntoView",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastRange;if(null!=Q){var R=this.getBounds(Q.index,Q.length);if(null!=R)if(this.root.offsetHeight2&&void 0!==arguments[2]?arguments[2]:Q,X=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,U=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(M.info("setNativeRange",Q,R,se,X),null==Q||null!=this.root.parentNode&&null!=Q.parentNode&&null!=se.parentNode){var ue=document.getSelection();if(null!=ue)if(null!=Q){this.hasFocus()||this.root.focus();var pe=(this.getNativeRange()||{}).native;if(null==pe||U||Q!==pe.startContainer||R!==pe.startOffset||se!==pe.endContainer||X!==pe.endOffset){var _e=document.createRange();_e.setStart(Q,R),_e.setEnd(se,X),ue.removeAllRanges(),ue.addRange(_e)}}else ue.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Q){var U,ue,pe,R=this,se=arguments.length>1&&void 0!==arguments[1]&&arguments[1],X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.default.sources.API;"string"==typeof se&&(X=se,se=!1),M.info("setRange",Q),null!=Q?(U=Q.collapsed?[Q.index]:[Q.index,Q.index+Q.length],ue=[],pe=R.scroll.length(),U.forEach(function(_e,he){_e=Math.min(pe-1,_e);var ce=R.scroll.leaf(_e),ie=ae(ce,2),oe=ie[1],Ie=ie[0].position(oe,0!==he),re=ae(Ie,2);ue.push(re[0],oe=re[1])}),ue.length<2&&(ue=ue.concat(ue)),R.setNativeRange.apply(R,D(ue).concat([se]))):this.setNativeRange(null),this.update(X)}},{key:"update",value:function(){var R,Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.default.sources.USER,se=this.lastRange,X=this.getRange(),U=ae(X,2);if(this.lastRange=U[0],R=U[1],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,I.default)(se,this.lastRange)){var ue;!this.composing&&null!=R&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var _e,pe=[T.default.events.SELECTION_CHANGE,(0,O.default)(this.lastRange),(0,O.default)(se),Q];(ue=this.emitter).emit.apply(ue,[T.default.events.EDITOR_CHANGE].concat(pe)),Q!==T.default.sources.SILENT&&(_e=this.emitter).emit.apply(_e,pe)}}}]),ne}();function B(ne,Y){return Y instanceof Text&&(Y=Y.parentNode),ne.contains(Y)}z.Range=$,z.default=ee},function(xe,z){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var L=function(){function Z(F,N){for(var O=0;O0)||_e instanceof I.BlockEmbed||ie instanceof I.BlockEmbed||(ie instanceof w.default&&ie.deleteAt(ie.length()-1,1),_e.moveChildren(ie,ie.children.head instanceof C.default?null:ie.children.head),_e.remove()),this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(X,U,ue,pe){null!=this.whitelist&&!this.whitelist[ue]||(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,X,U,ue,pe),this.optimize())}},{key:"insertAt",value:function(X,U,ue){if(null==ue||null==this.whitelist||this.whitelist[U]){if(X>=this.length())if(null==ue||null==N.default.query(U,N.default.Scope.BLOCK)){var pe=N.default.create(this.statics.defaultChild);this.appendChild(pe),null==ue&&U.endsWith("\n")&&(U=U.slice(0,-1)),pe.insertAt(0,U,ue)}else{var _e=N.default.create(U,ue);this.appendChild(_e)}else Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,X,U,ue);this.optimize()}}},{key:"insertBefore",value:function(X,U){if(X.statics.scope===N.default.Scope.INLINE_BLOT){var ue=N.default.create(this.statics.defaultChild);ue.appendChild(X),X=ue}Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,X,U)}},{key:"leaf",value:function(X){return this.path(X).pop()||[null,-1]}},{key:"line",value:function(X){return X===this.length()?this.line(X-1):this.descendant(ne,X)}},{key:"lines",value:function(){return function pe(_e,he,de){var ce=[],ie=de;return _e.children.forEachAt(he,de,function(J,oe,Ie){ne(J)?ce.push(J):J instanceof N.default.Container&&(ce=ce.concat(pe(J,oe,ie))),ie-=Ie}),ce}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!0!==this.batch&&(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,X),X.length>0&&this.emitter.emit(S.default.events.SCROLL_OPTIMIZE,X))}},{key:"path",value:function(X){return Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,X).slice(1)}},{key:"update",value:function(X){if(!0!==this.batch){var U=S.default.sources.USER;"string"==typeof X&&(U=X),Array.isArray(X)||(X=this.observer.takeRecords()),X.length>0&&this.emitter.emit(S.default.events.SCROLL_BEFORE_UPDATE,U,X),Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,X.concat([])),X.length>0&&this.emitter.emit(S.default.events.SCROLL_UPDATE,U,X)}}}]),R}(N.default.Scroll);Y.blotName="scroll",Y.className="ql-editor",Y.tagName="DIV",Y.defaultChild="block",Y.allowedChildren=[v.default,I.BlockEmbed,y.default],z.default=Y},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.matchText=z.matchSpacing=z.matchNewline=z.matchBlot=z.matchAttributor=z.default=void 0;var ae=function(Re,Je){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return function Fe(Re,Je){var rt=[],ot=!0,Dt=!1,Xt=void 0;try{for(var ni,rn=Re[Symbol.iterator]();!(ot=(ni=rn.next()).done)&&(rt.push(ni.value),!Je||rt.length!==Je);ot=!0);}catch(Jo){Dt=!0,Xt=Jo}finally{try{!ot&&rn.return&&rn.return()}finally{if(Dt)throw Xt}}return rt}(Re,Je);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function Fe(Re,Je){for(var rt=0;rt0&&(Re=Re.compose((new F.default).retain(Re.length(),Je))),parseFloat(rt.textIndent||0)>0&&(Re=(new F.default).insert("\t").concat(Re)),Re}],["b",oe.bind(oe,"bold")],["i",oe.bind(oe,"italic")],["style",function Be(){return new F.default}]],pe=[y.AlignAttribute,M.DirectionAttribute].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),_e=[y.AlignStyle,D.BackgroundStyle,w.ColorStyle,M.DirectionStyle,$.FontStyle,ee.SizeStyle].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),he=function(Fe){function Re(Je,rt){!function Q(Fe,Re){if(!(Fe instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Re);var ot=function R(Fe,Re){if(!Fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Re||"object"!=typeof Re&&"function"!=typeof Re?Fe:Re}(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Je,rt));return ot.quill.root.addEventListener("paste",ot.onPaste.bind(ot)),ot.container=ot.quill.addContainer("ql-clipboard"),ot.container.setAttribute("contenteditable",!0),ot.container.setAttribute("tabindex",-1),ot.matchers=[],ue.concat(ot.options.matchers).forEach(function(Dt){ot.addMatcher.apply(ot,function Y(Fe){if(Array.isArray(Fe)){for(var Re=0,Je=Array(Fe.length);Re2&&void 0!==arguments[2]?arguments[2]:I.default.sources.API;if("string"==typeof rt)return this.quill.setContents(this.convert(rt),ot);var Xt=this.convert(ot);return this.quill.updateContents((new F.default).retain(rt).concat(Xt),Dt)}},{key:"onPaste",value:function(rt){var ot=this;if(!rt.defaultPrevented&&this.quill.isEnabled()){var Dt=this.quill.getSelection(),Xt=(new F.default).retain(Dt.index),rn=this.quill.scrollingContainer.scrollTop;this.container.focus(),setTimeout(function(){ot.quill.selection.update(I.default.sources.SILENT),Xt=Xt.concat(ot.convert()).delete(Dt.length),ot.quill.updateContents(Xt,I.default.sources.USER),ot.quill.setSelection(Xt.length()-Dt.length,I.default.sources.SILENT),ot.quill.scrollingContainer.scrollTop=rn,ot.quill.selection.scrollIntoView()},1)}}},{key:"prepareMatching",value:function(){var rt=this,ot=[],Dt=[];return this.matchers.forEach(function(Xt){var rn=ae(Xt,2),ni=rn[0],Jo=rn[1];switch(ni){case Node.TEXT_NODE:Dt.push(Jo);break;case Node.ELEMENT_NODE:ot.push(Jo);break;default:[].forEach.call(rt.container.querySelectorAll(ni),function(an){an[U]=an[U]||[],an[U].push(Jo)})}}),[ot,Dt]}}]),Re}(k.default);function de(Fe){if(Fe.nodeType!==Node.ELEMENT_NODE)return{};var Re="__ql-computed-style";return Fe[Re]||(Fe[Re]=window.getComputedStyle(Fe))}function ce(Fe,Re){for(var Je="",rt=Fe.ops.length-1;rt>=0&&Je.length-1}function J(Fe,Re,Je){return Fe.nodeType===Fe.TEXT_NODE?Je.reduce(function(rt,ot){return ot(Fe,rt)},new F.default):Fe.nodeType===Fe.ELEMENT_NODE?[].reduce.call(Fe.childNodes||[],function(rt,ot){var Dt=J(ot,Re,Je);return ot.nodeType===Fe.ELEMENT_NODE&&(Dt=Re.reduce(function(Xt,rn){return rn(ot,Xt)},Dt),Dt=(ot[U]||[]).reduce(function(Xt,rn){return rn(ot,Xt)},Dt)),rt.concat(Dt)},new F.default):new F.default}function oe(Fe,Re,Je){return Je.compose((new F.default).retain(Je.length(),ne({},Fe,!0)))}function Ie(Fe,Re){var Je=O.default.Attributor.Attribute.keys(Fe),rt=O.default.Attributor.Class.keys(Fe),ot=O.default.Attributor.Style.keys(Fe),Dt={};return Je.concat(rt).concat(ot).forEach(function(Xt){var rn=O.default.query(Xt,O.default.Scope.ATTRIBUTE);null!=rn&&(Dt[rn.attrName]=rn.value(Fe),Dt[rn.attrName])||(null!=pe[Xt]&&(Dt[(rn=pe[Xt]).attrName]=rn.value(Fe)),null!=_e[Xt]&&(Dt[(rn=_e[Xt]).attrName]=rn.value(Fe)))}),Object.keys(Dt).length>0&&(Re=Re.compose((new F.default).retain(Re.length(),Dt))),Re}function re(Fe,Re){var Je=O.default.query(Fe);if(null==Je)return Re;if(Je.prototype instanceof O.default.Embed){var rt={},ot=Je.value(Fe);null!=ot&&(rt[Je.blotName]=ot,Re=(new F.default).insert(rt,Je.formats(Fe)))}else if("function"==typeof Je.formats){var Dt=ne({},Je.blotName,Je.formats(Fe));Re=Re.compose((new F.default).retain(Re.length(),Dt))}return Re}function Me(Fe,Re){return ie(Fe)&&!ce(Re,"\n")&&Re.insert("\n"),Re}function Ue(Fe,Re){if(ie(Fe)&&null!=Fe.nextElementSibling&&!ce(Re,"\n\n")){var Je=Fe.offsetHeight+parseFloat(de(Fe).marginTop)+parseFloat(de(Fe).marginBottom);Fe.nextElementSibling.offsetTop>Fe.offsetTop+1.5*Je&&Re.insert("\n")}return Re}function at(Fe,Re){var Je=Fe.data;if("O:P"===Fe.parentNode.tagName)return Re.insert(Je.trim());if(!de(Fe.parentNode).whiteSpace.startsWith("pre")){var rt=function(Dt,Xt){return(Xt=Xt.replace(/[^\u00a0]/g,"")).length<1&&Dt?" ":Xt};Je=(Je=Je.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,rt.bind(rt,!0)),(null==Fe.previousSibling&&ie(Fe.parentNode)||null!=Fe.previousSibling&&ie(Fe.previousSibling))&&(Je=Je.replace(/^\s+/,rt.bind(rt,!1))),(null==Fe.nextSibling&&ie(Fe.parentNode)||null!=Fe.nextSibling&&ie(Fe.nextSibling))&&(Je=Je.replace(/\s+$/,rt.bind(rt,!1)))}return Re.insert(Je)}he.DEFAULTS={matchers:[]},z.default=he,z.matchAttributor=Ie,z.matchBlot=re,z.matchNewline=Me,z.matchSpacing=Ue,z.matchText=at},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.AlignStyle=z.AlignClass=z.AlignAttribute=void 0;var H=function Z(I){return I&&I.__esModule?I:{default:I}}(L(2));var F={scope:H.default.Scope.BLOCK,whitelist:["right","center","justify"]},N=new H.default.Attributor.Attribute("align","align",F),O=new H.default.Attributor.Class("align","ql-align",F),S=new H.default.Attributor.Style("align","text-align",F);z.AlignAttribute=N,z.AlignClass=O,z.AlignStyle=S},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.BackgroundStyle=z.BackgroundClass=void 0;var H=function F(S){return S&&S.__esModule?S:{default:S}}(L(2)),Z=L(47);var N=new H.default.Attributor.Class("background","ql-bg",{scope:H.default.Scope.INLINE}),O=new Z.ColorAttributor("background","background-color",{scope:H.default.Scope.INLINE});z.BackgroundClass=N,z.BackgroundStyle=O},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.ColorStyle=z.ColorClass=z.ColorAttributor=void 0;var ae=function(){function k(y,D){for(var w=0;wY&&this.stack.undo.length>0){var Q=this.stack.undo.pop();ne=ne.compose(Q.undo),ee=Q.redo.compose(ee)}else this.lastRecorded=Y;this.stack.undo.push({redo:ee,undo:ne}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ee){this.stack.undo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)}),this.stack.redo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),M}(I(L(39)).default);function D(w){var M=w.reduce(function(ee,B){return ee+(B.delete||0)},0),$=w.length()-M;return function y(w){var M=w.ops[w.ops.length-1];return null!=M&&(null!=M.insert?"string"==typeof M.insert&&M.insert.endsWith("\n"):null!=M.attributes&&Object.keys(M.attributes).some(function($){return null!=Z.default.query($,Z.default.Scope.BLOCK)}))}(w)&&($-=1),$}k.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},z.default=k,z.getLastChangeIndex=D},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},H=function(oe,Ie){if(Array.isArray(oe))return oe;if(Symbol.iterator in Object(oe))return function J(oe,Ie){var re=[],ye=!0,Be=!1,Me=void 0;try{for(var Bn,Ue=oe[Symbol.iterator]();!(ye=(Bn=Ue.next()).done)&&(re.push(Bn.value),!Ie||re.length!==Ie);ye=!0);}catch(at){Be=!0,Me=at}finally{try{!ye&&Ue.return&&Ue.return()}finally{if(Be)throw Me}}return re}(oe,Ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function J(oe,Ie){for(var re=0;re1&&void 0!==arguments[1]?arguments[1]:{},Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Me=ie(re);if(null==Me||null==Me.key)return se.warn("Attempted to add invalid keyboard binding",Me);"function"==typeof ye&&(ye={handler:ye}),"function"==typeof Be&&(Be={handler:Be}),Me=(0,v.default)(Me,ye,Be),this.bindings[Me.key]=this.bindings[Me.key]||[],this.bindings[Me.key].push(Me)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(ye){if(!ye.defaultPrevented){var Me=(re.bindings[ye.which||ye.keyCode]||[]).filter(function(jn){return oe.match(ye,jn)});if(0!==Me.length){var Ue=re.quill.getSelection();if(null!=Ue&&re.quill.hasFocus()){var Bn=re.quill.scroll.line(Ue.index),at=H(Bn,2),Fe=at[0],Re=at[1],Je=re.quill.scroll.leaf(Ue.index),rt=H(Je,2),ot=rt[0],Dt=rt[1],Xt=0===Ue.length?[ot,Dt]:re.quill.scroll.leaf(Ue.index+Ue.length),rn=H(Xt,2),ni=rn[0],Jo=rn[1],an=ot instanceof y.default.Text?ot.value().slice(0,Dt):"",As=ni instanceof y.default.Text?ni.value().slice(Jo):"",bo={collapsed:0===Ue.length,empty:0===Ue.length&&Fe.length()<=1,format:re.quill.getFormat(Ue),offset:Re,prefix:an,suffix:As};Me.some(function(jn){if(null!=jn.collapsed&&jn.collapsed!==bo.collapsed||null!=jn.empty&&jn.empty!==bo.empty||null!=jn.offset&&jn.offset!==bo.offset)return!1;if(Array.isArray(jn.format)){if(jn.format.every(function(yo){return null==bo.format[yo]}))return!1}else if("object"===ae(jn.format)&&!Object.keys(jn.format).every(function(yo){return!0===jn.format[yo]?null!=bo.format[yo]:!1===jn.format[yo]?null==bo.format[yo]:(0,S.default)(jn.format[yo],bo.format[yo])}))return!1;return!(null!=jn.prefix&&!jn.prefix.test(bo.prefix)||null!=jn.suffix&&!jn.suffix.test(bo.suffix))&&!0!==jn.handler.call(re,Ue,bo)})&&ye.preventDefault()}}}})}}]),oe}(B.default);function ue(J,oe){if(0!==J.index){var Ie=this.quill.scroll.line(J.index),re=H(Ie,1),Be={};if(0===oe.offset){var Me=re[0].formats(),Ue=this.quill.getFormat(J.index-1,1);Be=C.default.attributes.diff(Me,Ue)||{}}this.quill.deleteText(J.index-1,1,w.default.sources.USER),Object.keys(Be).length>0&&this.quill.formatLine(J.index-1,1,Be,w.default.sources.USER),this.quill.selection.scrollIntoView()}}function pe(J){J.index>=this.quill.getLength()-1||this.quill.deleteText(J.index,1,w.default.sources.USER)}function _e(J){this.quill.deleteText(J,w.default.sources.USER),this.quill.setSelection(J.index,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}function he(J,oe){var Ie=this;J.length>0&&this.quill.scroll.deleteAt(J.index,J.length);var re=Object.keys(oe.format).reduce(function(ye,Be){return y.default.query(Be,y.default.Scope.BLOCK)&&!Array.isArray(oe.format[Be])&&(ye[Be]=oe.format[Be]),ye},{});this.quill.insertText(J.index,"\n",re,w.default.sources.USER),this.quill.selection.scrollIntoView(),Object.keys(oe.format).forEach(function(ye){null==re[ye]&&(Array.isArray(oe.format[ye])||"link"!==ye&&Ie.quill.format(ye,oe.format[ye],w.default.sources.USER))})}function de(J){return{key:U.keys.TAB,shiftKey:!J,format:{"code-block":!0},handler:function(Ie){var re=y.default.query("code-block"),ye=Ie.index,Be=Ie.length,Me=this.quill.scroll.descendant(re,ye),Ue=H(Me,2),Bn=Ue[0],at=Ue[1];if(null!=Bn){var Fe=this.quill.scroll.offset(Bn),Re=Bn.newlineIndex(at,!0)+1,Je=Bn.newlineIndex(Fe+at+Be),rt=Bn.domNode.textContent.slice(Re,Je).split("\n");at=0,rt.forEach(function(ot,Dt){J?(Bn.insertAt(Re+at,re.TAB),at+=re.TAB.length,0===Dt?ye+=re.TAB.length:Be+=re.TAB.length):ot.startsWith(re.TAB)&&(Bn.deleteAt(Re+at,re.TAB.length),at-=re.TAB.length,0===Dt?ye-=re.TAB.length:Be-=re.TAB.length),at+=ot.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(ye,Be,w.default.sources.SILENT)}}}}function ce(J){return{key:J[0].toUpperCase(),shortKey:!0,handler:function(Ie,re){this.quill.format(J,!re.format[J],w.default.sources.USER)}}}function ie(J){if("string"==typeof J||"number"==typeof J)return ie({key:J});if("object"===(typeof J>"u"?"undefined":ae(J))&&(J=(0,N.default)(J,!1)),"string"==typeof J.key)if(null!=U.keys[J.key.toUpperCase()])J.key=U.keys[J.key.toUpperCase()];else{if(1!==J.key.length)return null;J.key=J.key.toUpperCase().charCodeAt(0)}return J}U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:ce("bold"),italic:ce("italic"),underline:ce("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,format:["blockquote","indent","list"],offset:0,handler:function(oe,Ie){null!=Ie.format.indent?this.quill.format("indent","-1",w.default.sources.USER):null!=Ie.format.blockquote?this.quill.format("blockquote",!1,w.default.sources.USER):null!=Ie.format.list&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(oe){this.quill.deleteText(oe.index-1,1,w.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(oe,Ie){Ie.collapsed||this.quill.scroll.deleteAt(oe.index,oe.length),this.quill.insertText(oe.index,"\t",w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(oe,Ie){this.quill.format("list",!1,w.default.sources.USER),Ie.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n");var Ie=this.quill.scroll.line(oe.index+1);H(Ie,1)[0].format("list","unchecked"),this.quill.update(w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n"),this.quill.formatText(oe.index+1,1,"header",!1,w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^(1\.|-)$/,handler:function(oe,Ie){var re=Ie.prefix.length;this.quill.scroll.deleteAt(oe.index-re,re),this.quill.formatLine(oe.index-re,1,"list",1===re?"bullet":"ordered",w.default.sources.USER),this.quill.setSelection(oe.index-re,w.default.sources.SILENT)}}}},z.default=U},function(xe,z,L){"use strict";var H=an(L(1)),Z=L(45),F=L(48),N=L(54),S=an(L(55)),v=an(L(56)),T=L(57),C=an(T),k=L(46),y=L(47),D=L(49),w=L(50),$=an(L(58)),B=an(L(59)),Y=an(L(60)),R=an(L(61)),X=an(L(62)),ue=an(L(63)),_e=an(L(64)),de=an(L(65)),ce=L(28),ie=an(ce),oe=an(L(66)),re=an(L(67)),Be=an(L(68)),Ue=an(L(69)),at=an(L(102)),Re=an(L(104)),rt=an(L(105)),Dt=an(L(106)),rn=an(L(107)),Jo=an(L(109));function an(As){return As&&As.__esModule?As:{default:As}}H.default.register({"attributors/attribute/direction":F.DirectionAttribute,"attributors/class/align":Z.AlignClass,"attributors/class/background":k.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":F.DirectionClass,"attributors/class/font":D.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":Z.AlignStyle,"attributors/style/background":k.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":F.DirectionStyle,"attributors/style/font":D.FontStyle,"attributors/style/size":w.SizeStyle},!0),H.default.register({"formats/align":Z.AlignClass,"formats/direction":F.DirectionClass,"formats/indent":N.IndentClass,"formats/background":k.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":D.FontClass,"formats/size":w.SizeClass,"formats/blockquote":S.default,"formats/code-block":ie.default,"formats/header":v.default,"formats/list":C.default,"formats/bold":$.default,"formats/code":ce.Code,"formats/italic":B.default,"formats/link":Y.default,"formats/script":R.default,"formats/strike":X.default,"formats/underline":ue.default,"formats/image":_e.default,"formats/video":de.default,"formats/list/item":T.ListItem,"modules/formula":oe.default,"modules/syntax":re.default,"modules/toolbar":Be.default,"themes/bubble":rn.default,"themes/snow":Jo.default,"ui/icons":Ue.default,"ui/picker":at.default,"ui/icon-picker":rt.default,"ui/color-picker":Re.default,"ui/tooltip":Dt.default},!0),xe.exports=H.default},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.IndentClass=void 0;var ae=function(){function C(k,y){for(var D=0;D0&&this.children.tail.format(B,ne)}},{key:"formats",value:function(){return function T(M,$,ee){return $ in M?Object.defineProperty(M,$,{value:ee,enumerable:!0,configurable:!0,writable:!0}):M[$]=ee,M}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(B,ne){if(B instanceof D)H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"insertBefore",this).call(this,B,ne);else{var Y=null==ne?this.length():ne.offset(this),Q=this.split(Y);Q.parent.insertBefore(B,Q)}}},{key:"optimize",value:function(){H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this);var B=this.next;null!=B&&B.prev===this&&B.statics.blotName===this.statics.blotName&&B.domNode.tagName===this.domNode.tagName&&B.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(B.moveChildren(this),B.remove())}},{key:"replace",value:function(B){if(B.statics.blotName!==this.statics.blotName){var ne=F.default.create(this.statics.defaultChild);B.moveChildren(ne),this.appendChild(ne)}H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"replace",this).call(this,B)}}],[{key:"create",value:function(B){var ne="ordered"===B?"OL":"UL",Y=H($.__proto__||Object.getPrototypeOf($),"create",this).call(this,ne);return("checked"===B||"unchecked"===B)&&Y.setAttribute("data-checked","checked"===B),Y}},{key:"formats",value:function(B){return"OL"===B.tagName?"ordered":"UL"===B.tagName?B.hasAttribute("data-checked")?"true"===B.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),$}(I.default);w.blotName="list",w.scope=F.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[D],z.ListItem=D,z.default=w},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1}v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",z.default=v,z.sanitize=T},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return"string"==typeof w&&M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,N.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(F.default);C.blotName="image",C.tagName="IMG",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function k(y,D){for(var w=0;w-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return M.setAttribute("frameborder","0"),M.setAttribute("allowfullscreen",!0),M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"sanitize",value:function(w){return N.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(Z.BlockEmbed);C.blotName="video",C.className="ql-video",C.tagName="IFRAME",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.FormulaBlot=void 0;var ae=function(){function y(D,w){for(var M=0;M0||null==this.cachedHTML)&&(this.domNode.innerHTML=Y(Q),this.attach()),this.cachedHTML=this.domNode.innerHTML}}}]),B}(C(L(28)).default);w.className="ql-syntax";var M=new F.default.Attributor.Class("token","hljs",{scope:F.default.Scope.INLINE}),$=function(ee){function B(ne,Y){k(this,B);var Q=y(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,ne,Y));if("function"!=typeof Q.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");O.default.register(M,!0),O.default.register(w,!0);var R=null;return Q.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){null==R&&(R=setTimeout(function(){Q.highlight(),R=null},100))}),Q.highlight(),Q}return D(B,ee),ae(B,[{key:"highlight",value:function(){var Y=this;if(!this.quill.selection.composing){var Q=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(R){R.highlight(Y.options.highlight)}),this.quill.update(O.default.sources.SILENT),null!=Q&&this.quill.setSelection(Q,O.default.sources.SILENT)}}}]),B}(I.default);$.DEFAULTS={highlight:null==window.hljs?null:function(ee){return window.hljs.highlightAuto(ee).value}},z.CodeBlock=w,z.CodeToken=M,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.addControls=z.default=void 0;var ae=function(se,X){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return function R(se,X){var U=[],ue=!0,pe=!1,_e=void 0;try{for(var de,he=se[Symbol.iterator]();!(ue=(de=he.next()).done)&&(U.push(de.value),!X||U.length!==X);ue=!0);}catch(ce){pe=!0,_e=ce}finally{try{!ue&&he.return&&he.return()}finally{if(pe)throw _e}}return U}(se,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function R(se,X){for(var U=0;U '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},H=function(){function I(v,T){for(var C=0;C1&&void 0!==arguments[1]&&arguments[1],k=this.container.querySelector(".ql-selected");if(T!==k&&(k?.classList.remove("ql-selected"),null!=T&&(T.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(T.parentNode.children,T),T.hasAttribute("data-value")?this.label.setAttribute("data-value",T.getAttribute("data-value")):this.label.removeAttribute("data-value"),T.hasAttribute("data-label")?this.label.setAttribute("data-label",T.getAttribute("data-label")):this.label.removeAttribute("data-label"),C))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":ae(Event))){var y=document.createEvent("Event");y.initEvent("change",!0,!0),this.select.dispatchEvent(y)}this.close()}}},{key:"update",value:function(){var T=void 0;if(this.select.selectedIndex>-1){var C=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];T=this.select.options[this.select.selectedIndex],this.selectItem(C)}else this.selectItem(null);var k=null!=T&&T!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),I}();z.default=S},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y=this.quill.root.offsetHeight)}},{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(N){var O=N.left+N.width/2-this.root.offsetWidth/2,S=N.bottom+this.quill.root.scrollTop;this.root.style.left=O+"px",this.root.style.top=S+"px";var I=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),T=0;return v.right>I.right&&(this.root.style.left=O+(T=I.right-v.right)+"px"),v.left0){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var U=R.quill.scroll.lines(X.index,X.length);if(1===U.length)R.position(R.quill.getBounds(X));else{var ue=U[U.length-1],pe=ue.offset(R.quill.scroll),_e=Math.min(ue.length()-1,X.index+X.length-pe),he=R.quill.getBounds(new v.Range(pe,_e));R.position(he)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return w(ne,B),H(ne,[{key:"listen",value:function(){var Q=this;ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Q.root.classList.remove("ql-editing")}),this.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Q.root.classList.contains("ql-hidden")){var R=Q.quill.getSelection();null!=R&&Q.position(Q.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Q){var R=ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"position",this).call(this,Q),se=this.root.querySelector(".ql-tooltip-arrow");if(se.style.marginLeft="",0===R)return R;se.style.marginLeft=-1*R-se.offsetWidth/2+"px"}}]),ne}(S.BaseTooltip);ee.TEMPLATE=['','
','','',"
"].join(""),z.BubbleTooltip=ee,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BaseTooltip=void 0;var ae=function(){function ie(J,oe){for(var Ie=0;Ie0&&void 0!==arguments[0]?arguments[0]:"link",re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=re?this.textbox.value=re:Ie!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Ie)||""),this.root.setAttribute("data-mode",Ie)}},{key:"restoreFocus",value:function(){var Ie=this.quill.root.scrollTop;this.quill.focus(),this.quill.root.scrollTop=Ie}},{key:"save",value:function(){var Ie=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var re=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ie,I.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ie,I.default.sources.USER)),this.quill.root.scrollTop=re;break;case"video":var ye=Ie.match(/^(https?):\/\/(www\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ie.match(/^(https?):\/\/(www\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);ye?Ie=ye[1]+"://www.youtube.com/embed/"+ye[3]+"?showinfo=0":(ye=Ie.match(/^(https?):\/\/(www\.)?vimeo\.com\/(\d+)/))&&(Ie=ye[1]+"://player.vimeo.com/video/"+ye[3]+"/");case"formula":var Be=this.quill.getSelection(!0),Me=Be.index+Be.length;null!=Be&&(this.quill.insertEmbed(Me,this.root.getAttribute("data-mode"),Ie,I.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Me+1," ",I.default.sources.USER),this.quill.setSelection(Me+2,I.default.sources.USER))}this.textbox.value="",this.hide()}}]),J}(ne.default);function ce(ie,J){var oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];J.forEach(function(Ie){var re=document.createElement("option");Ie===oe?re.setAttribute("selected","selected"):re.setAttribute("value",Ie),ie.appendChild(re)})}z.BaseTooltip=de,z.default=he},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(R,se){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function Q(R,se){var X=[],U=!0,ue=!1,pe=void 0;try{for(var he,_e=R[Symbol.iterator]();!(U=(he=_e.next()).done)&&(X.push(he.value),!se||X.length!==se);U=!0);}catch(de){ue=!0,pe=de}finally{try{!U&&_e.return&&_e.return()}finally{if(ue)throw pe}}return X}(R,se);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function Q(R,se,X){null===R&&(R=Function.prototype);var U=Object.getOwnPropertyDescriptor(R,se);if(void 0===U){var ue=Object.getPrototypeOf(R);return null===ue?void 0:Q(ue,se,X)}if("value"in U)return U.value;var pe=U.get;return void 0===pe?void 0:pe.call(X)},Z=function(){function Q(R,se){for(var X=0;X','','',''].join(""),z.default=ne}])}},tc=>{tc(tc.s=5544)}]); \ No newline at end of file +(self.webpackChunkGinger_HtmlReport_Web_App=self.webpackChunkGinger_HtmlReport_Web_App||[]).push([[179],{5544:(tc,xe,z)=>{"use strict";function L(t){return"function"==typeof t}function ae(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const H=ae(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function Z(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class F{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if(L(n))try{n()}catch(s){i=s instanceof H?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{S(s)}catch(r){i=i??[],r instanceof H?i=[...i,...r.errors]:i.push(r)}}if(i)throw new H(i)}}add(i){var e;if(i&&i!==this)if(this.closed)S(i);else{if(i instanceof F){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&Z(e,i)}remove(i){const{_finalizers:e}=this;e&&Z(e,i),i instanceof F&&i._removeParent(this)}}F.EMPTY=(()=>{const t=new F;return t.closed=!0,t})();const N=F.EMPTY;function O(t){return t instanceof F||t&&"closed"in t&&L(t.remove)&&L(t.add)&&L(t.unsubscribe)}function S(t){L(t)?t():t.unsubscribe()}const I={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},v={setTimeout(t,i,...e){const{delegate:n}=v;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=v;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function T(t){v.setTimeout(()=>{const{onUnhandledError:i}=I;if(!i)throw t;i(t)})}function C(){}const k=w("C",void 0,void 0);function w(t,i,e){return{kind:t,value:i,error:e}}let M=null;function $(t){if(I.useDeprecatedSynchronousErrorHandling){const i=!M;if(i&&(M={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=M;if(M=null,e)throw n}}else t()}class B extends F{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,O(i)&&i.add(this)):this.destination=ue}static create(i,e,n){return new R(i,e,n)}next(i){this.isStopped?U(function D(t){return w("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?U(function y(t){return w("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?U(k,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function Y(t,i){return ne.call(t,i)}class Q{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){se(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){se(n)}else se(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){se(e)}}}class R extends B{constructor(i,e,n){let o;if(super(),L(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let s;this&&I.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&Y(i.next,s),error:i.error&&Y(i.error,s),complete:i.complete&&Y(i.complete,s)}):o=i}this.destination=new Q(o)}}function se(t){I.useDeprecatedSynchronousErrorHandling?function ee(t){I.useDeprecatedSynchronousErrorHandling&&M&&(M.errorThrown=!0,M.error=t)}(t):T(t)}function U(t,i){const{onStoppedNotification:e}=I;e&&v.setTimeout(()=>e(t,i))}const ue={closed:!0,next:C,error:function X(t){throw t},complete:C},pe="function"==typeof Symbol&&Symbol.observable||"@@observable";function _e(t){return t}function de(t){return 0===t.length?_e:1===t.length?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}let ce=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){const s=function oe(t){return t&&t instanceof B||function J(t){return t&&L(t.next)&&L(t.error)&&L(t.complete)}(t)&&O(t)}(e)?e:new R(e,n,o);return $(()=>{const{operator:r,source:a}=this;s.add(r?r.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=ie(n))((o,s)=>{const r=new R({next:a=>{try{e(a)}catch(l){s(l),r.unsubscribe()}},error:s,complete:o});this.subscribe(r)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[pe](){return this}pipe(...e){return de(e)(this)}toPromise(e){return new(e=ie(e))((n,o)=>{let s;this.subscribe(r=>s=r,r=>o(r),()=>n(s))})}}return t.create=i=>new t(i),t})();function ie(t){var i;return null!==(i=t??I.Promise)&&void 0!==i?i:Promise}const Ie=ae(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class t extends ce{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new ye(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ie}next(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){$(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:n,isStopped:o,observers:s}=this;return n||o?N:(this.currentObservers=null,s.push(e),new F(()=>{this.currentObservers=null,Z(s,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:o,isStopped:s}=this;n?e.error(o):s&&e.complete()}asObservable(){const e=new ce;return e.source=this,e}}return t.create=(i,e)=>new ye(i,e),t})();class ye extends re{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:N}}function Be(t){return L(t?.lift)}function Me(t){return i=>{if(Be(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,i,e,n,o){return new Bn(t,i,e,n,o)}class Bn extends B{constructor(i,e,n,o,s,r){super(i),this.onFinalize=s,this.shouldUnsubscribe=r,this._next=e?function(a){try{e(a)}catch(l){i.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function at(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>{n.next(t.call(i,s,o++))}))})}function or(t){return this instanceof or?(this.v=t,this):new or(t)}function Hv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function yo(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=t[s]&&function(r){return new Promise(function(a,l){!function o(s,r,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},r)}(a,l,(r=t[s](r)).done,r.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const dg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function zv(t){return L(t?.then)}function jv(t){return L(t[pe])}function Uv(t){return Symbol.asyncIterator&&L(t?.[Symbol.asyncIterator])}function $v(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Kv=function d4(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Gv(t){return L(t?.[Kv])}function qv(t){return function Bv(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=e.apply(t,i||[]),s=[];return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;function r(m){n[m]&&(o[m]=function(_){return new Promise(function(b,E){s.push([m,_,b,E])>1||a(m,_)})})}function a(m,_){try{!function l(m){m.value instanceof or?Promise.resolve(m.value.v).then(c,u):p(s[0][2],m)}(n[m](_))}catch(b){p(s[0][3],b)}}function c(m){a("next",m)}function u(m){a("throw",m)}function p(m,_){m(_),s.shift(),s.length&&a(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:o}=yield or(e.read());if(o)return yield or(void 0);yield yield or(n)}}finally{e.releaseLock()}})}function Wv(t){return L(t?.getReader)}function Ni(t){if(t instanceof ce)return t;if(null!=t){if(jv(t))return function p4(t){return new ce(i=>{const e=t[pe]();if(L(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(dg(t))return function h4(t){return new ce(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,T)})}(t);if(Uv(t))return Qv(t);if(Gv(t))return function g4(t){return new ce(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(Wv(t))return function m4(t){return Qv(qv(t))}(t)}throw $v(t)}function Qv(t){return new ce(i=>{(function _4(t,i){var e,n,o,s;return function As(t,i,e,n){return new(e||(e=Promise))(function(s,r){function a(u){try{c(n.next(u))}catch(p){r(p)}}function l(u){try{c(n.throw(u))}catch(p){r(p)}}function c(u){u.done?s(u.value):function o(s){return s instanceof e?s:new e(function(r){r(s)})}(u.value).then(a,l)}c((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=Hv(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(r){o={error:r}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(o)throw o.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function ws(t,i,e,n=0,o=!1){const s=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}function si(t,i,e=1/0){return L(i)?si((n,o)=>at((s,r)=>i(n,s,o,r))(Ni(t(n,o))),e):("number"==typeof i&&(e=i),Me((n,o)=>function I4(t,i,e,n,o,s,r,a){const l=[];let c=0,u=0,p=!1;const m=()=>{p&&!l.length&&!c&&i.complete()},_=E=>c{s&&i.next(E),c++;let P=!1;Ni(e(E,u++)).subscribe(Ue(i,W=>{o?.(W),s?_(W):i.next(W)},()=>{P=!0},void 0,()=>{if(P)try{for(c--;l.length&&cb(W)):b(W)}m()}catch(W){i.error(W)}}))};return t.subscribe(Ue(i,_,()=>{p=!0,m()})),()=>{a?.()}}(n,o,t,e)))}function Ta(t=1/0){return si(_e,t)}const es=new ce(t=>t.complete());function Zv(t){return t&&L(t.schedule)}function pg(t){return t[t.length-1]}function Yv(t){return L(pg(t))?t.pop():void 0}function ic(t){return Zv(pg(t))?t.pop():void 0}function Xv(t,i=0){return Me((e,n)=>{e.subscribe(Ue(n,o=>ws(n,t,()=>n.next(o),i),()=>ws(n,t,()=>n.complete(),i),o=>ws(n,t,()=>n.error(o),i)))})}function Jv(t,i=0){return Me((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function e1(t,i){if(!t)throw new Error("Iterable cannot be null");return new ce(e=>{ws(e,i,()=>{const n=t[Symbol.asyncIterator]();ws(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ri(t,i){return i?function T4(t,i){if(null!=t){if(jv(t))return function b4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(dg(t))return function x4(t,i){return new ce(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(zv(t))return function y4(t,i){return Ni(t).pipe(Jv(i),Xv(i))}(t,i);if(Uv(t))return e1(t,i);if(Gv(t))return function A4(t,i){return new ce(e=>{let n;return ws(e,i,()=>{n=t[Kv](),ws(e,i,()=>{let o,s;try{({value:o,done:s}=n.next())}catch(r){return void e.error(r)}s?e.complete():e.next(o)},0,!0)}),()=>L(n?.return)&&n.return()})}(t,i);if(Wv(t))return function w4(t,i){return e1(qv(t),i)}(t,i)}throw $v(t)}(t,i):Ni(t)}class xo extends re{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}function ht(...t){return ri(t,ic(t))}function t1(t={}){const{connector:i=(()=>new re),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return s=>{let r,a,l,c=0,u=!1,p=!1;const m=()=>{a?.unsubscribe(),a=void 0},_=()=>{m(),r=l=void 0,u=p=!1},b=()=>{const E=r;_(),E?.unsubscribe()};return Me((E,P)=>{c++,!p&&!u&&m();const W=l=l??i();P.add(()=>{c--,0===c&&!p&&!u&&(a=hg(b,o))}),W.subscribe(P),!r&&c>0&&(r=new R({next:te=>W.next(te),error:te=>{p=!0,m(),a=hg(_,e,te),W.error(te)},complete:()=>{u=!0,m(),a=hg(_,n),W.complete()}}),Ni(E).subscribe(r))})(s)}}function hg(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new R({next:()=>{n.unsubscribe(),t()}});return Ni(i(...e)).subscribe(n)}function Ao(t,i){return Me((e,n)=>{let o=null,s=0,r=!1;const a=()=>r&&!o&&n.complete();e.subscribe(Ue(n,l=>{o?.unsubscribe();let c=0;const u=s++;Ni(t(l,u)).subscribe(o=Ue(n,p=>n.next(i?i(l,p,u,c++):p),()=>{o=null,a()}))},()=>{r=!0,a()}))})}function D4(t,i){return t===i}function fn(t){for(let i in t)if(t[i]===fn)return i;throw Error("Could not find renamed property on target object.")}function _d(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ai(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ai).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function fg(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const k4=fn({__forward_ref__:fn});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return ai(this())},t}function vt(t){return gg(t)?t():t}function gg(t){return"function"==typeof t&&t.hasOwnProperty(k4)&&t.__forward_ref__===ft}function mg(t){return t&&!!t.\u0275providers}const n1="https://g.co/ng/security#xss";class Ae extends Error{constructor(i,e){super(function Id(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function xt(t){return"string"==typeof t?t:null==t?"":String(t)}function _g(t,i){throw new Ae(-201,!1)}function wo(t,i){null==t&&function _t(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function nt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const o1=nt;function Ge(t){return{providers:t.providers||[],imports:t.imports||[]}}function Cd(t){return s1(t,bd)||s1(t,r1)}function s1(t,i){return t.hasOwnProperty(i)?t[i]:null}function vd(t){return t&&(t.hasOwnProperty(Ig)||t.hasOwnProperty(V4))?t[Ig]:null}const bd=fn({\u0275prov:fn}),Ig=fn({\u0275inj:fn}),r1=fn({ngInjectableDef:fn}),V4=fn({ngInjectorDef:fn});var zt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(zt||{});let Cg;function a1(){return Cg}function Yi(t){const i=Cg;return Cg=t,i}function l1(t,i,e){const n=Cd(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&zt.Optional?null:void 0!==i?i:void _g(ai(t))}const Tn=globalThis;class Ye{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=nt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const oc={},Ag="__NG_DI_FLAG__",yd="ngTempTokenPath",z4=/\n/gm,u1="__source";let Sa;function sr(t){const i=Sa;return Sa=t,i}function $4(t,i=zt.Default){if(void 0===Sa)throw new Ae(-203,!1);return null===Sa?l1(t,void 0,i):Sa.get(t,i&zt.Optional?null:void 0,i)}function Ze(t,i=zt.Default){return(a1()||$4)(vt(t),i)}function et(t,i=zt.Default){return Ze(t,xd(i))}function xd(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function wg(t){const i=[];for(let e=0;ei){r=s-1;break}}}for(;ss?"":o[p+1].toLowerCase();const _=8&n?m:null;if(_&&-1!==f1(_,c,0)||2&n&&c!==m){if(Bo(n))return!1;r=!0}}}}else{if(!r&&!Bo(n)&&!Bo(l))return!1;if(r&&Bo(l))continue;r=!1,n=l|1&n}}return Bo(n)||r}function Bo(t){return 0==(1&t)}function Y4(t,i,e,n){if(null===i)return-1;let o=0;if(n||!e){let s=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&n?o+="."+r:4&n&&(o+=" "+r);else""!==o&&!Bo(r)&&(i+=b1(s,o),o=""),n=r,s=s||!Bo(n);e++}return""!==o&&(i+=b1(s,o)),i}function Oe(t){return Ts(()=>{const i=x1(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Ad.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||To.Emulated,styles:t.styles||nn,_:null,schemas:t.schemas||null,tView:null,id:""};A1(e);const n=t.dependencies;return e.directiveDefs=Td(n,!1),e.pipeDefs=Td(n,!0),e.id=function cL(t){let i=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(e),e})}function Dg(t,i,e){const n=t.\u0275cmp;n.directiveDefs=Td(i,!1),n.pipeDefs=Td(e,!0)}function sL(t){return Zt(t)||fi(t)}function rL(t){return null!==t}function qe(t){return Ts(()=>({type:t.type,bootstrap:t.bootstrap||nn,declarations:t.declarations||nn,imports:t.imports||nn,exports:t.exports||nn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function y1(t,i){if(null==t)return ts;const e={};for(const n in t)if(t.hasOwnProperty(n)){let o=t[n],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),e[o]=n,i&&(i[o]=s)}return e}function ut(t){return Ts(()=>{const i=x1(t);return A1(i),i})}function Vi(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Zt(t){return t[wd]||null}function fi(t){return t[Tg]||null}function Bi(t){return t[Sg]||null}function lo(t,i){const e=t[p1]||null;if(!e&&!0===i)throw new Error(`Type ${ai(t)} does not have '\u0275mod' property.`);return e}function x1(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||ts,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||nn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:y1(t.inputs,i),outputs:y1(t.outputs)}}function A1(t){t.features?.forEach(i=>i(t))}function Td(t,i){if(!t)return null;const e=i?Bi:sL;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(rL)}const Un=0,it=1,kt=2,Fn=3,Ho=4,lc=5,xi=6,Da=7,Zn=8,rr=9,ka=10,At=11,cc=12,w1=13,Ma=14,Yn=15,uc=16,Oa=17,ns=18,dc=19,T1=20,ar=21,Es=22,pc=23,hc=24,Ut=25,kg=1,S1=2,is=7,La=9,gi=11;function Xi(t){return Array.isArray(t)&&"object"==typeof t[kg]}function Hi(t){return Array.isArray(t)&&!0===t[kg]}function Mg(t){return 0!=(4&t.flags)}function $r(t){return t.componentOffset>-1}function Ed(t){return 1==(1&t.flags)}function zo(t){return!!t.template}function Og(t){return 0!=(512&t[kt])}function Kr(t,i){return t.hasOwnProperty(Ss)?t[Ss]:null}const lr=Symbol("SIGNAL");function k1(t,i){return(null===t||"object"!=typeof t)&&Object.is(t,i)}let mi=null,Dd=!1;function So(t){const i=mi;return mi=t,i}const kd={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function M1(t){if(Dd)throw new Error("");if(null===mi)return;const i=mi.nextProducerIndex++;Pa(mi),it.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function F1(t){Pa(t);for(let i=0;i0}function Pa(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function V1(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Ds(t,i){const e=Object.create(fL);e.computation=t,i?.equal&&(e.equal=i.equal);const n=()=>{if(O1(e),M1(e),e.value===Pd)throw e.error;return e.value};return n[lr]=e,n}const Pg=Symbol("UNSET"),Fg=Symbol("COMPUTING"),Pd=Symbol("ERRORED"),fL=(()=>({...kd,value:Pg,dirty:!0,error:null,equal:k1,producerMustRecompute:t=>t.value===Pg||t.value===Fg,producerRecomputeValue(t){if(t.value===Fg)throw new Error("Detected cycle in computations.");const i=t.value;t.value=Fg;const e=Md(t);let n;try{n=t.computation()}catch(o){n=Pd,t.error=o}finally{Od(t,e)}i!==Pg&&i!==Pd&&n!==Pd&&t.equal(i,n)?t.value=i:(t.value=n,t.version++)}}))();let B1=function gL(){throw new Error};function Rg(){B1()}let Ng=null;function bn(t,i){const e=Object.create(_L);function n(){return M1(e),e.value}return e.value=t,i?.equal&&(e.equal=i.equal),n.set=z1,n.update=IL,n.mutate=CL,n.asReadonly=vL,n[lr]=e,n}const _L=(()=>({...kd,equal:k1,readonlyFn:void 0}))();function H1(t){t.version++,L1(t),Ng?.()}function z1(t){const i=this[lr];Lg()||Rg(),i.equal(i.value,t)||(i.value=t,H1(i))}function IL(t){Lg()||Rg(),z1.call(this,t(this[lr].value))}function CL(t){const i=this[lr];Lg()||Rg(),t(i.value),H1(i)}function vL(){const t=this[lr];if(void 0===t.readonlyFn){const i=()=>this();i[lr]=t,t.readonlyFn=i}return t.readonlyFn}const U1=()=>{},yL=(()=>({...kd,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:U1}))();class xL{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Hn(){return $1}function $1(t){return t.type.prototype.ngOnChanges&&(t.setInput=wL),AL}function AL(){const t=G1(this),i=t?.current;if(i){const e=t.previous;if(e===ts)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function wL(t,i,e,n){const o=this.declaredInputs[e],s=G1(t)||function TL(t,i){return t[K1]=i}(t,{previous:ts,current:null}),r=s.current||(s.current={}),a=s.previous,l=a[o];r[o]=new xL(l&&l.currentValue,i,a===ts),t[n]=i}Hn.ngInherit=!0;const K1="__ngSimpleChanges__";function G1(t){return t[K1]||null}const os=function(t,i,e){};function Sn(t){for(;Array.isArray(t);)t=t[Un];return t}function Fd(t,i){return Sn(i[t])}function Ji(t,i){return Sn(i[t.index])}function Q1(t,i){return t.data[i]}function Fa(t,i){return t[i]}function co(t,i){const e=i[t];return Xi(e)?e:e[Un]}function cr(t,i){return null==i?null:t[i]}function Z1(t){t[Oa]=0}function OL(t){1024&t[kt]||(t[kt]|=1024,X1(t,1))}function Y1(t){1024&t[kt]&&(t[kt]&=-1025,X1(t,-1))}function X1(t,i){let e=t[Fn];if(null===e)return;e[lc]+=i;let n=e;for(e=e[Fn];null!==e&&(1===i&&1===n[lc]||-1===i&&0===n[lc]);)e[lc]+=i,n=e,e=e[Fn]}function J1(t,i){if(256==(256&t[kt]))throw new Ae(911,!1);null===t[ar]&&(t[ar]=[]),t[ar].push(i)}const It={lFrame:cb(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function tb(){return It.bindingsEnabled}function Ra(){return null!==It.skipHydrationRootTNode}function Ne(){return It.lFrame.lView}function Yt(){return It.lFrame.tView}function G(t){return It.lFrame.contextLView=t,t[Zn]}function q(t){return It.lFrame.contextLView=null,t}function _i(){let t=nb();for(;null!==t&&64===t.type;)t=t.parent;return t}function nb(){return It.lFrame.currentTNode}function ss(t,i){const e=It.lFrame;e.currentTNode=t,e.isParent=i}function Hg(){return It.lFrame.isParent}function zg(){It.lFrame.isParent=!1}function zi(){const t=It.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Na(){return It.lFrame.bindingIndex++}function Ms(t){const i=It.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function $L(t,i){const e=It.lFrame;e.bindingIndex=e.bindingRootIndex=t,jg(i)}function jg(t){It.lFrame.currentDirectiveIndex=t}function rb(){return It.lFrame.currentQueryIndex}function $g(t){It.lFrame.currentQueryIndex=t}function GL(t){const i=t[it];return 2===i.type?i.declTNode:1===i.type?t[xi]:null}function ab(t,i,e){if(e&zt.SkipSelf){let o=i,s=t;for(;!(o=o.parent,null!==o||e&zt.Host||(o=GL(s),null===o||(s=s[Ma],10&o.type))););if(null===o)return!1;i=o,t=s}const n=It.lFrame=lb();return n.currentTNode=i,n.lView=t,!0}function Kg(t){const i=lb(),e=t[it];It.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function lb(){const t=It.lFrame,i=null===t?null:t.child;return null===i?cb(t):i}function cb(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function ub(){const t=It.lFrame;return It.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const db=ub;function Gg(){const t=ub();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ji(){return It.lFrame.selectedIndex}function Gr(t){It.lFrame.selectedIndex=t}function zn(){const t=It.lFrame;return Q1(t.tView,t.selectedIndex)}function Mt(){It.lFrame.currentNamespace="svg"}let hb=!0;function Rd(){return hb}function ur(t){hb=t}function Nd(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e=n)break}else i[l]<0&&(t[Oa]+=65536),(a>13>16&&(3&t[kt])===i&&(t[kt]+=8192,gb(a,s)):gb(a,s)}const Va=-1;class _c{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Qg(t){return t!==Va}function Ic(t){return 32767&t}function Cc(t,i){let e=function iP(t){return t>>16}(t),n=i;for(;e>0;)n=n[Ma],e--;return n}let Zg=!0;function Hd(t){const i=Zg;return Zg=t,i}const mb=255,_b=5;let oP=0;const rs={};function zd(t,i){const e=Ib(t,i);if(-1!==e)return e;const n=i[it];n.firstCreatePass&&(t.injectorIndex=i.length,Yg(n.data,t),Yg(i,null),Yg(n.blueprint,null));const o=jd(t,i),s=t.injectorIndex;if(Qg(o)){const r=Ic(o),a=Cc(o,i),l=a[it].data;for(let c=0;c<8;c++)i[s+c]=a[r+c]|l[r+c]}return i[s+8]=o,s}function Yg(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Ib(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function jd(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;null!==o;){if(n=wb(o),null===n)return Va;if(e++,o=o[Ma],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return Va}function Xg(t,i,e){!function sP(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(rc)&&(n=e[rc]),null==n&&(n=e[rc]=oP++);const o=n&mb;i.data[t+(o>>_b)]|=1<=0?i&mb:uP:i}(e);if("function"==typeof s){if(!ab(i,t,n))return n&zt.Host?Cb(o,0,n):vb(i,e,n,o);try{let r;if(r=s(n),null!=r||n&zt.Optional)return r;_g()}finally{db()}}else if("number"==typeof s){let r=null,a=Ib(t,i),l=Va,c=n&zt.Host?i[Yn][xi]:null;for((-1===a||n&zt.SkipSelf)&&(l=-1===a?jd(t,i):i[a+8],l!==Va&&Ab(n,!1)?(r=i[it],a=Ic(l),i=Cc(l,i)):a=-1);-1!==a;){const u=i[it];if(xb(s,a,u.data)){const p=aP(a,i,e,r,n,c);if(p!==rs)return p}l=i[a+8],l!==Va&&Ab(n,i[it].data[a+8]===c)&&xb(s,a,i)?(r=u,a=Ic(l),i=Cc(l,i)):a=-1}}return o}function aP(t,i,e,n,o,s){const r=i[it],a=r.data[t+8],u=Ud(a,r,e,null==n?$r(a)&&Zg:n!=r&&0!=(3&a.type),o&zt.Host&&s===a);return null!==u?qr(i,r,u,a):rs}function Ud(t,i,e,n,o){const s=t.providerIndexes,r=i.data,a=1048575&s,l=t.directiveStart,u=s>>20,m=o?a+u:t.directiveEnd;for(let _=n?a:a+u;_=l&&b.type===e)return _}if(o){const _=r[l];if(_&&zo(_)&&_.type===e)return l}return null}function qr(t,i,e,n){let o=t[e];const s=i.data;if(function eP(t){return t instanceof _c}(o)){const r=o;r.resolving&&function M4(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Ae(-200,`Circular dependency in DI detected for ${t}${e}`)}(function pn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():xt(t)}(s[e]));const a=Hd(r.canSeeViewProviders);r.resolving=!0;const c=r.injectImpl?Yi(r.injectImpl):null;ab(t,n,zt.Default);try{o=t[e]=r.factory(void 0,s,t,n),i.firstCreatePass&&e>=n.directiveStart&&function XL(t,i,e){const{ngOnChanges:n,ngOnInit:o,ngDoCheck:s}=i.type.prototype;if(n){const r=$1(i);(e.preOrderHooks??=[]).push(t,r),(e.preOrderCheckHooks??=[]).push(t,r)}o&&(e.preOrderHooks??=[]).push(0-t,o),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}(e,s[e],i)}finally{null!==c&&Yi(c),Hd(a),r.resolving=!1,db()}}return o}function xb(t,i,e){return!!(e[i+(t>>_b)]&1<{const i=t.prototype.constructor,e=i[Ss]||Jg(i),n=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){const s=o[Ss]||Jg(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Jg(t){return gg(t)?()=>{const i=Jg(vt(t));return i&&i()}:Kr(t)}function wb(t){const i=t[it],e=i.type;return 2===e?i.declTNode:1===e?t[xi]:null}const Ha="__parameters__";function ja(t,i,e){return Ts(()=>{const n=function em(t){return function(...e){if(t){const n=t(...e);for(const o in n)this[o]=n[o]}}}(i);function o(...s){if(this instanceof o)return n.apply(this,s),this;const r=new o(...s);return a.annotation=r,a;function a(l,c,u){const p=l.hasOwnProperty(Ha)?l[Ha]:Object.defineProperty(l,Ha,{value:[]})[Ha];for(;p.length<=u;)p.push(null);return(p[u]=p[u]||[]).push(r),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function $a(t,i){t.forEach(e=>Array.isArray(e)?$a(e,i):i(e))}function Sb(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function Kd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function yc(t,i){const e=[];for(let n=0;n=0?t[1|n]=e:(n=~n,function IP(t,i,e,n){let o=t.length;if(o==i)t.push(e,n);else if(1===o)t.push(n,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>i;)t[o]=t[o-2],o--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function tm(t,i){const e=Ka(t,i);if(e>=0)return t[1|e]}function Ka(t,i){return function Eb(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){const s=n+(o-n>>1),r=t[s<i?o=s:n=s+1}return~(o<|^->||--!>|)/g,zP="\u200b$1\u200b";const rm=new Map;let jP=0;const lm="__ngContext__";function Ai(t,i){Xi(i)?(t[lm]=i[dc],function $P(t){rm.set(t[dc],t)}(i)):t[lm]=i}let cm;function um(t,i){return cm(t,i)}function wc(t){const i=t[Fn];return Hi(i)?i[Fn]:i}function Wb(t){return Zb(t[cc])}function Qb(t){return Zb(t[Ho])}function Zb(t){for(;null!==t&&!Hi(t);)t=t[Ho];return t}function Wa(t,i,e,n,o){if(null!=n){let s,r=!1;Hi(n)?s=n:Xi(n)&&(r=!0,n=n[Un]);const a=Sn(n);0===t&&null!==e?null==o?ey(i,e,a):Wr(i,e,a,o||null,!0):1===t&&null!==e?Wr(i,e,a,o||null,!0):2===t?function rp(t,i,e){const n=op(t,i);n&&function u5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,a,r):3===t&&i.destroyNode(a),null!=s&&function h5(t,i,e,n,o){const s=e[is];s!==Sn(e)&&Wa(i,t,n,s,o);for(let a=gi;ai.replace(HP,zP))}(i))}function np(t,i,e){return t.createElement(i,e)}function Xb(t,i){const e=t[La],n=e.indexOf(i);Y1(i),e.splice(n,1)}function ip(t,i){if(t.length<=gi)return;const e=gi+i,n=t[e];if(n){const o=n[uc];null!==o&&o!==t&&Xb(o,n),i>0&&(t[e-1][Ho]=n[Ho]);const s=Kd(t,gi+i);!function t5(t,i){Sc(t,i,i[At],2,null,null),i[Un]=null,i[xi]=null}(n[it],n);const r=s[ns];null!==r&&r.detachView(s[it]),n[Fn]=null,n[Ho]=null,n[kt]&=-129}return n}function pm(t,i){if(!(256&i[kt])){const e=i[At];i[pc]&&R1(i[pc]),i[hc]&&R1(i[hc]),e.destroyNode&&Sc(t,i,e,3,null,null),function s5(t){let i=t[cc];if(!i)return hm(t[it],t);for(;i;){let e=null;if(Xi(i))e=i[cc];else{const n=i[gi];n&&(e=n)}if(!e){for(;i&&!i[Ho]&&i!==t;)Xi(i)&&hm(i[it],i),i=i[Fn];null===i&&(i=t),Xi(i)&&hm(i[it],i),e=i&&i[Ho]}i=e}}(i)}}function hm(t,i){if(!(256&i[kt])){i[kt]&=-129,i[kt]|=256,function c5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n=0?n[r]():n[-r].unsubscribe(),s+=2}else e[s].call(n[e[s+1]]);null!==n&&(i[Da]=null);const o=i[ar];if(null!==o){i[ar]=null;for(let s=0;s-1){const{encapsulation:s}=t.data[n.directiveStart+o];if(s===To.None||s===To.Emulated)return null}return Ji(n,e)}}(t,i.parent,e)}function Wr(t,i,e,n,o){t.insertBefore(i,e,n,o)}function ey(t,i,e){t.appendChild(i,e)}function ty(t,i,e,n,o){null!==n?Wr(t,i,e,n,o):ey(t,i,e)}function op(t,i){return t.parentNode(i)}function ny(t,i,e){return oy(t,i,e)}let gm,ap,Cm,lp,oy=function iy(t,i,e){return 40&t.type?Ji(t,e):null};function sp(t,i,e,n){const o=fm(t,n,i),s=i[At],a=ny(n.parent||i[xi],n,i);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return ap}()?.createHTML(t)||t}function Za(){if(void 0!==Cm)return Cm;if(typeof document<"u")return document;throw new Ae(210,!1)}function vm(){if(void 0===lp&&(lp=null,Tn.trustedTypes))try{lp=Tn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lp}function dy(t){return vm()?.createHTML(t)||t}function hy(t){return vm()?.createScriptURL(t)||t}class fy{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${n1})`}}function pr(t){return t instanceof fy?t.changingThisBreaksApplicationSecurity:t}function Ec(t,i){const e=function w5(t){return t instanceof fy&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${n1})`)}return e===i}class T5{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const e=(new window.DOMParser).parseFromString(Qa(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class S5{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Qa(i),e}}const D5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function bm(t){return(t=String(t)).match(D5)?t:"unsafe:"+t}function Os(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Dc(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const my=Os("area,br,col,hr,img,wbr"),_y=Os("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Iy=Os("rp,rt"),ym=Dc(my,Dc(_y,Os("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dc(Iy,Os("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Dc(Iy,_y)),xm=Os("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cy=Dc(xm,Os("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Os("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),k5=Os("script,style,template");class M5{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!ym.hasOwnProperty(e))return this.sanitizedSomething=!0,!k5.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let o=0;o"),!0}endElement(i){const e=i.nodeName.toLowerCase();ym.hasOwnProperty(e)&&!my.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(vy(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const O5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L5=/([^\#-~ |!])/g;function vy(t){return t.replace(/&/g,"&").replace(O5,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(L5,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let cp;function Am(t){return"content"in t&&function F5(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ya=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ya||{});function hr(t){const i=kc();return i?dy(i.sanitize(Ya.HTML,t)||""):Ec(t,"HTML")?dy(pr(t)):function P5(t,i){let e=null;try{cp=cp||function gy(t){const i=new S5(t);return function E5(){try{return!!(new window.DOMParser).parseFromString(Qa(""),"text/html")}catch{return!1}}()?new T5(i):i}(t);let n=i?String(i):"";e=cp.getInertBodyElement(n);let o=5,s=n;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,n=s,s=e.innerHTML,e=cp.getInertBodyElement(n)}while(n!==s);return Qa((new M5).sanitizeChildren(Am(e)||e))}finally{if(e){const n=Am(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}(Za(),xt(t))}function Ls(t){const i=kc();return i?i.sanitize(Ya.URL,t)||"":Ec(t,"URL")?pr(t):bm(xt(t))}function by(t){const i=kc();if(i)return hy(i.sanitize(Ya.RESOURCE_URL,t)||"");if(Ec(t,"ResourceURL"))return hy(pr(t));throw new Ae(904,!1)}function kc(){const t=Ne();return t&&t[ka].sanitizer}const Mc=new Ye("ENVIRONMENT_INITIALIZER"),xy=new Ye("INJECTOR",-1),Ay=new Ye("INJECTOR_DEF_TYPES");class wm{get(i,e=oc){if(e===oc){const n=new Error(`NullInjectorError: No provider for ${ai(i)}!`);throw n.name="NullInjectorError",n}return e}}function z5(...t){return{\u0275providers:wy(0,t),\u0275fromNgModule:!0}}function wy(t,...i){const e=[],n=new Set;let o;const s=r=>{e.push(r)};return $a(i,r=>{const a=r;up(a,s,[],n)&&(o||=[],o.push(a))}),void 0!==o&&Ty(o,s),e}function Ty(t,i){for(let e=0;e{i(s,n)})}}function up(t,i,e,n){if(!(t=vt(t)))return!1;let o=null,s=vd(t);const r=!s&&Zt(t);if(s||r){if(r&&!r.standalone)return!1;o=t}else{const l=t.ngModule;if(s=vd(l),!s)return!1;o=l}const a=n.has(o);if(r){if(a)return!1;if(n.add(o),r.dependencies){const l="function"==typeof r.dependencies?r.dependencies():r.dependencies;for(const c of l)up(c,i,e,n)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;n.add(o);try{$a(s.imports,u=>{up(u,i,e,n)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Ty(c,i)}if(!a){const c=Kr(o)||(()=>new o);i({provide:o,useFactory:c,deps:nn},o),i({provide:Ay,useValue:o,multi:!0},o),i({provide:Mc,useValue:()=>Ze(o),multi:!0},o)}const l=s.providers;if(null!=l&&!a){const c=t;Sm(l,u=>{i(u,c)})}}}return o!==t&&void 0!==t.providers}function Sm(t,i){for(let e of t)mg(e)&&(e=e.\u0275providers),Array.isArray(e)?Sm(e,i):i(e)}const j5=fn({provide:String,useValue:fn});function Em(t){return null!==t&&"object"==typeof t&&j5 in t}function Qr(t){return"function"==typeof t}const Dm=new Ye("Set Injector scope."),dp={},$5={};let km;function pp(){return void 0===km&&(km=new wm),km}class po{}class Xa extends po{get destroyed(){return this._destroyed}constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Om(i,r=>this.processProvider(r)),this.records.set(xy,Ja(void 0,this)),o.has("environment")&&this.records.set(po,Ja(void 0,this));const s=this.records.get(Dm);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Ay.multi,nn,zt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of i)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const e=sr(this),n=Yi(void 0);try{return i()}finally{sr(e),Yi(n)}}get(i,e=oc,n=zt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(h1))return i[h1](this);n=xd(n);const s=sr(this),r=Yi(void 0);try{if(!(n&zt.SkipSelf)){let l=this.records.get(i);if(void 0===l){const c=function Q5(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ye}(i)&&Cd(i);l=c&&this.injectableDefInScope(c)?Ja(Mm(i),dp):null,this.records.set(i,l)}if(null!=l)return this.hydrate(i,l)}return(n&zt.Self?pp():this.parent).get(i,e=n&zt.Optional&&e===oc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[yd]=a[yd]||[]).unshift(ai(i)),s)throw a;return function G4(t,i,e,n){const o=t[yd];throw i[u1]&&o.unshift(i[u1]),t.message=function q4(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=ai(i);if(Array.isArray(i))o=i.map(ai).join(" -> ");else if("object"==typeof i){let s=[];for(let r in i)if(i.hasOwnProperty(r)){let a=i[r];s.push(r+":"+("string"==typeof a?JSON.stringify(a):ai(a)))}o=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(z4,"\n ")}`}("\n"+t.message,o,e,n),t.ngTokenPath=o,t[yd]=null,t}(a,i,"R3InjectorError",this.source)}throw a}finally{Yi(r),sr(s)}}resolveInjectorInitializers(){const i=sr(this),e=Yi(void 0);try{const o=this.get(Mc.multi,nn,zt.Self);for(const s of o)s()}finally{sr(i),Yi(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(ai(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ae(205,!1)}processProvider(i){let e=Qr(i=vt(i))?i:vt(i&&i.provide);const n=function G5(t){return Em(t)?Ja(void 0,t.useValue):Ja(Dy(t),dp)}(i);if(Qr(i)||!0!==i.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=Ja(void 0,dp,!0),o.factory=()=>wg(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===dp&&(e.value=$5,e.value=e.factory()),"object"==typeof e.value&&e.value&&function W5(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=vt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){const e=this._onDestroyHooks.indexOf(i);-1!==e&&this._onDestroyHooks.splice(e,1)}}function Mm(t){const i=Cd(t),e=null!==i?i.factory:Kr(t);if(null!==e)return e;if(t instanceof Ye)throw new Ae(204,!1);if(t instanceof Function)return function K5(t){const i=t.length;if(i>0)throw yc(i,"?"),new Ae(204,!1);const e=function N4(t){return t&&(t[bd]||t[r1])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Ae(204,!1)}function Dy(t,i,e){let n;if(Qr(t)){const o=vt(t);return Kr(o)||Mm(o)}if(Em(t))n=()=>vt(t.useValue);else if(function Ey(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...wg(t.deps||[]));else if(function Sy(t){return!(!t||!t.useExisting)}(t))n=()=>Ze(vt(t.useExisting));else{const o=vt(t&&(t.useClass||t.provide));if(!function q5(t){return!!t.deps}(t))return Kr(o)||Mm(o);n=()=>new o(...wg(t.deps))}return n}function Ja(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Om(t,i){for(const e of t)Array.isArray(e)?Om(e,i):e&&mg(e)?Om(e.\u0275providers,i):i(e)}const hp=new Ye("AppId",{providedIn:"root",factory:()=>Z5}),Z5="ng",ky=new Ye("Platform Initializer"),$n=new Ye("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),My=new Ye("AnimationModuleType"),Oy=new Ye("CSP nonce",{providedIn:"root",factory:()=>Za().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ly=(t,i,e)=>null;function Hm(t,i,e=!1){return Ly(t,i,e)}class rF{}class Ry{}class lF{resolveComponentFactory(i){throw function aF(t){const i=Error(`No component factory found for ${ai(t)}.`);return i.ngComponent=t,i}(i)}}let Cp=(()=>{class t{static#e=this.NULL=new lF}return t})();function cF(){return nl(_i(),Ne())}function nl(t,i){return new bt(Ji(t,i))}let bt=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=cF}return t})();function uF(t){return t instanceof bt?t.nativeElement:t}class Pc{}let hn=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function dF(){const t=Ne(),e=co(_i().index,t);return(Xi(e)?e:t)[At]}()}return t})(),pF=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>null})}return t})();class Fc{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const hF=new Fc("16.2.12"),Um={};function zy(t,i=null,e=null,n){const o=jy(t,i,e,n);return o.resolveInjectorInitializers(),o}function jy(t,i=null,e=null,n,o=new Set){const s=[e||nn,z5(t)];return n=n||("object"==typeof t?void 0:ai(t)),new Xa(s,i||pp(),n||null,o)}let $i=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=oc;static#t=this.NULL=new wm;static create(e,n){if(Array.isArray(e))return zy({name:""},n,e,"");{const o=e.name??"";return zy({name:o},e.parent,e.providers,o)}}static#n=this.\u0275prov=nt({token:t,providedIn:"any",factory:()=>Ze(xy)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Km(t){return t.ngOriginalError}class Ps{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Km(i);for(;e&&Km(e);)e=Km(e);return e||null}}let vp=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=vF;static#t=this.__NG_ENV_ID__=e=>e}return t})();class CF extends vp{constructor(i){super(),this._lView=i}onDestroy(i){return J1(this._lView,i),()=>function LL(t,i){if(null===t[ar])return;const e=t[ar].indexOf(i);-1!==e&&t[ar].splice(e,1)}(this._lView,i)}}function vF(){return new CF(Ne())}function Gm(t){return i=>{setTimeout(t,void 0,i)}}const ge=class bF extends re{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let o=i,s=e||(()=>null),r=n;if(i&&"object"==typeof i){const l=i;o=l.next?.bind(l),s=l.error?.bind(l),r=l.complete?.bind(l)}this.__isAsync&&(s=Gm(s),o&&(o=Gm(o)),r&&(r=Gm(r)));const a=super.subscribe({next:o,error:s,complete:r});return i instanceof F&&i.add(a),a}};function $y(...t){}class Tt{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),typeof Zone>"u")throw new Ae(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&e,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function yF(){const t="function"==typeof Tn.requestAnimationFrame;let i=Tn[t?"requestAnimationFrame":"setTimeout"],e=Tn[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function wF(t){const i=()=>{!function AF(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Wm(t),t.isCheckStableRunning=!0,qm(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Wm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,o,s,r,a)=>{if(function SF(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(o,s,r,a);try{return Ky(t),e.invokeTask(o,s,r,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&i(),Gy(t)}},onInvoke:(e,n,o,s,r,a,l)=>{try{return Ky(t),e.invoke(o,s,r,a,l)}finally{t.shouldCoalesceRunChangeDetection&&i(),Gy(t)}},onHasTask:(e,n,o,s)=>{e.hasTask(o,s),n===o&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Wm(t),qm(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,o,s)=>(e.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Tt.isInAngularZone())throw new Ae(909,!1)}static assertNotInAngularZone(){if(Tt.isInAngularZone())throw new Ae(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+o,i,xF,$y,$y);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const xF={};function qm(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Wm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ky(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gy(t){t._nesting--,qm(t)}class TF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ge,this.onMicrotaskEmpty=new ge,this.onStable=new ge,this.onError=new ge}run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}}const qy=new Ye("",{providedIn:"root",factory:Wy});function Wy(){const t=et(Tt);let i=!0;return function S4(...t){const i=ic(t),e=function v4(t,i){return"number"==typeof pg(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?Ni(n[0]):Ta(e)(ri(n,i)):es}(new ce(o=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(i),o.complete()})}),new ce(o=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,o.next(!0))})})});const r=t.onUnstable.subscribe(()=>{Tt.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),r.unsubscribe()}}).pipe(t1()))}function Qy(t){return t.ownerDocument}function Fs(t){return t instanceof Function?t():t}let Qm=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function Rc(t){for(;t;){t[kt]|=64;const i=wc(t);if(Og(t)&&!i)return t;t=i}return null}const ex=new Ye("",{providedIn:"root",factory:()=>!1});let yp=null;function ox(t,i){return t[i]??ax()}function sx(t,i){const e=ax();e.producerNode?.length&&(t[i]=yp,e.lView=t,yp=rx())}const RF={...kd,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Rc(t.lView)},lView:null};function rx(){return Object.create(RF)}function ax(){return yp??=rx(),yp}const St={};function h(t){lx(Yt(),Ne(),ji()+t,!1)}function lx(t,i,e,n){if(!n)if(3==(3&i[kt])){const s=t.preOrderCheckHooks;null!==s&&Vd(i,s,e)}else{const s=t.preOrderHooks;null!==s&&Bd(i,s,0,e)}Gr(e)}function V(t,i=zt.Default){const e=Ne();return null===e?Ze(t,i):bb(_i(),e,vt(t),i)}function xp(t,i,e,n,o,s,r,a,l,c,u){const p=i.blueprint.slice();return p[Un]=o,p[kt]=140|n,(null!==c||t&&2048&t[kt])&&(p[kt]|=2048),Z1(p),p[Fn]=p[Ma]=t,p[Zn]=e,p[ka]=r||t&&t[ka],p[At]=a||t&&t[At],p[rr]=l||t&&t[rr]||null,p[xi]=s,p[dc]=function UP(){return jP++}(),p[Es]=u,p[T1]=c,p[Yn]=2==i.type?t[Yn]:p,p}function sl(t,i,e,n,o){let s=t.data[i];if(null===s)s=function Zm(t,i,e,n,o){const s=nb(),r=Hg(),l=t.data[i]=function $F(t,i,e,n,o,s){let r=i?i.injectorIndex:-1,a=0;return Ra()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,r?s:s&&s.parent,e,i,n,o);return null===t.firstChild&&(t.firstChild=l),null!==s&&(r?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l,l.prev=s)),l}(t,i,e,n,o),function UL(){return It.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=n,s.attrs=o;const r=function mc(){const t=It.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();s.injectorIndex=null===r?-1:r.injectorIndex}return ss(s,!0),s}function Nc(t,i,e,n){if(0===e)return-1;const o=i.length;for(let s=0;sUt&&lx(t,i,Ut,!1),os(a?2:0,o);const c=a?s:null,u=Md(c);try{null!==c&&(c.dirty=!1),e(n,o)}finally{Od(c,u)}}finally{a&&null===i[pc]&&sx(i,pc),Gr(r),os(a?3:1,o)}}function Ym(t,i,e){if(Mg(i)){const n=So(null);try{const s=i.directiveEnd;for(let r=i.directiveStart;rnull;function hx(t,i,e,n){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const s=t[o];null===n?fx(e,i,o,s):n.hasOwnProperty(o)&&fx(e,i,n[o],s)}return e}function fx(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function ho(t,i,e,n,o,s,r,a){const l=Ji(i,e);let u,c=i.inputs;!a&&null!=c&&(u=c[n])?(s_(t,e,u,n,o),$r(i)&&function qF(t,i){const e=co(i,t);16&e[kt]||(e[kt]|=64)}(e,i.index)):3&i.type&&(n=function GF(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),o=null!=r?r(o,i.value||"",n):o,s.setProperty(l,n,o))}function t_(t,i,e,n){if(tb()){const o=null===n?null:{"":-1},s=function JF(t,i){const e=t.directiveRegistry;let n=null,o=null;if(e)for(let s=0;s0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(r)!=a&&r.push(a),r.push(e,n,s)}}(t,i,n,Nc(t,e,o.hostVars,St),o)}function as(t,i,e,n,o,s){const r=Ji(t,i);!function i_(t,i,e,n,o,s,r){if(null==s)t.removeAttribute(i,o,e);else{const a=null==r?xt(s):r(s,n||"",o);t.setAttribute(i,o,a,e)}}(i[At],r,s,t.value,e,n,o)}function sR(t,i,e,n,o,s){const r=s[i];if(null!==r)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,o){const s=typeof Zone>"u"?null:Zone.current,r=function bL(t,i,e){const n=Object.create(yL);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;const o=r=>{n.cleanupFn=r};return n.ref={notify:()=>P1(n),run:()=>{if(n.dirty=!1,n.hasRun&&!F1(n))return;n.hasRun=!0;const r=Md(n);try{n.cleanupFn(),n.cleanupFn=U1,n.fn(o)}finally{Od(n,r)}},cleanup:()=>n.cleanupFn()},n.ref}(e,c=>{this.all.has(c)&&this.queue.set(c,s)},o);let a;this.all.add(r),r.notify();const l=()=>{r.cleanup(),a?.(),this.all.delete(r),this.queue.delete(r)};return a=n?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new t})}return t})();function a_(t,i){!i?.injector&&function $m(t){if(!a1()&&!function U4(){return Sa}())throw new Ae(-203,!1)}();const e=i?.injector??et($i),n=e.get(Ax),o=!0!==i?.manualCleanup?e.get(vp):null;return n.create(t,o,!!i?.allowSignalWrites)}function wp(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,s=0;if(null!==i)for(let r=0;r0){Sx(t,1);const o=e.components;null!==o&&Dx(t,o,1)}}function Dx(t,i,e){for(let n=0;n-1&&(ip(i,n),Kd(e,n))}this._attachedToViewContainer=!1}pm(this._lView[it],this._lView)}onDestroy(i){J1(this._lView,i)}markForCheck(){Rc(this._cdRefInjectingView||this._lView)}detach(){this._lView[kt]&=-129}reattach(){this._lView[kt]|=128}detectChanges(){Tp(this._lView[it],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ae(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function o5(t,i){Sc(t,i,i[At],2,null,null)}(this._lView[it],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Ae(902,!1);this._appRef=i}}class hR extends Bc{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Tp(i[it],i,i[Zn],!1)}checkNoChanges(){}get context(){return null}}class kx extends Cp{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=Zt(i);return new Hc(e,this.ngModule)}}function Mx(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class gR{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=xd(n);const o=this.injector.get(i,Um,n);return o!==Um||e===Um?o:this.parentInjector.get(i,e,n)}}class Hc extends Ry{get inputs(){const i=this.componentDef,e=i.inputTransforms,n=Mx(i.inputs);if(null!==e)for(const o of n)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return n}get outputs(){return Mx(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function iL(t){return t.map(nL).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,o){let s=(o=o||this.ngModule)instanceof po?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const r=s?new gR(i,s):i,a=r.get(Pc,null);if(null===a)throw new Ae(407,!1);const p={rendererFactory:a,sanitizer:r.get(pF,null),effectManager:r.get(Ax,null),afterRenderEventManager:r.get(Qm,null)},m=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",b=n?function BF(t,i,e,n){const s=n.get(ex,!1)||e===To.ShadowDom,r=t.selectRootElement(i,s);return function HF(t){px(t)}(r),r}(m,n,this.componentDef.encapsulation,r):np(m,_,function fR(t){const i=t.toLowerCase();return"svg"===i?"svg":"math"===i?"math":null}(_)),W=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let te=null;null!==b&&(te=Hm(b,r,!0));const fe=e_(0,null,null,1,0,null,null,null,null,null,null),Ce=xp(null,fe,null,W,null,null,p,m,r,null,te);let ve,ke;Kg(Ce);try{const Pe=this.componentDef;let $e,Ke=null;Pe.findHostDirectiveDefs?($e=[],Ke=new Map,Pe.findHostDirectiveDefs(Pe,$e,Ke),$e.push(Pe)):$e=[Pe];const pt=function _R(t,i){const e=t[it],n=Ut;return t[n]=i,sl(e,n,2,"#host",null)}(Ce,b),jt=function IR(t,i,e,n,o,s,r){const a=o[it];!function CR(t,i,e,n){for(const o of t)i.mergedAttrs=ac(i.mergedAttrs,o.hostAttrs);null!==i.mergedAttrs&&(wp(i,i.mergedAttrs,!0),null!==e&&uy(n,e,i))}(n,t,i,r);let l=null;null!==i&&(l=Hm(i,o[rr]));const c=s.rendererFactory.createRenderer(i,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const p=xp(o,dx(e),null,u,o[t.index],t,s,c,null,null,l);return a.firstCreatePass&&n_(a,t,n.length-1),Ap(o,p),o[t.index]=p}(pt,b,Pe,$e,Ce,p,m);ke=Q1(fe,Ut),b&&function bR(t,i,e,n){if(n)Eg(t,e,["ng-version",hF.full]);else{const{attrs:o,classes:s}=function oL(t){const i=[],e=[];let n=1,o=2;for(;n0&&cy(t,e,s.join(" "))}}(m,Pe,b,n),void 0!==e&&function yR(t,i,e){const n=t.projection=[];for(let o=0;o=0;n--){const o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=ac(o.hostAttrs,e=ac(e,o.hostAttrs))}}(n)}function Sp(t){return t===ts?{}:t===nn?[]:t}function wR(t,i){const e=t.viewQuery;t.viewQuery=e?(n,o)=>{i(n,o),e(n,o)}:i}function TR(t,i){const e=t.contentQueries;t.contentQueries=e?(n,o,s)=>{i(n,o,s),e(n,o,s)}:i}function SR(t,i){const e=t.hostBindings;t.hostBindings=e?(n,o)=>{i(n,o),e(n,o)}:i}function Rx(t){const i=t.inputConfig,e={};for(const n in i)if(i.hasOwnProperty(n)){const o=i[n];Array.isArray(o)&&o[2]&&(e[n]=o[2])}t.inputTransforms=e}function Ep(t){return!!l_(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function l_(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function ls(t,i,e){return t[i]=e}function zc(t,i){return t[i]}function wi(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function Zr(t,i,e,n){const o=wi(t,i,e);return wi(t,i+1,n)||o}function Dp(t,i,e,n,o){const s=Zr(t,i,e,n);return wi(t,i+2,o)||s}function Do(t,i,e,n,o,s){const r=Zr(t,i,e,n);return Zr(t,i+2,o,s)||r}function K(t,i,e,n){const o=Ne();return wi(o,Na(),i)&&(Yt(),as(zn(),o,t,i,e,n)),K}function al(t,i,e,n){return wi(t,Na(),e)?i+xt(e)+n:St}function ll(t,i,e,n,o,s){const a=Zr(t,function ks(){return It.lFrame.bindingIndex}(),e,o);return Ms(2),a?i+xt(e)+n+xt(o)+s:St}function g(t,i,e,n,o,s,r,a){const l=Ne(),c=Yt(),u=t+Ut,p=c.firstCreatePass?function XR(t,i,e,n,o,s,r,a,l){const c=i.consts,u=sl(i,t,4,r||null,cr(c,a));t_(i,e,u,cr(c,l)),Nd(i,u);const p=u.tView=e_(2,u,n,o,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,c,null);return null!==i.queries&&(i.queries.template(i,u),p.queries=i.queries.embeddedTView(u)),u}(u,c,l,i,e,n,o,s,r):c.data[u];ss(p,!1);const m=Qx(c,l,p,t);Rd()&&sp(c,l,m,p),Ai(m,l),Ap(l,l[u]=Ix(m,l,m,p)),Ed(p)&&Xm(c,l,p),null!=r&&Jm(l,p,a)}let Qx=function Zx(t,i,e,n){return ur(!0),i[At].createComment("")};function Bt(t){return Fa(function jL(){return It.lFrame.contextLView}(),Ut+t)}function d(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!1),d}function f_(t,i,e,n,o){const r=o?"class":"style";s_(t,e,i.inputs[r],r,n)}function x(t,i,e,n){const o=Ne(),s=Yt(),r=Ut+t,a=o[At],l=s.firstCreatePass?function n6(t,i,e,n,o,s){const r=i.consts,l=sl(i,t,2,n,cr(r,o));return t_(i,e,l,cr(r,s)),null!==l.attrs&&wp(l,l.attrs,!1),null!==l.mergedAttrs&&wp(l,l.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,l),l}(r,s,o,i,e,n):s.data[r],c=Yx(s,o,l,a,i,t);o[r]=c;const u=Ed(l);return ss(l,!0),uy(a,c,l),32!=(32&l.flags)&&Rd()&&sp(s,o,c,l),0===function PL(){return It.lFrame.elementDepthCount}()&&Ai(c,o),function FL(){It.lFrame.elementDepthCount++}(),u&&(Xm(s,o,l),Ym(s,l,o)),null!==n&&Jm(o,l),x}function A(){let t=_i();Hg()?zg():(t=t.parent,ss(t,!1));const i=t;(function NL(t){return It.skipHydrationRootTNode===t})(i)&&function zL(){It.skipHydrationRootTNode=null}(),function RL(){It.lFrame.elementDepthCount--}();const e=Yt();return e.firstCreatePass&&(Nd(e,t),Mg(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function tP(t){return 0!=(8&t.flags)}(i)&&f_(e,i,Ne(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function nP(t){return 0!=(16&t.flags)}(i)&&f_(e,i,Ne(),i.stylesWithoutHost,!1),A}function le(t,i,e,n){return x(t,i,e,n),A(),le}let Yx=(t,i,e,n,o,s)=>(ur(!0),np(n,o,function pb(){return It.lFrame.currentNamespace}()));function we(t,i,e){const n=Ne(),o=Yt(),s=t+Ut,r=o.firstCreatePass?function r6(t,i,e,n,o){const s=i.consts,r=cr(s,n),a=sl(i,t,8,"ng-container",r);return null!==r&&wp(a,r,!0),t_(i,e,a,cr(s,o)),null!==i.queries&&i.queries.elementStart(i,a),a}(s,o,n,i,e):o.data[s];ss(r,!0);const a=Xx(o,n,r,t);return n[s]=a,Rd()&&sp(o,n,a,r),Ai(a,n),Ed(r)&&(Xm(o,n,r),Ym(o,r,n)),null!=e&&Jm(n,r),we}function Te(){let t=_i();const i=Yt();return Hg()?zg():(t=t.parent,ss(t,!1)),i.firstCreatePass&&(Nd(i,t),Mg(t)&&i.queries.elementEnd(t)),Te}function ze(t,i,e){return we(t,i,e),Te(),ze}let Xx=(t,i,e,n)=>(ur(!0),dm(i[At],""));function De(){return Ne()}function Kc(t){return!!t&&"function"==typeof t.then}function Jx(t){return!!t&&"function"==typeof t.subscribe}function me(t,i,e,n){const o=Ne(),s=Yt(),r=_i();return function tA(t,i,e,n,o,s,r){const a=Ed(n),c=t.firstCreatePass&&bx(t),u=i[Zn],p=vx(i);let m=!0;if(3&n.type||r){const E=Ji(n,i),P=r?r(E):E,W=p.length,te=r?Ce=>r(Sn(Ce[n.index])):n.index;let fe=null;if(!r&&a&&(fe=function c6(t,i,e,n){const o=t.cleanup;if(null!=o)for(let s=0;sl?a[l]:null}"string"==typeof r&&(s+=2)}return null}(t,i,o,n.index)),null!==fe)(fe.__ngLastListenerFn__||fe).__ngNextListenerFn__=s,fe.__ngLastListenerFn__=s,m=!1;else{s=iA(n,i,u,s,!1);const Ce=e.listen(P,o,s);p.push(s,Ce),c&&c.push(o,te,W,W+1)}}else s=iA(n,i,u,s,!1);const _=n.outputs;let b;if(m&&null!==_&&(b=_[o])){const E=b.length;if(E)for(let P=0;P-1?co(t.index,i):i);let l=nA(i,e,n,r),c=s.__ngNextListenerFn__;for(;c;)l=nA(i,e,c,r)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&r.preventDefault(),l}}function f(t=1){return function qL(t){return(It.lFrame.contextLView=function WL(t,i){for(;t>0;)i=i[Ma],t--;return i}(t,It.lFrame.contextLView))[Zn]}(t)}function u6(t,i){let e=null;const n=function X4(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let o=0;o>17&32767}function I_(t){return 2|t}function Yr(t){return(131068&t)>>2}function C_(t,i){return-131069&t|i<<2}function v_(t){return 1|t}function dA(t,i,e,n,o){const s=t[e+1],r=null===i;let a=n?fr(s):Yr(s),l=!1;for(;0!==a&&(!1===l||r);){const u=t[a+1];m6(t[a],i)&&(l=!0,t[a+1]=n?v_(u):I_(u)),a=n?fr(u):Yr(u)}l&&(t[e+1]=n?I_(s):v_(s))}function m6(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Ka(t,i)>=0}const ci={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pA(t){return t.substring(ci.key,ci.keyEnd)}function _6(t){return t.substring(ci.value,ci.valueEnd)}function hA(t,i){const e=ci.textEnd;return e===i?-1:(i=ci.keyEnd=function v6(t,i,e){for(;i32;)i++;return i}(t,ci.key=i,e),gl(t,i,e))}function fA(t,i){const e=ci.textEnd;let n=ci.key=gl(t,i,e);return e===n?-1:(n=ci.keyEnd=function b6(t,i,e){let n;for(;i=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=mA(t,n,e),n=ci.value=gl(t,n,e),n=ci.valueEnd=function y6(t,i,e){let n=-1,o=-1,s=-1,r=i,a=r;for(;r32&&(a=r),s=o,o=n,n=-33&l}return a}(t,n,e),mA(t,n,e))}function gA(t){ci.key=0,ci.keyEnd=0,ci.value=0,ci.valueEnd=0,ci.textEnd=t.length}function gl(t,i,e){for(;i=0;e=fA(i,e))vA(t,pA(i),_6(i))}function Ve(t){Uo(D6,cs,t,!0)}function cs(t,i){for(let e=function I6(t){return gA(t),hA(t,gl(t,0,ci.textEnd))}(i);e>=0;e=hA(i,e))uo(t,pA(i),!0)}function jo(t,i,e,n){const o=Ne(),s=Yt(),r=Ms(2);s.firstUpdatePass&&CA(s,t,r,n),i!==St&&wi(o,r,i)&&bA(s,s.data[ji()],o,o[At],t,o[r+1]=function M6(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ai(pr(t)))),t}(i,e),n,r)}function Uo(t,i,e,n){const o=Yt(),s=Ms(2);o.firstUpdatePass&&CA(o,null,s,n);const r=Ne();if(e!==St&&wi(r,s,e)){const a=o.data[ji()];if(xA(a,n)&&!IA(o,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=fg(l,e||"")),f_(o,a,r,e,n)}else!function k6(t,i,e,n,o,s,r,a){o===St&&(o=nn);let l=0,c=0,u=0=t.expandoStartIndex}function CA(t,i,e,n){const o=t.data;if(null===o[e+1]){const s=o[ji()],r=IA(t,e);xA(s,n)&&null===i&&!r&&(i=!1),i=function A6(t,i,e,n){const o=function Ug(t){const i=It.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let s=n?i.residualClasses:i.residualStyles;if(null===o)0===(n?i.classBindings:i.styleBindings)&&(e=Gc(e=b_(null,t,i,e,n),i.attrs,n),s=null);else{const r=i.directiveStylingLast;if(-1===r||t[r]!==o)if(e=b_(o,t,i,e,n),null===s){let l=function w6(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==Yr(n))return t[fr(n)]}(t,i,n);void 0!==l&&Array.isArray(l)&&(l=b_(null,t,i,l[1],n),l=Gc(l,i.attrs,n),function T6(t,i,e,n){t[fr(e?i.classBindings:i.styleBindings)]=n}(t,i,n,l))}else s=function S6(t,i,e){let n;const o=i.directiveEnd;for(let s=1+i.directiveStylingLast;s0)&&(c=!0)):u=e,o)if(0!==l){const m=fr(t[a+1]);t[n+1]=Lp(m,a),0!==m&&(t[m+1]=C_(t[m+1],n)),t[a+1]=function p6(t,i){return 131071&t|i<<17}(t[a+1],n)}else t[n+1]=Lp(a,0),0!==a&&(t[a+1]=C_(t[a+1],n)),a=n;else t[n+1]=Lp(l,0),0===a?a=n:t[l+1]=C_(t[l+1],n),l=n;c&&(t[n+1]=I_(t[n+1])),dA(t,u,n,!0),dA(t,u,n,!1),function g6(t,i,e,n,o){const s=o?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof i&&Ka(s,i)>=0&&(e[n+1]=v_(e[n+1]))}(i,u,t,n,s),r=Lp(a,l),s?i.classBindings=r:i.styleBindings=r}(o,s,i,e,r,n)}}function b_(t,i,e,n,o){let s=null;const r=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,p=null===u;let m=e[o+1];m===St&&(m=p?nn:void 0);let _=p?tm(m,n):u===n?m:void 0;if(c&&!Pp(_)&&(_=tm(l,n)),Pp(_)&&(a=_,r))return a;const b=t[o+1];o=r?fr(b):Yr(b)}if(null!==i){let l=s?i.residualClasses:i.residualStyles;null!=l&&(a=tm(l,n))}return a}function Pp(t){return void 0!==t}function xA(t,i){return 0!=(t.flags&(i?8:16))}function Le(t,i=""){const e=Ne(),n=Yt(),o=t+Ut,s=n.firstCreatePass?sl(n,o,1,i,null):n.data[o],r=AA(n,e,s,i,t);e[o]=r,Rd()&&sp(n,e,r,s),ss(s,!1)}let AA=(t,i,e,n,o)=>(ur(!0),function tp(t,i){return t.createText(i)}(i[At],n));function dt(t){return Pt("",t,""),dt}function Pt(t,i,e){const n=Ne(),o=al(n,t,i,e);return o!==St&&Rs(n,ji(),o),Pt}function Fp(t,i,e,n,o){const s=Ne(),r=ll(s,t,i,e,n,o);return r!==St&&Rs(s,ji(),r),Fp}function y_(t,i,e){Uo(uo,cs,al(Ne(),t,i,e),!0)}function x_(t,i,e){const n=Ne();return wi(n,Na(),i)&&ho(Yt(),zn(),n,t,i,n[At],e,!0),x_}const Xr=void 0;var X6=["en",[["a","p"],["AM","PM"],Xr],[["AM","PM"],Xr,Xr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Xr,"{1} 'at' {0}",Xr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Y6(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ml={};function Ki(t){const i=function J6(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=UA(i);if(e)return e;const n=i.split("-")[0];if(e=UA(n),e)return e;if("en"===n)return X6;throw new Ae(701,!1)}function UA(t){return t in ml||(ml[t]=Tn.ng&&Tn.ng.common&&Tn.ng.common.locales&&Tn.ng.common.locales[t]),ml[t]}var En=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(En||{});const _l="en-US";let $A=_l;function T_(t,i,e,n,o){if(t=vt(t),Array.isArray(t))for(let s=0;s>20;if(Qr(t)||!t.multi){const _=new _c(c,o,V),b=E_(l,i,o?u:u+m,p);-1===b?(Xg(zd(a,r),s,l),S_(s,t,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(_),r.push(_)):(e[b]=_,r[b]=_)}else{const _=E_(l,i,u+m,p),b=E_(l,i,u,u+m),P=b>=0&&e[b];if(o&&!P||!o&&!(_>=0&&e[_])){Xg(zd(a,r),s,l);const W=function X9(t,i,e,n,o){const s=new _c(t,e,V);return s.multi=[],s.index=i,s.componentProviders=0,gw(s,o,n&&!e),s}(o?Y9:Z9,e.length,o,n,c);!o&&P&&(e[b].providerFactory=W),S_(s,t,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(W),r.push(W)}else S_(s,t,_>-1?_:b,gw(e[o?b:_],c,!o&&n));!o&&n&&P&&e[b].componentProviders++}}}function S_(t,i,e,n){const o=Qr(i),s=function U5(t){return!!t.useClass}(i);if(o||s){const l=(s?vt(i.useClass):i).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){const u=c.indexOf(e);-1===u?c.push(e,[n,l]):c[u+1].push(n,l)}else c.push(e,l)}}}function gw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function E_(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>function Q9(t,i,e){const n=Yt();if(n.firstCreatePass){const o=zo(t);T_(e,n.data,n.blueprint,o,!0),T_(i,n.data,n.blueprint,o,!1)}}(n,o?o(t):t,i)}}class Jr{}class mw{}class k_ extends Jr{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kx(this);const o=lo(i);this._bootstrapComponents=Fs(o.bootstrap),this._r3Injector=jy(i,e,[{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver},...n],ai(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class M_ extends mw{constructor(i){super(),this.moduleType=i}create(i){return new k_(this.moduleType,i,[])}}class _w extends Jr{constructor(i){super(),this.componentFactoryResolver=new kx(this),this.instance=null;const e=new Xa([...i.providers,{provide:Jr,useValue:this},{provide:Cp,useValue:this.componentFactoryResolver}],i.parent||pp(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function O_(t,i,e=null){return new _w({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}let t7=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=wy(0,e.type),o=n.length>0?O_([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=nt({token:t,providedIn:"environment",factory:()=>new t(Ze(po))})}return t})();function Et(t){t.getStandaloneInjector=i=>i.get(t7).getOrCreateStandaloneInjector(t)}function Jt(t,i,e){const n=zi()+t,o=Ne();return o[n]===St?ls(o,n,e?i.call(e):i()):zc(o,n)}function He(t,i,e,n){return function ww(t,i,e,n,o,s){const r=i+e;return wi(t,r,o)?ls(t,r+1,s?n.call(s,o):n(o)):Xc(t,r+1)}(Ne(),zi(),t,i,e,n)}function mt(t,i,e,n,o){return Tw(Ne(),zi(),t,i,e,n,o)}function Rn(t,i,e,n,o,s){return function Sw(t,i,e,n,o,s,r,a){const l=i+e;return Dp(t,l,o,s,r)?ls(t,l+3,a?n.call(a,o,s,r):n(o,s,r)):Xc(t,l+3)}(Ne(),zi(),t,i,e,n,o,s)}function gr(t,i,e,n,o,s,r){return function Ew(t,i,e,n,o,s,r,a,l){const c=i+e;return Do(t,c,o,s,r,a)?ls(t,c+4,l?n.call(l,o,s,r,a):n(o,s,r,a)):Xc(t,c+4)}(Ne(),zi(),t,i,e,n,o,s,r)}function Hp(t,i,e,n,o,s,r,a){const l=zi()+t,c=Ne(),u=Do(c,l,e,n,o,s);return wi(c,l+4,r)||u?ls(c,l+5,a?i.call(a,e,n,o,s,r):i(e,n,o,s,r)):zc(c,l+5)}function ea(t,i,e,n,o,s,r,a,l){const c=zi()+t,u=Ne(),p=Do(u,c,e,n,o,s);return Zr(u,c+4,r,a)||p?ls(u,c+6,l?i.call(l,e,n,o,s,r,a):i(e,n,o,s,r,a)):zc(u,c+6)}function zp(t,i,e,n){return function Dw(t,i,e,n,o,s){let r=i+e,a=!1;for(let l=0;l=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];const s=n.factory||(n.factory=Kr(n.type)),a=Yi(V);try{const l=Hd(!1),c=s();return Hd(l),function t6(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,Ne(),o,c),c}finally{Yi(a)}}function Cl(t,i,e,n){const o=t+Ut,s=Ne(),r=Fa(s,o);return function Jc(t,i){return t[it].data[i].pure}(s,o)?Tw(s,zi(),i,r.transform,e,n,r):r.transform(e,n)}function _7(){return this._results[Symbol.iterator]()}class P_{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new ge)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=P_.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_7)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const o=function Eo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function mP(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n0&&(e[o-1][Ho]=i),n{class t{static#e=this.__NG_ELEMENT_ID__=y7}return t})();const v7=$o,b7=class extends v7{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){const o=function I7(t,i,e,n){const o=i.tView,a=xp(t,o,e,4096&t[kt]?4096:16,null,i,null,null,null,n?.injector??null,n?.hydrationInfo??null);a[uc]=t[i.index];const c=t[ns];return null!==c&&(a[ns]=c.createEmbeddedView(o)),r_(o,a,e),a}(this._declarationLView,this._declarationTContainer,i,{injector:e,hydrationInfo:n});return new Bc(o)}};function y7(){return jp(_i(),Ne())}function jp(t,i){return 4&t.type?new b7(i,t,nl(t,i)):null}let go=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=E7}return t})();function E7(){return Rw(_i(),Ne())}const D7=go,Pw=class extends D7{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return nl(this._hostTNode,this._hostLView)}get injector(){return new Ui(this._hostTNode,this._hostLView)}get parentInjector(){const i=jd(this._hostTNode,this._hostLView);if(Qg(i)){const e=Cc(i,this._hostLView),n=Ic(i);return new Ui(e[it].data[n+8],e)}return new Ui(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=Fw(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-gi}createEmbeddedView(i,e,n){let o,s;"number"==typeof n?o=n:null!=n&&(o=n.index,s=n.injector);const a=i.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(a,o,false),a}createComponent(i,e,n,o,s){const r=i&&!function bc(t){return"function"==typeof t}(i);let a;if(r)a=e;else{const E=e||{};a=E.index,n=E.injector,o=E.projectableNodes,s=E.environmentInjector||E.ngModuleRef}const l=r?i:new Hc(Zt(i)),c=n||this.parentInjector;if(!s&&null==l.ngModule){const P=(r?c:this.parentInjector).get(po,null);P&&(s=P)}Zt(l.componentType??{});const _=l.create(c,o,null,s);return this.insertImpl(_.hostView,a,false),_}insert(i,e){return this.insertImpl(i,e,!1)}insertImpl(i,e,n){const o=i._lView;if(function ML(t){return Hi(t[Fn])}(o)){const l=this.indexOf(i);if(-1!==l)this.detach(l);else{const c=o[Fn],u=new Pw(c,c[xi],c[Fn]);u.detach(u.indexOf(i))}}const r=this._adjustIndex(e),a=this._lContainer;return C7(a,o,r,!n),i.attachToViewContainerRef(),Sb(F_(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=Fw(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);n&&(Kd(F_(this._lContainer),e),pm(n[it],n))}detach(i){const e=this._adjustIndex(i,-1),n=ip(this._lContainer,e);return n&&null!=Kd(F_(this._lContainer),e)?new Bc(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Fw(t){return t[8]}function F_(t){return t[8]||(t[8]=[])}function Rw(t,i){let e;const n=i[t.index];return Hi(n)?e=n:(e=Ix(n,i,null,t),i[t.index]=e,Ap(i,e)),Nw(e,i,t,n),new Pw(e,t,i)}let Nw=function Vw(t,i,e,n){if(t[is])return;let o;o=8&e.type?Sn(n):function k7(t,i){const e=t[At],n=e.createComment(""),o=Ji(i,t);return Wr(e,op(e,o),n,function d5(t,i){return t.nextSibling(i)}(e,o),!1),n}(i,e),t[is]=o};class R_{constructor(i){this.queryList=i,this.matches=null}clone(){return new R_(this.queryList)}setDirty(){this.queryList.setDirty()}}class N_{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,o=[];for(let s=0;s0)n.push(r[a/2]);else{const c=s[a+1],u=i[-l];for(let p=gi;p{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=et(G_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const s=o();if(Kc(s))e.push(s);else if(Jx(s)){const r=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(r)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),a2=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const us=new Ye("LocaleId",{providedIn:"root",factory:()=>et(us,zt.Optional|zt.SkipSelf)||function sN(){return typeof $localize<"u"&&$localize.locale||_l}()});let Kp=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xo(!1)}add(){this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class lN{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let l2=(()=>{class t{compileModuleSync(e){return new M_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=Fs(lo(e).declarations).reduce((r,a)=>{const l=Zt(a);return l&&r.push(new Hc(l)),r},[]);return new lN(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const p2=new Ye(""),qp=new Ye("");let X_,Z_=(()=>{class t{constructor(e,n,o){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,X_||(function kN(t){X_=t}(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Tt.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(r=>r.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:o})}whenStable(e,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Tt),Ze(Y_),Ze(qp))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),Y_=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return X_?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),mr=null;const h2=new Ye("AllowMultipleToken"),J_=new Ye("PlatformDestroyListeners"),e0=new Ye("appBootstrapListener");class g2{constructor(i,e){this.name=i,this.token=e}}function _2(t,i,e=[]){const n=`Platform: ${i}`,o=new Ye(n);return(s=[])=>{let r=t0();if(!r||r.injector.get(h2,!1)){const a=[...e,...s,{provide:o,useValue:!0}];t?t(a):function LN(t){if(mr&&!mr.get(h2,!1))throw new Ae(400,!1);(function f2(){!function mL(t){B1=t}(()=>{throw new Ae(600,!1)})})(),mr=t;const i=t.get(C2);(function m2(t){t.get(ky,null)?.forEach(e=>e())})(t)}(function I2(t=[],i){return $i.create({name:i,providers:[{provide:Dm,useValue:"platform"},{provide:J_,useValue:new Set([()=>mr=null])},...t]})}(a,n))}return function FN(t){const i=t0();if(!i)throw new Ae(401,!1);return i}()}}function t0(){return mr?.get(C2)??null}let C2=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,n){const o=function RN(t="zone.js",i){return"noop"===t?new TF:"zone.js"===t?new Tt(i):t}(n?.ngZone,function v2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing}));return o.run(()=>{const s=function e7(t,i,e){return new k_(t,i,e)}(e.moduleType,this.injector,function w2(t){return[{provide:Tt,useFactory:t},{provide:Mc,multi:!0,useFactory:()=>{const i=et(VN,{optional:!0});return()=>i.initialize()}},{provide:A2,useFactory:NN},{provide:qy,useFactory:Wy}]}(()=>o)),r=s.injector.get(Ps,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{r.handleError(l)}});s.onDestroy(()=>{Wp(this._modules,s),a.unsubscribe()})}),function b2(t,i,e){try{const n=e();return Kc(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(r,o,()=>{const a=s.injector.get(q_);return a.runInitializers(),a.donePromise.then(()=>(function KA(t){wo(t,"Expected localeId to be defined"),"string"==typeof t&&($A=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(us,_l)||_l),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,n=[]){const o=y2({},n);return function MN(t,i,e){const n=new M_(e);return Promise.resolve(n)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(e){const n=e.injector.get(ta);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>n.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Ae(-403,!1);e.instance.ngDoBootstrap(n)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ae(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());const e=this._injector.get(J_,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(n){return new(n||t)(Ze($i))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function y2(t,i){return Array.isArray(i)?i.reduce(y2,t):{...t,...i}}let ta=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=et(A2),this.zoneIsStable=et(qy),this.componentTypes=[],this.components=[],this.isStable=et(Kp).hasPendingTasks.pipe(Ao(e=>e?ht(!1):this.zoneIsStable),function E4(t,i=_e){return t=t??D4,Me((e,n)=>{let o,s=!0;e.subscribe(Ue(n,r=>{const a=i(r);(s||!t(o,a))&&(s=!1,o=a,n.next(r))}))})}(),t1()),this._injector=et(po)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const o=e instanceof Ry;if(!this._injector.get(q_).done)throw!o&&function Ea(t){const i=Zt(t)||fi(t)||Bi(t);return null!==i&&i.standalone}(e),new Ae(405,!1);let r;r=o?e:this._injector.get(Cp).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const a=function ON(t){return t.isBoundToModule}(r)?void 0:this._injector.get(Jr),c=r.create($i.NULL,[],n||r.selector,a),u=c.location.nativeElement,p=c.injector.get(p2,null);return p?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Wp(this.components,c),p?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Ae(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;Wp(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(e0,[]);n.push(...this._bootstrapListeners),n.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Wp(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Ae(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wp(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const A2=new Ye("",{providedIn:"root",factory:()=>et(Ps).handleError.bind(void 0)});function NN(){const t=et(Tt),i=et(Ps);return e=>t.runOutsideAngular(()=>i.handleError(e))}let VN=(()=>{class t{constructor(){this.zone=et(Tt),this.applicationRef=et(ta)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();let Ft=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=HN}return t})();function HN(t){return function zN(t,i,e){if($r(t)&&!e){const n=co(t.index,i);return new Bc(n,n)}return 47&t.type?new Bc(i[Yn],i):null}(_i(),Ne(),16==(16&t))}class D2{constructor(){}supports(i){return Ep(i)}create(i){return new qN(i)}}const GN=(t,i)=>i;class qN{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||GN}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{r=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,r)?(n&&(e=this._verifyReinsertion(e,a,r,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,r,o),n=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,s,o)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,s,o)):i=this._addAfter(new WN(e,n),s,o),i}_verifyReinsertion(i,e,n,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?i=this._reinsertAfter(s,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const o=i._prevRemoved,s=i._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const o=null===e?this._itHead:e._next;return i._next=o,i._prev=e,null===o?this._itTail=i:o._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new k2),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new k2),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class WN{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class QN{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class k2{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new QN,this.map.set(e,n)),n.add(i)}get(i,e){const o=this.map.get(i);return o?o.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function M2(t,i,e){const n=t.previousIndex;if(null===n)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const o=this._records.get(i);this._maybeAddToChanges(o,e);const s=o._prev,r=o._next;return s&&(s._next=r),r&&(r._prev=s),o._next=null,o._prev=null,o}const n=new YN(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class YN{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function L2(){return new Yp([new D2])}let Yp=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:L2});constructor(e){this.factories=e}static create(e,n){if(null!=n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||L2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(null!=n)return n;throw new Ae(901,!1)}}return t})();function P2(){return new yl([new O2])}let yl=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:P2});constructor(e){this.factories=e}static create(e,n){if(n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||P2()),deps:[[t,new Wd,new qd]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new Ae(901,!1)}}return t})();const e8=_2(null,"core",[]);let t8=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ta))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function xl(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let l0=null;function _r(){return l0}class m8{}const Wt=new Ye("DocumentToken");let c0=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(I8)},providedIn:"platform"})}return t})();const _8=new Ye("Location Initialized");let I8=(()=>{class t extends c0{constructor(){super(),this._doc=et(Wt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _r().getBaseHref(this._doc)}onPopState(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=_r().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function u0(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function U2(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ns(t){return t&&"?"!==t[0]?"?"+t:t}let Ir=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(K2)},providedIn:"root"})}return t})();const $2=new Ye("appBaseHref");let K2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??et(Wt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return u0(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+Ns(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){const r=this.prepareExternalUrl(o+Ns(s));this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),G2=(()=>{class t extends Ir{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=u0(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,n,r)}replaceState(e,n,o,s){let r=this.prepareExternalUrl(o+Ns(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(c0),Ze($2,8))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),d0=(()=>{class t{constructor(e){this._subject=new ge,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function b8(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(U2(q2(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Ns(n))}normalize(e){return t.stripTrailingSlash(function v8(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,q2(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ns(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n,complete:o})}static#e=this.normalizeQueryParams=Ns;static#t=this.joinWithSlash=u0;static#n=this.stripTrailingSlash=U2;static#i=this.\u0275fac=function(n){return new(n||t)(Ze(Ir))};static#o=this.\u0275prov=nt({token:t,factory:function(){return function C8(){return new d0(Ze(Ir))}()},providedIn:"root"})}return t})();function q2(t){return t.replace(/\/index.html$/,"")}var qi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(qi||{}),xn=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(xn||{}),mo=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(mo||{}),Xn=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(Xn||{});function eh(t,i){return Mo(Ki(t)[En.DateFormat],i)}function th(t,i){return Mo(Ki(t)[En.TimeFormat],i)}function nh(t,i){return Mo(Ki(t)[En.DateTimeFormat],i)}function ko(t,i){const e=Ki(t),n=e[En.NumberSymbols][i];if(typeof n>"u"){if(i===Xn.CurrencyDecimal)return e[En.NumberSymbols][Xn.Decimal];if(i===Xn.CurrencyGroup)return e[En.NumberSymbols][Xn.Group]}return n}function Q2(t){if(!t[En.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[En.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Mo(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function h0(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const F8=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,nu={},R8=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Vs=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Vs||{}),ln=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ln||{}),cn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(cn||{});function N8(t,i,e,n){let o=function G8(t){if(X2(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,s=1,r=1]=t.split("-").map(a=>+a);return ih(o,s-1,r)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(F8))return function q8(t){const i=new Date(0);let e=0,n=0;const o=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const r=Number(t[4]||0)-e,a=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,r,a,l,c),i}(n)}const i=new Date(t);if(!X2(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Bs(e,i)||i;let a,r=[];for(;i;){if(a=R8.exec(i),!a){r.push(i);break}{r=r.concat(a.slice(1));const u=r.pop();if(!u)break;i=u}}let l=o.getTimezoneOffset();n&&(l=Y2(n,l),o=function K8(t,i,e){const n=e?-1:1,o=t.getTimezoneOffset();return function $8(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(Y2(i,o)-o))}(o,n,!0));let c="";return r.forEach(u=>{const p=function U8(t){if(g0[t])return g0[t];let i;switch(t){case"G":case"GG":case"GGG":i=Dn(cn.Eras,xn.Abbreviated);break;case"GGGG":i=Dn(cn.Eras,xn.Wide);break;case"GGGGG":i=Dn(cn.Eras,xn.Narrow);break;case"y":i=ii(ln.FullYear,1,0,!1,!0);break;case"yy":i=ii(ln.FullYear,2,0,!0,!0);break;case"yyy":i=ii(ln.FullYear,3,0,!1,!0);break;case"yyyy":i=ii(ln.FullYear,4,0,!1,!0);break;case"Y":i=ah(1);break;case"YY":i=ah(2,!0);break;case"YYY":i=ah(3);break;case"YYYY":i=ah(4);break;case"M":case"L":i=ii(ln.Month,1,1);break;case"MM":case"LL":i=ii(ln.Month,2,1);break;case"MMM":i=Dn(cn.Months,xn.Abbreviated);break;case"MMMM":i=Dn(cn.Months,xn.Wide);break;case"MMMMM":i=Dn(cn.Months,xn.Narrow);break;case"LLL":i=Dn(cn.Months,xn.Abbreviated,qi.Standalone);break;case"LLLL":i=Dn(cn.Months,xn.Wide,qi.Standalone);break;case"LLLLL":i=Dn(cn.Months,xn.Narrow,qi.Standalone);break;case"w":i=f0(1);break;case"ww":i=f0(2);break;case"W":i=f0(1,!0);break;case"d":i=ii(ln.Date,1);break;case"dd":i=ii(ln.Date,2);break;case"c":case"cc":i=ii(ln.Day,1);break;case"ccc":i=Dn(cn.Days,xn.Abbreviated,qi.Standalone);break;case"cccc":i=Dn(cn.Days,xn.Wide,qi.Standalone);break;case"ccccc":i=Dn(cn.Days,xn.Narrow,qi.Standalone);break;case"cccccc":i=Dn(cn.Days,xn.Short,qi.Standalone);break;case"E":case"EE":case"EEE":i=Dn(cn.Days,xn.Abbreviated);break;case"EEEE":i=Dn(cn.Days,xn.Wide);break;case"EEEEE":i=Dn(cn.Days,xn.Narrow);break;case"EEEEEE":i=Dn(cn.Days,xn.Short);break;case"a":case"aa":case"aaa":i=Dn(cn.DayPeriods,xn.Abbreviated);break;case"aaaa":i=Dn(cn.DayPeriods,xn.Wide);break;case"aaaaa":i=Dn(cn.DayPeriods,xn.Narrow);break;case"b":case"bb":case"bbb":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Standalone,!0);break;case"bbbb":i=Dn(cn.DayPeriods,xn.Wide,qi.Standalone,!0);break;case"bbbbb":i=Dn(cn.DayPeriods,xn.Narrow,qi.Standalone,!0);break;case"B":case"BB":case"BBB":i=Dn(cn.DayPeriods,xn.Abbreviated,qi.Format,!0);break;case"BBBB":i=Dn(cn.DayPeriods,xn.Wide,qi.Format,!0);break;case"BBBBB":i=Dn(cn.DayPeriods,xn.Narrow,qi.Format,!0);break;case"h":i=ii(ln.Hours,1,-12);break;case"hh":i=ii(ln.Hours,2,-12);break;case"H":i=ii(ln.Hours,1);break;case"HH":i=ii(ln.Hours,2);break;case"m":i=ii(ln.Minutes,1);break;case"mm":i=ii(ln.Minutes,2);break;case"s":i=ii(ln.Seconds,1);break;case"ss":i=ii(ln.Seconds,2);break;case"S":i=ii(ln.FractionalSeconds,1);break;case"SS":i=ii(ln.FractionalSeconds,2);break;case"SSS":i=ii(ln.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=sh(Vs.Short);break;case"ZZZZZ":i=sh(Vs.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=sh(Vs.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=sh(Vs.Long);break;default:return null}return g0[t]=i,i}(u);c+=p?p(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ih(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Bs(t,i){const e=function x8(t){return Ki(t)[En.LocaleId]}(t);if(nu[e]=nu[e]||{},nu[e][i])return nu[e][i];let n="";switch(i){case"shortDate":n=eh(t,mo.Short);break;case"mediumDate":n=eh(t,mo.Medium);break;case"longDate":n=eh(t,mo.Long);break;case"fullDate":n=eh(t,mo.Full);break;case"shortTime":n=th(t,mo.Short);break;case"mediumTime":n=th(t,mo.Medium);break;case"longTime":n=th(t,mo.Long);break;case"fullTime":n=th(t,mo.Full);break;case"short":const o=Bs(t,"shortTime"),s=Bs(t,"shortDate");n=oh(nh(t,mo.Short),[o,s]);break;case"medium":const r=Bs(t,"mediumTime"),a=Bs(t,"mediumDate");n=oh(nh(t,mo.Medium),[r,a]);break;case"long":const l=Bs(t,"longTime"),c=Bs(t,"longDate");n=oh(nh(t,mo.Long),[l,c]);break;case"full":const u=Bs(t,"fullTime"),p=Bs(t,"fullDate");n=oh(nh(t,mo.Full),[u,p])}return n&&(nu[e][i]=n),n}function oh(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function Ko(t,i,e="-",n,o){let s="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,s=e));let r=String(t);for(;r.length0||a>-e)&&(a+=e),t===ln.Hours)0===a&&-12===e&&(a=12);else if(t===ln.FractionalSeconds)return function V8(t,i){return Ko(t,3).substring(0,i)}(a,i);const l=ko(r,Xn.MinusSign);return Ko(a,i,l,n,o)}}function Dn(t,i,e=qi.Format,n=!1){return function(o,s){return function H8(t,i,e,n,o,s){switch(e){case cn.Months:return function T8(t,i,e){const n=Ki(t),s=Mo([n[En.MonthsFormat],n[En.MonthsStandalone]],i);return Mo(s,e)}(i,o,n)[t.getMonth()];case cn.Days:return function w8(t,i,e){const n=Ki(t),s=Mo([n[En.DaysFormat],n[En.DaysStandalone]],i);return Mo(s,e)}(i,o,n)[t.getDay()];case cn.DayPeriods:const r=t.getHours(),a=t.getMinutes();if(s){const c=function k8(t){const i=Ki(t);return Q2(i),(i[En.ExtraData][2]||[]).map(n=>"string"==typeof n?h0(n):[h0(n[0]),h0(n[1])])}(i),u=function M8(t,i,e){const n=Ki(t);Q2(n);const s=Mo([n[En.ExtraData][0],n[En.ExtraData][1]],i)||[];return Mo(s,e)||[]}(i,o,n),p=c.findIndex(m=>{if(Array.isArray(m)){const[_,b]=m,E=r>=_.hours&&a>=_.minutes,P=r0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Vs.Short:return(o>=0?"+":"")+Ko(r,2,s)+Ko(Math.abs(o%60),2,s);case Vs.ShortGMT:return"GMT"+(o>=0?"+":"")+Ko(r,1,s);case Vs.Long:return"GMT"+(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);case Vs.Extended:return 0===n?"Z":(o>=0?"+":"")+Ko(r,2,s)+":"+Ko(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const z8=0,rh=4;function Z2(t){return ih(t.getFullYear(),t.getMonth(),t.getDate()+(rh-t.getDay()))}function f0(t,i=!1){return function(e,n){let o;if(i){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,r=e.getDate();o=1+Math.floor((r+s)/7)}else{const s=Z2(e),r=function j8(t){const i=ih(t,z8,1).getDay();return ih(t,0,1+(i<=rh?rh:rh+7)-i)}(s.getFullYear()),a=s.getTime()-r.getTime();o=1+Math.round(a/6048e5)}return Ko(o,t,ko(n,Xn.MinusSign))}}function ah(t,i=!1){return function(e,n){return Ko(Z2(e).getFullYear(),t,ko(n,Xn.MinusSign),i)}}const g0={};function Y2(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function X2(t){return t instanceof Date&&!isNaN(t.valueOf())}function nT(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[o,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(s)}return null}const b0=/\s+/,iT=[];let Ct=(()=>{class t{constructor(e,n,o,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=o,this._renderer=s,this.initialClasses=iT,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(b0):iT}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(b0):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(b0).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(n){return new(n||t)(V(Yp),V(yl),V(bt),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class rV{constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Jn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const n=this._viewContainer;e.forEachOperation((o,s,r)=>{if(null==o.previousIndex)n.createEmbeddedView(this._template,new rV(o.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)n.remove(null===s?void 0:s);else if(null!==s){const a=n.get(s);n.move(a,r),sT(a,o)}});for(let o=0,s=n.length;o{sT(n.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(Yp))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function sT(t,i){t.context.$implicit=i.item}let gt=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new aV,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){rT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){rT("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class aV{constructor(){this.$implicit=null,this.ngIf=null}}function rT(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ai(i)}'.`)}class y0{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let wl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),ch=(()=>{class t{constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new y0(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),x0=(()=>{class t{constructor(e,n,o){o._addDefault(new y0(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(V(go),V($o),V(wl,9))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),Ht=(()=>{class t{constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){const[o,s]=e.split("."),r=-1===o.indexOf("-")?void 0:dr.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,r):this._renderer.removeStyle(this._ngEl.nativeElement,o,r)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(V(bt),V(yl),V(hn))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),on=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:r}=this;this._viewRef=n.createEmbeddedView(o,s,r?{injector:r}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(V(go))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Hn]})}return t})();const CV=new Ye("DATE_PIPE_DEFAULT_TIMEZONE"),vV=new Ye("DATE_PIPE_DEFAULT_OPTIONS");let Hs=(()=>{class t{constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,s){if(null==e||""===e||e!=e)return null;try{return N8(e,n??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(r){throw function Go(t,i){return new Ae(2100,!1)}()}}static#e=this.\u0275fac=function(n){return new(n||t)(V(us,16),V(CV,24),V(vV,24))};static#t=this.\u0275pipe=Vi({name:"date",type:t,pure:!0,standalone:!0})}return t})(),Xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();const cT="browser";function ei(t){return t===cT}function uT(t){return"server"===t}let LV=(()=>{class t{static#e=this.\u0275prov=nt({token:t,providedIn:"root",factory:()=>new PV(Ze(Wt),window)})}return t})();class PV{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function FV(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=n.currentNode;for(;o;){const s=o.shadowRoot;if(s){const r=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(r)return r}o=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],o-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class dT{}class oB extends m8{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class E0 extends oB{static makeCurrent(){!function g8(t){l0||(l0=t)}(new E0)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function sB(){return su=su||document.querySelector("base"),su?su.getAttribute("href"):null}();return null==e?null:function rB(t){ph=ph||document.createElement("a"),ph.setAttribute("href",t);const i=ph.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return nT(document.cookie,i)}}let ph,su=null,lB=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const D0=new Ye("EventManagerPlugins");let mT=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,o){return this._findPluginFor(n).addEventListener(e,n,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new Ae(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(D0),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class _T{constructor(i){this._doc=i}}const k0="ng-app-id";let IT=(()=>{class t{constructor(e,n,o,s={}){this.doc=e,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=uT(s),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(o=>o.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${k0}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(o=>{null!=o.textContent&&n.set(o.textContent,o)}),n}return null}changeUsageCount(e,n){const o=this.styleRef;if(o.has(e)){const s=o.get(e);return s.usage+=n,s.usage}return o.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===e)return o.delete(n),s.removeAttribute(k0),s;{const r=this.doc.createElement("style");return this.nonce&&r.setAttribute("nonce",this.nonce),r.textContent=n,this.platformIsServer&&r.setAttribute(k0,this.appId),r}}addStyleToHost(e,n){const o=this.getStyleElement(e,n);e.appendChild(o);const s=this.styleRef,r=s.get(n)?.elements;r?r.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(hp),Ze(Oy,8),Ze($n))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const M0={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},O0=/%COMP%/g,pB=new Ye("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function vT(t,i){return i.map(e=>e.replace(O0,t))}let L0=(()=>{class t{constructor(e,n,o,s,r,a,l,c=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=r,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=uT(a),this.defaultRenderer=new P0(e,r,l,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===To.ShadowDom&&(n={...n,encapsulation:To.Emulated});const o=this.getOrCreateRenderer(e,n);return o instanceof yT?o.applyToHost(e):o instanceof F0&&o.applyStyles(),o}getOrCreateRenderer(e,n){const o=this.rendererByCompId;let s=o.get(n.id);if(!s){const r=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,p=this.platformIsServer;switch(n.encapsulation){case To.Emulated:s=new yT(l,c,n,this.appId,u,r,a,p);break;case To.ShadowDom:return new mB(l,c,e,n,r,a,this.nonce,p);default:s=new F0(l,c,n,u,r,a,p)}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(mT),Ze(IT),Ze(hp),Ze(pB),Ze(Wt),Ze($n),Ze(Tt),Ze(Oy))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class P0{constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(M0[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(bT(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(bT(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?this.doc.querySelector(i):i;if(!n)throw new Ae(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;const s=M0[o];s?i.setAttributeNS(s,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const o=M0[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(dr.DashCase|dr.Important)?i.style.setProperty(e,n,o&dr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&dr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){if("string"==typeof i&&!(i=_r().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if("__ngUnwrap__"===e)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))&&e.preventDefault()}}}function bT(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class mB extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=vT(o.id,o.styles);for(const u of c){const p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=u,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class F0 extends P0{constructor(i,e,n,o,s,r,a,l){super(i,s,r,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?vT(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class yT extends F0{constructor(i,e,n,o,s,r,a,l){const c=o+"-"+n.id;super(i,e,n,s,r,a,l,c),this.contentAttr=function hB(t){return"_ngcontent-%COMP%".replace(O0,t)}(c),this.hostAttr=function fB(t){return"_nghost-%COMP%".replace(O0,t)}(c)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let _B=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o){return e.addEventListener(n,o,!1),()=>this.removeEventListener(e,n,o)}removeEventListener(e,n,o){return e.removeEventListener(n,o)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const xT=["alt","control","meta","shift"],IB={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},CB={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let vB=(()=>{class t extends _T{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,o){const s=t.parseEventName(n),r=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_r().onAndCancel(e,s.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(n.pop());let r="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),r="code."),xT.forEach(c=>{const u=n.indexOf(c);u>-1&&(n.splice(u,1),r+=c+".")}),r+=s,0!=n.length||0===s.length)return null;const l={};return l.domEventName=o,l.fullKey=r,l}static matchEventFullKeyCode(e,n){let o=IB[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(o=e.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),xT.forEach(r=>{r!==o&&(0,CB[r])(e)&&(s+=r+".")}),s+=o,s===n)}static eventCallback(e,n,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const AB=_2(e8,"browser",[{provide:$n,useValue:cT},{provide:ky,useValue:function bB(){E0.makeCurrent()},multi:!0},{provide:Wt,useFactory:function xB(){return function C5(t){Cm=t}(document),document},deps:[]}]),wB=new Ye(""),TT=[{provide:qp,useClass:class aB{addToWindow(i){Tn.getAngularTestability=(n,o=!0)=>{const s=i.findTestabilityInTree(n,o);if(null==s)throw new Ae(5103,!1);return s},Tn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Tn.getAllAngularRootElements=()=>i.getAllRootElements(),Tn.frameworkStabilizers||(Tn.frameworkStabilizers=[]),Tn.frameworkStabilizers.push(n=>{const o=Tn.getAllAngularTestabilities();let s=o.length,r=!1;const a=function(l){r=r||l,s--,0==s&&n(r)};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?_r().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:p2,useClass:Z_,deps:[Tt,Y_,qp]},{provide:Z_,useClass:Z_,deps:[Tt,Y_,qp]}],ST=[{provide:Dm,useValue:"root"},{provide:Ps,useFactory:function yB(){return new Ps},deps:[]},{provide:D0,useClass:_B,multi:!0,deps:[Wt,Tt,$n]},{provide:D0,useClass:vB,multi:!0,deps:[Wt]},L0,IT,mT,{provide:Pc,useExisting:L0},{provide:dT,useClass:lB,deps:[]},[]];let R0=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:hp,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wB,12))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[...ST,...TT],imports:[Xe,t8]})}return t})(),ET=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:function(n){let o=null;return o=n?new n:function SB(){return new ET(Ze(Wt))}(),o},providedIn:"root"})}return t})();typeof window<"u"&&window;const{isArray:OB}=Array,{getPrototypeOf:LB,prototype:PB,keys:FB}=Object;function OT(t){if(1===t.length){const i=t[0];if(OB(i))return{args:i,keys:null};if(function RB(t){return t&&"object"==typeof t&&LB(t)===PB}(i)){const e=FB(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:NB}=Array;function V0(t){return at(i=>function VB(t,i){return NB(i)?t(...i):t(i)}(t,i))}function LT(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}let PT=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt))};static#t=this.\u0275dir=ut({type:t})}return t})(),ia=(()=>{class t extends PT{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275dir=ut({type:t,features:[st]})}return t})();const un=new Ye("NgValueAccessor"),zB={provide:un,useExisting:ft(()=>B0),multi:!0},UB=new Ye("CompositionEventMode");let B0=(()=>{class t extends PT{constructor(e,n,o){super(e,n),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jB(){const t=_r()?_r().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn),V(bt),V(UB,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){1&n&&me("input",function(r){return o._handleInput(r.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(r){return o._compositionEnd(r.target.value)})},features:[yt([zB]),st]})}return t})();const Si=new Ye("NgValidators"),br=new Ye("NgAsyncValidators");function KT(t){return null!=t}function GT(t){return Kc(t)?ri(t):t}function qT(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function WT(t,i){return i.map(e=>e(t))}function QT(t){return t.map(i=>function KB(t){return!t.validate}(i)?i:e=>i.validate(e))}function H0(t){return null!=t?function ZT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return qT(WT(e,i))}}(QT(t)):null}function z0(t){return null!=t?function YT(t){if(!t)return null;const i=t.filter(KT);return 0==i.length?null:function(e){return function BB(...t){const i=Yv(t),{args:e,keys:n}=OT(t),o=new ce(s=>{const{length:r}=e;if(!r)return void s.complete();const a=new Array(r);let l=r,c=r;for(let u=0;u{p||(p=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!p)&&(c||s.next(n?LT(n,a):a),s.complete())}))}});return i?o.pipe(V0(i)):o}(WT(e,i).map(GT)).pipe(at(qT))}}(QT(t)):null}function XT(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function j0(t){return t?Array.isArray(t)?t:[t]:[]}function fh(t,i){return Array.isArray(t)?t.includes(i):t===i}function tS(t,i){const e=j0(i);return j0(t).forEach(o=>{fh(e,o)||e.push(o)}),e}function nS(t,i){return j0(i).filter(e=>!fh(t,e))}class iS{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=H0(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=z0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class Wi extends iS{get formDirective(){return null}get path(){return null}}class ds extends iS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class oS{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let sS=(()=>{class t extends oS{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(ds,2))};static#t=this.\u0275dir=ut({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){2&n&&Ii("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[st]})}return t})();const ru="VALID",mh="INVALID",Tl="PENDING",au="DISABLED";function _h(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class cS{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===ru}get invalid(){return this.status===mh}get pending(){return this.status==Tl}get disabled(){return this.status===au}get enabled(){return this.status!==au}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(tS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(tS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(nS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(nS(i,this._rawAsyncValidators))}hasValidator(i){return fh(this._rawValidators,i)}hasAsyncValidator(i){return fh(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=Tl,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=au,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=ru,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ru||this.status===Tl)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?au:ru}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=Tl,this._hasOwnPendingAsyncValidator=!0;const e=GT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?au:this.errors?mh:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Tl)?Tl:this._anyControlsHaveStatus(mh)?mh:ru}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){_h(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function ZB(t){return Array.isArray(t)?H0(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function YB(t){return Array.isArray(t)?z0(t):t||null}(this._rawAsyncValidators)}}const Sl=new Ye("CallSetDisabledState",{providedIn:"root",factory:()=>Ih}),Ih="always";function lu(t,i,e=Ih){(function W0(t,i){const e=function JT(t){return t._rawValidators}(t);null!==i.validator?t.setValidators(XT(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=function eS(t){return t._rawAsyncValidators}(t);null!==i.asyncValidator?t.setAsyncValidators(XT(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const o=()=>t.updateValueAndValidity();bh(i._rawValidators,o),bh(i._rawAsyncValidators,o)})(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function eH(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&uS(t,i)})}(t,i),function nH(t,i){const e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function tH(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&uS(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function JB(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function bh(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function uS(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function hS(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function fS(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const gS=class extends cS{constructor(i=null,e,n){super(function K0(t){return(_h(t)?t.validators:t)||null}(e),function G0(t,i){return(_h(i)?i.asyncValidators:t)||null}(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_h(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=fS(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){hS(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){hS(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(i){fS(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},uH={provide:ds,useExisting:ft(()=>xh)},IS=(()=>Promise.resolve())();let xh=(()=>{class t extends ds{constructor(e,n,o,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this.control=new gS,this._registered=!1,this.name="",this.update=new ge,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=function Y0(t,i){if(!i)return null;let e,n,o;return Array.isArray(i),i.forEach(s=>{s.constructor===B0?e=s:function sH(t){return Object.getPrototypeOf(t.constructor)===ia}(s)?n=s:o=s}),o||n||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function Z0(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lu(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){IS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,o=0!==n&&xl(n);IS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Ch(t,i){return[...i.path,t]}(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Wi,9),V(Si,10),V(br,10),V(un,10),V(Ft,8),V(Sl,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([uH]),st,Hn]})}return t})(),vS=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})(),FH=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[vS]})}return t})(),uu=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Sl,useValue:e.callSetDisabledState??Ih}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[FH]})}return t})();function El(t,i){return L(i)?si(t,i,1):si(t,1)}function zs(t,i){return Me((e,n)=>{let o=0;e.subscribe(Ue(n,s=>t.call(i,s,o++)&&n.next(s)))})}function du(t){return Me((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}class Ah{}class wh{}class qo{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const o=e.slice(0,n),s=o.toLowerCase(),r=e.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof qo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new qo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof qo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const o=("a"===i.op?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":const s=i.value;if(s){let r=this.headers.get(e);if(!r)return;r=r.filter(a=>-1===s.indexOf(a)),0===r.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(i,e){const n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class NH{encodeKey(i){return VS(i)}encodeValue(i){return VS(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const BH=/%(\d[a-f0-9])/gi,HH={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VS(t){return encodeURIComponent(t).replace(BH,(i,e)=>HH[e]??i)}function Th(t){return`${t}`}class yr{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new NH,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function VH(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[r,a]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],l=e.get(r)||[];l.push(a),e.set(r,l)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],o=Array.isArray(n)?n.map(Th):[Th(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new yr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Th(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(Th(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class zH{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function BS(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function HS(t){return typeof Blob<"u"&&t instanceof Blob}function zS(t){return typeof FormData<"u"&&t instanceof FormData}class pu{constructor(i,e,n,o){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function jH(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new qo),this.context||(this.context=new zH),this.params){const r=this.params.toString();if(0===r.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ap.set(m,i.setHeaders[m]),l)),i.setParams&&(c=Object.keys(i.setParams).reduce((p,m)=>p.set(m,i.setParams[m]),c)),new pu(e,n,s,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:r})}}var Dl=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Dl||{});class sI{constructor(i,e=200,n="OK"){this.headers=i.headers||new qo,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class rI extends sI{constructor(i={}){super(i),this.type=Dl.ResponseHeader}clone(i={}){return new rI({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class kl extends sI{constructor(i={}){super(i),this.type=Dl.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new kl({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class jS extends sI{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function aI(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let lI=(()=>{class t{constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof pu)s=e;else{let l,c;l=o.headers instanceof qo?o.headers:new qo(o.headers),o.params&&(c=o.params instanceof yr?o.params:new yr({fromObject:o.params})),s=new pu(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const r=ht(s).pipe(El(l=>this.handler.handle(l)));if(e instanceof pu||"events"===o.observe)return r;const a=r.pipe(zs(l=>l instanceof kl));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(at(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(at(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(at(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new yr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,aI(o,n))}post(e,n,o={}){return this.request("POST",e,aI(o,n))}put(e,n,o={}){return this.request("PUT",e,aI(o,n))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Ah))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function KS(t,i){return i(t)}function KH(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}const qH=new Ye(""),hu=new Ye(""),GS=new Ye("");function WH(){let t=null;return(i,e)=>{null===t&&(t=(et(qH,{optional:!0})??[]).reduceRight(KH,KS));const n=et(Kp),o=n.add();return t(i,e).pipe(du(()=>n.remove(o)))}}let qS=(()=>{class t extends Ah{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=et(Kp)}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(hu),...this.injector.get(GS,[])]));this.chain=o.reduceRight((s,r)=>function GH(t,i,e){return(n,o)=>e.runInContext(()=>i(n,s=>t(s,o)))}(s,r,this.injector),KS)}const n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(du(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(wh),Ze(po))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const XH=/^\)\]\}',?\n/;let QS=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Ae(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?ri(n.\u0275loadImpl()):ht(null)).pipe(Ao(()=>new ce(s=>{const r=n.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((E,P)=>r.setRequestHeader(E,P.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const E=e.detectContentTypeHeader();null!==E&&r.setRequestHeader("Content-Type",E)}if(e.responseType){const E=e.responseType.toLowerCase();r.responseType="json"!==E?E:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const E=r.statusText||"OK",P=new qo(r.getAllResponseHeaders()),W=function JH(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return l=new rI({headers:P,status:r.status,statusText:E,url:W}),l},u=()=>{let{headers:E,status:P,statusText:W,url:te}=c(),fe=null;204!==P&&(fe=typeof r.response>"u"?r.responseText:r.response),0===P&&(P=fe?200:0);let Ce=P>=200&&P<300;if("json"===e.responseType&&"string"==typeof fe){const ve=fe;fe=fe.replace(XH,"");try{fe=""!==fe?JSON.parse(fe):null}catch(ke){fe=ve,Ce&&(Ce=!1,fe={error:ke,text:fe})}}Ce?(s.next(new kl({body:fe,headers:E,status:P,statusText:W,url:te||void 0})),s.complete()):s.error(new jS({error:fe,headers:E,status:P,statusText:W,url:te||void 0}))},p=E=>{const{url:P}=c(),W=new jS({error:E,status:r.status||0,statusText:r.statusText||"Unknown Error",url:P||void 0});s.error(W)};let m=!1;const _=E=>{m||(s.next(c()),m=!0);let P={type:Dl.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),"text"===e.responseType&&r.responseText&&(P.partialText=r.responseText),s.next(P)},b=E=>{let P={type:Dl.UploadProgress,loaded:E.loaded};E.lengthComputable&&(P.total=E.total),s.next(P)};return r.addEventListener("load",u),r.addEventListener("error",p),r.addEventListener("timeout",p),r.addEventListener("abort",p),e.reportProgress&&(r.addEventListener("progress",_),null!==a&&r.upload&&r.upload.addEventListener("progress",b)),r.send(a),s.next({type:Dl.Sent}),()=>{r.removeEventListener("error",p),r.removeEventListener("abort",p),r.removeEventListener("load",u),r.removeEventListener("timeout",p),e.reportProgress&&(r.removeEventListener("progress",_),null!==a&&r.upload&&r.upload.removeEventListener("progress",b)),r.readyState!==r.DONE&&r.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(dT))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();const cI=new Ye("XSRF_ENABLED"),ZS=new Ye("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),YS=new Ye("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class XS{}let nz=(()=>{class t{constructor(e,n,o){this.doc=e,this.platform=n,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=nT(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze($n),Ze(ZS))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function iz(t,i){const e=t.url.toLowerCase();if(!et(cI)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=et(XS).getToken(),o=et(YS);return null!=n&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var xr=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(xr||{});function oz(...t){const i=[lI,QS,qS,{provide:Ah,useExisting:qS},{provide:wh,useExisting:QS},{provide:hu,useValue:iz,multi:!0},{provide:cI,useValue:!0},{provide:XS,useClass:nz}];for(const e of t)i.push(...e.\u0275providers);return function Tm(t){return{\u0275providers:t}}(i)}const JS=new Ye("LEGACY_INTERCEPTOR_FN");function sz(){return function sa(t,i){return{\u0275kind:t,\u0275providers:i}}(xr.LegacyInterceptors,[{provide:JS,useFactory:WH},{provide:hu,useExisting:JS,multi:!0}])}let eE=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[oz(sz())]})}return t})();class tE{}class dz{}const js="*";function Oo(t,i){return{type:7,name:t,definitions:i,options:{}}}function On(t,i=null){return{type:4,styles:i,timings:t}}function nE(t,i=null){return{type:2,steps:t,options:i}}function en(t){return{type:6,styles:t,offset:null}}function Us(t,i,e){return{type:0,name:t,styles:i,options:e}}function Ln(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function Ml(t,i=null){return{type:8,animation:t,options:i}}function Eh(t,i=null){return{type:10,animation:t,options:i}}class fu{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class iE{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,o=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==s&&this._onFinish()}),r.onDestroy(()=>{++n==s&&this._onDestroy()}),r.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}function oE(t){return new Ae(3e3,!1)}function Ar(t){switch(t.length){case 0:return new fu;case 1:return t[0];default:return new iE(t)}}function sE(t,i,e=new Map,n=new Map){const o=[],s=[];let r=-1,a=null;if(i.forEach(l=>{const c=l.get("offset"),u=c==r,p=u&&a||new Map;l.forEach((m,_)=>{let b=_,E=m;if("offset"!==_)switch(b=t.normalizePropertyName(b,o),E){case"!":E=e.get(_);break;case js:E=n.get(_);break;default:E=t.normalizeStyleValue(_,b,E,o)}p.set(b,E)}),u||s.push(p),a=p,r=c}),o.length)throw function Pz(t){return new Ae(3502,!1)}();return s}function dI(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&pI(e,"start",t)));break;case"done":t.onDone(()=>n(e&&pI(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&pI(e,"destroy",t)))}}function pI(t,i,e){const s=hI(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),r=t._data;return null!=r&&(s._data=r),s}function hI(t,i,e,n,o="",s=0,r){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:s,disabled:!!r}}function _o(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function rE(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}const Gz=(()=>typeof document>"u"?null:document.documentElement)();function fI(t){const i=t.parentNode||t.host||null;return i===Gz?null:i}let ra=null,aE=!1;function lE(t,i){for(;i;){if(i===t)return!0;i=fI(i)}return!1}function cE(t,i,e){if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]}let uE=(()=>{class t{validateStyleProperty(e){return function Wz(t){ra||(ra=function Qz(){return typeof document<"u"?document.body:null}()||{},aE=!!ra.style&&"WebkitAppearance"in ra.style);let i=!0;return ra.style&&!function qz(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in ra.style,!i&&aE&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in ra.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return lE(e,n)}getParentElement(e){return fI(e)}query(e,n,o){return cE(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,s,r,a=[],l){return new fu(o,s)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),gI=(()=>{class t{static#e=this.NOOP=new uE}return t})();const Zz=1e3,mI="ng-enter",Dh="ng-leave",kh="ng-trigger",Mh=".ng-trigger",pE="ng-animating",_I=".ng-animating";function $s(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:II(parseFloat(i[1]),i[2])}function II(t,i){return"s"===i?t*Zz:t}function Oh(t,i,e){return t.hasOwnProperty("duration")?t:function Xz(t,i,e){let o,s=0,r="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return i.push(oE()),{duration:0,delay:0,easing:""};o=II(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=II(parseFloat(l),a[4]));const c=a[5];c&&(r=c)}else o=t;if(!e){let a=!1,l=i.length;o<0&&(i.push(function pz(){return new Ae(3100,!1)}()),a=!0),s<0&&(i.push(function hz(){return new Ae(3101,!1)}()),a=!0),a&&i.splice(l,0,oE())}return{duration:o,delay:s,easing:r}}(t,i,e)}function gu(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function hE(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function wr(t,i=new Map,e){if(e)for(let[n,o]of e)i.set(n,o);for(let[n,o]of t)i.set(n,o);return i}function ps(t,i,e){i.forEach((n,o)=>{const s=vI(o);e&&!e.has(o)&&e.set(o,t.style[s]),t.style[s]=n})}function aa(t,i){i.forEach((e,n)=>{const o=vI(n);t.style[o]=""})}function mu(t){return Array.isArray(t)?1==t.length?t[0]:nE(t):t}const CI=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(t){let i=[];if("string"==typeof t){let e;for(;e=CI.exec(t);)i.push(e[1]);CI.lastIndex=0}return i}function _u(t,i,e){const n=t.toString(),o=n.replace(CI,(s,r)=>{let a=i[r];return null==a&&(e.push(function gz(t){return new Ae(3003,!1)}()),a=""),a.toString()});return o==n?t:o}function Lh(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const tj=/-+([a-z0-9])/g;function vI(t){return t.replace(tj,(...i)=>i[1].toUpperCase())}function Io(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function mz(t){return new Ae(3004,!1)}()}}function mE(t,i){return window.getComputedStyle(t)[i]}const Ph="*";function oj(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function sj(t,i,e){if(":"==t[0]){const l=function rj(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n) *"}}(t,e);if("function"==typeof l)return void i.push(l);t=l}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function Dz(t){return new Ae(3015,!1)}()),i;const o=n[1],s=n[2],r=n[3];i.push(_E(o,r));"<"==s[0]&&!(o==Ph&&r==Ph)&&i.push(_E(r,o))}(n,e,i)):e.push(t),e}const Fh=new Set(["true","1"]),Rh=new Set(["false","0"]);function _E(t,i){const e=Fh.has(t)||Rh.has(t),n=Fh.has(i)||Rh.has(i);return(o,s)=>{let r=t==Ph||t==o,a=i==Ph||i==s;return!r&&e&&"boolean"==typeof o&&(r=o?Fh.has(t):Rh.has(t)),!a&&n&&"boolean"==typeof s&&(a=s?Fh.has(i):Rh.has(i)),r&&a}}const aj=new RegExp("s*:selfs*,?","g");function bI(t,i,e,n){return new lj(t).build(i,e,n)}class lj{constructor(i){this._driver=i}build(i,e,n){const o=new dj(e);return this._resetContextStyleTimingState(o),Io(this,mu(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0;const s=[],r=[];return"@"==i.name.charAt(0)&&e.errors.push(function Iz(){return new Ae(3006,!1)}()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);n+=l.queryCount,o+=l.depCount,r.push(l)}else e.errors.push(function Cz(){return new Ae(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:r,queryCount:n,depCount:o,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=o||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{gE(l).forEach(c=>{r.hasOwnProperty(c)||s.add(c)})})}),s.size&&(Lh(s.values()),e.errors.push(function vz(t,i){return new Ae(3008,!1)}()))}return{type:0,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=Io(this,mu(i.animation),e);return{type:1,matchers:oj(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:la(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>Io(this,n,e)),options:la(i.options)}}visitGroup(i,e){const n=e.currentTime;let o=0;const s=i.steps.map(r=>{e.currentTime=n;const a=Io(this,r,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:s,options:la(i.options)}}visitAnimate(i,e){const n=function hj(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return yI(Oh(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=yI(0,0,"");return s.dynamic=!0,s.strValue=e,s}const o=Oh(e,i);return yI(o.duration,o.delay,o.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let o,s=i.styles?i.styles:en({});if(5==s.type)o=this.visitKeyframes(s,e);else{let r=i.styles,a=!1;if(!r){a=!0;const c={};n.easing&&(c.easing=n.easing),r=en(c)}e.currentTime+=n.duration+n.delay;const l=this.visitStyle(r,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of o)"string"==typeof a?a===js?n.push(a):e.errors.push(new Ae(3002,!1)):n.push(hE(a));let s=!1,r=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(r=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:n,easing:r,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let o=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),i.styles.forEach(r=>{"string"!=typeof r&&r.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let p=!0;u&&(s!=o&&s>=u.startTime&&o<=u.endTime&&(e.errors.push(function yz(t,i,e,n,o){return new Ae(3010,!1)}()),p=!1),s=u.startTime),p&&c.set(l,{startTime:s,endTime:o}),e.options&&function ej(t,i,e){const n=i.params||{},o=gE(t);o.length&&o.forEach(s=>{n.hasOwnProperty(s)||e.push(function fz(t){return new Ae(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function xz(){return new Ae(3011,!1)}()),n;let s=0;const r=[];let a=!1,l=!1,c=0;const u=i.steps.map(W=>{const te=this._makeStyleAst(W,e);let fe=null!=te.offset?te.offset:function pj(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(te.styles),Ce=0;return null!=fe&&(s++,Ce=te.offset=fe),l=l||Ce<0||Ce>1,a=a||Ce0&&s{const fe=m>0?te==_?1:m*te:r[te],Ce=fe*P;e.currentTime=b+E.delay+Ce,E.duration=Ce,this._validateStyleAst(W,e),W.offset=fe,n.styles.push(W)}),n}visitReference(i,e){return{type:8,animation:Io(this,mu(i.animation),e),options:la(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:la(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:la(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;const[s,r]=function cj(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(aj,"")),t=t.replace(/@\*/g,Mh).replace(/@\w+/g,e=>Mh+"-"+e.slice(1)).replace(/:animating/g,_I),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+s:s,_o(e.collectedStyles,e.currentQuerySelector,new Map);const a=Io(this,mu(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:r,animation:a,originalSelector:i.selector,options:la(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Sz(){return new Ae(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:Oh(i.timings,e.errors,!0);return{type:12,animation:Io(this,mu(i.animation),e),timings:n,options:null}}}class dj{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function la(t){return t?(t=gu(t)).params&&(t.params=function uj(t){return t?gu(t):null}(t.params)):t={},t}function yI(t,i,e){return{duration:t,delay:i,easing:e}}function xI(t,i,e,n,o,s,r=null,a=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:s,totalTime:o+s,easing:r,subTimeline:a}}class Nh{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const mj=new RegExp(":enter","g"),Ij=new RegExp(":leave","g");function AI(t,i,e,n,o,s=new Map,r=new Map,a,l,c=[]){return(new Cj).buildKeyframes(t,i,e,n,o,s,r,a,l,c)}class Cj{buildKeyframes(i,e,n,o,s,r,a,l,c,u=[]){c=c||new Nh;const p=new wI(i,e,c,o,s,u,[]);p.options=l;const m=l.delay?$s(l.delay):0;p.currentTimeline.delayNextStep(m),p.currentTimeline.setStyles([r],null,p.errors,l),Io(this,n,p);const _=p.timelines.filter(b=>b.containsAnimation());if(_.length&&a.size){let b;for(let E=_.length-1;E>=0;E--){const P=_[E];if(P.element===e){b=P;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,p.errors,l)}return _.length?_.map(b=>b.buildKeyframes()):[xI(e,[],[],[],0,m,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const o=e.createSubContext(i.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const o of i){const s=o?.delay;if(s){const r="number"==typeof s?s:$s(_u(s,o?.params??{},e.errors));n.delayNextStep(r)}}}_visitSubInstructions(i,e,n){let s=e.currentTimeline.currentTime;const r=null!=n.duration?$s(n.duration):null,a=null!=n.delay?$s(n.delay):null;return 0!==r&&i.forEach(l=>{const c=e.appendInstructionToTimeline(l,r,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(i,e){e.updateOptions(i.options,!0),Io(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let o=e;const s=i.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Vh);const r=$s(s.delay);o.delayNextStep(r)}i.steps.length&&(i.steps.forEach(r=>Io(this,r,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let o=e.currentTimeline.currentTime;const s=i.options&&i.options.delay?$s(i.options.delay):0;i.steps.forEach(r=>{const a=e.createSubContext(i.options);s&&a.delayNextStep(s),Io(this,r,a),o=Math.max(o,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return Oh(e.params?_u(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();const s=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(s):n.setStyles(i.styles,s,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,o=e.currentTimeline.duration,s=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,i.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+s),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,o=i.options||{},s=o.delay?$s(o.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vh);let r=n;const a=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const p=e.createSubContext(i.options,c);s&&p.delayNextStep(s),c===e.element&&(l=p.currentTimeline),Io(this,i.animation,p),p.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,p.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,o=e.currentTimeline,s=i.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let l=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const p=u.currentTime;Io(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-p+(o.startTime-n.currentTimeline.startTime)}}const Vh={};class wI{constructor(i,e,n,o,s,r,a,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let o=this.options;null!=n.duration&&(o.duration=$s(n.duration)),null!=n.delay&&(o.delay=$s(n.delay));const s=n.params;if(s){let r=o.params;r||(r=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=_u(s[a],r,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){const o=e||this.element,s=new wI(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=Vh,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},s=new vj(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,s,r){let a=[];if(o&&a.push(this.element),i.length>0){i=(i=i.replace(mj,"."+this._enterClassName)).replace(Ij,"."+this._leaveClassName);let c=this._driver.query(this.element,i,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&0==a.length&&r.push(function Ez(t){return new Ae(3014,!1)}()),a}}class Bh{constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new Bh(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||js),this._currentKeyframe.set(e,js);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},r=function bj(t,i){const e=new Map;let n;return t.forEach(o=>{if("*"===o){n=n||i.keys();for(let s of n)e.set(s,js)}else wr(o,e)}),e}(i,this._globalTimelineStyles);for(let[a,l]of r){const c=_u(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??js),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=wr(a,new Map,this._backFill);c.forEach((u,p)=>{"!"===u?i.add(p):u===js&&e.add(p)}),n||c.set("offset",l/this.duration),o.push(c)});const s=i.size?Lh(i.values()):[],r=e.size?Lh(e.values()):[];if(n){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return xI(this.element,o,s,r,this.duration,this.startTime,this.easing,!1)}}class vj extends Bh{constructor(i,e,n,o,s,r,a=!1){super(i,e,r.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,a=e/r,l=wr(i[0]);l.set("offset",0),s.push(l);const c=wr(i[0]);c.set("offset",vE(a)),s.push(c);const u=i.length-1;for(let p=1;p<=u;p++){let m=wr(i[p]);const _=m.get("offset");m.set("offset",vE((e+_*n)/r)),s.push(m)}n=r,e=0,o="",i=s}return xI(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}}function vE(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class TI{}const yj=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 xj extends TI{normalizePropertyName(i,e){return vI(i)}normalizeStyleValue(i,e,n,o){let s="";const r=n.toString().trim();if(yj.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function _z(t,i){return new Ae(3005,!1)}())}return r+s}}function bE(t,i,e,n,o,s,r,a,l,c,u,p,m){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:s,toState:n,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:m}}const SI={};class yE{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return function Aj(t,i,e,n,o){return t.some(s=>s(i,e,n,o))}(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return void 0!==i&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,s,r,a,l,c,u){const p=[],m=this.ast.options&&this.ast.options.params||SI,b=this.buildStyles(n,a&&a.params||SI,p),E=l&&l.params||SI,P=this.buildStyles(o,E,p),W=new Set,te=new Map,fe=new Map,Ce="void"===o,ve={params:wj(E,m),delay:this.ast.options?.delay},ke=u?[]:AI(i,e,this.ast.animation,s,r,b,P,ve,c,p);let Pe=0;if(ke.forEach(Ke=>{Pe=Math.max(Ke.duration+Ke.delay,Pe)}),p.length)return bE(e,this._triggerName,n,o,Ce,b,P,[],[],te,fe,Pe,p);ke.forEach(Ke=>{const pt=Ke.element,jt=_o(te,pt,new Set);Ke.preStyleProps.forEach(vn=>jt.add(vn));const Vt=_o(fe,pt,new Set);Ke.postStyleProps.forEach(vn=>Vt.add(vn)),pt!==e&&W.add(pt)});const $e=Lh(W.values());return bE(e,this._triggerName,n,o,Ce,b,P,ke,$e,te,fe,Pe)}}function wj(t,i){const e=gu(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class Tj{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,o=gu(this.defaultParams);return Object.keys(i).forEach(s=>{const r=i[s];null!==r&&(o[s]=r)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((r,a)=>{r&&(r=_u(r,o,e));const l=this.normalizer.normalizePropertyName(a,e);r=this.normalizer.normalizeStyleValue(a,l,r,e),n.set(a,r)})}),n}}class Ej{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new Tj(o.style,o.options&&o.options.params||{},n))}),xE(this.states,"true","1"),xE(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new yE(i,o,this.states))}),this.fallbackTransition=function Dj(t,i,e){return new yE(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(r,a)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(r=>r.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function xE(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const kj=new Nh;class Mj{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],s=bI(this._driver,e,n,[]);if(n.length)throw function Fz(t){return new Ae(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,e,n){const o=i.element,s=sE(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,s,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const o=[],s=this._animations.get(i);let r;const a=new Map;if(s?(r=AI(this._driver,e,s,mI,Dh,new Map,new Map,n,kj,o),r.forEach(u=>{const p=_o(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(o.push(function Rz(){return new Ae(3300,!1)}()),r=[]),o.length)throw function Nz(t){return new Ae(3504,!1)}();a.forEach((u,p)=>{u.forEach((m,_)=>{u.set(_,this._driver.computeStyle(p,_,js))})});const c=Ar(r.map(u=>{const p=a.get(u.element);return this._buildPlayer(u,new Map,p)}));return this._playersById.set(i,c),c.onDestroy(()=>this.destroy(i)),this.players.push(c),c}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function Vz(t){return new Ae(3301,!1)}();return e}listen(i,e,n,o){const s=hI(e,"","","");return dI(this._getPlayer(i),n,s,o),()=>{}}command(i,e,n,o){if("register"==n)return void this.register(i,o[0]);if("create"==n)return void this.create(i,e,o[0]||{});const s=this._getPlayer(i);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i)}}}const AE="ng-animate-queued",EI="ng-animate-disabled",Rj=[],wE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Wo="__ng_removed";class DI{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function zj(t){return t??null}(n?i.value:i),n){const s=gu(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(o=>{null==n[o]&&(n[o]=e[o])})}}}const Iu="void",kI=new DI(Iu);class Vj{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,Lo(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw function Bz(t,i){return new Ae(3302,!1)}();if(null==n||0==n.length)throw function Hz(t){return new Ae(3303,!1)}();if(!function jj(t){return"start"==t||"done"==t}(n))throw function zz(t,i){return new Ae(3400,!1)}();const s=_o(this._elementListeners,i,[]),r={name:e,phase:n,callback:o};s.push(r);const a=_o(this._engine.statesByElement,i,new Map);return a.has(e)||(Lo(i,kh),Lo(i,kh+"-"+e),a.set(e,kI)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(r);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function jz(t){return new Ae(3401,!1)}();return e}trigger(i,e,n,o=!0){const s=this._getTrigger(e),r=new MI(this.id,e,i);let a=this._engine.statesByElement.get(i);a||(Lo(i,kh),Lo(i,kh+"-"+e),this._engine.statesByElement.set(i,a=new Map));let l=a.get(e);const c=new DI(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=kI),c.value!==Iu&&l.value===c.value){if(!function Kj(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let o=0;o{aa(i,P),ps(i,W)})}return}const m=_o(this._engine.playersByElement,i,[]);m.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let _=s.matchTransition(l.value,c.value,i,c.params),b=!1;if(!_){if(!o)return;_=s.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:_,fromState:l,toState:c,player:r,isFallbackTransition:b}),b||(Lo(i,AE),r.onStart(()=>{Ol(i,AE)})),r.onDone(()=>{let E=this.players.indexOf(r);E>=0&&this.players.splice(E,1);const P=this._engine.playersByElement.get(i);if(P){let W=P.indexOf(r);W>=0&&P.splice(W,1)}}),this.players.push(r),m.push(r),r}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,Mh,!0);n.forEach(o=>{if(o[Wo])return;const s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(r=>r.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){const s=this._engine.statesByElement.get(i),r=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){const u=this.trigger(i,c,Iu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,r),n&&Ar(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const o=new Set;e.forEach(s=>{const r=s.name;if(o.has(r))return;o.add(r);const l=this._triggers.get(r).fallbackTransition,c=n.get(r)||kI,u=new DI(Iu),p=new MI(this.id,r,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:r,transition:l,fromState:c,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(i):[];if(s&&s.length)o=!0;else{let r=i;for(;r=r.parentNode;)if(n.statesByElement.get(r)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{const s=i[Wo];(!s||s===wE)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){Lo(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const o=n.player;if(o.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(a=>{if(a.name==n.triggerName){const l=hI(s,n.triggerName,n.fromState.value,n.toState.value);l._data=i,dI(n.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{const s=n.transition.ast.depCount,r=o.transition.ast.depCount;return 0==s||0==r?s-r:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class Bj{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Vj(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let r=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=n.indexOf(l);n.splice(c+1,0,i),r=!0;break}a=this.driver.getParentElement(a)}r||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);const o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let o of n.values())if(o.namespaceId){const s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}return e}trigger(i,e,n,o){if(Hh(e)){const s=this._fetchNamespace(i);if(s)return s.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!Hh(e))return;const s=e[Wo];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(i){const r=this._fetchNamespace(i);r&&r.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),Lo(i,EI)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Ol(i,EI))}removeNode(i,e,n){if(Hh(e)){const o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);const s=this.namespacesByHostElement.get(e);s&&s.id!==i&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,s){this.collectedLeaveElements.push(e),e[Wo]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,e,n,o,s){return Hh(e)?this._fetchNamespace(i).listen(e,n,o,s):()=>{}}_buildInstruction(i,e,n,o,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,s)}destroyInnerAnimations(i){let e=this.driver.query(i,Mh,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,_I,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Ar(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Wo];if(e&&e.setForRemoval){if(i[Wo]=wE,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(EI)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?Ar(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw function Uz(t){return new Ae(3402,!1)}()}_flushAnimations(i,e){const n=new Nh,o=[],s=new Map,r=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(We=>{u.add(We);const tt=this.driver.query(We,".ng-animate-queued",!0);for(let ct=0;ct{const ct=mI+E++;b.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))});const P=[],W=new Set,te=new Set;for(let We=0;WeW.add(Kt)):te.add(tt))}const fe=new Map,Ce=EE(m,Array.from(W));Ce.forEach((We,tt)=>{const ct=Dh+E++;fe.set(tt,ct),We.forEach(Kt=>Lo(Kt,ct))}),i.push(()=>{_.forEach((We,tt)=>{const ct=b.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),Ce.forEach((We,tt)=>{const ct=fe.get(tt);We.forEach(Kt=>Ol(Kt,ct))}),P.forEach(We=>{this.processLeaveNode(We)})});const ve=[],ke=[];for(let We=this._namespaceList.length-1;We>=0;We--)this._namespaceList[We].drainQueuedTransitions(e).forEach(ct=>{const Kt=ct.player,Pn=ct.element;if(ve.push(Kt),this.collectedEnterElements.length){const Ri=Pn[Wo];if(Ri&&Ri.setForMove){if(Ri.previousTriggersValues&&Ri.previousTriggersValues.has(ct.triggerName)){const wa=Ri.previousTriggersValues.get(ct.triggerName),Vo=this.statesByElement.get(ct.element);if(Vo&&Vo.has(ct.triggerName)){const ug=Vo.get(ct.triggerName);ug.value=wa,Vo.set(ct.triggerName,ug)}}return void Kt.destroy()}}const Zi=!p||!this.driver.containsElement(p,Pn),oi=fe.get(Pn),ro=b.get(Pn),wn=this._buildInstruction(ct,n,ro,oi,Zi);if(wn.errors&&wn.errors.length)return void ke.push(wn);if(Zi)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);if(ct.isFallbackTransition)return Kt.onStart(()=>aa(Pn,wn.fromStyles)),Kt.onDestroy(()=>ps(Pn,wn.toStyles)),void o.push(Kt);const ec=[];wn.timelines.forEach(Ri=>{Ri.stretchStartingKeyframe=!0,this.disabledNodes.has(Ri.element)||ec.push(Ri)}),wn.timelines=ec,n.append(Pn,wn.timelines),r.push({instruction:wn,player:Kt,element:Pn}),wn.queriedElements.forEach(Ri=>_o(a,Ri,[]).push(Kt)),wn.preStyleProps.forEach((Ri,wa)=>{if(Ri.size){let Vo=l.get(wa);Vo||l.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))}}),wn.postStyleProps.forEach((Ri,wa)=>{let Vo=c.get(wa);Vo||c.set(wa,Vo=new Set),Ri.forEach((ug,Nv)=>Vo.add(Nv))})});if(ke.length){const We=[];ke.forEach(tt=>{We.push(function $z(t,i){return new Ae(3505,!1)}())}),ve.forEach(tt=>tt.destroy()),this.reportError(We)}const Pe=new Map,$e=new Map;r.forEach(We=>{const tt=We.element;n.has(tt)&&($e.set(tt,tt),this._beforeAnimationBuild(We.player.namespaceId,We.instruction,Pe))}),o.forEach(We=>{const tt=We.element;this._getPreviousPlayers(tt,!1,We.namespaceId,We.triggerName,null).forEach(Kt=>{_o(Pe,tt,[]).push(Kt),Kt.destroy()})});const Ke=P.filter(We=>kE(We,l,c)),pt=new Map;SE(pt,this.driver,te,c,js).forEach(We=>{kE(We,l,c)&&Ke.push(We)});const Vt=new Map;_.forEach((We,tt)=>{SE(Vt,this.driver,new Set(We),l,"!")}),Ke.forEach(We=>{const tt=pt.get(We),ct=Vt.get(We);pt.set(We,new Map([...tt?.entries()??[],...ct?.entries()??[]]))});const vn=[],hi=[],wt={};r.forEach(We=>{const{element:tt,player:ct,instruction:Kt}=We;if(n.has(tt)){if(u.has(tt))return ct.onDestroy(()=>ps(tt,Kt.toStyles)),ct.disabled=!0,ct.overrideTotalTime(Kt.totalTime),void o.push(ct);let Pn=wt;if($e.size>1){let oi=tt;const ro=[];for(;oi=oi.parentNode;){const wn=$e.get(oi);if(wn){Pn=wn;break}ro.push(oi)}ro.forEach(wn=>$e.set(wn,Pn))}const Zi=this._buildAnimation(ct.namespaceId,Kt,Pe,s,Vt,pt);if(ct.setRealPlayer(Zi),Pn===wt)vn.push(ct);else{const oi=this.playersByElement.get(Pn);oi&&oi.length&&(ct.parentPlayer=Ar(oi)),o.push(ct)}}else aa(tt,Kt.fromStyles),ct.onDestroy(()=>ps(tt,Kt.toStyles)),hi.push(ct),u.has(tt)&&o.push(ct)}),hi.forEach(We=>{const tt=s.get(We.element);if(tt&&tt.length){const ct=Ar(tt);We.setRealPlayer(ct)}}),o.forEach(We=>{We.parentPlayer?We.syncPlayerEvents(We.parentPlayer):We.destroy()});for(let We=0;We!Zi.destroyed);Pn.length?Uj(this,tt,Pn):this.processLeaveNode(tt)}return P.length=0,vn.forEach(We=>{this.players.push(We),We.onDone(()=>{We.destroy();const tt=this.players.indexOf(We);this.players.splice(tt,1)}),We.play()}),vn}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,s){let r=[];if(e){const a=this.playersByQueriedElement.get(i);a&&(r=a)}else{const a=this.playersByElement.get(i);if(a){const l=!s||s==Iu;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||r.push(c)})}}return(n||o)&&(r=r.filter(a=>!(n&&n!=a.namespaceId||o&&o!=a.triggerName))),r}_beforeAnimationBuild(i,e,n){const s=e.element,r=e.isRemovalTransition?void 0:i,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,p=_o(n,c,[]);this._getPreviousPlayers(c,u,r,a,e.toState).forEach(_=>{const b=_.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),_.destroy(),p.push(_)})}aa(s,e.fromStyles)}_buildAnimation(i,e,n,o,s,r){const a=e.triggerName,l=e.element,c=[],u=new Set,p=new Set,m=e.timelines.map(b=>{const E=b.element;u.add(E);const P=E[Wo];if(P&&P.removedBeforeQueried)return new fu(b.duration,b.delay);const W=E!==l,te=function $j(t){const i=[];return DE(t,i),i}((n.get(E)||Rj).map(Pe=>Pe.getRealPlayer())).filter(Pe=>!!Pe.element&&Pe.element===E),fe=s.get(E),Ce=r.get(E),ve=sE(this._normalizer,b.keyframes,fe,Ce),ke=this._buildPlayer(b,ve,te);if(b.subTimeline&&o&&p.add(E),W){const Pe=new MI(i,a,E);Pe.setRealPlayer(ke),c.push(Pe)}return ke});c.forEach(b=>{_o(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function Hj(t,i,e){let n=t.get(i);if(n){if(n.length){const o=n.indexOf(e);n.splice(o,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>Lo(b,pE));const _=Ar(m);return _.onDestroy(()=>{u.forEach(b=>Ol(b,pE)),ps(l,e.toStyles)}),p.forEach(b=>{_o(o,b,[]).push(_)}),_}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new fu(i.duration,i.delay)}}class MI{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new fu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>dI(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){_o(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function Hh(t){return t&&1===t.nodeType}function TE(t,i){const e=t.style.display;return t.style.display=i??"none",e}function SE(t,i,e,n,o){const s=[];e.forEach(l=>s.push(TE(l)));const r=[];n.forEach((l,c)=>{const u=new Map;l.forEach(p=>{const m=i.computeStyle(c,p,o);u.set(p,m),(!m||0==m.length)&&(c[Wo]=Nj,r.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>TE(l,s[a++])),r}function EE(t,i){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==i.length)return e;const o=new Set(i),s=new Map;function r(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:r(c),s.set(a,l),l}return i.forEach(a=>{const l=r(a);1!==l&&e.get(l).push(a)}),e}function Lo(t,i){t.classList?.add(i)}function Ol(t,i){t.classList?.remove(i)}function Uj(t,i,e){Ar(e).onDone(()=>t.processLeaveNode(i))}function DE(t,i){for(let e=0;eo.add(s)):i.set(t,n),e.delete(t),!0}class zh{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Bj(i,e,n),this._timelineEngine=new Mj(i,e,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,n,o,s){const r=i+"-"+o;let a=this._triggerCache[r];if(!a){const l=[],u=bI(this._driver,s,l,[]);if(l.length)throw function Lz(t,i){return new Ae(3404,!1)}();a=function Sj(t,i,e){return new Ej(t,i,e)}(o,u,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,o,a)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if("@"==n.charAt(0)){const[s,r]=rE(n);this._timelineEngine.command(s,e,r,o)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,s){if("@"==n.charAt(0)){const[r,a]=rE(n);return this._timelineEngine.listen(r,e,a,s)}return this._transitionEngine.listen(i,e,n,o,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let qj=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ps(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ps(this._element,this._initialStyles),this._endStyles&&(ps(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(aa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(aa(this._element,this._endStyles),this._endStyles=null),ps(this._element,this._initialStyles),this._state=3)}}return t})();function OI(t){let i=null;return t.forEach((e,n)=>{(function Wj(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class ME{constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{"offset"!==o&&i.set(o,this._finished?n:mE(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class Qj{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return lE(i,e)}getParentElement(i){return fI(i)}query(i,e,n){return cE(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,o,s,r=[]){const l={duration:n,delay:o,fill:0==o?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=r.filter(_=>_ instanceof ME);(function nj(t,i){return 0===t||0===i})(n,o)&&u.forEach(_=>{_.currentSnapshot.forEach((b,E)=>c.set(E,b))});let p=function Jz(t){return t.length?t[0]instanceof Map?t:t.map(i=>hE(i)):[]}(e).map(_=>wr(_));p=function ij(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((s,r)=>{n.has(r)||o.push(r),n.set(r,s)}),o.length)for(let s=1;sr.set(a,mE(t,a)))}}return i}(i,p,c);const m=function Gj(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=OI(i[0]),i.length>1&&(n=OI(i[i.length-1]))):i instanceof Map&&(e=OI(i)),e||n?new qj(t,e,n):null}(i,p);return new ME(i,p,l,m)}}let Zj=(()=>{class t extends tE{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:To.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?nE(e):e;return OE(this._renderer,null,n,"register",[o]),new Yj(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(Wt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class Yj extends dz{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new Xj(this._id,i,e||{},this._renderer)}}class Xj{constructor(i,e,n,o){this.id=i,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return OE(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function OE(t,i,e,n,o){return t.setProperty(i,`@@${e}:${n}`,o)}const LE="@.disabled";let Jj=(()=>{class t{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(s,r)=>{const a=r?.parentNode(s);a&&r.removeChild(a,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let u=this._rendererCache.get(s);return u||(u=new PE("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const r=n.id,a=n.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(r,a,e,u.name,u)};return n.data.animation.forEach(l),new eU(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){e>=0&&en(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[r,a]=s;r(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Pc),Ze(zh),Ze(Tt))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();class PE{constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==LE?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class eU extends PE{constructor(i,e,n,o,s){super(e,n,o,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const o=function tU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let s=e.slice(1),r="";return"@"!=s.charAt(0)&&([s,r]=function nU(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,o,s,r,a=>{this.factory.scheduleListenerCallback(a._data||-1,n,a)})}return this.delegate.listen(i,e,n)}}const FE=[{provide:tE,useClass:Zj},{provide:TI,useFactory:function oU(){return new xj}},{provide:zh,useClass:(()=>{class t extends zh{constructor(e,n,o,s){super(e.body,n,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Wt),Ze(gI),Ze(TI),Ze(ta))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})()},{provide:Pc,useFactory:function sU(t,i,e){return new Jj(t,i,e)},deps:[L0,zh,Tt]}],LI=[{provide:gI,useFactory:()=>new Qj},{provide:My,useValue:"BrowserAnimations"},...FE],RE=[{provide:gI,useClass:uE},{provide:My,useValue:"NoopAnimations"},...FE];let NE=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?RE:LI}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:LI,imports:[R0]})}return t})();function Cu(...t){const i=ic(t),e=Yv(t),{args:n,keys:o}=OT(t);if(0===n.length)return ri([],i);const s=new ce(function aU(t,i,e=_e){return n=>{VE(i,()=>{const{length:o}=t,s=new Array(o);let r=o,a=o;for(let l=0;l{const c=ri(t[l],i);let u=!1;c.subscribe(Ue(n,p=>{s[l]=p,u||(u=!0,a--),a||n.next(e(s.slice()))},()=>{--r||n.complete()}))},n)},n)}}(n,i,o?r=>LT(o,r):_e));return e?s.pipe(V0(e)):s}function VE(t,i,e){t?ws(e,t,i):i()}const Uh=ae(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function PI(...t){return function lU(){return Ta(1)}()(ri(t,ic(t)))}function BE(t){return new ce(i=>{Ni(t()).subscribe(i)})}function Ll(t,i){const e=L(t)?t:()=>t,n=o=>o.error(e());return new ce(i?o=>i.schedule(n,0,o):n)}function FI(){return Me((t,i)=>{let e=null;t._refCount++;const n=Ue(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class HE extends ce{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Be(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new F;const e=this.getSubject();i.add(this.source.subscribe(Ue(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=F.EMPTY)}return i}refCount(){return FI()(this)}}function Pl(t){return t<=0?()=>es:Me((i,e)=>{let n=0;i.subscribe(Ue(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function $h(t){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function zE(t=uU){return Me((i,e)=>{let n=!1;i.subscribe(Ue(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function uU(){return new Uh}function ca(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,Pl(1),e?$h(i):zE(()=>new Uh))}function Ei(t,i,e){const n=L(t)||i||e?{next:t,error:i,complete:e}:t;return n?Me((o,s)=>{var r;null===(r=n.subscribe)||void 0===r||r.call(n);let a=!0;o.subscribe(Ue(s,l=>{var c;null===(c=n.next)||void 0===c||c.call(n,l),s.next(l)},()=>{var l;a=!1,null===(l=n.complete)||void 0===l||l.call(n),s.complete()},l=>{var c;a=!1,null===(c=n.error)||void 0===c||c.call(n,l),s.error(l)},()=>{var l,c;a&&(null===(l=n.unsubscribe)||void 0===l||l.call(n)),null===(c=n.finalize)||void 0===c||c.call(n)}))}):_e}function Ci(t){return Me((i,e)=>{let s,n=null,o=!1;n=i.subscribe(Ue(e,void 0,void 0,r=>{s=Ni(t(r,Ci(t)(i))),n?(n.unsubscribe(),n=null,s.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,s.subscribe(e))})}function RI(t){return t<=0?()=>es:Me((i,e)=>{let n=[];i.subscribe(Ue(e,o=>{n.push(o),t{for(const o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}const Ot="primary",vu=Symbol("RouteTitle");class mU{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Fl(t){return new mU(t)}function _U(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.lengthn[s]===o)}return t===i}function UE(t){return t.length>0?t[t.length-1]:null}function Tr(t){return function rU(t){return!!t&&(t instanceof ce||L(t.lift)&&L(t.subscribe))}(t)?t:Kc(t)?ri(Promise.resolve(t)):ht(t)}const CU={exact:function GE(t,i,e){if(!ua(t.segments,i.segments)||!Kh(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!GE(t.children[n],i.children[n],e))return!1;return!0},subset:qE},$E={exact:function vU(t,i){return hs(t,i)},subset:function bU(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>jE(t[e],i[e]))},ignored:()=>!0};function KE(t,i,e){return CU[e.paths](t.root,i.root,e.matrixParams)&&$E[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function qE(t,i,e){return WE(t,i,i.segments,e)}function WE(t,i,e,n){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!ua(o,e)||i.hasChildren()||!Kh(o,e,n))}if(t.segments.length===e.length){if(!ua(t.segments,e)||!Kh(t.segments,e,n))return!1;for(const o in i.children)if(!t.children[o]||!qE(t.children[o],i.children[o],n))return!1;return!0}{const o=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(ua(t.segments,o)&&Kh(t.segments,o,n)&&t.children[Ot])&&WE(t.children[Ot],i,s,n)}}function Kh(t,i,e){return i.every((n,o)=>$E[e](t[o].parameters,n.parameters))}class Rl{constructor(i=new gn([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return AU.serialize(this)}}class gn{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gh(this)}}class bu{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Fl(this.parameters)),this._parameterMap}toString(){return YE(this)}}function ua(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let yu=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return new NI},providedIn:"root"})}return t})();class NI{parse(i){const e=new FU(i);return new Rl(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${xu(i.root,!0)}`,n=function SU(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(o=>`${qh(e)}=${qh(o)}`).join("&"):`${qh(e)}=${qh(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function wU(t){return encodeURI(t)}(i.fragment)}`:""}`}}const AU=new NI;function Gh(t){return t.segments.map(i=>YE(i)).join("/")}function xu(t,i){if(!t.hasChildren())return Gh(t);if(i){const e=t.children[Ot]?xu(t.children[Ot],!1):"",n=[];return Object.entries(t.children).forEach(([o,s])=>{o!==Ot&&n.push(`${o}:${xu(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function xU(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===Ot&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==Ot&&(e=e.concat(i(o,n)))}),e}(t,(n,o)=>o===Ot?[xu(t.children[Ot],!1)]:[`${o}:${xu(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ot]?`${Gh(t)}/${e[0]}`:`${Gh(t)}/(${e.join("//")})`}}function QE(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qh(t){return QE(t).replace(/%3B/gi,";")}function VI(t){return QE(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wh(t){return decodeURIComponent(t)}function ZE(t){return Wh(t.replace(/\+/g,"%20"))}function YE(t){return`${VI(t.path)}${function TU(t){return Object.keys(t).map(i=>`;${VI(i)}=${VI(t[i])}`).join("")}(t.parameters)}`}const EU=/^[^\/()?;#]+/;function BI(t){const i=t.match(EU);return i?i[0]:""}const DU=/^[^\/()?;=#]+/,MU=/^[^=?&#]+/,LU=/^[^&#]+/;class FU{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gn([],{}):new gn([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Ot]=new gn(i,e)),n}parseSegment(){const i=BI(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new Ae(4009,!1);return this.capture(i),new bu(Wh(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=function kU(t){const i=t.match(DU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=BI(this.remaining);o&&(n=o,this.capture(n))}i[Wh(e)]=Wh(n)}parseQueryParam(i){const e=function OU(t){const i=t.match(MU);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const r=function PU(t){const i=t.match(LU);return i?i[0]:""}(this.remaining);r&&(n=r,this.capture(n))}const o=ZE(e),s=ZE(n);if(i.hasOwnProperty(o)){let r=i[o];Array.isArray(r)||(r=[r],i[o]=r),r.push(s)}else i[o]=s}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=BI(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new Ae(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=Ot);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[Ot]:new gn([],r),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new Ae(4011,!1)}}function XE(t){return t.segments.length>0?new gn([],{[Ot]:t}):t}function JE(t){const i={};for(const n of Object.keys(t.children)){const s=JE(t.children[n]);if(n===Ot&&0===s.segments.length&&s.hasChildren())for(const[r,a]of Object.entries(s.children))i[r]=a;else(s.segments.length>0||s.hasChildren())&&(i[n]=s)}return function RU(t){if(1===t.numberOfChildren&&t.children[Ot]){const i=t.children[Ot];return new gn(t.segments.concat(i.segments),i.children)}return t}(new gn(t.segments,i))}function da(t){return t instanceof Rl}function eD(t){let i;const o=XE(function e(s){const r={};for(const l of s.children){const c=e(l);r[l.outlet]=c}const a=new gn(s.url,r);return s===t&&(i=a),a}(t.root));return i??o}function tD(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(0===i.length)return HI(o,o,o,e,n);const s=function VU(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iD(!0,0,t);let i=0,e=!1;const n=t.reduce((o,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===r?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?i++:""!=a&&o.push(a))}),o):[...o,s]},[]);return new iD(e,i,n)}(i);if(s.toRoot())return HI(o,o,new gn([],{}),e,n);const r=function BU(t,i,e){if(t.isAbsolute)return new Zh(i,!0,0);if(!e)return new Zh(i,!1,NaN);if(null===e.parent)return new Zh(e,!0,0);const n=Qh(t.commands[0])?0:1;return function HU(t,i,e){let n=t,o=i,s=e;for(;s>o;){if(s-=o,n=n.parent,!n)throw new Ae(4005,!1);o=n.segments.length}return new Zh(n,!1,o-s)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(s,o,t),a=r.processChildren?wu(r.segmentGroup,r.index,s.commands):oD(r.segmentGroup,r.index,s.commands);return HI(o,r.segmentGroup,a,e,n)}function Qh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Au(t){return"object"==typeof t&&null!=t&&t.outlets}function HI(t,i,e,n,o){let r,s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),r=t===i?e:nD(t,i,e);const a=XE(JE(r));return new Rl(a,s,o)}function nD(t,i,e){const n={};return Object.entries(t.children).forEach(([o,s])=>{n[o]=s===i?e:nD(s,i,e)}),new gn(t.segments,n)}class iD{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Qh(n[0]))throw new Ae(4003,!1);const o=n.find(Au);if(o&&o!==UE(n))throw new Ae(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zh{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function oD(t,i,e){if(t||(t=new gn([],{})),0===t.segments.length&&t.hasChildren())return wu(t,i,e);const n=function jU(t,i,e){let n=0,o=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;const r=t.segments[o],a=e[n];if(Au(a))break;const l=`${a}`,c=n0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!rD(l,c,r))return s;n+=2}else{if(!rD(l,{},r))return s;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexs!==Ot)&&t.children[Ot]&&1===t.numberOfChildren&&0===t.children[Ot].segments.length){const s=wu(t.children[Ot],i,e);return new gn(t.segments,s.children)}return Object.entries(n).forEach(([s,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=oD(t.children[s],i,r))}),Object.entries(t.children).forEach(([s,r])=>{void 0===n[s]&&(o[s]=r)}),new gn(t.segments,o)}}function zI(t,i,e){const n=t.segments.slice(0,i);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(i[e]=zI(new gn([],{}),0,n))}),i}function sD(t){const i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function rD(t,i,e){return t==e.path&&hs(i,e.parameters)}const Tu="imperative";class fs{constructor(i,e){this.id=i,this.url=e}}class Yh extends fs{constructor(i,e,n="imperative",o=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sr extends fs{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Su extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nl extends fs{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=16}}class Xh extends fs{constructor(i,e,n,o){super(i,e),this.error=n,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aD extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $U extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KU extends fs{constructor(i,e,n,o,s){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class GU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qU extends fs{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WU{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class QU{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ZU{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YU{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XU{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class JU{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lD{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jI{}class UI{constructor(i){this.url=i}}class e${constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Eu,this.attachRef=null}}let Eu=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new e$,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class cD{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=$I(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=$I(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=KI(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return KI(i,this._root).map(e=>e.value)}}function $I(t,i){if(t===i.value)return i;for(const e of i.children){const n=$I(t,e);if(n)return n}return null}function KI(t,i){if(t===i.value)return[i];for(const e of i.children){const n=KI(t,e);if(n.length)return n.unshift(i),n}return[]}class Ks{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vl(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class uD extends cD{constructor(i,e){super(i),this.snapshot=e,GI(this,i)}toString(){return this.snapshot.toString()}}function dD(t,i){const e=function t$(t,i){const r=new Jh([],{},{},"",{},Ot,i,null,{});return new hD("",new Ks(r,[]))}(0,i),n=new xo([new bu("",{})]),o=new xo({}),s=new xo({}),r=new xo({}),a=new xo(""),l=new Di(n,o,r,a,s,Ot,i,e.root);return l.snapshot=e.root,new uD(new Ks(l,[]),e)}class Di{constructor(i,e,n,o,s,r,a,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=s,this.outlet=r,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(at(c=>c[vu]))??ht(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(at(i=>Fl(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(at(i=>Fl(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function pD(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const o=e[n],s=e[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(s.component)break;n--}}return function n$(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class Jh{get title(){return this.data?.[vu]}constructor(i,e,n,o,s,r,a,l,c){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s,this.outlet=r,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Fl(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Fl(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class hD extends cD{constructor(i,e){super(e),this.url=i,GI(this,e)}toString(){return fD(this._root)}}function GI(t,i){i.value._routerState=t,i.children.forEach(e=>GI(t,e))}function fD(t){const i=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${i}`}function qI(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,hs(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),hs(i.params,e.params)||t.paramsSubject.next(e.params),function IU(t,i){if(t.length!==i.length)return!1;for(let e=0;ehs(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||WI(t.parent,i.parent))}let QI=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ot,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.parentContexts=et(Eu),this.location=et(go),this.changeDetector=et(Ft),this.environmentInjector=et(po),this.inputBinder=et(ef,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ae(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ae(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ae(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new Ae(4013,!1);this._activatedRoute=e;const o=this.location,r=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new i$(e,a,o.injector);this.activated=o.createComponent(r,{index:o.length,injector:l,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=ut({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Hn]})}return t})();class i${constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Di?this.route:i===Eu?this.childContexts:this.parent.get(i,e)}}const ef=new Ye("");let gD=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:n}=e,o=Cu([n.queryParams,n.params,n.data]).pipe(Ao(([s,r,a],l)=>(a={...s,...r,...a},0===l?ht(a):Promise.resolve(a)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const r=function f8(t){const i=Zt(t);if(!i)return null;const e=new Hc(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}(n.component);if(r)for(const{templateName:a}of r.inputs)e.activatedComponentRef.setInput(a,s[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Du(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const o=function s$(t,i,e){return i.children.map(n=>{for(const o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Du(t,n,o);return Du(t,n)})}(t,i,e);return new Ks(n,o)}{if(t.shouldAttach(i.value)){const s=t.retrieve(i.value);if(null!==s){const r=s.route;return r.value._futureSnapshot=i.value,r.children=i.children.map(a=>Du(t,a)),r}}const n=function r$(t){return new Di(new xo(t.url),new xo(t.params),new xo(t.queryParams),new xo(t.fragment),new xo(t.data),t.outlet,t.component,t)}(i.value),o=i.children.map(s=>Du(t,s));return new Ks(n,o)}}const ZI="ngNavigationCancelingError";function mD(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=da(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=_D(!1,0,i);return o.url=e,o.navigationBehaviorOptions=n,o}function _D(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[ZI]=!0,n.cancellationCode=i,e&&(n.url=e),n}function ID(t){return t&&t[ZI]}let CD=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Et],decls:1,vars:0,template:function(n,o){1&n&&le(0,"router-outlet")},dependencies:[QI],encapsulation:2})}return t})();function YI(t){const i=t.children&&t.children.map(YI),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Ot&&(e.component=CD),e}function Qo(t){return t.outlet||Ot}function ku(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class f${constructor(i,e,n,o,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=s}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),qI(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{const r=s.value.outlet;this.deactivateRoutes(s,o[r],n),delete o[r]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(o===s)if(o.component){const r=n.getContext(o.outlet);r&&this.deactivateChildRoutes(i,e,r.children)}else this.deactivateChildRoutes(i,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);if(n&&n.outlet){const r=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:r,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=Vl(i);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){const o=Vl(e);i.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],n),this.forwardEvent(new JU(s.value.snapshot))}),i.children.length&&this.forwardEvent(new YU(i.value.snapshot))}activateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(qI(o),o===s)if(o.component){const r=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,r.children)}else this.activateChildRoutes(i,e,n);else if(o.component){const r=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(a.contexts),r.attachRef=a.componentRef,r.route=a.route.value,r.outlet&&r.outlet.attach(a.componentRef,a.route.value),qI(a.route.value),this.activateChildRoutes(i,null,r.children)}else{const a=ku(o.snapshot);r.attachRef=null,r.route=o,r.injector=a,r.outlet&&r.outlet.activateWith(o,r.injector),this.activateChildRoutes(i,null,r.children)}}else this.activateChildRoutes(i,null,n)}}class vD{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class tf{constructor(i,e){this.component=i,this.route=e}}function g$(t,i,e){const n=t._root;return Mu(n,i?i._root:null,e,[n.value])}function Bl(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function R4(t){return null!==Cd(t)}(t)?i.get(t):t:n}function Mu(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Vl(i);return t.children.forEach(r=>{(function _$(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,r=i?i.value:null,a=e?e.getContext(t.value.outlet):null;if(r&&s.routeConfig===r.routeConfig){const l=function I$(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!ua(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ua(t.url,i.url)||!hs(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WI(t,i)||!hs(t.queryParams,i.queryParams);default:return!WI(t,i)}}(r,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vD(n)):(s.data=r.data,s._resolvedData=r._resolvedData),Mu(t,i,s.component?a?a.children:null:e,n,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new tf(a.outlet.component,r))}else r&&Ou(i,a,o),o.canActivateChecks.push(new vD(n)),Mu(t,null,s.component?a?a.children:null:e,n,o)})(r,s[r.value.outlet],e,n.concat([r.value]),o),delete s[r.value.outlet]}),Object.entries(s).forEach(([r,a])=>Ou(a,e.getContext(r),o)),o}function Ou(t,i,e){const n=Vl(t),o=t.value;Object.entries(n).forEach(([s,r])=>{Ou(r,o.component?i?i.children.getContext(s):null:i,e)}),e.canDeactivateChecks.push(new tf(o.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,o))}function Lu(t){return"function"==typeof t}function bD(t){return t instanceof Uh||"EmptyError"===t?.name}const nf=Symbol("INITIAL_VALUE");function Hl(){return Ao(t=>Cu(t.map(i=>i.pipe(Pl(1),function cU(...t){const i=ic(t);return Me((e,n)=>{(i?PI(t,e,i):PI(t,e)).subscribe(n)})}(nf)))).pipe(at(i=>{for(const e of i)if(!0!==e){if(e===nf)return nf;if(!1===e||e instanceof Rl)return e}return!0}),zs(i=>i!==nf),Pl(1)))}function yD(t){return function he(...t){return de(t)}(Ei(i=>{if(da(i))throw mD(0,i)}),at(i=>!0===i))}class sf{constructor(i){this.segmentGroup=i||null}}class xD{constructor(i){this.urlTree=i}}function zl(t){return Ll(new sf(t))}function AD(t){return Ll(new xD(t))}class V${constructor(i,e){this.urlSerializer=i,this.urlTree=e}noMatchError(i){return new Ae(4002,!1)}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return ht(n);if(o.numberOfChildren>1||!o.children[Ot])return Ll(new Ae(4e3,!1));o=o.children[Ot]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,o){const s=this.createSegmentGroup(i,e.root,n,o);return new Rl(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Object.entries(i).forEach(([o,s])=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);n[o]=e[a]}else n[o]=s}),n}createSegmentGroup(i,e,n,o){const s=this.createSegments(i,e.segments,n,o);let r={};return Object.entries(e.children).forEach(([a,l])=>{r[a]=this.createSegmentGroup(i,l,n,o)}),new gn(s,r)}createSegments(i,e,n,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,o):this.findOrReturn(s,n))}findPosParam(i,e,n){const o=n[e.path.substring(1)];if(!o)throw new Ae(4001,!1);return o}findOrReturn(i,e){let n=0;for(const o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}}const XI={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B$(t,i,e,n,o){const s=JI(t,i,e);return s.matched?(n=function l$(t,i){return t.providers&&!t._injector&&(t._injector=O_(t.providers,i,`Route: ${t.path}`)),t._injector??i}(i,n),function F$(t,i,e,n){const o=i.canMatch;return o&&0!==o.length?ht(o.map(r=>{const a=Bl(r,t);return Tr(function A$(t){return t&&Lu(t.canMatch)}(a)?a.canMatch(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD()):ht(!0)}(n,i,e).pipe(at(r=>!0===r?s:{...XI}))):ht(s)}function JI(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...XI}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(i.matcher||_U)(e,t,i);if(!o)return{...XI};const s={};Object.entries(o.posParams??{}).forEach(([a,l])=>{s[a]=l.path});const r=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:r,positionalParamSegments:o.posParams??{}}}function wD(t,i,e,n){return e.length>0&&function j$(t,i,e){return e.some(n=>rf(t,i,n)&&Qo(n)!==Ot)}(t,e,n)?{segmentGroup:new gn(i,z$(n,new gn(e,t.children))),slicedSegments:[]}:0===e.length&&function U$(t,i,e){return e.some(n=>rf(t,i,n))}(t,e,n)?{segmentGroup:new gn(t.segments,H$(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new gn(t.segments,t.children),slicedSegments:e}}function H$(t,i,e,n,o){const s={};for(const r of n)if(rf(t,e,r)&&!o[Qo(r)]){const a=new gn([],{});s[Qo(r)]=a}return{...o,...s}}function z$(t,i){const e={};e[Ot]=i;for(const n of t)if(""===n.path&&Qo(n)!==Ot){const o=new gn([],{});e[Qo(n)]=o}return e}function rf(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}class q${constructor(i,e,n,o,s,r,a){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=r,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new V$(this.urlSerializer,this.urlTree)}noMatchError(i){return new Ae(4002,!1)}recognize(){const i=wD(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,Ot).pipe(Ci(e=>{if(e instanceof xD)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof sf?this.noMatchError(e):e}),at(e=>{const n=new Jh([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ot,this.rootComponentType,null,{}),o=new Ks(n,e),s=new hD("",o),r=function NU(t,i,e=null,n=null){return tD(eD(t),i,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(s._root),{state:s,tree:r}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,Ot).pipe(Ci(n=>{throw n instanceof sf?this.noMatchError(n):n}))}inheritParamsAndData(i){const e=i.value,n=pD(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(i,e,n,o){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,o,!0)}processChildren(i,e,n){const o=[];for(const s of Object.keys(n.children))"primary"===s?o.unshift(s):o.push(s);return ri(o).pipe(El(s=>{const r=n.children[s],a=function p$(t,i){const e=t.filter(n=>Qo(n)===i);return e.push(...t.filter(n=>Qo(n)!==i)),e}(e,s);return this.processSegmentGroup(i,a,r,s)}),function pU(t,i){return Me(function dU(t,i,e,n,o){return(s,r)=>{let a=e,l=i,c=0;s.subscribe(Ue(r,u=>{const p=c++;l=a?t(l,u,p):(a=!0,u),n&&r.next(l)},o&&(()=>{a&&r.next(l),r.complete()})))}}(t,i,arguments.length>=2,!0))}((s,r)=>(s.push(...r),s)),$h(null),function hU(t,i){const e=arguments.length>=2;return n=>n.pipe(t?zs((o,s)=>t(o,s,n)):_e,RI(1),e?$h(i):zE(()=>new Uh))}(),si(s=>{if(null===s)return zl(n);const r=TD(s);return function W$(t){t.sort((i,e)=>i.value.outlet===Ot?-1:e.value.outlet===Ot?1:i.value.outlet.localeCompare(e.value.outlet))}(r),ht(r)}))}processSegment(i,e,n,o,s,r){return ri(e).pipe(El(a=>this.processSegmentAgainstRoute(a._injector??i,e,a,n,o,s,r).pipe(Ci(l=>{if(l instanceof sf)return ht(null);throw l}))),ca(a=>!!a),Ci(a=>{if(bD(a))return function K$(t,i,e){return 0===i.length&&!t.children[e]}(n,o,s)?ht([]):zl(n);throw a}))}processSegmentAgainstRoute(i,e,n,o,s,r,a){return function $$(t,i,e,n){return!!(Qo(t)===n||n!==Ot&&rf(i,e,t))&&("**"===t.path||JI(i,t,e).matched)}(n,o,s,r)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(i,o,n,s,r,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,s,r):zl(o):zl(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,o,r):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,o){const s=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?AD(s):this.applyRedirects.lineralizeSegments(n,s).pipe(si(r=>{const a=new gn(r,{});return this.processSegment(i,e,a,r,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,r){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=JI(e,o,s);if(!a)return zl(e);const p=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?AD(p):this.applyRedirects.lineralizeSegments(o,p).pipe(si(m=>this.processSegment(i,n,e,m.concat(c),r,!1)))}matchSegmentAgainstRoute(i,e,n,o,s,r){let a;if("**"===n.path){const l=o.length>0?UE(o).parameters:{};a=ht({snapshot:new Jh(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=B$(e,n,o,i).pipe(at(({matched:l,consumedSegments:c,remainingSegments:u,parameters:p})=>l?{snapshot:new Jh(c,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,SD(n),Qo(n),n.component??n._loadedComponent??null,n,ED(n)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Ao(l=>null===l?zl(e):this.getChildConfig(i=n._injector??i,n,o).pipe(Ao(({routes:c})=>{const u=n._loadedInjector??i,{snapshot:p,consumedSegments:m,remainingSegments:_}=l,{segmentGroup:b,slicedSegments:E}=wD(e,m,_,c);if(0===E.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(at(W=>null===W?null:[new Ks(p,W)]));if(0===c.length&&0===E.length)return ht([new Ks(p,[])]);const P=Qo(n)===s;return this.processSegment(u,c,b,E,P?Ot:s,!0).pipe(at(W=>[new Ks(p,W)]))}))))}getChildConfig(i,e,n){return e.children?ht({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ht({routes:e._loadedRoutes,injector:e._loadedInjector}):function P$(t,i,e,n){const o=i.canLoad;return void 0===o||0===o.length?ht(!0):ht(o.map(r=>{const a=Bl(r,t);return Tr(function v$(t){return t&&Lu(t.canLoad)}(a)?a.canLoad(i,e):t.runInContext(()=>a(i,e)))})).pipe(Hl(),yD())}(i,e,n).pipe(si(o=>o?this.configLoader.loadChildren(i,e).pipe(Ei(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function N$(t){return Ll(_D(!1,3))}())):ht({routes:[],injector:i})}}function Q$(t){const i=t.value.routeConfig;return i&&""===i.path}function TD(t){const i=[],e=new Set;for(const n of t){if(!Q$(n)){i.push(n);continue}const o=i.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...n.children),e.add(o)):i.push(n)}for(const n of e){const o=TD(n.children);i.push(new Ks(n.value,o))}return i.filter(n=>!e.has(n))}function SD(t){return t.data||{}}function ED(t){return t.resolve||{}}function DD(t){return"string"==typeof t.title||null===t.title}function eC(t){return Ao(i=>{const e=t(i);return e?ri(e).pipe(at(()=>i)):ht(i)})}const jl=new Ye("ROUTES");let tC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=et(l2)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ht(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Tr(e.loadComponent()).pipe(at(kD),Ei(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),du(()=>{this.componentLoaders.delete(e)})),o=new HE(n,()=>new re).pipe(FI());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ht({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const s=function nK(t,i,e,n){return Tr(t.loadChildren()).pipe(at(kD),si(o=>o instanceof mw||Array.isArray(o)?ht(o):ri(i.compileModuleAsync(o))),at(o=>{n&&n(t);let s,r,a=!1;return Array.isArray(o)?(r=o,!0):(s=o.create(e).injector,r=s.get(jl,[],{optional:!0,self:!0}).flat()),{routes:r.map(YI),injector:s}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(du(()=>{this.childrenLoaders.delete(n)})),r=new HE(s,()=>new re).pipe(FI());return this.childrenLoaders.set(n,r),r}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kD(t){return function iK(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let af=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=et(tC),this.environmentInjector=et(po),this.urlSerializer=et(yu),this.rootContexts=et(Eu),this.inputBindingEnabled=null!==et(ef,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ht(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new QU(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new WU(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,o){return this.transitions=new xo({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Tu,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(zs(s=>0!==s.id),at(s=>({...s,extractedUrl:e.urlHandlingStrategy.extract(s.rawUrl)})),Ao(s=>{this.currentTransition=s;let r=!1,a=!1;return ht(s).pipe(Ei(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Ao(l=>{const c=l.currentBrowserUrl.toString(),u=!e.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),es}if(e.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return ht(l).pipe(Ao(m=>{const _=this.transitions?.getValue();return this.events.next(new Yh(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),_!==this.transitions?.getValue()?es:Promise.resolve(m)}),function Z$(t,i,e,n,o,s){return si(r=>function G$(t,i,e,n,o,s,r="emptyOnly"){return new q$(t,i,e,n,o,r,s).recognize()}(t,i,e,n,r.extractedUrl,o,s).pipe(at(({state:a,tree:l})=>({...r,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Ei(m=>{s.targetSnapshot=m.targetSnapshot,s.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const _=new aD(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(_)}));if(u&&e.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:_,source:b,restoredState:E,extras:P}=l,W=new Yh(m,this.urlSerializer.serialize(_),b,E);this.events.next(W);const te=dD(0,this.rootComponentType).snapshot;return this.currentTransition=s={...l,targetSnapshot:te,urlAfterRedirects:_,extras:{...P,skipLocationChange:!1,replaceUrl:!1}},ht(s)}{const m="";return this.events.next(new Nl(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),es}}),Ei(l=>{const c=new $U(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),at(l=>(this.currentTransition=s={...l,guards:g$(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},s)),function T$(t,i){return si(e=>{const{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:r}}=e;return 0===r.length&&0===s.length?ht({...e,guardsResult:!0}):function S$(t,i,e,n){return ri(t).pipe(si(o=>function L$(t,i,e,n,o){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ht(s.map(a=>{const l=ku(i)??o,c=Bl(a,l);return Tr(function x$(t){return t&&Lu(t.canDeactivate)}(c)?c.canDeactivate(t,i,e,n):l.runInContext(()=>c(t,i,e,n))).pipe(ca())})).pipe(Hl()):ht(!0)}(o.component,o.route,e,i,n)),ca(o=>!0!==o,!0))}(r,n,o,t).pipe(si(a=>a&&function C$(t){return"boolean"==typeof t}(a)?function E$(t,i,e,n){return ri(i).pipe(El(o=>PI(function k$(t,i){return null!==t&&i&&i(new ZU(t)),ht(!0)}(o.route.parent,n),function D$(t,i){return null!==t&&i&&i(new XU(t)),ht(!0)}(o.route,n),function O$(t,i,e){const n=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(r=>function m$(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(r)).filter(r=>null!==r).map(r=>BE(()=>ht(r.guards.map(l=>{const c=ku(r.node)??e,u=Bl(l,c);return Tr(function y$(t){return t&&Lu(t.canActivateChild)}(u)?u.canActivateChild(n,t):c.runInContext(()=>u(n,t))).pipe(ca())})).pipe(Hl())));return ht(s).pipe(Hl())}(t,o.path,e),function M$(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ht(!0);const o=n.map(s=>BE(()=>{const r=ku(i)??e,a=Bl(s,r);return Tr(function b$(t){return t&&Lu(t.canActivate)}(a)?a.canActivate(i,t):r.runInContext(()=>a(i,t))).pipe(ca())}));return ht(o).pipe(Hl())}(t,o.route,e))),ca(o=>!0!==o,!0))}(n,s,t,i):ht(a)),at(a=>({...e,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),Ei(l=>{if(s.guardsResult=l.guardsResult,da(l.guardsResult))throw mD(0,l.guardsResult);const c=new KU(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),zs(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),eC(l=>{if(l.guards.canActivateChecks.length)return ht(l).pipe(Ei(c=>{const u=new GU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),Ao(c=>{let u=!1;return ht(c).pipe(function Y$(t,i){return si(e=>{const{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return ht(e);let s=0;return ri(o).pipe(El(r=>function X$(t,i,e,n){const o=t.routeConfig,s=t._resolve;return void 0!==o?.title&&!DD(o)&&(s[vu]=o.title),function J$(t,i,e,n){const o=function eK(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ht({});const s={};return ri(o).pipe(si(r=>function tK(t,i,e,n){const o=ku(i)??n,s=Bl(t,o);return Tr(s.resolve?s.resolve(i,e):o.runInContext(()=>s(i,e)))}(t[r],i,e,n).pipe(ca(),Ei(a=>{s[r]=a}))),RI(1),function fU(t){return at(()=>t)}(s),Ci(r=>bD(r)?es:Ll(r)))}(s,t,i,n).pipe(at(r=>(t._resolvedData=r,t.data=pD(t,e).resolve,o&&DD(o)&&(t.data[vu]=o.title),null)))}(r.route,n,t,i)),Ei(()=>s++),RI(1),si(r=>s===o.length?ht(e):es))})}(e.paramsInheritanceStrategy,this.environmentInjector),Ei({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),Ei(c=>{const u=new qU(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),eC(l=>{const c=u=>{const p=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ei(m=>{u.component=m}),at(()=>{})));for(const m of u.children)p.push(...c(m));return p};return Cu(c(l.targetSnapshot.root)).pipe($h(),Pl(1))}),eC(()=>this.afterPreactivation()),at(l=>{const c=function o$(t,i,e){const n=Du(t,i._root,e?e._root:void 0);return new uD(n,i)}(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s={...l,targetRouterState:c},s}),Ei(()=>{this.events.next(new jI)}),((t,i,e,n)=>at(o=>(new f$(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Pl(1),Ei({next:l=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Sr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),e.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{r=!0}}),function gU(t){return Me((i,e)=>{Ni(t).subscribe(Ue(e,()=>e.complete(),C)),!e.closed&&i.subscribe(e)})}(this.transitionAbortSubject.pipe(Ei(l=>{throw l}))),du(()=>{r||a||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Ci(l=>{if(a=!0,ID(l))this.events.next(new Su(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),function a$(t){return ID(t)&&da(t.url)}(l)?this.events.next(new UI(l.url)):s.resolve(!1);else{this.events.next(new Xh(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(l))}catch(c){s.reject(c)}}return es}))}))}cancelNavigationTransition(e,n,o){const s=new Su(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(s),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MD(t){return t!==Tu}let OD=(()=>{class t{buildTitle(e){let n,o=e.root;for(;void 0!==o;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===Ot);return n}getResolvedTitleForRoute(e){return e.data[vu]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(oK)},providedIn:"root"})}return t})(),oK=(()=>{class t extends OD{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(ET))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(aK)},providedIn:"root"})}return t})();class rK{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let aK=(()=>{class t extends rK{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const lf=new Ye("",{providedIn:"root",factory:()=>({})});let lK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:function(){return et(cK)},providedIn:"root"})}return t})(),cK=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pu=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Pu||{});function LD(t,i){t.events.pipe(zs(e=>e instanceof Sr||e instanceof Su||e instanceof Xh||e instanceof Nl),at(e=>e instanceof Sr||e instanceof Nl?Pu.COMPLETE:e instanceof Su&&(0===e.code||1===e.code)?Pu.REDIRECTING:Pu.FAILED),zs(e=>e!==Pu.REDIRECTING),Pl(1)).subscribe(()=>{i()})}function uK(t){throw t}function dK(t,i,e){return i.parse("/")}const pK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let io=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=et(a2),this.isNgZoneEnabled=!1,this._events=new re,this.options=et(lf,{optional:!0})||{},this.pendingTasks=et(Kp),this.errorHandler=this.options.errorHandler||uK,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dK,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=et(lK),this.routeReuseStrategy=et(sK),this.titleStrategy=et(OD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=et(jl,{optional:!0})?.flat()??[],this.navigationTransitions=et(af),this.urlSerializer=et(yu),this.location=et(d0),this.componentInputBindingEnabled=!!et(ef,{optional:!0}),this.eventsSubscription=new F,this.isNgZoneEnabled=et(Tt)instanceof Tt&&Tt.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Rl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dD(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(PD(n)&&this._events.next(n));if(n instanceof Yh)MD(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(n instanceof Nl)this.rawUrlTree=o.rawUrl;else if(n instanceof aD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(n instanceof jI)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(n instanceof Su)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(o);else if(n instanceof UI){const s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),r={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||MD(o.source)};this.scheduleNavigation(s,Tu,null,r,{resolve:o.resolve,reject:o.reject,promise:o.promise})}n instanceof Xh&&this.restoreHistory(o,!0),n instanceof Sr&&(this.navigated=!0),PD(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Tu,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,o){const s={replaceUrl:!0},r=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,n,r,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(YI),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){const{relativeTo:o,queryParams:s,fragment:r,queryParamsHandling:a,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:r;let p,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}null!==u&&(u=this.removeEmptyProps(u));try{p=eD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),p=this.currentUrlTree.root}return tD(p,e,u,c??null)}navigateByUrl(e,n={skipLocationChange:!1}){const o=da(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Tu,null,n)}navigate(e,n={skipLocationChange:!1}){return function fK(t){for(let i=0;i{const s=e[o];return null!=s&&(n[o]=s),n},{})}scheduleNavigation(e,n,o,s,r){if(this.disposed)return Promise.resolve(!1);let a,l,c;r?(a=r.resolve,l=r.reject,c=r.promise):c=new Promise((p,m)=>{a=p,l=m});const u=this.pendingTasks.add();return LD(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(p=>Promise.reject(p))}setBrowserUrl(e,n){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){const r={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(o,"",r)}else{const s={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function PD(t){return!(t instanceof jI||t instanceof UI)}let pa=(()=>{class t{constructor(e,n,o,s,r,a){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=r,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=r.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Sr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,n,o,s,r){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||o||s||r||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function yy(t,i,e){return function H5(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?by:Ls}(i,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const o=this.renderer,s=this.el.nativeElement;null!==n?o.setAttribute(s,e,n):o.removeAttribute(s,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(Di),function $d(t){return function rP(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let o=0;for(;o{class t{get isActive(){return this._isActive}constructor(e,n,o,s,r){this.router=e,this.element=n,this.renderer=o,this.cdr=s,this.link=r,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ge,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Sr&&this.update()})}ngAfterContentInit(){ht(this.links.changes,ht(null)).pipe(Ta()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=ri(e).pipe(Ta()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){const n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const n=function gK(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&e.isActive(o.urlTree,n)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(io),V(bt),V(hn),V(Ft),V(pa,8))};static#t=this.\u0275dir=ut({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,s){if(1&n&&Gt(s,pa,5),2&n){let r;Se(r=Ee())&&(o.links=r)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Hn]})}return t})();class FD{}let mK=(()=>{class t{constructor(e,n,o,s,r){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(zs(e=>e instanceof Sr),El(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const o=[];for(const s of n){s.providers&&!s._injector&&(s._injector=O_(s.providers,e,`Route: ${s.path}`));const r=s._injector??e,a=s._loadedInjector??r;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(r,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(a,s.children??s._loadedRoutes))}return ri(o).pipe(Ta())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;o=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ht(null);const s=o.pipe(si(r=>null===r?ht(void 0):(n._loadedRoutes=r.routes,n._loadedInjector=r.injector,this.processRoutes(r.injector??e,r.routes))));return n.loadComponent&&!n._loadedComponent?ri([s,this.loader.loadComponent(n)]).pipe(Ta()):s})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(io),Ze(l2),Ze(po),Ze(FD),Ze(tC))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const nC=new Ye("");let RD=(()=>{class t{constructor(e,n,o,s,r={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Yh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Sr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Nl&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof lD&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new lD(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){!function cx(){throw new Error("invalid")}()};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac})}return t})();function Gs(t,i){return{\u0275kind:t,\u0275providers:i}}function VD(){const t=et($i);return i=>{const e=t.get(ta);if(i!==e.components[0])return;const n=t.get(io),o=t.get(BD);1===t.get(iC)&&n.initialNavigation(),t.get(HD,null,zt.Optional)?.setUpPreloading(),t.get(nC,null,zt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const BD=new Ye("",{factory:()=>new re}),iC=new Ye("",{providedIn:"root",factory:()=>1}),HD=new Ye("");function vK(t){return Gs(0,[{provide:HD,useExisting:mK},{provide:FD,useExisting:t}])}const zD=new Ye("ROUTER_FORROOT_GUARD"),yK=[d0,{provide:yu,useClass:NI},io,Eu,{provide:Di,useFactory:function ND(t){return t.routerState.root},deps:[io]},tC,[]];function xK(){return new g2("Router",io)}let qn=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[yK,[],{provide:jl,multi:!0,useValue:e},{provide:zD,useFactory:SK,deps:[[io,new qd,new Wd]]},{provide:lf,useValue:n||{}},n?.useHash?{provide:Ir,useClass:G2}:{provide:Ir,useClass:K2},{provide:nC,useFactory:()=>{const t=et(LV),i=et(Tt),e=et(lf),n=et(af),o=et(yu);return e.scrollOffset&&t.setOffset(e.scrollOffset),new RD(o,n,t,i,e)}},n?.preloadingStrategy?vK(n.preloadingStrategy).\u0275providers:[],{provide:g2,multi:!0,useFactory:xK},n?.initialNavigation?EK(n):[],n?.bindToComponentInputs?Gs(8,[gD,{provide:ef,useExisting:gD}]).\u0275providers:[],[{provide:jD,useFactory:VD},{provide:e0,multi:!0,useExisting:jD}]]}}static forChild(e){return{ngModule:t,providers:[{provide:jl,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(zD,8))};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({})}return t})();function SK(t){return"guarded"}function EK(t){return["disabled"===t.initialNavigation?Gs(3,[{provide:G_,multi:!0,useFactory:()=>{const i=et(io);return()=>{i.setUpLocationChangeListener()}}},{provide:iC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Gs(2,[{provide:iC,useValue:0},{provide:G_,multi:!0,deps:[$i],useFactory:i=>{const e=i.get(_8,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const o=i.get(io),s=i.get(BD);LD(o,()=>{n(!0)}),i.get(af).afterPreactivation=()=>(n(!0),s.closed?ht(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const jD=new Ye("");class kK{}class MK{}var Lt=function(t){return t[t.Passed="Passed"]="Passed",t[t.Failed="Failed"]="Failed",t[t.FailIgnored="FailIgnored"]="FailIgnored",t[t.Blocked="Blocked"]="Blocked",t[t.Stopped="Stopped"]="Stopped",t[t.Pending="Pending"]="Pending",t[t.InProgress="In Progress"]="InProgress",t[t.Canceled="Canceled"]="Canceled",t[t.Queued="Queued"]="Queued",t[t.FailedToQueue="Failed To Queue"]="FailedToQueue",t[t.Others="Others"]="Others",t}(Lt||{}),Er=function(t){return t[t.BusinessFlowsActivities=0]="BusinessFlowsActivities",t[t.ActivitiesActions=1]="ActivitiesActions",t[t.OutputValidation=2]="OutputValidation",t}(Er||{});class UD{}class OK{}class $D{}class LK{}var oC=function(t){return t[t.html=0]="html",t[t.htm=1]="htm",t[t.xls=2]="xls",t[t.xlsx=3]="xlsx",t[t.csv=4]="csv",t[t.json=5]="json",t[t.ppt=6]="ppt",t[t.jpg=7]="jpg",t[t.jpeg=8]="jpeg",t[t.png=9]="png",t[t.bmp=10]="bmp",t[t.txt=11]="txt",t[t.doc=12]="doc",t[t.docx=13]="docx",t[t.xml=14]="xml",t[t.pdf=15]="pdf",t[t.gif=16]="gif",t}(oC||{});let Co=(()=>{class t{constructor(){}getByKey(e){return JSON.parse(sessionStorage.getItem(e))}isExist(e){return null!=sessionStorage.getItem(e)}setItem(e,n){this.getByKey(e)||this.reomveByKey(e),sessionStorage.setItem(e,JSON.stringify(n))}setItemCache(e){this.runset=e}getItemCache(){return this.runset}reomveByKey(e){this.getByKey(e)&&sessionStorage.removeItem(e)}clearSession(){sessionStorage.clear()}msToTime1(e){var n=e%1e3,o=(e=(e-n)/1e3)%60,s=(e=(e-o)/60)%60,r=(e-s)/60;return(0==r?"00":r.toString())+":"+(0==s?"00":s.toString())+":"+(0==o?"00":o.toString())+"."+n}pad(e,n=2){return("00"+e).slice(-n)}msToTime(e){"seconds"==this.getByKey("timeFormat")&&(e*=1e3);var o=e%1e3,s=(e=(e-o)/1e3)%60,r=(e=(e-s)/60)%60;return this.pad((e-r)/60)+":"+this.pad(r)+":"+this.pad(s)+"."+this.pad(o,3)}replaceUnicodeChar(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u0021/g,"!")).replace(/u0022/g,'"')).replace(/u0023/g,"#")).replace(/u0024/g,"$")).replace(/u0025/g,"%")).replace(/u0026/g,"&")).replace(/u0027/g,"'")).replace(/u0028/g,"(")).replace(/u0029/g,")")).replace(/u002A/g,"*")).replace(/u002B/g,"+")).replace(/u002C/g,",")).replace(/u002D/g,"-")).replace(/u002E/g,".")).replace(/u002F/g,"/")).replace(/u003A/g,":")).replace(/u003B/g,";")).replace(/u003C/g,"<")).replace(/u003D/g,"=")).replace(/u003E/g,">")).replace(/u003F/g,"?")).replace(/u0040/g,"@")).replace(/u005B/g,"[")).replace(/u005C/g,"\\")).replace(/u005D/g,"]")).replace(/u005E/g,"^")).replace(/u005F/g,"_")).replace(/u0060/g,"`")).replace(/u007B/g,"{")).replace(/u007C/g,"|")).replace(/u007D/g,"}")).replace(/u007E/g,"~")).replace(/!/g,"!")).replace(/"/g,'"')).replace(/#/g,"#")).replace(/$/g,"$")).replace(/%/g,"%")).replace(/&/g,"&")).replace(/'/g,"'")).replace(/(/g,"(")).replace(/)/g,")")).replace(/*/g,"*")).replace(/+/g,"+")).replace(/,/g,",")).replace(/-/g,"-")).replace(/./g,".")).replace(///g,"/")).replace(/:/g,":")).replace(/;/g,";")).replace(/</g,"<")).replace(/=/g,"=")).replace(/>/g,">")).replace(/?/g,"?")).replace(/@/g,"@")).replace(/[/g,"[")).replace(/\/g,"\\")).replace(/]/g,"]")).replace(/^/g,"^")).replace(/_/g,"_")).replace(/`/g,"`")).replace(/{/g,"{")).replace(/|/g,"|")).replace(/}/g,"}")).replace(/~/g,"~")).trimStart()}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function KD(t,i,e,n,o,s,r){try{var a=t[s](r),l=a.value}catch(c){return void e(c)}a.done?i(l):Promise.resolve(l).then(n,o)}function Fu(t){return function(){var i=this,e=arguments;return new Promise(function(n,o){var s=t.apply(i,e);function r(l){KD(s,n,o,r,a,"next",l)}function a(l){KD(s,n,o,r,a,"throw",l)}r(void 0)})}}class PK extends F{constructor(i,e){super()}schedule(i,e=0){return this}}const uf={setInterval(t,i,...e){const{delegate:n}=uf;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=uf;return(i?.clearInterval||clearInterval)(t)},delegate:void 0},sC={now:()=>(sC.delegate||Date).now(),delegate:void 0};class Ru{constructor(i,e=Ru.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}Ru.now=sC.now;const GD=new class RK extends Ru{constructor(i,e=Ru.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}(class FK extends PK{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return uf.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&uf.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let o,n=!1;try{this.work(i)}catch(s){n=!0,o=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,Z(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}),NK=GD;function gs(t=1/0){let i;i=t&&"object"==typeof t?t:{count:t};const{count:e=1/0,delay:n,resetOnSuccess:o=!1}=i;return e<=0?_e:Me((s,r)=>{let l,a=0;const c=()=>{let u=!1;l=s.subscribe(Ue(r,p=>{o&&(a=0),r.next(p)},void 0,p=>{if(a++{l?(l.unsubscribe(),l=null,c()):u=!0};if(null!=n){const _="number"==typeof n?function BK(t=0,i,e=NK){let n=-1;return null!=i&&(Zv(i)?e=i:n=i),new ce(o=>{let s=function VK(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let r=0;return e.schedule(function(){o.closed||(o.next(r++),0<=n?this.schedule(void 0,n):o.complete())},s)})}(n):Ni(n(p,a)),b=Ue(r,()=>{b.unsubscribe(),m()},()=>{r.complete()});_.subscribe(b)}else m()}else r.error(p)})),u&&(l.unsubscribe(),l=null,c())};c()})}let ms=(()=>{class t{constructor(){this.baseAppUrl="",this.accountId=1,this.topBarTitle="",this.hideRightPanel=!1,this.imagePath="assets/screenshots/",this.artifactPath="assets/artifacts/",this.isServerLoading=!1}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ha=(()=>{class t{constructor(e,n){this.httpClient=e,this.globalVarService=n,this.httpOptions={headers:new qo({"Content-Type":"application/json"}),params:{}}}GetAccountHtmlReport(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReport",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBriefCase(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBriefCase/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParent(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetActivitiesByParentAwait(e){var n=this;return Fu(function*(){return yield n.httpClient.post(n.globalVarService.baseAppUrl+"HtmlReport/GetActivitiesByParent",JSON.stringify(e),n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActivityById(e){var n=this;return Fu(function*(){return yield n.httpClient.get(n.globalVarService.baseAppUrl+"HtmlReport/GetActivityById/"+e,n.httpOptions).pipe(gs(1),Ci(n.handleError)).toPromise()})()}GetActionById(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetActionById/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAccountHtmlReportBrief(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAccountHtmlReportBrief/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActionsStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActionsStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}GetAllActivitiesStatus(e){return this.httpClient.get(this.globalVarService.baseAppUrl+"HtmlReport/GetAllActivitiesStatus/"+e,this.httpOptions).pipe(gs(1),Ci(this.handleError))}DownloadRunsetImages(e){return this.httpClient.post(this.globalVarService.baseAppUrl+"HtmlReport/DownloadRunsetImages",JSON.stringify(e),this.httpOptions).pipe(gs(1),Ci(this.handleError))}handleError(e){let n="";return n=e.error instanceof ErrorEvent?e.error.message:`Error Code: ${e.status}\nMessage: ${e.message}`,Ll(n)}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qs=(()=>{class t{initService(e=!1){e&&(this.runset=null,this.businessFlows=[],this.activities=[],this.actions=[]),this.runset=this.getRunset(),this.businessFlows=this.getAllBusinessFlows(),this.activities=this.getAllActivities(),this.actions=this.getAllActions()}constructor(e,n,o){this._userDataManagerService=e,this.restServiceObj=n,this.globalVarService=o}populateChartsData(e,n){e.push(["Passed",n[0]]),e.push(["Failed",n[1]]),e.push(["Blocked",n[2]]),e.push(["Stopped",n[3]]),e.push(["Pending",n[4]]),e.push(["In Progress",n[5]]),e.push(["Canceled",n[6]])}getRunset(){return this._userDataManagerService.getItemCache()}getAllBusinessFlows(){return(null==this.businessFlows||this.businessFlows.length<=0)&&(this.businessFlows=this.getBusinessFlows()),this.businessFlows}getBusinessFlows(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)e.push(o);return e}getActivities(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)e.push(s);return e}getAllActivities(){return(null==this.activities||this.activities.length<=0)&&(this.activities=this.getActivities()),this.activities}getActions(){let e=[];for(let n of this.runset.RunnersColl)for(let o of n.BusinessFlowsColl)if(null!=o.ActivitiesColl)for(let s of o.ActivitiesColl)if(null!=s.ActionsColl)for(let r of s.ActionsColl)e.push(r);return e}getAllActions(){return(null==this.actions||this.actions.length<=0)&&(this.actions=this.getActions()),this.actions}getRateArray(e){let n=[],o=this.businessFlows.filter(r=>r.RunStatus==e).length,s=this.businessFlows.length-o;return n.push(o),n.push(s),n}getOthersRateArray(e){}getRunnerExecutionStatus(e){let n=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Passed).length,o=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Failed).length,s=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Stopped).length,r=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Blocked).length,a=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Pending).length,l=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.InProgress).length,c=e.BusinessFlowsColl.filter(p=>p.RunStatus==Lt.Canceled).length,u=e.BusinessFlowsColl.length;return s>0?Lt.Stopped:r>0?Lt.Blocked:o>0?Lt.Failed:n==u?Lt.Passed:a==u||a==u?Lt.Pending:l==u?Lt.InProgress:c==u?Lt.Canceled:null}getRunnersExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.runset.RunnersColl)this.populateArrayByRunStatus(e,n.RunStatus);return e}getAllBusinessFlowsExecutionStatusArray(){let e=[0,0,0,0,0,0,0];for(let n of this.businessFlows)this.populateArrayByRunStatus(e,n.RunStatus);return e}getRunnerBusinessFlowsExecutionStatusArray(e){let n=[0,0,0,0,0,0,0];for(let o of e.BusinessFlowsColl)this.populateArrayByRunStatus(n,o.RunStatus);return n}getActionsExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActionsCount(this.runset),this.runset.TotalActionsPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)if(null!=r.ActionsColl&&r.ActionsColl.length)for(let a of r.ActionsColl)this.populateArrayByRunStatus(e,a.RunStatus);return e}return null}getActionsCount(e){let n=0;for(let o of e.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)null!=r.ActionsColl&&r.ActionsColl.length&&(n+=r.ActionsColl.length);return n}getActivitiesExecutionStatusArray(){let n,e=[0,0,0,0,0,0,0];if(n=this.getActivitiesCount(this.runset),this.runset.TotalActivitesPerExecution==n){for(let o of this.runset.RunnersColl)for(let s of o.BusinessFlowsColl)if(null!=s.ActivitiesColl)for(let r of s.ActivitiesColl)this.populateArrayByRunStatus(e,r.RunStatus);return e}return null}getActivitiesCount(e){let n=0;for(let o of e.RunnersColl)for(let s of o.BusinessFlowsColl)null!=s.ActivitiesColl&&s.ActivitiesColl.length>0&&(n+=s.ActivitiesColl.length);return n}populateArrayByRunStatus(e,n){switch("In Progress"==n.toString()&&(n=Lt.InProgress),n){case Lt.Passed:e[0]++;break;case Lt.Stopped:e[3]++;break;case Lt.Failed:e[1]++;break;case Lt.Pending:e[4]++;break;case Lt.Blocked:e[2]++;break;case Lt.InProgress:e[5]++;break;case Lt.Canceled:e[6]++}}getStatusClass(e,n=!0){let o="";return"Passed"==e?(o="passed-color",n?"fa fa-check-circle-o "+o:o):"Failed"==e?(o="failed-color",n?"fa fa-times-circle-o "+o:o):"Blocked"==e?(o="blocked-color",n?"fa fa-ban "+o:o):"Stopped"==e?(o="stopped-color",n?"fa fa-stop-circle-o "+o:o):"Pending"==e?(o="pending-color",n?"fa fa-clock-o "+o:o):"Skipped"==e?(o="skipped-color",n?"fa fa-minus-circle "+o:o):"In Progress"==e?(o="inprogress-color",n?"fa fa-hourglass-half "+o:o):"Canceled"==e?(o="canceled-color",n?"fa fa-stop-circle-o "+o:o):"Other"==e?"other-color":void 0}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(Co),Ze(ha),Ze(ms))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qD=(()=>{class t{constructor(){}load(...e){const n=[];return e.forEach(o=>n.push(this.loadScript(o))),Promise.all(n)}loadScript(e){return new Promise((n,o)=>{let s=document.createElement("script");s.setAttribute("data-complete","completeCallback"),s.setAttribute("data-cancel","cancelCallback"),s.setAttribute("data-error","errorCallback"),s.type="text/javascript",s.src=e,s.readyState?s.onreadystatechange=()=>{("loaded"===s.readyState||"complete"===s.readyState)&&(s.onreadystatechange=null,n({script:e,loaded:!0,status:"Loaded"}))}:s.onload=()=>{n({script:e,loaded:!0,status:"Loaded"})},s.onerror=r=>n({script:e,loaded:!1,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(s)})}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HK=(()=>{class t{constructor(e,n,o,s){this._http=e,this._userDataManagerService=n,this.calculatedDataService=o,this.fileLoader=s}getRunsetFromJsonByHttpRequest(){return null==this.runset&&(this.runset=this._http.get("assets/Execution_Data/executiondata.json"),this.runset.subscribe(e=>{const n={...e};this._userDataManagerService.setItem("0",n),this.calculatedDataService.initService()})),this.runset}GetExecutionData(){return new Promise((e,n)=>{let o=null;const s="assets/Execution_Data/executiondata.js?t="+Math.random().toString();this.fileLoader.load(s).then(r=>{typeof window.runsetData<"u"?(o=window.runsetData,o.TotalActionsPerExecution=this.calculatedDataService.getActionsCount(o),o.TotalActivitesPerExecution=this.calculatedDataService.getActivitiesCount(o),this._userDataManagerService.setItemCache(o),this.calculatedDataService.initService(),e(o)):e(null)}).catch(r=>console.log(r))})}static#e=this.\u0275fac=function(n){return new(n||t)(Ze(lI),Ze(Co),Ze(qs),Ze(qD))};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ws=(()=>{class t{constructor(){this.messageSource=new re,this.itemChangedSource=new re,this.refreshChangedSource=new re,this.bfActivitiesSourceChange=new re,this.loadbfActivities=new re,this.runnerStatLoad=new re,this.bfStatLoad=new re,this.activityStatLoad=new re,this.actionStatLoad=new re,this.messageSourceHasNewMessage=this.messageSource.asObservable(),this.onItemChangedMessage=this.itemChangedSource.asObservable(),this.onRefreshChangedMessage=this.refreshChangedSource.asObservable(),this.onBfActivitiesDataChange=this.bfActivitiesSourceChange.asObservable(),this.onloadbfActivities=this.loadbfActivities.asObservable(),this.onactivityStatLoad=this.activityStatLoad.asObservable(),this.onactionStatLoad=this.actionStatLoad.asObservable(),this.onrunnerStatLoad=this.runnerStatLoad.asObservable(),this.onbfStatLoad=this.bfStatLoad.asObservable()}newMessage(e){this.messageSource.next(e)}changeItem(e){this.itemChangedSource.next(e)}refreshScreen(e){this.refreshChangedSource.next(e)}bfActivitiesChange(e){this.bfActivitiesSourceChange.next(e)}loadbfActivitiesData(e){this.loadbfActivities.next(e)}loadactivityStat(e){this.activityStatLoad.next(e)}loadactionStat(e){this.actionStatLoad.next(e)}loadrunnerStat(e){this.runnerStatLoad.next(e)}loadbfStat(e){this.bfStatLoad.next(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),WD=(()=>{class t{constructor(){this.selectedRouteLink="",this.selectedGuid=""}GetMenuFromRunSet(e,n=null){const o=[],s={id:e.GUID,label:e.Name,routerLink:["/"],icon:"fa fa-play-circle",expanded:!0,title:e.Name,queryParams:n?{ExecutionId:n}:null};return this.CheckSelectedGuid(s.id,s.routerLink),this.SetRunners(e,s),o.push(s),o}SetRunners(e,n){return n.items=[],e.RunnersColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+o.Seq],icon:"fa fa-play-circle-o",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetBusinessFlow(o,r)}),n}SetBusinessFlow(e,n){e.BusinessFlowsColl.forEach(o=>{let s=this.getStatusIcon(o.RunStatus);const r={id:o.GUID,label:o.Name,routerLink:["/"+e.Seq+"/"+o.Seq],icon:"fa fa-sitemap",title:o.Name,styleClass:s};this.CheckSelectedGuid(r.id,r.routerLink),n.items.push(r),r.items=[],this.SetActivites(o,e,r)})}SetActivites(e,n,o){null!=e.ActivitiesColl&&e.ActivitiesColl.forEach(s=>{let r=this.getStatusIcon(s.RunStatus);const a={id:s.GUID,label:s.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/"+s.Seq],icon:"fa fa-bars",title:s.Name,styleClass:r};this.CheckSelectedGuid(a.id,a.routerLink),o.items.push(a),a.items=[],this.SetActions(s,a,n,e)})}SetActions(e,n,o,s){null!=e.ActionsColl&&e.ActionsColl.forEach(r=>{let a=this.getStatusIcon(r.RunStatus);const l={id:r.GUID,label:r.Name,routerLink:["/"+o.Seq+"/"+s.Seq+"/"+e.Seq+"/"+r.Seq],icon:"fa fa-bolt",title:r.Name,styleClass:a};this.CheckSelectedGuid(l.id,l.routerLink),n.items.push(l)})}SetActGroups(e,n,o){const s={id:"",label:"Activities Groups",icon:"activityGroup-menu-icon",items:[]};e.ActivitiesGroupsColl.forEach(r=>{const a={id:r.GUID,label:r.Name,routerLink:["/"+n.Seq+"/"+e.Seq+"/ag/ag/"+r.Name],icon:"fa fa-fw fa-exclamation-circle",title:r.Name};this.CheckSelectedGuid(a.id,a.routerLink),s.items.push(a)}),o.items.push(s)}GetShortName(e){return e.length>20?e.substring(0,20)+"...":e}CheckSelectedGuid(e,n){typeof this.selectedGuid<"u"&&this.selectedGuid&&""===this.selectedRouteLink&&this.selectedGuid===e&&(this.selectedRouteLink=n+"?Guid="+e)}getStatusIcon(e){let n=" "+e+"Status";return e==Lt.Failed||e==Lt.FailIgnored||e==Lt.Passed||e==Lt.Canceled?n:e==Lt.InProgress||n.search("Progress")?"InProgressStatus":e==Lt.Queued||e==Lt.Stopped?n:void 0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class be{static equals(i,e,n){return n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static equalsByValue(i,e){if(i===e)return!0;if(i&&e&&"object"==typeof i&&"object"==typeof e){var s,r,a,n=Array.isArray(i),o=Array.isArray(e);if(n&&o){if((r=i.length)!=e.length)return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[s],e[s]))return!1;return!0}if(n!=o)return!1;var l=this.isDate(i),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return i.getTime()==e.getTime();var u=i instanceof RegExp,p=e instanceof RegExp;if(u!=p)return!1;if(u&&p)return i.toString()==e.toString();var m=Object.keys(i);if((r=m.length)!==Object.keys(e).length)return!1;for(s=r;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,m[s]))return!1;for(s=r;0!=s--;)if(!this.equalsByValue(i[a=m[s]],e[a]))return!1;return!0}return i!=i&&e!=e}static resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return e(i);if(-1==e.indexOf("."))return i[e];{let n=e.split("."),o=i;for(let s=0,r=n.length;s=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static insertIntoOrderedArray(i,e,n,o){if(n.length>0){let s=!1;for(let r=0;re){n.splice(r,0,i),s=!0;break}s||n.push(i)}else n.push(i)}static findIndexInList(i,e){let n=-1;if(e)for(let o=0;o-1&&(i=i.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),i}static isDate(i){return"[object Date]"===Object.prototype.toString.call(i)}static isEmpty(i){return null==i||""===i||Array.isArray(i)&&0===i.length||!this.isDate(i)&&"object"==typeof i&&0===Object.keys(i).length}static isNotEmpty(i){return!this.isEmpty(i)}static compare(i,e,n,o=1){let s=-1;const r=this.isEmpty(i),a=this.isEmpty(e);return s=r&&a?0:r?o:a?-o:"string"==typeof i&&"string"==typeof e?i.localeCompare(e,n,{numeric:!0}):ie?1:0,s}static sort(i,e,n=1,o,s=1){return(1===s?n:s)*be.compare(i,e,o,n)}static merge(i,e){if(null!=i||null!=e)return null!=i&&"object"!=typeof i||null!=e&&"object"!=typeof e?null!=i&&"string"!=typeof i||null!=e&&"string"!=typeof e?e||i:[i||"",e||""].join(" "):{...i||{},...e||{}}}static isPrintableCharacter(i=""){return this.isNotEmpty(i)&&1===i.length&&i.match(/\S| /)}static getItemValue(i,...e){return this.isFunction(i)?i(...e):i}static findLastIndex(i,e){let n=-1;if(this.isNotEmpty(i))try{n=i.findLastIndex(e)}catch{n=i.lastIndexOf([...i].reverse().find(e))}return n}static findLast(i,e){let n;if(this.isNotEmpty(i))try{n=i.findLast(e)}catch{n=[...i].reverse().find(e)}return n}}var QD=0;function $t(t="pn_id_"){return`${t}${++QD}`}var Wn=function zK(){let t=[];const o=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:o,set:(s,r,a)=>{r&&(r.style.zIndex=String(((s,r)=>{let a=t.length>0?t[t.length-1]:{key:s,value:r},l=a.value+(a.key===s?0:r)+2;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(r=>r.value!==s)})(o(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const ZD=["*"];let vi=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"})(),YD=(()=>class t{static AND="and";static OR="or"})(),df=(()=>{class t{filter(e,n,o,s,r){let a=[];if(e)for(let l of e)for(let c of n){let u=be.resolveFieldData(l,c);if(this.filters[s](u,o,r)){a.push(l);break}}return a}filters={startsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return be.removeAccents(e.toString()).toLocaleLowerCase(o).slice(0,s.length)===s},contains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1!==be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},notContains:(e,n,o)=>{if(null==n||"string"==typeof n&&""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o);return-1===be.removeAccents(e.toString()).toLocaleLowerCase(o).indexOf(s)},endsWith:(e,n,o)=>{if(null==n||""===n.trim())return!0;if(null==e)return!1;let s=be.removeAccents(n.toString()).toLocaleLowerCase(o),r=be.removeAccents(e.toString()).toLocaleLowerCase(o);return-1!==r.indexOf(s,r.length-s.length)},equals:(e,n,o)=>null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o)),notEquals:(e,n,o)=>!(null==n||"string"==typeof n&&""===n.trim()||null!=e&&(e.getTime&&n.getTime?e.getTime()===n.getTime():be.removeAccents(e.toString()).toLocaleLowerCase(o)==be.removeAccents(n.toString()).toLocaleLowerCase(o))),in:(e,n)=>{if(null==n||0===n.length)return!0;for(let o=0;onull==n||null==n[0]||null==n[1]||null!=e&&(e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]),lt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n),gt:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>n.getTime():e>n),gte:(e,n,o)=>null==n||null!=e&&(e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n),is:(e,n,o)=>this.filters.equals(e,n,o),isNot:(e,n,o)=>this.filters.notEquals(e,n,o),before:(e,n,o)=>this.filters.lt(e,n,o),after:(e,n,o)=>this.filters.gt(e,n,o),dateIs:(e,n)=>null==n||null!=e&&e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>null==n||null!=e&&e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>null==n||null!=e&&e.getTime()null==n||null!=e&&e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dr=(()=>{class t{clickSource=new re;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ki=(()=>{class t{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[vi.STARTS_WITH,vi.CONTAINS,vi.NOT_CONTAINS,vi.ENDS_WITH,vi.EQUALS,vi.NOT_EQUALS],numeric:[vi.EQUALS,vi.NOT_EQUALS,vi.LESS_THAN,vi.LESS_THAN_OR_EQUAL_TO,vi.GREATER_THAN,vi.GREATER_THAN_OR_EQUAL_TO],date:[vi.DATE_IS,vi.DATE_IS_NOT,vi.DATE_BEFORE,vi.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new re;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-header"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),rC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-footer"]],ngContentSelectors:ZD,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2})}return t})(),sn=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(V($o))};static \u0275dir=ut({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}})}return t})(),Qe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),di=(()=>class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage"})(),j=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let o=n.trim().split(" ");for(let s=0;so.split(" ").forEach(s=>this.removeClass(e,s)))}static hasClass(e,n){return!(!e||!n)&&(e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return Array.from(e.querySelectorAll(n))}static findSingle(e,n){return this.isElement(e)?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,o=0;for(var s=0;s{if(W)return"relative"===getComputedStyle(W).getPropertyValue("position")?W:o(W.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=n.offsetHeight,a=n.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),m=o(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let _,b;a.top+r+s.height>u.height?(_=a.top-m.top-s.height,e.style.transformOrigin="bottom",a.top+_<0&&(_=-1*a.top)):(_=r+a.top-m.top,e.style.transformOrigin="top");const E=a.left+s.width-u.width;b=s.width>u.width?-1*(a.left-m.left):E>0?a.left-m.left-E:a.left-m.left,e.style.top=_+"px",e.style.left=b+"px"}static absolutePosition(e,n){const o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=o.height,r=o.width,a=n.offsetHeight,l=n.offsetWidth,c=n.getBoundingClientRect(),u=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),m=this.getViewport();let _,b;c.top+a+s>m.height?(_=c.top+u-s,e.style.transformOrigin="bottom",_<0&&(_=u)):(_=a+c.top+u,e.style.transformOrigin="top"),b=c.left+r>m.width?Math.max(0,c.left+p+l-r):c.left+p,e.style.top=_+"px",e.style.left=b+"px"}static getParents(e,n=[]){return null===e.parentNode?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let o=this.getParents(e);const s=/(auto|scroll)/,r=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let p=this.findSingle(a,u);p&&r(p)&&n.push(p)}}9!==a.nodeType&&r(a)&&n.push(a)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let o=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=o?parseFloat(o):0,r=getComputedStyle(e).getPropertyValue("paddingTop"),a=r?parseFloat(r):0,l=e.getBoundingClientRect(),u=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,p=e.scrollTop,m=e.clientHeight,_=this.getOuterHeight(n);u<0?e.scrollTop=p+u:u+_>m&&(e.scrollTop=p+u-m+_)}static fadeIn(e,n){e.style.opacity=0;let o=+new Date,s=0,r=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-o)/n,e.style.opacity=s,o=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(r)||setTimeout(r,16))};r()}static fadeOut(e,n){var o=1,a=50/n;let l=setInterval(()=>{(o-=a)<=0&&(o=0,clearInterval(l)),e.style.opacity=o},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,n){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(r){return-1!==[].indexOf.call(document.querySelectorAll(r),this)}).call(e,n)}static getOuterWidth(e,n){let o=e.offsetWidth;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return o}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static width(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),n}static getOuterHeight(e,n){let o=e.offsetHeight;if(n){let s=getComputedStyle(e);o+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return o}static getHeight(e){let n=e.offsetHeight,o=getComputedStyle(e);return n-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,o=getComputedStyle(e);return n-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),n}static getViewport(){let e=window,n=document,o=n.documentElement,s=n.getElementsByTagName("body")[0];return{width:e.innerWidth||o.clientWidth||s.clientWidth,height:e.innerHeight||o.clientHeight||s.clientHeight}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let o=e.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(n,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,n){if(this.isElement(n))n.appendChild(e);else{if(!(n&&n.el&&n.el.nativeElement))throw"Cannot append "+n+" to "+e;n.el.nativeElement.appendChild(e)}}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else{if(!n.el||!n.el.nativeElement)throw"Cannot remove "+e+" from "+n;n.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let o=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,o){e[n].apply(e,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableElements(e,n=""){let o=this.find(e,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n},\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${n}`),s=[];for(let r of o)"none"!=getComputedStyle(r).display&&"hidden"!=getComputedStyle(r).visibility&&s.push(r);return s}static getFirstFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[0]:null}static getLastFocusableElement(e,n){const o=this.getFocusableElements(e,n);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(e,n=!1){const o=t.getFocusableElements(e);let s=0;if(o&&o.length>0){const r=o.indexOf(o[0].ownerDocument.activeElement);n?s=-1==r||0===r?o.length-1:r-1:-1!=r&&r!==o.length-1&&(s=r+1)}return o[s]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:const o=typeof e;if("string"===o)return document.querySelector(e);if("object"===o&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const r=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return r&&9===r.nodeType||this.isExist(r)?r:null}var a}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){const o=e.getAttribute(n);return isNaN(o)?"true"===o||"false"===o?"true"===o:o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})();class Vu{element;listener;scrollableParents;constructor(i,e=(()=>{})){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=j.getScrollableParents(this.element);for(let i=0;i{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){const e=be.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:"spin",styleClass:"styleClass"},standalone:!0,features:[Et],ngContentSelectors:UK,decls:1,vars:0,template:function(n,o){1&n&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0})}return t})(),bi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Qi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function $K(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.collapseIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function KK(t,i){1&t&&le(0,"ChevronDownIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function GK(t,i){if(1&t&&(we(0),g(1,$K,1,4,"span",9),g(2,KK,1,2,"ChevronDownIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.collapseIcon),h(1),d("ngIf",!e.accordion.collapseIcon)}}function qK(t,i){if(1&t&&le(0,"span",11),2&t){const e=f(3);Ve(e.accordion.expandIcon),d("ngClass",e.iconClass),K("aria-hidden",!0)}}function WK(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&(d("ngClass",f(3).iconClass),K("aria-hidden",!0))}function QK(t,i){if(1&t&&(we(0),g(1,qK,1,4,"span",9),g(2,WK,1,2,"ChevronRightIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",e.accordion.expandIcon),h(1),d("ngIf",!e.accordion.expandIcon)}}function ZK(t,i){if(1&t&&(we(0),g(1,GK,3,2,"ng-container",3),g(2,QK,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.selected),h(1),d("ngIf",!e.selected)}}function YK(t,i){}function XK(t,i){1&t&&g(0,YK,0,0,"ng-template")}function JK(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.header," ")}}function eG(t,i){1&t&&ze(0)}function tG(t,i){1&t&&Kn(0,1,["*ngIf","hasHeaderFacet"])}function nG(t,i){1&t&&ze(0)}function iG(t,i){if(1&t&&(we(0),g(1,nG,1,0,"ng-container",6),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)}}const oG=["*",[["p-header"]]],sG=function(t){return{$implicit:t}},XD=function(t){return{transitionParams:t}},rG=function(t){return{value:"visible",params:t}},aG=function(t){return{value:"hidden",params:t}},lG=["*","p-header"],cG=["*"];let fa=(()=>{class t{el;changeDetector;id;header;headerStyle;tabStyle;contentStyle;tabStyleClass;headerStyleClass;contentStyleClass;disabled;cache=!0;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";iconPos="start";get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||(this._selected&&this.cache&&(this.loaded=!0),this.changeDetector.detectChanges())}headerAriaLevel=2;selectedChange=new ge;headerFacet;templates;_selected=!1;get iconClass(){return"end"===this.iconPos?"p-accordion-toggle-icon-end":"p-accordion-toggle-icon"}contentTemplate;headerTemplate;iconTemplate;loaded=!1;accordion;constructor(e,n,o){this.el=n,this.changeDetector=o,this.accordion=e,this.id=$t()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"icon":this.iconTemplate=e.template}})}toggle(e){if(this.disabled)return!1;let n=this.findTabIndex();if(this.selected)this.selected=!1,this.accordion.onClose.emit({originalEvent:e,index:n});else{if(!this.accordion.multiple)for(var o=0;o0}onKeydown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}ngOnDestroy(){this.accordion.tabs.splice(this.findTabIndex(),1)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ga)),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordionTab"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,4),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{id:"id",header:"header",headerStyle:"headerStyle",tabStyle:"tabStyle",contentStyle:"contentStyle",tabStyleClass:"tabStyleClass",headerStyleClass:"headerStyleClass",contentStyleClass:"contentStyleClass",disabled:"disabled",cache:"cache",transitionOptions:"transitionOptions",iconPos:"iconPos",selected:"selected",headerAriaLevel:"headerAriaLevel"},outputs:{selectedChange:"selectedChange"},ngContentSelectors:lG,decls:12,vars:45,consts:[[1,"p-accordion-tab",3,"ngClass","ngStyle"],["role","heading",1,"p-accordion-header"],["role","button",1,"p-accordion-header-link",3,"ngClass","click","keydown"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-accordion-header-text",4,"ngIf"],[4,"ngTemplateOutlet"],["role","region",1,"p-toggleable-content"],[1,"p-accordion-content",3,"ngClass","ngStyle"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-accordion-header-text"]],template:function(n,o){1&n&&(Ti(oG),x(0,"div",0)(1,"div",1)(2,"a",2),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeydown(r)}),g(3,ZK,3,2,"ng-container",3),g(4,XK,1,0,null,4),g(5,JK,2,1,"span",5),g(6,eG,1,0,"ng-container",6),g(7,tG,1,0,"ng-content",3),A()(),x(8,"div",7)(9,"div",8),Kn(10),g(11,iG,2,1,"ng-container",3),A()()()),2&n&&(Ii("p-accordion-tab-active",o.selected),d("ngClass",o.tabStyleClass)("ngStyle",o.tabStyle),K("data-pc-name","accordiontab"),h(1),Ii("p-highlight",o.selected)("p-disabled",o.disabled),K("aria-level",o.headerAriaLevel)("data-p-disabled",o.disabled)("data-pc-section","header"),h(1),yn(o.headerStyle),d("ngClass",o.headerStyleClass),K("tabindex",o.disabled?null:0)("id",o.getTabHeaderActionId(o.id))("aria-controls",o.getTabContentId(o.id))("aria-expanded",o.selected)("aria-disabled",o.disabled)("data-pc-section","headeraction"),h(1),d("ngIf",!o.iconTemplate),h(1),d("ngTemplateOutlet",o.iconTemplate)("ngTemplateOutletContext",He(35,sG,o.selected)),h(1),d("ngIf",!o.hasHeaderFacet),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.hasHeaderFacet),h(1),d("@tabContent",o.selected?He(39,rG,He(37,XD,o.transitionOptions)):He(43,aG,He(41,XD,o.transitionOptions))),K("id",o.getTabContentId(o.id))("aria-hidden",!o.selected)("aria-labelledby",o.getTabHeaderActionId(o.id))("data-pc-section","toggleablecontent"),h(1),d("ngClass",o.contentStyleClass)("ngStyle",o.contentStyle),h(2),d("ngIf",o.contentTemplate&&(o.cache?o.loaded:o.selected)))},dependencies:function(){return[Ct,gt,on,Ht,Qi,bi]},styles:["@layer primeng{.p-accordion-header-link{cursor:pointer;display:flex;align-items:center;-webkit-user-select:none;user-select:none;position:relative;text-decoration:none}.p-accordion-header-link:focus{z-index:1}.p-accordion-header-text{line-height:1}.p-accordion .p-toggleable-content{overflow:hidden}.p-accordion .p-accordion-tab-active>.p-toggleable-content:not(.ng-animating){overflow:inherit}.p-accordion-toggle-icon-end{order:1;margin-left:auto}.p-accordion-toggle-icon{order:0}}\n"],encapsulation:2,data:{animation:[Oo("tabContent",[Us("hidden",en({height:"0",visibility:"hidden"})),Us("visible",en({height:"*",visibility:"visible"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),ga=(()=>{class t{el;changeDetector;multiple=!1;style;styleClass;expandIcon;collapseIcon;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.updateSelectionState()}selectOnFocus=!1;get headerAriaLevel(){return this._headerAriaLevel}set headerAriaLevel(e){"number"==typeof e&&e>0?this._headerAriaLevel=e:2!==this._headerAriaLevel&&(this._headerAriaLevel=2)}onClose=new ge;onOpen=new ge;activeIndexChange=new ge;tabList;tabListSubscription=null;_activeIndex;_headerAriaLevel=2;preventActiveIndexPropagation=!1;tabs=[];constructor(e,n){this.el=e,this.changeDetector=n}onKeydown(e){switch(e.code){case"ArrowDown":this.onTabArrowDownKey(e);break;case"ArrowUp":this.onTabArrowUpKey(e);break;case"Home":this.onTabHomeKey(e);break;case"End":this.onTabEndKey(e)}}onTabArrowDownKey(e){const n=this.findNextHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabHomeKey(e),e.preventDefault()}onTabArrowUpKey(e){const n=this.findPrevHeaderAction(e.target.parentElement.parentElement.parentElement);n?this.changeFocusedTab(n):this.onTabEndKey(e),e.preventDefault()}onTabHomeKey(e){const n=this.findFirstHeaderAction();this.changeFocusedTab(n),e.preventDefault()}changeFocusedTab(e){e&&(j.focus(e),this.selectOnFocus&&this.tabs.forEach((n,o)=>{let s=this.multiple?this._activeIndex.includes(o):o===this._activeIndex;this.multiple?(this._activeIndex||(this._activeIndex=[]),n.id==e.id&&(n.selected=!n.selected,this._activeIndex.includes(o)?this._activeIndex=this._activeIndex.filter(r=>r!==o):this._activeIndex.push(o))):n.id==e.id?(n.selected=!n.selected,this._activeIndex=o):n.selected=!1,n.selectedChange.emit(s),this.activeIndexChange.emit(this._activeIndex),n.changeDetector.markForCheck()}))}findNextHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findPrevHeaderAction(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeaderAction(s.parentElement.parentElement):j.findSingle(s,'[data-pc-section="headeraction"]'):null}findFirstHeaderAction(){return this.findNextHeaderAction(this.el.nativeElement.firstElementChild.childNodes[0],!0)}findLastHeaderAction(){const e=this.el.nativeElement.firstElementChild.childNodes;return this.findPrevHeaderAction(e[e.length-1],!0)}onTabEndKey(e){const n=this.findLastHeaderAction();this.changeFocusedTab(n),e.preventDefault()}ngAfterContentInit(){this.initTabs(),this.tabListSubscription=this.tabList.changes.subscribe(e=>{this.initTabs()})}initTabs(){this.tabs=this.tabList.toArray(),this.tabs.forEach(e=>{e.headerAriaLevel=this._headerAriaLevel}),this.updateSelectionState(),this.changeDetector.markForCheck()}getBlockableElement(){return this.el.nativeElement.children[0]}updateSelectionState(){if(this.tabs&&this.tabs.length&&null!=this._activeIndex)for(let e=0;e{if(n.selected){if(!this.multiple)return void(e=o);e.push(o)}}),this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(e)}ngOnDestroy(){this.tabListSubscription&&this.tabListSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-accordion"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,fa,5),2&n){let r;Se(r=Ee())&&(o.tabList=r)}},hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown",function(r){return o.onKeydown(r)})},inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",expandIcon:"expandIcon",collapseIcon:"collapseIcon",activeIndex:"activeIndex",selectOnFocus:"selectOnFocus",headerAriaLevel:"headerAriaLevel"},outputs:{onClose:"onClose",onOpen:"onOpen",activeIndexChange:"activeIndexChange"},ngContentSelectors:cG,decls:2,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(n,o){1&n&&(Ti(),x(0,"div",0),Kn(1),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-accordion p-component")("ngStyle",o.style))},dependencies:[Ct,Ht],encapsulation:2,changeDetection:0})}return t})(),JD=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qi,bi,Qe]})}return t})();function uG(t,i){if(1&t&&(x(0,"div",8)(1,"span"),Le(2),A()()),2&t){const e=f(2).$implicit,n=f();h(1),Ve(n.getstatus(e.value)),h(1),dt(e.value)}}function dG(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit;h(1),dt(e.value)}}const pG=function(){return["Execution Status"]};function hG(t,i){if(1&t&&(x(0,"div",3),g(1,uG,3,4,"div",6),g(2,dG,2,1,"div",7),A()),2&t){const e=f().$implicit;h(1),d("ngSwitchCase",Jt(1,pG).includes(e.field)?e.field:"")}}function fG(t,i){1&t&&(x(0,"div",3),Le(1,"N/A"),A())}function gG(t,i){if(1&t&&(we(0,2),x(1,"div",3)(2,"strong"),Le(3),A()(),g(4,hG,3,2,"div",4),g(5,fG,2,0,"ng-template",null,5,In),Te()),2&t){const e=i.$implicit,n=Bt(6);d("ngSwitch",e.field),h(3),Pt(" ",e.field,": "),h(1),d("ngIf",e.value)("ngIfElse",n)}}let Ul=(()=>{class t{constructor(){}ngOnInit(){}getstatus(e){return"Passed"==e?"passed-color":"Failed"==e?"failed-color":"Blocked"==e?"blocked-color":"Stopped"==e?"stopped-color":"Pending"==e?"pending-color":"Skipped"==e?"skipped-color":"In Progress"==e?"inprogress-color":"Canceled"==e?"canceled-color":"Other"==e?"other-color":void 0}datepipe(e){e.includes("s")&&(e=e.replace("s",""));var n=new Date(0,0,0,0,0,0,0);return n.toLocaleString("HH:mm:ss.SSS"),n.setSeconds(e),n.setMilliseconds(e.split(".")[1]),n}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-general-details"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[3,"ngSwitch"],[1,"col-12","md:col-3","row"],["class","col-12 md:col-3 row",4,"ngIf","ngIfElse"],["elseBlock",""],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"numbers-style"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,gG,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.data))},dependencies:[Jn,gt,wl,ch,x0],styles:[".row[_ngcontent-%COMP%]{border:solid 1px #ffffff;background-color:#f5f5f6;padding:1rem}.row[_ngcontent-%COMP%]:nth-child(4n+1){background:#eaebeb!important}.row[_ngcontent-%COMP%]:nth-child(4n+3){background:#eaebeb!important}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}"]})}return t})();class ek extends re{constructor(i=1/0,e=1/0,n=sC){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:r}=this;e||(n.push(i),!o&&n.push(s.now()+r)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,s=o.slice();for(let r=0;ra=>t[r](i,a,e)):function CG(t){return L(t.addListener)&&L(t.removeListener)}(t)?mG.map(tk(t,i)):function vG(t){return L(t.on)&&L(t.off)}(t)?IG.map(tk(t,i)):[];if(!o&&dg(t))return si(r=>aC(r,i,e))(Ni(t));if(!o)throw new TypeError("Invalid event target");return new ce(r=>{const a=(...l)=>r.next(1s(a)})}function tk(t,i){return e=>n=>t[e](i,n)}function nk(t,i=GD){return Me((e,n)=>{let o=null,s=null,r=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=s;s=null,n.next(c)}};function l(){const c=r+t,u=i.now();if(u{s=c,r=i.now(),o||(o=i.schedule(l,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{s=o=null}))})}const yG=["*"];var An=function(t){return t.AnnotationChart="AnnotationChart",t.AreaChart="AreaChart",t.Bar="Bar",t.BarChart="BarChart",t.BubbleChart="BubbleChart",t.Calendar="Calendar",t.CandlestickChart="CandlestickChart",t.ColumnChart="ColumnChart",t.ComboChart="ComboChart",t.PieChart="PieChart",t.Gantt="Gantt",t.Gauge="Gauge",t.GeoChart="GeoChart",t.Histogram="Histogram",t.Line="Line",t.LineChart="LineChart",t.Map="Map",t.OrgChart="OrgChart",t.Sankey="Sankey",t.Scatter="Scatter",t.ScatterChart="ScatterChart",t.SteppedAreaChart="SteppedAreaChart",t.Table="Table",t.Timeline="Timeline",t.TreeMap="TreeMap",t.WordTree="wordtree",t}(An||{});const xG={[An.AnnotationChart]:"annotationchart",[An.AreaChart]:"corechart",[An.Bar]:"bar",[An.BarChart]:"corechart",[An.BubbleChart]:"corechart",[An.Calendar]:"calendar",[An.CandlestickChart]:"corechart",[An.ColumnChart]:"corechart",[An.ComboChart]:"corechart",[An.PieChart]:"corechart",[An.Gantt]:"gantt",[An.Gauge]:"gauge",[An.GeoChart]:"geochart",[An.Histogram]:"corechart",[An.Line]:"line",[An.LineChart]:"corechart",[An.Map]:"map",[An.OrgChart]:"orgchart",[An.Sankey]:"sankey",[An.Scatter]:"scatter",[An.ScatterChart]:"corechart",[An.SteppedAreaChart]:"corechart",[An.Table]:"table",[An.Timeline]:"timeline",[An.TreeMap]:"treemap",[An.WordTree]:"wordtree"},ok=new Ye("GOOGLE_CHARTS_CONFIG"),wG=new Ye("GOOGLE_CHARTS_LAZY_CONFIG",{providedIn:"root",factory:()=>ht({version:"current",safeMode:!1,...et(ok,zt.Optional)||{}})});let pf=(()=>{class t{constructor(e,n,o){this.zone=e,this.localeId=n,this.config$=o,this.scriptSource="https://www.gstatic.com/charts/loader.js",this.scriptLoadSubject=new re}isGoogleChartsAvailable(){return!(typeof google>"u"||typeof google.charts>"u")}loadChartPackages(...e){return this.loadGoogleCharts().pipe(si(()=>this.config$),at(n=>({version:"current",safeMode:!1,...n||{}})),Ao(n=>new ce(o=>{google.charts.load(n.version,{packages:e,language:this.localeId,mapsApiKey:n.mapsApiKey,safeMode:n.safeMode}),google.charts.setOnLoadCallback(()=>{this.zone.run(()=>{o.next(),o.complete()})})})))}loadGoogleCharts(){if(this.isGoogleChartsAvailable())return ht(void 0);if(!this.isLoadingGoogleCharts()){const e=this.createGoogleChartsScript();e.onload=()=>{this.zone.run(()=>{this.scriptLoadSubject.next(),this.scriptLoadSubject.complete()})},e.onerror=()=>{this.zone.run(()=>{console.error("Failed to load the google charts script!"),this.scriptLoadSubject.error(new Error("Failed to load the google charts script!"))})}}return this.scriptLoadSubject.asObservable()}isLoadingGoogleCharts(){return null!=this.getGoogleChartsScript()}getGoogleChartsScript(){return Array.from(document.getElementsByTagName("script")).find(n=>n.src===this.scriptSource)}createGoogleChartsScript(){const e=document.createElement("script");return e.type="text/javascript",e.src=this.scriptSource,e.async=!0,document.getElementsByTagName("head")[0].appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(Ze(Tt),Ze(us),Ze(wG))},t.\u0275prov=nt({token:t,factory:t.\u0275fac}),t})(),sk=(()=>{class t{create(e,n,o){if(null==e)return;let s=!0;null!=n&&(s=!1);const r=google.visualization.arrayToDataTable(this.getDataAsTable(e,n),s);return o&&this.applyFormatters(r,o),r}getDataAsTable(e,n){return n?[n,...e]:e}applyFormatters(e,n){for(const o of n)o.formatter.format(e,o.colIndex)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),EG=(()=>{class t{constructor(e){this.loaderService=e,this.error=new ge,this.ready=new ge,this.stateChange=new ge,this.id=function TG(){return"_"+Math.random().toString(36).substr(2,9)}(),this.wrapperReadySubject=new ek(1)}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get controlWrapper(){if(!this._controlWrapper)throw new Error("Cannot access the control wrapper before it being initialized.");return this._controlWrapper}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.createControlWrapper()})}ngOnChanges(e){this._controlWrapper&&(e.type&&this._controlWrapper.setControlType(this.type),e.options&&this._controlWrapper.setOptions(this.options||{}),e.state&&this._controlWrapper.setState(this.state||{}))}createControlWrapper(){this._controlWrapper=new google.visualization.ControlWrapper({containerId:this.id,controlType:this.type,state:this.state,options:this.options}),this.addEventListeners(),this.wrapperReadySubject.next(this._controlWrapper)}addEventListeners(){google.visualization.events.removeAllListeners(this._controlWrapper),google.visualization.events.addListener(this._controlWrapper,"ready",e=>this.ready.emit(e)),google.visualization.events.addListener(this._controlWrapper,"error",e=>this.error.emit(e)),google.visualization.events.addListener(this._controlWrapper,"statechange",e=>this.stateChange.emit(e))}}return t.\u0275fac=function(e){return new(e||t)(V(pf))},t.\u0275cmp=Oe({type:t,selectors:[["control-wrapper"]],hostAttrs:[1,"control-wrapper"],hostVars:1,hostBindings:function(e,n){2&e&&x_("id",n.id)},inputs:{for:"for",type:"type",options:"options",state:"state"},outputs:{error:"error",ready:"ready",stateChange:"stateChange"},exportAs:["controlWrapper"],features:[Hn],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),t})(),DG=(()=>{class t{constructor(e,n,o){this.element=e,this.loaderService=n,this.dataTableService=o,this.ready=new ge,this.error=new ge,this.initialized=!1}ngOnInit(){this.loaderService.loadChartPackages("controls").subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.createDashboard(),this.initialized=!0})}ngOnChanges(e){this.initialized&&(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.dashboard.draw(this.dataTable))}createDashboard(){const e=this.controlWrappers.map(o=>o.wrapperReady$),n=this.controlWrappers.map(o=>o.for).map(o=>Array.isArray(o)?Cu(o.map(s=>s.wrapperReady$)):o.wrapperReady$);Cu([...e,...n]).subscribe(()=>{this.dashboard=new google.visualization.Dashboard(this.element.nativeElement),this.initializeBindings(),this.registerEvents(),this.dashboard.draw(this.dataTable)})}registerEvents(){google.visualization.events.removeAllListeners(this.dashboard);const e=(n,o,s)=>{google.visualization.events.addListener(n,o,s)};e(this.dashboard,"ready",()=>this.ready.emit()),e(this.dashboard,"error",n=>this.error.emit(n))}initializeBindings(){this.controlWrappers.forEach(e=>{if(Array.isArray(e.for)){const n=e.for.map(o=>o.chartWrapper);this.dashboard.bind(e.controlWrapper,n)}else this.dashboard.bind(e.controlWrapper,e.for.chartWrapper)})}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk))},t.\u0275cmp=Oe({type:t,selectors:[["dashboard"]],contentQueries:function(e,n,o){if(1&e&&Gt(o,EG,4),2&e){let s;Se(s=Ee())&&(n.controlWrappers=s)}},hostAttrs:[1,"dashboard"],inputs:{data:"data",columns:"columns",formatters:"formatters"},outputs:{ready:"ready",error:"error"},exportAs:["dashboard"],features:[Hn],ngContentSelectors:yG,decls:1,vars:0,template:function(e,n){1&e&&(Ti(),Kn(0))},encapsulation:2,changeDetection:0}),t})(),rk=(()=>{class t{constructor(e,n,o,s){this.element=e,this.scriptLoaderService=n,this.dataTableService=o,this.dashboard=s,this.options={},this.dynamicResize=!1,this.ready=new ge,this.error=new ge,this.select=new ge,this.mouseover=new ge,this.mouseleave=new ge,this.wrapperReadySubject=new ek(1),this.initialized=!1,this.eventListeners=new Map}get chart(){return this.chartWrapper.getChart()}get wrapperReady$(){return this.wrapperReadySubject.asObservable()}get chartWrapper(){if(!this.wrapper)throw new Error("Trying to access the chart wrapper before it was fully initialized");return this.wrapper}set chartWrapper(e){this.wrapper=e,this.drawChart()}ngOnInit(){this.scriptLoaderService.loadChartPackages(function AG(t){return xG[t]}(this.type)).subscribe(()=>{this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper=new google.visualization.ChartWrapper({container:this.element.nativeElement,chartType:this.type,dataTable:this.dataTable,options:this.mergeOptions()}),this.registerChartEvents(),this.wrapperReadySubject.next(this.wrapper),this.initialized=!0,this.drawChart()})}ngOnChanges(e){if(e.dynamicResize&&this.updateResizeListener(),this.initialized){let n=!1;(e.data||e.columns||e.formatters)&&(this.dataTable=this.dataTableService.create(this.data,this.columns,this.formatters),this.wrapper.setDataTable(this.dataTable),n=!0),e.type&&(this.wrapper.setChartType(this.type),n=!0),(e.options||e.width||e.height||e.title)&&(this.wrapper.setOptions(this.mergeOptions()),n=!0),n&&this.drawChart()}}ngOnDestroy(){this.unsubscribeToResizeIfSubscribed()}addEventListener(e,n){const o=this.registerChartEvent(this.chart,e,n);return this.eventListeners.set(o,{eventName:e,callback:n,handle:o}),o}removeEventListener(e){const n=this.eventListeners.get(e);n&&(google.visualization.events.removeListener(n.handle),this.eventListeners.delete(e))}updateResizeListener(){this.unsubscribeToResizeIfSubscribed(),this.dynamicResize&&(this.resizeSubscription=aC(window,"resize",{passive:!0}).pipe(nk(100)).subscribe(()=>{this.initialized&&this.drawChart()}))}unsubscribeToResizeIfSubscribed(){null!=this.resizeSubscription&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=void 0)}mergeOptions(){return{title:this.title,width:this.width,height:this.height,...this.options}}registerChartEvents(){google.visualization.events.removeAllListeners(this.wrapper),this.registerChartEvent(this.wrapper,"ready",()=>{google.visualization.events.removeAllListeners(this.chart),this.registerChartEvent(this.chart,"onmouseover",e=>this.mouseover.emit(e)),this.registerChartEvent(this.chart,"onmouseout",e=>this.mouseleave.emit(e)),this.registerChartEvent(this.chart,"select",()=>{const e=this.chart.getSelection();this.select.emit({selection:e})}),this.eventListeners.forEach(e=>e.handle=this.registerChartEvent(this.chart,e.eventName,e.callback)),this.ready.emit({chart:this.chart})}),this.registerChartEvent(this.wrapper,"error",e=>this.error.emit(e))}registerChartEvent(e,n,o){return google.visualization.events.addListener(e,n,o)}drawChart(){null==this.dashboard&&this.wrapper.draw()}}return t.\u0275fac=function(e){return new(e||t)(V(bt),V(pf),V(sk),V(DG,8))},t.\u0275cmp=Oe({type:t,selectors:[["google-chart"]],hostAttrs:[1,"google-chart"],inputs:{type:"type",data:"data",columns:"columns",title:"title",width:"width",height:"height",options:"options",formatters:"formatters",dynamicResize:"dynamicResize"},outputs:{ready:"ready",error:"error",select:"select",mouseover:"mouseover",mouseleave:"mouseleave"},exportAs:["googleChart"],features:[Hn],decls:0,vars:0,template:function(e,n){},styles:["[_nghost-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;display:block}"],changeDetection:0}),t})(),kG=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:ok,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=qe({type:t}),t.\u0275inj=Ge({providers:[pf]}),t})(),MG=(()=>{class t{constructor(e){this.communicatorService=e}ngOnInit(){this.InitGraph(),this.communicatorService.onactionStatLoad.subscribe(e=>{"Completed"==e&&"Actions"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Activities"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Runners"==this.title&&this.InitGraph()}),this.communicatorService.onactivityStatLoad.subscribe(e=>{"Completed"==e&&"Business Flows"==this.title&&this.InitGraph()})}InitGraph(){this.type="PieChart",this.title=this.chartTitle,this.data=this.executionData,this.columnNames=["Status","Percentage"],this.options={chartArea:{left:0,height:220,width:400},height:400,width:400,legend:{position:"labeled"},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"],is3D:!1,pieHole:.7,pieSliceText:"none",titleTextStyle:{fontFamily:"Arial",fontColor:"#000000",fontSize:12,bold:!0}},this.data=this.executionData}delay(e){return new Promise(n=>setTimeout(n,e))}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-chart"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function OG(t,i){if(1&t&&(x(0,"div")(1,"div",1),le(2,"app-google-chart",2)(3,"app-google-chart",2)(4,"app-google-chart",2)(5,"app-google-chart",2),A()()),2&t){const e=f();h(2),d("executionData",e.runnerData)("chartTitle",e.GingerRunnerTitle),h(1),d("executionData",e.businessFlowsData)("chartTitle",e.BusinessFlowsTitle),h(1),d("executionData",e.activitiesData)("chartTitle",e.ActivitiesTitle),h(1),d("executionData",e.actionsData)("chartTitle",e.ActionsTitle)}}let LG=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this._userDataManagerService=o,this.communicatorService=s,this.isStatisticsVisibleEvent=new ge,this.isStatisticsVisible=!1,this.lables=[Lt.Passed,Lt.Failed,Lt.Blocked,Lt.Stopped,Lt.Pending],this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.LoadActivityStat=!0,this.LoadActionStat=!0}ngOnInit(){}initComponents(){this.runnerData=[],this.businessFlowsData=[],this.activitiesData=[],this.actionsData=[],this.RunsetJson=this._userDataManagerService.getItemCache(),this.LoadActivityStat=null==this._userDataManagerService.getByKey("LoadActivityStat")||this._userDataManagerService.getByKey("LoadActivityStat"),this.LoadActionStat=null==this._userDataManagerService.getByKey("LoadActionStat")||this._userDataManagerService.getByKey("LoadActionStat"),this.activitiesData=this._userDataManagerService.getByKey("ActivitiesStatistics"),this.actionsData=this._userDataManagerService.getByKey("ActionsStatistics"),this.executionDataGingerRunner=this.calculatedDataService.getRunnersExecutionStatusArray(),this.GingerRunnerTitle="Runners",this.calculatedDataService.populateChartsData(this.runnerData,this.executionDataGingerRunner),this.communicatorService.loadrunnerStat("Completed"),this.executionDataBusinessFlows=this.calculatedDataService.getAllBusinessFlowsExecutionStatusArray(),this.BusinessFlowsTitle="Business Flows",this.calculatedDataService.populateChartsData(this.businessFlowsData,this.executionDataBusinessFlows),this.communicatorService.loadbfStat("Completed"),this.ActivitiesTitle="Activities",this.ActionsTitle="Actions",(null==this.activitiesData||null==this.activitiesData||this.activitiesData.length<0||this.LoadActivityStat)&&(this.activitiesData=[],this.executionDataActivities=this.calculatedDataService.getActivitiesExecutionStatusArray(),null!=this.executionDataActivities?this.calculatedDataService.populateChartsData(this.activitiesData,this.executionDataActivities):this.restServiceObj.GetAllActivitiesStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.activitiesData,o),this._userDataManagerService.setItem("ActivitiesStatistics",this.activitiesData),this.communicatorService.loadactivityStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActivityStat","false")}})),(null==this.actionsData||null==this.actionsData||this.actionsData.length<0||this.LoadActivityStat)&&(this.actionsData=[],this.executionDataActions=this.calculatedDataService.getActionsExecutionStatusArray(),null!=this.executionDataActions?this.calculatedDataService.populateChartsData(this.actionsData,this.executionDataActions):this.restServiceObj.GetAllActionsStatus(this.RunsetJson.ExecutionId).subscribe(e=>{if(null!=e&&e.isSuccsess){let n=JSON.parse(e.response),o=[0,0,0,0,0,0,0];for(let s of n)this.calculatedDataService.populateArrayByRunStatus(o,s);this.calculatedDataService.populateChartsData(this.actionsData,o),this._userDataManagerService.setItem("ActionsStatistics",this.actionsData),this.communicatorService.loadactionStat("Completed"),this.RunsetJson.RunStatus!=Lt.InProgress&&this._userDataManagerService.setItem("LoadActionStat","false")}})),null!=this.runnerData&&this.runnerData.length>0||this.businessFlowsData&&this.businessFlowsData.length>0||this.activitiesData&&this.activitiesData.length>0||this.actionsData&&this.actionsData.length>0?(this.isStatisticsVisibleEvent.emit(!0),this.isStatisticsVisible=!0):(this.isStatisticsVisibleEvent.emit(!1),this.isStatisticsVisible=!1)}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(Co),V(Ws))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-execution-statistic"]],outputs:{isStatisticsVisibleEvent:"isStatisticsVisibleEvent"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"flex-container"],[3,"executionData","chartTitle"]],template:function(n,o){1&n&&g(0,OG,6,8,"div",0),2&n&&d("ngIf",o.isStatisticsVisible)},dependencies:[gt,MG],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;flex-wrap:wrap}"]})}return t})(),_s=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),oo=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){ei(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let n=this.getInk();if(!n||"none"===this.document.defaultView?.getComputedStyle(n,null).display)return;if(j.removeClass(n,"p-ink-active"),!j.getHeight(n)&&!j.getWidth(n)){let a=Math.max(j.getOuterWidth(this.el.nativeElement),j.getOuterHeight(this.el.nativeElement));n.style.height=a+"px",n.style.width=a+"px"}let o=j.getOffset(this.el.nativeElement),s=e.pageX-o.left+this.document.body.scrollTop-j.getWidth(n)/2,r=e.pageY-o.top+this.document.body.scrollLeft-j.getHeight(n)/2;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px"),j.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&j.removeClass(a,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let hf=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(kr);spinnerIcon='\n \n \n \n \n \n \n \n \n ';constructor(e,n){this.el=e,this.document=n}ngAfterViewInit(){j.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[kr.button,kr.component];return this.icon&&!this.label&&be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly),this.loading&&(e.push(kr.disabled,kr.loading),!this.icon&&this.label&&e.push(kr.labelOnly),this.icon&&!this.label&&!be.isEmpty(this.htmlElement.textContent)&&e.push(kr.iconOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(this.label){let e=this.document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=this.document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let n=this.label?"p-button-icon-"+this.iconPos:null;n&&j.addClass(e,n);let o=this.getIconClass();o&&j.addMultipleClasses(e,o),!this.loadingIcon&&this.loading&&(e.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=j.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=j.findSingle(this.htmlElement,".p-button-icon"),n=j.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?e.className=this.iconPos?"p-button-icon "+(n?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(n){return new(n||t)(V(bt),V(Wt))};static \u0275dir=ut({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}})}return t})(),Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,_s,Qe]})}return t})(),Mr=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ff=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mn=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ak=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const $G=["container"],KG=["inputfield"],GG=["contentWrapper"];function qG(t,i){if(1&t){const e=De();x(0,"TimesIcon",10),me("click",function(){return G(e),q(f(3).clear())}),A()}2&t&&d("styleClass","p-calendar-clear-icon")}function WG(t,i){}function QG(t,i){1&t&&g(0,WG,0,0,"ng-template")}function ZG(t,i){if(1&t){const e=De();x(0,"span",11),me("click",function(){return G(e),q(f(3).clear())}),g(1,QG,1,0,null,12),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function YG(t,i){if(1&t&&(we(0),g(1,qG,1,1,"TimesIcon",8),g(2,ZG,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function XG(t,i){1&t&&le(0,"span",15),2&t&&d("ngClass",f(3).icon)}function JG(t,i){1&t&&le(0,"CalendarIcon")}function eq(t,i){}function tq(t,i){1&t&&g(0,eq,0,0,"ng-template")}function nq(t,i){if(1&t&&(we(0),g(1,JG,1,0,"CalendarIcon",6),g(2,tq,1,0,null,12),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.triggerIconTemplate),h(1),d("ngTemplateOutlet",e.triggerIconTemplate)}}function iq(t,i){if(1&t){const e=De();x(0,"button",13),me("click",function(o){G(e),f();const s=Bt(1);return q(f().onButtonClick(o,s))}),g(1,XG,1,1,"span",14),g(2,nq,3,2,"ng-container",6),A()}if(2&t){const e=f(2);d("disabled",e.disabled),K("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId),h(1),d("ngIf",e.icon),h(1),d("ngIf",!e.icon)}}function oq(t,i){if(1&t){const e=De();x(0,"input",4,5),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("click",function(){return G(e),q(f().onInputClick())})("blur",function(o){return G(e),q(f().onInputBlur(o))})("input",function(o){return G(e),q(f().onUserInput(o))}),A(),g(2,YG,3,2,"ng-container",6),g(3,iq,3,6,"button",7)}if(2&t){const e=f();Ve(e.inputStyleClass),d("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),K("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.panelId)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),h(2),d("ngIf",e.showClear&&!e.disabled&&null!=e.value),h(1),d("ngIf",e.showIcon)}}function sq(t,i){1&t&&ze(0)}function rq(t,i){1&t&&le(0,"ChevronLeftIcon",37),2&t&&d("styleClass","p-datepicker-prev-icon")}function aq(t,i){}function lq(t,i){1&t&&g(0,aq,0,0,"ng-template")}function cq(t,i){if(1&t&&(x(0,"span",38),g(1,lq,1,0,null,12),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.previousIconTemplate)}}function uq(t,i){if(1&t){const e=De();x(0,"button",35),me("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(4).onPrevButtonClick(o))}),g(1,rq,1,1,"ChevronLeftIcon",32),g(2,cq,2,1,"span",36),A()}if(2&t){const e=f(4);K("aria-label",e.prevIconAriaLabel),h(1),d("ngIf",!e.previousIconTemplate),h(1),d("ngIf",e.previousIconTemplate)}}function dq(t,i){if(1&t){const e=De();x(0,"button",39),me("click",function(o){return G(e),q(f(4).switchToMonthView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseMonth")),h(1),Pt(" ",n.getMonthName(e.month)," ")}}function pq(t,i){if(1&t){const e=De();x(0,"button",40),me("click",function(o){return G(e),q(f(4).switchToYearView(o))})("keydown",function(o){return G(e),q(f(4).onContainerButtonKeydown(o))}),Le(1),A()}if(2&t){const e=f().$implicit,n=f(3);d("disabled",n.switchViewButtonDisabled()),K("aria-label",n.getTranslation("chooseYear")),h(1),Pt(" ",n.getYear(e)," ")}}function hq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(5);h(1),Fp("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function fq(t,i){1&t&&ze(0)}const lC=function(t){return{$implicit:t}};function gq(t,i){if(1&t&&(x(0,"span",41),g(1,hq,2,2,"ng-container",6),g(2,fq,1,0,"ng-container",42),A()),2&t){const e=f(4);h(1),d("ngIf",!e.decadeTemplate),h(1),d("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",He(3,lC,e.yearPickerValues))}}function mq(t,i){1&t&&le(0,"ChevronRightIcon",37),2&t&&d("styleClass","p-datepicker-next-icon")}function _q(t,i){}function Iq(t,i){1&t&&g(0,_q,0,0,"ng-template")}function Cq(t,i){if(1&t&&(x(0,"span",43),g(1,Iq,1,0,null,12),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.nextIconTemplate)}}function vq(t,i){if(1&t&&(x(0,"th",49)(1,"span"),Le(2),A()()),2&t){const e=f(5);h(2),dt(e.getTranslation("weekHeader"))}}function bq(t,i){if(1&t&&(x(0,"th",50)(1,"span"),Le(2),A()()),2&t){const e=i.$implicit;h(2),dt(e)}}function yq(t,i){if(1&t&&(x(0,"td",53)(1,"span",54),Le(2),A()()),2&t){const e=f().index,n=f(2).$implicit;h(2),Pt(" ",n.weekNumbers[e]," ")}}function xq(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2).$implicit;h(1),dt(e.day)}}function Aq(t,i){1&t&&ze(0)}function wq(t,i){if(1&t&&(we(0),g(1,Aq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Tq(t,i){1&t&&ze(0)}function Sq(t,i){if(1&t&&(we(0),g(1,Tq,1,0,"ng-container",42),Te()),2&t){const e=f(2).$implicit,n=f(6);h(1),d("ngTemplateOutlet",n.disabledDateTemplate)("ngTemplateOutletContext",He(2,lC,e))}}function Eq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f(2).$implicit;h(1),Pt(" ",e.day," ")}}const cC=function(t,i){return{"p-highlight":t,"p-disabled":i}};function Dq(t,i){if(1&t){const e=De();we(0),x(1,"span",55),me("click",function(o){G(e);const s=f().$implicit;return q(f(6).onDateSelect(o,s))})("keydown",function(o){G(e);const s=f().$implicit,r=f(3).index;return q(f(3).onDateCellKeydown(o,s,r))}),g(2,xq,2,1,"ng-container",6),g(3,wq,2,4,"ng-container",6),g(4,Sq,2,4,"ng-container",6),A(),g(5,Eq,2,1,"div",56),Te()}if(2&t){const e=f().$implicit,n=f(6);h(1),d("ngClass",mt(5,cC,n.isSelected(e)&&e.selectable,!e.selectable)),h(1),d("ngIf",!n.dateTemplate&&(e.selectable||!n.disabledDateTemplate)),h(1),d("ngIf",e.selectable||!n.disabledDateTemplate),h(1),d("ngIf",!e.selectable),h(1),d("ngIf",n.isSelected(e))}}const kq=function(t,i){return{"p-datepicker-other-month":t,"p-datepicker-today":i}};function Mq(t,i){if(1&t&&(x(0,"td",15),g(1,Dq,6,8,"ng-container",6),A()),2&t){const e=i.$implicit,n=f(6);d("ngClass",mt(3,kq,e.otherMonth,e.today)),K("aria-label",e.day),h(1),d("ngIf",!e.otherMonth||n.showOtherMonths)}}function Oq(t,i){if(1&t&&(x(0,"tr"),g(1,yq,3,1,"td",51),g(2,Mq,2,6,"td",52),A()),2&t){const e=i.$implicit,n=f(5);h(1),d("ngIf",n.showWeek),h(1),d("ngForOf",e)}}function Lq(t,i){if(1&t&&(x(0,"div",44)(1,"table",45)(2,"thead")(3,"tr"),g(4,vq,3,1,"th",46),g(5,bq,3,1,"th",47),A()(),x(6,"tbody"),g(7,Oq,3,2,"tr",48),A()()()),2&t){const e=f().$implicit,n=f(3);h(4),d("ngIf",n.showWeek),h(1),d("ngForOf",n.weekDays),h(2),d("ngForOf",e.dates)}}function Pq(t,i){if(1&t){const e=De();x(0,"div",24)(1,"div",25),g(2,uq,3,3,"button",26),x(3,"div",27),g(4,dq,2,3,"button",28),g(5,pq,2,3,"button",29),g(6,gq,3,5,"span",30),A(),x(7,"button",31),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).onNextButtonClick(o))}),g(8,mq,1,1,"ChevronRightIcon",32),g(9,Cq,2,1,"span",33),A()(),g(10,Lq,8,3,"div",34),A()}if(2&t){const e=i.index,n=f(3);h(2),d("ngIf",0===e),h(2),d("ngIf","date"===n.currentView),h(1),d("ngIf","year"!==n.currentView),h(1),d("ngIf","year"===n.currentView),h(1),fo("display",1===n.numberOfMonths||e===n.numberOfMonths-1?"inline-flex":"none"),K("aria-label",n.nextIconAriaLabel),h(1),d("ngIf",!n.nextIconTemplate),h(1),d("ngIf",n.nextIconTemplate),h(1),d("ngIf","date"===n.currentView)}}function Fq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Rq(t,i){if(1&t){const e=De();x(0,"span",60),me("click",function(o){const r=G(e).index;return q(f(4).onMonthSelect(o,r))})("keydown",function(o){const r=G(e).index;return q(f(4).onMonthCellKeydown(o,r))}),Le(1),g(2,Fq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(4);d("ngClass",mt(3,cC,o.isMonthSelected(n),o.isMonthDisabled(n))),h(1),Pt(" ",e," "),h(1),d("ngIf",o.isMonthSelected(n))}}function Nq(t,i){if(1&t&&(x(0,"div",58),g(1,Rq,3,6,"span",59),A()),2&t){const e=f(3);h(1),d("ngForOf",e.monthPickerValues())}}function Vq(t,i){if(1&t&&(x(0,"div",57),Le(1),A()),2&t){const e=f().$implicit;h(1),Pt(" ",e," ")}}function Bq(t,i){if(1&t){const e=De();x(0,"span",63),me("click",function(o){const r=G(e).$implicit;return q(f(4).onYearSelect(o,r))})("keydown",function(o){const r=G(e).$implicit;return q(f(4).onYearCellKeydown(o,r))}),Le(1),g(2,Vq,2,1,"div",56),A()}if(2&t){const e=i.$implicit,n=f(4);d("ngClass",mt(3,cC,n.isYearSelected(e),n.isYearDisabled(e))),h(1),Pt(" ",e," "),h(1),d("ngIf",n.isYearSelected(e))}}function Hq(t,i){if(1&t&&(x(0,"div",61),g(1,Bq,3,6,"span",62),A()),2&t){const e=f(3);h(1),d("ngForOf",e.yearPickerValues())}}function zq(t,i){if(1&t&&(we(0),x(1,"div",20),g(2,Pq,11,10,"div",21),A(),g(3,Nq,2,1,"div",22),g(4,Hq,2,1,"div",23),Te()),2&t){const e=f(2);h(2),d("ngForOf",e.months),h(1),d("ngIf","month"===e.currentView),h(1),d("ngIf","year"===e.currentView)}}function jq(t,i){1&t&&le(0,"ChevronUpIcon")}function Uq(t,i){}function $q(t,i){1&t&&g(0,Uq,0,0,"ng-template")}function Kq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Gq(t,i){1&t&&le(0,"ChevronDownIcon")}function qq(t,i){}function Wq(t,i){1&t&&g(0,qq,0,0,"ng-template")}function Qq(t,i){1&t&&le(0,"ChevronUpIcon")}function Zq(t,i){}function Yq(t,i){1&t&&g(0,Zq,0,0,"ng-template")}function Xq(t,i){1&t&&(we(0),Le(1,"0"),Te())}function Jq(t,i){1&t&&le(0,"ChevronDownIcon")}function eW(t,i){}function tW(t,i){1&t&&g(0,eW,0,0,"ng-template")}function nW(t,i){if(1&t&&(x(0,"div",67)(1,"span"),Le(2),A()()),2&t){const e=f(3);h(2),dt(e.timeSeparator)}}function iW(t,i){1&t&&le(0,"ChevronUpIcon")}function oW(t,i){}function sW(t,i){1&t&&g(0,oW,0,0,"ng-template")}function rW(t,i){1&t&&(we(0),Le(1,"0"),Te())}function aW(t,i){1&t&&le(0,"ChevronDownIcon")}function lW(t,i){}function cW(t,i){1&t&&g(0,lW,0,0,"ng-template")}function uW(t,i){if(1&t){const e=De();x(0,"div",72)(1,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).incrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).incrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(2,iW,1,0,"ChevronUpIcon",6),g(3,sW,1,0,null,12),A(),x(4,"span"),g(5,rW,2,0,"ng-container",6),Le(6),A(),x(7,"button",66),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(3).decrementSecond(o))})("keydown.space",function(o){return G(e),q(f(3).decrementSecond(o))})("mousedown",function(o){return G(e),q(f(3).onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(3).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(3).onTimePickerElementMouseLeave())}),g(8,aW,1,0,"ChevronDownIcon",6),g(9,cW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("nextSecond")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentSecond<10),h(1),dt(e.currentSecond),h(1),K("aria-label",e.getTranslation("prevSecond")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function dW(t,i){1&t&&le(0,"ChevronUpIcon")}function pW(t,i){}function hW(t,i){1&t&&g(0,pW,0,0,"ng-template")}function fW(t,i){1&t&&le(0,"ChevronDownIcon")}function gW(t,i){}function mW(t,i){1&t&&g(0,gW,0,0,"ng-template")}function _W(t,i){if(1&t){const e=De();x(0,"div",73)(1,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(2,dW,1,0,"ChevronUpIcon",6),g(3,hW,1,0,null,12),A(),x(4,"span"),Le(5),A(),x(6,"button",74),me("keydown",function(o){return G(e),q(f(3).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(3).toggleAMPM(o))})("keydown.enter",function(o){return G(e),q(f(3).toggleAMPM(o))}),g(7,fW,1,0,"ChevronDownIcon",6),g(8,mW,1,0,null,12),A()()}if(2&t){const e=f(3);h(1),K("aria-label",e.getTranslation("am")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),dt(e.pm?"PM":"AM"),h(1),K("aria-label",e.getTranslation("pm")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate)}}function IW(t,i){if(1&t){const e=De();x(0,"div",64)(1,"div",65)(2,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).incrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(3,jq,1,0,"ChevronUpIcon",6),g(4,$q,1,0,null,12),A(),x(5,"span"),g(6,Kq,2,0,"ng-container",6),Le(7),A(),x(8,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementHour(o))})("keydown.space",function(o){return G(e),q(f(2).decrementHour(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(9,Gq,1,0,"ChevronDownIcon",6),g(10,Wq,1,0,null,12),A()(),x(11,"div",67)(12,"span"),Le(13),A()(),x(14,"div",68)(15,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).incrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).incrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(16,Qq,1,0,"ChevronUpIcon",6),g(17,Yq,1,0,null,12),A(),x(18,"span"),g(19,Xq,2,0,"ng-container",6),Le(20),A(),x(21,"button",66),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("keydown.enter",function(o){return G(e),q(f(2).decrementMinute(o))})("keydown.space",function(o){return G(e),q(f(2).decrementMinute(o))})("mousedown",function(o){return G(e),q(f(2).onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.enter",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("keyup.space",function(o){return G(e),q(f(2).onTimePickerElementMouseUp(o))})("mouseleave",function(){return G(e),q(f(2).onTimePickerElementMouseLeave())}),g(22,Jq,1,0,"ChevronDownIcon",6),g(23,tW,1,0,null,12),A()(),g(24,nW,3,1,"div",69),g(25,uW,10,8,"div",70),g(26,_W,9,7,"div",71),A()}if(2&t){const e=f(2);h(2),K("aria-label",e.getTranslation("nextHour")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentHour<10),h(1),dt(e.currentHour),h(1),K("aria-label",e.getTranslation("prevHour")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(3),dt(e.timeSeparator),h(2),K("aria-label",e.getTranslation("nextMinute")),h(1),d("ngIf",!e.incrementIconTemplate),h(1),d("ngTemplateOutlet",e.incrementIconTemplate),h(2),d("ngIf",e.currentMinute<10),h(1),dt(e.currentMinute),h(1),K("aria-label",e.getTranslation("prevMinute")),h(1),d("ngIf",!e.decrementIconTemplate),h(1),d("ngTemplateOutlet",e.decrementIconTemplate),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf",e.showSeconds),h(1),d("ngIf","12"==e.hourFormat)}}const lk=function(t){return[t]};function CW(t,i){if(1&t){const e=De();x(0,"div",75)(1,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onTodayButtonClick(o))}),A(),x(2,"button",76),me("keydown",function(o){return G(e),q(f(2).onContainerButtonKeydown(o))})("click",function(o){return G(e),q(f(2).onClearButtonClick(o))}),A()()}if(2&t){const e=f(2);h(1),d("label",e.getTranslation("today"))("ngClass",He(4,lk,e.todayButtonStyleClass)),h(1),d("label",e.getTranslation("clear"))("ngClass",He(6,lk,e.clearButtonStyleClass))}}function vW(t,i){1&t&&ze(0)}const bW=function(t,i,e,n,o,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":o,"p-datepicker-touch-ui":s}},ck=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},yW=function(t){return{value:"visibleTouchUI",params:t}},xW=function(t){return{value:"visible",params:t}};function AW(t,i){if(1&t){const e=De();x(0,"div",16,17),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationDone(o))})("click",function(o){return G(e),q(f().onOverlayClick(o))}),Kn(2),g(3,sq,1,0,"ng-container",12),g(4,zq,5,3,"ng-container",6),g(5,IW,27,20,"div",18),g(6,CW,3,8,"div",19),Kn(7,1),g(8,vW,1,0,"ng-container",12),A()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngStyle",e.panelStyle)("ngClass",ea(14,bW,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?He(24,yW,mt(21,ck,e.showTransitionOptions,e.hideTransitionOptions)):He(29,xW,mt(26,ck,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),h(3),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",!e.timeOnly),h(1),d("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),h(1),d("ngIf",e.showButtonBar),h(2),d("ngTemplateOutlet",e.footerTemplate)}}const wW=[[["p-header"]],[["p-footer"]]],TW=function(t,i,e,n){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":i,"p-calendar-disabled":e,"p-focus":n}},SW=["p-header","p-footer"],EW={provide:un,useExisting:ft(()=>DW),multi:!0};let DW=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const n=e.split(":"),o=parseInt(n[0]),s=parseInt(n[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new ge;onBlur=new ge;onClose=new ge;onSelect=new ge;onClear=new ge;onInput=new ge;onTodayClick=new ge;onClearClick=new ge;onMonthChange=new ge;onYearChange=new ge;onClickOutside=new ge;onShow=new ge;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.zone=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=$t(),this.panelId=this.attributeSelector+"_panel";const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=j.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let o=e;o<=n;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(di.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(n[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(n+o);return e}createMonths(e,n){this.months=this.months=[];for(let o=0;o11&&(s=s%11-1,r=n+1),this.months.push(this.createMonth(s,r))}}getWeekNumber(e){let n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));let o=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((o-n.getTime())/864e5)/7)+1}createMonth(e,n){let o=[],s=this.getFirstDayOfMonthIndex(e,n),r=this.getDaysCountInMonth(e,n),a=this.getDaysCountInPrevMonth(e,n),l=1,c=new Date,u=[],p=Math.ceil((r+s)/7);for(let m=0;mr){let E=this.getNextMonthAndYear(e,n);_.push({day:l-r,month:E.month,year:E.year,otherMonth:!0,today:this.isToday(c,l-r,E.month,E.year),selectable:this.isSelectable(l-r,E.month,E.year,!0)})}else _.push({day:l,month:e,year:n,today:this.isToday(c,l,e,n),selectable:this.isSelectable(l,e,n,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(_[0].year,_[0].month,_[0].day))),o.push(_)}return{month:e,year:n,dates:o,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYeare[e.length-1]){let n=e[e.length-1]-e[0];this.populateYearOptions(e[0]+n,e[e.length-1]+n)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){!this.disabled&&n.selectable?(this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,n)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,n){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){"year"===this.view?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let n=new Date(e.year,e.month,e.day);if(this.showTime&&(n.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate=o.getTime()?s=n:(o=n,s=null),this.updateModel([o,s])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(n);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let o=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,n){let o,s;return 0===e?(o=11,s=n-1):(o=e-1,s=n),{month:o,year:s}}getNextMonthAndYear(e,n){let o,s;return 11===e?(o=0,s=n+1):(o=e+1,s=n),{month:o,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let o of this.value)if(n=this.isDateEquals(o,e),n)break;return n}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[n,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=n&&s<=(o??n)}return!1}isMonthDisabled(e){for(let n=1;n=r.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,n,o,s){return e.getDate()===n&&e.getMonth()===o&&e.getFullYear()===s}isSelectable(e,n,o,s){let r=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(r=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(j.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,o){const s=e.currentTarget,r=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.nextElementSibling;l?j.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=j.index(r),l=r.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];j.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=r.previousElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")||j.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=r.nextElementSibling;if(a){let l=a.children[0];j.hasClass(l,"p-disabled")?this.navigateToMonth(!1,o):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+3:r-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,n){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,r=j.index(o);let a=s[40===e.which?r+2:r-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let a=o.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let a=o.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,n),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,n){if(e)if(1===this.numberOfMonths||0===n)this.navigationState={backward:!0},this.navBackward(event);else{let s=j.find(this.contentViewChild.nativeElement.children[n-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r=s[s.length-1];r.tabIndex="0",r.focus()}else if(1===this.numberOfMonths||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=j.findSingle(this.contentViewChild.nativeElement.children[n+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():j.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;n=j.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(e=n[n.length-1])}else e=j.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let n;if("month"===this.currentView){let o=j.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=j.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let o=j.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=j.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");o.forEach(r=>r.tabIndex=-1),n=s||o[0],0===o.length&&j.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(n=j.findSingle(e,"span.p-highlight"),!n){let o=j.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");n=o||j.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||n.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=j.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==o||0===o)if(this.focusTrap)n[n.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else n[o-1].focus();else if(-1==o)if(this.timeOnly)n[0].focus();else{let s=0;for(let r=0;ra||this.minDate.getHours()===a&&(this.minDate.getMinutes()>n||this.minDate.getMinutes()===n&&this.minDate.getSeconds()>o))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?o-24:o:"12"==this.hourFormat&&(this.currentHour<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.validateTime(o,this.currentMinute,this.currentSecond,s)&&(this.currentHour=o,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,n,o){this.disabled||(this.repeat(e,null,n,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,o,s){let r=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,s),this.cd.markForCheck()},r),o){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let n=this.currentHour-this.stepHour,o=this.pm;"24"==this.hourFormat?n=n<0?24+n:n:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),n=n<=0?12+n:n),this.validateTime(n,this.currentMinute,this.currentSecond,o)&&(this.currentHour=n,this.pm=o),e.preventDefault()}incrementMinute(e){let n=this.currentMinute+this.stepMinute;n=n>59?n-60:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}decrementMinute(e){let n=this.currentMinute-this.stepMinute;n=n<0?60+n:n,this.validateTime(this.currentHour,n,this.currentSecond,this.pm)&&(this.currentMinute=n),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,this.validateTime(this.currentHour,this.currentMinute,n,this.pm)&&(this.currentSecond=n),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const n=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,n)&&(this.pm=n,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let o=this.parseValueFromString(n);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{this.updateModel(this.keepInvalid?n:null)}this.filled=null!=n&&n.length,this.onInput.emit(e)}isValidSelection(e){let n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1))&&this.isRangeSelection()&&(n=e.length>1&&e[1]>e[0]),n}parseValueFromString(e){if(!e||0===e.trim().length)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);n=[];for(let s of o)n.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");n=[];for(let s=0;s{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),j.blockBodyScroll())}disableModality(){this.mask&&(j.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let n,e=this.document.body.children;for(let o=0;o{const p=o+1{let _=""+p;if(s(u))for(;_.lengths(u)?_[p]:m[p];let l="",c=!1;if(e)for(o=0;o11&&12!=o&&(o-=12),n+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,n+=":",n+=s<10?"0"+s:s,this.showSeconds&&(n+=":",n+=r<10?"0"+r:r),"12"==this.hourFormat&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":");if(n.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(n[0]),r=parseInt(n[1]),a=this.showSeconds?parseInt(n[2]):null;if(isNaN(s)||isNaN(r)||s>23||r>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:r,second:a}}parseDate(e,n){if(null==n||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let o,s,r,b,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,p=-1,m=-1,_=!1,E=fe=>{let Ce=o+1{let Ce=E(fe),ve="@"===fe?14:"!"===fe?20:"y"===fe&&Ce?4:"o"===fe?3:2,Pe=new RegExp("^\\d{"+("y"===fe?ve:1)+","+ve+"}"),$e=e.substring(a).match(Pe);if(!$e)throw"Missing number at position "+a;return a+=$e[0].length,parseInt($e[0],10)},W=(fe,Ce,ve)=>{let ke=-1,Pe=E(fe)?ve:Ce,$e=[];for(let Ke=0;Ke-(Ke[1].length-pt[1].length));for(let Ke=0;Ke<$e.length;Ke++){let pt=$e[Ke][1];if(e.substr(a,pt.length).toLowerCase()===pt.toLowerCase()){ke=$e[Ke][0],a+=pt.length;break}}if(-1!==ke)return ke+1;throw"Unknown name at position "+a},te=()=>{if(e.charAt(a)!==n.charAt(o))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(p=1),o=0;o-1)for(u=1,p=m;s=this.getDaysCountInMonth(c,u-1),!(p<=s);)u++,p-=s;if("year"===this.view&&(u=-1===u?1:u,p=-1===p?1:p),b=this.daylightSavingAdjust(new Date(c,u-1,p)),b.getFullYear()!==c||b.getMonth()+1!==u||b.getDate()!==p)throw"Invalid date";return b}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let n=new Date,o={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,o),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return j.hasClass(e.target,"p-datepicker-prev")||j.hasClass(e.target,"p-datepicker-prev-icon")||j.hasClass(e.target,"p-datepicker-next")||j.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(Tt),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-calendar"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($G,5),je(KG,5),je(GG,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputfieldViewChild=s.first),Se(s=Ee())&&(o.content=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focus)("p-calendar-clearable",o.showClear&&!o.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[yt([EW])],ngContentSelectors:SW,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"disabled","click"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(n,o){1&n&&(Ti(wW),x(0,"span",0,1),g(2,oq,4,20,"ng-template",2),g(3,AW,9,31,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngClass",gr(6,TW,o.showIcon,o.timeOnly,o.disabled,o.focus||o.overlayVisible))("ngStyle",o.style),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:function(){return[Ct,Jn,gt,on,Ht,hf,oo,Mr,Qi,ff,bi,mn,ak]},styles:["@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Us("visibleTouchUI",en({transform:"translate(-50%,-50%)",opacity:1})),Ln("void => visible",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}",en({opacity:1,transform:"*"}))]),Ln("visible => void",[On("{{hideTransitionParams}}",en({opacity:0}))]),Ln("void => visibleTouchUI",[en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),On("{{showTransitionParams}}")]),Ln("visibleTouchUI => void",[On("{{hideTransitionParams}}",en({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),uk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,Mr,Qi,ff,bi,mn,ak,Mi,Qe]})}return t})(),uC=(()=>{class t{host;constructor(e){this.host=e}autofocus;focused=!1;ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=j.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}})}return t})(),gf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const kW=["overlay"],MW=["content"];function OW(t,i){1&t&&ze(0)}const LW=function(t,i,e){return{showTransitionParams:t,hideTransitionParams:i,transform:e}},PW=function(t){return{value:"visible",params:t}},FW=function(t){return{mode:t}},RW=function(t){return{$implicit:t}};function NW(t,i){if(1&t){const e=De();x(0,"div",1,3),me("click",function(o){return G(e),q(f(2).onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){return G(e),q(f(2).onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){return G(e),q(f(2).onOverlayContentAnimationDone(o))}),Kn(2),g(3,OW,1,0,"ng-container",4),A()}if(2&t){const e=f(2);Ve(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",He(11,PW,Rn(7,LW,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),h(3),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",He(15,RW,He(13,FW,e.overlayMode)))}}const VW=function(t,i,e,n,o,s,r,a,l,c,u,p,m,_){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":i,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":o,"p-overlay-bottom":s,"p-overlay-bottom-start":r,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":p,"p-overlay-right-start":m,"p-overlay-right-end":_}};function BW(t,i){if(1&t){const e=De();x(0,"div",1,2),me("click",function(){return G(e),q(f().onOverlayClick())}),g(2,NW,4,17,"div",0),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass",zp(5,VW,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),h(2),d("ngIf",e.visible)}}const HW=["*"],zW={provide:un,useExisting:ft(()=>mf),multi:!0},jW=Ml([en({transform:"{{transform}}",opacity:0}),On("{{showTransitionParams}}")]),UW=Ml([On("{{hideTransitionParams}}",en({transform:"{{transform}}",opacity:0}))]);let mf=(()=>{class t{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return be.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return be.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return be.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return be.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new ge;onBeforeShow=new ge;onShow=new ge;onBeforeHide=new ge;onHide=new ge;onAnimationStart=new ge;onAnimationDone=new ge;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(ei(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return j.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,n,o,s,r,a,l,c){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.config=r,this.overlayService=a,this.cd=l,this.zone=c,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,n=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.addClass(this.document?.body,"p-overflow-hidden")}hide(e,n=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&j.focus(this.targetEl),this.modal&&j.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&j.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Wn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),j.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&j.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const n=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(n,!0),this.bindListeners();break;case"void":this.hide(n,!0),this.unbindListeners(),j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(n),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",e)}handleEvents(e,n){this[e].emit(n),this.options&&this.options[e]&&this.options[e](n),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](n)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&o}):o)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===e.code&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!j.isTouchDevice()}):!j.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(j.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Wn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(ki),V(Dr),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-overlay"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(kW,5),je(MW,5)),2&n){let s;Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[yt([zW])],ngContentSelectors:HW,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(Ti(),g(0,BW,3,20,"div",0)),2&n&&d("ngIf",o.modalVisible)},dependencies:[Ct,gt,on,Ht],styles:["@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}\n"],encapsulation:2,data:{animation:[Oo("overlayContentAnimation",[Ln(":enter",[Eh(jW)]),Ln(":leave",[Eh(UW)])])]},changeDetection:0})}return t})(),$l=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Qe]})}return t})();const $W=["element"],KW=["content"];function GW(t,i){1&t&&ze(0)}const dC=function(t,i){return{$implicit:t,options:i}};function qW(t,i){if(1&t&&(we(0),g(1,GW,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(2,dC,e.loadedItems,e.getContentOptions()))}}function WW(t,i){1&t&&ze(0)}function QW(t,i){if(1&t&&(we(0),g(1,WW,1,0,"ng-container",7),Te()),2&t){const e=i.$implicit,n=i.index,o=f(3);h(1),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",mt(2,dC,e,o.getOptions(n)))}}const ZW=function(t){return{"p-scroller-loading":t}};function YW(t,i){if(1&t&&(x(0,"div",8,9),g(2,QW,2,5,"ng-container",10),A()),2&t){const e=f(2);d("ngClass",He(5,ZW,e.d_loading))("ngStyle",e.contentStyle),K("data-pc-section","content"),h(2),d("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function XW(t,i){1&t&&le(0,"div",11),2&t&&(d("ngStyle",f(2).spacerStyle),K("data-pc-section","spacer"))}function JW(t,i){1&t&&ze(0)}const eQ=function(t){return{numCols:t}},dk=function(t){return{options:t}};function tQ(t,i){if(1&t&&(we(0),g(1,JW,1,0,"ng-container",7),Te()),2&t){const e=i.index,n=f(4);h(1),d("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",He(4,dk,n.getLoaderOptions(e,n.both&&He(2,eQ,n._numItemsInViewport.cols))))}}function nQ(t,i){if(1&t&&(we(0),g(1,tQ,2,6,"ng-container",14),Te()),2&t){const e=f(3);h(1),d("ngForOf",e.loaderArr)}}function iQ(t,i){1&t&&ze(0)}const oQ=function(){return{styleClass:"p-scroller-loading-icon"}};function sQ(t,i){if(1&t&&(we(0),g(1,iQ,1,0,"ng-container",7),Te()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",He(3,dk,Jt(2,oQ)))}}function rQ(t,i){1&t&&le(0,"SpinnerIcon",16),2&t&&(d("styleClass","p-scroller-loading-icon"),K("data-pc-section","loadingIcon"))}function aQ(t,i){if(1&t&&(g(0,sQ,2,5,"ng-container",0),g(1,rQ,1,2,"ng-template",null,15,In)),2&t){const e=Bt(2);d("ngIf",f(3).loaderIconTemplate)("ngIfElse",e)}}const lQ=function(t){return{"p-component-overlay":t}};function cQ(t,i){if(1&t&&(x(0,"div",12),g(1,nQ,2,1,"ng-container",0),g(2,aQ,3,2,"ng-template",null,13,In),A()),2&t){const e=Bt(3),n=f(2);d("ngClass",He(4,lQ,!n.loaderTemplate)),K("data-pc-section","loader"),h(1),d("ngIf",n.loaderTemplate)("ngIfElse",e)}}const uQ=function(t,i,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":i,"p-horizontal-scroll":e}};function dQ(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("scroll",function(o){return G(e),q(f().onContainerScroll(o))}),g(3,qW,2,5,"ng-container",0),g(4,YW,3,7,"ng-template",null,4,In),g(6,XW,1,2,"div",5),g(7,cQ,4,6,"div",6),A(),Te()}if(2&t){const e=Bt(5),n=f();h(1),Ve(n._styleClass),d("ngStyle",n._style)("ngClass",Rn(12,uQ,n.inline,n.both,n.horizontal)),K("id",n._id)("tabindex",n.tabindex)("data-pc-name","scroller")("data-pc-section","root"),h(2),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngIf",n._showSpacer),h(1),d("ngIf",!n.loaderDisabled&&n._showLoader&&n.d_loading)}}function pQ(t,i){1&t&&ze(0)}const hQ=function(t,i){return{rows:t,columns:i}};function fQ(t,i){if(1&t&&(we(0),g(1,pQ,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",mt(5,dC,e.items,mt(2,hQ,e._items,e.loadedColumns)))}}function gQ(t,i){if(1&t&&(Kn(0),g(1,fQ,2,8,"ng-container",17)),2&t){const e=f();h(1),d("ngIf",e.contentTemplate)}}const mQ=["*"];let Bu=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([n,o])=>this[`_${n}`]!==o&&(this[`_${n}`]=o))}onLazyLoad=new ge;onScroll=new ge;onScrollIndexChange=new ge;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.zone=r}ngOnInit(){this.setInitialState()}ngOnChanges(e){let n=!1;if(e.loading){const{previousValue:o,currentValue:s}=e.loading;this.lazy&&o!==s&&s!==this.d_loading&&(this.d_loading=s,n=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:o,currentValue:s}=e.numToleratedItems;o!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){const{previousValue:o,currentValue:s}=e.options;this.lazy&&o?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,n=!0),o?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!n&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){ei(this.platformId)&&j.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=j.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=j.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||j.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,n="auto"){const{numToleratedItems:o}=this.calculateNumItems(),s=this.getContentPosition(),r=(u=0,p)=>u<=p?0:u,a=(u,p,m)=>u*p+m,l=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:n});let c=0;this.both?(c={rows:r(e[0],o[0]),cols:r(e[1],o[1])},l(a(c.cols,this._itemSize[1],s.left),a(c.rows,this._itemSize[0],s.top))):(c=r(e,o),this.horizontal?l(a(c,this._itemSize,s.left),0):l(0,a(c,this._itemSize,s.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(e,n,o="auto"){if(n){const{first:s,viewport:r}=this.getRenderedRange(),a=(u=0,p=0)=>this.scrollTo({left:u,top:p,behavior:o}),c="to-end"===n;if("to-start"===n){if(this.both)r.first.rows-s.rows>e[0]?a(r.first.cols*this._itemSize[1],(r.first.rows-1)*this._itemSize[0]):r.first.cols-s.cols>e[1]&&a((r.first.cols-1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.first-s>e){const u=(r.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)r.last.rows-s.rows<=e[0]+1?a(r.first.cols*this._itemSize[1],(r.first.rows+1)*this._itemSize[0]):r.last.cols-s.cols<=e[1]+1&&a((r.first.cols+1)*this._itemSize[1],r.first.rows*this._itemSize[0]);else if(r.last-s<=e+1){const u=(r.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,o)}getRenderedRange(){const e=(s,r)=>Math.floor(s/(r||s));let n=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:s,scrollLeft:r}=this.elementViewChild.nativeElement;this.both?(n={rows:e(s,this._itemSize[0]),cols:e(r,this._itemSize[1])},o={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols}):(n=e(this.horizontal?r:s,this._itemSize),o=n+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:n,last:o}}}calculateNumItems(){const e=this.getContentPosition(),n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,o=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,s=(c,u)=>Math.ceil(c/(u||c)),r=c=>Math.ceil(c/2),a=this.both?{rows:s(o,this._itemSize[0]),cols:s(n,this._itemSize[1])}:s(this.horizontal?n:o,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[r(a.rows),r(a.cols)]:r(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:n}=this.calculateNumItems(),o=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,n]=[j.getWidth(this.contentEl),j.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),n!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,s]=[j.getWidth(this.elementViewChild.nativeElement),j.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=othis.elementViewChild.nativeElement.style[r]=a;this.both||this.horizontal?(s("height",o),s("width",n)):s("height",o)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),n=(o,s,r,a=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(s||[]).length*r+a+"px"};this.both?(n("height",this._items,this._itemSize[0],e.y),n("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?n("width",this._columns||this._items,this._itemSize,e.x):n("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const n=e?e.first:this.first,o=(r,a)=>r*a,s=(r=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${r}px, ${a}px, 0)`};if(this.both)s(o(n.cols,this._itemSize[1]),o(n.rows,this._itemSize[0]));else{const r=o(n,this._itemSize);this.horizontal?s(r,0):s(0,r)}}}onScrollPositionChange(e){const n=e.target,o=this.getContentPosition(),s=(P,W)=>P?P>W?P-W:P:0,r=(P,W)=>Math.floor(P/(W||P)),a=(P,W,te,fe,Ce,ve)=>P<=Ce?Ce:ve?te-fe-Ce:W+Ce-1,l=(P,W,te,fe,Ce,ve,ke)=>P<=ve?0:Math.max(0,ke?PW?te:P-2*ve),c=(P,W,te,fe,Ce,ve=!1)=>{let ke=W+fe+2*Ce;return P>=Ce&&(ke+=Ce+1),this.getLast(ke,ve)},u=s(n.scrollTop,o.top),p=s(n.scrollLeft,o.left);let m=this.both?{rows:0,cols:0}:0,_=this.last,b=!1,E=this.lastScrollPos;if(this.both){const P=this.lastScrollPos.top<=u,W=this.lastScrollPos.left<=p;if(!this._appendOnly||this._appendOnly&&(P||W)){const te={rows:r(u,this._itemSize[0]),cols:r(p,this._itemSize[1])},fe={rows:a(te.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],P),cols:a(te.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],W)};m={rows:l(te.rows,fe.rows,this.first.rows,0,0,this.d_numToleratedItems[0],P),cols:l(te.cols,fe.cols,this.first.cols,0,0,this.d_numToleratedItems[1],W)},_={rows:c(te.rows,m.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(te.cols,m.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},b=m.rows!==this.first.rows||_.rows!==this.last.rows||m.cols!==this.first.cols||_.cols!==this.last.cols||this.isRangeChanged,E={top:u,left:p}}}else{const P=this.horizontal?p:u,W=this.lastScrollPos<=P;if(!this._appendOnly||this._appendOnly&&W){const te=r(P,this._itemSize);m=l(te,a(te,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,W),this.first,0,0,this.d_numToleratedItems,W),_=c(te,m,0,this.numItemsInViewport,this.d_numToleratedItems),b=m!==this.first||_!==this.last||this.isRangeChanged,E=P}}return{first:m,last:_,isRangeChanged:b,scrollPos:E}}onScrollChange(e){const{first:n,last:o,isRangeChanged:s,scrollPos:r}=this.onScrollPositionChange(e);if(s){const a={first:n,last:o};if(this.setContentPosition(a),this.first=n,this.last=o,this.lastScrollPos=r,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):n,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:n}=this.onScrollPositionChange(e);(n||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){ei(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,n=j.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,n,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(j.isVisible(this.elementViewChild?.nativeElement)){const[e,n]=[j.getWidth(this.elementViewChild?.nativeElement),j.getHeight(this.elementViewChild?.nativeElement)],[o,s]=[e!==this.defaultWidth,n!==this.defaultHeight];(this.both?o||s:this.horizontal?o:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=n,this.defaultContentWidth=j.getWidth(this.contentEl),this.defaultContentHeight=j.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,n){return this.options&&this.options[e]?this.options[e](n):this[e].emit(n)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,n)=>this.getLoaderOptions(e,n),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const n=(this._items||[]).length,o=this.both?this.first.rows+e:this.first+e;return{index:o,count:n,first:0===o,last:o===n-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(e,n){const o=this.loaderArr.length;return{index:e,count:o,first:0===e,last:e===o-1,even:e%2==0,odd:e%2!=0,...n}}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-scroller"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je($W,5),je(KW,5)),2&n){let s;Se(s=Ee())&&(o.elementViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Hn],ngContentSelectors:mQ,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[3,"styleClass"],[4,"ngIf"]],template:function(n,o){if(1&n&&(Ti(),g(0,dQ,8,16,"ng-container",0),g(1,gQ,2,1,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",!o._disabled)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,_s]},styles:["@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}\n"],encapsulation:2})}return t})(),Oi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,_s,Qe]})}return t})(),Kl=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:$t()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.config=s,this.renderer=r,this.viewContainer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(j.hasClass(e.relatedTarget,"p-tooltip")||j.hasClass(e.relatedTarget,"p-tooltip-text")||j.hasClass(e.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?j.appendChild(this.container,this.el.nativeElement):j.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",n=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),j.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Wn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Wn.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof $o){const n=this.viewContainer.createEmbeddedView(e);n.detectChanges(),n.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+j.getWindowScrollLeft(),top:e.top+j.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+j.getOuterWidth(this.el.nativeElement),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-j.getOuterWidth(this.container),o=e.top+(j.getOuterHeight(this.el.nativeElement)-j.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top-j.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(j.getOuterWidth(this.el.nativeElement)-j.getOuterWidth(this.container))/2,o=e.top+j.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return j.hasClass(e,"p-inputwrapper")?j.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,o=e.left,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getViewport();return o+s>a.width||o<0||n<0||n+r>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):j.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Wn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(ki),V(hn),V(go))};static \u0275dir=ut({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.escape",function(r){return o.onPressEscape(r)},0,Qy)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",hideOnEscape:"hideOnEscape",content:["pTooltip","content"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Hn]})}return t})(),Nn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),Qs=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function _Q(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function IQ(t,i){1&t&&ze(0)}const Hu=function(t){return{height:t}},CQ=function(t,i,e){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},pC=function(t){return{$implicit:t}},vQ=["container"],bQ=["filter"],yQ=["focusInput"],xQ=["editableInput"],AQ=["items"],wQ=["scroller"],TQ=["overlay"],SQ=["firstHiddenFocusableEl"],EQ=["lastHiddenFocusableEl"];function DQ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.label())}}function kQ(t,i){1&t&&ze(0)}function MQ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(3);h(1),dt("p-emptylabel"===e.label()?"\xa0":e.placeholder)}}function OQ(t,i){if(1&t&&g(0,MQ,2,1,"span",4),2&t){const e=f(2);d("ngIf",e.label()===e.placeholder||e.label()&&!e.placeholder)}}function LQ(t,i){if(1&t){const e=De();x(0,"span",10,11),me("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),g(2,DQ,2,1,"ng-container",12),g(3,kQ,1,0,"ng-container",13),g(4,OQ,1,1,"ng-template",null,14,In),A()}if(2&t){const e=Bt(5),n=f();d("ngClass",n.inputClass)("pTooltip",n.tooltip)("tooltipPosition",n.tooltipPosition)("positionStyle",n.tooltipPositionStyle)("tooltipStyleClass",n.tooltipStyleClass)("autofocus",n.autofocus),K("aria-disabled",n.disabled)("id",n.inputId)("aria-label",n.ariaLabel||("p-emptylabel"===n.label()?void 0:n.label()))("aria-labelledby",n.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",n.overlayVisible)("aria-controls",n.id+"_list")("tabindex",n.disabled?-1:n.tabindex)("aria-activedescendant",n.focused?n.focusedOptionId:void 0),h(2),d("ngIf",!n.selectedItemTemplate)("ngIfElse",e),h(1),d("ngTemplateOutlet",n.selectedItemTemplate)("ngTemplateOutletContext",He(19,pC,n.modelValue()))}}function PQ(t,i){if(1&t){const e=De();x(0,"input",15,16),me("input",function(o){return G(e),q(f().onEditableInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))}),A()}if(2&t){const e=f();d("ngClass",e.inputClass)("disabled",e.disabled),K("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function FQ(t,i){if(1&t){const e=De();x(0,"TimesIcon",19),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-dropdown-clear-icon"),K("data-pc-section","clearicon"))}function RQ(t,i){}function NQ(t,i){1&t&&g(0,RQ,0,0,"ng-template")}function VQ(t,i){if(1&t){const e=De();x(0,"span",20),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,NQ,1,0,null,21),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function BQ(t,i){if(1&t&&(we(0),g(1,FQ,1,2,"TimesIcon",17),g(2,VQ,2,2,"span",18),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function HQ(t,i){1&t&&le(0,"span",24),2&t&&d("ngClass",f(2).dropdownIcon)}function zQ(t,i){1&t&&le(0,"ChevronDownIcon",25),2&t&&d("styleClass","p-dropdown-trigger-icon")}function jQ(t,i){if(1&t&&(we(0),g(1,HQ,1,1,"span",22),g(2,zQ,1,1,"ChevronDownIcon",23),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function UQ(t,i){}function $Q(t,i){1&t&&g(0,UQ,0,0,"ng-template")}function KQ(t,i){if(1&t&&(x(0,"span",26),g(1,$Q,1,0,null,21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function GQ(t,i){1&t&&ze(0)}function qQ(t,i){1&t&&ze(0)}const pk=function(t){return{options:t}};function WQ(t,i){if(1&t&&(we(0),g(1,qQ,1,0,"ng-container",13),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,pk,e.filterOptions))}}function QQ(t,i){1&t&&le(0,"SearchIcon",25),2&t&&d("styleClass","p-dropdown-filter-icon")}function ZQ(t,i){}function YQ(t,i){1&t&&g(0,ZQ,0,0,"ng-template")}function XQ(t,i){if(1&t&&(x(0,"span",41),g(1,YQ,1,0,null,21),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function JQ(t,i){if(1&t){const e=De();x(0,"div",37)(1,"input",38,39),me("input",function(o){return G(e),q(f(3).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,QQ,1,1,"SearchIcon",23),g(4,XQ,2,1,"span",40),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||""),K("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function eZ(t,i){if(1&t&&(x(0,"div",35),me("click",function(n){return n.stopPropagation()}),g(1,WQ,2,4,"ng-container",12),g(2,JQ,5,7,"ng-template",null,36,In),A()),2&t){const e=Bt(3),n=f(2);h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function tZ(t,i){1&t&&ze(0)}const hk=function(t,i){return{$implicit:t,options:i}};function nZ(t,i){if(1&t&&g(0,tZ,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,hk,e,n))}}function iZ(t,i){1&t&&ze(0)}function oZ(t,i){if(1&t&&g(0,iZ,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,pk,e))}}function sZ(t,i){1&t&&(we(0),g(1,oZ,1,4,"ng-template",44),Te())}function rZ(t,i){if(1&t){const e=De();x(0,"p-scroller",42,43),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,nZ,1,5,"ng-template",9),g(3,sZ,2,0,"ng-container",4),A()}if(2&t){const e=f(2);yn(He(8,Hu,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function aZ(t,i){1&t&&ze(0)}const lZ=function(){return{}};function cZ(t,i){if(1&t&&(we(0),g(1,aZ,1,0,"ng-container",13),Te()),2&t){f();const e=Bt(9),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,hk,n.visibleOptions(),Jt(2,lZ)))}}function uZ(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function dZ(t,i){1&t&&ze(0)}function pZ(t,i){if(1&t&&(we(0),x(1,"li",49),g(2,uZ,2,1,"span",4),g(3,dZ,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,Hu,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,pC,o.optionGroup))}}function hZ(t,i){if(1&t){const e=De();we(0),x(1,"p-dropdownItem",50),me("onClick",function(o){G(e);const s=f().$implicit;return q(f(3).onOptionSelect(o,s))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function fZ(t,i){if(1&t&&(g(0,pZ,4,9,"ng-container",4),g(1,hZ,2,9,"ng-container",4)),2&t){const e=i.$implicit;d("ngIf",e.group),h(1),d("ngIf",!e.group)}}function gZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function mZ(t,i){1&t&&ze(0,null,52)}function _Z(t,i){if(1&t&&(x(0,"li",51),g(1,gZ,2,1,"ng-container",12),g(2,mZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function IZ(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function CZ(t,i){1&t&&ze(0,null,53)}function vZ(t,i){if(1&t&&(x(0,"li",51),g(1,IZ,2,1,"ng-container",12),g(2,CZ,2,0,"ng-container",21),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,Hu,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function bZ(t,i){if(1&t&&(x(0,"ul",45,46),g(2,fZ,2,2,"ng-template",47),g(3,_Z,3,6,"li",48),g(4,vZ,3,6,"li",48),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",o.filterValue&&o.isEmpty()),h(1),d("ngIf",!o.filterValue&&o.isEmpty())}}function yZ(t,i){1&t&&ze(0)}function xZ(t,i){if(1&t){const e=De();x(0,"div",27)(1,"span",28,29),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,GQ,1,0,"ng-container",21),g(4,eZ,4,2,"div",30),x(5,"div",31),g(6,rZ,4,10,"p-scroller",32),g(7,cZ,2,6,"ng-container",4),g(8,bZ,5,7,"ng-template",null,33,In),A(),g(10,yZ,1,0,"ng-container",21),x(11,"span",28,34),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngTemplateOutlet",e.headerTemplate),h(1),d("ngIf",e.filter),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngTemplateOutlet",e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const AZ={provide:un,useExisting:ft(()=>fk),multi:!0};let wZ=(()=>{class t{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new ge;onMouseEnter=new ge;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",focused:"focused",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:3,vars:21,consts:[["role","option","pRipple","",3,"id","ngStyle","ngClass","click","mouseenter"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),g(1,_Q,2,1,"span",1),g(2,IQ,1,0,"ng-container",2),A()),2&n&&(d("id",o.id)("ngStyle",He(13,Hu,o.itemSize+"px"))("ngClass",Rn(15,CQ,o.selected,o.disabled,o.focused)),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(19,pC,o.option)))},dependencies:[Ct,gt,on,Ht,oo],encapsulation:2})}return t})(),fk=(()=>{class t{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;placeholder;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get options(){return this._options()}set options(e){this._options.set(e)}onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onShow=new ge;onHide=new ge;onClear=new ge;onLazyLoad=new ge;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=bn(null);modelValue=bn(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=bn(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=bn(-1);labelId;listId;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&be.isNotEmpty(this.modelValue())&&""!==this.modelValue()&&this.showClear&&!this.disabled}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue(),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){const e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder&&e===this.placeholder,"p-dropdown-label-empty":!(this.editable||this.selectedItemTemplate||e&&"p-emptylabel"!==e&&0!==e.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterBy||this.filterFields||this.optionValue?this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):this.options.filter(o=>-1!==o.toLowerCase().indexOf(this._filterValue().toLowerCase()));if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{const e=this.findSelectedOptionIndex();return-1!==e?this.getOptionLabel(this.visibleOptions()[e]):this.placeholder||"p-emptylabel"});constructor(e,n,o,s,r,a){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,a_(()=>{this.modelValue()&&this.editable&&this.updateEditableLabel()})}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&j.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&!this.modelValue()){const e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,o=!0,s=!1){const r=this.getOptionValue(n);this.updateModel(r,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o&&this.hide(!0),!1===s&&this.onChange.emit({originalEvent:e,value:r})}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder&&!this.modelValue()&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=void 0===this.getOptionLabel(this.modelValue())?this.editableInputViewChild.nativeElement.value:this.getOptionLabel(this.modelValue()))}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&void 0!==e?.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==e.target.tagName&&"clearicon"!==e.target.getAttribute("data-pc-section")&&!e.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.cd.detectChanges()))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}onEditableInput(e){const n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:n})}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,!1===this.overlayVisible&&this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n){if(!this.disabled&&!this.readonly)switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){const o=this.visibleOptions()[n];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(),e.preventDefault()}else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1)):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!n&&this.onEnterKey(e)}onEnterKey(e){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.hide()}else this.onArrowDownKey(e);e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild.el.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild.nativeElement;j.focus(n)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),this.cd.markForCheck()}applyFocus(){this.editable?j.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():j.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e)}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dropdown"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(vQ,5),je(bQ,5),je(yQ,5),je(xQ,5),je(AQ,5),je(wQ,5),je(TQ,5),je(SQ,5),je(EQ,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.editableInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:"focusOnHover",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[yt([AZ])],decls:11,vars:20,consts:[[3,"ngClass","ngStyle","click"],["container",""],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown"],["focusInput",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["defaultPlaceholder",""],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","input","keydown","focus","blur"],["editableInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["lastHiddenFocusableEl",""],[1,"p-dropdown-header",3,"click"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","input","keydown","blur"],["filter",""],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,LQ,6,21,"span",2),g(3,PQ,2,5,"input",3),g(4,BQ,3,2,"ng-container",4),x(5,"div",5),g(6,jQ,3,2,"ng-container",4),g(7,KQ,2,1,"span",6),A(),x(8,"p-overlay",7,8),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(10,xZ,13,19,"ng-template",9),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),d("ngIf",!o.editable),h(1),d("ngIf",o.editable),h(1),d("ngIf",o.isVisibleClearIcon),h(1),K("aria-expanded",o.overlayVisible)("data-pc-section","trigger"),h(1),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,Bu,uC,mn,bi,Qs,wZ]},styles:["@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}\n"],encapsulation:2,changeDetection:0})}return t})(),_f=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,gf,mn,bi,Qs,$l,Qe,Oi]})}return t})(),Or=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),If=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),hC=(()=>{class t{el;ngModel;cd;filled;constructor(e,n,o){this.el=e,this.ngModel=n,this.cd=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(n){return new(n||t)(V(bt),V(xh,8),V(Ft))};static \u0275dir=ut({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(n,o){1&n&&me("input",function(r){return o.onInput(r)}),2&n&&Ii("p-filled",o.filled)}})}return t})(),Zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const TZ=["input"];function SZ(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("ngClass","p-inputnumber-clear-icon"),K("data-pc-section","clearIcon"))}function EZ(t,i){}function DZ(t,i){1&t&&g(0,EZ,0,0,"ng-template")}function kZ(t,i){if(1&t){const e=De();x(0,"span",9),me("click",function(){return G(e),q(f(2).clear())}),g(1,DZ,1,0,null,10),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function MZ(t,i){if(1&t&&(we(0),g(1,SZ,1,2,"TimesIcon",6),g(2,kZ,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function OZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function LZ(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function PZ(t,i){}function FZ(t,i){1&t&&g(0,PZ,0,0,"ng-template")}function RZ(t,i){if(1&t&&(we(0),g(1,LZ,1,1,"AngleUpIcon",3),g(2,FZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function NZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function VZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function BZ(t,i){}function HZ(t,i){1&t&&g(0,BZ,0,0,"ng-template")}function zZ(t,i){if(1&t&&(we(0),g(1,VZ,1,1,"AngleDownIcon",3),g(2,HZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}const gk=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},mk=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function jZ(t,i){if(1&t){const e=De();x(0,"span",11)(1,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(2,OZ,1,2,"span",13),g(3,RZ,3,2,"ng-container",3),A(),x(4,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(5,NZ,1,2,"span",13),g(6,zZ,3,2,"ng-container",3),A()()}if(2&t){const e=f();K("data-pc-section","buttonGroup"),h(1),Ve(e.incrementButtonClass),d("ngClass",Jt(17,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon),h(1),Ve(e.decrementButtonClass),d("ngClass",Jt(18,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section",e.decrementbutton),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}function UZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).incrementButtonIcon),K("data-pc-section","incrementbuttonicon"))}function $Z(t,i){1&t&&le(0,"AngleUpIcon"),2&t&&K("data-pc-section","incrementbuttonicon")}function KZ(t,i){}function GZ(t,i){1&t&&g(0,KZ,0,0,"ng-template")}function qZ(t,i){if(1&t&&(we(0),g(1,$Z,1,1,"AngleUpIcon",3),g(2,GZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.incrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function WZ(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onUpButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onUpButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onUpButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onUpButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onUpButtonKeyUp())}),g(1,UZ,1,2,"span",13),g(2,qZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.incrementButtonClass),d("ngClass",Jt(8,gk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","incrementbutton"),h(1),d("ngIf",e.incrementButtonIcon),h(1),d("ngIf",!e.incrementButtonIcon)}}function QZ(t,i){1&t&&le(0,"span",14),2&t&&(d("ngClass",f(2).decrementButtonIcon),K("data-pc-section","decrementbuttonicon"))}function ZZ(t,i){1&t&&le(0,"AngleDownIcon"),2&t&&K("data-pc-section","decrementbuttonicon")}function YZ(t,i){}function XZ(t,i){1&t&&g(0,YZ,0,0,"ng-template")}function JZ(t,i){if(1&t&&(we(0),g(1,ZZ,1,1,"AngleDownIcon",3),g(2,XZ,1,0,null,10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.decrementButtonIconTemplate),h(1),d("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function eY(t,i){if(1&t){const e=De();x(0,"button",12),me("mousedown",function(o){return G(e),q(f().onDownButtonMouseDown(o))})("mouseup",function(){return G(e),q(f().onDownButtonMouseUp())})("mouseleave",function(){return G(e),q(f().onDownButtonMouseLeave())})("keydown",function(o){return G(e),q(f().onDownButtonKeyDown(o))})("keyup",function(){return G(e),q(f().onDownButtonKeyUp())}),g(1,QZ,1,2,"span",13),g(2,JZ,3,2,"ng-container",3),A()}if(2&t){const e=f();Ve(e.decrementButtonClass),d("ngClass",Jt(8,mk))("disabled",e.disabled),K("aria-hidden",!0)("data-pc-section","decrementbutton"),h(1),d("ngIf",e.decrementButtonIcon),h(1),d("ngIf",!e.decrementButtonIcon)}}const tY=function(t,i,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}},nY={provide:un,useExisting:ft(()=>_k),multi:!0};let _k=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new ge;onFocus=new ge;onBlur=new ge;onKeyDown=new ge;onClear=new ge;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,n,o,s){this.document=e,this.el=n,this.cd=o,this.injector=s}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(o=>!!e[o])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template}})}ngOnInit(){this.ngControl=this.injector.get(ds,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(e.map((o,s)=>[o,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=o=>n.get(o)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let o=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(o=this.prefix+o),this.suffix&&(o+=this.suffix),o}return e.toString()}return""}parseValue(e){let n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if("-"===n)return n;let o=+n;return isNaN(o)?null:o}return null}repeat(e,n,o){if(this.readonly)return;let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let o=this.step*n,s=this.parseValue(this.input?.nativeElement.value)||0,r=this.validateValue(s+o);this.maxlength&&this.maxlength0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n-1)+s.slice(n)}this.updateValue(e,r,null,"delete-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Delete":if(e.preventDefault(),n===o){const a=s.charAt(n),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,r=s.slice(0,n)+s.slice(n+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input?.nativeElement.setSelectionRange(n+1,n+1):r=s.slice(0,n)+s.slice(n+1);else if(l>0&&n>l){const p=this.isDecimalMode()&&(this.minFractionDigits||0)0?r:""):r=s.slice(0,n)+s.slice(n+1)}this.updateValue(e,r,null,"delete-back-single")}else r=this.deleteRange(s,n,o),this.updateValue(e,r,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault())}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let n=e.which||e.keyCode,o=String.fromCharCode(n);const s=this.isDecimalSign(o),r=this.isMinusSign(o);13!=n&&e.preventDefault();const a=this.parseValue(this.input.nativeElement.value+o),l=null!=a?a.toString():"";this.maxlength&&l.length>this.maxlength||(48<=n&&n<=57||r||s)&&this.insert(e,o,{isDecimalSign:s,isMinusSign:r})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(n){this.maxlength&&(n=n.toString().substring(0,this.maxlength));let o=this.parseValue(n);null!=o&&this.insert(e,o.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const n=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const r=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:o,suffixCharIndex:s,currencyCharIndex:r}}insert(e,n,o={isDecimalSign:!1,isMinusSign:!1}){const s=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let r=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:p,currencyCharIndex:m}=this.getCharIndexes(l);let _;if(o.isMinusSign)0===r&&(_=l,(-1===u||0!==a)&&(_=this.insertText(l,n,0,a)),this.updateValue(e,_,n,"insert"));else if(o.isDecimalSign)c>0&&r===c?this.updateValue(e,l,n,"insert"):(c>r&&c0&&r>c){if(r+n.length-(c+1)<=b){const P=m>=r?m-1:p>=r?p:l.length;_=l.slice(0,r)+n+l.slice(r+n.length,P)+l.slice(P),this.updateValue(e,_,n,E)}}else _=this.insertText(l,n,r,a),this.updateValue(e,_,n,E)}}insertText(e,n,o,s){if(2===("."===n?n:n.split(".")).length){const a=e.slice(o,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,o)+this.formatValue(n)+e.slice(s):e||this.formatValue(n)}return s-o===e.length?this.formatValue(n):0===o?n+e.slice(s):s===e.length?e.slice(0,o)+n:e.slice(0,o)+n+e.slice(s)}deleteRange(e,n,o){let s;return s=o-n===e.length?"":0===n?e.slice(o):o===e.length?e.slice(0,n):e.slice(0,n)+e.slice(o),s}initCursor(){let e=this.input?.nativeElement.selectionStart,n=this.input?.nativeElement.value,o=n.length,s=null,r=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e-=r;let a=n.charAt(e);if(this.isNumeralChar(a))return e+r;let l=e-1;for(;l>=0;){if(a=n.charAt(l),this.isNumeralChar(a)){s=l+r;break}l--}if(null!==s)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,n,o,s){n=n||"";let r=this.input?.nativeElement.value,a=this.formatValue(e),l=r.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),c=Math.min(c,this.maxlength),u=Math.min(u,this.maxlength)),this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft),V($i))};static \u0275cmp=Oe({type:t,selectors:[["p-inputNumber"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(TZ,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-inputnumber-clearable",o.showClear&&"vertical"!=o.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[yt([nY]),Hn],decls:7,vars:39,consts:[[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"ngClass","click"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"ngClass","disabled","mousedown","mouseup","mouseleave","keydown","keyup"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("input",function(r){return o.onUserInput(r)})("keydown",function(r){return o.onInputKeyDown(r)})("keypress",function(r){return o.onInputKeyPress(r)})("paste",function(r){return o.onPaste(r)})("click",function(){return o.onInputClick()})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A(),g(3,MZ,3,2,"ng-container",3),g(4,jZ,7,19,"span",4),g(5,WZ,3,9,"button",5),g(6,eY,3,9,"button",5),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(35,tY,o.showButtons&&"stacked"===o.buttonLayout,o.showButtons&&"horizontal"===o.buttonLayout,o.showButtons&&"vertical"===o.buttonLayout))("ngStyle",o.style),K("data-pc-name","inputnumber")("data-pc-section","root"),h(1),Ve(o.inputStyleClass),d("ngClass","p-inputnumber-input")("ngStyle",o.inputStyle)("value",o.formattedValue())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("aria-valuemin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("placeholder",o.placeholder)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("title",o.title)("size",o.size)("name",o.name)("autocomplete",o.autocomplete)("maxlength",o.maxlength)("tabindex",o.tabindex)("aria-required",o.ariaRequired)("required",o.required)("min",o.min)("max",o.max)("data-pc-section","input"),h(2),d("ngIf","vertical"!=o.buttonLayout&&o.showClear&&o.value),h(1),d("ngIf",o.showButtons&&"stacked"===o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout),h(1),d("ngIf",o.showButtons&&"stacked"!==o.buttonLayout))},dependencies:function(){return[Ct,gt,on,Ht,hC,hf,mn,If,Or]},styles:["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),fC=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Mi,mn,If,Or,Qe]})}return t})(),gC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),mC=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),_C=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Zo=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function iY(t,i){1&t&&ze(0)}const IC=function(t){return{$implicit:t}};function oY(t,i){if(1&t&&(x(0,"div",15),g(1,iY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","start"),h(1),d("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function sY(t,i){if(1&t&&(x(0,"span",17),Le(1),A()),2&t){const e=f(2);h(1),dt(e.currentPageReport)}}function rY(t,i){1&t&&le(0,"AngleDoubleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function aY(t,i){}function lY(t,i){1&t&&g(0,aY,0,0,"ng-template")}function cY(t,i){if(1&t&&(x(0,"span",20),g(1,lY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}const Cf=function(t){return{"p-disabled":t}};function uY(t,i){if(1&t){const e=De();x(0,"button",18),me("click",function(o){return G(e),q(f(2).changePageToFirst(o))}),g(1,rY,1,1,"AngleDoubleLeftIcon",6),g(2,cY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isFirstPage()||e.empty())("ngClass",He(5,Cf,e.isFirstPage()||e.empty())),K("aria-label","firstPageLabel"),h(1),d("ngIf",!e.firstPageLinkIconTemplate),h(1),d("ngIf",e.firstPageLinkIconTemplate)}}function dY(t,i){1&t&&le(0,"AngleLeftIcon",19),2&t&&d("styleClass","p-paginator-icon")}function pY(t,i){}function hY(t,i){1&t&&g(0,pY,0,0,"ng-template")}function fY(t,i){if(1&t&&(x(0,"span",20),g(1,hY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}const gY=function(t){return{"p-highlight":t}};function mY(t,i){if(1&t){const e=De();x(0,"button",24),me("click",function(o){const r=G(e).$implicit;return q(f(3).onPageLinkClick(o,r-1))}),Le(1),A()}if(2&t){const e=i.$implicit,n=f(3);d("ngClass",He(2,gY,e-1==n.getPage())),h(1),Pt(" ",n.getLocalization(e)," ")}}function _Y(t,i){if(1&t&&(x(0,"span",22),g(1,mY,2,4,"button",23),A()),2&t){const e=f(2);h(1),d("ngForOf",e.pageLinks)}}function IY(t,i){1&t&&Le(0),2&t&&dt(f(3).currentPageReport)}function CY(t,i){if(1&t){const e=De();x(0,"p-dropdown",25),me("onChange",function(o){return G(e),q(f(2).onPageDropdownChange(o))}),g(1,IY,1,1,"ng-template",26),A()}if(2&t){const e=f(2);d("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),K("aria-label","jumpToPageDropdownLabel")}}function vY(t,i){1&t&&le(0,"AngleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function bY(t,i){}function yY(t,i){1&t&&g(0,bY,0,0,"ng-template")}function xY(t,i){if(1&t&&(x(0,"span",20),g(1,yY,1,0,null,21),A()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function AY(t,i){1&t&&le(0,"AngleDoubleRightIcon",19),2&t&&d("styleClass","p-paginator-icon")}function wY(t,i){}function TY(t,i){1&t&&g(0,wY,0,0,"ng-template")}function SY(t,i){if(1&t&&(x(0,"span",20),g(1,TY,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function EY(t,i){if(1&t){const e=De();x(0,"button",27),me("click",function(o){return G(e),q(f(2).changePageToLast(o))}),g(1,AY,1,1,"AngleDoubleRightIcon",6),g(2,SY,2,1,"span",7),A()}if(2&t){const e=f(2);d("disabled",e.isLastPage()||e.empty())("ngClass",He(4,Cf,e.isLastPage()||e.empty())),h(1),d("ngIf",!e.lastPageLinkIconTemplate),h(1),d("ngIf",e.lastPageLinkIconTemplate)}}function DY(t,i){if(1&t){const e=De();x(0,"p-inputNumber",28),me("ngModelChange",function(o){return G(e),q(f(2).changePage(o-1))}),A()}if(2&t){const e=f(2);d("ngModel",e.currentPage())("disabled",e.empty())}}function kY(t,i){1&t&&ze(0)}function MY(t,i){if(1&t&&g(0,kY,1,0,"ng-container",16),2&t){const e=i.$implicit;d("ngTemplateOutlet",f(4).dropdownItemTemplate)("ngTemplateOutletContext",He(2,IC,e))}}function OY(t,i){1&t&&(we(0),g(1,MY,1,4,"ng-template",31),Te())}function LY(t,i){if(1&t){const e=De();x(0,"p-dropdown",29),me("ngModelChange",function(o){return G(e),q(f(2).rows=o)})("onChange",function(o){return G(e),q(f(2).onRppChange(o))}),g(1,OY,2,0,"ng-container",30),A()}if(2&t){const e=f(2);d("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),h(1),d("ngIf",e.dropdownItemTemplate)}}function PY(t,i){1&t&&ze(0)}function FY(t,i){if(1&t&&(x(0,"div",32),g(1,PY,1,0,"ng-container",16),A()),2&t){const e=f(2);K("data-pc-section","end"),h(1),d("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",He(3,IC,e.paginatorState))}}function RY(t,i){if(1&t){const e=De();x(0,"div",1),g(1,oY,2,5,"div",2),g(2,sY,2,1,"span",3),g(3,uY,3,7,"button",4),x(4,"button",5),me("click",function(o){return G(e),q(f().changePageToPrev(o))}),g(5,dY,1,1,"AngleLeftIcon",6),g(6,fY,2,1,"span",7),A(),g(7,_Y,2,1,"span",8),g(8,CY,2,6,"p-dropdown",9),x(9,"button",10),me("click",function(o){return G(e),q(f().changePageToNext(o))}),g(10,vY,1,1,"AngleRightIcon",6),g(11,xY,2,1,"span",7),A(),g(12,EY,3,6,"button",11),g(13,DY,1,2,"p-inputNumber",12),g(14,LY,2,6,"p-dropdown",13),g(15,FY,2,5,"div",14),A()}if(2&t){const e=f();Ve(e.styleClass),d("ngStyle",e.style)("ngClass","p-paginator p-component"),K("data-pc-section","paginator")("data-pc-section","root"),h(1),d("ngIf",e.templateLeft),h(1),d("ngIf",e.showCurrentPageReport),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("disabled",e.isFirstPage()||e.empty())("ngClass",He(25,Cf,e.isFirstPage()||e.empty())),K("aria-label","prevPageLabel"),h(1),d("ngIf",!e.previousPageLinkIconTemplate),h(1),d("ngIf",e.previousPageLinkIconTemplate),h(1),d("ngIf",e.showPageLinks),h(1),d("ngIf",e.showJumpToPageDropdown),h(1),d("disabled",e.isLastPage()||e.empty())("ngClass",He(27,Cf,e.isLastPage()||e.empty())),K("aria-label","lastPageLabel"),h(1),d("ngIf",!e.nextPageLinkIconTemplate),h(1),d("ngIf",e.nextPageLinkIconTemplate),h(1),d("ngIf",e.showFirstLastIcon),h(1),d("ngIf",e.showJumpToPageInput),h(1),d("ngIf",e.rowsPerPageOptions),h(1),d("ngIf",e.templateRight)}}let NY=(()=>{class t{cd;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new ge;templates;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e){this.cd=e}ngOnInit(){this.updatePaginatorState()}getLocalization(e){const n=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(n.map((s,r)=>[r,s]));return e>9?String(e).split("").map(r=>o.get(Number(r))).join(""):o.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),n=Math.min(this.pageLinkSize,e),o=Math.max(0,Math.ceil(this.getPage()-n/2)),s=Math.min(e-1,o+n-1);return o=Math.max(0,o-(this.pageLinkSize-(s-o+1))),[o,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),o=e[1];for(let s=e[0];s<=o;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,n){this.changePage(n),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-paginator"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Hn],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(n,o){1&n&&g(0,RY,16,29,"div",0),2&n&&d("ngIf",!!o.alwaysShow||o.pageLinks&&o.pageLinks.length>1)},dependencies:function(){return[Ct,Jn,gt,on,Ht,fk,sn,_k,sS,xh,oo,gC,mC,_C,Zo]},styles:["@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),vf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,_f,fC,uu,Qe,dn,gC,mC,_C,Zo,_f,fC,uu,Qe]})}return t})();const VY=["container"];function BY(t,i){1&t&&le(0,"span",8),2&t&&(Ve(f(2).$implicit.icon),d("ngClass","p-button-icon p-button-icon-left"),K("data-pc-section","icon"))}function HY(t,i){if(1&t&&(we(0),g(1,BY,1,4,"span",6),x(2,"span",7),Le(3),A(),Te()),2&t){const e=f().$implicit,n=f();h(1),d("ngIf",e.icon),h(1),K("data-pc-section","label"),h(1),dt(n.getOptionLabel(e))}}function zY(t,i){1&t&&ze(0)}const jY=function(t,i){return{$implicit:t,index:i}};function UY(t,i){if(1&t&&g(0,zY,1,0,"ng-container",9),2&t){const e=f(),n=e.$implicit,o=e.index;d("ngTemplateOutlet",f().selectButtonTemplate)("ngTemplateOutletContext",mt(2,jY,n,o))}}const $Y=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}};function KY(t,i){if(1&t){const e=De();x(0,"div",3),me("click",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onOptionSelect(o,r,a))})("keydown",function(o){const s=G(e),r=s.$implicit,a=s.index;return q(f().onKeyDown(o,r,a))})("focus",function(o){const r=G(e).index;return q(f().onFocus(o,r))})("blur",function(){return G(e),q(f().onBlur())}),g(1,HY,4,3,"ng-container",4),g(2,UY,1,5,"ng-template",null,5,In),A()}if(2&t){const e=i.$implicit,n=i.index,o=Bt(3),s=f();Ve(e.styleClass),d("role",s.multiple?"checkbox":"radio")("ngClass",Rn(14,$Y,s.isSelected(e),s.disabled||s.isOptionDisabled(e),e.icon&&!s.getOptionLabel(e))),K("tabindex",n===s.focusedIndex?"0":"-1")("aria-label",e.label)("aria-checked",s.isSelected(e))("aria-disabled",s.optionDisabled)("aria-pressed",s.isSelected(e))("title",e.title)("aria-labelledby",s.getOptionLabel(e))("data-pc-section","button"),h(1),d("ngIf",!s.itemTemplate)("ngIfElse",o)}}const GY={provide:un,useExisting:ft(()=>qY),multi:!0};let qY=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;onOptionClick=new ge;onChange=new ge;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,n,o){if(this.disabled||this.isOptionDisabled(n))return;let s=this.isSelected(n);if(s&&this.unselectable)return;let a,r=this.getOptionValue(n);if(this.multiple)a=s?this.value.filter(l=>!be.equals(l,r,this.equalityKey)):this.value?[...this.value,r]:[r];else{if(s&&!this.allowEmpty)return;a=s?null:r}this.focusedIndex=o,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:n,index:o})}onKeyDown(e,n,o){switch(e.code){case"Space":this.onOptionSelect(e,n,o),e.preventDefault();break;case"ArrowDown":case"ArrowRight":this.changeTabIndexes(e,"next"),e.preventDefault();break;case"ArrowUp":case"ArrowLeft":this.changeTabIndexes(e,"prev"),e.preventDefault()}}changeTabIndexes(e,n){let o,s;for(let r=0;r<=this.container.nativeElement.children.length-1;r++)"0"===this.container.nativeElement.children[r].getAttribute("tabindex")&&(o={elem:this.container.nativeElement.children[r],index:r});s="prev"===n?0===o.index?this.container.nativeElement.children.length-1:o.index-1:o.index===this.container.nativeElement.children.length-1?0:o.index+1,this.focusedIndex=s,this.container.nativeElement.children[s].focus()}onFocus(e,n){this.focusedIndex=n}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!be.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1;const o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let s of this.value)if(be.equals(s,o,this.dataKey)){n=!0;break}}else n=be.equals(this.getOptionValue(e),this.value,this.equalityKey);return n}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-selectButton"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,5),2&n){let r;Se(r=Ee())&&(o.itemTemplate=r.first)}},viewQuery:function(n,o){if(1&n&&je(VY,5),2&n){let s;Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:"unselectable",tabindex:"tabindex",multiple:"multiple",allowEmpty:"allowEmpty",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[yt([GY])],decls:3,vars:8,consts:[["role","group",3,"ngClass","ngStyle"],["container",""],["pRipple","","class","p-button p-component",3,"role","class","ngClass","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","",1,"p-button","p-component",3,"role","ngClass","click","keydown","focus","blur"],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,KY,4,18,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",o.style),K("aria-labelledby",o.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),h(2),d("ngForOf",o.options))},dependencies:[Ct,Jn,gt,on,Ht,oo],styles:['@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}p-button[iconpos=right] spinnericon{order:1}}\n'],encapsulation:2,changeDetection:0})}return t})(),Ik=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,Qe]})}return t})(),yi=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();function WY(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxTrueIcon),K("data-pc-section","checkIcon"))}function QY(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","checkIcon"))}function ZY(t,i){}function YY(t,i){1&t&&g(0,ZY,0,0,"ng-template")}function XY(t,i){if(1&t&&(x(0,"span",12),g(1,YY,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","checkIcon"),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function JY(t,i){if(1&t&&(we(0),g(1,QY,1,2,"CheckIcon",9),g(2,XY,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function eX(t,i){if(1&t&&(we(0),g(1,WY,1,2,"span",7),g(2,JY,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxTrueIcon),h(1),d("ngIf",!e.checkboxTrueIcon)}}function tX(t,i){1&t&&le(0,"span",8),2&t&&(d("ngClass",f(2).checkboxFalseIcon),K("data-pc-section","uncheckIcon"))}function nX(t,i){1&t&&le(0,"TimesIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","uncheckIcon"))}function iX(t,i){}function oX(t,i){1&t&&g(0,iX,0,0,"ng-template")}function sX(t,i){if(1&t&&(x(0,"span",12),g(1,oX,1,0,null,13),A()),2&t){const e=f(3);K("data-pc-section","uncheckIcon"),h(1),d("ngTemplateOutlet",e.uncheckIconTemplate)}}function rX(t,i){if(1&t&&(we(0),g(1,nX,1,2,"TimesIcon",9),g(2,sX,2,2,"span",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.uncheckIconTemplate),h(1),d("ngIf",e.uncheckIconTemplate)}}function aX(t,i){if(1&t&&(we(0),g(1,tX,1,2,"span",7),g(2,rX,3,2,"ng-container",5),Te()),2&t){const e=f();h(1),d("ngIf",e.checkboxFalseIcon),h(1),d("ngIf",!e.checkboxFalseIcon)}}const lX=function(t,i,e){return{"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function cX(t,i){if(1&t&&(x(0,"label",14),Le(1),A()),2&t){const e=f();d("ngClass",Rn(3,lX,null!=e.value,e.disabled,e.focused)),K("for",e.inputId),h(1),dt(e.label)}}const uX=function(t,i){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}},dX=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},pX={provide:un,useExisting:ft(()=>hX),multi:!0};let hX=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabel;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;onChange=new ge;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.focus())}onKeyDown(e){"Enter"===e.key&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[yt([pX])],decls:8,vars:26,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none",3,"name","readonly","disabled","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-tristatecheckbox-label",3,"ngClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-tristatecheckbox-label",3,"ngClass"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.onClick(a,l))}),x(1,"div",1)(2,"input",2,3),me("keydown",function(a){return o.onKeyDown(a)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,eX,3,2,"ng-container",5),g(6,aX,3,2,"ng-container",5),A()(),g(7,cX,2,7,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(19,uX,o.disabled,o.focused)),K("data-pc-name","tristatecheckbox")("data-pc-section","root"),h(2),d("name",o.name)("readonly",o.readonly)("disabled",o.disabled),K("id",o.inputId)("tabindex",o.tabindex)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(22,dX,null!=o.value,o.disabled,o.focused)),K("aria-checked",!0===o.value),h(1),d("ngIf",!0===o.value),h(1),d("ngIf",!1===o.value),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi,mn]},encapsulation:2,changeDetection:0})}return t})(),fX=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,yi,mn,Qe]})}return t})(),CC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),gX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Ck=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[st,Et],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),A(),x(6,"defs")(7,"clipPath",5),le(8,"rect",6),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(6),d("id",o.pathId))},encapsulation:2})}return t})(),vk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2.59836 13.2009C2.44634 13.2009 2.29432 13.1449 2.1743 13.0248L0.174024 11.0246C-0.0580081 10.7925 -0.0580081 10.4085 0.174024 10.1764C0.406057 9.94441 0.79011 9.94441 1.02214 10.1764L2.59836 11.7527L4.17458 10.1764C4.40662 9.94441 4.79067 9.94441 5.0227 10.1764C5.25473 10.4085 5.25473 10.7925 5.0227 11.0246L3.02242 13.0248C2.90241 13.1449 2.75038 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M2.59836 13.2009C2.27032 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92641 13.2009 2.59836 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),bk=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[st,Et],decls:11,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.59864 3.99958C4.44662 3.99958 4.2946 3.94357 4.17458 3.82356L2.59836 2.24734L1.02214 3.82356C0.79011 4.05559 0.406057 4.05559 0.174024 3.82356C-0.0580081 3.59152 -0.0580081 3.20747 0.174024 2.97544L2.1743 0.97516C2.40634 0.743127 2.79039 0.743127 3.02242 0.97516L5.0227 2.97544C5.25473 3.20747 5.25473 3.59152 5.0227 3.82356C4.90268 3.94357 4.75066 3.99958 4.59864 3.99958Z","fill","currentColor"],["d","M2.59841 13.2009C2.27036 13.2009 1.99833 12.9288 1.99833 12.6008V1.39922C1.99833 1.07117 2.27036 0.799133 2.59841 0.799133C2.92646 0.799133 3.19849 1.07117 3.19849 1.39922V12.6008C3.19849 12.9288 2.92646 13.2009 2.59841 13.2009Z","fill","currentColor"],["d","M13.3999 11.2006H6.99902C6.67098 11.2006 6.39894 10.9285 6.39894 10.6005C6.39894 10.2725 6.67098 10.0004 6.99902 10.0004H13.3999C13.728 10.0004 14 10.2725 14 10.6005C14 10.9285 13.728 11.2006 13.3999 11.2006Z","fill","currentColor"],["d","M10.1995 6.39991H6.99902C6.67098 6.39991 6.39894 6.12788 6.39894 5.79983C6.39894 5.47179 6.67098 5.19975 6.99902 5.19975H10.1995C10.5275 5.19975 10.7996 5.47179 10.7996 5.79983C10.7996 6.12788 10.5275 6.39991 10.1995 6.39991Z","fill","currentColor"],["d","M8.59925 3.99958H6.99902C6.67098 3.99958 6.39894 3.72754 6.39894 3.3995C6.39894 3.07145 6.67098 2.79941 6.99902 2.79941H8.59925C8.92729 2.79941 9.19933 3.07145 9.19933 3.3995C9.19933 3.72754 8.92729 3.99958 8.59925 3.99958Z","fill","currentColor"],["d","M11.7997 8.80025H6.99902C6.67098 8.80025 6.39894 8.52821 6.39894 8.20017C6.39894 7.87212 6.67098 7.60008 6.99902 7.60008H11.7997C12.1277 7.60008 12.3998 7.87212 12.3998 8.20017C12.3998 8.52821 12.1277 8.80025 11.7997 8.80025Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4)(6,"path",5)(7,"path",6),A(),x(8,"defs")(9,"clipPath",7),le(10,"rect",8),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(8),d("id",o.pathId))},encapsulation:2})}return t})(),mX=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const _X=["container"],IX=["resizeHelper"],CX=["reorderIndicatorUp"],vX=["reorderIndicatorDown"],bX=["wrapper"],yX=["table"],xX=["thead"],AX=["tfoot"],wX=["scroller"];function TX(t,i){1&t&&le(0,"i"),2&t&&Ve("p-datatable-loading-icon "+f(2).loadingIcon)}function SX(t,i){1&t&&le(0,"SpinnerIcon",19),2&t&&d("spin",!0)("styleClass","p-datatable-loading-icon")}function EX(t,i){}function DX(t,i){1&t&&g(0,EX,0,0,"ng-template")}function kX(t,i){if(1&t&&(x(0,"span",20),g(1,DX,1,0,null,21),A()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function MX(t,i){if(1&t&&(we(0),g(1,SX,1,2,"SpinnerIcon",17),g(2,kX,2,1,"span",18),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function OX(t,i){if(1&t&&(x(0,"div",15),g(1,TX,1,2,"i",16),g(2,MX,3,2,"ng-container",8),A()),2&t){const e=f();h(1),d("ngIf",e.loadingIcon),h(1),d("ngIf",!e.loadingIcon)}}function LX(t,i){1&t&&ze(0)}function PX(t,i){if(1&t&&(x(0,"div",22),g(1,LX,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.captionTemplate)}}function FX(t,i){1&t&&ze(0)}function RX(t,i){1&t&&g(0,FX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function NX(t,i){1&t&&g(0,RX,1,1,"ng-template",24)}function VX(t,i){1&t&&ze(0)}function BX(t,i){1&t&&g(0,VX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function HX(t,i){1&t&&g(0,BX,1,1,"ng-template",25)}function zX(t,i){1&t&&ze(0)}function jX(t,i){1&t&&g(0,zX,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function UX(t,i){1&t&&g(0,jX,1,1,"ng-template",26)}function $X(t,i){1&t&&ze(0)}function KX(t,i){1&t&&g(0,$X,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function GX(t,i){1&t&&g(0,KX,1,1,"ng-template",27)}function qX(t,i){if(1&t){const e=De();x(0,"p-paginator",23),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,NX,1,0,null,8),g(2,HX,1,0,null,8),g(3,UX,1,0,null,8),g(4,GX,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function WX(t,i){1&t&&ze(0)}const yk=function(t,i){return{$implicit:t,options:i}};function QX(t,i){if(1&t&&g(0,WX,1,0,"ng-container",31),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(10))("ngTemplateOutletContext",mt(2,yk,e,n))}}const ZX=function(t){return{height:t}};function YX(t,i){if(1&t){const e=De();x(0,"p-scroller",28,29),me("onLazyLoad",function(o){return G(e),q(f().onLazyItemLoad(o))}),g(2,QX,1,5,"ng-template",30),A()}if(2&t){const e=f();yn(He(15,ZX,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),d("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function XX(t,i){1&t&&ze(0)}const JX=function(t){return{columns:t}};function eJ(t,i){if(1&t&&(we(0),g(1,XX,1,0,"ng-container",31),Te()),2&t){const e=f(),n=Bt(10);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(4,yk,e.processedData,He(2,JX,e.columns)))}}function tJ(t,i){1&t&&ze(0)}function nJ(t,i){1&t&&ze(0)}function iJ(t,i){if(1&t&&le(0,"tbody",40),2&t){const e=f().options,n=f();d("value",n.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",n.frozenBodyTemplate)("frozen",!0)}}function oJ(t,i){if(1&t&&le(0,"tbody",41),2&t){const e=f().options;yn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function sJ(t,i){1&t&&ze(0)}const Lr=function(t){return{$implicit:t}};function rJ(t,i){if(1&t&&(x(0,"tfoot",42,43),g(2,sJ,1,0,"ng-container",31),A()),2&t){const e=f().options,n=f();h(2),d("ngTemplateOutlet",n.footerGroupedTemplate||n.footerTemplate)("ngTemplateOutletContext",He(2,Lr,e.columns))}}const aJ=function(t,i,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":i,"p-datatable-resizable-table-fit":e}};function lJ(t,i){if(1&t&&(x(0,"table",32,33),g(2,tJ,1,0,"ng-container",31),x(3,"thead",34,35),g(5,nJ,1,0,"ng-container",31),A(),g(6,iJ,1,5,"tbody",36),le(7,"tbody",37),g(8,oJ,1,2,"tbody",38),g(9,rJ,3,4,"tfoot",39),A()),2&t){const e=i.options,n=f();yn(n.tableStyle),Ve(n.tableStyleClass),d("ngClass",Rn(20,aJ,n.scrollable,n.resizableColumns,n.resizableColumns&&"fit"===n.columnResizeMode)),K("id",n.id+"-table"),h(2),d("ngTemplateOutlet",n.colGroupTemplate)("ngTemplateOutletContext",He(24,Lr,e.columns)),h(3),d("ngTemplateOutlet",n.headerGroupedTemplate||n.headerTemplate)("ngTemplateOutletContext",He(26,Lr,e.columns)),h(1),d("ngIf",n.frozenValue||n.frozenBodyTemplate),h(1),yn(e.contentStyle),d("ngClass",e.contentStyleClass)("value",n.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",n.bodyTemplate)("scrollerOptions",e),h(1),d("ngIf",e.spacerStyle),h(1),d("ngIf",n.footerGroupedTemplate||n.footerTemplate)}}function cJ(t,i){1&t&&ze(0)}function uJ(t,i){1&t&&g(0,cJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorFirstPageLinkIconTemplate)}function dJ(t,i){1&t&&g(0,uJ,1,1,"ng-template",24)}function pJ(t,i){1&t&&ze(0)}function hJ(t,i){1&t&&g(0,pJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorPreviousPageLinkIconTemplate)}function fJ(t,i){1&t&&g(0,hJ,1,1,"ng-template",25)}function gJ(t,i){1&t&&ze(0)}function mJ(t,i){1&t&&g(0,gJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorLastPageLinkIconTemplate)}function _J(t,i){1&t&&g(0,mJ,1,1,"ng-template",26)}function IJ(t,i){1&t&&ze(0)}function CJ(t,i){1&t&&g(0,IJ,1,0,"ng-container",21),2&t&&d("ngTemplateOutlet",f(3).paginatorNextPageLinkIconTemplate)}function vJ(t,i){1&t&&g(0,CJ,1,1,"ng-template",27)}function bJ(t,i){if(1&t){const e=De();x(0,"p-paginator",44),me("onPageChange",function(o){return G(e),q(f().onPageChange(o))}),g(1,dJ,1,0,null,8),g(2,fJ,1,0,null,8),g(3,_J,1,0,null,8),g(4,vJ,1,0,null,8),A()}if(2&t){const e=f();d("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.paginatorStyleClass)("locale",e.paginatorLocale),h(1),d("ngIf",e.paginatorFirstPageLinkIconTemplate),h(1),d("ngIf",e.paginatorPreviousPageLinkIconTemplate),h(1),d("ngIf",e.paginatorLastPageLinkIconTemplate),h(1),d("ngIf",e.paginatorNextPageLinkIconTemplate)}}function yJ(t,i){1&t&&ze(0)}function xJ(t,i){if(1&t&&(x(0,"div",45),g(1,yJ,1,0,"ng-container",21),A()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.summaryTemplate)}}function AJ(t,i){1&t&&le(0,"div",46,47)}function wJ(t,i){1&t&&le(0,"ArrowDownIcon")}function TJ(t,i){}function SJ(t,i){1&t&&g(0,TJ,0,0,"ng-template")}function EJ(t,i){if(1&t&&(x(0,"span",48,49),g(2,wJ,1,0,"ArrowDownIcon",8),g(3,SJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorUpIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function DJ(t,i){1&t&&le(0,"ArrowUpIcon")}function kJ(t,i){}function MJ(t,i){1&t&&g(0,kJ,0,0,"ng-template")}function OJ(t,i){if(1&t&&(x(0,"span",50,51),g(2,DJ,1,0,"ArrowUpIcon",8),g(3,MJ,1,0,null,21),A()),2&t){const e=f();h(2),d("ngIf",!e.reorderIndicatorDownIconTemplate),h(1),d("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}const LJ=function(t,i,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":i,"p-datatable-flex-scrollable":e}},PJ=function(t){return{maxHeight:t}},FJ=["pTableBody",""];function RJ(t,i){1&t&&ze(0)}const bC=function(t,i,e,n,o){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o}};function NJ(t,i){if(1&t&&(we(0,3),g(1,RJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function VJ(t,i){1&t&&ze(0)}function BJ(t,i){if(1&t&&(we(0),g(1,VJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function HJ(t,i){1&t&&ze(0)}const zJ=function(t,i,e,n,o,s,r){return{$implicit:t,rowIndex:i,columns:e,editing:n,frozen:o,rowgroup:s,rowspan:r}};function jJ(t,i){if(1&t&&(we(0),g(1,HJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",n?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",function Aw(t,i,e,n,o,s,r,a,l,c){const u=zi()+t,p=Ne();let m=Do(p,u,e,n,o,s);return Dp(p,u+4,r,a,l)||m?ls(p,u+7,c?i.call(c,e,n,o,s,r,a,l):i(e,n,o,s,r,a,l)):zc(p,u+7)}(2,zJ,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen,s.shouldRenderRowspan(s.value,n,o),s.calculateRowGroupSize(s.value,n,o)))}}function UJ(t,i){1&t&&ze(0)}function $J(t,i){if(1&t&&(we(0,3),g(1,UJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Hp(2,bC,n,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function KJ(t,i){if(1&t&&(g(0,NJ,2,8,"ng-container",2),g(1,BJ,2,8,"ng-container",0),g(2,jJ,2,10,"ng-container",0),g(3,$J,2,8,"ng-container",2)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",o.dt.groupHeaderTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,n)),h(1),d("ngIf","rowspan"!==o.dt.rowGroupMode),h(1),d("ngIf","rowspan"===o.dt.rowGroupMode),h(1),d("ngIf",o.dt.groupFooterTemplate&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,e,n))}}function GJ(t,i){if(1&t&&(we(0),g(1,KJ,4,4,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function qJ(t,i){1&t&&ze(0)}const bf=function(t,i,e,n,o,s){return{$implicit:t,rowIndex:i,columns:e,expanded:n,editing:o,frozen:s}};function WJ(t,i){if(1&t&&(we(0),g(1,qJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.template)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function QJ(t,i){1&t&&ze(0)}function ZJ(t,i){if(1&t&&(we(0,3),g(1,QJ,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}function YJ(t,i){1&t&&ze(0)}function XJ(t,i){1&t&&ze(0)}function JJ(t,i){if(1&t&&(we(0,3),g(1,XJ,1,0,"ng-container",4),Te()),2&t){const e=f(2),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",ea(2,bf,n,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(n),"row"===s.dt.editMode&&s.dt.isRowEditing(n),s.frozen))}}const xk=function(t,i,e,n){return{$implicit:t,rowIndex:i,columns:e,frozen:n}};function eee(t,i){if(1&t&&(we(0),g(1,YJ,1,0,"ng-container",4),g(2,JJ,2,9,"ng-container",2),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",gr(3,xk,n,s.getRowIndex(o),s.columns,s.frozen)),h(1),d("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,n,s.getRowIndex(o)))}}function tee(t,i){if(1&t&&(g(0,WJ,2,9,"ng-container",0),g(1,ZJ,2,9,"ng-container",2),g(2,eee,3,8,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngIf",!o.dt.groupHeaderTemplate),h(1),d("ngIf",o.dt.groupHeaderTemplate&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(n))),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function nee(t,i){if(1&t&&(we(0),g(1,tee,3,3,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function iee(t,i){1&t&&ze(0)}function oee(t,i){1&t&&ze(0)}function see(t,i){if(1&t&&(we(0),g(1,oee,1,0,"ng-container",4),Te()),2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);h(1),d("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",gr(2,xk,n,s.getRowIndex(o),s.columns,s.frozen))}}function ree(t,i){if(1&t&&(g(0,iee,1,0,"ng-container",4),g(1,see,2,7,"ng-container",0)),2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",ea(3,bf,e,o.getRowIndex(n),o.columns,o.dt.isRowExpanded(e),"row"===o.dt.editMode&&o.dt.isRowEditing(e),o.frozen)),h(1),d("ngIf",o.dt.isRowExpanded(e))}}function aee(t,i){if(1&t&&(we(0),g(1,ree,2,10,"ng-template",1),Te()),2&t){const e=f();h(1),d("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function lee(t,i){1&t&&ze(0)}const Ak=function(t,i){return{$implicit:t,frozen:i}};function cee(t,i){if(1&t&&(we(0),g(1,lee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}function uee(t,i){1&t&&ze(0)}function dee(t,i){if(1&t&&(we(0),g(1,uee,1,0,"ng-container",4),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",mt(2,Ak,e.columns,e.frozen))}}let yC=(()=>{class t{sortSource=new re;selectionSource=new re;contextMenuSource=new re;valueSource=new re;totalRecordsSource=new re;columnsSource=new re;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac})}return t})(),xC=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new ge;contextMenuSelectionMode="separate";dataKey;metaKeySelection;rowSelectable;rowTrackBy=(e,n)=>n;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new ge;selectionChange=new ge;onRowSelect=new ge;onRowUnselect=new ge;onPage=new ge;onSort=new ge;onFilter=new ge;onLazyLoad=new ge;onRowExpand=new ge;onRowCollapse=new ge;onContextMenuSelect=new ge;onColResize=new ge;onColReorder=new ge;onRowReorder=new ge;onEditInit=new ge;onEditComplete=new ge;onEditCancel=new ge;onHeaderCheckboxToggle=new ge;sortFunction=new ge;firstChange=new ge;rowsChange=new ge;onStateSave=new ge;onStateRestore=new ge;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=$t();styleElement;responsiveStyleElement;window;constructor(e,n,o,s,r,a,l,c,u,p){this.document=e,this.platformId=n,this.renderer=o,this.el=s,this.zone=r,this.tableService=a,this.cd=l,this.filterService=c,this.overlayService=u,this.config=p,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const n=e||this.processedData;if(n&&this.paginator){const o=this.lazy?0:this.first;return n.slice(o,o+this.rows)}return n}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(be.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(be.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let n=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let o=n.metaKey||n.ctrlKey,s=this.getSortMeta(e.field);s?o?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&n){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:n}):(this.value.sort((s,r)=>{let a=be.resolveFieldData(s,e),l=be.resolveFieldData(r,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):al?1:0,n*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let o={field:e,order:n};this.onSort.emit(o),this.tableService.onSort(o)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,o,s){const r=be.resolveFieldData(e,o[s].field),a=be.resolveFieldData(n,o[s].field);return 0===be.compare(r,a,this.filterLocale)?o.length-1>s?this.multisortField(e,n,o,s+1):0:this.compareValuesOnSort(r,a,o[s].order)}compareValuesOnSort(e,n,o){return be.sort(e,n,o,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let n=0;nb!=m),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row"})}else this.isSingleSelectionMode()?(this._selection=r,this.selectionChange.emit(r),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(p?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,r],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a})):(this._selection=r,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let p=this.findIndexInSelection(r);this._selection=this.selection.filter((m,_)=>_!=p),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,r]:[r],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:r,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const n=e.rowData,o=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(n),r=this.dataKey?String(be.resolveFieldData(n,this.dataKey)):null;if(!s){if(!this.isRowSelectable(n,o))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),r&&(this.selectionKeys={},this.selectionKeys[r]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),r&&(this.selectionKeys[r]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let o,s;this.anchorRowIndex>n?(o=n,s=this.anchorRowIndex):this.anchorRowIndexr?(n=this.anchorRowIndex,o=this.rangeRowIndex):sm!=c);let u=this.dataKey?String(be.resolveFieldData(l,this.dataKey)):null;u&&delete this.selectionKeys[u],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[be.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length)for(let o=0;ol!=r),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:n});else{const o=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let s=this.selectionPageOnly&&this._selection?this._selection.filter(r=>!o.some(a=>this.equals(r,a))):[];n&&(s=this.frozenValue?[...s,...this.frozenValue,...o]:[...s,...o],s=this.rowSelectable?s.filter((r,a)=>this.rowSelectable({data:r,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return"equals"===this.compareSelectionBy?e===n:be.equals(e,n,this.dataKey)}filter(e,n,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let n=0;nthis.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let n of e)n.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let n,o="",s=this.columns;e&&e.selectionOnly?n=this.selection||[]:e&&e.allValues?n=this.value||[]:(n=this.filteredValue||this.value,this.frozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));for(let l=0;l{o+="\n";for(let u=0;u{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(j.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(0===j.find(n,".ng-invalid.ng-dirty").length){let o=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[o]}}cancelRowEdit(e){let n=String(be.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let o=String(be.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[o]?(delete this.expandedRowKeys[o],this.onRowCollapse.emit({originalEvent:n,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[o]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(be.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=j.getOffset(this.containerViewChild?.nativeElement).left;j.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,o=this.resizeColumnElement.offsetWidth+e;if(o>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;o>15&&a>15&&this.resizeTableCells(o,a)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(o,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",j.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const n=j.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return j.find(n,"tr > th").forEach(s=>e.push(j.getOuterWidth(s))),e}onColumnDragStart(e,n){this.reorderIconWidth=j.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=j.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let o=j.getOffset(this.containerViewChild?.nativeElement),s=j.getOffset(n);if(this.draggedColumn!=n){j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),j.indexWithinGroup(n,"preorderablecolumn");let l=s.left-o.left,u=s.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-o.top+n.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,n){if(e.preventDefault(),this.draggedColumn){let o=j.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=j.indexWithinGroup(n,"preorderablecolumn"),r=o!=s;if(r&&(s-o==1&&-1===this.dropPosition||o-s==1&&1===this.dropPosition)&&(r=!1),r&&so&&-1===this.dropPosition&&(s-=1),r&&(be.reorderArray(this.columns,o,s),this.onColReorder.emit({dragIndex:o,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement&&this.resizeColumnElement.isSameNode(this.draggedColumn)){let a="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();be.reorderArray(a,o+1,s+1),this.updateStyleElement(a,o,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,n){let o=j.index(this.resizeColumnElement),s="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(s,o,e,n)}updateStyleElement(e,n,o,s){this.destroyStyleElement(),this.createStyleElement();let r="";e.forEach((a,l)=>{let c=l===n?o:s&&l===n+1?s:a;r+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {\n width: ${c}px !important; max-width: ${c}px !important;\n }\n `}),this.renderer.setProperty(this.styleElement,"innerHTML",r)}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,o){if(this.rowDragging&&this.draggedRowIndex!==n){let s=j.getOffset(o).top,r=e.pageY,a=s+j.getOuterHeight(o)/2,l=o.previousElementSibling;rthis.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;be.reorderArray(this.value,this.draggedRowIndex,o),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:o})}this.onRowDragLeave(e,n),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!ei(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const n=this.getStorage().getItem(this.stateKey),o=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(n){let r=JSON.parse(n,function(r,a){return"string"==typeof a&&o.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=r.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=r.rows,this.rowsChange.emit(this.rows))),r.sortField&&(this.restoringSort=!0,this._sortField=r.sortField,this._sortOrder=r.sortOrder),r.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=r.multiSortMeta),r.filters&&(this.restoringFilter=!0,this.filters=r.filters),this.resizableColumns&&(this.columnWidthsState=r.columnWidths,this.tableWidthState=r.tableWidth),r.expandedRowKeys&&(this.expandedRowKeys=r.expandedRowKeys),r.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(r.selection)),this.stateRestored=!0,this.onStateRestore.emit(r)}}saveColumnWidths(e){let n=[];j.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(s=>n.push(j.getOuterWidth(s))),e.columnWidths=n.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=j.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),be.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((o,s)=>{n+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {\n width: ${o}px !important; max-width: ${o}px !important\n }\n `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(o=>{n.push(o.field||o.key)}),e.columnOrder=n}}restoreColumnOrder(){const n=this.getStorage().getItem(this.stateKey);if(n){let s=JSON.parse(n).columnOrder;if(s){let r=[];s.map(a=>{let l=this.findColumnByKey(a);l&&r.push(l)}),this.columnOrderStateRestored=!0,this.columns=r}}}findColumnByKey(e){if(!this.columns)return null;for(let n of this.columns)if(n.key===e||n.field===e)return n}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){ei(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n @media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n }\n `))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(bt),V(Tt),V(yC),V(Ft),V(df),V(Dr),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-table"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(_X,5),je(IX,5),je(CX,5),je(vX,5),je(bX,5),je(yX,5),je(xX,5),je(AX,5),je(wX,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.resizeHelperViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorUpViewChild=s.first),Se(s=Ee())&&(o.reorderIndicatorDownViewChild=s.first),Se(s=Ee())&&(o.wrapperViewChild=s.first),Se(s=Ee())&&(o.tableViewChild=s.first),Se(s=Ee())&&(o.tableHeaderViewChild=s.first),Se(s=Ee())&&(o.tableFooterViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[yt([yC]),Hn],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],["role","rowgroup",1,"p-datatable-thead"],["thead",""],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,OX,3,2,"div",2),g(3,PX,2,1,"div",3),g(4,qX,5,23,"p-paginator",4),x(5,"div",5,6),g(7,YX,3,17,"p-scroller",7),g(8,eJ,2,7,"ng-container",8),g(9,lJ,10,28,"ng-template",null,9,In),A(),g(11,bJ,5,23,"p-paginator",10),g(12,xJ,2,1,"div",11),g(13,AJ,2,0,"div",12),g(14,EJ,4,2,"span",13),g(15,OJ,4,2,"span",14),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(16,LJ,o.rowHover||o.selectionMode,o.scrollable,o.scrollable&&"flex"===o.scrollHeight)),K("id",o.id),h(2),d("ngIf",o.loading&&o.showLoader),h(1),d("ngIf",o.captionTemplate),h(1),d("ngIf",o.paginator&&("top"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngStyle",He(20,PJ,o.virtualScroll?"":o.scrollHeight)),h(2),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.paginator&&("bottom"===o.paginatorPosition||"both"==o.paginatorPosition)),h(1),d("ngIf",o.summaryTemplate),h(1),d("ngIf",o.resizableColumns),h(1),d("ngIf",o.reorderableColumns),h(1),d("ngIf",o.reorderableColumns))},dependencies:function(){return[Ct,gt,on,Ht,NY,sn,Bu,CC,vC,_s,rte]},styles:["@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}\n"],encapsulation:2})}return t})(),rte=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,n,o,s){this.dt=e,this.tableService=n,this.cd=o,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o+1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}shouldRenderRowspan(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=e[o-1];return!r||s!==be.resolveFieldData(r,this.dt.groupRowsBy)}calculateRowGroupSize(e,n,o){let s=be.resolveFieldData(n,this.dt.groupRowsBy),r=s,a=0;for(;s===r;){a++;let l=e[++o];if(!l)break;r=be.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=j.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=j.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,n){return this.dt.virtualScroll&&(n=n||this.scrollerOptions)?n[e]:null}getRowIndex(e){const n=this.dt.paginator?this.dt.first+e:e,o=this.getScrollerOption("getItemOptions");return o?o(n).index:n}static \u0275fac=function(n){return new(n||t)(V(xC),V(yC),V(Ft),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:FJ,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(g(0,GJ,2,2,"ng-container",0),g(1,nee,2,2,"ng-container",0),g(2,aee,2,2,"ng-container",0),g(3,cee,2,5,"ng-container",0),g(4,dee,2,5,"ng-container",0)),2&n&&(d("ngIf",!o.dt.expandedRowTemplate),h(1),d("ngIf",o.dt.expandedRowTemplate&&!(o.frozen&&o.dt.frozenExpandedRowTemplate)),h(1),d("ngIf",o.dt.frozenExpandedRowTemplate&&o.frozen),h(1),d("ngIf",o.dt.loading),h(1),d("ngIf",o.dt.isEmpty()&&!o.dt.loading))},dependencies:[Jn,gt,on],encapsulation:2})}return t})(),ate=(()=>{class t{dt;data;pRowTogglerDisabled;constructor(e){this.dt=e}onClick(e){this.isEnabled()&&(this.dt.toggleRow(this.data,e),e.preventDefault())}isEnabled(){return!0!==this.pRowTogglerDisabled}static \u0275fac=function(n){return new(n||t)(V(xC))};static \u0275dir=ut({type:t,selectors:[["","pRowToggler",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("click",function(r){return o.onClick(r)})},inputs:{data:["pRowToggler","data"],pRowTogglerDisabled:"pRowTogglerDisabled"}})}return t})(),wk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,Zs,_f,uu,Mi,Ik,uk,fC,fX,Oi,CC,vC,_s,Ck,bk,vk,yi,gX,mX,Qe,Oi]})}return t})(),Tk=(()=>{class t{el;pFocusTrapDisabled=!1;constructor(e){this.el=e}onkeydown(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();const n=j.getNextFocusableElement(this.el.nativeElement,e.shiftKey);n&&(n.focus(),n.select?.())}}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275dir=ut({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,o){1&n&&me("keydown.tab",function(r){return o.onkeydown(r)})("keydown.shift.tab",function(r){return o.onkeydown(r)})},inputs:{pFocusTrapDisabled:"pFocusTrapDisabled"}})}return t})(),Sk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),AC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),wC=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const lte=["titlebar"],cte=["content"],ute=["footer"];function dte(t,i){if(1&t){const e=De();x(0,"div",11),me("mousedown",function(o){return G(e),q(f(3).initResize(o))}),A()}}function pte(t,i){if(1&t&&(x(0,"span",18),Le(1),A()),2&t){const e=f(4);d("id",e.getAriaLabelledBy()),h(1),dt(e.header)}}function hte(t,i){1&t&&(x(0,"span",18),Kn(1,1),A()),2&t&&d("id",f(4).getAriaLabelledBy())}function fte(t,i){1&t&&ze(0)}function gte(t,i){if(1&t&&le(0,"span",22),2&t){const e=f(5);d("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function mte(t,i){1&t&&le(0,"WindowMaximizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function _te(t,i){1&t&&le(0,"WindowMinimizeIcon",24),2&t&&d("styleClass","p-dialog-header-maximize-icon")}function Ite(t,i){if(1&t&&(we(0),g(1,mte,1,1,"WindowMaximizeIcon",23),g(2,_te,1,1,"WindowMinimizeIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.maximized&&!e.maximizeIconTemplate),h(1),d("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function Cte(t,i){}function vte(t,i){1&t&&g(0,Cte,0,0,"ng-template")}function bte(t,i){if(1&t&&(we(0),g(1,vte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.maximizeIconTemplate)}}function yte(t,i){}function xte(t,i){1&t&&g(0,yte,0,0,"ng-template")}function Ate(t,i){if(1&t&&(we(0),g(1,xte,1,0,null,9),Te()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.minimizeIconTemplate)}}const wte=function(){return{"p-dialog-header-icon p-dialog-header-maximize p-link":!0}};function Tte(t,i){if(1&t){const e=De();x(0,"button",19),me("click",function(){return G(e),q(f(4).maximize())})("keydown.enter",function(){return G(e),q(f(4).maximize())}),g(1,gte,1,1,"span",20),g(2,Ite,3,2,"ng-container",21),g(3,bte,2,1,"ng-container",21),g(4,Ate,2,1,"ng-container",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,wte)),h(1),d("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),h(1),d("ngIf",!e.maximizeIcon),h(1),d("ngIf",!e.maximized),h(1),d("ngIf",e.maximized)}}function Ste(t,i){1&t&&le(0,"span",27),2&t&&d("ngClass",f(6).closeIcon)}function Ete(t,i){1&t&&le(0,"TimesIcon",24),2&t&&d("styleClass","p-dialog-header-close-icon")}function Dte(t,i){if(1&t&&(we(0),g(1,Ste,1,1,"span",26),g(2,Ete,1,1,"TimesIcon",23),Te()),2&t){const e=f(5);h(1),d("ngIf",e.closeIcon),h(1),d("ngIf",!e.closeIcon)}}function kte(t,i){}function Mte(t,i){1&t&&g(0,kte,0,0,"ng-template")}function Ote(t,i){if(1&t&&(x(0,"span"),g(1,Mte,1,0,null,9),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}const Lte=function(){return{"p-dialog-header-icon p-dialog-header-close p-link":!0}};function Pte(t,i){if(1&t){const e=De();x(0,"button",25),me("click",function(o){return G(e),q(f(4).close(o))})("keydown.enter",function(o){return G(e),q(f(4).close(o))}),g(1,Dte,3,2,"ng-container",21),g(2,Ote,2,1,"span",21),A()}if(2&t){const e=f(4);d("ngClass",Jt(5,Lte)),K("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),h(1),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Fte(t,i){if(1&t){const e=De();x(0,"div",12,13),me("mousedown",function(o){return G(e),q(f(3).initDrag(o))}),g(2,pte,2,2,"span",14),g(3,hte,2,1,"span",14),g(4,fte,1,0,"ng-container",9),x(5,"div",15),g(6,Tte,5,6,"button",16),g(7,Pte,3,6,"button",17),A()()}if(2&t){const e=f(3);h(2),d("ngIf",!e.headerFacet&&!e.headerTemplate),h(1),d("ngIf",e.headerFacet),h(1),d("ngTemplateOutlet",e.headerTemplate),h(2),d("ngIf",e.maximizable),h(1),d("ngIf",e.closable)}}function Rte(t,i){1&t&&ze(0)}function Nte(t,i){1&t&&ze(0)}function Vte(t,i){if(1&t&&(x(0,"div",28,29),Kn(2,2),g(3,Nte,1,0,"ng-container",9),A()),2&t){const e=f(3);h(3),d("ngTemplateOutlet",e.footerTemplate)}}const Bte=function(t,i,e,n){return{"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}},Hte=function(t,i){return{transform:t,transition:i}},zte=function(t){return{value:"visible",params:t}};function jte(t,i){if(1&t){const e=De();x(0,"div",3,4),me("@animation.start",function(o){return G(e),q(f(2).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(2).onAnimationEnd(o))}),g(2,dte,1,0,"div",5),g(3,Fte,8,5,"div",6),x(4,"div",7,8),Kn(6),g(7,Rte,1,0,"ng-container",9),A(),g(8,Vte,4,1,"div",10),A()}if(2&t){const e=f(2);Ve(e.styleClass),d("ngClass",gr(16,Bte,e.rtl,e.draggable,e.resizable,e.maximized))("ngStyle",e.style)("pFocusTrapDisabled",!1===e.focusTrap)("@animation",He(24,zte,mt(21,Hte,e.transformOptions,e.transitionOptions))),K("aria-labelledby",e.ariaLabelledBy)("aria-modal",!0),h(2),d("ngIf",e.resizable),h(1),d("ngIf",e.showHeader),h(1),Ve(e.contentStyleClass),d("ngClass","p-dialog-content")("ngStyle",e.contentStyle),h(3),d("ngTemplateOutlet",e.contentTemplate),h(1),d("ngIf",e.footerFacet||e.footerTemplate)}}const Ute=function(t,i,e,n,o,s,r,a,l,c){return{"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":o,"p-dialog-top-left":s,"p-dialog-top-right":r,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":c}};function $te(t,i){if(1&t&&(x(0,"div",1),g(1,jte,9,26,"div",2),A()),2&t){const e=f();Ve(e.maskStyleClass),d("ngClass",zp(4,Ute,[e.modal,e.modal||e.blockScroll,"left"===e.position,"right"===e.position,"top"===e.position,"topleft"===e.position||"top-left"===e.position,"topright"===e.position||"top-right"===e.position,"bottom"===e.position,"bottomleft"===e.position||"bottom-left"===e.position,"bottomright"===e.position||"bottom-right"===e.position])),h(1),d("ngIf",e.visible)}}const Kte=["*",[["p-header"]],[["p-footer"]]],Gte=["*","p-header","p-footer"],qte=Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}")]),Wte=Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Qte=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="-1";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onShow=new ge;onHide=new ge;visibleChange=new ge;onResizeInit=new ge;onResizeEnd=new ge;onDragEnd=new ge;onMaximize=new ge;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy;documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=$t();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.zone=r,this.cd=a,this.config=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return null!==this.header?$t()+"_header":null}focus(){let e=j.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&j.blockBodyScroll()}disableModality(){this.wrapper&&(this.dismissableMask&&this.unbindMaskClickListener(),this.modal&&j.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges())}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?j.blockBodyScroll():j.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Wn.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(ei(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`\n @media screen and (max-width: ${n}) {\n .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n width: ${this.breakpoints[n]} !important;\n }\n }\n `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){j.hasClass(e.target,"p-dialog-header-icon")||j.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",j.addClass(this.document.body,"p-unselectable-text"))}onKeydown(e){if(this.focusTrap&&9===e.which){e.preventDefault();let n=j.getFocusableElements(this.container);if(n&&n.length>0)if(n[0].ownerDocument.activeElement){let o=n.indexOf(n[0].ownerDocument.activeElement);e.shiftKey?-1==o||0===o?n[n.length-1].focus():n[o-1].focus():-1==o||o===n.length-1?n[0].focus():n[o+1].focus()}else n[0].focus()}}onDrag(e){if(this.dragging){const n=j.getOuterWidth(this.container),o=j.getOuterHeight(this.container),s=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=getComputedStyle(this.container),c=parseFloat(l.marginLeft),u=parseFloat(l.marginTop),p=a.left+s-c,m=a.top+r-u,_=j.getViewport();this.container.style.position="fixed",this.keepInViewport?(p>=this.minX&&p+n<_.width&&(this._style.left=`${p}px`,this.lastPageX=e.pageX,this.container.style.left=`${p}px`),m>=this.minY&&m+o<_.height&&(this._style.top=`${m}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${p}px`,this.lastPageY=e.pageY,this.container.style.top=`${m}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,j.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,s=j.getOuterWidth(this.container),r=j.getOuterHeight(this.container),a=j.getOuterHeight(this.contentViewChild?.nativeElement),l=s+n,c=r+o,u=this.container.style.minWidth,p=this.container.style.minHeight,m=this.container.getBoundingClientRect(),_=j.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=n,c+=o),(!u||l>parseInt(u))&&m.left+l<_.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!p||c>parseInt(p))&&m.top+c<_.height&&(this.contentViewChild.nativeElement.style.height=a+c-r+"px",this._style.height&&(this._style.height=c+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,j.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",n=>{27==n.which&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):j.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&j.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&j.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(j.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&j.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-dialog"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(lte,5),je(cte,5),je(ute,5)),2&n){let s;Se(s=Ee())&&(o.headerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.footerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:"draggable",resizable:"resizable",positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:"modal",closeOnEscape:"closeOnEscape",dismissableMask:"dismissableMask",rtl:"rtl",closable:"closable",responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",showHeader:"showHeader",breakpoint:"breakpoint",blockScroll:"blockScroll",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",minX:"minX",minY:"minY",focusOnShow:"focusOnShow",maximizable:"maximizable",keepInViewport:"keepInViewport",focusTrap:"focusTrap",transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},ngContentSelectors:Gte,decls:1,vars:1,consts:[[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],["container",""],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["content",""],[4,"ngTemplateOutlet"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["titlebar",""],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","tabindex","-1","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","",3,"ngClass","click","keydown.enter"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"],["footer",""]],template:function(n,o){1&n&&(Ti(Kte),g(0,$te,2,15,"div",0)),2&n&&d("ngIf",o.maskVisible)},dependencies:function(){return[Ct,gt,on,Ht,Tk,oo,mn,AC,wC]},styles:["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[Eh(qte)]),Ln("visible => void",[Eh(Wte)])])]},changeDetection:0})}return t})(),Ek=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Sk,dn,mn,AC,wC,Qe]})}return t})();function Zte(t,i){if(1&t&&(x(0,"div"),le(1,"app-activities-table",3),A()),2&t){const e=f();h(1),d("activities",e.activities)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("fieldsLinksArr",e.fieldsLinksArr)}}function Yte(t,i){if(1&t&&(x(0,"div"),le(1,"app-actions-table",4),A()),2&t){const e=f();h(1),d("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("activitySeq",e.activitySeq)}}function Xte(t,i){if(1&t&&(x(0,"div"),le(1,"app-table",5),A()),2&t){const e=f();h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)("statusFieldName","Status")}}function Jte(t,i){1&t&&(x(0,"div",6),le(1,"div",7),A())}let Dk=(()=>{class t{constructor(e,n,o,s){this.calculatedDataService=e,this.restServiceObj=n,this.globalVarService=o,this._userDataManagerService=s,this.tableExpenderType1=Er}ngOnInit(){if(this.tableExpenderType==Er.BusinessFlowsActivities)this.totalactivitiesCount=0,this.RunsetJson=this._userDataManagerService.getItemCache(),this.CollectBfActivitiesData(this.entity);else if(this.tableExpenderType==Er.ActivitiesActions){const e=this.entity.Seq;this.activitySeq=e,this.actions=this.entity.ActionsColl,this.routerLinkEntityPath=e+"/",this.fieldsLinksArr=[{field:"Name",link:this.routerLinkEntityPath,param:"Seq"}]}else this.tableExpenderType==Er.OutputValidation&&(this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}],this.outputValuesData=this.getOutputValues(this.entity.OutputValues))}checkIfLastRun(e){return e===this.totalactivitiesCount}CollectBfActivitiesData(e){this.hideRepoLoader=!0;let n=0;e.ActivitiesGroupsColl.forEach(s=>{this.totalactivitiesCount=this.totalactivitiesCount+s.ExecutedActivitiesGUID.length});const o=this.globalVarService.totalRecPerActivityPull;e.NumberOfActivities=0,e.ActivitiesGroupsColl.forEach(s=>{let r=0;e.ActivitiesColl=[];const a={};a.ExecutionId=this.RunsetJson.ExecutionId,a.ParentId=s.GUID,a.From=r*o,a.Take=o,a.IsLoadActions=!1,this.restServiceObj.GetActivitiesByParent(a).subscribe(l=>{r++;const c=JSON.parse(l.response),u=c.TotalRec;for(e.NumberOfActivities+=u,e.ActivitiesColl.push(...c.ResponseColl),n+=c.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1);r*o{if(m.isSuccsess){const _=JSON.parse(m.response);e.ActivitiesColl.push(..._.ResponseColl),n+=_.ResponseColl.length,this.checkIfLastRun(n)&&(this.InitActivitieData(),this.hideRepoLoader=!1)}})}})})}orderActivites(){this.entity.ActivitiesColl=this.entity.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}InitActivitieData(){if(null!=this.entity&&null!=this.entity.ActivitiesColl){this.orderActivites();var e=this.entity;const n=e.Seq;this.activities=e.ActivitiesColl;for(let o of e.ActivitiesColl)o.NumberOfActions=o.ActionsColl.length;this.fieldsLinksArr=[{field:"Name",link:n+"/",param:"Seq"},{field:"ActivityGroupName",link:n+"/ag/ag/",param:"ActivityGroupName"}]}}getOutputValues(e){let n=[];for(let o of e){let s=o.split("_:_"),r=new $D;r.ParameterName=s[0],r.ActualValue=s[1],r.ExpectedValue=s[2],r.Status=s[3],n.push(r)}return n}getActivityGroupName(e){for(let n of this.entity.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}static#e=this.\u0275fac=function(n){return new(n||t)(V(qs),V(ha),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table-expended-section"]],inputs:{tableExpenderType:"tableExpenderType",entity:"entity"},decls:5,vars:5,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[3,"activities","addExpender","tableExpenderType","fieldsLinksArr"],[3,"addExpender","tableExpenderType","actions","fieldsLinksArr","activitySeq"],[3,"cols","data","statusFieldName"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zte,2,4,"div",1),g(2,Yte,2,5,"div",1),g(3,Xte,2,3,"div",1),A(),g(4,Jte,2,0,"div",2)),2&n&&(d("ngSwitch",o.tableExpenderType),h(1),d("ngSwitchCase",o.tableExpenderType1.BusinessFlowsActivities),h(1),d("ngSwitchCase",o.tableExpenderType1.ActivitiesActions),h(1),d("ngSwitchCase",o.tableExpenderType1.OutputValidation),h(1),d("ngIf",o.hideRepoLoader))}})}return t})();const ene=["mask"],tne=["container"],nne=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},ine=function(t){return{value:"visible",params:t}};function one(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",7),me("@animation.start",function(o){return G(e),q(f(3).onAnimationStart(o))})("@animation.done",function(o){return G(e),q(f(3).onAnimationEnd(o))})("maskHide",function(){return G(e),q(f(3).onMaskHide())})("activeItemChange",function(o){return G(e),q(f(3).onActiveItemChange(o))}),A()}if(2&t){const e=f(3);d("@animation",He(8,ine,mt(5,nne,e.showTransitionOptions,e.hideTransitionOptions)))("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)("ngStyle",e.containerStyle)}}const sne=function(t){return{"p-galleria-mask p-component-overlay p-component-overlay-enter":!0,"p-galleria-visible":t}};function rne(t,i){if(1&t&&(x(0,"div",4,5),g(2,one,1,10,"p-galleriaContent",6),A()),2&t){const e=f(2);Ve(e.maskClass),d("ngClass",He(6,sne,e.visible)),K("role",e.fullScreen?"dialog":"region")("aria-modal",e.fullScreen?"true":void 0),h(2),d("ngIf",e.visible)}}function ane(t,i){if(1&t&&(x(0,"div",null,2),g(2,rne,3,8,"div",3),A()),2&t){const e=f();h(2),d("ngIf",e.maskVisible)}}function lne(t,i){if(1&t){const e=De();x(0,"p-galleriaContent",8),me("activeItemChange",function(o){return G(e),q(f().onActiveItemChange(o))}),A()}if(2&t){const e=f();d("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisible)}}const cne=["closeButton"];function une(t,i){1&t&&le(0,"TimesIcon",11),2&t&&d("styleClass","p-galleria-close-icon")}function dne(t,i){}function pne(t,i){1&t&&g(0,dne,0,0,"ng-template")}function hne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(){return G(e),q(f(2).maskHide.emit())}),g(1,une,1,1,"TimesIcon",9),g(2,pne,1,0,null,10),A()}if(2&t){const e=f(2);K("aria-label",e.closeAriaLabel())("data-pc-section","closebutton"),h(1),d("ngIf",!e.galleria.closeIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.closeIconTemplate)}}function fne(t,i){if(1&t&&(x(0,"div",12),le(1,"p-galleriaItemSlot",13),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}function gne(t,i){if(1&t){const e=De();x(0,"p-galleriaThumbnails",14),me("onActiveIndexChange",function(o){return G(e),q(f(2).onActiveIndexChange(o))})("stopSlideShow",function(){return G(e),q(f(2).stopSlideShow())}),A()}if(2&t){const e=f(2);d("containerId",e.id)("value",e.value)("activeIndex",e.activeIndex)("templates",e.galleria.templates)("numVisible",e.numVisible)("responsiveOptions",e.galleria.responsiveOptions)("circular",e.galleria.circular)("isVertical",e.isVertical())("contentHeight",e.galleria.verticalThumbnailViewPortHeight)("showThumbnailNavigators",e.galleria.showThumbnailNavigators)("slideShowActive",e.slideShowActive)}}function mne(t,i){if(1&t&&(x(0,"div",15),le(1,"p-galleriaItemSlot",16),A()),2&t){const e=f(2);h(1),d("templates",e.galleria.templates)}}const _ne=function(t,i,e){return{"p-galleria p-component":!0,"p-galleria-fullscreen":t,"p-galleria-indicator-onitem":i,"p-galleria-item-nav-onhover":e}},Ine=function(){return{}};function Cne(t,i){if(1&t){const e=De();x(0,"div",1),g(1,hne,3,4,"button",2),g(2,fne,2,1,"div",3),x(3,"div",4)(4,"p-galleriaItem",5),me("onActiveIndexChange",function(o){return G(e),q(f().onActiveIndexChange(o))})("startSlideShow",function(){return G(e),q(f().startSlideShow())})("stopSlideShow",function(){return G(e),q(f().stopSlideShow())}),A(),g(5,gne,1,11,"p-galleriaThumbnails",6),A(),g(6,mne,2,1,"div",7),A()}if(2&t){const e=f();Ve(e.galleriaClass()),d("ngClass",Rn(22,_ne,e.galleria.fullScreen,e.galleria.showIndicatorsOnItem,e.galleria.showItemNavigatorsOnHover&&!e.galleria.fullScreen))("ngStyle",e.galleria.fullScreen?Jt(26,Ine):e.galleria.containerStyle),K("id",e.id),h(1),d("ngIf",e.galleria.fullScreen),h(1),d("ngIf",e.galleria.templates&&e.galleria.headerFacet),h(1),K("aria-live",e.galleria.autoPlay?"polite":"off"),h(1),d("id",e.id)("value",e.value)("activeIndex",e.activeIndex)("circular",e.galleria.circular)("templates",e.galleria.templates)("showIndicators",e.galleria.showIndicators)("changeItemOnIndicatorHover",e.galleria.changeItemOnIndicatorHover)("indicatorFacet",e.galleria.indicatorFacet)("captionFacet",e.galleria.captionFacet)("showItemNavigators",e.galleria.showItemNavigators)("autoPlay",e.galleria.autoPlay)("slideShowActive",e.slideShowActive),h(1),d("ngIf",e.galleria.showThumbnails),h(1),d("ngIf",e.galleria.templates&&e.galleria.footerFacet)}}function vne(t,i){1&t&&ze(0)}function bne(t,i){if(1&t&&(we(0),g(1,vne,1,0,"ng-container",1),Te()),2&t){const e=f();h(1),d("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",e.context)}}function yne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-item-prev-icon")}function xne(t,i){}function Ane(t,i){1&t&&g(0,xne,0,0,"ng-template")}const wne=function(t){return{"p-galleria-item-prev p-galleria-item-nav p-link":!0,"p-disabled":t}};function Tne(t,i){if(1&t){const e=De();x(0,"button",8),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,yne,1,1,"ChevronLeftIcon",9),g(2,Ane,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,wne,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),h(1),d("ngIf",!e.galleria.itemPreviousIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemPreviousIconTemplate)}}function Sne(t,i){1&t&&le(0,"ChevronRightIcon",11),2&t&&d("styleClass","p-galleria-item-next-icon")}function Ene(t,i){}function Dne(t,i){1&t&&g(0,Ene,0,0,"ng-template")}const kne=function(t){return{"p-galleria-item-next p-galleria-item-nav p-link":!0,"p-disabled":t}};function Mne(t,i){if(1&t){const e=De();x(0,"button",12),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Sne,1,1,"ChevronRightIcon",9),g(2,Dne,1,0,null,10),A()}if(2&t){const e=f();d("ngClass",He(4,kne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),h(1),d("ngIf",!e.galleria.itemNextIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.itemNextIconTemplate)}}function One(t,i){if(1&t&&(x(0,"div",13),le(1,"p-galleriaItemSlot",14),A()),2&t){const e=f();h(1),d("item",e.activeItem)("templates",e.templates)}}function Lne(t,i){1&t&&le(0,"button",20)}const Pne=function(t){return{"p-galleria-indicator":!0,"p-highlight":t}};function Fne(t,i){if(1&t){const e=De();x(0,"li",17),me("click",function(){const s=G(e).index;return q(f(2).onIndicatorClick(s))})("mouseenter",function(){const s=G(e).index;return q(f(2).onIndicatorMouseEnter(s))})("keydown",function(o){const r=G(e).index;return q(f(2).onIndicatorKeyDown(o,r))}),g(1,Lne,1,0,"button",18),le(2,"p-galleriaItemSlot",19),A()}if(2&t){const e=i.index,n=f(2);d("ngClass",He(7,Pne,n.isIndicatorItemActive(e))),K("aria-label",n.ariaPageLabel(e+1))("aria-selected",n.activeIndex===e)("aria-controls",n.id+"_item_"+e),h(1),d("ngIf",!n.indicatorFacet),h(1),d("index",e)("templates",n.templates)}}function Rne(t,i){if(1&t&&(x(0,"ul",15),g(1,Fne,3,9,"li",16),A()),2&t){const e=f();h(1),d("ngForOf",e.value)}}const Nne=["itemsContainer"];function Vne(t,i){1&t&&le(0,"ChevronLeftIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Bne(t,i){1&t&&le(0,"ChevronUpIcon",11),2&t&&d("styleClass","p-galleria-thumbnail-prev-icon")}function Hne(t,i){if(1&t&&(we(0),g(1,Vne,1,1,"ChevronLeftIcon",10),g(2,Bne,1,1,"ChevronUpIcon",10),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function zne(t,i){}function jne(t,i){1&t&&g(0,zne,0,0,"ng-template")}const Une=function(t){return{"p-galleria-thumbnail-prev p-link":!0,"p-disabled":t}};function $ne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navBackward(o))}),g(1,Hne,3,2,"ng-container",8),g(2,jne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Une,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),K("aria-label",e.ariaPrevButtonLabel()),h(1),d("ngIf",!e.galleria.previousThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.previousThumbnailIconTemplate)}}const Kne=function(t,i,e,n){return{"p-galleria-thumbnail-item":!0,"p-galleria-thumbnail-item-current":t,"p-galleria-thumbnail-item-active":i,"p-galleria-thumbnail-item-start":e,"p-galleria-thumbnail-item-end":n}};function Gne(t,i){if(1&t){const e=De();x(0,"div",12),me("keydown",function(o){const r=G(e).index;return q(f().onThumbnailKeydown(o,r))}),x(1,"div",13),me("click",function(){const s=G(e).index;return q(f().onItemClick(s))})("touchend",function(){const s=G(e).index;return q(f().onItemClick(s))})("keydown.enter",function(){const s=G(e).index;return q(f().onItemClick(s))}),le(2,"p-galleriaItemSlot",14),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",gr(10,Kne,o.activeIndex===n,o.isItemActive(n),o.firstItemAciveIndex()===n,o.lastItemActiveIndex()===n)),K("aria-selected",o.activeIndex===n)("aria-controls",o.containerId+"_item_"+n)("data-pc-section","thumbnailitem")("data-p-active",o.activeIndex===n),h(1),K("tabindex",o.activeIndex===n?0:-1)("aria-current",o.activeIndex===n?"page":void 0)("aria-label",o.ariaPageLabel(n+1)),h(1),d("item",e)("templates",o.templates)}}function qne(t,i){1&t&&le(0,"ChevronRightIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Wne(t,i){1&t&&le(0,"ChevronDownIcon",16),2&t&&d("ngClass","p-galleria-thumbnail-next-icon")}function Qne(t,i){if(1&t&&(we(0),g(1,qne,1,1,"ChevronRightIcon",15),g(2,Wne,1,1,"ChevronDownIcon",15),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.isVertical),h(1),d("ngIf",e.isVertical)}}function Zne(t,i){}function Yne(t,i){1&t&&g(0,Zne,0,0,"ng-template")}const Xne=function(t){return{"p-galleria-thumbnail-next p-link":!0,"p-disabled":t}};function Jne(t,i){if(1&t){const e=De();x(0,"button",7),me("click",function(o){return G(e),q(f().navForward(o))}),g(1,Qne,3,2,"ng-container",8),g(2,Yne,1,0,null,9),A()}if(2&t){const e=f();d("ngClass",He(5,Xne,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),K("aria-label",e.ariaNextButtonLabel()),h(1),d("ngIf",!e.galleria.nextThumbnailIconTemplate),h(1),d("ngTemplateOutlet",e.galleria.nextThumbnailIconTemplate)}}const eie=function(t){return{height:t}};let yf=(()=>{class t{document;platformId;element;cd;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}fullScreen=!1;id;value;numVisible=3;responsiveOptions;showItemNavigators=!1;showThumbnailNavigators=!0;showItemNavigatorsOnHover=!1;changeItemOnIndicatorHover=!1;circular=!1;autoPlay=!1;shouldStopAutoplayByClick=!0;transitionInterval=4e3;showThumbnails=!0;thumbnailsPosition="bottom";verticalThumbnailViewPortHeight="300px";showIndicators=!1;showIndicatorsOnItem=!1;indicatorsPosition="bottom";baseZIndex=0;maskClass;containerClass;containerStyle;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}activeIndexChange=new ge;visibleChange=new ge;mask;container;templates;_visible=!1;_activeIndex=0;headerFacet;footerFacet;indicatorFacet;captionFacet;closeIconTemplate;previousThumbnailIconTemplate;nextThumbnailIconTemplate;itemPreviousIconTemplate;itemNextIconTemplate;maskVisible=!1;constructor(e,n,o,s,r){this.document=e,this.platformId=n,this.element=o,this.cd=s,this.config=r}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerFacet=e.template;break;case"footer":this.footerFacet=e.template;break;case"indicator":this.indicatorFacet=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"itemnexticon":this.itemNextIconTemplate=e.template;break;case"itempreviousicon":this.itemPreviousIconTemplate=e.template;break;case"previousthumbnailicon":this.previousThumbnailIconTemplate=e.template;break;case"nextthumbnailicon":this.nextThumbnailIconTemplate=e.template;break;case"caption":this.captionFacet=e.template}})}ngOnChanges(e){e.value&&e.value.currentValue?.length{j.focus(j.findSingle(this.container.nativeElement,'[data-pc-section="closebutton"]'))},25);break;case"void":j.addClass(this.mask?.nativeElement,"p-component-overlay-leave")}}onAnimationEnd(e){"void"===e.toState&&this.disableModality()}enableModality(){j.blockBodyScroll(),this.cd.markForCheck(),this.mask&&Wn.set("modal",this.mask.nativeElement,this.baseZIndex||this.config.zIndex.modal)}disableModality(){j.unblockBodyScroll(),this.maskVisible=!1,this.cd.markForCheck(),this.mask&&Wn.clear(this.mask.nativeElement)}ngOnDestroy(){this.fullScreen&&j.removeClass(this.document.body,"p-overflow-hidden"),this.mask&&this.disableModality()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleria"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(ene,5),je(tne,5)),2&n){let s;Se(s=Ee())&&(o.mask=s.first),Se(s=Ee())&&(o.container=s.first)}},hostAttrs:[1,"p-element"],inputs:{activeIndex:"activeIndex",fullScreen:"fullScreen",id:"id",value:"value",numVisible:"numVisible",responsiveOptions:"responsiveOptions",showItemNavigators:"showItemNavigators",showThumbnailNavigators:"showThumbnailNavigators",showItemNavigatorsOnHover:"showItemNavigatorsOnHover",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",circular:"circular",autoPlay:"autoPlay",shouldStopAutoplayByClick:"shouldStopAutoplayByClick",transitionInterval:"transitionInterval",showThumbnails:"showThumbnails",thumbnailsPosition:"thumbnailsPosition",verticalThumbnailViewPortHeight:"verticalThumbnailViewPortHeight",showIndicators:"showIndicators",showIndicatorsOnItem:"showIndicatorsOnItem",indicatorsPosition:"indicatorsPosition",baseZIndex:"baseZIndex",maskClass:"maskClass",containerClass:"containerClass",containerStyle:"containerStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",visible:"visible"},outputs:{activeIndexChange:"activeIndexChange",visibleChange:"visibleChange"},features:[Hn],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["windowed",""],["container",""],[3,"ngClass","class",4,"ngIf"],[3,"ngClass"],["mask",""],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange",4,"ngIf"],[3,"value","activeIndex","numVisible","ngStyle","maskHide","activeItemChange"],[3,"value","activeIndex","numVisible","activeItemChange"]],template:function(n,o){if(1&n&&(g(0,ane,3,1,"div",0),g(1,lne,1,3,"ng-template",null,1,In)),2&n){const s=Bt(2);d("ngIf",o.fullScreen)("ngIfElse",s)}},dependencies:function(){return[Ct,gt,Ht,tie]},styles:["@layer primeng{.p-galleria-content{display:flex;flex-direction:column}.p-galleria-item-wrapper{display:flex;flex-direction:column;position:relative}.p-galleria-item-container{position:relative;display:flex;height:100%}.p-galleria-item-nav{position:absolute;top:50%;margin-top:-.5rem;display:inline-flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-item-prev{left:0;border-top-left-radius:0;border-bottom-left-radius:0}.p-galleria-item-next{right:0;border-top-right-radius:0;border-bottom-right-radius:0}.p-galleria-item{display:flex;justify-content:center;align-items:center;height:100%;width:100%}.p-galleria-item-nav-onhover .p-galleria-item-nav{pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav{pointer-events:all;opacity:1}.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled{pointer-events:none}.p-galleria-caption{position:absolute;bottom:0;left:0;width:100%}.p-galleria-thumbnail-wrapper{display:flex;flex-direction:column;overflow:auto;flex-shrink:0}.p-galleria-thumbnail-prev,.p-galleria-thumbnail-next{align-self:center;flex:0 0 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-galleria-thumbnail-prev span,.p-galleria-thumbnail-next span{display:flex;justify-content:center;align-items:center}.p-galleria-thumbnail-container{display:flex;flex-direction:row}.p-galleria-thumbnail-items-container{overflow:hidden;width:100%}.p-galleria-thumbnail-items{display:flex}.p-galleria-thumbnail-item{overflow:auto;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.5}.p-galleria-thumbnail-item:hover{opacity:1;transition:opacity .3s}.p-galleria-thumbnail-item-current{opacity:1}.p-galleria-thumbnails-left .p-galleria-content,.p-galleria-thumbnails-right .p-galleria-content,.p-galleria-thumbnails-left .p-galleria-item-wrapper,.p-galleria-thumbnails-right .p-galleria-item-wrapper{flex-direction:row}.p-galleria-thumbnails-left p-galleriaitem,.p-galleria-thumbnails-top p-galleriaitem{order:2}.p-galleria-thumbnails-left p-galleriathumbnails,.p-galleria-thumbnails-top p-galleriathumbnails{order:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-container,.p-galleria-thumbnails-right .p-galleria-thumbnail-container{flex-direction:column;flex-grow:1}.p-galleria-thumbnails-left .p-galleria-thumbnail-items,.p-galleria-thumbnails-right .p-galleria-thumbnail-items{flex-direction:column;height:100%}.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,.p-galleria-thumbnails-right .p-galleria-thumbnail-wrapper{height:100%}.p-galleria-indicators{display:flex;align-items:center;justify-content:center}.p-galleria-indicator>button{display:inline-flex;align-items:center}.p-galleria-indicators-left .p-galleria-item-wrapper,.p-galleria-indicators-right .p-galleria-item-wrapper{flex-direction:row;align-items:center}.p-galleria-indicators-left .p-galleria-item-container,.p-galleria-indicators-top .p-galleria-item-container{order:2}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-top .p-galleria-indicators{order:1}.p-galleria-indicators-left .p-galleria-indicators,.p-galleria-indicators-right .p-galleria-indicators{flex-direction:column}.p-galleria-indicator-onitem .p-galleria-indicators{position:absolute;display:flex;z-index:1}.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators{top:0;left:0;width:100%;align-items:flex-start}.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators{right:0;top:0;height:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators{bottom:0;left:0;width:100%;align-items:flex-end}.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators{left:0;top:0;height:100%;align-items:flex-start}.p-galleria-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:transparent;transition-property:background-color}.p-galleria-close{position:absolute;top:0;right:0;display:flex;justify-content:center;align-items:center;overflow:hidden}.p-galleria-mask .p-galleria-item-nav{position:fixed;top:50%;margin-top:-.5rem}.p-galleria-mask.p-galleria-mask-leave{background-color:transparent}.p-items-hidden .p-galleria-thumbnail-item{visibility:hidden}.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active{visibility:visible}}\n"],encapsulation:2,data:{animation:[Oo("animation",[Ln("void => visible",[en({transform:"scale(0.7)",opacity:0}),On("{{showTransitionParams}}")]),Ln("visible => void",[On("{{hideTransitionParams}}",en({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),tie=(()=>{class t{galleria;cd;differs;config;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}value=[];numVisible;maskHide=new ge;activeItemChange=new ge;closeButton;id;_activeIndex=0;slideShowActive=!0;interval;styleClass;differ;constructor(e,n,o,s){this.galleria=e,this.cd=n,this.differs=o,this.config=s,this.id=this.galleria.id||$t(),this.differ=this.differs.find(this.galleria).create()}ngDoCheck(){const e=this.differ.diff(this.galleria);e&&e.forEachItem.length>0&&this.cd.markForCheck()}galleriaClass(){const e=this.galleria.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.galleria.thumbnailsPosition),n=this.galleria.showIndicators&&this.getPositionClass("p-galleria-indicators",this.galleria.indicatorsPosition);return(this.galleria.containerClass?this.galleria.containerClass+" ":"")+(e?e+" ":"")+(n?n+" ":"")}startSlideShow(){ei(this.galleria.platformId)&&(this.interval=setInterval(()=>{let e=this.galleria.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1;this.onActiveIndexChange(e),this.activeIndex=e},this.galleria.transitionInterval),this.slideShowActive=!0)}stopSlideShow(){this.galleria.autoPlay&&!this.galleria.shouldStopAutoplayByClick||(this.interval&&clearInterval(this.interval),this.slideShowActive=!1)}getPositionClass(e,n){const s=["top","left","bottom","right"].find(r=>r===n);return s?`${e}-${s}`:""}isVertical(){return"left"===this.galleria.thumbnailsPosition||"right"===this.galleria.thumbnailsPosition}onActiveIndexChange(e){this.activeIndex!==e&&(this.activeIndex=e,this.activeItemChange.emit(this.activeIndex))}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Ft),V(yl),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaContent"]],viewQuery:function(n,o){if(1&n&&je(cne,5),2&n){let s;Se(s=Ee())&&(o.closeButton=s.first)}},inputs:{activeIndex:"activeIndex",value:"value",numVisible:"numVisible"},outputs:{maskHide:"maskHide",activeItemChange:"activeItemChange"},decls:1,vars:1,consts:[["pFocusTrap","",3,"ngClass","ngStyle","class",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle"],["type","button","class","p-galleria-close p-link","pRipple","",3,"click",4,"ngIf"],["class","p-galleria-header",4,"ngIf"],[1,"p-galleria-content"],[3,"id","value","activeIndex","circular","templates","showIndicators","changeItemOnIndicatorHover","indicatorFacet","captionFacet","showItemNavigators","autoPlay","slideShowActive","onActiveIndexChange","startSlideShow","stopSlideShow"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow",4,"ngIf"],["class","p-galleria-footer",4,"ngIf"],["type","button","pRipple","",1,"p-galleria-close","p-link",3,"click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-galleria-header"],["type","header",3,"templates"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow"],[1,"p-galleria-footer"],["type","footer",3,"templates"]],template:function(n,o){1&n&&g(0,Cne,7,27,"div",0),2&n&&d("ngIf",o.value&&o.value.length>0)},dependencies:function(){return[Ct,gt,on,Ht,oo,mn,Tk,TC,nie,iie]},encapsulation:2,changeDetection:0})}return t})(),TC=(()=>{class t{templates;index;get item(){return this._item}set item(e){this._item=e,this.templates&&this.templates.forEach(n=>{if(n.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=n.template}})}type;contentTemplate;context;_item;ngAfterContentInit(){this.templates?.forEach(e=>{if(e.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=e.template;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=e.template;break;default:this.context={},this.contentTemplate=e.template}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItemSlot"]],inputs:{templates:"templates",index:"index",item:"item",type:"type"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&g(0,bne,2,2,"ng-container",0),2&n&&d("ngIf",o.contentTemplate)},dependencies:[gt,on],encapsulation:2,changeDetection:0})}return t})(),nie=(()=>{class t{galleria;id;circular=!1;value;showItemNavigators=!1;showIndicators=!0;slideShowActive=!0;changeItemOnIndicatorHover=!0;autoPlay=!1;templates;indicatorFacet;captionFacet;startSlideShow=new ge;stopSlideShow=new ge;onActiveIndexChange=new ge;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}get activeItem(){return this.value&&this.value[this._activeIndex]}_activeIndex=0;constructor(e){this.galleria=e}ngOnChanges({autoPlay:e}){e?.currentValue&&this.startSlideShow.emit(),e&&!1===e.currentValue&&this.stopTheSlideShow()}next(){this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1)}prev(){this.onActiveIndexChange.emit(this.circular&&0===this.activeIndex?this.value.length-1:0!==this.activeIndex?this.activeIndex-1:0)}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}navForward(e){this.stopTheSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()}navBackward(e){this.stopTheSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()}onIndicatorClick(e){this.stopTheSlideShow(),this.onActiveIndexChange.emit(e)}onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopTheSlideShow(),this.onActiveIndexChange.emit(e))}onIndicatorKeyDown(e,n){switch(e.code){case"Enter":case"Space":this.stopTheSlideShow(),this.onActiveIndexChange.emit(n),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1}isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex}isIndicatorItemActive(e){return this.activeIndex===e}ariaSlideLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slide:void 0}ariaSlideNumber(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaItem"]],inputs:{id:"id",circular:"circular",value:"value",showItemNavigators:"showItemNavigators",showIndicators:"showIndicators",slideShowActive:"slideShowActive",changeItemOnIndicatorHover:"changeItemOnIndicatorHover",autoPlay:"autoPlay",templates:"templates",indicatorFacet:"indicatorFacet",captionFacet:"captionFacet",activeIndex:"activeIndex"},outputs:{startSlideShow:"startSlideShow",stopSlideShow:"stopSlideShow",onActiveIndexChange:"onActiveIndexChange"},features:[Hn],decls:8,vars:11,consts:[[1,"p-galleria-item-wrapper"],[1,"p-galleria-item-container"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],["role","group",3,"id"],["type","item",1,"p-galleria-item",3,"item","templates"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click",4,"ngIf"],["class","p-galleria-caption",4,"ngIf"],["class","p-galleria-indicators p-reset",4,"ngIf"],["type","button","role","navigation","pRipple","",3,"ngClass","disabled","click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["type","button","pRipple","","role","navigation",3,"ngClass","disabled","click"],[1,"p-galleria-caption"],["type","caption",3,"item","templates"],[1,"p-galleria-indicators","p-reset"],["tabindex","0",3,"ngClass","click","mouseenter","keydown",4,"ngFor","ngForOf"],["tabindex","0",3,"ngClass","click","mouseenter","keydown"],["type","button","tabIndex","-1","class","p-link",4,"ngIf"],["type","indicator",3,"index","templates"],["type","button","tabIndex","-1",1,"p-link"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,Tne,3,6,"button",2),x(3,"div",3),le(4,"p-galleriaItemSlot",4),A(),g(5,Mne,3,6,"button",5),g(6,One,2,2,"div",6),A(),g(7,Rne,2,1,"ul",7),A()),2&n&&(h(2),d("ngIf",o.showItemNavigators),h(1),fo("width","100%"),d("id",o.id+"_item_"+o.activeIndex),K("aria-label",o.ariaSlideNumber(o.activeIndex+1))("aria-roledescription",o.ariaSlideLabel()),h(1),d("item",o.activeItem)("templates",o.templates),h(1),d("ngIf",o.showItemNavigators),h(1),d("ngIf",o.captionFacet),h(1),d("ngIf",o.showIndicators))},dependencies:function(){return[Ct,Jn,gt,on,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),iie=(()=>{class t{galleria;document;platformId;renderer;cd;containerId;value;isVertical=!1;slideShowActive=!1;circular=!1;responsiveOptions;contentHeight="300px";showThumbnailNavigators=!0;templates;onActiveIndexChange=new ge;stopSlideShow=new ge;itemsContainer;get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e,this._oldNumVisible=this.d_numVisible,this.d_numVisible=e}get activeIndex(){return this._activeIndex}set activeIndex(e){this._oldactiveIndex=this._activeIndex,this._activeIndex=e}index;startPos=null;thumbnailsStyle=null;sortedResponsiveOptions=null;totalShiftedItems=0;page=0;documentResizeListener;_numVisible=0;d_numVisible=0;_oldNumVisible=0;_activeIndex=0;_oldactiveIndex=0;constructor(e,n,o,s,r){this.galleria=e,this.document=n,this.platformId=o,this.renderer=s,this.cd=r}ngOnInit(){this.createStyle(),this.responsiveOptions&&this.bindDocumentListeners()}ngAfterContentChecked(){let e=this.totalShiftedItems;(this._oldNumVisible!==this.d_numVisible||this._oldactiveIndex!==this._activeIndex)&&this.itemsContainer&&(e=this._activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex(){const s=n.breakpoint,r=o.breakpoint;let a=null;return a=null==s&&null!=r?-1:null!=s&&null==r?1:null==s&&null==r?0:"string"==typeof s&&"string"==typeof r?s.localeCompare(r,void 0,{numeric:!0}):sr?1:0,-1*a});for(let n=0;n=e&&(n=s)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible,this.cd.markForCheck())}}getTabIndex(e){return this.isItemActive(e)?0:null}navForward(e){this.stopTheSlideShow();let n=this._activeIndex+1;n+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItemsthis.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1),this.onActiveIndexChange.emit(this.circular&&0===this._activeIndex?this.value.length-1:n),e.cancelable&&e.preventDefault()}onItemClick(e){this.stopTheSlideShow();let n=e;if(n!==this._activeIndex){const o=n+this.totalShiftedItems;let s=0;n0&&-1*this.totalShiftedItems!=0&&this.step(s)):(s=this.getMedianItemIndex()-o,s<0&&-1*this.totalShiftedItems!0===j.getAttribute(r,"data-p-active")),o=j.findSingle(this.itemsContainer.nativeElement,'[tabindex="0"]'),s=e.findIndex(r=>r===o.parentElement);e[s].children[0].tabIndex="-1",e[n].children[0].tabIndex="0"}findFocusedIndicatorIndex(){const e=[...j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]')],n=j.findSingle(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(o=>o===n.parentElement)}changedFocusedIndicator(e,n){const o=j.find(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]');o[e].children[0].tabIndex="-1",o[n].children[0].tabIndex="0",o[n].children[0].focus()}step(e){let n=this.totalShiftedItems+e;e<0&&-1*n+this.d_numVisible>this.value.length-1?n=this.d_numVisible-this.value.length:e>0&&n>0&&(n=0),this.circular&&(e<0&&this.value.length-1===this._activeIndex?n=0:e>0&&0===this._activeIndex&&(n=this.d_numVisible-this.value.length)),this.itemsContainer&&(j.removeClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${n*(100/this.d_numVisible)}%, 0)`:`translate3d(${n*(100/this.d_numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=n}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}changePageOnTouch(e,n){n<0?this.navForward(e):this.navBackward(e)}getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0}getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1}onTransitionEnd(){this.itemsContainer&&this.itemsContainer.nativeElement&&(j.addClass(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="")}onTouchEnd(e){let n=e.changedTouches[0];this.changePageOnTouch(e,this.isVertical?n.pageY-this.startPos.y:n.pageX-this.startPos.x)}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchStart(e){let n=e.changedTouches[0];this.startPos={x:n.pageX,y:n.pageY}}isNavBackwardDisabled(){return!this.circular&&0===this._activeIndex||this.value.length<=this.d_numVisible}isNavForwardDisabled(){return!this.circular&&this._activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}firstItemAciveIndex(){return-1*this.totalShiftedItems}lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1}isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e}bindDocumentListeners(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView||"window","resize",()=>{this.calculatePosition()}))}unbindDocumentListeners(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle)}ariaPrevButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.prevPageLabel:void 0}ariaNextButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.nextPageLabel:void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(n){return new(n||t)(V(yf),V(Wt),V($n),V(hn),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-galleriaThumbnails"]],viewQuery:function(n,o){if(1&n&&je(Nne,5),2&n){let s;Se(s=Ee())&&(o.itemsContainer=s.first)}},inputs:{containerId:"containerId",value:"value",isVertical:"isVertical",slideShowActive:"slideShowActive",circular:"circular",responsiveOptions:"responsiveOptions",contentHeight:"contentHeight",showThumbnailNavigators:"showThumbnailNavigators",templates:"templates",numVisible:"numVisible",activeIndex:"activeIndex"},outputs:{onActiveIndexChange:"onActiveIndexChange",stopSlideShow:"stopSlideShow"},decls:8,vars:6,consts:[[1,"p-galleria-thumbnail-wrapper"],[1,"p-galleria-thumbnail-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-galleria-thumbnail-items-container",3,"ngStyle"],["role","tablist",1,"p-galleria-thumbnail-items",3,"transitionend","touchstart","touchmove"],["itemsContainer",""],[3,"ngClass","keydown",4,"ngFor","ngForOf"],["type","button","pRipple","",3,"ngClass","disabled","click"],[4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"ngClass","keydown"],[1,"p-galleria-thumbnail-item-content",3,"click","touchend","keydown.enter"],["type","thumbnail",3,"item","templates"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),g(2,$ne,3,7,"button",2),x(3,"div",3)(4,"div",4,5),me("transitionend",function(){return o.onTransitionEnd()})("touchstart",function(r){return o.onTouchStart(r)})("touchmove",function(r){return o.onTouchMove(r)}),g(6,Gne,3,15,"div",6),A()(),g(7,Jne,3,7,"button",2),A()()),2&n&&(h(2),d("ngIf",o.showThumbnailNavigators),h(1),d("ngStyle",He(4,eie,o.isVertical?o.contentHeight:"")),h(3),d("ngForOf",o.value),h(1),d("ngIf",o.showThumbnailNavigators))},dependencies:function(){return[Ct,Jn,gt,on,Ht,oo,Qi,Mr,TC]},encapsulation:2,changeDetection:0})}return t})(),kk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,mn,Qi,Mr,AC,wC,Sk,Xe,Qe]})}return t})();const oie=["galleria"],sie=function(t){return{width:t}};function rie(t,i){if(1&t&&le(0,"img",7),2&t){const e=i.$implicit,n=f(2);d("src",e.itemImageSrc,Ls)("ngStyle",He(2,sie,n.fullscreen?"":"100%"))}}function aie(t,i){if(1&t&&(x(0,"div"),le(1,"img",8),A()),2&t){const e=i.$implicit;y_("grid grid-nogutter justify-content-center ",e.title,""),h(1),d("src",e.thumbnailImageSrc,Ls)}}function lie(t,i){if(1&t&&(x(0,"span",13)(1,"span"),Le(2),A(),x(3,"span"),Le(4),A(),le(5,"span"),A()),2&t){const e=f(4);h(2),Fp("",e.activeIndex+1,"/",e.images.length,""),h(2),dt(e.images[e.activeIndex].alt),h(1),y_("title ",e.getStatusWithIcon(e.images[e.activeIndex].title),"")}}function cie(t,i){if(1&t){const e=De();x(0,"div",10),g(1,lie,6,6,"span",11),x(2,"button",12),me("click",function(){return G(e),q(f(3).toggleFullScreen())}),A()()}if(2&t){const e=f(3);h(1),d("ngIf",e.images),h(1),Ve(e.fullScreenIcon())}}function uie(t,i){1&t&&g(0,cie,3,4,"ng-template",9)}const die=function(t,i){return{footerMargin:t,smallThumbnail:i}},pie=function(){return{"max-width":"100%"}};function hie(t,i){if(1&t){const e=De();x(0,"div",1)(1,"p-galleria",2,3),me("valueChange",function(o){return G(e),q(f().images=o)})("activeIndexChange",function(o){return G(e),q(f().activeIndex=o)}),g(3,rie,1,4,"ng-template",4),g(4,aie,2,4,"ng-template",5),g(5,uie,1,0,null,6),A()()}if(2&t){const e=f();d("ngClass",mt(14,die,e.showFooter,!e.showFooter)),h(1),d("value",e.images)("activeIndex",e.activeIndex)("numVisible",10)("showThumbnails",e.showThumbnails)("showItemNavigators",!1)("showItemNavigatorsOnHover",!1)("circular",!0)("autoPlay",!1)("transitionInterval",3e3)("containerStyle",Jt(17,pie))("containerClass",e.galleriaClass())("thumbnailsPosition",e.top),h(4),d("ngIf",e.showFooter)}}let SC=(()=>{class t{constructor(e,n,o,s,r,a){this.globalVarService=e,this._userDataManagerService=n,this.route=o,this.calculatedDataService=s,this.communicatorService=r,this.cd=a,this.isScreenshotVisibleEvent=new ge,this.showFooter=!0,this.autoplaychecked=!1,this.fullscreen=!1,this.activeIndex=0,this.position="left",this.responsiveOptions=[{breakpoint:"1024px",numVisible:5},{breakpoint:"768px",numVisible:3},{breakpoint:"560px",numVisible:1}]}ngOnInit(){this.showThumbnails=this._thumbnails,this.route.params.subscribe(e=>{this.paramChanged(),this.bindDocumentListeners()}),this.communicatorService.onBfActivitiesDataChange.subscribe(e=>{"Last Loading Data"===e&&(this.paramChanged(),this.bindDocumentListeners())})}handleChange(e){this.bindDocumentListeners()}setThumbnails(){}paramChanged(){"action"==this.EntityType?this.setScurrentAction():("businessflow"==this.EntityType||"activity"==this.EntityType)&&this.setAllActions(),this.images=[];for(const e of this.actions)for(const n of e.ScreenShots)this.images.push({itemImageSrc:this.globalVarService.imagePath+n,thumbnailImageSrc:this.globalVarService.imagePath+n,alt:e.Path,title:e.RunStatus.toString()});this.isScreenshotVisibleEvent.emit(null!=this.images&&this.images.length>0)}getStatusWithIcon(e){return this.calculatedDataService.getStatusClass(e)}onThumbnailButtonClick(){this.showThumbnails=!this.showThumbnails}toggleFullScreen(){this.fullscreen?this.closePreviewFullScreen():this.openPreviewFullScreen(),this.cd.detach()}openPreviewFullScreen(){let e=this.galleria?.element.nativeElement.querySelector(".p-galleria");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}onFullScreenChange(){this.fullscreen=!this.fullscreen,this.cd.detectChanges(),this.cd.reattach()}closePreviewFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}bindDocumentListeners(){this.onFullScreenListener=this.onFullScreenChange.bind(this),document.addEventListener("fullscreenchange",this.onFullScreenListener),document.addEventListener("mozfullscreenchange",this.onFullScreenListener),document.addEventListener("webkitfullscreenchange",this.onFullScreenListener),document.addEventListener("msfullscreenchange",this.onFullScreenListener)}unbindDocumentListeners(){document.removeEventListener("fullscreenchange",this.onFullScreenListener),document.removeEventListener("mozfullscreenchange",this.onFullScreenListener),document.removeEventListener("webkitfullscreenchange",this.onFullScreenListener),document.removeEventListener("msfullscreenchange",this.onFullScreenListener),this.onFullScreenListener=null}ngOnDestroy(){this.unbindDocumentListeners()}galleriaClass(){return"custom-galleria "+(this.fullscreen?"fullscreen":"")}fullScreenIcon(){return"pi "+(this.fullscreen?"fullscreen-button pi-window-minimize":"fullscreen-button pi-window-maximize")}setAllActions(){const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");if(this.actions=[],e&&n&&o){const r=e.RunnersColl.filter(a=>a.Seq===n)[0].BusinessFlowsColl.filter(a=>a.Seq===o)[0];for(const a of r.ActivitiesColl)for(const l of a.ActionsColl)l.Path=a.ActivityGroupName+" / "+a.Name,this.actions.push(l)}}setScurrentAction(){this.actions=[];const e=this._userDataManagerService.getItemCache(),n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");var s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");if(null!=r&&0==r&&(r=this.Action_seq),null!=s&&0==s&&(s=this.Activity_seq),e&&n&&o&&s&&r){const c=e.RunnersColl.filter(u=>u.Seq===n)[0].BusinessFlowsColl.filter(u=>u.Seq===o)[0].ActivitiesColl.filter(u=>u.Seq===s)[0];this.actions.push(c.ActionsColl.filter(u=>u.Seq===r)[0])}}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V(Co),V(Di),V(qs),V(Ws),V(Ft))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["screenshot-carousel"]],viewQuery:function(n,o){if(1&n&&je(oie,5),2&n){let s;Se(s=Ee())&&(o.galleria=s.first)}},inputs:{_height:"_height",_thumbnails:"_thumbnails",autoplay:"autoplay",EntityType:"EntityType",Action_seq:"Action_seq",Activity_seq:"Activity_seq",showFooter:"showFooter"},outputs:{isScreenshotVisibleEvent:"isScreenshotVisibleEvent"},decls:1,vars:1,consts:[["class","screenshot-carousel",3,"ngClass",4,"ngIf"],[1,"screenshot-carousel",3,"ngClass"],[3,"value","activeIndex","numVisible","showThumbnails","showItemNavigators","showItemNavigatorsOnHover","circular","autoPlay","transitionInterval","containerStyle","containerClass","thumbnailsPosition","valueChange","activeIndexChange"],["galleria",""],["pTemplate","item"],["pTemplate","thumbnail"],[4,"ngIf"],[3,"src","ngStyle"],[2,"width","100px",3,"src"],["pTemplate","footer"],[1,"custom-galleria-footer"],["class","title-container",4,"ngIf"],["type","button",3,"click"],[1,"title-container"]],template:function(n,o){1&n&&g(0,hie,6,18,"div",0),2&n&&d("ngIf",null!=o.images&&o.images.length>0)},dependencies:[Ct,gt,Ht,sn,yf],styles:[".screenshot-carousel .passed-color{color:#109717;text-align:center} .screenshot-carousel .failed-color{color:#dc3812;text-align:center} .screenshot-carousel .blocked-color{color:#a21025;text-align:center} .screenshot-carousel .stopped-color{color:#ed5588;text-align:center} .screenshot-carousel .pending-color{color:#f90;text-align:center} .screenshot-carousel .skipped-color{color:#737373;text-align:center} .screenshot-carousel .inprogress-color{color:#eab330;text-align:center} .screenshot-carousel .canceled-color{color:#ca0088;text-align:center} p-galleriaitemslot .Passed{border-top:5px solid #109717!important} p-galleriaitemslot .Failed{border-top:5px solid #DC3812!important} p-galleriaitemslot .Blocked{border-top:5px solid #A21025!important} p-galleriaitemslot .Stopped{border-top:5px solid #ED5588!important} p-galleriaitemslot .Pending{border-top:5px solid #FF9900!important} p-galleriaitemslot .Skipped{border-top:5px solid #737373!important} p-galleriaitemslot .InProgress{border-top:5px solid #EAB330!important} p-galleriaitemslot .Canceled{border-top:5px solid #CA0088!important} .footerMargin .p-galleria-item-wrapper{margin-bottom:90px!important} .smallThumbnail .p-galleria-item-wrapper{width:100px!important}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen{display:flex;flex-direction:column}[_nghost-%COMP%] .custom-galleria.p-galleria.fullscreen .p-galleria-content{flex-grow:1;justify-content:center}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-content{position:relative}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-wrapper{position:absolute;bottom:0;left:0;width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .p-galleria-thumbnail-items-container{width:100%}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer{display:flex;align-items:center;background-color:#fff;color:#000;border:1px solid;padding:5px}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button{background-color:transparent;color:#000;border:0 none;border-radius:0;margin:.2rem 0}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button.fullscreen-button{margin-left:auto}[_nghost-%COMP%] .custom-galleria.p-galleria .custom-galleria-footer>button:hover{background-color:#ffffff1a}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span{font-size:1.2rem;padding-left:.829rem}[_nghost-%COMP%] .custom-galleria.p-galleria .title-container>span.title{font-weight:700;font-size:1.5rem}"]})}return t})();function fie(t,i){1&t&&le(0,"div")}function gie(t,i){1&t&&le(0,"th",9)}function mie(t,i){if(1&t&&(x(0,"th"),Le(1),A()),2&t){const e=i.$implicit;h(1),Pt(" ",e.header," ")}}function _ie(t,i){if(1&t&&(x(0,"tr"),g(1,fie,1,0,"div",6),g(2,gie,1,0,"ng-template",null,7,In),g(4,mie,2,1,"th",8),A()),2&t){const e=i.$implicit,n=Bt(3),o=f();h(1),d("ngIf",o.addExpender)("ngIfThen",n),h(3),d("ngForOf",e)}}function Iie(t,i){1&t&&le(0,"div")}function Cie(t,i){if(1&t&&(x(0,"td")(1,"a",12),le(2,"i",13),A()()),2&t){const e=f(),n=e.$implicit,o=e.expanded;h(1),d("pRowToggler",n),h(1),d("ngClass",o?"pi pi-chevron-down":"pi pi-chevron-right")}}const vie=function(t){return{Guid:t}};function bie(t,i){if(1&t&&(x(0,"div")(1,"b")(2,"a",21),Le(3),A()()()),2&t){const e=f().$implicit,n=f(2).$implicit,o=f();h(2),__("routerLink","",e.link,"",o.getParamsURL(n,e),""),d("queryParams",He(4,vie,n.GUID)),h(1),Pt(" ",n[e.field]," ")}}function yie(t,i){if(1&t&&(x(0,"div"),g(1,bie,4,6,"div",16),A()),2&t){const e=i.$implicit;h(1),d("ngSwitchCase",e.field)}}function xie(t,i){if(1&t&&(x(0,"div"),Le(1),Il(2,"date"),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",Cl(2,1,n[e.field],"short")," ")}}function Aie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.msToTime(n[e.field])," ")}}function wie(t,i){if(1&t&&(x(0,"div",22)(1,"b"),Le(2),A()()),2&t){const e=f().$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}const Tie=function(t,i,e,n,o,s,r,a,l){return{"passed-color":t,"failed-color":i,"blocked-color":e,"stopped-color":n,"pending-color":o,"skipped-color":s,"inprogress-color":r,"canceled-color":a,"other-color":l}};function Sie(t,i){if(1&t&&(x(0,"div")(1,"div",13),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(1),d("ngClass",zp(2,Tie,["Passed"===e[n.statusFieldName],"Failed"===e[n.statusFieldName],"Blocked"===e[n.statusFieldName],"Stopped"===e[n.statusFieldName],"Pending"===e[n.statusFieldName],"Skipped"===e[n.statusFieldName],"In Progress"===e[n.statusFieldName],"Canceled"===e[n.statusFieldName],"Other"===e[n.statusFieldName]])),h(1),Pt(" ",e[n.statusFieldName]," ")}}function Eie(t,i){if(1&t&&(x(0,"div"),g(1,Sie,3,12,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.statusFieldName)}}function Die(t,i){if(1&t&&(x(0,"div")(1,"div",23),Le(2),A()()),2&t){const e=f(3).$implicit,n=f();h(2),Pt(" ",e[n.errorFieldName]," ")}}function kie(t,i){if(1&t&&(x(0,"div"),g(1,Die,3,1,"div",16),A()),2&t){const e=f(3);h(1),d("ngSwitchCase",e.errorFieldName)}}function Mie(t,i){if(1&t&&(x(0,"div")(1,"div",24),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit;h(2),Pt(" ",n[e.field]," ")}}function Oie(t,i){if(1&t&&(x(0,"div"),g(1,Mie,3,1,"div",16),A()),2&t){const e=f().$implicit,n=f(2);h(1),d("ngSwitchCase",n.boldAndCenterFields.includes(e.field)?e.field:"")}}function Lie(t,i){if(1&t){const e=De();x(0,"div")(1,"screenshot-carousel",25),me("isScreenshotVisibleEvent",function(o){return G(e),q(f(4).setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f(3).$implicit,n=f();h(1),d("showFooter",!1)("Activity_seq",n.activitySeq)("Action_seq",e.Seq)("EntityType",n.EntityType)("_height",100)("_thumbnails",!1)}}function Pie(t,i){1&t&&(x(0,"div"),g(1,Lie,2,6,"div",16),A()),2&t&&(h(1),d("ngSwitchCase","Screenshots"))}function Fie(t,i){if(1&t&&(x(0,"div",24),Le(1),A()),2&t){const e=f().$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"% ")}}function Rie(t,i){if(1&t&&(x(0,"div")(1,"pre",29),Le(2),A()()),2&t){const e=f(2).$implicit,n=f().$implicit,o=f();h(2),Pt(" ",o.getXML(n[e.field]),"\n ")}}function Nie(t,i){if(1&t&&(x(0,"div",30),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field]," ")}}function Vie(t,i){if(1&t&&(x(0,"div"),Le(1),A()),2&t){const e=f(2).$implicit,n=f().$implicit;h(1),Pt(" ",n[e.field],"")}}function Bie(t,i){if(1&t&&(x(0,"div"),g(1,Rie,3,1,"div",26),g(2,Nie,2,1,"div",27),g(3,Vie,2,1,"ng-template",null,28,In),A()),2&t){const e=Bt(4),n=f().$implicit,o=f().$implicit,s=f();h(1),d("ngIf",o[n.field].includes("{class t{constructor(e,n,o){this.communicatorService=e,this.globalVarService=n,this._userDataManagerService=o,this.addExpender=!1,this.ShouldImagePop=!1,this.imagePopSrc="",this.imagePopName="",this.showScreenshotPanel=!0,this.EntityType="action"}ngOnInit(){}printf(e){console.log(e)}msToTime(e){return this._userDataManagerService.msToTime(e)}getParamsURL(e,n){var o="";if(!n.params)return e[n.param];for(let s of n.params)o=o+e[s]+"/";return o}onRouterCLick(e){console.log(e)}showImage(e){this.ShouldImagePop=!0,this.imagePopSrc=this.globalVarService.imagePath+e,this.imagePopName=e}getXML(e){let n;return n="\n"+e,n}isJson(e){try{JSON.parse(e)}catch{return console.log("not json"),!1}return console.log("is json"),!0}getJson(e){try{return JSON.parse(e)}catch{console.log("not json")}}trackByFunction(e,n){return n?n.field:null}setScreenshotVisiblity(e){this.showScreenshotPanel=e}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(ms),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-table"]],inputs:{cols:"cols",data:"data",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",errorFieldName:"errorFieldName",statusFieldName:"statusFieldName",boldAndCenterFields:"boldAndCenterFields",activitySeq:"activitySeq"},decls:6,vars:9,consts:[["dataKey","Seq",3,"columns","value"],["pTemplate","header"],["pTemplate","body"],["pTemplate","rowexpansion"],[3,"header","visible","responsive","visibleChange"],[2,"height","40vw",3,"src"],[4,"ngIf","ngIfThen"],["addExpenderBlock",""],[4,"ngFor","ngForOf"],[2,"width","3em"],["addExpenderBlock1",""],["class","row",3,"ngSwitch",4,"ngFor","ngForOf"],["href","#",3,"pRowToggler"],[3,"ngClass"],[1,"row",3,"ngSwitch"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class"," numbers-style",4,"ngSwitchCase"],[4,"ngIf"],["class","bold-and-center",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["data","rowData",3,"routerLink","queryParams"],[1,"numbers-style"],[1,"failed-color"],[1,"bold-and-center"],[3,"showFooter","Activity_seq","Action_seq","EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],[4,"ngIf","ngIfElse"],["style"," display: inline-block;width: 180px;white-space: nowrap;overflow: hidden !important;text-overflow: ellipsis;",4,"ngIf","ngIfElse"],["elseBlock1",""],["lang","xml"],[2,"display","inline-block","width","180px","white-space","nowrap","overflow","hidden !important","text-overflow","ellipsis"],[1,"p-fluid",2,"font-size","16px","padding","20px"],[3,"tableExpenderType","entity"]],template:function(n,o){1&n&&(x(0,"p-table",0),g(1,_ie,5,3,"ng-template",1),g(2,Gie,5,3,"ng-template",2),g(3,qie,4,3,"ng-template",3),A(),x(4,"p-dialog",4),me("visibleChange",function(r){return o.ShouldImagePop=r}),le(5,"img",5),A()),2&n&&(d("columns",o.cols)("value",o.data),h(4),yn(Jt(8,Wie)),d("header",o.imagePopName)("visible",o.ShouldImagePop)("responsive",!0),h(1),d("src",o.imagePopSrc,Ls))},dependencies:[Ct,Jn,gt,wl,ch,x0,sn,xC,ate,pa,Qte,Dk,SC,Hs],styles:[".bold-and-center[_ngcontent-%COMP%]{font-weight:700;text-align:center}.alignCenter[_ngcontent-%COMP%]{text-align:center}.passed-color[_ngcontent-%COMP%]{color:#109717;font-weight:700;text-align:center}.failed-color[_ngcontent-%COMP%]{color:#dc3812;font-weight:700;text-align:center}.blocked-color[_ngcontent-%COMP%]{color:#a21025;font-weight:700;text-align:center}.stopped-color[_ngcontent-%COMP%]{color:#ed5588;font-weight:700;text-align:center}.pending-color[_ngcontent-%COMP%]{color:#f90;font-weight:700;text-align:center}.skipped-color[_ngcontent-%COMP%]{color:#737373;font-weight:700;text-align:center}.inprogress-color[_ngcontent-%COMP%]{color:#eab330;font-weight:700;text-align:center}.canceled-color[_ngcontent-%COMP%]{color:#ca0088;font-weight:700;text-align:center}.other-color[_ngcontent-%COMP%]{color:#152b37;font-weight:700;text-align:center}.row[_ngcontent-%COMP%]{text-align:center}.item1[_ngcontent-%COMP%]{width:90%;text-align:left;margin-bottom:10px}"],data:{animation:[Oo("rowExpansionTrigger",[Us("void",en({transform:"translateX(-10%)",opacity:0})),Us("active",en({transform:"translateX(0)",opacity:1})),Ln("* <=> *",On("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])]}})}return t})();const Qie=["exeStatistics"];function Zie(t,i){if(1&t&&(x(0,"h4",8),le(1,"span",9),Le(2," Run set Report: "),x(3,"span",10),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),Pt(" ",e.RunsetJson.Name,"")}}function Yie(t,i){if(1&t&&(x(0,"p-accordionTab",11),le(1,"app-general-details",12),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runsetDetails)}}function Xie(t,i){if(1&t){const e=De();x(0,"p-accordionTab",13)(1,"app-execution-statistic",14,15),me("isStatisticsVisibleEvent",function(o){return G(e),q(f().setStatisticsVisiblity(o))}),A()()}2&t&&d("selected",!0)}const Jie=function(){return["BusinessFlowSeq"]};function eoe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.runnersCols)("data",e.runnersData)("fieldsLinksArr",e.fieldsLinksArr)("statusFieldName","BusinessFlowExecutionStaus")("boldAndCenterFields",Jt(6,Jie))}}function toe(t,i){1&t&&(x(0,"div",18),le(1,"div",19),A())}function noe(t,i){if(1&t&&(x(0,"p"),Le(1),A()),2&t){const e=f();h(1),dt(e.ErrorMessage)}}const ioe=function(t,i){return{hideDiv:t,showDiv:i}};let ooe=(()=>{class t{constructor(e,n,o,s,r,a,l,c,u,p,m,_){this.executionDataService=e,this.datePipe=n,this.communicatorService=o,this.reportHelperService=s,this.activeRoute=r,this.router=a,this.fileLoader=l,this.globalVarService=u,this.restServiceObj=p,this.userDataManagerService=m,this.calculatedDataService=_,this.runnersData=[],this.ErrorMessage="",this.showStatisticsPanel=!0,this.globalVarService.baseAppUrl=c.baseUrl,this.globalVarService.totalRecPerActivityPull=c.totalRecPerActivityPull,this.globalVarService.topBarTitle=c.topBarTitle}ngAfterViewInit(){null!=this.executionStatisticComponent&&null!=this.RunsetJson&&this.executionStatisticComponent.initComponents()}ngOnInit(){this.communicatorService.onRefreshChangedMessage.subscribe(e=>{"RefreshData"===e&&this.showRunset(!0)}),this.reportHelperService.selectedGuid="",this.reportHelperService.selectedRouteLink="",this.activeRoute.queryParams.subscribe(e=>{const n=e.Routed_Guid;console.log("found selected guid "+n),this.reportHelperService.selectedGuid=typeof n<"u"&&n?n:""}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"BusinessFlowName",link:"",params:["Seq","BusinessFlowSeq"]}],null==this.RunsetJson&&this.showRunset(),this.runnersCols=[{field:"Seq",header:"Runner Number"},{field:"Name",header:"Ginger Runner Name"},{field:"Environment",header:"Ginger Runner Environment Name"},{field:"BusinessFlowSeq",header:"Business Flow Execution Sequence"},{field:"BusinessFlowName",header:"Business Flow Name"},{field:"BusinessFlowDescription",header:"Business Flow Description"},{field:"BusinessFlowRunDescription",header:"Business Flow Run Description"},{field:"BusinessFlowExecutionStaus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Passed Rate"}]}showRunset(e=!1){this.hideRepoLoader=!0,this.showReport=!1;var n=this.activeRoute.snapshot.queryParamMap.get("ExecutionId");const o=this.activeRoute.snapshot.paramMap.get("BusinessFlowId"),s=this.activeRoute.snapshot.paramMap.get("ExecutionId");null!=s&&(n=s),null==n?n=localStorage.getItem("executionId"):localStorage.setItem("executionId",n),console.log("run set query guid is :"+n),n?(this.globalVarService.imagePath="images/",this.globalVarService.isServerLoading=!0,this.globalVarService.executionServerId=n,this.RunsetJson=this.userDataManagerService.getItemCache(),null==this.RunsetJson||this.RunsetJson.GUID!=n?this.restServiceObj.GetAccountHtmlReportBriefCase(n).subscribe(r=>{if(r.isSuccsess){if(this.showReport=!0,console.log(r.response),this.RunsetJson=JSON.parse(r.response),this.RunsetJson.Name=this.userDataManagerService.replaceUnicodeChar(this.RunsetJson.Name),this.RunsetJson.RunnersColl.length<=0)return void console.log("error on loading report");this.userDataManagerService.setItemCache(this.RunsetJson),this.RunsetJson.RunStatus==Lt.InProgress&&(this.userDataManagerService.setItem("LoadActivityStat","true"),this.userDataManagerService.setItem("LoadActionStat","true")),this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController(),null!=o&&this.RunsetJson.RunnersColl.forEach(a=>{a.BusinessFlowsColl.forEach(l=>{l.InstanceGUID==o&&this.router.navigateByUrl(a.Seq+"/"+l.Seq)})}),e&&null!=this.RunsetJson&&this.router.navigateByUrl("/?ExecutionId="+this.RunsetJson.ExecutionId)}else null==r.response||"NotFound"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="No record found"):"0"==r.response?(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Account Report Service is down"):"DatabaseDown"==r.response&&(this.showReport=!1,this.hideRepoLoader=!1,this.ErrorMessage="Postgres Database is down")}):(this.hideRepoLoader=!1,this.showReport=!0,this.calculatedDataService.initService(e),this.initController())):(this.userDataManagerService.setItem("timeFormat","seconds"),this.globalVarService.imagePath="assets/screenshots/",this.executionDataService.GetExecutionData().then(r=>{this.hideRepoLoader=!1,null!=r?(this.showReport=!0,this.RunsetJson={...r},this.initController()):this.showReport=!1}))}GetFirstActivitesReponse(e){return this.restServiceObj.GetActivitiesByParentAwait(e)}downloadImages(e){this.restServiceObj.DownloadRunsetImages(e).subscribe(n=>{console.log(n.isSuccsess)})}initController(e=null){const n=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,e);this.communicatorService.newMessage(n),this.populateRunnerDetails(),null!=this.executionStatisticComponent&&this.executionStatisticComponent.initComponents(),this.runsetDetails=[{field:"Name",value:this.RunsetJson.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.RunsetJson.StartTimeStamp,"short")},{field:"RunSet Description",value:this.RunsetJson.Description},{field:"Execution End Time",value:this.datePipe.transform(this.RunsetJson.EndTimeStamp,"short")},{field:"RunSet Run Description",value:this.RunsetJson.RunDescription},{field:"Executed by User",value:this.RunsetJson.ExecutedbyUser},{field:"Execution Duration",value:this.userDataManagerService.msToTime(this.RunsetJson.Elapsed)},{field:"Execution Status",value:this.RunsetJson.RunStatus},{field:"Executed on Machine",value:this.RunsetJson.MachineName},{field:"Run Set Execution Rate",value:this.RunsetJson.ExecutionRate+"%"},{field:"Run Set Execution Pass Rate",value:this.RunsetJson.PassRate+"%"},{field:"Environment Name",value:this.RunsetJson.Environment},{field:"Ginger Version",value:this.RunsetJson.GingerVersion}],""!==this.reportHelperService.selectedRouteLink&&(console.log("route to guid :"+this.reportHelperService.selectedRouteLink),setTimeout(()=>{this.router.navigateByUrl(this.reportHelperService.selectedRouteLink)},5e3))}setStatisticsVisiblity(e){this.showStatisticsPanel=e}populateRunnerDetails(){this.runnersData=[];for(const e of this.RunsetJson.RunnersColl){let n=new MK;for(const o of e.BusinessFlowsColl)n={Name:e.Name,Environment:e.Environment,Seq:e.Seq,GUID:e.GUID,BusinessFlowSeq:o.Seq,BusinessFlowName:o.Name,BusinessFlowDescription:o.Description,PassRate:o.PassRate,BusinessFlowExecutionStaus:o.RunStatus,BusinessFlowRunDescription:o.RunDescription,ExecutionRate:o.ExecutionRate},this.runnersData.push(n)}}getStatus(e=!0){if(null!=this.RunsetJson&&null!=this.RunsetJson.RunStatus)return this.calculatedDataService.getStatusClass(this.RunsetJson.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(HK),V(Hs),V(Ws),V(WD),V(Di),V(io),V(qD),V("environmentObj"),V(ms),V(ha),V(Co),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["runset-report"]],viewQuery:function(n,o){if(1&n&&je(Qie,5),2&n){let s;Se(s=Ee())&&(o.executionStatisticComponent=s.first)}},decls:8,vars:11,consts:[[3,"ngClass"],["class","entityName",4,"ngIf"],[3,"multiple"],["header","EXECUTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle"],[2,"font-weight","bold"],["header","EXECUTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","EXECUTION STATISTICS","ngClass","accordion-header",3,"selected"],[3,"isStatisticsVisibleEvent"],["exeStatistics",""],["header","EXECUTED BUSINESS FLOWS DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data","fieldsLinksArr","statusFieldName","boldAndCenterFields"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Zie,5,4,"h4",1),x(2,"p-accordion",2),g(3,Yie,2,2,"p-accordionTab",3),g(4,Xie,3,1,"p-accordionTab",4),g(5,eoe,2,7,"p-accordionTab",5),A()(),g(6,toe,2,0,"div",6),g(7,noe,2,1,"p",7)),2&n&&(d("ngClass",mt(8,ioe,!1===o.showReport,!0===o.showReport)),h(1),d("ngIf",o.RunsetJson),h(1),d("multiple",!0),h(1),d("ngIf",null!=o.runsetDetails&&o.runsetDetails.length>0),h(1),d("ngIf",1==o.showStatisticsPanel),h(1),d("ngIf",o.runnersData.length>0),h(1),d("ngIf",o.hideRepoLoader),h(1),d("ngIf",0==o.showReport&&0==o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,LG,Is],styles:[".lables[_ngcontent-%COMP%]{font-weight:700}.loader[_ngcontent-%COMP%]{position:absolute;top:40%;left:40%;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #0066b2;width:40px;height:40px;animation:_ngcontent-%COMP%_spin 2s linear infinite}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return t})(),Mk=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ng-component"]],decls:3,vars:0,consts:[[1,"dashboard"],[1,"ui-m"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"div",1),le(2,"runset-report"),A()())},dependencies:[ooe],encapsulation:2})}return t})();const soe=function(){return["NumberOfActions"]};let EC=(()=>{class t{constructor(){}ngOnInit(){this.activitiesCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group Name"},{field:"Name",header:"Activity Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"RunStatus",header:"Execution Status"},{field:"NumberOfActions",header:"Number Of Actions"},{field:"ExecutionRate",header:"Actions Execution Rate"},{field:"PassRate",header:"Actions Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activities-table"]],inputs:{activities:"activities",activitiesGroups:"activitiesGroups",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.activitiesCols)("data",o.activities)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,soe))},dependencies:[Is]})}return t})();const roe=function(){return["CurrentRetryIteration","NumberOfActions"]};let Ok=(()=>{class t{constructor(){}ngOnInit(){this.actionsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Action Name"},{field:"Description",header:"Description"},{field:"RunDescription",header:"Run Description"},{field:"ActionType",header:"Action Type"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"CurrentRetryIteration",header:"Current Retry Iteration"},{field:"RunStatus",header:"Execution Status"},{field:"Error",header:"Error Details"},{field:"ExInfo",header:"Extra Details"},{field:"Screenshots",header:"Screenshot"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-actions-table"]],inputs:{actions:"actions",addExpender:"addExpender",tableExpenderType:"tableExpenderType",fieldsLinksArr:"fieldsLinksArr",activitySeq:"activitySeq"},decls:1,vars:9,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields","activitySeq"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.actionsCols)("data",o.actions)("addExpender",o.addExpender)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(8,roe))("activitySeq",o.activitySeq)},dependencies:[Is]})}return t})();function Ys(){}const aoe=function(){let t=0;return function(){return t++}}();function tn(t){return null===t||typeof t>"u"}function kn(t){if(Array.isArray&&Array.isArray(t))return!0;const i=Object.prototype.toString.call(t);return"[object"===i.slice(0,7)&&"Array]"===i.slice(-6)}function qt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ti=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function Po(t,i){return ti(t)?t:i}function Nt(t,i){return typeof t>"u"?i:t}const Lk=(t,i)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*i:+t;function Mn(t,i,e){if(t&&"function"==typeof t.call)return t.apply(e,i)}function _n(t,i,e,n){let o,s,r;if(kn(t))if(s=t.length,n)for(o=s-1;o>=0;o--)i.call(e,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function Pr(t,i){return(Fk[i]||(Fk[i]=function doe(t){const i=function poe(t){const i=t.split("."),e=[];let n="";for(const o of i)n+=o,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}(t);return e=>{for(const n of i){if(""===n)break;e=e&&e[n]}return e}}(i)))(t)}function DC(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Fo=t=>typeof t<"u",Fr=t=>"function"==typeof t,Rk=(t,i)=>{if(t.size!==i.size)return!1;for(const e of t)if(!i.has(e))return!1;return!0},Vn=Math.PI,Cn=2*Vn,foe=Cn+Vn,wf=Number.POSITIVE_INFINITY,goe=Vn/180,Qn=Vn/2,Uu=Vn/4,Nk=2*Vn/3,Ro=Math.log10,Cs=Math.sign;function Vk(t){const i=Math.round(t);t=$u(t,i,t/1e3)?i:t;const e=Math.pow(10,Math.floor(Ro(t))),n=t/e;return(n<=1?1:n<=2?2:n<=5?5:10)*e}function Gl(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $u(t,i,e){return Math.abs(t-i)l&&c=Math.min(i,e)-n&&t<=Math.max(i,e)+n}function OC(t,i,e){e=e||(r=>t[r]1;)s=o+n>>1,e(s)?o=s:n=s;return{lo:o,hi:n}}const Js=(t,i,e,n)=>OC(t,e,n?o=>t[o][i]<=e:o=>t[o][i]OC(t,e,n=>t[n][i]>=e),jk=["push","pop","shift","splice","unshift"];function Uk(t,i){const e=t._chartjs;if(!e)return;const n=e.listeners,o=n.indexOf(i);-1!==o&&n.splice(o,1),!(n.length>0)&&(jk.forEach(s=>{delete t[s]}),delete t._chartjs)}function $k(t){const i=new Set;let e,n;for(e=0,n=t.length;e"u"?function(t){return t()}:window.requestAnimationFrame;function Gk(t,i,e){const n=e||(r=>Array.prototype.slice.call(r));let o=!1,s=[];return function(...r){s=n(r),o||(o=!0,Kk.call(window,()=>{o=!1,t.apply(i,s)}))}}const LC=t=>"start"===t?"left":"end"===t?"right":"center",Li=(t,i,e)=>"start"===t?i:"end"===t?e:(i+e)/2;function qk(t,i,e){const n=i.length;let o=0,s=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:c,max:u,minDefined:p,maxDefined:m}=r.getUserBounds();p&&(o=pi(Math.min(Js(a,r.axis,c).lo,e?n:Js(i,l,r.getPixelForValue(c)).lo),0,n-1)),s=m?pi(Math.max(Js(a,r.axis,u,!0).hi+1,e?0:Js(i,l,r.getPixelForValue(u),!0).hi+1),o,n)-o:n-o}return{start:o,count:s}}function Wk(t){const{xScale:i,yScale:e,_scaleRanges:n}=t,o={xmin:i.min,xmax:i.max,ymin:e.min,ymax:e.max};if(!n)return t._scaleRanges=o,!0;const s=n.xmin!==i.min||n.xmax!==i.max||n.ymin!==e.min||n.ymax!==e.max;return Object.assign(n,o),s}const Tf=t=>0===t||1===t,Qk=(t,i,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-i)*Cn/e),Zk=(t,i,e)=>Math.pow(2,-10*t)*Math.sin((t-i)*Cn/e)+1,Gu={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Qn),easeOutSine:t=>Math.sin(t*Qn),easeInOutSine:t=>-.5*(Math.cos(Vn*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Tf(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Tf(t)?t:Qk(t,.075,.3),easeOutElastic:t=>Tf(t)?t:Zk(t,.075,.3),easeInOutElastic:t=>Tf(t)?t:t<.5?.5*Qk(2*t,.1125,.45):.5+.5*Zk(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let i=1.70158;return(t/=.5)<1?t*t*((1+(i*=1.525))*t-i)*.5:.5*((t-=2)*t*((1+(i*=1.525))*t+i)+2)},easeInBounce:t=>1-Gu.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*Gu.easeInBounce(2*t):.5*Gu.easeOutBounce(2*t-1)+.5};function qu(t){return t+.5|0}const Rr=(t,i,e)=>Math.max(Math.min(t,e),i);function Wu(t){return Rr(qu(2.55*t),0,255)}function Nr(t){return Rr(qu(255*t),0,255)}function er(t){return Rr(qu(t/2.55)/100,0,1)}function Yk(t){return Rr(qu(100*t),0,100)}const No={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},PC=[..."0123456789ABCDEF"],woe=t=>PC[15&t],Toe=t=>PC[(240&t)>>4]+PC[15&t],Sf=t=>(240&t)>>4==(15&t);const Moe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Xk(t,i,e){const n=i*Math.min(e,1-e),o=(s,r=(s+t/30)%12)=>e-n*Math.max(Math.min(r-3,9-r,1),-1);return[o(0),o(8),o(4)]}function Ooe(t,i,e){const n=(o,s=(o+t/60)%6)=>e-e*i*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Loe(t,i,e){const n=Xk(t,1,.5);let o;for(i+e>1&&(o=1/(i+e),i*=o,e*=o),o=0;o<3;o++)n[o]*=1-i-e,n[o]+=i;return n}function FC(t){const e=t.r/255,n=t.g/255,o=t.b/255,s=Math.max(e,n,o),r=Math.min(e,n,o),a=(s+r)/2;let l,c,u;return s!==r&&(u=s-r,c=a>.5?u/(2-s-r):u/(s+r),l=function Poe(t,i,e,n,o){return t===o?(i-e)/n+(it<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,ql=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Df(t,i,e){if(t){let n=FC(t);n[i]=Math.max(0,Math.min(n[i]+n[i]*e,0===i?360:1)),n=NC(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function n3(t,i){return t&&Object.assign(i||{},t)}function o3(t){var i={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(i={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(i.a=Nr(t[3]))):(i=n3(t,{r:0,g:0,b:0,a:1})).a=Nr(i.a),i}function Goe(t){return"r"===t.charAt(0)?function Uoe(t){const i=joe.exec(t);let n,o,s,e=255;if(i){if(i[7]!==n){const r=+i[7];e=i[8]?Wu(r):Rr(255*r,0,255)}return n=+i[1],o=+i[3],s=+i[5],n=255&(i[2]?Wu(n):Rr(n,0,255)),o=255&(i[4]?Wu(o):Rr(o,0,255)),s=255&(i[6]?Wu(s):Rr(s,0,255)),{r:n,g:o,b:s,a:e}}}(t):function Noe(t){const i=Moe.exec(t);let n,e=255;if(!i)return;i[5]!==n&&(e=i[6]?Wu(+i[5]):Nr(+i[5]));const o=Jk(+i[2]),s=+i[3]/100,r=+i[4]/100;return n="hwb"===i[1]?function Foe(t,i,e){return RC(Loe,t,i,e)}(o,s,r):"hsv"===i[1]?function Roe(t,i,e){return RC(Ooe,t,i,e)}(o,s,r):NC(o,s,r),{r:n[0],g:n[1],b:n[2],a:e}}(t)}class kf{constructor(i){if(i instanceof kf)return i;const e=typeof i;let n;"object"===e?n=o3(i):"string"===e&&(n=function Eoe(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*No[t[1]],g:255&17*No[t[2]],b:255&17*No[t[3]],a:5===i?17*No[t[4]]:255}:(7===i||9===i)&&(e={r:No[t[1]]<<4|No[t[2]],g:No[t[3]]<<4|No[t[4]],b:No[t[5]]<<4|No[t[6]],a:9===i?No[t[7]]<<4|No[t[8]]:255})),e}(i)||function zoe(t){Ef||(Ef=function Hoe(){const t={},i=Object.keys(t3),e=Object.keys(e3);let n,o,s,r,a;for(n=0;n>16&255,s>>8&255,255&s]}return t}(),Ef.transparent=[0,0,0,0]);const i=Ef[t.toLowerCase()];return i&&{r:i[0],g:i[1],b:i[2],a:4===i.length?i[3]:255}}(i)||Goe(i)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var i=n3(this._rgb);return i&&(i.a=er(i.a)),i}set rgb(i){this._rgb=o3(i)}rgbString(){return this._valid?function $oe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${er(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function koe(t){var i=(t=>Sf(t.r)&&Sf(t.g)&&Sf(t.b)&&Sf(t.a))(t)?woe:Toe;return t?"#"+i(t.r)+i(t.g)+i(t.b)+((t,i)=>t<255?i(t):"")(t.a,i):void 0}(this._rgb):void 0}hslString(){return this._valid?function Boe(t){if(!t)return;const i=FC(t),e=i[0],n=Yk(i[1]),o=Yk(i[2]);return t.a<255?`hsla(${e}, ${n}%, ${o}%, ${er(t.a)})`:`hsl(${e}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(i,e){if(i){const n=this.rgb,o=i.rgb;let s;const r=e===s?.5:e,a=2*r-1,l=n.a-o.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,n.r=255&c*n.r+s*o.r+.5,n.g=255&c*n.g+s*o.g+.5,n.b=255&c*n.b+s*o.b+.5,n.a=r*n.a+(1-r)*o.a,this.rgb=n}return this}interpolate(i,e){return i&&(this._rgb=function Koe(t,i,e){const n=ql(er(t.r)),o=ql(er(t.g)),s=ql(er(t.b));return{r:Nr(VC(n+e*(ql(er(i.r))-n))),g:Nr(VC(o+e*(ql(er(i.g))-o))),b:Nr(VC(s+e*(ql(er(i.b))-s))),a:t.a+e*(i.a-t.a)}}(this._rgb,i._rgb,e)),this}clone(){return new kf(this.rgb)}alpha(i){return this._rgb.a=Nr(i),this}clearer(i){return this._rgb.a*=1-i,this}greyscale(){const i=this._rgb,e=qu(.3*i.r+.59*i.g+.11*i.b);return i.r=i.g=i.b=e,this}opaquer(i){return this._rgb.a*=1+i,this}negate(){const i=this._rgb;return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,this}lighten(i){return Df(this._rgb,2,i),this}darken(i){return Df(this._rgb,2,-i),this}saturate(i){return Df(this._rgb,1,i),this}desaturate(i){return Df(this._rgb,1,-i),this}rotate(i){return function Voe(t,i){var e=FC(t);e[0]=Jk(e[0]+i),e=NC(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,i),this}}function s3(t){return new kf(t)}function r3(t){if(t&&"object"==typeof t){const i=t.toString();return"[object CanvasPattern]"===i||"[object CanvasGradient]"===i}return!1}function a3(t){return r3(t)?t:s3(t)}function BC(t){return r3(t)?t:s3(t).saturate(.5).darken(.1).hexString()}const ma=Object.create(null),HC=Object.create(null);function Qu(t,i){if(!i)return t;const e=i.split(".");for(let n=0,o=e.length;ne.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,n)=>BC(n.backgroundColor),this.hoverBorderColor=(e,n)=>BC(n.borderColor),this.hoverColor=(e,n)=>BC(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(i)}set(i,e){return zC(this,i,e)}get(i){return Qu(this,i)}describe(i,e){return zC(HC,i,e)}override(i,e){return zC(ma,i,e)}route(i,e,n,o){const s=Qu(this,i),r=Qu(this,n),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=r[o];return qt(l)?Object.assign({},c,l):Nt(l,c)},set(l){this[a]=l}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Mf(t,i,e,n,o){let s=i[o];return s||(s=i[o]=t.measureText(o).width,e.push(o)),s>n&&(n=s),n}function Qoe(t,i,e,n){let o=(n=n||{}).data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==i&&(o=n.data={},s=n.garbageCollect=[],n.font=i),t.save(),t.font=i;let r=0;const a=e.length;let l,c,u,p,m;for(l=0;le.length){for(l=0;l<_;l++)delete o[s[l]];s.splice(0,_)}return r}function _a(t,i,e){const n=t.currentDevicePixelRatio,o=0!==e?Math.max(e/2,.5):0;return Math.round((i-o)*n)/n+o}function l3(t,i){(i=i||t.getContext("2d")).save(),i.resetTransform(),i.clearRect(0,0,t.width,t.height),i.restore()}function jC(t,i,e,n){c3(t,i,e,n,null)}function c3(t,i,e,n,o){let s,r,a,l,c,u;const p=i.pointStyle,m=i.rotation,_=i.radius;let b=(m||0)*goe;if(p&&"object"==typeof p&&(s=p.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(e,n),t.rotate(b),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(_)||_<=0)){switch(t.beginPath(),p){default:o?t.ellipse(e,n,o/2,_,0,0,Cn):t.arc(e,n,_,0,Cn),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),b+=Nk,t.lineTo(e+Math.sin(b)*_,n-Math.cos(b)*_),t.closePath();break;case"rectRounded":c=.516*_,l=_-c,r=Math.cos(b+Uu)*l,a=Math.sin(b+Uu)*l,t.arc(e-r,n-a,c,b-Vn,b-Qn),t.arc(e+a,n-r,c,b-Qn,b),t.arc(e+r,n+a,c,b,b+Qn),t.arc(e-a,n+r,c,b+Qn,b+Vn),t.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*_,u=o?o/2:l,t.rect(e-u,n-l,2*u,2*l);break}b+=Uu;case"rectRot":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+a,n-r),t.lineTo(e+r,n+a),t.lineTo(e-a,n+r),t.closePath();break;case"crossRot":b+=Uu;case"cross":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"star":r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r),b+=Uu,r=Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a),t.moveTo(e+a,n-r),t.lineTo(e-a,n+r);break;case"line":r=o?o/2:Math.cos(b)*_,a=Math.sin(b)*_,t.moveTo(e-r,n-a),t.lineTo(e+r,n+a);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(b)*_,n+Math.sin(b)*_)}t.fill(),i.borderWidth>0&&t.stroke()}}function Zu(t,i,e){return e=e||.5,!i||t&&t.x>i.left-e&&t.xi.top-e&&t.y0&&""!==s.strokeColor;let l,c;for(t.save(),t.font=o.string,function Xoe(t,i){i.translation&&t.translate(i.translation[0],i.translation[1]),tn(i.rotation)||t.rotate(i.rotation),i.color&&(t.fillStyle=i.color),i.textAlign&&(t.textAlign=i.textAlign),i.textBaseline&&(t.textBaseline=i.textBaseline)}(t,s),l=0;l+t||0;function UC(t,i){const e={},n=qt(i),o=n?Object.keys(i):i,s=qt(t)?n?r=>Nt(t[r],t[i[r]]):r=>t[r]:()=>t;for(const r of o)e[r]=ise(s(r));return e}function u3(t){return UC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ca(t){return UC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Pi(t){const i=u3(t);return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ui(t,i){let e=Nt((t=t||{}).size,(i=i||Qt.font).size);"string"==typeof e&&(e=parseInt(e,10));let n=Nt(t.style,i.style);n&&!(""+n).match(tse)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const o={family:Nt(t.family,i.family),lineHeight:nse(Nt(t.lineHeight,i.lineHeight),e),size:e,style:n,weight:Nt(t.weight,i.weight),string:""};return o.string=function Woe(t){return!t||tn(t.size)||tn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Xu(t,i,e,n){let s,r,a,o=!0;for(s=0,r=t.length;st[0])){Fo(n)||(n=g3("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:e,_fallback:n,_getTarget:o,override:r=>$C([r,...t],i,e,n)};return new Proxy(s,{deleteProperty:(r,a)=>(delete r[a],delete r._keys,delete t[0][a],!0),get:(r,a)=>p3(r,a,()=>function pse(t,i,e,n){let o;for(const s of i)if(o=g3(sse(s,t),e),Fo(o))return KC(t,o)?GC(e,n,t,o):o}(a,i,t,r)),getOwnPropertyDescriptor:(r,a)=>Reflect.getOwnPropertyDescriptor(r._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(r,a)=>m3(r).includes(a),ownKeys:r=>m3(r),set(r,a,l){const c=r._storage||(r._storage=o());return r[a]=c[a]=l,delete r._keys,!0}})}function Wl(t,i,e,n){const o={_cacheable:!1,_proxy:t,_context:i,_subProxy:e,_stack:new Set,_descriptors:d3(t,n),setContext:s=>Wl(t,s,e,n),override:s=>Wl(t.override(s),i,e,n)};return new Proxy(o,{deleteProperty:(s,r)=>(delete s[r],delete t[r],!0),get:(s,r,a)=>p3(s,r,()=>function rse(t,i,e){const{_proxy:n,_context:o,_subProxy:s,_descriptors:r}=t;let a=n[i];return Fr(a)&&r.isScriptable(i)&&(a=function ase(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_stack:a}=e;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),i=i(s,r||n),a.delete(t),KC(t,i)&&(i=GC(o._scopes,o,t,i)),i}(i,a,t,e)),kn(a)&&a.length&&(a=function lse(t,i,e,n){const{_proxy:o,_context:s,_subProxy:r,_descriptors:a}=e;if(Fo(s.index)&&n(t))i=i[s.index%i.length];else if(qt(i[0])){const l=i,c=o._scopes.filter(u=>u!==l);i=[];for(const u of l){const p=GC(c,o,t,u);i.push(Wl(p,s,r&&r[t],a))}}return i}(i,a,t,r.isIndexable)),KC(i,a)&&(a=Wl(a,o,s&&s[i],r)),a}(s,r,a)),getOwnPropertyDescriptor:(s,r)=>s._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(s,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(s,r,a)=>(t[r]=a,delete s[r],!0)})}function d3(t,i={scriptable:!0,indexable:!0}){const{_scriptable:e=i.scriptable,_indexable:n=i.indexable,_allKeys:o=i.allKeys}=t;return{allKeys:o,scriptable:e,indexable:n,isScriptable:Fr(e)?e:()=>e,isIndexable:Fr(n)?n:()=>n}}const sse=(t,i)=>t?t+DC(i):i,KC=(t,i)=>qt(i)&&"adapters"!==t&&(null===Object.getPrototypeOf(i)||i.constructor===Object);function p3(t,i,e){if(Object.prototype.hasOwnProperty.call(t,i))return t[i];const n=e();return t[i]=n,n}function h3(t,i,e){return Fr(t)?t(i,e):t}const cse=(t,i)=>!0===t?i:"string"==typeof t?Pr(i,t):void 0;function use(t,i,e,n,o){for(const s of i){const r=cse(e,s);if(r){t.add(r);const a=h3(r._fallback,e,o);if(Fo(a)&&a!==e&&a!==n)return a}else if(!1===r&&Fo(n)&&e!==n)return null}return!1}function GC(t,i,e,n){const o=i._rootScopes,s=h3(i._fallback,e,n),r=[...t,...o],a=new Set;a.add(n);let l=f3(a,r,e,s||e,n);return!(null===l||Fo(s)&&s!==e&&(l=f3(a,r,s,l,n),null===l))&&$C(Array.from(a),[""],o,s,()=>function dse(t,i,e){const n=t._getTarget();i in n||(n[i]={});const o=n[i];return kn(o)&&qt(e)?e:o}(i,e,n))}function f3(t,i,e,n,o){for(;e;)e=use(t,i,e,n,o);return e}function g3(t,i){for(const e of i){if(!e)continue;const n=e[t];if(Fo(n))return n}}function m3(t){let i=t._keys;return i||(i=t._keys=function hse(t){const i=new Set;for(const e of t)for(const n of Object.keys(e).filter(o=>!o.startsWith("_")))i.add(n);return Array.from(i)}(t._scopes)),i}function _3(t,i,e,n){const{iScale:o}=t,{key:s="r"}=this._parsing,r=new Array(n);let a,l,c,u;for(a=0,l=n;ai"x"===t?"y":"x";function gse(t,i,e,n){const o=t.skip?i:t,s=i,r=e.skip?i:e,a=MC(s,o),l=MC(r,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const p=n*c,m=n*u;return{previous:{x:s.x-p*(r.x-o.x),y:s.y-p*(r.y-o.y)},next:{x:s.x+m*(r.x-o.x),y:s.y+m*(r.y-o.y)}}}function Pf(t,i,e){return Math.max(Math.min(t,e),i)}function vse(t,i,e,n,o){let s,r,a,l;if(i.spanGaps&&(t=t.filter(c=>!c.skip)),"monotone"===i.cubicInterpolationMode)!function Ise(t,i="x"){const e=I3(i),n=t.length,o=Array(n).fill(0),s=Array(n);let r,a,l,c=Ql(t,0);for(r=0;rwindow.getComputedStyle(t,null),yse=["top","right","bottom","left"];function va(t,i,e){const n={};e=e?"-"+e:"";for(let o=0;o<4;o++){const s=yse[o];n[s]=parseFloat(t[i+"-"+s+e])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const xse=(t,i,e)=>(t>0||i>0)&&(!e||!e.shadowRoot);function ba(t,i){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:n}=i,o=Rf(e),s="border-box"===o.boxSizing,r=va(o,"padding"),a=va(o,"border","width"),{x:l,y:c,box:u}=function Ase(t,i){const e=t.touches,n=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=n;let a,l,r=!1;if(xse(o,s,t.target))a=o,l=s;else{const c=i.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,r=!0}return{x:a,y:l,box:r}}(t,e),p=r.left+(u&&a.left),m=r.top+(u&&a.top);let{width:_,height:b}=i;return s&&(_-=r.width+a.width,b-=r.height+a.height),{x:Math.round((l-p)/_*e.width/n),y:Math.round((c-m)/b*e.height/n)}}const WC=t=>Math.round(10*t)/10;function v3(t,i,e){const n=i||1,o=Math.floor(t.height*n),s=Math.floor(t.width*n);t.height=o/n,t.width=s/n;const r=t.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==o||r.width!==s)&&(t.currentDevicePixelRatio=n,r.height=o,r.width=s,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Sse=function(){let t=!1;try{const i={get passive(){return t=!0,!1}};window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return t}();function b3(t,i){const e=function bse(t,i){return Rf(t).getPropertyValue(i)}(t,i),n=e&&e.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function ya(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:t.y+e*(i.y-t.y)}}function Ese(t,i,e,n){return{x:t.x+e*(i.x-t.x),y:"middle"===n?e<.5?t.y:i.y:"after"===n?e<1?t.y:i.y:e>0?i.y:t.y}}function Dse(t,i,e,n){const o={x:t.cp2x,y:t.cp2y},s={x:i.cp1x,y:i.cp1y},r=ya(t,o,e),a=ya(o,s,e),l=ya(s,i,e),c=ya(r,a,e),u=ya(a,l,e);return ya(c,u,e)}const y3=new Map;function Ju(t,i,e){return function kse(t,i){i=i||{};const e=t+JSON.stringify(i);let n=y3.get(e);return n||(n=new Intl.NumberFormat(t,i),y3.set(e,n)),n}(i,e).format(t)}function Zl(t,i,e){return t?function(t,i){return{x:e=>t+t+i-e,setWidth(e){i=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(i,e):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,i)=>t+i,leftForLtr:(t,i)=>t}}function x3(t,i){let e,n;("ltr"===i||"rtl"===i)&&(e=t.canvas.style,n=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",i,"important"),t.prevTextDirection=n)}function A3(t,i){void 0!==i&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",i[0],i[1]))}function w3(t){return"angle"===t?{between:Ku,compare:Ioe,normalize:vo}:{between:Xs,compare:(i,e)=>i-e,normalize:i=>i}}function T3({start:t,end:i,count:e,loop:n,style:o}){return{start:t%e,end:i%e,loop:n&&(i-t+1)%e==0,style:o}}function S3(t,i,e){if(!e)return[t];const{property:n,start:o,end:s}=e,r=i.length,{compare:a,between:l,normalize:c}=w3(n),{start:u,end:p,loop:m,style:_}=function Lse(t,i,e){const{property:n,start:o,end:s}=e,{between:r,normalize:a}=w3(n),l=i.length;let m,_,{start:c,end:u,loop:p}=t;if(p){for(c+=l,u+=l,m=0,_=l;m<_&&r(a(i[c%l][n]),o,s);++m)c--,u--;c%=l,u%=l}return ua({chart:i,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Kk.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(i=Date.now()){let e=0;this._charts.forEach((n,o)=>{if(!n.running||!n.items.length)return;const s=n.items;let l,r=s.length-1,a=!1;for(;r>=0;--r)l=s[r],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(i),a=!0):(s[r]=s[s.length-1],s.pop());a&&(o.draw(),this._notify(o,n,i,"progress")),s.length||(n.running=!1,this._notify(o,n,i,"complete"),n.initial=!1),e+=s.length}),this._lastDate=i,0===e&&(this._running=!1)}_getAnims(i){const e=this._charts;let n=e.get(i);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(i,n)),n}listen(i,e,n){this._getAnims(i).listeners[e].push(n)}add(i,e){!e||!e.length||this._getAnims(i).items.push(...e)}has(i){return this._getAnims(i).items.length>0}start(i){const e=this._charts.get(i);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,o)=>Math.max(n,o._duration),0),this._refresh())}running(i){if(!this._running)return!1;const e=this._charts.get(i);return!(!e||!e.running||!e.items.length)}stop(i){const e=this._charts.get(i);if(!e||!e.items.length)return;const n=e.items;let o=n.length-1;for(;o>=0;--o)n[o].cancel();e.items=[],this._notify(i,e,Date.now(),"complete")}remove(i){return this._charts.delete(i)}};const M3="transparent",Hse={boolean:(t,i,e)=>e>.5?i:t,color(t,i,e){const n=a3(t||M3),o=n.valid&&a3(i||M3);return o&&o.valid?o.mix(n,e).hexString():i},number:(t,i,e)=>t+(i-t)*e};class zse{constructor(i,e,n,o){const s=e[n];o=Xu([i.to,o,s,i.from]);const r=Xu([i.from,s,o]);this._active=!0,this._fn=i.fn||Hse[i.type||typeof r],this._easing=Gu[i.easing]||Gu.linear,this._start=Math.floor(Date.now()+(i.delay||0)),this._duration=this._total=Math.floor(i.duration),this._loop=!!i.loop,this._target=e,this._prop=n,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(i,e,n){if(this._active){this._notify(!1);const o=this._target[this._prop],s=n-this._start,r=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(r,i.duration)),this._total+=s,this._loop=!!i.loop,this._to=Xu([i.to,e,o,i.from]),this._from=Xu([i.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(i){const e=i-this._start,n=this._duration,o=this._prop,s=this._from,r=this._loop,a=this._to;let l;if(this._active=s!==a&&(r||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,a,l))}wait(){const i=this._promises||(this._promises=[]);return new Promise((e,n)=>{i.push({res:e,rej:n})})}_notify(i){const e=i?"res":"rej",n=this._promises||[];for(let o=0;o"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Qt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Qt.describe("animations",{_fallback:"animation"}),Qt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class O3{constructor(i,e){this._chart=i,this._properties=new Map,this.configure(e)}configure(i){if(!qt(i))return;const e=this._properties;Object.getOwnPropertyNames(i).forEach(n=>{const o=i[n];if(!qt(o))return;const s={};for(const r of $se)s[r]=o[r];(kn(o.properties)&&o.properties||[n]).forEach(r=>{(r===n||!e.has(r))&&e.set(r,s)})})}_animateOptions(i,e){const n=e.options,o=function Gse(t,i){if(!i)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=i}(i,n);if(!o)return[];const s=this._createAnimations(o,n);return n.$shared&&function Kse(t,i){const e=[],n=Object.keys(i);for(let o=0;o{i.options=n},()=>{}),s}_createAnimations(i,e){const n=this._properties,o=[],s=i.$animations||(i.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if("$"===c.charAt(0))continue;if("options"===c){o.push(...this._animateOptions(i,e));continue}const u=e[c];let p=s[c];const m=n.get(c);if(p){if(m&&p.active()){p.update(m,u,a);continue}p.cancel()}m&&m.duration?(s[c]=p=new zse(m,i,c,u),o.push(p)):i[c]=u}return o}update(i,e){if(0===this._properties.size)return void Object.assign(i,e);const n=this._createAnimations(i,e);return n.length?(tr.add(this._chart,n),!0):void 0}}function L3(t,i){const e=t&&t.options||{},n=e.reverse,o=void 0===e.min?i:0,s=void 0===e.max?i:0;return{start:n?s:o,end:n?o:s}}function P3(t,i){const e=[],n=t._getSortedDatasetMetas(i);let o,s;for(o=0,s=n.length;o0||!e&&s<0)return o.index}return null}function V3(t,i){const{chart:e,_cachedMeta:n}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:r,index:a}=n,l=s.axis,c=r.axis,u=function Zse(t,i,e){return`${t.id}.${i.id}.${e.stack||e.type}`}(s,r,n),p=i.length;let m;for(let _=0;_e[n].axis===i).shift()}function ed(t,i){const e=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){i=i||t._parsed;for(const o of i){const s=o._stacks;if(!s||void 0===s[n]||void 0===s[n][e])return;delete s[n][e]}}}const ZC=t=>"reset"===t||"none"===t,B3=(t,i)=>i?t:Object.assign({},t);let vs=(()=>{class t{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=R3(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&ed(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,o=this.getDataset(),s=(m,_,b,E)=>"x"===m?_:"r"===m?E:b,r=n.xAxisID=Nt(o.xAxisID,QC(e,"x")),a=n.yAxisID=Nt(o.yAxisID,QC(e,"y")),l=n.rAxisID=Nt(o.rAxisID,QC(e,"r")),c=n.indexAxis,u=n.iAxisID=s(c,r,a,l),p=n.vAxisID=s(c,a,r,l);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Uk(this._data,this),e._stacked&&ed(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),o=this._data;if(qt(n))this._data=function Qse(t){const i=Object.keys(t),e=new Array(i.length);let n,o,s;for(n=0,o=i.length;n{const n="_onData"+DC(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){const r=o.apply(this,s);return t._chartjs.listeners.forEach(a=>{"function"==typeof a[n]&&a[n](...s)}),r}})}))}(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const r=n._stacked;n._stacked=R3(n.vScale,n),n.stack!==o.stack&&(s=!0,ed(n),n.stack=o.stack),this._resyncElements(e),(s||r!==n._stacked)&&V3(this,n._parsed)}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:o,_data:s}=this,{iScale:r,_stacked:a}=o,l=r.axis;let p,m,_,c=0===e&&n===s.length||o._sorted,u=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=s,o._sorted=!0,_=s;else{_=kn(s[e])?this.parseArrayData(o,s,e,n):qt(s[e])?this.parseObjectData(o,s,e,n):this.parsePrimitiveData(o,s,e,n);const b=()=>null===m[l]||u&&m[l]t&&!i.hidden&&i._stacked&&{keys:P3(this.chart,!0),values:null})(n,o),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:m}=function Yse(t){const{min:i,max:e,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?i:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}(l);let _,b;function E(){b=s[_];const P=b[l.axis];return!ti(b[e.axis])||p>P||m=0;--_)if(!E()){this.updateRangeFromParsed(u,e,b,c);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,o=[];let s,r,a;for(s=0,r=n.length;s=0&&ethis.getContext(o,s),m);return P.$shared&&(P.$shared=c,r[a]=Object.freeze(B3(P,c))),P}_resolveAnimations(e,n,o){const s=this.chart,r=this._cachedDataOpts,a=`animation-${n}`,l=r[a];if(l)return l;let c;if(!1!==s.options.animation){const p=this.chart.config,m=p.datasetAnimationScopeKeys(this._type,n),_=p.getOptionScopes(this.getDataset(),m);c=p.createResolver(_,this.getContext(e,o,n))}const u=new O3(s,c&&c.animations);return c&&c._cacheable&&(r[a]=Object.freeze(u)),u}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||ZC(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const o=this.resolveDataElementOptions(e,n),s=this._sharedOptions,r=this.getSharedOptions(o),a=this.includeOptions(n,r)||r!==s;return this.updateSharedOptions(r,n,o),{sharedOptions:r,includeOptions:a}}updateElement(e,n,o,s){ZC(s)?Object.assign(e,o):this._resolveAnimations(n,s).update(e,o)}updateSharedOptions(e,n,o){e&&!ZC(n)&&this._resolveAnimations(void 0,n).update(e,o)}_setStyle(e,n,o,s){e.active=s;const r=this.getStyle(n,s);this._resolveAnimations(n,o,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,n,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,o=this._cachedMeta.data;for(const[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];const s=o.length,r=n.length,a=Math.min(r,s);a&&this.parse(0,a),r>s?this._insertElements(s,r-s,e):r{for(u.length+=n,l=u.length-1;l>=a;l--)u[l]=u[l-n]};for(c(r),l=e;lo-s))}return t._cache.$bar}(i,t.type);let o,s,r,a,n=i._length;const l=()=>{32767===r||-32768===r||(Fo(a)&&(n=Math.min(n,Math.abs(r-a)||n)),a=r)};for(o=0,s=e.length;oMath.abs(a)&&(l=a,c=r),i[e.axis]=c,i._custom={barStart:l,barEnd:c,start:o,end:s,min:r,max:a}}(t,i,e,n):i[e.axis]=e.parse(t,n),i}function z3(t,i,e,n){const o=t.iScale,s=t.vScale,r=o.getLabels(),a=o===s,l=[];let c,u,p,m;for(c=e,u=e+n;ct.x,e="left",n="right"):(i=t.base{class t extends vs{parsePrimitiveData(e,n,o,s){return z3(e,n,o,s)}parseArrayData(e,n,o,s){return z3(e,n,o,s)}parseObjectData(e,n,o,s){const{iScale:r,vScale:a}=e,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u="x"===r.axis?l:c,p="x"===a.axis?l:c,m=[];let _,b,E,P;for(_=o,b=o+s;_c.controller.options.grouped),r=o.options.stacked,a=[],l=c=>{const u=c.controller.getParsed(n),p=u&&u[c.vScale.axis];if(tn(p)||isNaN(p))return!0};for(const c of s)if((void 0===n||!l(c))&&((!1===r||-1===a.indexOf(c.stack)||void 0===r&&void 0===c.stack)&&a.push(c.stack),c.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,o){const s=this._getStacks(e,o),r=void 0!==n?s.indexOf(n):-1;return-1===r?s.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,o=n.iScale,s=[];let r,a;for(r=0,a=n.data.length;r=e?1:-1)}(E,n,a)*r,p===a&&(W-=E/2);const te=n.getPixelForDecimal(0),fe=n.getPixelForDecimal(1),Ce=Math.min(te,fe),ve=Math.max(te,fe);W=Math.max(Math.min(W,ve),Ce),b=W+E}if(W===n.getPixelForValue(a)){const te=Cs(E)*n.getLineWidthForValue(a)/2;W+=te,E-=te}return{size:E,base:W,head:b,center:b+E/2}}_calculateBarIndexPixels(e,n){const o=n.scale,s=this.options,r=s.skipNull,a=Nt(s.maxBarThickness,1/0);let l,c;if(n.grouped){const u=r?this._getStackCount(e):n.stackCount,p="flex"===s.barThickness?function sre(t,i,e,n){const o=i.pixels,s=o[t];let r=t>0?o[t-1]:null,a=t{class t extends vs{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,o,s){const r=super.parsePrimitiveData(e,n,o,s);for(let a=0;a=0;--o)n=Math.max(n,e[o].size(this.resolveDataElementOptions(o))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,{xScale:o,yScale:s}=n,r=this.getParsed(e),a=o.getLabelForValue(r.x),l=s.getLabelForValue(r.y),c=r._custom;return{label:n.label,value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(n,s),p=a.axis,m=l.axis;for(let _=n;_""}}}},t})(),$3=(()=>{class t extends vs{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const o=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=o;else{let a,l,r=c=>+o[c];if(qt(o[e])){const{key:c="value"}=this._parsing;r=u=>+Pr(o[u],c)}for(a=e,l=e+n;a"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/i)(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:p,rotation:m}=this._getRotationExtents(),{ratioX:_,ratioY:b,offsetX:E,offsetY:P}=function fre(t,i,e){let n=1,o=1,s=0,r=0;if(iKu(fe,a,l,!0)?1:Math.max(Ce,Ce*e,ve,ve*e),b=(fe,Ce,ve)=>Ku(fe,a,l,!0)?-1:Math.min(Ce,Ce*e,ve,ve*e),E=_(0,c,p),P=_(Qn,u,m),W=b(Vn,c,p),te=b(Vn+Qn,u,m);n=(E-W)/2,o=(P-te)/2,s=-(E+W)/2,r=-(P+te)/2}return{ratioX:n,ratioY:o,offsetX:s,offsetY:r}}(m,p,c),fe=Math.max(Math.min((o.width-a)/_,(o.height-a)/b)/2,0),Ce=Lk(this.options.radius,fe),ke=(Ce-Math.max(Ce*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=E*Ce,this.offsetY=P*Ce,s.total=this.calculateTotal(),this.outerRadius=Ce-ke*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-ke*u,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const o=this.options,s=this._cachedMeta,r=this._getCircumference();return n&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||null===s._parsed[e]||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Cn)}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,l=a.chartArea,p=(l.left+l.right)/2,m=(l.top+l.bottom)/2,_=r&&a.options.animation.animateScale,b=_?0:this.innerRadius,E=_?0:this.outerRadius,{sharedOptions:P,includeOptions:W}=this._getSharedOptions(n,s);let fe,te=this._getRotation();for(fe=0;fe0&&!isNaN(e)?Cn*(Math.abs(e)/n):0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e],o.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const o=this.chart;let s,r,a,l,c;if(!e)for(s=0,r=o.data.datasets.length;s"spacing"!==i,_indexable:i=>"spacing"!==i},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(i){let e=i.label;const n=": "+i.formattedValue;return kn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}},t})(),gre=(()=>{class t extends vs{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:o,data:s=[],_dataset:r}=n,a=this.chart._animationsDisabled;let{start:l,count:c}=qk(n,s,a);this._drawStart=l,this._drawCount=c,Wk(n)&&(l=0,c=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=s;const u=this.resolveDatasetElementOptions(e);this.options.showLine||(u.borderWidth=0),u.segment=this.options.segment,this.updateElement(o,void 0,{animated:!a,options:u},e),this.updateElements(s,l,c,e)}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(n,s),_=a.axis,b=l.axis,{spanGaps:E,segment:P}=this.options,W=Gl(E)?E:Number.POSITIVE_INFINITY,te=this.chart._animationsDisabled||r||"none"===s;let fe=n>0&&this.getParsed(n-1);for(let Ce=n;Ce0&&Math.abs(ke[_]-fe[_])>W,P&&(Pe.parsed=ke,Pe.raw=u.data[Ce]),m&&(Pe.options=p||this.resolveDataElementOptions(Ce,ve.active?"active":s)),te||this.updateElement(ve,Ce,Pe,s),fe=ke}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,o=n.options&&n.options.borderWidth||0,s=e.data||[];if(!s.length)return o;const r=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,r,a)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}return t.id="line",t.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},t.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}},t})(),mre=(()=>{class t extends vs{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],r=Ju(this._cachedMeta._parsed[e].r,o.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((o,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(rn.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,o=e.options,s=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(s/2,0),l=(r-Math.max(o.cutoutPercentage?r/100*o.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=r-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(e,n,o,s){const r="reset"===s,a=this.chart,c=a.options.animation,u=this._cachedMeta.rScale,p=u.xCenter,m=u.yCenter,_=u.getIndexAngle(0)-.5*Vn;let E,b=_;const P=360/this.countVisibleElements();for(E=0;E{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(e,n,o){return this.chart.getDataVisibility(e)?Yo(this.resolveDataElementOptions(e,n).angle||o):0}}return t.id="polarArea",t.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},t.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(i){const e=i.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=i.legend.options;return e.labels.map((o,s)=>{const a=i.getDatasetMeta(0).controller.getStyle(s);return{text:o,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,pointStyle:n,hidden:!i.getDataVisibility(s),index:s}})}return[]}},onClick(i,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:i=>i.chart.data.labels[i.dataIndex]+": "+i.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}},t})(),_re=(()=>{class t extends $3{}return t.id="pie",t.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"},t})(),Ire=(()=>{class t extends vs{getLabelAndValue(e){const n=this._cachedMeta.vScale,o=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(o[n.axis])}}parseObjectData(e,n,o,s){return _3.bind(this)(e,n,o,s)}update(e){const n=this._cachedMeta,o=n.dataset,s=n.data||[],r=n.iScale.getLabels();if(o.points=s,"resize"!==e){const a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0),this.updateElement(o,void 0,{_loop:!0,_fullLoop:r.length===s.length,options:a},e)}this.updateElements(s,0,s.length,e)}updateElements(e,n,o,s){const r=this._cachedMeta.rScale,a="reset"===s;for(let l=n;l{o[s]=n[s]&&n[s].active()?n[s]._to:this[s]}),o}}Xo.defaults={},Xo.defaultRoutes=void 0;const K3={values:t=>kn(t)?t:""+t,numeric(t,i,e){if(0===t)return"0";const n=this.chart.options.locale;let o,s=t;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=function Cre(t,i){let e=i.length>3?i[2].value-i[1].value:i[1].value-i[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const r=Ro(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Ju(t,n,l)},logarithmic(t,i,e){if(0===t)return"0";const n=t/Math.pow(10,Math.floor(Ro(t)));return 1===n||2===n||5===n?K3.numeric.call(this,t,i,e):""}};var Nf={formatters:K3};function Vf(t,i,e,n,o){const s=Nt(n,0),r=Math.min(Nt(o,t.length),t.length);let l,c,u,a=0;for(e=Math.ceil(e),o&&(l=o-n,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);ci.lineWidth,tickColor:(t,i)=>i.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Nf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Qt.route("scale.ticks","color","","color"),Qt.route("scale.grid","color","","borderColor"),Qt.route("scale.grid","borderColor","","borderColor"),Qt.route("scale.title","color","","color"),Qt.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),Qt.describe("scales",{_fallback:"scale"}),Qt.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const G3=(t,i,e)=>"top"===i||"left"===i?t[i]+e:t[i]-e;function q3(t,i){const e=[],n=t.length/i,o=t.length;let s=0;for(;sr+a)))return l}function td(t){return t.drawTicks?t.tickLength:0}function W3(t,i){if(!t.display)return 0;const e=ui(t.font,i),n=Pi(t.padding);return(kn(t.text)?t.text.length:1)*e.lineHeight+n.height}function Mre(t,i,e){let n=LC(t);return(e&&"right"!==i||!e&&"right"===i)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class xa extends Xo{constructor(i){super(),this.id=i.id,this.type=i.type,this.options=void 0,this.ctx=i.ctx,this.chart=i.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(i){this.options=i.setContext(this.getContext()),this.axis=i.axis,this._userMin=this.parse(i.min),this._userMax=this.parse(i.max),this._suggestedMin=this.parse(i.suggestedMin),this._suggestedMax=this.parse(i.suggestedMax)}parse(i,e){return i}getUserBounds(){let{_userMin:i,_userMax:e,_suggestedMin:n,_suggestedMax:o}=this;return i=Po(i,Number.POSITIVE_INFINITY),e=Po(e,Number.NEGATIVE_INFINITY),n=Po(n,Number.POSITIVE_INFINITY),o=Po(o,Number.NEGATIVE_INFINITY),{min:Po(i,n),max:Po(e,o),minDefined:ti(i),maxDefined:ti(e)}}getMinMax(i){let r,{min:e,max:n,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:e,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;ln?n:e,n=o&&e>n?e:n,{min:Po(e,Po(n,e)),max:Po(n,Po(e,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const i=this.chart.data;return this.options.labels||(this.isHorizontal()?i.xLabels:i.yLabels)||i.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mn(this.options.beforeUpdate,[this])}update(i,e,n){const{beginAtZero:o,grace:s,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=i,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function ose(t,i,e){const{min:n,max:o}=t,s=Lk(i,(o-n)/2),r=(a,l)=>e&&0===a?0:a+l;return{min:r(n,-Math.abs(s)),max:r(o,s)}}(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=an)return function Are(t,i,e,n){let r,o=0,s=e[0];for(n=Math.ceil(n),r=0;ro-s).pop(),i}(n);for(let r=0,a=s.length-1;ro)return l}return Math.max(o,1)}(o,i,n);if(s>0){let u,p;const m=s>1?Math.round((a-r)/(s-1)):null;for(Vf(i,l,c,tn(m)?0:r-m,r),u=0,p=s-1;u=s||n<=1||!this.isHorizontal())return void(this.labelRotation=o);const u=this._getLabelSizes(),p=u.widest.width,m=u.highest.height,_=pi(this.chart.width-p,0,this.maxWidth);a=i.offset?this.maxWidth/n:_/(n-1),p+6>a&&(a=_/(n-(i.offset?.5:1)),l=this.maxHeight-td(i.grid)-e.padding-W3(i.title,this.chart.options.font),c=Math.sqrt(p*p+m*m),r=kC(Math.min(Math.asin(pi((u.highest.height+6)/a,-1,1)),Math.asin(pi(l/c,-1,1))-Math.asin(pi(m/c,-1,1)))),r=Math.max(o,Math.min(s,r))),this.labelRotation=r}afterCalculateLabelRotation(){Mn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mn(this.options.beforeFit,[this])}fit(){const i={width:0,height:0},{chart:e,options:{ticks:n,title:o,grid:s}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=W3(o,e.options.font);if(a?(i.width=this.maxWidth,i.height=td(s)+l):(i.height=this.maxHeight,i.width=td(s)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:p,highest:m}=this._getLabelSizes(),_=2*n.padding,b=Yo(this.labelRotation),E=Math.cos(b),P=Math.sin(b);a?i.height=Math.min(this.maxHeight,i.height+(n.mirror?0:P*p.width+E*m.height)+_):i.width=Math.min(this.maxWidth,i.width+(n.mirror?0:E*p.width+P*m.height)+_),this._calculatePadding(c,u,P,E)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=i.height):(this.width=i.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(i,e,n,o){const{ticks:{align:s,padding:r},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,p=this.right-this.getPixelForTick(this.ticks.length-1);let m=0,_=0;l?c?(m=o*i.width,_=n*e.height):(m=n*i.height,_=o*e.width):"start"===s?_=e.width:"end"===s?m=i.width:"inner"!==s&&(m=i.width/2,_=e.width/2),this.paddingLeft=Math.max((m-u+r)*this.width/(this.width-u),0),this.paddingRight=Math.max((_-p+r)*this.width/(this.width-p),0)}else{let u=e.height/2,p=i.height/2;"start"===s?(u=0,p=i.height):"end"===s&&(u=e.height,p=0),this.paddingTop=u+r,this.paddingBottom=p+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mn(this.options.afterFit,[this])}isHorizontal(){const{axis:i,position:e}=this.options;return"top"===e||"bottom"===e||"x"===i}isFullSize(){return this.options.fullSize}_convertTicksToLabels(i){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(i),e=0,n=i.length;e{const n=e.gc,o=n.length/2;let s;if(o>i){for(s=0;s({width:s[Pe]||0,height:r[Pe]||0});return{first:ke(0),last:ke(e-1),widest:ke(Ce),highest:ke(ve),widths:s,heights:r}}getLabelForValue(i){return i}getPixelForValue(i,e){return NaN}getValueForPixel(i){}getPixelForTick(i){const e=this.ticks;return i<0||i>e.length-1?null:this.getPixelForValue(e[i].value)}getPixelForDecimal(i){this._reversePixels&&(i=1-i);const e=this._startPixel+i*this._length;return function Coe(t){return pi(t,-32768,32767)}(this._alignToPixels?_a(this.chart,e,0):e)}getDecimalForPixel(i){const e=(i-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:i,max:e}=this;return i<0&&e<0?e:i>0&&e>0?i:0}getContext(i){const e=this.ticks||[];if(i>=0&&ia*o?a/n:l/o:l*o0}_computeGridLineItems(i){const e=this.axis,n=this.chart,o=this.options,{grid:s,position:r}=o,a=s.offset,l=this.isHorizontal(),u=this.ticks.length+(a?1:0),p=td(s),m=[],_=s.setContext(this.getContext()),b=_.drawBorder?_.borderWidth:0,E=b/2,P=function(wt){return _a(n,wt,b)};let W,te,fe,Ce,ve,ke,Pe,$e,Ke,pt,jt,Vt;if("top"===r)W=P(this.bottom),ke=this.bottom-p,$e=W-E,pt=P(i.top)+E,Vt=i.bottom;else if("bottom"===r)W=P(this.top),pt=i.top,Vt=P(i.bottom)-E,ke=W+E,$e=this.top+p;else if("left"===r)W=P(this.right),ve=this.right-p,Pe=W-E,Ke=P(i.left)+E,jt=i.right;else if("right"===r)W=P(this.left),Ke=i.left,jt=P(i.right)-E,ve=W+E,Pe=this.left+p;else if("x"===e){if("center"===r)W=P((i.top+i.bottom)/2+.5);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}pt=i.top,Vt=i.bottom,ke=W+E,$e=ke+p}else if("y"===e){if("center"===r)W=P((i.left+i.right)/2);else if(qt(r)){const wt=Object.keys(r)[0];W=P(this.chart.scales[wt].getPixelForValue(r[wt]))}ve=W-E,Pe=ve-p,Ke=i.left,jt=i.right}const vn=Nt(o.ticks.maxTicksLimit,u),hi=Math.max(1,Math.ceil(u/vn));for(te=0;tes.value===i);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(i){const e=this.options.grid,n=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(i));let s,r;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(e.display)for(s=0,r=o.length;s{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]:[{z:e,draw:o=>{this.draw(o)}}]}getMatchingVisibleMetas(i){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",o=[];let s,r;for(s=0,r=e.length;s{const n=e.split("."),o=n.pop(),s=[t].concat(n).join("."),r=i[e].split("."),a=r.pop(),l=r.join(".");Qt.route(s,o,l,a)})}(i,t.defaultRoutes),t.descriptors&&Qt.describe(i,t.descriptors)}(i,r,n),this.override&&Qt.override(i.id,i.overrides)),r}get(i){return this.items[i]}unregister(i){const e=this.items,n=i.id,o=this.scope;n in e&&delete e[n],o&&n in Qt[o]&&(delete Qt[o][n],this.override&&delete ma[n])}}var bs=new class Rre{constructor(){this.controllers=new Bf(vs,"datasets",!0),this.elements=new Bf(Xo,"elements"),this.plugins=new Bf(Object,"plugins"),this.scales=new Bf(xa,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...i){this._each("register",i)}remove(...i){this._each("unregister",i)}addControllers(...i){this._each("register",i,this.controllers)}addElements(...i){this._each("register",i,this.elements)}addPlugins(...i){this._each("register",i,this.plugins)}addScales(...i){this._each("register",i,this.scales)}getController(i){return this._get(i,this.controllers,"controller")}getElement(i){return this._get(i,this.elements,"element")}getPlugin(i){return this._get(i,this.plugins,"plugin")}getScale(i){return this._get(i,this.scales,"scale")}removeControllers(...i){this._each("unregister",i,this.controllers)}removeElements(...i){this._each("unregister",i,this.elements)}removePlugins(...i){this._each("unregister",i,this.plugins)}removeScales(...i){this._each("unregister",i,this.scales)}_each(i,e,n){[...e].forEach(o=>{const s=n||this._getRegistryForType(o);n||s.isForType(o)||s===this.plugins&&o.id?this._exec(i,s,o):_n(o,r=>{const a=n||this._getRegistryForType(r);this._exec(i,a,r)})})}_exec(i,e,n){const o=DC(i);Mn(n["before"+o],[],n),e[i](n),Mn(n["after"+o],[],n)}_getRegistryForType(i){for(let e=0;e{class t extends vs{update(e){const n=this._cachedMeta,{data:o=[]}=n,s=this.chart._animationsDisabled;let{start:r,count:a}=qk(n,o,s);if(this._drawStart=r,this._drawCount=a,Wk(n)&&(r=0,a=o.length),this.options.showLine){const{dataset:l,_dataset:c}=n;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=o;const u=this.resolveDatasetElementOptions(e);u.segment=this.options.segment,this.updateElement(l,void 0,{animated:!s,options:u},e)}this.updateElements(o,r,a,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=bs.getElement("line")),super.addElements()}updateElements(e,n,o,s){const r="reset"===s,{iScale:a,vScale:l,_stacked:c,_dataset:u}=this._cachedMeta,p=this.resolveDataElementOptions(n,s),m=this.getSharedOptions(p),_=this.includeOptions(s,m),b=a.axis,E=l.axis,{spanGaps:P,segment:W}=this.options,te=Gl(P)?P:Number.POSITIVE_INFINITY,fe=this.chart._animationsDisabled||r||"none"===s;let Ce=n>0&&this.getParsed(n-1);for(let ve=n;ve0&&Math.abs(Pe[b]-Ce[b])>te,W&&($e.parsed=Pe,$e.raw=u.data[ve]),_&&($e.options=m||this.resolveDataElementOptions(ve,ke.active?"active":s)),fe||this.updateElement(ke,ve,$e,s),Ce=Pe}this.updateSharedOptions(m,s,p)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let l=0;for(let c=n.length-1;c>=0;--c)l=Math.max(l,n[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}const o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!n.length)return s;const r=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,r,a)/2}}return t.id="scatter",t.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},t.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:i=>"("+i.label+", "+i.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}},t})()});function Aa(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Vre={_date:(()=>{class t{constructor(e){this.options=e||{}}init(e){}formats(){return Aa()}parse(e,n){return Aa()}format(e,n){return Aa()}add(e,n,o){return Aa()}diff(e,n,o){return Aa()}startOf(e,n,o){return Aa()}endOf(e,n){return Aa()}}return t.override=function(i){Object.assign(t.prototype,i)},t})()};function Bre(t,i,e,n){const{controller:o,data:s,_sorted:r}=t,a=o._cachedMeta.iScale;if(a&&i===a.axis&&"r"!==i&&r&&s.length){const l=a._reversePixels?voe:Js;if(!n)return l(s,i,e);if(o._sharedOptions){const c=s[0],u="function"==typeof c.getRange&&c.getRange(i);if(u){const p=l(s,i,e-u),m=l(s,i,e+u);return{lo:p.lo,hi:m.hi}}}}return{lo:0,hi:s.length-1}}function nd(t,i,e,n,o){const s=t.getSortedVisibleDatasetMetas(),r=e[i];for(let a=0,l=s.length;a{l[r](i[e],o)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(i.x,i.y,o))}),n&&!a?[]:s}var Ure={evaluateInteractionItems:nd,modes:{index(t,i,e,n){const o=ba(i,t),s=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,p=c.data[u];p&&!p.skip&&l.push({element:p,datasetIndex:c.index,index:u})}),l):[]},dataset(t,i,e,n){const o=ba(i,t),s=e.axis||"xy",r=e.includeInvisible||!1;let a=e.intersect?XC(t,o,s,n,r):JC(t,o,s,!1,n,r);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;uXC(t,ba(i,t),e.axis||"xy",n,e.includeInvisible||!1),nearest:(t,i,e,n)=>JC(t,ba(i,t),e.axis||"xy",e.intersect,n,e.includeInvisible||!1),x:(t,i,e,n)=>Q3(t,ba(i,t),"x",e.intersect,n),y:(t,i,e,n)=>Q3(t,ba(i,t),"y",e.intersect,n)}};const Z3=["left","top","right","bottom"];function id(t,i){return t.filter(e=>e.pos===i)}function Y3(t,i){return t.filter(e=>-1===Z3.indexOf(e.pos)&&e.box.axis===i)}function od(t,i){return t.sort((e,n)=>{const o=i?n:e,s=i?e:n;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function X3(t,i,e,n){return Math.max(t[e],i[e])+Math.max(t[n],i[n])}function J3(t,i){t.top=Math.max(t.top,i.top),t.left=Math.max(t.left,i.left),t.bottom=Math.max(t.bottom,i.bottom),t.right=Math.max(t.right,i.right)}function Wre(t,i,e,n){const{pos:o,box:s}=e,r=t.maxPadding;if(!qt(o)){e.size&&(t[o]-=e.size);const p=n[e.stack]||{size:0,count:1};p.size=Math.max(p.size,e.horizontal?s.height:s.width),e.size=p.size/p.count,t[o]+=e.size}s.getPadding&&J3(r,s.getPadding());const a=Math.max(0,i.outerWidth-X3(r,t,"left","right")),l=Math.max(0,i.outerHeight-X3(r,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function Zre(t,i){const e=i.maxPadding;return function n(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(r=>{s[r]=Math.max(i[r],e[r])}),s}(t?["left","right"]:["top","bottom"])}function sd(t,i,e,n){const o=[];let s,r,a,l,c,u;for(s=0,r=t.length,c=0;sc.box.fullSize),!0),n=od(id(i,"left"),!0),o=od(id(i,"right")),s=od(id(i,"top"),!0),r=od(id(i,"bottom")),a=Y3(i,"x"),l=Y3(i,"y");return{fullSize:e,leftAndTop:n.concat(s),rightAndBottom:o.concat(l).concat(r).concat(a),chartArea:id(i,"chartArea"),vertical:n.concat(o).concat(l),horizontal:s.concat(r).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;_n(t.boxes,E=>{"function"==typeof E.beforeLayout&&E.beforeLayout()});const u=l.reduce((E,P)=>P.box.options&&!1===P.box.options.display?E:E+1,0)||1,p=Object.freeze({outerWidth:i,outerHeight:e,padding:o,availableWidth:s,availableHeight:r,vBoxMaxWidth:s/2/u,hBoxMaxHeight:r/2}),m=Object.assign({},o);J3(m,Pi(n));const _=Object.assign({maxPadding:m,w:s,h:r,x:o.left,y:o.top},o),b=function Gre(t,i){const e=function Kre(t){const i={};for(const e of t){const{stack:n,pos:o,stackWeight:s}=e;if(!n||!Z3.includes(o))continue;const r=i[n]||(i[n]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=s}return i}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=i;let s,r,a;for(s=0,r=t.length;s{const P=E.box;Object.assign(P,t.chartArea),P.update(_.w,_.h,{left:0,top:0,right:0,bottom:0})})}};class tM{acquireContext(i,e){}releaseContext(i){return!1}addEventListener(i,e,n){}removeEventListener(i,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(i,e,n,o){return e=Math.max(0,e||i.width),n=n||i.height,{width:e,height:Math.max(0,o?Math.floor(e/o):n)}}isAttached(i){return!0}updateConfig(i){}}class Yre extends tM{acquireContext(i){return i&&i.getContext&&i.getContext("2d")||null}updateConfig(i){i.options.animation=!1}}const zf="$chartjs",Xre={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nM=t=>null===t||""===t,iM=!!Sse&&{passive:!0};function tae(t,i,e){t.canvas.removeEventListener(i,e,iM)}function jf(t,i){for(const e of t)if(e===i||e.contains(i))return!0}function iae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.addedNodes,n),r=r&&!jf(a.removedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function oae(t,i,e){const n=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||jf(a.removedNodes,n),r=r&&!jf(a.addedNodes,n);r&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}const rd=new Map;let oM=0;function sM(){const t=window.devicePixelRatio;t!==oM&&(oM=t,rd.forEach((i,e)=>{e.currentDevicePixelRatio!==t&&i()}))}function aae(t,i,e){const n=t.canvas,o=n&&qC(n);if(!o)return;const s=Gk((a,l)=>{const c=o.clientWidth;e(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;0===c&&0===u||s(c,u)});return r.observe(o),function sae(t,i){rd.size||window.addEventListener("resize",sM),rd.set(t,i)}(t,s),r}function ev(t,i,e){e&&e.disconnect(),"resize"===i&&function rae(t){rd.delete(t),rd.size||window.removeEventListener("resize",sM)}(t)}function lae(t,i,e){const n=t.canvas,o=Gk(s=>{null!==t.ctx&&e(function nae(t,i){const e=Xre[t.type]||t.type,{x:n,y:o}=ba(t,i);return{type:e,chart:i,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(s,t))},t,s=>{const r=s[0];return[r,r.offsetX,r.offsetY]});return function eae(t,i,e){t.addEventListener(i,e,iM)}(n,i,o),o}class cae extends tM{acquireContext(i,e){const n=i&&i.getContext&&i.getContext("2d");return n&&n.canvas===i?(function Jre(t,i){const e=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[zf]={initial:{height:n,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",nM(o)){const s=b3(t,"width");void 0!==s&&(t.width=s)}if(nM(n))if(""===t.style.height)t.height=t.width/(i||2);else{const s=b3(t,"height");void 0!==s&&(t.height=s)}}(i,e),n):null}releaseContext(i){const e=i.canvas;if(!e[zf])return!1;const n=e[zf].initial;["height","width"].forEach(s=>{const r=n[s];tn(r)?e.removeAttribute(s):e.setAttribute(s,r)});const o=n.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[zf],!0}addEventListener(i,e,n){this.removeEventListener(i,e),(i.$proxies||(i.$proxies={}))[e]=({attach:iae,detach:oae,resize:aae}[e]||lae)(i,e,n)}removeEventListener(i,e){const n=i.$proxies||(i.$proxies={}),o=n[e];o&&(({attach:ev,detach:ev,resize:ev}[e]||tae)(i,e,o),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(i,e,n,o){return function Tse(t,i,e,n){const o=Rf(t),s=va(o,"margin"),r=Ff(o.maxWidth,t,"clientWidth")||wf,a=Ff(o.maxHeight,t,"clientHeight")||wf,l=function wse(t,i,e){let n,o;if(void 0===i||void 0===e){const s=qC(t);if(s){const r=s.getBoundingClientRect(),a=Rf(s),l=va(a,"border","width"),c=va(a,"padding");i=r.width-c.width-l.width,e=r.height-c.height-l.height,n=Ff(a.maxWidth,s,"clientWidth"),o=Ff(a.maxHeight,s,"clientHeight")}else i=t.clientWidth,e=t.clientHeight}return{width:i,height:e,maxWidth:n||wf,maxHeight:o||wf}}(t,i,e);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const p=va(o,"border","width"),m=va(o,"padding");c-=m.width+p.width,u-=m.height+p.height}return c=Math.max(0,c-s.width),u=Math.max(0,n?Math.floor(c/n):u-s.height),c=WC(Math.min(c,r,l.maxWidth)),u=WC(Math.min(u,a,l.maxHeight)),c&&!u&&(u=WC(c/2)),{width:c,height:u}}(i,e,n,o)}isAttached(i){const e=qC(i);return!(!e||!e.isConnected)}}class dae{constructor(){this._init=[]}notify(i,e,n,o){"beforeInit"===e&&(this._init=this._createDescriptors(i,!0),this._notify(this._init,i,"install"));const s=o?this._descriptors(i).filter(o):this._descriptors(i),r=this._notify(s,i,e,n);return"afterDestroy"===e&&(this._notify(s,i,"stop"),this._notify(this._init,i,"uninstall")),r}_notify(i,e,n,o){o=o||{};for(const s of i){const r=s.plugin;if(!1===Mn(r[n],[e,o,s.options],r)&&o.cancelable)return!1}return!0}invalidate(){tn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(i){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(i);return this._notifyStateChanges(i),e}_createDescriptors(i,e){const n=i&&i.config,o=Nt(n.options&&n.options.plugins,{}),s=function pae(t){const i={},e=[],n=Object.keys(bs.plugins.items);for(let s=0;ss.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(o(e,n),i,"stop"),this._notify(o(n,e),i,"start")}}function hae(t,i){return i||!1!==t?!0===t?{}:t:null}function gae(t,{plugin:i,local:e},n,o){const s=t.pluginScopeKeys(i),r=t.getOptionScopes(n,s);return e&&i.defaults&&r.push(i.defaults),t.createResolver(r,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function tv(t,i){return((i.datasets||{})[t]||{}).indexAxis||i.indexAxis||(Qt.datasets[t]||{}).indexAxis||"x"}function nv(t,i){return"x"===t||"y"===t?t:i.axis||function Iae(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}(i.position)||t.charAt(0).toLowerCase()}function rM(t){const i=t.options||(t.options={});i.plugins=Nt(i.plugins,{}),i.scales=function Cae(t,i){const e=ma[t.type]||{scales:{}},n=i.scales||{},o=tv(t.type,i),s=Object.create(null),r=Object.create(null);return Object.keys(n).forEach(a=>{const l=n[a];if(!qt(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=nv(a,l),u=function _ae(t,i){return t===i?"_index_":"_value_"}(c,o),p=e.scales||{};s[c]=s[c]||a,r[a]=ju(Object.create(null),[{axis:c},l,p[c],p[u]])}),t.data.datasets.forEach(a=>{const l=a.type||t.type,c=a.indexAxis||tv(l,i),p=(ma[l]||{}).scales||{};Object.keys(p).forEach(m=>{const _=function mae(t,i){let e=t;return"_index_"===t?e=i:"_value_"===t&&(e="x"===i?"y":"x"),e}(m,c),b=a[_+"AxisID"]||s[_]||_;r[b]=r[b]||Object.create(null),ju(r[b],[{axis:_},n[b],p[m]])})}),Object.keys(r).forEach(a=>{const l=r[a];ju(l,[Qt.scales[l.type],Qt.scale])}),r}(t,i)}function aM(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const lM=new Map,cM=new Set;function Uf(t,i){let e=lM.get(t);return e||(e=i(),lM.set(t,e),cM.add(e)),e}const ad=(t,i,e)=>{const n=Pr(i,e);void 0!==n&&t.add(n)};class bae{constructor(i){this._config=function vae(t){return(t=t||{}).data=aM(t.data),rM(t),t}(i),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(i){this._config.type=i}get data(){return this._config.data}set data(i){this._config.data=aM(i)}get options(){return this._config.options}set options(i){this._config.options=i}get plugins(){return this._config.plugins}update(){const i=this._config;this.clearCache(),rM(i)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(i){return Uf(i,()=>[[`datasets.${i}`,""]])}datasetAnimationScopeKeys(i,e){return Uf(`${i}.transition.${e}`,()=>[[`datasets.${i}.transitions.${e}`,`transitions.${e}`],[`datasets.${i}`,""]])}datasetElementScopeKeys(i,e){return Uf(`${i}-${e}`,()=>[[`datasets.${i}.elements.${e}`,`datasets.${i}`,`elements.${e}`,""]])}pluginScopeKeys(i){const e=i.id;return Uf(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...i.additionalOptionScopes||[]]])}_cachedScopes(i,e){const n=this._scopeCache;let o=n.get(i);return(!o||e)&&(o=new Map,n.set(i,o)),o}getOptionScopes(i,e,n){const{options:o,type:s}=this,r=this._cachedScopes(i,n),a=r.get(e);if(a)return a;const l=new Set;e.forEach(u=>{i&&(l.add(i),u.forEach(p=>ad(l,i,p))),u.forEach(p=>ad(l,o,p)),u.forEach(p=>ad(l,ma[s]||{},p)),u.forEach(p=>ad(l,Qt,p)),u.forEach(p=>ad(l,HC,p))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),cM.has(e)&&r.set(e,c),c}chartOptionScopes(){const{options:i,type:e}=this;return[i,ma[e]||{},Qt.datasets[e]||{},{type:e},Qt,HC]}resolveNamedOptions(i,e,n,o=[""]){const s={$shared:!0},{resolver:r,subPrefixes:a}=uM(this._resolverCache,i,o);let l=r;(function xae(t,i){const{isScriptable:e,isIndexable:n}=d3(t);for(const o of i){const s=e(o),r=n(o),a=(r||s)&&t[o];if(s&&(Fr(a)||yae(a))||r&&kn(a))return!0}return!1})(r,e)&&(s.$shared=!1,l=Wl(r,n=Fr(n)?n():n,this.createResolver(i,n,a)));for(const c of e)s[c]=l[c];return s}createResolver(i,e,n=[""],o){const{resolver:s}=uM(this._resolverCache,i,n);return qt(e)?Wl(s,e,void 0,o):s}}function uM(t,i,e){let n=t.get(i);n||(n=new Map,t.set(i,n));const o=e.join();let s=n.get(o);return s||(s={resolver:$C(i,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},n.set(o,s)),s}const yae=t=>qt(t)&&Object.getOwnPropertyNames(t).reduce((i,e)=>i||Fr(t[e]),!1),wae=["top","bottom","left","right","chartArea"];function dM(t,i){return"top"===t||"bottom"===t||-1===wae.indexOf(t)&&"x"===i}function pM(t,i){return function(e,n){return e[t]===n[t]?e[i]-n[i]:e[t]-n[t]}}function hM(t){const i=t.chart,e=i.options.animation;i.notifyPlugins("afterRender"),Mn(e&&e.onComplete,[t],i)}function Tae(t){const i=t.chart,e=i.options.animation;Mn(e&&e.onProgress,[t],i)}function fM(t){return C3()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const $f={},gM=t=>{const i=fM(t);return Object.values($f).filter(e=>e.canvas===i).pop()};function Sae(t,i,e){const n=Object.keys(t);for(const o of n){const s=+o;if(s>=i){const r=t[o];delete t[o],(e>0||s>i)&&(t[s+e]=r)}}}class iv{constructor(i,e){const n=this.config=new bae(e),o=fM(i),s=gM(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function uae(t){return!C3()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Yre:cae}(o)),this.platform.updateConfig(n);const a=this.platform.acquireContext(o,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=aoe(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new dae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function xoe(t,i){let e;return function(...n){return i?(clearTimeout(e),e=setTimeout(t,i,n)):t.apply(this,n),i}}(p=>this.update(p),r.resizeDelay||0),this._dataChanges=[],$f[this.id]=this,a&&l?(tr.listen(this,"complete",hM),tr.listen(this,"progress",Tae),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:i,maintainAspectRatio:e},width:n,height:o,_aspectRatio:s}=this;return tn(i)?e&&s?s:o?n/o:null:i}get data(){return this.config.data}set data(i){this.config.data=i}get options(){return this._options}set options(i){this.config.options=i}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():v3(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return l3(this.canvas,this.ctx),this}stop(){return tr.stop(this),this}resize(i,e){tr.running(this)?this._resizeBeforeDraw={width:i,height:e}:this._resize(i,e)}_resize(i,e){const n=this.options,r=this.platform.getMaximumSize(this.canvas,i,e,n.maintainAspectRatio&&this.aspectRatio),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,v3(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Mn(n.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){_n(this.options.scales||{},(n,o)=>{n.id=o})}buildOrUpdateScales(){const i=this.options,e=i.scales,n=this.scales,o=Object.keys(n).reduce((r,a)=>(r[a]=!1,r),{});let s=[];e&&(s=s.concat(Object.keys(e).map(r=>{const a=e[r],l=nv(r,a),c="r"===l,u="x"===l;return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),_n(s,r=>{const a=r.options,l=a.id,c=nv(l,a),u=Nt(a.type,r.dtype);(void 0===a.position||dM(a.position,c)!==dM(r.dposition))&&(a.position=r.dposition),o[l]=!0;let p=null;l in n&&n[l].type===u?p=n[l]:(p=new(bs.getScale(u))({id:l,type:u,ctx:this.ctx,chart:this}),n[p.id]=p),p.init(a,i)}),_n(o,(r,a)=>{r||delete n[a]}),_n(n,r=>{Fi.configure(this,r,r.options),Fi.addBox(this,r)})}_updateMetasets(){const i=this._metasets,e=this.data.datasets.length,n=i.length;if(i.sort((o,s)=>o.index-s.index),n>e){for(let o=e;oe.length&&delete this._stacks,i.forEach((n,o)=>{0===e.filter(s=>s===n._dataset).length&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const i=[],e=this.data.datasets;let n,o;for(this._removeUnreferencedMetasets(),n=0,o=e.length;n{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(i){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:i,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(i),this.notifyPlugins("afterUpdate",{mode:i}),this._layers.sort(pM("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){_n(this.scales,i=>{Fi.removeBox(this,i)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const i=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(i.events);(!Rk(e,n)||!!this._responsiveListeners!==i.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:i}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:o,count:s}of e)Sae(i,o,"_removeElements"===n?-s:s)}_getUniformDataChanges(){const i=this._dataChanges;if(!i||!i.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=s=>new Set(i.filter(r=>r[0]===s).map((r,a)=>a+","+r.splice(1).join(","))),o=n(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(i){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Fi.update(this,this.width,this.height,i);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],_n(this.boxes,o=>{n&&"chartArea"===o.position||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,s)=>{o._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(i){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:i,cancelable:!0})){for(let e=0,n=this.data.datasets.length;e=0;--e)this._drawDataset(i[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(i){const e=this.ctx,n=i._clip,o=!n.disabled,s=this.chartArea,r={meta:i,index:i.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(o&&Of(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),i.controller.draw(),o&&Lf(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(i){return Zu(i,this.chartArea,this._minPadding)}getElementsAtEventForMode(i,e,n,o){const s=Ure.modes[e];return"function"==typeof s?s(this,i,n,o):[]}getDatasetMeta(i){const e=this.data.datasets[i],n=this._metasets;let o=n.filter(s=>s&&s._dataset===e).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:i,_dataset:e,_parsed:[],_sorted:!1},n.push(o)),o}getContext(){return this.$context||(this.$context=Vr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(i){const e=this.data.datasets[i];if(!e)return!1;const n=this.getDatasetMeta(i);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(i,e){this.getDatasetMeta(i).hidden=!e}toggleDataVisibility(i){this._hiddenIndices[i]=!this._hiddenIndices[i]}getDataVisibility(i){return!this._hiddenIndices[i]}_updateVisibility(i,e,n){const o=n?"show":"hide",s=this.getDatasetMeta(i),r=s.controller._resolveAnimations(void 0,o);Fo(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(i,n),r.update(s,{visible:n}),this.update(a=>a.datasetIndex===i?o:void 0))}hide(i,e){this._updateVisibility(i,e,!1)}show(i,e){this._updateVisibility(i,e,!0)}_destroyDatasetMeta(i){const e=this._metasets[i];e&&e.controller&&e.controller._destroy(),delete this._metasets[i]}_stop(){let i,e;for(this.stop(),tr.remove(this),i=0,e=this.data.datasets.length;i{e.addEventListener(this,s,r),i[s]=r},o=(s,r,a)=>{s.offsetX=r,s.offsetY=a,this._eventHandler(s)};_n(this.options.events,s=>n(s,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const i=this._responsiveListeners,e=this.platform,n=(l,c)=>{e.addEventListener(this,l,c),i[l]=c},o=(l,c)=>{i[l]&&(e.removeEventListener(this,l,c),delete i[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{o("attach",a),this.attached=!0,this.resize(),n("resize",s),n("detach",r)};r=()=>{this.attached=!1,o("resize",s),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){_n(this._listeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._listeners={},_n(this._responsiveListeners,(i,e)=>{this.platform.removeEventListener(this,e,i)}),this._responsiveListeners=void 0}updateHoverStyle(i,e,n){const o=n?"set":"remove";let s,r,a,l;for("dataset"===e&&(s=this.getDatasetMeta(i[0].datasetIndex),s.controller["_"+o+"DatasetHoverStyle"]()),a=0,l=i.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[r],index:r}});!xf(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(i,e,n){return this._plugins.notify(this,i,e,n)}_updateHoverStyles(i,e,n){const o=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(p=>u.datasetIndex===p.datasetIndex&&u.index===p.index)),r=s(e,i),a=n?i:s(i,e);r.length&&this.updateHoverStyle(r,o.mode,!1),a.length&&o.mode&&this.updateHoverStyle(a,o.mode,!0)}_eventHandler(i,e){const n={event:i,replay:e,cancelable:!0,inChartArea:this.isPointInArea(i)},o=r=>(r.options.events||this.options.events).includes(i.native.type);if(!1===this.notifyPlugins("beforeEvent",n,o))return;const s=this._handleEvent(i,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,o),(s||n.changed)&&this.render(),this}_handleEvent(i,e,n){const{_active:o=[],options:s}=this,a=this._getActiveElements(i,o,n,e),l=function hoe(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(i),c=function Eae(t,i,e,n){return e&&"mouseout"!==t.type?n?i:t:null}(i,this._lastEvent,n,l);n&&(this._lastEvent=null,Mn(s.onHover,[i,a,this],this),l&&Mn(s.onClick,[i,a,this],this));const u=!xf(a,o);return(u||e)&&(this._active=a,this._updateHoverStyles(a,o,e)),this._lastEvent=c,u}_getActiveElements(i,e,n,o){if("mouseout"===i.type)return[];if(!n)return e;const s=this.options.hover;return this.getElementsAtEventForMode(i,s.mode,s,o)}}const mM=()=>_n(iv.instances,t=>t._plugins.invalidate()),Br=!0;function _M(t,i,e){const{startAngle:n,pixelMargin:o,x:s,y:r,outerRadius:a,innerRadius:l}=i;let c=o/a;t.beginPath(),t.arc(s,r,a,n-c,e+c),l>o?(c=o/l,t.arc(s,r,l,e+c,n-c,!0)):t.arc(s,r,o,e+Qn,n-Qn),t.closePath(),t.clip()}function Yl(t,i,e,n){return{x:e+t*Math.cos(i),y:n+t*Math.sin(i)}}function ov(t,i,e,n,o,s){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=i,p=Math.max(i.outerRadius+n+e-c,0),m=u>0?u+n+e+c:0;let _=0;const b=o-l;if(n){const tt=((u>0?u-n:0)+(p>0?p-n:0))/2;_=(b-(0!==tt?b*tt/(tt+n):b))/2}const P=(b-Math.max(.001,b*p-e/Vn)/p)/2,W=l+P+_,te=o-P-_,{outerStart:fe,outerEnd:Ce,innerStart:ve,innerEnd:ke}=function kae(t,i,e,n){const o=function Dae(t){return UC(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),s=(e-i)/2,r=Math.min(s,n*i/2),a=l=>{const c=(e-Math.min(s,l))*n/2;return pi(l,0,Math.min(s,c))};return{outerStart:a(o.outerStart),outerEnd:a(o.outerEnd),innerStart:pi(o.innerStart,0,r),innerEnd:pi(o.innerEnd,0,r)}}(i,m,p,te-W),Pe=p-fe,$e=p-Ce,Ke=W+fe/Pe,pt=te-Ce/$e,jt=m+ve,Vt=m+ke,vn=W+ve/jt,hi=te-ke/Vt;if(t.beginPath(),s){if(t.arc(r,a,p,Ke,pt),Ce>0){const tt=Yl($e,pt,r,a);t.arc(tt.x,tt.y,Ce,pt,te+Qn)}const wt=Yl(Vt,te,r,a);if(t.lineTo(wt.x,wt.y),ke>0){const tt=Yl(Vt,hi,r,a);t.arc(tt.x,tt.y,ke,te+Qn,hi+Math.PI)}if(t.arc(r,a,m,te-ke/m,W+ve/m,!0),ve>0){const tt=Yl(jt,vn,r,a);t.arc(tt.x,tt.y,ve,vn+Math.PI,W-Qn)}const We=Yl(Pe,W,r,a);if(t.lineTo(We.x,We.y),fe>0){const tt=Yl(Pe,Ke,r,a);t.arc(tt.x,tt.y,fe,W-Qn,Ke)}}else{t.moveTo(r,a);const wt=Math.cos(Ke)*p+r,We=Math.sin(Ke)*p+a;t.lineTo(wt,We);const tt=Math.cos(pt)*p+r,ct=Math.sin(pt)*p+a;t.lineTo(tt,ct)}t.closePath()}Object.defineProperties(iv,{defaults:{enumerable:Br,value:Qt},instances:{enumerable:Br,value:$f},overrides:{enumerable:Br,value:ma},registry:{enumerable:Br,value:bs},version:{enumerable:Br,value:"3.9.1"},getChart:{enumerable:Br,value:gM},register:{enumerable:Br,value:(...t)=>{bs.add(...t),mM()}},unregister:{enumerable:Br,value:(...t)=>{bs.remove(...t),mM()}}});class Kf extends Xo{constructor(i){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,e,n){const o=this.getProps(["x","y"],n),{angle:s,distance:r}=zk(o,{x:i,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),m=this.options.spacing/2,b=Nt(p,l-a)>=Cn||Ku(s,a,l),E=Xs(r,c+m,u+m);return b&&E}getCenterPoint(i){const{x:e,y:n,startAngle:o,endAngle:s,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],i),{offset:l,spacing:c}=this.options,u=(o+s)/2,p=(r+a+c+l)/2;return{x:e+Math.cos(u)*p,y:n+Math.sin(u)*p}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){const{options:e,circumference:n}=this,o=(e.offset||0)/2,s=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Cn?Math.floor(n/Cn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;i.save();let a=0;if(o){a=o/2;const c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=Vn&&(a=o)}i.fillStyle=e.backgroundColor,i.strokeStyle=e.borderColor;const l=function Mae(t,i,e,n,o){const{fullCircles:s,startAngle:r,circumference:a}=i;let l=i.endAngle;if(s){ov(t,i,e,n,r+Cn,o);for(let c=0;ca&&s>a)?n+c-l:c-l}}function Rae(t,i,e,n){const{points:o,options:s}=i,{count:r,start:a,loop:l,ilen:c}=CM(o,e,n),u=function Fae(t){return t.stepped?Zoe:t.tension||"monotone"===t.cubicInterpolationMode?Yoe:Pae}(s);let _,b,E,{move:p=!0,reverse:m}=n||{};for(_=0;_<=c;++_)b=o[(a+(m?c-_:_))%r],!b.skip&&(p?(t.moveTo(b.x,b.y),p=!1):u(t,E,b,m,s.stepped),E=b);return l&&(b=o[(a+(m?c:0))%r],u(t,E,b,m,s.stepped)),!!l}function Nae(t,i,e,n){const o=i.points,{count:s,start:r,ilen:a}=CM(o,e,n),{move:l=!0,reverse:c}=n||{};let m,_,b,E,P,W,u=0,p=0;const te=Ce=>(r+(c?a-Ce:Ce))%s,fe=()=>{E!==P&&(t.lineTo(u,P),t.lineTo(u,E),t.lineTo(u,W))};for(l&&(_=o[te(0)],t.moveTo(_.x,_.y)),m=0;m<=a;++m){if(_=o[te(m)],_.skip)continue;const Ce=_.x,ve=_.y,ke=0|Ce;ke===b?(veP&&(P=ve),u=(p*u+Ce)/++p):(fe(),t.lineTo(Ce,ve),b=ke,p=0,E=P=ve),W=ve}fe()}function sv(t){const i=t.options;return t._decimated||t._loop||i.tension||"monotone"===i.cubicInterpolationMode||i.stepped||i.borderDash&&i.borderDash.length?Rae:Nae}Kf.id="arc",Kf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Kf.defaultRoutes={backgroundColor:"backgroundColor"};const zae="function"==typeof Path2D;let Gf=(()=>{class t extends Xo{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,n){const o=this.options;!o.tension&&"monotone"!==o.cubicInterpolationMode||o.stepped||this._pointsUpdated||(vse(this._points,o,e,o.spanGaps?this._loop:this._fullLoop,n),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Rse(t,i){const e=t.points,n=t.options.spanGaps,o=e.length;if(!o)return[];const s=!!t._loop,{start:r,end:a}=function Pse(t,i,e,n){let o=0,s=i-1;if(e&&!n)for(;oo&&t[s%i].skip;)s--;return s%=i,{start:o,end:s}}(e,o,s,n);return function D3(t,i,e,n){return n&&n.setContext&&e?function Nse(t,i,e,n){const o=t._chart.getContext(),s=k3(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=e.length,c=[];let u=s,p=i[0].start,m=p;function _(b,E,P,W){const te=a?-1:1;if(b!==E){for(b+=l;e[b%l].skip;)b-=te;for(;e[E%l].skip;)E+=te;b%l!=E%l&&(c.push({start:b%l,end:E%l,loop:P,style:W}),u=W,p=E%l)}}for(const b of i){p=a?p:b.start;let P,E=e[p%l];for(m=p+1;m<=b.end;m++){const W=e[m%l];P=k3(n.setContext(Vr(o,{type:"segment",p0:E,p1:W,p0DataIndex:(m-1)%l,p1DataIndex:m%l,datasetIndex:r}))),Vse(P,u)&&_(p,m-1,b.loop,u),E=W,u=P}p"borderDash"!==i&&"fill"!==i},t})();function vM(t,i,e,n){const o=t.options,{[e]:s}=t.getProps([e],n);return Math.abs(i-s){class t extends Xo{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,o){const s=this.options,{x:r,y:a}=this.getProps(["x","y"],o);return Math.pow(e-r,2)+Math.pow(n-a,2){yM(i)})}var Jae={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,i,e)=>{if(!e.enabled)return void xM(t);const n=t.width;t.data.datasets.forEach((o,s)=>{const{_data:r,indexAxis:a}=o,l=t.getDatasetMeta(s),c=r||o.data;if("y"===Xu([a,t.options.indexAxis])||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type||t.options.parsing)return;let b,{start:p,count:m}=function Xae(t,i){const e=i.length;let o,n=0;const{iScale:s}=t,{min:r,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(n=pi(Js(i,s.axis,r).lo,0,e-1)),o=c?pi(Js(i,s.axis,a).hi+1,n,e)-n:e-n,{start:n,count:o}}(l,c);if(m<=(e.threshold||4*n))yM(o);else{switch(tn(r)&&(o._data=c,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(E){this._data=E}})),e.algorithm){case"lttb":b=function Zae(t,i,e,n,o){const s=o.samples||n;if(s>=e)return t.slice(i,i+e);const r=[],a=(e-2)/(s-2);let l=0;const c=i+e-1;let p,m,_,b,E,u=i;for(r[l++]=t[u],p=0;p_&&(_=b,m=t[te],E=te);r[l++]=m,u=E}return r[l++]=t[c],r}(c,p,m,n,e);break;case"min-max":b=function Yae(t,i,e,n){let r,a,l,c,u,p,m,_,b,E,o=0,s=0;const P=[],te=t[i].x,Ce=t[i+e-1].x-te;for(r=i;rE&&(E=c,m=r),o=(s*o+a.x)/++s;else{const ke=r-1;if(!tn(p)&&!tn(m)){const Pe=Math.min(p,m),$e=Math.max(p,m);Pe!==_&&Pe!==ke&&P.push({...t[Pe],x:o}),$e!==_&&$e!==ke&&P.push({...t[$e],x:o})}r>0&&ke!==_&&P.push(t[ke]),P.push(a),u=ve,s=0,b=E=c,p=m=_=r}}return P}(c,p,m,n);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=b}})},destroy(t){xM(t)}};function lv(t,i,e,n){if(n)return;let o=i[t],s=e[t];return"angle"===t&&(o=vo(o),s=vo(s)),{property:t,start:o,end:s}}function cv(t,i,e){for(;i>t;i--){const n=e[i];if(!isNaN(n.x)&&!isNaN(n.y))break}return i}function AM(t,i,e,n){return t&&i?n(t[e],i[e]):t?t[e]:i?i[e]:0}function wM(t,i){let e=[],n=!1;return kn(t)?(n=!0,e=t):e=function tle(t,i){const{x:e=null,y:n=null}=t||{},o=i.points,s=[];return i.segments.forEach(({start:r,end:a})=>{a=cv(r,a,o);const l=o[r],c=o[a];null!==n?(s.push({x:l.x,y:n}),s.push({x:c.x,y:n})):null!==e&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}(t,i),e.length?new Gf({points:e,options:{tension:0},_loop:n,_fullLoop:n}):null}function TM(t){return t&&!1!==t.fill}function nle(t,i,e){let o=t[i].fill;const s=[i];let r;if(!e)return o;for(;!1!==o&&-1===s.indexOf(o);){if(!ti(o))return o;if(r=t[o],!r)return!1;if(r.visible)return o;s.push(o),o=r.fill}return!1}function ile(t,i,e){const n=function ale(t){const i=t.options,e=i.fill;let n=Nt(e&&e.target,e);return void 0===n&&(n=!!i.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(qt(n))return!isNaN(n.value)&&n;let o=parseFloat(n);return ti(o)&&Math.floor(o)===o?function ole(t,i,e,n){return("-"===t||"+"===t)&&(e=i+e),!(e===i||e<0||e>=n)&&e}(n[0],i,o,e):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function ule(t,i,e){const n=[];for(let o=0;o=0;--r){const a=o[r].$filler;a&&(a.line.updateControlPoints(s,a.axis),n&&a.fill&&uv(t.ctx,a,s))}},beforeDatasetsDraw(t,i,e){if("beforeDatasetsDraw"!==e.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let o=n.length-1;o>=0;--o){const s=n[o].$filler;TM(s)&&uv(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,i,e){const n=i.meta.$filler;!TM(n)||"beforeDatasetDraw"!==e.drawTime||uv(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const MM=(t,i)=>{let{boxHeight:e=i,boxWidth:n=i}=t;return t.usePointStyle&&(e=Math.min(e,i),n=t.pointStyleWidth||Math.min(n,i)),{boxWidth:n,boxHeight:e,itemHeight:Math.max(i,e)}};class OM extends Xo{constructor(i){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e,n){this.maxWidth=i,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const i=this.options.labels||{};let e=Mn(i.generateLabels,[this.chart],this)||[];i.filter&&(e=e.filter(n=>i.filter(n,this.chart.data))),i.sort&&(e=e.sort((n,o)=>i.sort(n,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:i,ctx:e}=this;if(!i.display)return void(this.width=this.height=0);const n=i.labels,o=ui(n.font),s=o.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=MM(n,s);let c,u;e.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(r,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,i.maxWidth||this.maxWidth),this.height=Math.min(u,i.maxHeight||this.maxHeight)}_fitRows(i,e,n,o){const{ctx:s,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+a;let p=i;s.textAlign="left",s.textBaseline="middle";let m=-1,_=-u;return this.legendItems.forEach((b,E)=>{const P=n+e/2+s.measureText(b.text).width;(0===E||c[c.length-1]+P+2*a>r)&&(p+=u,c[c.length-(E>0?0:1)]=0,_+=u,m++),l[E]={left:0,top:_,row:m,width:P,height:o},c[c.length-1]+=P+a}),p}_fitCols(i,e,n,o){const{ctx:s,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=r-i;let p=a,m=0,_=0,b=0,E=0;return this.legendItems.forEach((P,W)=>{const te=n+e/2+s.measureText(P.text).width;W>0&&_+o+2*a>u&&(p+=m+a,c.push({width:m,height:_}),b+=m+a,E++,m=_=0),l[W]={left:b,top:_,col:E,width:te,height:o},m=Math.max(m,te),_+=o+a}),p+=m,c.push({width:m,height:_}),p}adjustHitBoxes(){if(!this.options.display)return;const i=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:o},rtl:s}}=this,r=Zl(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=Li(n,this.left+o,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=Li(n,this.left+o,this.right-this.lineWidths[a])),c.top+=this.top+i+o,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+o}else{let a=0,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=Li(n,this.top+i+o,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+o,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const i=this.ctx;Of(i,this),this._draw(),Lf(i)}}_draw(){const{options:i,columnSizes:e,lineWidths:n,ctx:o}=this,{align:s,labels:r}=i,a=Qt.color,l=Zl(i.rtl,this.left,this.width),c=ui(r.font),{color:u,padding:p}=r,m=c.size,_=m/2;let b;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:E,boxHeight:P,itemHeight:W}=MM(r,m),Ce=this.isHorizontal(),ve=this._computeTitleHeight();b=Ce?{x:Li(s,this.left+p,this.right-n[0]),y:this.top+p+ve,line:0}:{x:this.left+p,y:Li(s,this.top+ve+p,this.bottom-e[0].height),line:0},x3(this.ctx,i.textDirection);const ke=W+p;this.legendItems.forEach((Pe,$e)=>{o.strokeStyle=Pe.fontColor||u,o.fillStyle=Pe.fontColor||u;const Ke=o.measureText(Pe.text).width,pt=l.textAlign(Pe.textAlign||(Pe.textAlign=r.textAlign)),jt=E+_+Ke;let Vt=b.x,vn=b.y;l.setWidth(this.width),Ce?$e>0&&Vt+jt+p>this.right&&(vn=b.y+=ke,b.line++,Vt=b.x=Li(s,this.left+p,this.right-n[b.line])):$e>0&&vn+ke>this.bottom&&(Vt=b.x=Vt+e[b.line].width+p,b.line++,vn=b.y=Li(s,this.top+ve+p,this.bottom-e[b.line].height)),function(Pe,$e,Ke){if(isNaN(E)||E<=0||isNaN(P)||P<0)return;o.save();const pt=Nt(Ke.lineWidth,1);if(o.fillStyle=Nt(Ke.fillStyle,a),o.lineCap=Nt(Ke.lineCap,"butt"),o.lineDashOffset=Nt(Ke.lineDashOffset,0),o.lineJoin=Nt(Ke.lineJoin,"miter"),o.lineWidth=pt,o.strokeStyle=Nt(Ke.strokeStyle,a),o.setLineDash(Nt(Ke.lineDash,[])),r.usePointStyle){const jt={radius:P*Math.SQRT2/2,pointStyle:Ke.pointStyle,rotation:Ke.rotation,borderWidth:pt},Vt=l.xPlus(Pe,E/2);c3(o,jt,Vt,$e+_,r.pointStyleWidth&&E)}else{const jt=$e+Math.max((m-P)/2,0),Vt=l.leftForLtr(Pe,E),vn=Ca(Ke.borderRadius);o.beginPath(),Object.values(vn).some(hi=>0!==hi)?Yu(o,{x:Vt,y:jt,w:E,h:P,radius:vn}):o.rect(Vt,jt,E,P),o.fill(),0!==pt&&o.stroke()}o.restore()}(l.x(Vt),vn,Pe),Vt=((t,i,e,n)=>t===(n?"left":"right")?e:"center"===t?(i+e)/2:i)(pt,Vt+E+_,Ce?Vt+jt:this.right,i.rtl),function(Pe,$e,Ke){Ia(o,Ke.text,Pe,$e+W/2,c,{strikethrough:Ke.hidden,textAlign:l.textAlign(Ke.textAlign)})}(l.x(Vt),vn,Pe),Ce?b.x+=jt+p:b.y+=ke}),A3(this.ctx,i.textDirection)}drawTitle(){const i=this.options,e=i.title,n=ui(e.font),o=Pi(e.padding);if(!e.display)return;const s=Zl(i.rtl,this.left,this.width),r=this.ctx,a=e.position,c=o.top+n.size/2;let u,p=this.left,m=this.width;if(this.isHorizontal())m=Math.max(...this.lineWidths),u=this.top+c,p=Li(i.align,p,this.right-m);else{const b=this.columnSizes.reduce((E,P)=>Math.max(E,P.height),0);u=c+Li(i.align,this.top,this.bottom-b-i.labels.padding-this._computeTitleHeight())}const _=Li(a,p,p+m);r.textAlign=s.textAlign(LC(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,Ia(r,e.text,_,u,n)}_computeTitleHeight(){const i=this.options.title,e=ui(i.font),n=Pi(i.padding);return i.display?e.lineHeight+n.height:0}_getLegendItemAt(i,e){let n,o,s;if(Xs(i,this.left,this.right)&&Xs(e,this.top,this.bottom))for(s=this.legendHitBoxes,n=0;nnull!==t&&null!==i&&t.datasetIndex===i.datasetIndex&&t.index===i.index)(o,n);o&&!s&&Mn(e.onLeave,[i,o,this],this),this._hoveredItem=n,n&&!s&&Mn(e.onHover,[i,n,this],this)}else n&&Mn(e.onClick,[i,n,this],this)}}var yle={id:"legend",_element:OM,start(t,i,e){const n=t.legend=new OM({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n)},stop(t){Fi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,i,e){const n=t.legend;Fi.configure(t,n,e),n.options=e},afterUpdate(t){const i=t.legend;i.buildLabels(),i.adjustHitBoxes()},afterEvent(t,i){i.replay||t.legend.handleEvent(i.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,i,e){const n=i.datasetIndex,o=e.chart;o.isDatasetVisible(n)?(o.hide(n),i.hidden=!0):(o.show(n),i.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const i=t.data.datasets,{labels:{usePointStyle:e,pointStyle:n,textAlign:o,color:s}}=t.legend.options;return t._getSortedDatasetMetas().map(r=>{const a=r.controller.getStyle(e?0:void 0),l=Pi(a.borderWidth);return{text:i[r.index].label,fillStyle:a.backgroundColor,fontColor:s,hidden:!r.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:n||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:r.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class dv extends Xo{constructor(i){super(),this.chart=i.chart,this.options=i.options,this.ctx=i.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(i,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=i,this.height=this.bottom=e;const o=kn(n.text)?n.text.length:1;this._padding=Pi(n.padding);const s=o*ui(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const i=this.options.position;return"top"===i||"bottom"===i}_drawArgs(i){const{top:e,left:n,bottom:o,right:s,options:r}=this,a=r.align;let c,u,p,l=0;return this.isHorizontal()?(u=Li(a,n,s),p=e+i,c=s-n):("left"===r.position?(u=n+i,p=Li(a,o,e),l=-.5*Vn):(u=s-i,p=Li(a,e,o),l=.5*Vn),c=o-e),{titleX:u,titleY:p,maxWidth:c,rotation:l}}draw(){const i=this.ctx,e=this.options;if(!e.display)return;const n=ui(e.font),s=n.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Ia(i,e.text,0,0,n,{color:e.color,maxWidth:l,rotation:c,textAlign:LC(e.align),textBaseline:"middle",translation:[r,a]})}}var Ale={id:"title",_element:dv,start(t,i,e){!function xle(t,i){const e=new dv({ctx:t.ctx,options:i,chart:t});Fi.configure(t,e,i),Fi.addBox(t,e),t.titleBlock=e}(t,e)},stop(t){Fi.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,i,e){const n=t.titleBlock;Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Wf=new WeakMap;var wle={id:"subtitle",start(t,i,e){const n=new dv({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n),Wf.set(t,n)},stop(t){Fi.removeBox(t,Wf.get(t)),Wf.delete(t)},beforeUpdate(t,i,e){const n=Wf.get(t);Fi.configure(t,n,e),n.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ld={average(t){if(!t.length)return!1;let i,e,n=0,o=0,s=0;for(i=0,e=t.length;i-1?t.split("\n"):t}function Tle(t,i){const{element:e,datasetIndex:n,index:o}=i,s=t.getDatasetMeta(n).controller,{label:r,value:a}=s.getLabelAndValue(o);return{chart:t,label:r,parsed:s.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:a,dataset:s.getDataset(),dataIndex:o,datasetIndex:n,element:e}}function LM(t,i){const e=t.chart.ctx,{body:n,footer:o,title:s}=t,{boxWidth:r,boxHeight:a}=i,l=ui(i.bodyFont),c=ui(i.titleFont),u=ui(i.footerFont),p=s.length,m=o.length,_=n.length,b=Pi(i.padding);let E=b.height,P=0,W=n.reduce((Ce,ve)=>Ce+ve.before.length+ve.lines.length+ve.after.length,0);W+=t.beforeBody.length+t.afterBody.length,p&&(E+=p*c.lineHeight+(p-1)*i.titleSpacing+i.titleMarginBottom),W&&(E+=_*(i.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(W-_)*l.lineHeight+(W-1)*i.bodySpacing),m&&(E+=i.footerMarginTop+m*u.lineHeight+(m-1)*i.footerSpacing);let te=0;const fe=function(Ce){P=Math.max(P,e.measureText(Ce).width+te)};return e.save(),e.font=c.string,_n(t.title,fe),e.font=l.string,_n(t.beforeBody.concat(t.afterBody),fe),te=i.displayColors?r+2+i.boxPadding:0,_n(n,Ce=>{_n(Ce.before,fe),_n(Ce.lines,fe),_n(Ce.after,fe)}),te=0,e.font=u.string,_n(t.footer,fe),e.restore(),P+=b.width,{width:P,height:E}}function Dle(t,i,e,n){const{x:o,width:s}=e,{width:r,chartArea:{left:a,right:l}}=t;let c="center";return"center"===n?c=o<=(a+l)/2?"left":"right":o<=s/2?c="left":o>=r-s/2&&(c="right"),function Ele(t,i,e,n){const{x:o,width:s}=n,r=e.caretSize+e.caretPadding;if("left"===t&&o+s+r>i.width||"right"===t&&o-s-r<0)return!0}(c,t,i,e)&&(c="center"),c}function PM(t,i,e){const n=e.yAlign||i.yAlign||function Sle(t,i){const{y:e,height:n}=i;return et.height-n/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||i.xAlign||Dle(t,i,e,n),yAlign:n}}function FM(t,i,e,n){const{caretSize:o,caretPadding:s,cornerRadius:r}=t,{xAlign:a,yAlign:l}=e,c=o+s,{topLeft:u,topRight:p,bottomLeft:m,bottomRight:_}=Ca(r);let b=function kle(t,i){let{x:e,width:n}=t;return"right"===i?e-=n:"center"===i&&(e-=n/2),e}(i,a);const E=function Mle(t,i,e){let{y:n,height:o}=t;return"top"===i?n+=e:n-="bottom"===i?o+e:o/2,n}(i,l,c);return"center"===l?"left"===a?b+=c:"right"===a&&(b-=c):"left"===a?b-=Math.max(u,m)+o:"right"===a&&(b+=Math.max(p,_)+o),{x:pi(b,0,n.width-i.width),y:pi(E,0,n.height-i.height)}}function Qf(t,i,e){const n=Pi(e.padding);return"center"===i?t.x+t.width/2:"right"===i?t.x+t.width-n.right:t.x+n.left}function RM(t){return ys([],nr(t))}function NM(t,i){const e=i&&i.dataset&&i.dataset.tooltip&&i.dataset.tooltip.callbacks;return e?t.override(e):t}let VM=(()=>{class t extends Xo{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&n.options.animation&&o.animations,r=new O3(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=function Ole(t,i,e){return Vr(t,{tooltip:i,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:o}=n,s=o.beforeTitle.apply(this,[e]),r=o.title.apply(this,[e]),a=o.afterTitle.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}getBeforeBody(e,n){return RM(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const{callbacks:o}=n,s=[];return _n(e,r=>{const a={before:[],lines:[],after:[]},l=NM(o,r);ys(a.before,nr(l.beforeLabel.call(this,r))),ys(a.lines,l.label.call(this,r)),ys(a.after,nr(l.afterLabel.call(this,r))),s.push(a)}),s}getAfterBody(e,n){return RM(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:o}=n,s=o.beforeFooter.apply(this,[e]),r=o.footer.apply(this,[e]),a=o.afterFooter.apply(this,[e]);let l=[];return l=ys(l,nr(s)),l=ys(l,nr(r)),l=ys(l,nr(a)),l}_createItems(e){const n=this._active,o=this.chart.data,s=[],r=[],a=[];let c,u,l=[];for(c=0,u=n.length;ce.filter(p,m,_,o))),e.itemSort&&(l=l.sort((p,m)=>e.itemSort(p,m,o))),_n(l,p=>{const m=NM(e.callbacks,p);s.push(m.labelColor.call(this,p)),r.push(m.labelPointStyle.call(this,p)),a.push(m.labelTextColor.call(this,p))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=a,this.dataPoints=l,l}update(e,n){const o=this.options.setContext(this.getContext()),s=this._active;let r,a=[];if(s.length){const l=ld[o.position].call(this,s,this._eventPosition);a=this._createItems(o),this.title=this.getTitle(a,o),this.beforeBody=this.getBeforeBody(a,o),this.body=this.getBody(a,o),this.afterBody=this.getAfterBody(a,o),this.footer=this.getFooter(a,o);const c=this._size=LM(this,o),u=Object.assign({},l,c),p=PM(this.chart,o,u),m=FM(o,u,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,r={opacity:1,x:m.x,y:m.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=a,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,o,s){const r=this.getCaretPosition(e,o,s);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,o){const{xAlign:s,yAlign:r}=this,{caretSize:a,cornerRadius:l}=o,{topLeft:c,topRight:u,bottomLeft:p,bottomRight:m}=Ca(l),{x:_,y:b}=e,{width:E,height:P}=n;let W,te,fe,Ce,ve,ke;return"center"===r?(ve=b+P/2,"left"===s?(W=_,te=W-a,Ce=ve+a,ke=ve-a):(W=_+E,te=W+a,Ce=ve-a,ke=ve+a),fe=W):(te="left"===s?_+Math.max(c,p)+a:"right"===s?_+E-Math.max(u,m)-a:this.caretX,"top"===r?(Ce=b,ve=Ce-a,W=te-a,fe=te+a):(Ce=b+P,ve=Ce+a,W=te+a,fe=te-a),ke=Ce),{x1:W,x2:te,x3:fe,y1:Ce,y2:ve,y3:ke}}drawTitle(e,n,o){const s=this.title,r=s.length;let a,l,c;if(r){const u=Zl(o.rtl,this.x,this.width);for(e.x=Qf(this,o.titleAlign,o),n.textAlign=u.textAlign(o.titleAlign),n.textBaseline="middle",a=ui(o.titleFont),l=o.titleSpacing,n.fillStyle=o.titleColor,n.font=a.string,c=0;c0!==Ce)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Yu(e,{x:W,y:P,w:u,h:c,radius:fe}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Yu(e,{x:te,y:P+1,w:u-2,h:c-2,radius:fe}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(W,P,u,c),e.strokeRect(W,P,u,c),e.fillStyle=a.backgroundColor,e.fillRect(te,P+1,u-2,c-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,n,o){const{body:s}=this,{bodySpacing:r,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:p}=o,m=ui(o.bodyFont);let _=m.lineHeight,b=0;const E=Zl(o.rtl,this.x,this.width),P=function(Ke){n.fillText(Ke,E.x(e.x+b),e.y+_/2),e.y+=_+r},W=E.textAlign(a);let te,fe,Ce,ve,ke,Pe,$e;for(n.textAlign=a,n.textBaseline="middle",n.font=m.string,e.x=Qf(this,W,o),n.fillStyle=o.bodyColor,_n(this.beforeBody,P),b=l&&"right"!==W?"center"===a?u/2+p:u+2+p:0,ve=0,Pe=s.length;ve0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,o=this.$animations,s=o&&o.x,r=o&&o.y;if(s||r){const a=ld[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=LM(this,e),c=Object.assign({},a,this._size),u=PM(n,e,c),p=FM(e,c,u,n);(s._to!==p.x||r._to!==p.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const a=Pi(n.padding);n.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=o,this.drawBackground(r,e,s,n),x3(e,n.textDirection),r.y+=a.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),A3(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const o=this._active,s=e.map(({datasetIndex:l,index:c})=>{const u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),r=!xf(o,s),a=this._positionChanged(s,n);(r||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,o=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],a=this._getActiveElements(e,r,n,o),l=this._positionChanged(a,e),c=n||!xf(a,r)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,o,s){const r=this.options;if("mouseout"===e.type)return[];if(!s)return n;const a=this.chart.getElementsAtEventForMode(e,r.mode,r,o);return r.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:o,caretY:s,options:r}=this,a=ld[r.position].call(this,e,n);return!1!==a&&(o!==a.x||s!==a.y)}}return t.positioners=ld,t})();var Ple=Object.freeze({__proto__:null,Decimation:Jae,Filler:Cle,Legend:yle,SubTitle:wle,Title:Ale,Tooltip:{id:"tooltip",_element:VM,positioners:ld,afterInit(t,i,e){e&&(t.tooltip=new VM({chart:t,options:e}))},beforeUpdate(t,i,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,i,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const i=t.tooltip;if(i&&i._willRender()){const e={tooltip:i};if(!1===t.notifyPlugins("beforeTooltipDraw",e))return;i.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,i){t.tooltip&&t.tooltip.handleEvent(i.event,i.replay,i.inChartArea)&&(i.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,i)=>i.bodyFont.size,boxWidth:(t,i)=>i.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ys,title(t){if(t.length>0){const i=t[0],e=i.chart.data.labels,n=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return i.dataset.label||"";if(i.label)return i.label;if(n>0&&i.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class Zf extends xa{constructor(i){super(i),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(i){const e=this._addedLabels;if(e.length){const n=this.getLabels();for(const{index:o,label:s}of e)n[o]===s&&n.splice(o,1);this._addedLabels=[]}super.init(i)}parse(i,e){if(tn(i))return null;const n=this.getLabels();return((t,i)=>null===t?null:pi(Math.round(t),0,i))(e=isFinite(e)&&n[e]===i?e:function Rle(t,i,e,n){const o=t.indexOf(i);return-1===o?((t,i,e,n)=>("string"==typeof i?(e=t.push(i)-1,n.unshift({index:e,label:i})):isNaN(i)&&(e=null),e))(t,i,e,n):o!==t.lastIndexOf(i)?e:o}(n,i,Nt(e,i),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let{min:n,max:o}=this.getMinMax(!0);"ticks"===this.options.bounds&&(i||(n=0),e||(o=this.getLabels().length-1)),this.min=n,this.max=o}buildTicks(){const i=this.min,e=this.max,n=this.options.offset,o=[];let s=this.getLabels();s=0===i&&e===s.length-1?s:s.slice(i,e+1),this._valueRange=Math.max(s.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let r=i;r<=e;r++)o.push({value:r});return o}getLabelForValue(i){const e=this.getLabels();return i>=0&&ie.length-1?null:this.getPixelForValue(e[i].value)}getValueForPixel(i){return Math.round(this._startValue+this.getDecimalForPixel(i)*this._valueRange)}getBasePixel(){return this.bottom}}function BM(t,i,{horizontal:e,minRotation:n}){const o=Yo(n),s=(e?Math.sin(o):Math.cos(o))||.001;return Math.min(i/s,.75*i*(""+t).length)}Zf.id="category",Zf.defaults={ticks:{callback:Zf.prototype.getLabelForValue}};class Yf extends xa{constructor(i){super(i),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(i,e){return tn(i)||("number"==typeof i||i instanceof Number)&&!isFinite(+i)?null:+i}handleTickRangeOptions(){const{beginAtZero:i}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:o,max:s}=this;const r=l=>o=e?o:l,a=l=>s=n?s:l;if(i){const l=Cs(o),c=Cs(s);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(o===s){let l=1;(s>=Number.MAX_SAFE_INTEGER||o<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(.05*s)),a(s+l),i||r(o-l)}this.min=o,this.max=s}getTickLimit(){const i=this.options.ticks;let o,{maxTicksLimit:e,stepSize:n}=i;return n?(o=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const i=this.options,e=i.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function Vle(t,i){const e=[],{bounds:o,step:s,min:r,max:a,precision:l,count:c,maxTicks:u,maxDigits:p,includeBounds:m}=t,_=s||1,b=u-1,{min:E,max:P}=i,W=!tn(r),te=!tn(a),fe=!tn(c),Ce=(P-E)/(p+1);let ke,Pe,$e,Ke,ve=Vk((P-E)/b/_)*_;if(ve<1e-14&&!W&&!te)return[{value:E},{value:P}];Ke=Math.ceil(P/ve)-Math.floor(E/ve),Ke>b&&(ve=Vk(Ke*ve/b/_)*_),tn(l)||(ke=Math.pow(10,l),ve=Math.ceil(ve*ke)/ke),"ticks"===o?(Pe=Math.floor(E/ve)*ve,$e=Math.ceil(P/ve)*ve):(Pe=E,$e=P),W&&te&&s&&function _oe(t,i){const e=Math.round(t);return e-i<=t&&e+i>=t}((a-r)/s,ve/1e3)?(Ke=Math.round(Math.min((a-r)/ve,u)),ve=(a-r)/Ke,Pe=r,$e=a):fe?(Pe=W?r:Pe,$e=te?a:$e,Ke=c-1,ve=($e-Pe)/Ke):(Ke=($e-Pe)/ve,Ke=$u(Ke,Math.round(Ke),ve/1e3)?Math.round(Ke):Math.ceil(Ke));const pt=Math.max(Hk(ve),Hk(Pe));ke=Math.pow(10,tn(l)?pt:l),Pe=Math.round(Pe*ke)/ke,$e=Math.round($e*ke)/ke;let jt=0;for(W&&(m&&Pe!==r?(e.push({value:r}),Pe0?n:null;this._zero=!0}determineDataLimits(){const{min:i,max:e}=this.getMinMax(!0);this.min=ti(i)?Math.max(0,i):null,this.max=ti(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:i,maxDefined:e}=this.getUserBounds();let n=this.min,o=this.max;const s=l=>n=i?n:l,r=l=>o=e?o:l,a=(l,c)=>Math.pow(10,Math.floor(Ro(l))+c);n===o&&(n<=0?(s(1),r(10)):(s(a(n,-1)),r(a(o,1)))),n<=0&&s(a(o,-1)),o<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&s(a(n,-1)),this.min=n,this.max=o}buildTicks(){const i=this.options,n=function Ble(t,i){const e=Math.floor(Ro(i.max)),n=Math.ceil(i.max/Math.pow(10,e)),o=[];let s=Po(t.min,Math.pow(10,Math.floor(Ro(i.min)))),r=Math.floor(Ro(s)),a=Math.floor(s/Math.pow(10,r)),l=r<0?Math.pow(10,Math.abs(r)):1;do{o.push({value:s,major:HM(s)}),++a,10===a&&(a=1,++r,l=r>=0?1:l),s=Math.round(a*Math.pow(10,r)*l)/l}while(ro?{start:i-e,end:i}:{start:i,end:i+e}}function jle(t,i,e,n,o){const s=Math.abs(Math.sin(e)),r=Math.abs(Math.cos(e));let a=0,l=0;n.starti.r&&(a=(n.end-i.r)/s,t.r=Math.max(t.r,i.r+a)),o.starti.b&&(l=(o.end-i.b)/r,t.b=Math.max(t.b,i.b+l))}function $le(t){return 0===t||180===t?"center":t<180?"left":"right"}function Kle(t,i,e){return"right"===e?t-=i:"center"===e&&(t-=i/2),t}function Gle(t,i,e){return 90===e||270===e?t-=i/2:(e>270||e<90)&&(t-=i),t}function jM(t,i,e,n){const{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,i,0,Cn);else{let s=t.getPointPosition(0,i);o.moveTo(s.x,s.y);for(let r=1;r{const o=Mn(this.options.pointLabels.callback,[e,n],this);return o||0===o?o:""}).filter((e,n)=>this.chart.getDataVisibility(n))}fit(){const i=this.options;i.display&&i.pointLabels.display?function zle(t){const i={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},i),n=[],o=[],s=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?Vn/s:0;for(let l=0;l=0&&i=0;o--){const s=n.setContext(t.getPointLabelContext(o)),r=ui(s.font),{x:a,y:l,textAlign:c,left:u,top:p,right:m,bottom:_}=t._pointLabelItems[o],{backdropColor:b}=s;if(!tn(b)){const E=Ca(s.borderRadius),P=Pi(s.backdropPadding);e.fillStyle=b;const W=u-P.left,te=p-P.top,fe=m-u+P.width,Ce=_-p+P.height;Object.values(E).some(ve=>0!==ve)?(e.beginPath(),Yu(e,{x:W,y:te,w:fe,h:Ce,radius:E}),e.fill()):e.fillRect(W,te,fe,Ce)}Ia(e,t._pointLabels[o],a,l+r.lineHeight/2,r,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,s),o.display&&this.ticks.forEach((c,u)=>{0!==u&&(a=this.getDistanceFromCenterForValue(c.value),function Wle(t,i,e,n){const o=t.ctx,s=i.circular,{color:r,lineWidth:a}=i;!s&&!n||!r||!a||e<0||(o.save(),o.strokeStyle=r,o.lineWidth=a,o.setLineDash(i.borderDash),o.lineDashOffset=i.borderDashOffset,o.beginPath(),jM(t,e,s,n),o.closePath(),o.stroke(),o.restore())}(this,o.setContext(this.getContext(u-1)),a,s))}),n.display){for(i.save(),r=s-1;r>=0;r--){const c=n.setContext(this.getPointLabelContext(r)),{color:u,lineWidth:p}=c;!p||!u||(i.lineWidth=p,i.strokeStyle=u,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(l.x,l.y),i.stroke())}i.restore()}}drawBorder(){}drawLabels(){const i=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const o=this.getIndexAngle(0);let s,r;i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(o),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const c=n.setContext(this.getContext(l)),u=ui(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){i.font=u.string,r=i.measureText(a.label).width,i.fillStyle=c.backdropColor;const p=Pi(c.backdropPadding);i.fillRect(-r/2-p.left,-s-u.size/2-p.top,r+p.width,u.size+p.height)}Ia(i,a.label,0,-s,u,{color:c.color})}),i.restore()}drawTitle(){}}cd.id="radialLinear",cd.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Nf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},cd.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},cd.descriptors={angleLines:{_fallback:"grid"}};const Xf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},so=Object.keys(Xf);function Zle(t,i){return t-i}function UM(t,i){if(tn(i))return null;const e=t._adapter,{parser:n,round:o,isoWeekday:s}=t._parseOpts;let r=i;return"function"==typeof n&&(r=n(r)),ti(r)||(r="string"==typeof n?e.parse(r,n):e.parse(r)),null===r?null:(o&&(r="week"!==o||!Gl(s)&&!0!==s?e.startOf(r,o):e.startOf(r,"isoWeek",s)),+r)}function $M(t,i,e,n){const o=so.length;for(let s=so.indexOf(t);s=i?e[n]:e[o]]=!0}}else t[i]=!0}function GM(t,i,e){const n=[],o={},s=i.length;let r,a;for(r=0;r=0&&(i[l].major=!0);return i}(t,n,o,e):n}let gv=(()=>{class t extends xa{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n){const o=e.time||(e.time={}),s=this._adapter=new Vre._date(e.adapters.date);s.init(n),ju(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:UM(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,o=e.time.unit||"day";let{min:s,max:r,minDefined:a,maxDefined:l}=this.getUserBounds();function c(u){!a&&!isNaN(u.min)&&(s=Math.min(s,u.min)),!l&&!isNaN(u.max)&&(r=Math.max(r,u.max))}(!a||!l)&&(c(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&c(this.getMinMax(!1))),s=ti(s)&&!isNaN(s)?s:+n.startOf(Date.now(),o),r=ti(r)&&!isNaN(r)?r:+n.endOf(Date.now(),o)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],o=e[e.length-1]),{min:n,max:o}}buildTicks(){const e=this.options,n=e.time,o=e.ticks,s="labels"===o.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,l=function boe(t,i,e){let n=0,o=t.length;for(;nn&&t[o-1]>e;)o--;return n>0||o=so.indexOf(e);s--){const r=so[s];if(Xf[r].common&&t._adapter.diff(o,n,r)>=i-1)return r}return so[e?so.indexOf(e):0]}(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=o.major.enabled&&"year"!==this._unit?function Xle(t){for(let i=so.indexOf(t)+1,e=so.length;i+e.value))}initOffsets(e){let s,r,n=0,o=0;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),n=1===e.length?1-s:(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),o=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=pi(n,0,a),o=pi(o,0,a),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,n=this.min,o=this.max,s=this.options,r=s.time,a=r.unit||$M(r.minUnit,n,o,this._getLabelCapacity(n)),l=Nt(r.stepSize,1),c="week"===a&&r.isoWeekday,u=Gl(c)||!0===c,p={};let _,b,m=n;if(u&&(m=+e.startOf(m,"isoWeek",c)),m=+e.startOf(m,u?"day":a),e.diff(o,n,a)>1e5*l)throw new Error(n+" and "+o+" are too far apart with stepSize of "+l+" "+a);const E="data"===s.ticks.source&&this.getDataTimestamps();for(_=m,b=0;_P-W).map(P=>+P)}getLabelForValue(e){const o=this.options.time;return this._adapter.format(e,o.tooltipFormat?o.tooltipFormat:o.displayFormats.datetime)}_tickFormatFunction(e,n,o,s){const r=this.options,a=r.time.displayFormats,l=this._unit,c=this._majorUnit,p=c&&a[c],m=o[n],b=this._adapter.format(e,s||(c&&p&&m&&m.major?p:l&&a[l])),E=r.ticks.callback;return E?Mn(E,[b,n,o],this):b}generateTickLabels(e){let n,o,s;for(n=0,o=e.length;n0?l:1}getDataTimestamps(){let n,o,e=this._cache.data||[];if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,o=s.length;n=t[n].pos&&i<=t[o].pos&&({lo:n,hi:o}=Js(t,"pos",i)),({pos:s,time:a}=t[n]),({pos:r,time:l}=t[o])):(i>=t[n].time&&i<=t[o].time&&({lo:n,hi:o}=Js(t,"time",i)),({time:s,pos:a}=t[n]),({time:r,pos:l}=t[o]));const c=r-s;return c?a+(l-a)*(i-s)/c:a}class mv extends gv{constructor(i){super(i),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const i=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(i);this._minPos=Jf(e,this.min),this._tableRange=Jf(e,this.max)-this._minPos,super.initOffsets(i)}buildLookupTable(i){const{min:e,max:n}=this,o=[],s=[];let r,a,l,c,u;for(r=0,a=i.length;r=e&&c<=n&&o.push(c);if(o.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=o.length;r{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const nce=["list"];function ice(t,i){1&t&&le(0,"li",5)}function oce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function sce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function rce(t,i){if(1&t&&(we(0),g(1,oce,1,2,"AngleDownIcon",19),g(2,sce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function ace(t,i){}function lce(t,i){1&t&&g(0,ace,0,0,"ng-template")}function cce(t,i){if(1&t&&(we(0),g(1,rce,3,2,"ng-container",8),g(2,lce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function uce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function dce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function pce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function hce(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit;d("ngClass",e.badgeStyleClass),h(1),dt(e.badge)}}const WM=function(t){return{"p-disabled":t}};function fce(t,i){if(1&t&&(x(0,"a",13),g(1,cce,3,2,"ng-container",8),g(2,uce,1,2,"span",14),g(3,dce,2,1,"span",15),g(4,pce,1,1,"ng-template",null,16,In),g(6,hce,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("ngClass",He(10,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==(null==n.item?null:n.item.escape))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function gce(t,i){if(1&t&&le(0,"AngleDownIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function mce(t,i){if(1&t&&le(0,"AngleRightIcon",20),2&t){const e=f(6).$implicit,n=f();d("styleClass","p-submenu-icon")("ngStyle",n.getItemProp(e,"iconStyle"))}}function _ce(t,i){if(1&t&&(we(0),g(1,gce,1,2,"AngleDownIcon",19),g(2,mce,1,2,"AngleRightIcon",19),Te()),2&t){const e=f(5).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Ice(t,i){}function Cce(t,i){1&t&&g(0,Ice,0,0,"ng-template")}function vce(t,i){if(1&t&&(we(0),g(1,_ce,3,2,"ng-container",8),g(2,Cce,1,0,null,18),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.panelMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.panelMenu.submenuIconTemplate)}}function bce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function yce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function xce(t,i){if(1&t&&le(0,"span",23),2&t){const e=f(4).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Ace(t,i){if(1&t&&(x(0,"span",24),Le(1),A()),2&t){const e=f(4).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}const QM=function(){return{exact:!1}};function wce(t,i){if(1&t&&(x(0,"a",25),g(1,vce,3,2,"ng-container",8),g(2,bce,1,2,"span",14),g(3,yce,2,1,"span",15),g(4,xce,1,1,"ng-template",null,26,In),g(6,Ace,2,2,"span",17),A()),2&t){const e=Bt(5),n=f(3).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(20,QM))("ngClass",He(21,WM,o.getItemProp(n,"disabled")))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("title",o.getItemProp(n,"title"))("data-pc-section","action")("tabindex",o.parentExpanded?"0":"-1"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",n.badge)}}function Tce(t,i){if(1&t&&(we(0),g(1,fce,7,12,"a",11),g(2,wce,7,23,"a",12),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function Sce(t,i){}function Ece(t,i){1&t&&g(0,Sce,0,0,"ng-template")}const Dce=function(t){return{$implicit:t}};function kce(t,i){if(1&t&&(we(0),g(1,Ece,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f();h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,Dce,e.item))}}function Mce(t,i){if(1&t){const e=De();x(0,"p-panelMenuSub",28),me("itemToggle",function(o){return G(e),q(f(3).onItemToggle(o))}),A()}if(2&t){const e=f(2).$implicit,n=f();d("id",n.getItemId(e)+"_list")("panelId",n.panelId)("items",e.items)("itemTemplate",n.itemTemplate)("transitionOptions",n.transitionOptions)("focusedItemId",n.focusedItemId)("activeItemPath",n.activeItemPath)("level",n.level+1)("parentExpanded",!!n.parentExpanded&&n.isItemExpanded(e))}}function Oce(t,i){if(1&t){const e=De();x(0,"li",6)(1,"div",7),me("click",function(o){G(e);const s=f().$implicit;return q(f().onItemClick(o,s))}),g(2,Tce,3,2,"ng-container",8),g(3,kce,2,4,"ng-container",8),A(),x(4,"div",9),g(5,Mce,1,9,"p-panelMenuSub",10),A()()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();Ve(s.getItemProp(n,"styleClass")),Ii("p-hidden",!1===n.visible)("p-focus",s.isItemFocused(n)&&!s.isItemDisabled(n)),d("ngClass",s.getItemClass(n))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("aria-label",s.getItemProp(n,"label"))("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o))("data-p-disabled",s.isItemDisabled(n)),h(2),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("@submenu",s.getAnimation(n)),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Lce(t,i){if(1&t&&(g(0,ice,1,0,"li",3),g(1,Oce,6,21,"li",4)),2&t){const e=i.$implicit,n=f();d("ngIf",e.separator),h(1),d("ngIf",!e.separator&&n.isItemVisible(e))}}const Pce=function(t){return{"p-submenu-list":!0,"p-panelmenu-root-list":t}},Fce=["submenu"],Rce=["container"];function Nce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Vce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Bce(t,i){if(1&t&&(we(0),g(1,Nce,1,1,"ChevronDownIcon",17),g(2,Vce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Hce(t,i){}function zce(t,i){1&t&&g(0,Hce,0,0,"ng-template")}function jce(t,i){if(1&t&&(we(0),g(1,Bce,3,2,"ng-container",11),g(2,zce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function Uce(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function $ce(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function Kce(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function Gce(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function qce(t,i){if(1&t&&(x(0,"a",10),g(1,jce,3,2,"ng-container",11),g(2,Uce,1,2,"span",12),g(3,$ce,2,1,"span",13),g(4,Kce,1,1,"ng-template",null,14,In),g(6,Gce,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("target",o.getItemProp(n,"target")),K("href",o.getItemProp(n,"url"),Ls)("tabindex",-1)("title",o.getItemProp(n,"title"))("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}function Wce(t,i){1&t&&le(0,"ChevronDownIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Qce(t,i){1&t&&le(0,"ChevronRightIcon",18),2&t&&d("styleClass","p-submenu-icon")}function Zce(t,i){if(1&t&&(we(0),g(1,Wce,1,1,"ChevronDownIcon",17),g(2,Qce,1,1,"ChevronRightIcon",17),Te()),2&t){const e=f(4).$implicit,n=f();h(1),d("ngIf",n.isItemActive(e)),h(1),d("ngIf",!n.isItemActive(e))}}function Yce(t,i){}function Xce(t,i){1&t&&g(0,Yce,0,0,"ng-template")}function Jce(t,i){if(1&t&&(we(0),g(1,Zce,3,2,"ng-container",11),g(2,Xce,1,0,null,16),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.submenuIconTemplate)}}function eue(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(3).$implicit,n=f();d("ngClass",e.icon)("ngStyle",n.getItemProp(e,"iconStyle"))}}function tue(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(3).$implicit,n=f();h(1),dt(n.getItemProp(e,"label"))}}function nue(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(3).$implicit;d("innerHTML",f().getItemProp(e,"label"),hr)}}function iue(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(3).$implicit,n=f();d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function oue(t,i){if(1&t&&(x(0,"a",23),g(1,Jce,3,2,"ng-container",11),g(2,eue,1,2,"span",12),g(3,tue,2,1,"span",13),g(4,nue,1,1,"ng-template",null,24,In),g(6,iue,2,2,"span",15),A()),2&t){const e=Bt(5),n=f(2).$implicit,o=f();d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(18,QM))("target",o.getItemProp(n,"target"))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("tabindex",-1)("data-pc-section","headeraction"),h(1),d("ngIf",o.isItemGroup(n)),h(1),d("ngIf",n.icon),h(1),d("ngIf",!1!==o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge"))}}const sue=function(t){return{"p-panelmenu-expanded":t}};function rue(t,i){if(1&t){const e=De();x(0,"div",25),me("@rootItem.done",function(){return G(e),q(f(3).onToggleDone())}),x(1,"div",26)(2,"p-panelMenuList",27),me("headerFocus",function(o){return G(e),q(f(3).updateFocusedHeader(o))}),A()()()}if(2&t){const e=f(2),n=e.$implicit,o=e.index,s=f();d("ngClass",He(14,sue,s.isItemActive(n)))("@rootItem",s.getAnimation(n)),K("id",s.getContentId(n,o))("aria-labelledby",s.getHeaderId(n,o))("data-pc-section","toggleablecontent"),h(1),K("data-pc-section","menucontent"),h(1),d("panelId",s.getPanelId(o,n))("items",s.getItemProp(n,"items"))("itemTemplate",s.itemTemplate)("transitionOptions",s.transitionOptions)("root",!0)("activeItem",s.activeItem())("tabindex",s.tabindex)("parentExpanded",s.isItemActive(n))}}const aue=function(t,i){return{"p-component p-panelmenu-header":!0,"p-highlight":t,"p-disabled":i}};function lue(t,i){if(1&t){const e=De();x(0,"div",4)(1,"div",5),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderClick(o,r,a))})("keydown",function(o){G(e);const s=f(),r=s.$implicit,a=s.index;return q(f().onHeaderKeyDown(o,r,a))}),x(2,"div",6),g(3,qce,7,10,"a",7),g(4,oue,7,19,"a",8),A()(),g(5,rue,3,16,"div",9),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f();d("ngClass",s.getItemProp(n,"headerClass"))("ngStyle",s.getItemProp(n,"style")),K("data-pc-section","panel"),h(1),Ve(s.getItemProp(n,"styleClass")),d("ngClass",mt(21,aue,s.isItemActive(n),s.isItemDisabled(n)))("ngStyle",s.getItemProp(n,"style"))("pTooltip",s.getItemProp(n,"tooltip"))("tabindex",0)("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getHeaderId(n,o))("aria-expanded",s.isItemActive(n))("aria-label",s.getItemProp(n,"label"))("aria-controls",s.getContentId(n,o))("aria-disabled",s.isItemDisabled(n))("data-p-highlight",s.isItemActive(n))("data-p-disabled",s.isItemDisabled(n))("data-pc-section","header"),h(2),d("ngIf",!s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.getItemProp(n,"routerLink")),h(1),d("ngIf",s.isItemGroup(n))}}function cue(t,i){if(1&t&&(we(0),g(1,lue,6,24,"div",3),Te()),2&t){const e=i.$implicit,n=f();h(1),d("ngIf",n.isItemVisible(e))}}let due=(()=>{class t{panelMenu;el;panelId;focusedItemId;items;itemTemplate;level=0;activeItemPath;root;tabindex;transitionOptions;parentExpanded;itemToggle=new ge;menuFocus=new ge;menuBlur=new ge;menuKeyDown=new ge;listViewChild;constructor(e,n){this.panelMenu=e,this.el=n}getItemId(e){return e.item?.id??`${this.panelId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{"p-menuitem":!0,"p-disabled":this.isItemDisabled(e)}}getItemProp(e,n,o){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemExpanded(e){return e.expanded}isItemActive(e){return this.isItemExpanded(e)||this.activeItemPath.some(n=>n&&n.key===e.key)}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}getAnimation(e){return this.isItemActive(e)?{value:"visible",params:{transitionParams:this.transitionOptions,height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}onItemClick(e,n){this.isItemDisabled(n)||(this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemToggle.emit({processedItem:n,expanded:!this.isItemActive(n)}))}onItemToggle(e){this.itemToggle.emit(e)}static \u0275fac=function(n){return new(n||t)(V(ft(()=>ZM)),V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuSub"]],viewQuery:function(n,o){if(1&n&&je(nce,5),2&n){let s;Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",focusedItemId:"focusedItemId",items:"items",itemTemplate:"itemTemplate",level:"level",activeItemPath:"activeItemPath",root:"root",tabindex:"tabindex",transitionOptions:"transitionOptions",parentExpanded:"parentExpanded"},outputs:{itemToggle:"itemToggle",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeyDown:"menuKeyDown"},decls:3,vars:8,consts:[["role","tree",3,"ngClass","tabindex","focusin","focusout","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",4,"ngIf"],["role","treeitem",3,"ngClass","class","p-hidden","p-focus","ngStyle","pTooltip","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator"],["role","treeitem",3,"ngClass","ngStyle","pTooltip","tooltipOptions"],[1,"p-menuitem-content",3,"click"],[4,"ngIf"],[1,"p-toggleable-content"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle",4,"ngIf"],["class","p-menuitem-link",3,"ngClass","target",4,"ngIf"],["class","p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],[1,"p-menuitem-link",3,"ngClass","target"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","ngClass","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"id","panelId","items","itemTemplate","transitionOptions","focusedItemId","activeItemPath","level","parentExpanded","itemToggle"]],template:function(n,o){1&n&&(x(0,"ul",0,1),me("focusin",function(r){return o.menuFocus.emit(r)})("focusout",function(r){return o.menuBlur.emit(r)})("keydown",function(r){return o.menuKeyDown.emit(r)}),g(2,Lce,2,2,"ng-template",2),A()),2&n&&(d("ngClass",He(6,Pce,o.root))("tabindex",-1),K("aria-activedescendant",o.focusedItemId)("data-pc-section","menu")("aria-hidden",!o.parentExpanded),h(2),d("ngForOf",o.items))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,Or,Zo,t]},encapsulation:2,data:{animation:[Oo("submenu",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]}})}return t})(),pue=(()=>{class t{panelId;id;items;itemTemplate;parentExpanded;expanded;transitionOptions;root;tabindex;activeItem;itemToggle=new ge;headerFocus=new ge;subMenuViewChild;searchTimeout;searchValue;focused;focusedItem=bn(null);activeItemPath=bn([]);processedItems=bn([]);visibleItems=Ds(()=>{const e=this.processedItems();return this.flatItems(e)});get focusedItemId(){const e=this.focusedItem();return e&&e.item?.id?e.item.id:be.isNotEmpty(this.focusedItem())?`${this.panelId}_${this.focusedItem().key}`:void 0}ngOnChanges(e){e&&e.items&&e.items.currentValue&&this.processedItems.set(this.createProcessedItems(e.items.currentValue||[]))}getItemProp(e,n){return e&&e.item?be.getItemValue(e.item[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemActive(e){return this.activeItemPath().some(n=>n.key===e.parentKey)}isItemGroup(e){return be.isNotEmpty(e.items)}isElementInPanel(e,n){const o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)}isItemMatched(e){return this.isValidItem(e)&&this.getItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isVisibleItem(e){return!!e&&(0===e.level||this.isItemActive(e))&&this.isItemVisible(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e)&&!e.separator}findFirstItem(){return this.visibleItems().find(e=>this.isValidItem(e))}findLastItem(){return be.findLast(this.visibleItems(),e=>this.isValidItem(e))}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={icon:a.icon,expanded:a.expanded,separator:a.separator,item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}findProcessedItemByItemKey(e,n,o=0){if((n=n||this.processedItems())&&n.length)for(let s=0;s{this.isVisibleItem(o)&&(n.push(o),this.flatItems(o.items,n))}),n}changeFocusedItem(e){const{originalEvent:n,processedItem:o,focusOnNext:s,selfCheck:r,allowHeaderFocus:a=!0}=e;be.isNotEmpty(this.focusedItem())&&this.focusedItem().key!==o.key?(this.focusedItem.set(o),this.scrollInView()):a&&this.headerFocus.emit({originalEvent:n,focusOnNext:s,selfCheck:r})}scrollInView(){const e=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`);e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"nearest"})}onFocus(e){this.focused=!0;const n=this.focusedItem()||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem());null!==e.relatedTarget&&this.focusedItem.set(n)}onBlur(e){this.focused=!1,this.focusedItem.set(null),this.searchValue=""}onItemToggle(e){const{processedItem:n,expanded:o}=e;n.expanded=!n.expanded;const s=this.activeItemPath().filter(r=>r.parentKey!==n.parentKey);o&&s.push(n),this.activeItemPath.set(s),this.processedItems.mutate(r=>r.map(a=>a===n?n:a)),this.focusedItem.set(n)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findNextItem(this.focusedItem()):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()}onArrowUpKey(e){const n=be.isNotEmpty(this.focusedItem())?this.findPrevItem(this.focusedItem()):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()}onArrowLeftKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.activeItemPath().some(o=>o.key===this.focusedItem().key)){const o=this.activeItemPath().filter(s=>s.key!==this.focusedItem().key);this.activeItemPath.set(o)}else{const o=be.isNotEmpty(this.focusedItem().parent)?this.focusedItem().parent:this.focusedItem();this.focusedItem.set(o)}e.preventDefault()}}onArrowRightKey(e){if(be.isNotEmpty(this.focusedItem())){if(this.isItemGroup(this.focusedItem()))if(this.activeItemPath().some(s=>s.key===this.focusedItem().key))this.onArrowDownKey(e);else{const s=this.activeItemPath().filter(r=>r.parentKey!==this.focusedItem().parentKey);s.push(this.focusedItem()),this.activeItemPath.set(s)}e.preventDefault()}}onHomeKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()}onEndKey(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()}onEnterKey(e){if(be.isNotEmpty(this.focusedItem())){const n=j.findSingle(this.subMenuViewChild.listViewChild.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&(j.findSingle(n,'[data-pc-section="action"]')||j.findSingle(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(nthis.isValidItem(s)):void 0)||e}findPrevItem(e){const n=this.visibleItems().findIndex(s=>s.key===e.key);return(n>0?be.findLast(this.visibleItems().slice(0,n),s=>this.isValidItem(s)):void 0)||e}searchItems(e,n){this.searchValue=(this.searchValue||"")+n;let o=null,s=!1;if(be.isNotEmpty(this.focusedItem())){const r=this.visibleItems().findIndex(a=>a.key===this.focusedItem().key);o=this.visibleItems().slice(r).find(a=>this.isItemMatched(a)),o=be.isEmpty(o)?this.visibleItems().slice(0,r).find(a=>this.isItemMatched(a)):o}else o=this.visibleItems().find(r=>this.isItemMatched(r));return be.isNotEmpty(o)&&(s=!0),be.isEmpty(o)&&be.isEmpty(this.focusedItem())&&(o=this.findFirstItem()),be.isNotEmpty(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenuList"]],viewQuery:function(n,o){if(1&n&&je(Fce,5),2&n){let s;Se(s=Ee())&&(o.subMenuViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{panelId:"panelId",id:"id",items:"items",itemTemplate:"itemTemplate",parentExpanded:"parentExpanded",expanded:"expanded",transitionOptions:"transitionOptions",root:"root",tabindex:"tabindex",activeItem:"activeItem"},outputs:{itemToggle:"itemToggle",headerFocus:"headerFocus"},features:[Hn],decls:2,vars:10,consts:[[3,"root","id","panelId","tabindex","itemTemplate","focusedItemId","activeItemPath","transitionOptions","items","parentExpanded","itemToggle","keydown","menuFocus","menuBlur"],["submenu",""]],template:function(n,o){1&n&&(x(0,"p-panelMenuSub",0,1),me("itemToggle",function(r){return o.onItemToggle(r)})("keydown",function(r){return o.onKeyDown(r)})("menuFocus",function(r){return o.onFocus(r)})("menuBlur",function(r){return o.onBlur(r)}),A()),2&n&&d("root",!0)("id",o.panelId+"_list")("panelId",o.panelId)("tabindex",o.tabindex)("itemTemplate",o.itemTemplate)("focusedItemId",o.focused?o.focusedItemId:void 0)("activeItemPath",o.activeItemPath())("transitionOptions",o.transitionOptions)("items",o.processedItems())("parentExpanded",o.parentExpanded)},dependencies:[due],styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,changeDetection:0})}return t})(),ZM=(()=>{class t{cd;model;style;styleClass;multiple=!1;transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";id;tabindex=0;templates;containerViewChild;submenuIconTemplate;itemTemplate;animating;activeItem=bn(null);ngOnInit(){this.id=this.id||$t()}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}constructor(e){this.cd=e}collapseAll(){for(let e of this.model)e.expanded&&(e.expanded=!1);this.cd.detectChanges()}onToggleDone(){this.animating=!1}changeActiveItem(e,n,o,s=!1){if(!this.isItemDisabled(n)){const r=s?n:this.activeItem&&be.equals(n,this.activeItem)?null:n;this.activeItem.set(r)}}getAnimation(e){return e.expanded?{value:"visible",params:{transitionParams:this.animating?this.transitionOptions:"0ms",height:"*"}}:{value:"hidden",params:{transitionParams:this.transitionOptions,height:"0"}}}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isItemActive(e){return e.expanded}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemGroup(e){return be.isNotEmpty(e.items)}getPanelId(e,n){return n&&n.id?n.id:`${this.id}_${e}`}getHeaderId(e,n){return e.id?e.id+"_header":`${this.getPanelId(n)}_header`}getContentId(e,n){return e.id?e.id+"_content":`${this.getPanelId(n)}_content`}updateFocusedHeader(e){const{originalEvent:n,focusOnNext:o,selfCheck:s}=e,r=n.currentTarget.closest('[data-pc-section="panel"]'),a=s?j.findSingle(r,'[data-pc-section="header"]'):o?this.findNextHeader(r):this.findPrevHeader(r);a?this.changeFocusedHeader(n,a):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)}changeFocusedHeader(e,n){n&&j.focus(n)}findNextHeader(e,n=!1){const s=j.findSingle(n?e:e.nextElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findNextHeader(s.parentElement):s:null}findPrevHeader(e,n=!1){const s=j.findSingle(n?e:e.previousElementSibling,'[data-pc-section="header"]');return s?j.getAttribute(s,"data-p-disabled")?this.findPrevHeader(s.parentElement):s:null}findFirstHeader(){return this.findNextHeader(this.containerViewChild.nativeElement.firstElementChild,!0)}findLastHeader(){return this.findPrevHeader(this.containerViewChild.nativeElement.lastElementChild,!0)}onHeaderClick(e,n,o){if(this.isItemDisabled(n))e.preventDefault();else{if(n.command&&n.command({originalEvent:e,item:n}),!this.multiple)for(let s of this.model)n!==s&&s.expanded&&(s.expanded=!1);n.expanded=!n.expanded,this.changeActiveItem(e,n,o),this.animating=!0,j.focus(e.currentTarget)}}onHeaderKeyDown(e,n,o){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"Space":this.onHeaderEnterKey(e,n,o)}}onHeaderArrowDownKey(e){const n=!0===j.getAttribute(e.currentTarget,"data-p-highlight")?j.findSingle(e.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;n?j.focus(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()}onHeaderArrowUpKey(e){const n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=!0===j.getAttribute(n,"data-p-highlight")?j.findSingle(n.nextElementSibling,'[data-pc-section="menu"]'):null;o?j.focus(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()}onHeaderHomeKey(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()}onHeaderEndKey(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()}onHeaderEnterKey(e,n,o){const s=j.findSingle(e.currentTarget,'[data-pc-section="headeraction"]');s?s.click():this.onHeaderClick(e,n,o),e.preventDefault()}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-panelMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Rce,5),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",multiple:"multiple",transitionOptions:"transitionOptions",id:"id",tabindex:"tabindex"},decls:3,vars:5,consts:[[3,"ngStyle","ngClass"],["container",""],[4,"ngFor","ngForOf"],["class","p-panelmenu-panel",3,"ngClass","ngStyle",4,"ngIf"],[1,"p-panelmenu-panel",3,"ngClass","ngStyle"],["role","button",3,"ngClass","ngStyle","pTooltip","tabindex","tooltipOptions","click","keydown"],[1,"p-panelmenu-header-content"],["class","p-panelmenu-header-action",3,"target",4,"ngIf"],["class","p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["class","p-toggleable-content","role","region",3,"ngClass",4,"ngIf"],[1,"p-panelmenu-header-action",3,"target"],[4,"ngIf"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-panelmenu-header-action",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["htmlRouteLabel",""],["role","region",1,"p-toggleable-content",3,"ngClass"],[1,"p-panelmenu-content"],[3,"panelId","items","itemTemplate","transitionOptions","root","activeItem","tabindex","parentExpanded","headerFocus"]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,cue,2,1,"ng-container",2),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass","p-panelmenu p-component"),h(2),d("ngForOf",o.model))},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,Kl,bi,Qi,pue]},styles:["@layer primeng{.p-panelmenu .p-panelmenu-header-action{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;position:relative;text-decoration:none}.p-panelmenu .p-panelmenu-header-action:focus{z-index:1}.p-panelmenu .p-submenu-list{margin:0;padding:0;list-style:none}.p-panelmenu .p-menuitem-link{display:flex;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;text-decoration:none;position:relative;overflow:hidden}.p-panelmenu .p-menuitem-text{line-height:1}.p-panelmenu-expanded.p-toggleable-content:not(.ng-animating),.p-panelmenu .p-submenu-expanded:not(.ng-animating){overflow:visible}.p-panelmenu .p-toggleable-content,.p-panelmenu .p-submenu-list{overflow:hidden}}\n"],encapsulation:2,data:{animation:[Oo("rootItem",[Us("hidden",en({height:"0"})),Us("visible",en({height:"*"})),Ln("visible <=> hidden",[On("{{transitionParams}}")]),Ln("void => *",On(0))])]},changeDetection:0})}return t})(),YM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qe,Or,Zo,bi,Qi,qn,Nn,Qe]})}return t})(),eg=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["MinusIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},dependencies:[Xe],encapsulation:2})}return t})(),JM=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,vf,dn,Oi,_s,CC,vC,Ck,bk,vk,yi,eg,bi,Qi,Qe,Oi]})}return t})();const Hde=["input"],zde=function(t,i,e){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":t,"p-disabled":i,"p-focus":e}},jde={provide:un,useExisting:ft(()=>Ude),multi:!0};let Ude=(()=>{class t{cd;style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;onChange=new ge;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),e.preventDefault(),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-inputSwitch"]],viewQuery:function(n,o){if(1&n&&je(Hde,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[yt([jde])],decls:5,vars:22,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","focus","blur"],["input",""],[1,"p-inputswitch-slider"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),le(4,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(18,zde,o.checked(),o.disabled,o.focused))("ngStyle",o.style),K("data-pc-name","inputswitch")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("checked",o.checked())("disabled",o.disabled),K("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),h(2),K("data-pc-section","slider"))},dependencies:[Ct,Ht],styles:['@layer primeng{.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;inset:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}}\n'],encapsulation:2,changeDetection:0})}return t})(),_v=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const $de=["sublist"];function Kde(t,i){if(1&t&&le(0,"li",6),2&t){const e=f().$implicit,n=f(2);yn(n.getItemProp(e,"style")),d("ngClass",n.getSeparatorItemClass(e)),K("id",n.getItemId(e))("data-pc-section","separator")}}function Gde(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function qde(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function Wde(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function Qde(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function Zde(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function Yde(t,i){}function Xde(t,i){1&t&&g(0,Yde,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function Jde(t,i){if(1&t&&(we(0),g(1,Zde,1,3,"AngleRightIcon",23),g(2,Xde,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const eO=function(t){return{"p-menuitem-link":!0,"p-disabled":t}};function epe(t,i){if(1&t&&(x(0,"a",14),g(1,Gde,1,5,"span",15),g(2,qde,2,2,"span",16),g(3,Wde,1,2,"ng-template",null,17,In),g(5,Qde,2,2,"span",18),g(6,Jde,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("target",o.getItemProp(n,"target"))("ngClass",He(12,eO,o.getItemProp(n,"disabled"))),K("href",o.getItemProp(n,"url"),Ls)("aria-hidden",!0)("data-automationid",o.getItemProp(n,"automationId"))("data-pc-section","action")("tabindex",-1),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function tpe(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"icon"))("ngStyle",n.getItemProp(e,"iconStyle")),K("data-pc-section","icon")("aria-hidden",!0)("tabindex",-1)}}function npe(t,i){if(1&t&&(x(0,"span",20),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);K("data-pc-section","label"),h(1),Pt(" ",n.getItemLabel(e)," ")}}function ipe(t,i){if(1&t&&le(0,"span",21),2&t){const e=f(4).$implicit;d("innerHTML",f(2).getItemLabel(e),hr),K("data-pc-section","label")}}function ope(t,i){if(1&t&&(x(0,"span",22),Le(1),A()),2&t){const e=f(4).$implicit,n=f(2);d("ngClass",n.getItemProp(e,"badgeStyleClass")),h(1),dt(n.getItemProp(e,"badge"))}}function spe(t,i){1&t&&le(0,"AngleRightIcon",25),2&t&&(d("styleClass","p-submenu-icon"),K("data-pc-section","submenuicon")("aria-hidden",!0))}function rpe(t,i){}function ape(t,i){1&t&&g(0,rpe,0,0,"ng-template"),2&t&&d("data-pc-section","submenuicon")("aria-hidden",!0)}function lpe(t,i){if(1&t&&(we(0),g(1,spe,1,3,"AngleRightIcon",23),g(2,ape,1,2,null,24),Te()),2&t){const e=f(6);h(1),d("ngIf",!e.contextMenu.submenuIconTemplate),h(1),d("ngTemplateOutlet",e.contextMenu.submenuIconTemplate)}}const cpe=function(){return{exact:!1}};function upe(t,i){if(1&t&&(x(0,"a",26),g(1,tpe,1,5,"span",15),g(2,npe,2,2,"span",16),g(3,ipe,1,2,"ng-template",null,17,In),g(5,ope,2,2,"span",18),g(6,lpe,3,2,"ng-container",10),A()),2&t){const e=Bt(4),n=f(3).$implicit,o=f(2);d("routerLink",o.getItemProp(n,"routerLink"))("queryParams",o.getItemProp(n,"queryParams"))("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",o.getItemProp(n,"routerLinkActiveOptions")||Jt(21,cpe))("target",o.getItemProp(n,"target"))("ngClass",He(22,eO,o.getItemProp(n,"disabled")))("fragment",o.getItemProp(n,"fragment"))("queryParamsHandling",o.getItemProp(n,"queryParamsHandling"))("preserveFragment",o.getItemProp(n,"preserveFragment"))("skipLocationChange",o.getItemProp(n,"skipLocationChange"))("replaceUrl",o.getItemProp(n,"replaceUrl"))("state",o.getItemProp(n,"state")),K("data-automationid",o.getItemProp(n,"automationId"))("tabindex",-1)("aria-hidden",!0)("data-pc-section","action"),h(1),d("ngIf",o.getItemProp(n,"icon")),h(1),d("ngIf",o.getItemProp(n,"escape"))("ngIfElse",e),h(3),d("ngIf",o.getItemProp(n,"badge")),h(1),d("ngIf",o.isItemGroup(n))}}function dpe(t,i){if(1&t&&(we(0),g(1,epe,7,14,"a",12),g(2,upe,7,24,"a",13),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngIf",!n.getItemProp(e,"routerLink")),h(1),d("ngIf",n.getItemProp(e,"routerLink"))}}function ppe(t,i){}function hpe(t,i){1&t&&g(0,ppe,0,0,"ng-template")}const fpe=function(t){return{$implicit:t}};function gpe(t,i){if(1&t&&(we(0),g(1,hpe,1,0,null,27),Te()),2&t){const e=f(2).$implicit,n=f(2);h(1),d("ngTemplateOutlet",n.itemTemplate)("ngTemplateOutletContext",He(2,fpe,e.item))}}function mpe(t,i){if(1&t){const e=De();x(0,"p-contextMenuSub",28),me("itemClick",function(o){return G(e),q(f(4).itemClick.emit(o))})("itemMouseEnter",function(o){return G(e),q(f(4).onItemMouseEnter(o))}),A()}if(2&t){const e=f(2).$implicit,n=f(2);d("items",e.items)("itemTemplate",n.itemTemplate)("menuId",n.menuId)("visible",n.isItemActive(e)&&n.isItemGroup(e))("activeItemPath",n.activeItemPath)("focusedItemId",n.focusedItemId)("level",n.level+1)}}function _pe(t,i){if(1&t){const e=De();x(0,"li",7,8)(2,"div",9),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onItemClick(o,s))})("mouseenter",function(o){G(e);const s=f().$implicit;return q(f(2).onItemMouseEnter({$event:o,processedItem:s}))}),g(3,dpe,3,2,"ng-container",10),g(4,gpe,2,4,"ng-container",10),A(),g(5,mpe,1,7,"p-contextMenuSub",11),A()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f(2);Ve(s.getItemProp(n,"styleClass")),d("ngStyle",s.getItemProp(n,"style"))("ngClass",s.getItemClass(n))("tooltipOptions",s.getItemProp(n,"tooltipOptions")),K("id",s.getItemId(n))("data-pc-section","menuitem")("data-p-highlight",s.isItemActive(n))("data-p-focused",s.isItemFocused(n))("data-p-disabled",s.isItemDisabled(n))("aria-label",s.getItemLabel(n))("aria-disabled",s.isItemDisabled(n)||void 0)("aria-haspopup",s.isItemGroup(n)&&!s.getItemProp(n,"to")?"menu":void 0)("aria-expanded",s.isItemGroup(n)?s.isItemActive(n):void 0)("aria-level",s.level+1)("aria-setsize",s.getAriaSetSize())("aria-posinset",s.getAriaPosInset(o)),h(2),K("data-pc-section","content"),h(1),d("ngIf",!s.itemTemplate),h(1),d("ngIf",s.itemTemplate),h(1),d("ngIf",s.isItemVisible(n)&&s.isItemGroup(n))}}function Ipe(t,i){if(1&t&&(g(0,Kde,1,5,"li",4),g(1,_pe,6,21,"li",5)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isItemVisible(e)&&n.getItemProp(e,"separator")),h(1),d("ngIf",n.isItemVisible(e)&&!n.getItemProp(e,"separator"))}}const Cpe=function(t,i){return{"p-submenu-list":t,"p-contextmenu-root-list":i}};function vpe(t,i){if(1&t){const e=De();x(0,"ul",1,2),me("@overlayAnimation.start",function(o){G(e);const s=Bt(1);return q(f().onEnter(o,s))})("keydown",function(o){return G(e),q(f().menuKeydown.emit(o))})("focus",function(o){return G(e),q(f().menuFocus.emit(o))})("blur",function(o){return G(e),q(f().menuBlur.emit(o))}),g(2,Ipe,2,2,"ng-template",3),A()}if(2&t){const e=f();d("ngClass",mt(10,Cpe,!e.root,e.root))("@overlayAnimation",e.visible)("tabindex",e.tabindex),K("id",e.menuId+"_list")("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy)("aria-activedescendant",e.focusedItemId)("aria-orientation","vertical")("data-pc-section","menu"),h(2),d("ngForOf",e.items)}}const bpe=["rootmenu"],ype=["container"],xpe=function(){return{"p-contextmenu p-component":!0,"p-contextmenu-overlay":!0}},Ape=function(){return{value:"visible"}};function wpe(t,i){if(1&t){const e=De();x(0,"div",1,2),me("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(2,"p-contextMenuSub",3,4),me("itemClick",function(o){return G(e),q(f().onItemClick(o))})("menuFocus",function(o){return G(e),q(f().onMenuFocus(o))})("menuBlur",function(o){return G(e),q(f().onMenuBlur(o))})("menuKeydown",function(o){return G(e),q(f().onKeyDown(o))})("itemMouseEnter",function(o){return G(e),q(f().onItemMouseEnter(o))}),A()()}if(2&t){const e=f();Ve(e.styleClass),d("ngClass",Jt(20,xpe))("ngStyle",e.style)("@overlayAnimation",Jt(21,Ape)),K("data-pc-section","root")("data-pc-name","contextmenu")("id",e.id),h(2),d("root",!0)("items",e.processedItems)("itemTemplate",e.itemTemplate)("menuId",e.id)("tabindex",e.disabled?-1:e.tabindex)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("visible",e.submenuVisible())("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())}}let Tpe=(()=>{class t{document;el;renderer;cd;contextMenu;ref;visible=!1;items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;tabindex=0;itemClick=new ge;itemMouseEnter=new ge;menuFocus=new ge;menuBlur=new ge;menuKeydown=new ge;sublistViewChild;constructor(e,n,o,s,r,a){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.contextMenu=r,this.ref=a}getItemProp(e,n,o=null){return e&&e.item?be.getItemValue(e.item[n],o):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem":!0,"p-highlight":this.isItemActive(e),"p-menuitem-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)}}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return{...this.getItemProp(e,"class"),"p-menuitem-separator":!0}}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(n=>this.isItemVisible(n)&&this.getItemProp(n,"separator")).length+1}isItemVisible(e){return!1!==this.getItemProp(e,"visible")}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(n=>n.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return be.isNotEmpty(e.items)}onItemMouseEnter(e){const{event:n,processedItem:o}=e;this.itemMouseEnter.emit({originalEvent:n,processedItem:o})}onItemClick(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.itemClick.emit({originalEvent:e,processedItem:n,isFocus:!0})}onEnter(e,n){"void"===e.fromState&&e.toState&&this.position(e.element)}position(e){const n=e.parentElement.parentElement,o=j.getOffset(e.parentElement.parentElement),s=j.getViewport(),r=e.offsetParent?e.offsetWidth:j.getHiddenElementOuterWidth(e),a=j.getOuterWidth(n.children[0]);e.style.top="0px",e.style.left=parseInt(o.left,10)+a+r>s.width-j.calculateScrollbarWidth()?-1*r+"px":a+"px"}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ft(()=>tO)),V(go))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenuSub"]],viewQuery:function(n,o){if(1&n&&je($de,5),2&n){let s;Se(s=Ee())&&(o.sublistViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",items:"items",itemTemplate:"itemTemplate",root:"root",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",popup:"popup",menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:"level",focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",tabindex:"tabindex"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},decls:1,vars:1,consts:[["role","menu",3,"ngClass","tabindex","keydown","focus","blur",4,"ngIf"],["role","menu",3,"ngClass","tabindex","keydown","focus","blur"],["sublist",""],["ngFor","",3,"ngForOf"],["role","separator",3,"style","ngClass",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","class","tooltipOptions",4,"ngIf"],["role","separator",3,"ngClass"],["role","menuitem","pTooltip","",3,"ngStyle","ngClass","tooltipOptions"],["listItem",""],[1,"p-menuitem-content",3,"click","mouseenter"],[4,"ngIf"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","ngClass",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",3,"target","ngClass"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","itemClick","itemMouseEnter"]],template:function(n,o){1&n&&g(0,vpe,3,13,"ul",0),2&n&&d("ngIf",!!o.root||o.visible)},dependencies:function(){return[Ct,Jn,gt,on,Ht,pa,cf,oo,Kl,Zo,t]},encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0})]),Ln(":leave",[en({opacity:0})])])]}})}return t})(),tO=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}triggerEvent="contextmenu";target;global;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;id;ariaLabel;ariaLabelledBy;onShow=new ge;onHide=new ge;templates;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;container;outsideClickListener;resizeListener;triggerEventListener;documentClickListener;documentTriggerListener;pageX;pageY;visible=bn(!1);relativeAlign;window;focused=!1;activeItemPath=bn([]);focusedItemInfo=bn({index:-1,level:0,parentKey:"",item:null});submenuVisible=bn(!1);searchValue="";searchTimeout;_processedItems;_model;get visibleItems(){const e=this.activeItemPath().find(n=>n.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){const e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:-1!==e.index?`${this.id}${be.isNotEmpty(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView,a_(()=>{const c=this.activeItemPath();be.isNotEmpty(c)?this.bindGlobalListeners():this.visible()||this.unbindGlobalListeners()})}ngOnInit(){this.id=this.id||$t(),this.bindTriggerEventListener()}bindTriggerEventListener(){ei(this.platformId)&&(this.triggerEventListener||(this.global?this.triggerEventListener=this.renderer.listen(this.document,this.triggerEvent,e=>{this.show(e)}):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,e=>{this.show(e)}))))}bindGlobalListeners(){if(ei(this.platformId)){if(!this.documentClickListener){const e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&!n.ctrlKey&&2!==n.button&&"click"!==this.triggerEvent&&this.hide()}),this.documentTriggerListener=this.renderer.listen(e,this.triggerEvent,n=>{this.containerViewChild.nativeElement.offsetParent&&this.isOutsideClicked(n)&&this.hide()})}this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()}))}}ngAfterContentInit(){this.templates?.forEach(e=>{"submenuicon"===e.getType()?this.submenuIconTemplate=e.template:this.itemTemplate=e.template})}createProcessedItems(e,n=0,o={},s=""){const r=[];return e&&e.forEach((a,l)=>{const c=(""!==s?s+"_":"")+l,u={item:a,index:l,level:n,key:c,parent:o,parentKey:s};u.items=this.createProcessedItems(a.items,n+1,u,c),r.push(u)}),r}getItemProp(e,n){return e?be.getItemValue(e[n]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&be.isNotEmpty(e.items)}isSelected(e){return this.activeItemPath().some(n=>n.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&be.isNotEmpty(e.items)}onItemClick(e){const{processedItem:n}=e,o=this.isProcessedItemGroup(n);if(this.isSelected(n)){const{index:r,key:a,level:l,parentKey:c,item:u}=n;this.activeItemPath.set(this.activeItemPath().filter(p=>a!==p.key&&a.startsWith(p.key))),this.focusedItemInfo.set({index:r,level:l,parentKey:c,item:u}),j.focus(this.rootmenu.sublistViewChild.nativeElement)}else o?this.onItemChange(e):this.hide()}onItemMouseEnter(e){this.onItemChange(e)}onKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&be.isPrintableCharacter(e.key)&&this.searchItems(e,e.key)}}onArrowDownKey(e){const n=-1!==this.focusedItemInfo().index?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}onArrowRightKey(e){const n=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(n)&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo.set({index:-1,parentKey:n.key,item:n.item}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide(),e.preventDefault()}else{const n=-1!==this.focusedItemInfo().index?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()}}onArrowLeftKey(e){const n=this.visibleItems[this.focusedItemInfo().index],o=this.activeItemPath().find(a=>a.key===n.parentKey);be.isEmpty(n.parent)||(this.focusedItemInfo.set({index:-1,parentKey:o?o.parentKey:"",item:n.item}),this.searchValue="",this.onArrowDownKey(e));const r=this.activeItemPath().filter(a=>a.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(r),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide();const n=this.findVisibleItem(this.findFirstFocusedItemIndex());this.focusedItemInfo.mutate(o=>{o.index=this.findFirstFocusedItemIndex(),o.item=n.item}),e.preventDefault()}onTabKey(e){if(-1!==this.focusedItemInfo().index){const n=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(n)&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()}onEnterKey(e){if(-1!==this.focusedItemInfo().index){const n=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${this.focusedItemId}"]`),o=n&&j.findSingle(n,'a[data-pc-section="action"]');o?o.click():n&&n.click();const s=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(s)||this.focusedItemInfo.mutate(a=>{a.index=this.findFirstFocusedItemIndex()})}e.preventDefault()}onItemChange(e){const{processedItem:n,isFocus:o}=e;if(be.isEmpty(n))return;const{index:s,key:r,level:a,parentKey:l,items:c}=n,u=be.isNotEmpty(c),p=this.activeItemPath().filter(m=>m.parentKey!==l&&m.parentKey!==r);u&&(p.push(n),this.submenuVisible.set(!0)),this.focusedItemInfo.set({index:s,level:a,parentKey:l,item:n.item}),this.activeItemPath.set(p),o&&j.focus(this.rootmenu.sublistViewChild.nativeElement)}onMenuFocus(e){this.focused=!0;const n=-1!==this.focusedItemInfo().index?this.focusedItemInfo():{index:-1,level:0,parentKey:"",item:null};this.focusedItemInfo.set(n)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue=""}onOverlayAnimationStart(e){"visible"===e.toState&&(this.container=e.element,this.position(),this.moveOnTop(),this.appendOverlay(),this.bindGlobalListeners(),this.onShow.emit(),j.focus(this.rootmenu.sublistViewChild.nativeElement))}onOverlayAnimationEnd(e){"void"===e.toState&&this.onOverlayHide()}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.containerViewChild.nativeElement):j.appendChild(this.containerViewChild.nativeElement,this.appendTo))}moveOnTop(){this.autoZIndex&&this.containerViewChild&&Wn.set("menu",this.containerViewChild.nativeElement,this.baseZIndex+this.config.zIndex.menu)}onOverlayHide(){this.unbindGlobalListeners(),this.cd.destroyed||(this.target=null),this.container&&this.autoZIndex&&Wn.clear(this.container),this.container=null,this.onHide.emit()}hide(){this.visible.set(!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null})}toggle(e){this.visible()?this.hide():this.show(e)}show(e){this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.pageX=e.pageX,this.pageY=e.pageY,this.visible()?this.position():this.visible.set(!0),e.stopPropagation(),e.preventDefault()}position(){let e=this.pageX+1,n=this.pageY+1,o=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetWidth:j.getHiddenElementOuterWidth(this.containerViewChild.nativeElement),s=this.containerViewChild.nativeElement.offsetParent?this.containerViewChild.nativeElement.offsetHeight:j.getHiddenElementOuterHeight(this.containerViewChild.nativeElement),r=j.getViewport();e+o-this.document.scrollingElement.scrollLeft>r.width&&(e-=o),n+s-this.document.scrollingElement.scrollTop>r.height&&(n-=s),ethis.isItemMatched(r)),o=-1===o?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(r=>this.isItemMatched(r)):o+this.focusedItemInfo().index):o=this.visibleItems.findIndex(r=>this.isItemMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedItemInfo().index&&(o=this.findFirstFocusedItemIndex()),-1!==o&&this.changeFocusedItemIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}findVisibleItem(e){return be.isNotEmpty(this.visibleItems)?this.visibleItems[e]:null}findLastFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return be.findLastIndex(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){const n=e>0?be.findLastIndex(this.visibleItems.slice(0,e),o=>this.isValidItem(o)):-1;return n>-1?n:e}findNextItemIndex(e){const n=ethis.isValidItem(o)):-1;return n>-1?n+e+1:e}findFirstFocusedItemIndex(){const e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,n){const o=this.findVisibleItem(n);this.focusedItemInfo().index!==n&&(this.focusedItemInfo.mutate(s=>{s.index=n,s.item=o.item}),this.scrollInView())}scrollInView(e=-1){const o=j.findSingle(this.rootmenu.el.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedItemId}"]`);o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"})}bindResizeListener(){ei(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()})))}isOutsideClicked(e){return!(this.containerViewChild.nativeElement.isSameNode(e.target)||this.containerViewChild.nativeElement.contains(e.target))}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindTriggerEventListener(){this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null)}removeAppendedElements(){this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.containerViewChild.nativeElement):j.removeChild(this.containerViewChild.nativeElement,this.appendTo))}ngOnDestroy(){this.unbindGlobalListeners(),this.unbindTriggerEventListener(),this.removeAppendedElements()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-contextMenu"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(bpe,5),je(ype,5)),2&n){let s;Se(s=Ee())&&(o.rootmenu=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",triggerEvent:"triggerEvent",target:"target",global:"global",style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onShow:"onShow",onHide:"onHide"},decls:1,vars:1,consts:[[3,"ngClass","class","ngStyle",4,"ngIf"],[3,"ngClass","ngStyle"],["container",""],[3,"root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","visible","focusedItemId","activeItemPath","itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter"],["rootmenu",""]],template:function(n,o){1&n&&g(0,wpe,4,22,"div",0),2&n&&d("ngIf",o.visible())},dependencies:[Ct,gt,Ht,Tpe],styles:["@layer primeng{.p-contextmenu{position:absolute}.p-contextmenu ul{margin:0;padding:0;list-style:none}.p-contextmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1}.p-contextmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-contextmenu .p-menuitem-text{line-height:1}.p-contextmenu .p-menuitem{position:relative}.p-contextmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-contextmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0}),On("250ms")]),Ln(":leave",[On(".1s linear",en({opacity:0}))])])]},changeDetection:0})}return t})(),nO=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),Spe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({providers:[Hs],imports:[R0,JD,NE,JM,wk,qM,qn,kG,YM,Ek,_v,kk,nO]})}return t})();Dg(Dk,[gt,wl,ch,Is,EC,Ok],[]);const Epe=function(){return["NumberOfActivities"]};let Dpe=(()=>{class t{constructor(){}ngOnInit(){for(let e of this.businessFlows)null!=e.ActivitiesColl&&(e.NumberOfActivities=e.ActivitiesColl.length);this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}],this.businessFlowGeneralDetailsCols=[{field:"Seq",header:"Execution Sequence"},{field:"Name",header:"Business Flow Name"},{field:"Description",header:"Business Flow Description"},{field:"Description",header:"Business Flow Run Description"},{field:"Environment",header:"Environment Used"},{field:"StartTimeStamp",header:"Execution Start Time"},{field:"EndTimeStamp",header:"Execution End Time"},{field:"Elapsed",header:"Execution Duration"},{field:"NumberOfActivities",header:"Number Of Activities"},{field:"RunStatus",header:"Business Flow Execution Status"},{field:"ExecutionRate",header:"Business Flow Execution Rate"},{field:"PassRate",header:"Business Flow Activities Pass Rate"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow-table"]],inputs:{businessFlows:"businessFlows",tableExpenderType:"tableExpenderType"},decls:1,vars:8,consts:[[3,"cols","data","addExpender","tableExpenderType","fieldsLinksArr","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&le(0,"app-table",0),2&n&&d("cols",o.businessFlowGeneralDetailsCols)("data",o.businessFlows)("addExpender",!0)("tableExpenderType",o.tableExpenderType)("fieldsLinksArr",o.fieldsLinksArr)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(7,Epe))},dependencies:[Is]})}return t})(),kpe=(()=>{class t{constructor(){}ngOnInit(){this.title=this.chartTitle,this.data=this.executionData,this.type="PieChart",this.columnNames=["Browser","Percentage"],this.options={pieHole:.7,legend:{position:"labeled"},chartArea:{left:0,height:220,width:400},colors:["#468216","#DC3812","#A21025","#ED5588","#FF9900","#EAB330","#CA0088"]},this.width=400,this.height=400}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-google-doughnut"]],inputs:{executionData:"executionData",chartTitle:"chartTitle"},decls:2,vars:7,consts:[[3,"title","type","data","columns","options","width","height"],["chart",""]],template:function(n,o){1&n&&le(0,"google-chart",0,1),2&n&&d("title",o.title)("type",o.type)("data",o.data)("columns",o.columnNames)("options",o.options)("width",o.width)("height",o.height)},dependencies:[rk]})}return t})();function Mpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Runner Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.runner.Name)}}function Ope(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.runnerDetails)}}function Lpe(t,i){if(1&t&&(x(0,"p-accordionTab",10)(1,"div",11),le(2,"app-google-doughnut",12),A(),le(3,"app-business-flow-table",13),A()),2&t){const e=f();d("selected",!0),h(2),d("executionData",e.runnerData),h(1),d("businessFlows",e.businessFlows)("tableExpenderType",e.tableExpenderType)}}function Ppe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.gingerRunnerAgentMappingCols)("data",e.agentMappings)}}let Fpe=(()=>{class t{constructor(e,n,o,s,r){this.route=e,this.calculatedDataService=n,this._userDataManagerService=o,this.communicatorService=s,this.datePipe=r,this.runnerData=[],this.tableExpenderType=Er.BusinessFlowsActivities,this.gingerRunnerGeneralDetailsData=[],this.agentMappings=[]}ngOnInit(){this.getRunner(),this.businessFlows=this.runner.BusinessFlowsColl;let e=this.calculatedDataService.getRunnerBusinessFlowsExecutionStatusArray(this.runner);this.calculatedDataService.populateChartsData(this.runnerData,e),this.getAgentMapping(),this.gingerRunnerAgentMappingCols=[{field:"TargetApplication",header:"Target Application"},{field:"AgentName",header:"Agents Mapping"}],this.runnerDetails=[{field:"Business Flow Execution Sequence",value:this.runner.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.runner.StartTimeStamp,"short")},{field:"Ginger Runner Name",value:this.runner.Name},{field:"Execution End Time",value:this.datePipe.transform(this.runner.EndTimeStamp,"short")},{field:"Runner Description",value:this.runner.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.runner.Elapsed)},{field:"Ginger Runner Environment Name",value:this.runner.Environment},{field:"Execution Status",value:this.runner.RunStatus},{field:"Number Of Business Flows",value:this.runner.BusinessFlowsColl.length},{field:"Business Flows Execution Rate",value:this.runner.ExecutionRate+"%"},{field:"Business Flows Pass Rate",value:this.runner.PassRate+"%"}]}getAgentMapping(){for(let n of this.runner.ApplicationAgentsMappingList){var e=n.split("_:_");let o=new kK;o.AgentName=e[0],o.TargetApplication=e[1],this.agentMappings.push(o)}}getRunner(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner");this.runner=e.RunnersColl.filter(o=>o.Seq==n)[0]}getStatus(e=!0){if(null!=this.runner&&null!=this.runner.RunStatus)return this.calculatedDataService.getStatusClass(this.runner.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(qs),V(Co),V(Ws),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-runner-report"]],inputs:{runner:"runner"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected",4,"ngIf"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-play-circle-o"],[2,"font-weight","bold"],["header","GINGER RUNNER GENERAL DETAILS",3,"selected"],[3,"data"],["header","GINGER RUNNER BUSINESS FLOWS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],["id","chart_div","align","center"],[3,"executionData"],[3,"businessFlows","tableExpenderType"],["header","TARGET APPLICATION - AGENTS MAPPING","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,Mpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Ope,2,2,"p-accordionTab",2),g(3,Lpe,4,4,"p-accordionTab",3),g(4,Ppe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.runner),h(1),d("multiple",!0),h(1),d("ngIf",o.runnerDetails.length>0),h(1),d("ngIf",o.runnerData.length>0||o.businessFlows.length>0),h(1),d("ngIf",o.agentMappings.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Dpe,kpe]})}return t})();const Rpe=function(){return["NumberOfActions"]};function Npe(t,i){if(1&t&&le(0,"app-table",1),2&t){const e=f();d("cols",e.outputValidationCols)("data",e.outputValidations)("addExpender",e.addExpender)("tableExpenderType",e.tableExpenderType)("statusFieldName","RunStatus")("boldAndCenterFields",Jt(6,Rpe))}}let Vpe=(()=>{class t{constructor(){}ngOnInit(){this.outputValidationCols=[{field:"Seq",header:"Execution Sequence"},{field:"ActivityGroupName",header:"Activity Group"},{field:"ActivityName",header:"Activity Name"},{field:"ActionName",header:"Action"},{field:"StartTimeStamp",header:"Start Time"},{field:"EndTimeStamp",header:"End Time"},{field:"Elapsed",header:"Duration"},{field:"RunStatus",header:"Status"}]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=Oe({type:t,selectors:[["output-validation"]],inputs:{outputValidations:"outputValidations",tableExpenderType:"tableExpenderType",addExpender:"addExpender"},decls:1,vars:1,consts:[[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields",4,"ngIf"],[3,"cols","data","addExpender","tableExpenderType","statusFieldName","boldAndCenterFields"]],template:function(n,o){1&n&&g(0,Npe,1,7,"app-table",0),2&n&&d("ngIf",o.outputValidations.length>0)},dependencies:[gt,Is]})}return t})();function Bpe(t,i){if(1&t&&(x(0,"h4",9),le(1,"span",10),Le(2," Business Flow Report: "),x(3,"span",11),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.businessFlow.Name)}}function Hpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-general-details",13),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.businessFlowDetails)}}function zpe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-activities-table",15),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)("tableExpenderType",e.tableExpenderType)("addExpender",!0)}}function jpe(t,i){if(1&t&&(x(0,"p-accordionTab",16),le(1,"app-table",17),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}function Upe(t,i){if(1&t&&(x(0,"p-accordionTab",18),le(1,"output-validation",19),A()),2&t){const e=f();d("selected",!0),h(1),d("outputValidations",e.outputValidations)("tableExpenderType",e.outputValidationtableExpenderType)("addExpender",!0)}}function $pe(t,i){1&t&&(x(0,"div",20),le(1,"div",21),A())}const Kpe=function(t,i){return{hideDiv:t,showDiv:i,"accordion-header":!0}};let Gpe=(()=>{class t{constructor(e,n,o,s,r,a,l,c){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.restServiceObj=s,this.globalVarService=r,this.communicatorService=a,this.reportHelperService=l,this.calculatedDataService=c,this.showScreenshotPanel=!0,this.EntityType="businessflow",this.actions=[],this.outputValidations=new Array,this.tableExpenderType=Er.ActivitiesActions,this.outputValidationtableExpenderType=Er.OutputValidation}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}setScreenshotVisiblity(e){this.showScreenshotPanel=e}paramChanged(){let e;this.getBusinessFlow(),this.totalactivitiesCount=0,this.actions=[],this.outputValidations=[],this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"},{field:"ActivityGroupName",link:"ag/ag/",param:"ActivityGroupName"}],null!=this.businessFlow.ExternalID&&""!=this.businessFlow.ExternalID&&(e=this.businessFlow.ExternalID),null!=this.businessFlow.ExternalID2&&""!=this.businessFlow.ExternalID&&(e=null!=e?e+" / "+this.businessFlow.ExternalID2:this.businessFlow.ExternalID2),this.businessFlowDetails=[],this.businessFlowDetails=[{field:"Execution Sequence",value:this.businessFlow.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.businessFlow.StartTimeStamp,"short")},{field:"Business Flow Name",value:this.businessFlow.Name},{field:"Execution End Time",value:this.datePipe.transform(this.businessFlow.EndTimeStamp,"short")},{field:"Business Flow Description",value:this.businessFlow.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.businessFlow.Elapsed)},{field:"Business Flow Run Description",value:this.businessFlow.RunDescription},{field:"Execution Status",value:this.businessFlow.RunStatus},{field:"Environment Name",value:this.businessFlow.Environment},{field:"Business Flow Activities Pass Rate",value:this.businessFlow.PassRate+"%"},{field:"Business Flow Activities Execution Rate",value:this.businessFlow.ExecutionRate+"%"}],null!=e&&this.businessFlowDetails.push({field:"Mapped ALM Entity ID",value:e}),null==this.businessFlow.ActivitiesColl||0==this.businessFlow.ActivitiesColl.length?(this.CollectBfActivitiesData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.totalactivitiesCount})):(this.InitActivitieData(),this.businessFlowDetails.push({field:"Number Of Activities",value:this.businessFlow.ActivitiesColl.length})),this.communicatorService.onBfActivitiesDataChange.subscribe(n=>{"Last Loading Data"===n&&(this.AddBusinessFlowToRunsetJson(),this.InitActivitieData(),this.hideRepoLoader=!1)}),this.variablesData=this.getVariables()}orderActivites(){this.businessFlow.ActivitiesColl=this.businessFlow.ActivitiesColl.sort((e,n)=>e.Seq-n.Seq)}AddBusinessFlowToRunsetJson(){this.orderActivites(),this.RunsetJson.RunnersColl.forEach(e=>{e.BusinessFlowsColl.forEach(n=>{n.GUID==this.businessFlow.GUID&&(n.ActivitiesColl=this.businessFlow.ActivitiesColl)})}),this._userDataManagerService.setItemCache(this.RunsetJson)}InitActivitieData(){this.count=1;for(const n of this.businessFlow.ActivitiesColl)n.NumberOfActions=n.ActionsColl.length,n.ActionsColl.forEach(o=>{this.globalVarService.isServerLoading?this.getActionFromServer(o.GUID,n):this.getOutputValidations(o,n)});this.activities=this.businessFlow.ActivitiesColl;const e=this.reportHelperService.GetMenuFromRunSet(this.RunsetJson,this.RunsetJson.ExecutionId);this.communicatorService.newMessage(e),e.forEach(n=>{n.items.forEach(o=>{o.items.forEach(s=>{s.id==this.businessFlow.GUID&&(o.expanded=!0,s.expanded=!0)})})})}CollectBfActivitiesData(){this.hideRepoLoader=!0;let e=0;this.businessFlow.ActivitiesGroupsColl.forEach(o=>{this.totalactivitiesCount=this.totalactivitiesCount+o.ExecutedActivitiesGUID.length});const n=this.globalVarService.totalRecPerActivityPull;this.businessFlow.NumberOfActivities=0,this.businessFlow.ActivitiesGroupsColl.forEach(o=>{let s=0;this.businessFlow.ActivitiesColl=[];const r={};r.ExecutionId=this.RunsetJson.ExecutionId,r.ParentId=o.GUID,r.From=s*n,r.Take=n,r.IsLoadActions=!0,this.restServiceObj.GetActivitiesByParent(r).subscribe(a=>{s++;const l=JSON.parse(a.response),c=l.TotalRec;for(this.businessFlow.NumberOfActivities+=c,this.businessFlow.ActivitiesColl.push(...l.ResponseColl),e+=l.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data");s*n{if(p.isSuccsess){const m=JSON.parse(p.response);this.businessFlow.ActivitiesColl.push(...m.ResponseColl),e+=m.ResponseColl.length,this.checkIfLastRun(e)&&this.communicatorService.bfActivitiesChange("Last Loading Data")}})}})})}checkIfLastRun(e){return e===this.totalactivitiesCount}getActionFromServer(e,n){this.restServiceObj.GetActionById(e).subscribe(s=>{const r=JSON.parse(s.response);this.getOutputValidations(r,n)})}getOutputValidations(e,n){if((e.RunStatus==Lt.Passed||e.RunStatus==Lt.Failed||e.RunStatus==Lt.FailIgnored)&&e.OutputValues&&e.OutputValues.length>0&&e.OutputValues.some(s=>!s.endsWith("NA"))){var o=new LK;o.Seq=this.count++,o.ActionName=e.Name,o.ActivityGroupName=n.ActivityGroupName,o.ActivityName=n.Name,o.StartTimeStamp=e.StartTimeStamp,o.EndTimeStamp=e.EndTimeStamp,o.Elapsed=e.Elapsed,o.RunStatus=e.RunStatus,o.OutputValues=e.OutputValues.filter(s=>!s.endsWith("NA")),this.outputValidations.push(o)}}getActivityGroupName(e){for(const n of this.businessFlow.ActivitiesGroupsColl)if(n.ExecutedActivitiesGUID.filter(s=>s==e))return n.Name}getBusinessFlow(){const e=+this.route.snapshot.paramMap.get("Runner"),n=+this.route.snapshot.paramMap.get("BusinessFlow");this.RunsetJson=this._userDataManagerService.getItemCache();const o=this.RunsetJson.RunnersColl.filter(s=>s.Seq==e)[0];this.businessFlow=o.BusinessFlowsColl.filter(s=>s.Seq==n)[0]}getVariables(){let e=[];if(this.businessFlow.VariablesBeforeExec)for(var n=0;n0&&(s.EndValue=this.businessFlow.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getStatus(e=!0){if(null!=this.businessFlow&&null!=this.businessFlow.RunStatus)return this.calculatedDataService.getStatusClass(this.businessFlow.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ha),V(ms),V(Ws),V(WD),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-business-flow"]],inputs:{businessFlow:"businessFlow"},decls:9,vars:15,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","BUSINESS FLOW ACTIONS SCREENSHOTS",3,"selected","ngClass"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected",4,"ngIf"],["class","col-12 lg:col-12 md:col-12","style","position:absolute;left:50%;top:50%",4,"ngIf"],[1,"entityName"],[1,"fa","fa-sitemap"],[2,"font-weight","bold"],["header","BUSINESS FLOW GENERAL DETAILS",3,"selected"],[3,"data"],["header","BUSINESS FLOW ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr","tableExpenderType","addExpender"],["header","BUSINESS FLOW VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","OUTPUT VALIDATIONS","ngClass","accordion-header",3,"selected"],[3,"outputValidations","tableExpenderType","addExpender"],[1,"col-12","lg:col-12","md:col-12",2,"position","absolute","left","50%","top","50%"],[1,"dot-falling"]],template:function(n,o){1&n&&(g(0,Bpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Hpe,2,2,"p-accordionTab",2),g(3,zpe,2,5,"p-accordionTab",3),x(4,"p-accordionTab",4)(5,"screenshot-carousel",5),me("isScreenshotVisibleEvent",function(r){return o.setScreenshotVisiblity(r)}),A()(),g(6,jpe,2,3,"p-accordionTab",6),g(7,Upe,2,4,"p-accordionTab",7),A(),g(8,$pe,2,0,"div",8)),2&n&&(d("ngIf",o.businessFlow),h(1),d("multiple",!0),h(1),d("ngIf",o.businessFlowDetails.length>0),h(1),d("ngIf",null!=o.activities&&o.activities.length>0),h(1),d("selected",!0)("ngClass",mt(12,Kpe,!1===o.showScreenshotPanel,!0===o.showScreenshotPanel)),h(1),d("EntityType",o.EntityType)("_height",1e3)("_thumbnails",!0),h(1),d("ngIf",o.variablesData.length>0),h(1),d("ngIf",o.outputValidations.length>0),h(1),d("ngIf",o.hideRepoLoader))},dependencies:[Ct,gt,ga,fa,Ul,Is,EC,Vpe,SC]})}return t})();function qpe(t,i){if(1&t&&(x(0,"h4",5),le(1,"span",6),Le(2," Activity Report: "),x(3,"span",7),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.activity.Name)}}function Wpe(t,i){if(1&t&&(x(0,"p-accordionTab",8),le(1,"app-general-details",9),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityDetails)}}function Qpe(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-actions-table",11),A()),2&t){const e=f();d("selected",!0),h(1),d("actions",e.actions)("fieldsLinksArr",e.fieldsLinksArr)("addExpender",!1)}}function Zpe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.variablesCols)("data",e.variablesData)}}let Ype=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a}runAsyncLogic(e){var n=this;return Fu(function*(){const o=yield n.getActivityDataFromServer(e),s=JSON.parse(o.response);n.activity.VariablesAfterExec=s.VariablesAfterExec,n.activity.VariablesBeforeExec=s.VariablesBeforeExec,n.variablesData=n.getVariables()})()}getActivityDataFromServer(e){var n=this;return Fu(function*(){return yield n.restServiceObj.GetActivityById(e)})()}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.variablesCols=[{field:"Name",header:"Name"},{field:"Description",header:"Description"},{field:"StartValue",header:"Value on Execution Start"},{field:"EndValue",header:"Value on Execution End"}]}paramChanged(){let e;this.getActivity(),null!=this.activity.ExternalID&&""!=this.activity.ExternalID&&(e=this.activity.ExternalID),null!=this.activity.ExternalID2&&""!=this.activity.ExternalID&&(e=null!=e?e+" / "+this.activity.ExternalID2:this.activity.ExternalID2),this.actions=this.activity.ActionsColl,this.variablesData=this.getVariables(),this.activityDetails=[{field:"Execution Sequence",value:this.activity.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.activity.StartTimeStamp,"short")},{field:"Activity Group Name",value:this.activity.ActivityGroupName},{field:"Execution End Time",value:this.datePipe.transform(this.activity.EndTimeStamp,"short")},{field:"Description",value:this.activity.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activity.Elapsed)},{field:"Activity Name",value:this.activity.Name},{field:"Execution Status",value:this.activity.RunStatus},{field:"Actions Pass Rate",value:this.activity.PassRate+"%"},{field:"Actions Execution Rate",value:this.activity.ExecutionRate+"%"},{field:"Number Of Actions",value:this.activity.ActionsColl.length}],null!=e&&this.activityDetails.push({field:"Mapped ALM Entity ID",value:e}),this.fieldsLinksArr=[{field:"Name",link:"",param:"Seq"}]}getVariables(){let e=[];if(this.activity.VariablesBeforeExec&&this.activity.VariablesBeforeExec.length>0)for(var n=0;n0&&(s.EndValue=this.activity.VariablesAfterExec[n].split("_:_")[1]),e.push(s)}return e}getActivity(){var e=this;return Fu(function*(){const n=+e.route.snapshot.paramMap.get("Runner"),o=+e.route.snapshot.paramMap.get("BusinessFlow"),s=+e.route.snapshot.paramMap.get("Activity"),l=e._userDataManagerService.getItemCache().RunnersColl.filter(c=>c.Seq==n)[0].BusinessFlowsColl.filter(c=>c.Seq==o)[0];e.activity=l.ActivitiesColl.filter(c=>c.Seq==s)[0],e.globalVarService.isServerLoading&&(yield e.runAsyncLogic(e.activity.GUID))})()}getStatus(e=!0){if(null!=this.activity&&null!=this.activity.RunStatus)return this.calculatedDataService.getStatusClass(this.activity.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-report"]],inputs:{activity:"activity"},decls:5,vars:5,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTIVITY GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bars"],[2,"font-weight","bold"],["header","ACTIVITY GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITY ACTIONS EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"actions","fieldsLinksArr","addExpender"],["header","ACTIVITY VARIABLES DETAILS","ngClass","accordion-header",3,"selected"],[3,"cols","data"]],template:function(n,o){1&n&&(g(0,qpe,5,4,"h4",0),x(1,"p-accordion",1),g(2,Wpe,2,2,"p-accordionTab",2),g(3,Qpe,2,4,"p-accordionTab",3),g(4,Zpe,2,3,"p-accordionTab",4),A()),2&n&&(d("ngIf",o.activity),h(1),d("multiple",!0),h(1),d("ngIf",o.activityDetails.length>0),h(1),d("ngIf",o.actions.length>0),h(1),d("ngIf",o.variablesData.length>0))},dependencies:[Ct,gt,ga,fa,Ul,Is,Ok]})}return t})();function Xpe(t,i){if(1&t){const e=De();we(0),x(1,"div",2,3),me("contextmenu",function(o){const r=G(e).$implicit;return q(f().onContextMenu(o,r.Value,r.Key))})("dblclick",function(){const s=G(e).$implicit;return q(f().DownLoad(s.Value,s.Key))}),le(3,"span",4),x(4,"p",5),Le(5),A()(),le(6,"p-contextMenu",6),Te()}if(2&t){const e=i.$implicit,n=Bt(2),o=f();h(3),d("innerHtml",o.getIcon(e.Value),hr),h(2),dt(e.Key),h(1),d("target",n)("model",o.contextMenuItems)}}let Jpe=(()=>{class t{constructor(e,n,o){this.globalVarService=e,this.activeRoute=o;var s=localStorage.getItem("executionId");this.globalVarService.artifactPath=s?"artifacts/":null}ngOnInit(){}onContextMenu(e,n,o){this.contextMenuItems=[],this.contextMenuItems.push({label:"Download",icon:"fas fa-external-link-alt",command:()=>this.DownLoad(n,o)})}ViewContent(){}getIcon(e){const o=e.split(".").pop();return oC[o]===oC.json?"":""}DownLoad(e,n){let o=document.createElement("a");o.setAttribute("type","hidden"),o.href=null!=this.globalVarService.artifactPath?this.globalVarService.artifactPath+e:e;var s=e.replace(/^.*[\\/]/,"");o.download=s,o.target="_blank",document.body.appendChild(o),o.click(),o.remove()}static#e=this.\u0275fac=function(n){return new(n||t)(V(ms),V("environmentObj"),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["artifacts"]],inputs:{action:"action"},decls:2,vars:1,consts:[[1,"grid"],[4,"ngFor","ngForOf"],[1,"col-12","md:col-3","xl:col-2",3,"contextmenu","dblclick"],["art",""],[1,"fileicon",3,"innerHtml"],[1,"text-900","text-lg","font-medium","hideTxt",2,"padding-top","10px"],[3,"target","model"]],template:function(n,o){1&n&&(x(0,"div",0),g(1,Xpe,7,4,"ng-container",1),A()),2&n&&(h(1),d("ngForOf",o.action.Artifacts))},dependencies:[Jn,tO],styles:[".hideTxt[_ngcontent-%COMP%]{display:inline-block;width:220px;white-space:pre-line;overflow:hidden!important;text-overflow:ellipsis;line-height:1rem} .fileicon img{font-size:3rem;width:60px} .fileicon i{font-size:6rem}"]})}return t})();function ehe(t,i){if(1&t&&(x(0,"h4",7),le(1,"span",8),Le(2," Action Report: "),x(3,"span",9),Le(4),A()()),2&t){const e=f();h(3),Ve(e.getStatus(!1)),h(1),dt(e.action.Name)}}function the(t,i){if(1&t&&(x(0,"p-accordionTab",10),le(1,"app-general-details",11),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.actionDetails)}}function nhe(t,i){if(1&t&&(x(0,"p-accordionTab",12),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.inputValuesCols)("data",e.inputValuesData)}}function ihe(t,i){if(1&t&&(x(0,"p-accordionTab",14),le(1,"app-table",13),A()),2&t){const e=f();d("selected",!0),h(1),d("cols",e.outputValuesCols)("data",e.outputValuesData)}}function ohe(t,i){if(1&t&&(x(0,"p-accordionTab",15),le(1,"artifacts",16),A()),2&t){const e=f();d("selected",!0),h(1),d("action",e.action)}}function she(t,i){if(1&t){const e=De();x(0,"p-accordionTab",17)(1,"screenshot-carousel",18),me("isScreenshotVisibleEvent",function(o){return G(e),q(f().setScreenshotVisiblity(o))}),A()()}if(2&t){const e=f();d("selected",!0),h(1),d("EntityType",e.EntityType)("_height",1e3)("_thumbnails",!0)}}let rhe=(()=>{class t{constructor(e,n,o,s,r,a){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.globalVarService=s,this.restServiceObj=r,this.calculatedDataService=a,this.EntityType="action",this.showScreenshotPanel=!0}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()}),this.inputValuesCols=[{field:"Name",header:"Name"},{field:"Value",header:"Value"},{field:"CalculatedValue",header:"Calculated Value"}],this.outputValuesCols=[{field:"ParameterName",header:"Parameter Name"},{field:"ActualValue",header:"Actual Value"},{field:"ExpectedValue",header:"Expected Value"},{field:"Status",header:"Status"}]}paramChanged(){this.getAction(),this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues(),this.actionDetails=[{field:"Execution Sequence",value:this.action.Seq},{field:"Execution Start Time",value:this.datePipe.transform(this.action.StartTimeStamp,"short")},{field:"Action Name",value:this.action.Name},{field:"Execution End Time",value:this.datePipe.transform(this.action.EndTimeStamp,"short")},{field:"Description",value:this.action.Description},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.action.Elapsed)},{field:"Run Description",value:this.action.RunDescription},{field:"Execution Status",value:this.action.RunStatus},{field:"Action Type",value:this.action.ActionType},{field:"Current Retry Iteration",value:this.action.CurrentRetryIteration},{field:"Error Details",value:this.action.Error},{field:"Additional information",value:this.action.ExInfo},{field:"Screenshots",value:this.action.ScreenShots.length}]}getInputValues(){let e=[];for(let n of this.action.InputValues){let o=n.split("_:_"),s=new OK;s.Name=o[0],s.Value=this._userDataManagerService.replaceUnicodeChar(o[1]),s.CalculatedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),e.push(s)}return e}getOutputValues(){let e=[];for(let n of this.action.OutputValues){let o=n.split("_:_"),s=new $D;s.ParameterName=o[0],s.ActualValue=this._userDataManagerService.replaceUnicodeChar(o[1]),s.ExpectedValue=this._userDataManagerService.replaceUnicodeChar(o[2]),s.Status=o[3],e.push(s)}return e}setScreenshotVisiblity(e){this.showScreenshotPanel=e}getAction(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow"),s=+this.route.snapshot.paramMap.get("Activity"),r=+this.route.snapshot.paramMap.get("Action");let c=e.RunnersColl.filter(u=>u.Seq==n)[0].BusinessFlowsColl.filter(u=>u.Seq==o)[0].ActivitiesColl.filter(u=>u.Seq==s)[0];this.action=c.ActionsColl.filter(u=>u.Seq==r)[0],this.globalVarService.isServerLoading&&this.getActionFromServer(this.action.GUID)}getActionFromServer(e){this.restServiceObj.GetActionById(e).subscribe(n=>{const o=JSON.parse(n.response);this.action.InputValues=o.InputValues,this.action.OutputValues=o.OutputValues,this.action.FlowControls=o.FlowControls,this.action.Artifacts=o.Artifacts,this.inputValuesData=this.getInputValues(),this.outputValuesData=this.getOutputValues()})}getStatus(e=!0){if(null!=this.action&&null!=this.action.RunStatus)return this.calculatedDataService.getStatusClass(this.action.RunStatus.toString(),e)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs),V(ms),V(ha),V(qs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-action-report"]],inputs:{action:"action"},decls:7,vars:7,consts:[["class","entityName",4,"ngIf"],[3,"multiple"],["header","ACTION GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected",4,"ngIf"],[1,"entityName"],[1,"fa","fa-bolt"],[2,"font-weight","bold"],["header","ACTION GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTION INPUT VALUES","ngClass","accordion-header",3,"selected"],[3,"cols","data"],["header","ACTION OUTPUT VALUES","ngClass","accordion-header",3,"selected"],["header","ARTIFACTS","ngClass","accordion-header",3,"selected"],[3,"action"],["header","ACTION SCREENSHOTS","ngClass","accordion-header",3,"selected"],[3,"EntityType","_height","_thumbnails","isScreenshotVisibleEvent"]],template:function(n,o){1&n&&(g(0,ehe,5,4,"h4",0),x(1,"p-accordion",1),g(2,the,2,2,"p-accordionTab",2),g(3,nhe,2,3,"p-accordionTab",3),g(4,ihe,2,3,"p-accordionTab",4),g(5,ohe,2,2,"p-accordionTab",5),g(6,she,2,4,"p-accordionTab",6),A()),2&n&&(d("ngIf",o.action),h(1),d("multiple",!0),h(1),d("ngIf",o.actionDetails.length>0),h(1),d("ngIf",!!o.action.InputValues&&o.action.InputValues.length),h(1),d("ngIf",!!o.action.OutputValues&&o.action.OutputValues.length),h(1),d("ngIf",!!o.action.Artifacts&&o.action.Artifacts.length),h(1),d("ngIf",!!o.action.ScreenShots&&o.action.ScreenShots.length))},dependencies:[Ct,gt,ga,fa,Ul,Is,SC,Jpe]})}return t})();function ahe(t,i){if(1&t&&(x(0,"p-accordionTab",4),le(1,"app-general-details",5),A()),2&t){const e=f();d("selected",!0),h(1),d("data",e.activityGroupDetails)}}function lhe(t,i){if(1&t&&(x(0,"p-accordionTab",6),le(1,"app-activities-table",7),A()),2&t){const e=f();d("selected",!0),h(1),d("activities",e.activities)("fieldsLinksArr",e.fieldsLinksArr)}}const dhe=qn.forRoot([{path:"",component:Mk},{path:"BusinessFlow/:ExecutionId/:BusinessFlowId",component:Mk},{path:":Runner",component:Fpe},{path:":Runner/:BusinessFlow",component:Gpe},{path:":Runner/:BusinessFlow/ag/ag/:ActivityGroupName",component:(()=>{class t{constructor(e,n,o){this.route=e,this._userDataManagerService=n,this.datePipe=o,this.activities=[]}ngOnInit(){this.route.params.subscribe(e=>{this.paramChanged()})}paramChanged(){let e;this.getActivityGroupByName(),null!=this.activityGroup.ExternalID&&""!=this.activityGroup.ExternalID&&(e=this.activityGroup.ExternalID),null!=this.activityGroup.ExternalID2&&""!=this.activityGroup.ExternalID&&(e=null!=e?e+" / "+this.activityGroup.ExternalID2:this.activityGroup.ExternalID2),this.activityGroupDetails=[{field:"Activity Group Name",value:this.activityGroup.Name},{field:"Execution Start Time",value:this.datePipe.transform(this.activityGroup.StartTimeStamp,"short")},{field:"Description",value:this.activityGroup.Description},{field:"Execution End Time",value:this.datePipe.transform(this.activityGroup.EndTimeStamp,"short")},{field:"Automation Percentage",value:this.activityGroup.AutomationPercentage},{field:"Execution Duration",value:this._userDataManagerService.msToTime(this.activityGroup.Elapsed)},{field:"Execution Status",value:this.activityGroup.RunStatus}],null!=e&&this.activityGroupDetails.push({field:"Mapped ALM Entity ID",value:e});for(let n of this.businessFlow.ActivitiesGroupsColl)if(n.Name==this.activityGroupName)for(let o of this.businessFlow.ActivitiesColl)n.ExecutedActivitiesGUID.includes(o.GUID)&&(o.ActivityGroupName=n.Name,o.NumberOfActions=o.ActionsColl.length,this.activities.push(o));this.fieldsLinksArr=[{field:"Name",link:"../../../",param:"Seq"}]}getActivityGroupByName(){let e=this._userDataManagerService.getItemCache();const n=+this.route.snapshot.paramMap.get("Runner"),o=+this.route.snapshot.paramMap.get("BusinessFlow");this.activityGroupName=this.route.snapshot.paramMap.get("ActivityGroupName");let s=e.RunnersColl.filter(r=>r.Seq==n)[0];this.businessFlow=s.BusinessFlowsColl.filter(r=>r.Seq==o)[0],this.activityGroup=this.businessFlow.ActivitiesGroupsColl.filter(r=>r.Name==this.activityGroupName)[0]}static#e=this.\u0275fac=function(n){return new(n||t)(V(Di),V(Co),V(Hs))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-activity-group-report"]],decls:6,vars:3,consts:[[1,"fa","fa-fw","fa-exclamation-circle"],[3,"multiple"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected",4,"ngIf"],["header","ACTIVITIES GROUP GENERAL DETAILS",3,"selected"],[3,"data"],["header","ACTIVITIES GROUP'S ACTIVITIES EXECUTION DETAILS","ngClass","accordion-header",3,"selected"],[3,"activities","fieldsLinksArr"]],template:function(n,o){1&n&&(x(0,"h4"),le(1,"span",0),Le(2," Activity Group Report"),A(),x(3,"p-accordion",1),g(4,ahe,2,2,"p-accordionTab",2),g(5,lhe,2,3,"p-accordionTab",3),A()),2&n&&(h(3),d("multiple",!0),h(1),d("ngIf",o.activityGroupDetails.length>0),h(1),d("ngIf",o.activities.length>0))},dependencies:[Ct,gt,ga,fa,Ul,EC]})}return t})()},{path:":Runner/:BusinessFlow/:Activity",component:Ype},{path:":Runner/:BusinessFlow/:Activity/:Action",component:rhe}],{scrollPositionRestoration:"enabled"});let ir=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const phe=["container"],hhe=["focusInput"],fhe=["multiIn"],ghe=["multiContainer"],mhe=["ddBtn"],_he=["items"],Ihe=["scroller"],Che=["overlay"];function vhe(t,i){if(1&t){const e=De();x(0,"input",12,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()}if(2&t){const e=f();Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("type",e.type)("autocomplete",e.autocomplete)("required",e.required)("name",e.name)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("value",e.inputValue())("id",e.inputId)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function bhe(t,i){if(1&t){const e=De();x(0,"TimesIcon",16),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-autocomplete-clear-icon"),K("aria-hidden",!0))}function yhe(t,i){}function xhe(t,i){1&t&&g(0,yhe,0,0,"ng-template")}function Ahe(t,i){if(1&t){const e=De();x(0,"span",17),me("click",function(){return G(e),q(f(2).clear())}),g(1,xhe,1,0,null,9),A()}if(2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function whe(t,i){if(1&t&&(we(0),g(1,bhe,1,2,"TimesIcon",14),g(2,Ahe,2,2,"span",15),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function The(t,i){1&t&&ze(0)}function She(t,i){if(1&t&&(x(0,"span",30),Le(1),A()),2&t){const e=f().$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function Ehe(t,i){1&t&&le(0,"TimesCircleIcon",31),2&t&&(d("styleClass","p-autocomplete-token-icon"),K("aria-hidden",!0))}function Dhe(t,i){}function khe(t,i){1&t&&g(0,Dhe,0,0,"ng-template")}function Mhe(t,i){if(1&t&&(x(0,"span",32),g(1,khe,1,0,null,9),A()),2&t){const e=f(3);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeIconTemplate)}}const Ohe=function(t){return{"p-autocomplete-token":!0,"p-focus":t}},Iv=function(t){return{$implicit:t}};function Lhe(t,i){if(1&t){const e=De();x(0,"li",23,24),g(2,The,1,0,"ng-container",25),g(3,She,2,1,"span",26),x(4,"span",27),me("click",function(o){const r=G(e).index;return q(f(2).removeOption(o,r))}),g(5,Ehe,1,2,"TimesCircleIcon",28),g(6,Mhe,2,2,"span",29),A()()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",He(11,Ohe,o.focusedMultipleOptionIndex()===n)),K("id",o.id+"_multiple_option_"+n)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",n+1)("aria-selected",!0),h(2),d("ngTemplateOutlet",o.selectedItemTemplate)("ngTemplateOutletContext",He(13,Iv,e)),h(1),d("ngIf",!o.selectedItemTemplate),h(2),d("ngIf",!o.removeIconTemplate),h(1),d("ngIf",o.removeIconTemplate)}}function Phe(t,i){if(1&t){const e=De();x(0,"ul",18,19),me("focus",function(o){return G(e),q(f().onMultipleContainerFocus(o))})("blur",function(o){return G(e),q(f().onMultipleContainerBlur(o))})("keydown",function(o){return G(e),q(f().onMultipleContainerKeyDown(o))}),g(2,Lhe,7,15,"li",20),x(3,"li",21)(4,"input",22,13),me("input",function(o){return G(e),q(f().onInput(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))})("change",function(o){return G(e),q(f().onInputChange(o))})("focus",function(o){return G(e),q(f().onInputFocus(o))})("blur",function(o){return G(e),q(f().onInputBlur(o))})("paste",function(o){return G(e),q(f().onInputPaste(o))})("keyup",function(o){return G(e),q(f().onInputKeyUp(o))}),A()()()}if(2&t){const e=f();Ve(e.multiContainerClass),d("tabindex",-1),K("aria-orientation","horizontal")("aria-activedescendant",e.focused?e.focusedMultipleOptionId:void 0),h(2),d("ngForOf",e.modelValue()),h(2),Ve(e.inputStyleClass),d("autofocus",e.autofocus)("ngClass",e.inputClass)("ngStyle",e.inputStyle)("autocomplete",e.autocomplete)("required",e.required)("maxlength",e.maxlength)("tabindex",e.disabled?-1:e.tabindex)("readonly",e.readonly)("disabled",e.disabled),K("type",e.type)("id",e.inputId)("name",e.name)("placeholder",e.placeholder)("size",e.size)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy)("aria-required",e.required)("aria-expanded",e.overlayVisible)("aria-controls",e.id+"_list")("aria-aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function Fhe(t,i){1&t&&le(0,"SpinnerIcon",35),2&t&&(d("styleClass","p-autocomplete-loader")("spin",!0),K("aria-hidden",!0))}function Rhe(t,i){}function Nhe(t,i){1&t&&g(0,Rhe,0,0,"ng-template")}function Vhe(t,i){if(1&t&&(x(0,"span",36),g(1,Nhe,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.loadingIconTemplate)}}function Bhe(t,i){if(1&t&&(we(0),g(1,Fhe,1,3,"SpinnerIcon",33),g(2,Vhe,2,2,"span",34),Te()),2&t){const e=f();h(1),d("ngIf",!e.loadingIconTemplate),h(1),d("ngIf",e.loadingIconTemplate)}}function Hhe(t,i){1&t&&le(0,"span",40),2&t&&(d("ngClass",f(2).dropdownIcon),K("aria-hidden",!0))}function zhe(t,i){1&t&&le(0,"ChevronDownIcon")}function jhe(t,i){}function Uhe(t,i){1&t&&g(0,jhe,0,0,"ng-template")}function $he(t,i){if(1&t&&(we(0),g(1,zhe,1,0,"ChevronDownIcon",3),g(2,Uhe,1,0,null,9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.dropdownIconTemplate),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function Khe(t,i){if(1&t){const e=De();x(0,"button",37,38),me("click",function(o){return G(e),q(f().handleDropdownClick(o))}),g(2,Hhe,1,2,"span",39),g(3,$he,3,2,"ng-container",3),A()}if(2&t){const e=f();d("disabled",e.disabled),K("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),h(2),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Ghe(t,i){1&t&&ze(0)}function qhe(t,i){1&t&&ze(0)}const iO=function(t,i){return{$implicit:t,options:i}};function Whe(t,i){if(1&t&&g(0,qhe,1,0,"ng-container",25),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(14))("ngTemplateOutletContext",mt(2,iO,e,n))}}function Qhe(t,i){1&t&&ze(0)}const Zhe=function(t){return{options:t}};function Yhe(t,i){if(1&t&&g(0,Qhe,1,0,"ng-container",25),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,Zhe,e))}}function Xhe(t,i){1&t&&(we(0),g(1,Yhe,1,4,"ng-template",44),Te())}const tg=function(t){return{height:t}};function Jhe(t,i){if(1&t){const e=De();x(0,"p-scroller",41,42),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,Whe,1,5,"ng-template",43),g(3,Xhe,2,0,"ng-container",3),A()}if(2&t){const e=f();yn(He(8,tg,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function efe(t,i){1&t&&ze(0)}const tfe=function(){return{}};function nfe(t,i){if(1&t&&(we(0),g(1,efe,1,0,"ng-container",25),Te()),2&t){const e=f(),n=Bt(14);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,iO,e.visibleOptions(),Jt(2,tfe)))}}function ife(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function ofe(t,i){1&t&&ze(0)}function sfe(t,i){if(1&t&&(we(0),x(1,"li",50),g(2,ife,2,1,"span",3),g(3,ofe,1,0,"ng-container",25),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,tg,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Iv,o.optionGroup))}}function rfe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function afe(t,i){1&t&&ze(0)}const lfe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}},cfe=function(t,i){return{$implicit:t,index:i}};function ufe(t,i){if(1&t){const e=De();we(0),x(1,"li",51),me("click",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionSelect(o,s))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),g(2,rfe,2,1,"span",3),g(3,afe,1,0,"ng-container",25),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,tg,s.itemSize+"px"))("ngClass",Rn(14,lfe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("data-p-focused",r.focusedOptionIndex()===r.getOptionIndex(o,s))("aria-setsize",r.ariaSetSize)("aria-posinset",r.getAriaPosInset(r.getOptionIndex(o,s))),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,cfe,n,s.getOptions?s.getOptions(o):o))}}function dfe(t,i){if(1&t&&(g(0,sfe,4,9,"ng-container",3),g(1,ufe,4,21,"ng-container",3)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function pfe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.searchResultMessageText," ")}}function hfe(t,i){1&t&&ze(0,null,54)}function ffe(t,i){if(1&t&&(x(0,"li",52),g(1,pfe,2,1,"ng-container",53),g(2,hfe,2,0,"ng-container",9),A()),2&t){const e=f().options,n=f();d("ngStyle",He(4,tg,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function gfe(t,i){1&t&&ze(0)}function mfe(t,i){if(1&t&&(x(0,"ul",45,46),g(2,dfe,2,2,"ng-template",47),g(3,ffe,3,6,"li",48),A(),g(4,gfe,1,0,"ng-container",25),x(5,"span",49),Le(6),A()),2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("ngClass",n.contentStyleClass),K("id",o.id+"_list"),h(2),d("ngForOf",e),h(1),d("ngIf",!e||e&&0===e.length&&o.showEmptyMessage),h(1),d("ngTemplateOutlet",o.footerTemplate)("ngTemplateOutletContext",He(9,Iv,e)),h(2),Pt(" ",o.selectedMessageText," ")}}const _fe={provide:un,useExisting:ft(()=>Ife),multi:!0};let Ife=(()=>{class t{document;el;renderer;cd;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;optionDisabled;focusOnHover;completeMethod=new ge;onSelect=new ge;onUnselect=new ge;onFocus=new ge;onBlur=new ge;onDropdownClick=new ge;onClear=new ge;onKeyUp=new ge;onShow=new ge;onHide=new ge;onLazyLoad=new ge;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions=bn(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;filled;loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=bn(null);focusedMultipleOptionIndex=bn(-1);focusedOptionIndex=bn(-1);visibleOptions=Ds(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=Ds(()=>{const e=this.modelValue();return this.filled=be.isNotEmpty(this.modelValue()),e?"object"==typeof e?this.getOptionLabel(e)??e:e:""});get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue()||be.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return"p-autocomplete-multiple-container p-component p-inputtext"}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return be.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}constructor(e,n,o,s,r,a,l){this.document=e,this.el=n,this.renderer=o,this.cd=s,this.config=r,this.overlayService=a,this.zone=l}ngOnInit(){this.id=this.id||$t()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"removetokenicon":this.removeIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}handleSuggestionsChange(){if(this.loading){this._suggestions()||this.emptyTemplate?this.show():this.hide();const e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){return be.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,n){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===n.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return this.multiple?e.target===this.multiContainerEL.nativeElement||this.multiContainerEL.nativeElement.contains(e.target):e.target===this.inputEL.nativeElement}isDropdownClicked(e){return!!this.dropdownButton?.nativeElement&&(e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target))}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&j.focus(this.inputEL.nativeElement)}handleDropdownClick(e){let n;this.overlayVisible?this.hide(!0):(j.focus(this.inputEL.nativeElement),n=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,n,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:n})}onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let n=e.target.value;this.multiple||this.updateModel(n),0!==n.length||this.multiple?n.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,n,"input")},this.delay)):this.hide():(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2))}onInputChange(e){if(this.forceSelection){let n=!1;if(this.visibleOptions()){const o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));void 0!==o&&(n=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}n||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}}onArrowDownKey(e){if(!this.overlayVisible)return;const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){const n=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(be.isEmpty(n.value)&&this.hasSelectedOption()?(j.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){const{currentTarget:n}=e;n.setSelectionRange(0,e.shiftKey?n.value.length:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){const{currentTarget:n}=e,o=n.value.length;n.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(be.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){const n=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:n})}e.stopPropagation()}}onArrowLeftKeyOnMultiple(e){const n=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(n)}onArrowRightKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex();n++,this.focusedMultipleOptionIndex.set(n),n>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),j.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,n,o=!0){const s=this.getOptionValue(n);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(n)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:n}),o&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}search(e,n,o){null!=n&&("input"===o&&0===n.trim().length||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:n})))}removeOption(e,n){const o=this.modelValue()[n],s=this.modelValue().filter((r,a)=>a!==n).map(r=>this.getOptionValue(r));this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),j.focus(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.value&&this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=this.multiple?"":this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions()[n],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.inputEL.nativeElement),e&&j.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){const n=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&j.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{n()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.filled=!(!this.value||!this.value.length),this.updateModel(e),this.cd.markForCheck()}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?be.resolveFieldData(e,this.field||this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState&&(this.itemsWrapper=j.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const n=this.modelValue()?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(hn),V(Ft),V(ki),V(Dr),V(Tt))};static \u0275cmp=Oe({type:t,selectors:[["p-autoComplete"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(phe,5),je(hhe,5),je(fhe,5),je(ghe,5),je(mhe,5),je(_he,5),je(Ihe,5),je(Che,5)),2&n){let s;Se(s=Ee())&&(o.containerEL=s.first),Se(s=Ee())&&(o.inputEL=s.first),Se(s=Ee())&&(o.multiInputEl=s.first),Se(s=Ee())&&(o.multiContainerEL=s.first),Se(s=Ee())&&(o.dropdownButton=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused&&!o.disabled||o.autofocus||o.overlayVisible)("p-autocomplete-clearable",o.showClear&&!o.disabled)},inputs:{minLength:"minLength",delay:"delay",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:"readonly",disabled:"disabled",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",maxlength:"maxlength",name:"name",required:"required",size:"size",appendTo:"appendTo",autoHighlight:"autoHighlight",forceSelection:"forceSelection",type:"type",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:"unique",group:"group",completeOnFocus:"completeOnFocus",showClear:"showClear",field:"field",dropdown:"dropdown",showEmptyMessage:"showEmptyMessage",dropdownMode:"dropdownMode",multiple:"multiple",tabindex:"tabindex",dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:"autofocus",autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",optionDisabled:"optionDisabled",focusOnHover:"focusOnHover"},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[yt([_fe])],decls:15,vars:24,consts:[[3,"ngClass","ngStyle","click"],["container",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["focusInput",""],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"tabindex","focus","blur","keydown"],["multiContainer",""],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"autofocus","ngClass","ngStyle","autocomplete","required","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup"],["role","option",3,"ngClass"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"disabled","click"],["ddBtn",""],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"ngStyle","ngClass","click","mouseenter"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"],["empty",""]],template:function(n,o){1&n&&(x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),g(2,vhe,2,23,"input",2),g(3,whe,3,2,"ng-container",3),g(4,Phe,6,28,"ul",4),g(5,Bhe,3,2,"ng-container",3),g(6,Khe,4,5,"button",5),x(7,"p-overlay",6,7),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),x(9,"div",8),g(10,Ghe,1,0,"ng-container",9),g(11,Jhe,4,10,"p-scroller",10),g(12,nfe,2,6,"ng-container",3),g(13,mfe,7,11,"ng-template",null,11,In),A()()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),h(2),d("ngIf",!o.multiple),h(1),d("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),h(1),d("ngIf",o.multiple),h(1),d("ngIf",o.loading),h(1),d("ngIf",o.dropdown),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions),h(2),Ve(o.panelStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight),d("ngClass",o.panelClass)("ngStyle",o.panelStyle),h(1),d("ngTemplateOutlet",o.headerTemplate),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,hf,oo,Bu,uC,ir,_s,mn,bi]},styles:["@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:-moz-fit-content;width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Cfe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Zs,Mi,Qe,dn,Oi,gf,ir,_s,mn,bi,$l,Qe,Oi,gf]})}return t})(),oO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["HomeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4175 6.79971C13.2874 6.80029 13.1608 6.75807 13.057 6.67955L12.4162 6.19913V12.6073C12.4141 12.7659 12.3502 12.9176 12.2379 13.0298C12.1257 13.142 11.9741 13.206 11.8154 13.208H8.61206C8.61179 13.208 8.61151 13.208 8.61123 13.2081C8.61095 13.208 8.61068 13.208 8.6104 13.208H5.41076C5.40952 13.208 5.40829 13.2081 5.40705 13.2081C5.40581 13.2081 5.40458 13.208 5.40334 13.208H2.20287C2.04418 13.206 1.89257 13.142 1.78035 13.0298C1.66813 12.9176 1.60416 12.7659 1.60209 12.6073V6.19914L0.961256 6.67955C0.833786 6.77515 0.673559 6.8162 0.515823 6.79367C0.358086 6.77114 0.215762 6.68686 0.120159 6.55939C0.0245566 6.43192 -0.0164931 6.2717 0.00604063 6.11396C0.0285744 5.95622 0.112846 5.8139 0.240316 5.7183L1.83796 4.52007L1.84689 4.51337L6.64868 0.912027C6.75267 0.834032 6.87915 0.79187 7.00915 0.79187C7.13914 0.79187 7.26562 0.834032 7.36962 0.912027L12.1719 4.51372L12.1799 4.51971L13.778 5.7183C13.8943 5.81278 13.9711 5.94732 13.9934 6.09553C14.0156 6.24373 13.9816 6.39489 13.8981 6.51934C13.8471 6.60184 13.7766 6.67054 13.6928 6.71942C13.609 6.76831 13.5144 6.79587 13.4175 6.79971ZM6.00783 12.0065H8.01045V7.60074H6.00783V12.0065ZM9.21201 12.0065V6.99995C9.20994 6.84126 9.14598 6.68965 9.03375 6.57743C8.92153 6.46521 8.76992 6.40124 8.61123 6.39917H5.40705C5.24836 6.40124 5.09675 6.46521 4.98453 6.57743C4.8723 6.68965 4.80834 6.84126 4.80627 6.99995V12.0065H2.80366V5.29836L7.00915 2.14564L11.2146 5.29836V12.0065H9.21201Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),sge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,Qi,oO,Qe,qn,Nn,Qe]})}return t})(),uge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),Lge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Qi,Mr,bi,ff,Xe,Qe]})}return t})();const Pge=["input"];function Fge(t,i){1&t&&le(0,"span",10),2&t&&(d("ngClass",f(3).checkboxIcon),K("data-pc-section","icon"))}function Rge(t,i){1&t&&le(0,"CheckIcon",11),2&t&&(d("styleClass","p-checkbox-icon"),K("data-pc-section","icon"))}function Nge(t,i){if(1&t&&(we(0),g(1,Fge,1,2,"span",8),g(2,Rge,1,2,"CheckIcon",9),Te()),2&t){const e=f(2);h(1),d("ngIf",e.checkboxIcon),h(1),d("ngIf",!e.checkboxIcon)}}function Vge(t,i){}function Bge(t,i){1&t&&g(0,Vge,0,0,"ng-template")}function Hge(t,i){if(1&t&&(x(0,"span",12),g(1,Bge,1,0,null,13),A()),2&t){const e=f(2);K("data-pc-section","icon"),h(1),d("ngTemplateOutlet",e.checkboxIconTemplate)}}function zge(t,i){if(1&t&&(we(0),g(1,Nge,3,2,"ng-container",5),g(2,Hge,2,2,"span",7),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkboxIconTemplate),h(1),d("ngIf",e.checkboxIconTemplate)}}const jge=function(t,i,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e}};function Uge(t,i){if(1&t){const e=De();x(0,"label",14),me("click",function(o){return G(e),q(f().onClick(o))}),Le(1),A()}if(2&t){const e=f();Ve(e.labelStyleClass),d("ngClass",Rn(6,jge,e.checked(),e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),Pt(" ",e.label,"")}}const $ge=function(t,i,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}},Kge=function(t,i,e){return{"p-highlight":t,"p-disabled":i,"p-focus":e}},Gge={provide:un,useExisting:ft(()=>qge),multi:!0};let qge=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;trueValue=!0;falseValue=!1;onChange=new ge;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()&&(this.checkboxIconTemplate=e.template)})}onClick(e){if(!this.disabled&&!this.readonly){let n;this.inputViewChild.nativeElement.focus(),this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(n=this.checked()?this.model.filter(o=>!be.equals(o,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:be.contains(this.value,this.model)}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-checkbox"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Pge,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([Gge])],decls:7,vars:35,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","checkbox",3,"value","checked","disabled","readonly","focus","blur"],["input",""],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"ngClass","click"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onClick(r)}),x(1,"div",1)(2,"input",2,3),me("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),A()(),x(4,"div",4),g(5,zge,3,2,"ng-container",5),A()(),g(6,Uge,2,10,"label",6)),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(27,$ge,o.checked(),o.disabled,o.focused)),K("data-pc-name","checkbox")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),h(1),d("value",o.value)("checked",o.checked())("disabled",o.disabled)("readonly",o.readonly),K("id",o.inputId)("name",o.name)("tabindex",o.tabindex)("required",o.required)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-checked",o.checked())("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(31,Kge,o.checked(),o.disabled,o.focused)),K("data-p-highlight",o.checked())("data-p-disabled",o.disabled)("data-p-focused",o.focused)("data-pc-section","input"),h(1),d("ngIf",o.checked()),h(1),d("ngIf",o.label))},dependencies:function(){return[Ct,gt,on,Ht,yi]},styles:["@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}\n"],encapsulation:2,changeDetection:0})}return t})(),Wge=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,Qe]})}return t})();const Qge=["inputtext"],Zge=["container"];function Yge(t,i){1&t&&ze(0)}function Xge(t,i){if(1&t&&(x(0,"span",12),Le(1),A()),2&t){const e=f().$implicit,n=f();K("data-pc-section","label"),h(1),dt(n.field?n.resolveFieldData(e,n.field):e)}}function Jge(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",15),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),A()}2&t&&(d("styleClass","p-chips-token-icon"),K("data-pc-section","removeTokenIcon")("aria-hidden",!0))}function eme(t,i){}function tme(t,i){1&t&&g(0,eme,0,0,"ng-template")}function nme(t,i){if(1&t){const e=De();x(0,"span",16),me("click",function(o){G(e);const s=f(2).index;return q(f().removeItem(o,s))}),g(1,tme,1,0,null,17),A()}if(2&t){const e=f(3);K("data-pc-section","removeTokenIcon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function ime(t,i){if(1&t&&(we(0),g(1,Jge,1,3,"TimesCircleIcon",13),g(2,nme,2,3,"span",14),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}const ome=function(t){return{"p-chips-token":!0,"p-focus":t}},sme=function(t){return{$implicit:t}};function rme(t,i){if(1&t){const e=De();x(0,"li",8,9),me("click",function(o){const r=G(e).$implicit;return q(f().onItemClick(o,r))}),g(2,Yge,1,0,"ng-container",10),g(3,Xge,2,2,"span",11),g(4,ime,3,2,"ng-container",7),A()}if(2&t){const e=i.$implicit,n=i.index,o=f();d("ngClass",He(12,ome,o.focusedIndex===n)),K("id",o.id+"_chips_item_"+n)("ariaLabel",e)("aria-selected",!0)("aria-setsize",o.value.length)("aria-pointset",n+1)("data-p-focused",o.focusedIndex===n)("data-pc-section","token"),h(2),d("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",He(14,sme,e)),h(1),d("ngIf",!o.itemTemplate),h(1),d("ngIf",!o.disabled)}}function ame(t,i){if(1&t){const e=De();x(0,"TimesIcon",15),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&d("styleClass","p-chips-clear-icon")}function lme(t,i){}function cme(t,i){1&t&&g(0,lme,0,0,"ng-template")}function ume(t,i){if(1&t){const e=De();x(0,"span",19),me("click",function(){return G(e),q(f(2).clear())}),g(1,cme,1,0,null,17),A()}if(2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function dme(t,i){if(1&t&&(x(0,"li"),g(1,ame,1,1,"TimesIcon",13),g(2,ume,2,1,"span",18),A()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const pme=function(t,i,e,n){return{"p-chips p-component p-input-wrapper":!0,"p-disabled":t,"p-focus":i,"p-inputwrapper-filled":e,"p-inputwrapper-focus":n}},hme=function(){return{"p-inputtext p-chips-multiple-container":!0}},fme=function(t){return{"p-chips-clearable":t}},gme={provide:un,useExisting:ft(()=>mme),multi:!0};let mme=(()=>{class t{document;el;cd;style;styleClass;disabled;field;placeholder;max;ariaLabel;ariaLabelledBy;tabindex;inputId;allowDuplicate=!0;inputStyle;inputStyleClass;addOnTab;addOnBlur;separator;showClear=!1;onAdd=new ge;onRemove=new ge;onFocus=new ge;onBlur=new ge;onChipClick=new ge;onClear=new ge;inputViewChild;containerViewChild;templates;itemTemplate;removeTokenIconTemplate;clearIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};valueChanged;id=$t();focused;focusedIndex;filled;get focusedOptionId(){return null!==this.focusedIndex?`${this.id}_chips_item_${this.focusedIndex}`:null}get isMaxedOut(){return this.max&&this.value&&this.max===this.value.length}constructor(e,n,o){this.document=e,this.el=n,this.cd=o}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template}}),this.updateFilledState()}onWrapperClick(){this.inputViewChild?.nativeElement.focus()}onContainerFocus(){this.focused=!0}onContainerBlur(){this.focusedIndex=-1,this.focused=!1}onContainerKeyDown(e){switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOn();break;case"ArrowRight":this.onArrowRightKeyOn();break;case"Backspace":this.onBackspaceKeyOn(e)}}onArrowLeftKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex=null===this.focusedIndex?this.value.length-1:this.focusedIndex-1,this.focusedIndex<0&&(this.focusedIndex=0))}onArrowRightKeyOn(){0===this.inputViewChild.nativeElement.value.length&&this.value&&this.value.length>0&&(this.focusedIndex===this.value.length-1?(this.focusedIndex=null,this.inputViewChild?.nativeElement.focus()):this.focusedIndex++)}onBackspaceKeyOn(e){null!==this.focusedIndex&&this.removeItem(e,this.focusedIndex)}onInput(){this.updateFilledState(),this.focusedIndex=null}onPaste(e){this.disabled||(this.separator&&((e.clipboardData||this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(o=>{this.addItem(e,o,!0)}),this.inputViewChild.nativeElement.value=""),this.updateFilledState())}updateFilledState(){this.filled=!(!this.value||0===this.value.length)||this.inputViewChild&&this.inputViewChild.nativeElement&&""!=this.inputViewChild.nativeElement.value}onItemClick(e,n){this.onChipClick.emit({originalEvent:e,value:n})}writeValue(e){this.value=e,this.updateMaxedOut(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}resolveFieldData(e,n){if(e&&n){if(-1==n.indexOf("."))return e[n];{let r=n.split("."),a=e;for(var o=0,s=r.length;or!=n),this.focusedIndex=null,this.inputViewChild.nativeElement.focus(),this.onModelChange(this.value),this.onRemove.emit({originalEvent:e,value:o}),this.updateFilledState(),this.updateMaxedOut()}addItem(e,n,o){this.value=this.value||[],n&&n.trim().length&&(this.allowDuplicate||-1===this.value.indexOf(n))&&!this.isMaxedOut&&(this.value=[...this.value,n],this.onModelChange(this.value),this.onAdd.emit({originalEvent:e,value:n})),this.updateFilledState(),this.updateMaxedOut(),this.inputViewChild.nativeElement.value="",o&&e.preventDefault()}clear(){this.value=null,this.updateFilledState(),this.onModelChange(this.value),this.updateMaxedOut(),this.onClear.emit()}onKeyDown(e){const n=e.target.value;switch(e.code){case"Backspace":0===n.length&&this.value&&this.value.length>0&&this.removeItem(e,null!==this.focusedIndex?this.focusedIndex:this.value.length-1);break;case"Enter":n&&n.trim().length&&!this.isMaxedOut&&this.addItem(e,n,!0);break;case"ArrowLeft":0===n.length&&this.value&&this.value.length>0&&this.containerViewChild?.nativeElement.focus();break;case"ArrowRight":e.stopPropagation();break;default:this.separator&&(this.separator===e.key||e.key.match(this.separator))&&this.addItem(e,n,!0)}}updateMaxedOut(){this.inputViewChild&&this.inputViewChild.nativeElement&&(this.isMaxedOut?(this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=!0):(this.disabled&&this.inputViewChild.nativeElement.blur(),this.inputViewChild.nativeElement.disabled=this.disabled||!1))}static \u0275fac=function(n){return new(n||t)(V(Wt),V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-chips"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(Qge,5),je(Zge,5)),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.containerViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused)("p-chips-clearable",o.showClear)},inputs:{style:"style",styleClass:"styleClass",disabled:"disabled",field:"field",placeholder:"placeholder",max:"max",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",allowDuplicate:"allowDuplicate",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",addOnTab:"addOnTab",addOnBlur:"addOnBlur",separator:"separator",showClear:"showClear"},outputs:{onAdd:"onAdd",onRemove:"onRemove",onFocus:"onFocus",onBlur:"onBlur",onChipClick:"onChipClick",onClear:"onClear"},features:[yt([gme])],decls:8,vars:31,consts:[[3,"ngClass","ngStyle"],["tabindex","-1","role","listbox",3,"ngClass","click","focus","blur","keydown"],["container",""],["role","option",3,"ngClass","click",4,"ngFor","ngForOf"],["role","option",1,"p-chips-input-token",3,"ngClass"],["type","text",3,"disabled","ngStyle","keydown","input","paste","focus","blur"],["inputtext",""],[4,"ngIf"],["role","option",3,"ngClass","click"],["token",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-chips-token-label",4,"ngIf"],[1,"p-chips-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-chips-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-chips-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-chips-clear-icon",3,"click",4,"ngIf"],[1,"p-chips-clear-icon",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"ul",1,2),me("click",function(){return o.onWrapperClick()})("focus",function(){return o.onContainerFocus()})("blur",function(){return o.onContainerBlur()})("keydown",function(r){return o.onContainerKeyDown(r)}),g(3,rme,5,16,"li",3),x(4,"li",4)(5,"input",5,6),me("keydown",function(r){return o.onKeyDown(r)})("input",function(){return o.onInput()})("paste",function(r){return o.onPaste(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)}),A()(),g(7,dme,3,2,"li",7),A()()),2&n&&(Ve(o.styleClass),d("ngClass",gr(23,pme,o.disabled,o.focused,o.value&&o.value.length||(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value)&&(null==o.inputViewChild?null:o.inputViewChild.nativeElement.value.length),o.focused))("ngStyle",o.style),K("data-pc-name","chips")("data-pc-section","root"),h(1),d("ngClass",Jt(28,hme)),K("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-orientation","horizontal")("data-pc-section","container"),h(2),d("ngForOf",o.value),h(1),d("ngClass",He(29,fme,o.showClear&&!o.disabled)),K("data-pc-section","inputToken"),h(1),Ve(o.inputStyleClass),d("disabled",o.disabled||o.isMaxedOut)("ngStyle",o.inputStyle),K("id",o.inputId)("placeholder",o.value&&o.value.length?null:o.placeholder)("tabindex",o.tabindex),h(2),d("ngIf",null!=o.value&&o.filled&&!o.disabled&&o.showClear))},dependencies:function(){return[Ct,Jn,gt,on,Ht,ir,mn]},styles:["@layer primeng{.p-chips{display:inline-flex}.p-chips-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-chips-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%}.p-chips-token-label{min-width:0%;overflow:auto}.p-chips-token-label::-webkit-scrollbar{display:none}.p-chips-input-token{flex:1 1 auto;display:inline-flex}.p-chips-token-icon{cursor:pointer}.p-chips-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-chips{display:flex}.p-chips-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-chips-clearable .p-inputtext{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),_me=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,Qe,ir,mn,Zs,Qe]})}return t})();Ml([en({transform:"{{transform}}",opacity:0}),On("{{transition}}",en({transform:"none",opacity:1}))]),Ml([On("{{transition}}",en({transform:"{{transform}}",opacity:0}))]);let Jme=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,dn,mn,yi,Mi,Qe]})}return t})();const e_e=["container"],t_e=["input"],n_e=["colorSelector"],i_e=["colorHandle"],o_e=["hue"],s_e=["hueHandle"],r_e=function(t){return{"p-disabled":t}};function a_e(t,i){if(1&t){const e=De();x(0,"input",4,5),me("click",function(){return G(e),q(f().onInputClick())})("keydown",function(o){return G(e),q(f().onInputKeydown(o))})("focus",function(){return G(e),q(f().onInputFocus())}),A()}if(2&t){const e=f();fo("background-color",e.inputBgColor),d("ngClass",He(7,r_e,e.disabled))("disabled",e.disabled),K("tabindex",e.tabindex)("id",e.inputId)("data-pc-section","input")}}const l_e=function(t,i){return{"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":t,"p-disabled":i}},c_e=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},u_e=function(t){return{value:"visible",params:t}};function d_e(t,i){if(1&t){const e=De();x(0,"div",6),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onOverlayAnimationEnd(o))}),x(1,"div",7)(2,"div",8,9),me("touchstart",function(o){return G(e),q(f().onColorDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())})("mousedown",function(o){return G(e),q(f().onColorMousedown(o))}),x(4,"div",10),le(5,"div",11,12),A()(),x(7,"div",13,14),me("mousedown",function(o){return G(e),q(f().onHueMousedown(o))})("touchstart",function(o){return G(e),q(f().onHueDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(){return G(e),q(f().onDragEnd())}),le(9,"div",15,16),A()()()}if(2&t){const e=f();d("ngClass",mt(10,l_e,!e.inline,e.disabled))("@overlayAnimation",He(16,u_e,mt(13,c_e,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),K("data-pc-section","panel"),h(1),K("data-pc-section","content"),h(1),K("data-pc-section","selector"),h(2),K("data-pc-section","color"),h(1),K("data-pc-section","colorHandle"),h(2),K("data-pc-section","hue"),h(2),K("data-pc-section","hueHandle")}}const p_e=function(t,i){return{"p-colorpicker p-component":!0,"p-colorpicker-overlay":t,"p-colorpicker-dragging":i}},h_e={provide:un,useExisting:ft(()=>f_e),multi:!0};let f_e=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;style;styleClass;inline;format="hex";appendTo;disabled;tabindex;inputId;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onChange=new ge;onShow=new ge;onHide=new ge;containerViewChild;inputViewChild;value={h:0,s:100,b:100};inputBgColor;shown;overlayVisible;defaultColor="ff0000";onModelChange=()=>{};onModelTouched=()=>{};documentClickListener;documentResizeListener;documentMousemoveListener;documentMouseupListener;documentHueMoveListener;scrollHandler;selfClick;colorDragging;hueDragging;overlay;colorSelectorViewChild;colorHandleViewChild;hueViewChild;hueHandleViewChild;window;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.cd=r,this.config=a,this.overlayService=l,this.window=this.document.defaultView}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueDragStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorDragStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,n){let o=n?n.pageY:e.pageY,s=this.hueViewChild?.nativeElement.getBoundingClientRect().top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,o-s)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onDrag(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,n){let o=n?n.pageX:e.pageX,s=n?n.pageY:e.pageY,r=this.colorSelectorViewChild?.nativeElement.getBoundingClientRect(),a=r.top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0),c=Math.floor(100*Math.max(0,Math.min(150,o-(r.left+this.document.body.scrollLeft)))/150),u=Math.floor(100*(150-Math.max(0,Math.min(150,s-a)))/150);this.value=this.validateHSB({h:this.value.h,s:c,b:u}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){const e={s:100,b:100};e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild?.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inline||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&Wn.clear(e.element),this.onHide.emit({})}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):j.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.overlay)}alignOverlay(){this.appendTo?j.absolutePosition(this.overlay,this.inputViewChild?.nativeElement):j.relativePosition(this.overlay,this.inputViewChild?.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.code){case"Space":this.togglePanel(),e.preventDefault();break;case"Escape":case"Tab":this.hide()}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){this.documentMousemoveListener||(this.documentMousemoveListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousemove",n=>{this.colorDragging&&this.pickColor(n),this.hueDragging&&this.pickHue(n)}))}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){this.documentMouseupListener||(this.documentMouseupListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}))}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){ei(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!j.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Vu(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var n=6-e.length;if(n>0){for(var o=[],s=0;s-1?e.substring(1):e,16);return{r:n>>16,g:(65280&n)>>8,b:255&n}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var n={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),s=Math.max(e.r,e.g,e.b),r=s-o;return n.b=s,n.s=0!=s?255*r/s:0,n.h=0!=n.s?e.r==s?(e.g-e.b)/r:e.g==s?2+(e.b-e.r)/r:4+(e.r-e.g)/r:-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n}HSBtoRGB(e){var n={r:0,g:0,b:0};let o=e.h,s=255*e.s/100,r=255*e.b/100;if(0==s)n={r,g:r,b:r};else{let a=r,l=(255-s)*r/255,c=o%60*(a-l)/60;360==o&&(o=0),o<60?(n.r=a,n.b=l,n.g=l+c):o<120?(n.g=a,n.b=l,n.r=a-c):o<180?(n.g=a,n.r=l,n.b=l+c):o<240?(n.b=a,n.r=l,n.g=a-c):o<300?(n.b=a,n.g=l,n.r=l+c):o<360?(n.r=a,n.g=l,n.b=a-c):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}RGBtoHEX(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var o in n)1==n[o].length&&(n[o]="0"+n[o]);return n.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&Wn.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Ft),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-colorPicker"]],viewQuery:function(n,o){if(1&n&&(je(e_e,5),je(t_e,5),je(n_e,5),je(i_e,5),je(o_e,5),je(s_e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.inputViewChild=s.first),Se(s=Ee())&&(o.colorSelector=s.first),Se(s=Ee())&&(o.colorHandle=s.first),Se(s=Ee())&&(o.hue=s.first),Se(s=Ee())&&(o.hueHandle=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",inline:"inline",format:"format",appendTo:"appendTo",disabled:"disabled",tabindex:"tabindex",inputId:"inputId",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[yt([h_e])],decls:4,vars:11,consts:[[3,"ngStyle","ngClass"],["container",""],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly",3,"ngClass","disabled","backgroundColor","click","keydown","focus",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview","p-inputtext",3,"ngClass","disabled","click","keydown","focus"],["input",""],[3,"ngClass","click"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],["colorSelector",""],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],["colorHandle",""],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],["hue",""],[1,"p-colorpicker-hue-handle"],["hueHandle",""]],template:function(n,o){1&n&&(x(0,"div",0,1),g(2,a_e,2,9,"input",2),g(3,d_e,11,18,"div",3),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",mt(8,p_e,!o.inline,o.colorDragging||o.hueDragging)),K("data-pc-name","colorpicker")("data-pc-section","root"),h(2),d("ngIf",!o.inline),h(1),d("ngIf",o.inline||o.overlayVisible))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{position:relative;width:193px;height:166px}.p-colorpicker-overlay-panel{position:absolute;top:0;left:0}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{width:150px;height:150px;top:8px;left:8px;position:absolute}.p-colorpicker-panel .p-colorpicker-color{width:150px;height:150px}.p-colorpicker-panel .p-colorpicker-color-handle{position:absolute;top:0;left:150px;border-radius:100%;width:10px;height:10px;border-width:1px;border-style:solid;margin:-5px 0 0 -5px;cursor:pointer;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue{width:17px;height:150px;top:8px;left:167px;position:absolute;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue-handle{position:absolute;top:150px;left:0;width:21px;margin-left:-2px;margin-top:-5px;height:10px;border-width:2px;border-style:solid;opacity:.85;cursor:pointer}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),g_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),m_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ThLargeIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M1.90909 6.36364H4.45455C4.96087 6.36364 5.44645 6.1625 5.80448 5.80448C6.1625 5.44645 6.36364 4.96087 6.36364 4.45455V1.90909C6.36364 1.40277 6.1625 0.917184 5.80448 0.55916C5.44645 0.201136 4.96087 0 4.45455 0H1.90909C1.40277 0 0.917184 0.201136 0.55916 0.55916C0.201136 0.917184 0 1.40277 0 1.90909V4.45455C0 4.96087 0.201136 5.44645 0.55916 5.80448C0.917184 6.1625 1.40277 6.36364 1.90909 6.36364ZM1.46154 1.46154C1.58041 1.34268 1.741 1.27492 1.90909 1.27273H4.45455C4.62264 1.27492 4.78322 1.34268 4.90209 1.46154C5.02096 1.58041 5.08871 1.741 5.09091 1.90909V4.45455C5.08871 4.62264 5.02096 4.78322 4.90209 4.90209C4.78322 5.02096 4.62264 5.08871 4.45455 5.09091H1.90909C1.741 5.08871 1.58041 5.02096 1.46154 4.90209C1.34268 4.78322 1.27492 4.62264 1.27273 4.45455V1.90909C1.27492 1.741 1.34268 1.58041 1.46154 1.46154ZM1.90909 14H4.45455C4.96087 14 5.44645 13.7989 5.80448 13.4408C6.1625 13.0828 6.36364 12.5972 6.36364 12.0909V9.54544C6.36364 9.03912 6.1625 8.55354 5.80448 8.19551C5.44645 7.83749 4.96087 7.63635 4.45455 7.63635H1.90909C1.40277 7.63635 0.917184 7.83749 0.55916 8.19551C0.201136 8.55354 0 9.03912 0 9.54544V12.0909C0 12.5972 0.201136 13.0828 0.55916 13.4408C0.917184 13.7989 1.40277 14 1.90909 14ZM1.46154 9.0979C1.58041 8.97903 1.741 8.91128 1.90909 8.90908H4.45455C4.62264 8.91128 4.78322 8.97903 4.90209 9.0979C5.02096 9.21677 5.08871 9.37735 5.09091 9.54544V12.0909C5.08871 12.259 5.02096 12.4196 4.90209 12.5384C4.78322 12.6573 4.62264 12.7251 4.45455 12.7273H1.90909C1.741 12.7251 1.58041 12.6573 1.46154 12.5384C1.34268 12.4196 1.27492 12.259 1.27273 12.0909V9.54544C1.27492 9.37735 1.34268 9.21677 1.46154 9.0979ZM12.0909 6.36364H9.54544C9.03912 6.36364 8.55354 6.1625 8.19551 5.80448C7.83749 5.44645 7.63635 4.96087 7.63635 4.45455V1.90909C7.63635 1.40277 7.83749 0.917184 8.19551 0.55916C8.55354 0.201136 9.03912 0 9.54544 0H12.0909C12.5972 0 13.0828 0.201136 13.4408 0.55916C13.7989 0.917184 14 1.40277 14 1.90909V4.45455C14 4.96087 13.7989 5.44645 13.4408 5.80448C13.0828 6.1625 12.5972 6.36364 12.0909 6.36364ZM9.54544 1.27273C9.37735 1.27492 9.21677 1.34268 9.0979 1.46154C8.97903 1.58041 8.91128 1.741 8.90908 1.90909V4.45455C8.91128 4.62264 8.97903 4.78322 9.0979 4.90209C9.21677 5.02096 9.37735 5.08871 9.54544 5.09091H12.0909C12.259 5.08871 12.4196 5.02096 12.5384 4.90209C12.6573 4.78322 12.7251 4.62264 12.7273 4.45455V1.90909C12.7251 1.741 12.6573 1.58041 12.5384 1.46154C12.4196 1.34268 12.259 1.27492 12.0909 1.27273H9.54544ZM9.54544 14H12.0909C12.5972 14 13.0828 13.7989 13.4408 13.4408C13.7989 13.0828 14 12.5972 14 12.0909V9.54544C14 9.03912 13.7989 8.55354 13.4408 8.19551C13.0828 7.83749 12.5972 7.63635 12.0909 7.63635H9.54544C9.03912 7.63635 8.55354 7.83749 8.19551 8.19551C7.83749 8.55354 7.63635 9.03912 7.63635 9.54544V12.0909C7.63635 12.5972 7.83749 13.0828 8.19551 13.4408C8.55354 13.7989 9.03912 14 9.54544 14ZM9.0979 9.0979C9.21677 8.97903 9.37735 8.91128 9.54544 8.90908H12.0909C12.259 8.91128 12.4196 8.97903 12.5384 9.0979C12.6573 9.21677 12.7251 9.37735 12.7273 9.54544V12.0909C12.7251 12.259 12.6573 12.4196 12.5384 12.5384C12.4196 12.6573 12.259 12.7251 12.0909 12.7273H9.54544C9.37735 12.7251 9.21677 12.6573 9.0979 12.5384C8.97903 12.4196 8.91128 12.259 8.90908 12.0909V9.54544C8.91128 9.37735 8.97903 9.21677 9.0979 9.0979Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),lO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BarsIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.3226 3.6129H0.677419C0.497757 3.6129 0.325452 3.54152 0.198411 3.41448C0.0713707 3.28744 0 3.11514 0 2.93548C0 2.75581 0.0713707 2.58351 0.198411 2.45647C0.325452 2.32943 0.497757 2.25806 0.677419 2.25806H13.3226C13.5022 2.25806 13.6745 2.32943 13.8016 2.45647C13.9286 2.58351 14 2.75581 14 2.93548C14 3.11514 13.9286 3.28744 13.8016 3.41448C13.6745 3.54152 13.5022 3.6129 13.3226 3.6129ZM13.3226 7.67741H0.677419C0.497757 7.67741 0.325452 7.60604 0.198411 7.479C0.0713707 7.35196 0 7.17965 0 6.99999C0 6.82033 0.0713707 6.64802 0.198411 6.52098C0.325452 6.39394 0.497757 6.32257 0.677419 6.32257H13.3226C13.5022 6.32257 13.6745 6.39394 13.8016 6.52098C13.9286 6.64802 14 6.82033 14 6.99999C14 7.17965 13.9286 7.35196 13.8016 7.479C13.6745 7.60604 13.5022 7.67741 13.3226 7.67741ZM0.677419 11.7419H13.3226C13.5022 11.7419 13.6745 11.6706 13.8016 11.5435C13.9286 11.4165 14 11.2442 14 11.0645C14 10.8848 13.9286 10.7125 13.8016 10.5855C13.6745 10.4585 13.5022 10.3871 13.3226 10.3871H0.677419C0.497757 10.3871 0.325452 10.4585 0.198411 10.5855C0.0713707 10.7125 0 10.8848 0 11.0645C0 11.2442 0.0713707 11.4165 0.198411 11.5435C0.325452 11.6706 0.497757 11.7419 0.677419 11.7419Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),k_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,vf,_s,lO,m_e,Qe]})}return t})();var M_e=z(7536);function O_e(t,i){1&t&&ze(0)}function L_e(t,i){if(1&t&&(x(0,"div",3),Kn(1),g(2,O_e,1,0,"ng-container",4),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)}}function P_e(t,i){1&t&&(x(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),Le(4,"Heading"),A(),x(5,"option",8),Le(6,"Subheading"),A(),x(7,"option",9),Le(8,"Normal"),A()(),x(9,"select",10)(10,"option",9),Le(11,"Sans Serif"),A(),x(12,"option",11),Le(13,"Serif"),A(),x(14,"option",12),Le(15,"Monospace"),A()()(),x(16,"span",5),le(17,"button",13)(18,"button",14)(19,"button",15),A(),x(20,"span",5),le(21,"select",16)(22,"select",17),A(),x(23,"span",5),le(24,"button",18)(25,"button",19),x(26,"select",20),le(27,"option",9),x(28,"option",21),Le(29,"center"),A(),x(30,"option",22),Le(31,"right"),A(),x(32,"option",23),Le(33,"justify"),A()()(),x(34,"span",5),le(35,"button",24)(36,"button",25)(37,"button",26),A(),x(38,"span",5),le(39,"button",27),A()())}const F_e=[[["p-header"]]],R_e=["p-header"],N_e={provide:un,useExisting:ft(()=>V_e),multi:!0};let V_e=(()=>{class t{el;style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new ge;onTextChange=new ge;onSelectionChange=new ge;templates;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;constructor(e){this.el=e}ngAfterViewInit(){this.initQuillElements(),this.isAttachedQuillEditorToDOM&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.isAttachedQuillEditorToDOM&&this.initQuillEditor(),this.delayedCommand&&this.isAttachedQuillEditorToDOM&&(this.delayedCommand(),this.delayedCommand=null)}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()&&(this.headerTemplate=e.template)})}writeValue(e){if(this.value=e,this.quill)if(e){const n=()=>{this.quill.setContents(this.quill.clipboard.convert(this.value))};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}else{const n=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?n():this.delayedCommand=n}}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}initQuillEditor(){this.initQuillElements();const{toolbarElement:e,editorElement:n}=this.quillElements;let o={toolbar:e},s=this.modules?{...o,...this.modules}:o;this.quill=new M_e(n,{modules:s,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(r,a,l)=>{if("user"===l){let c=j.findSingle(n,".ql-editor").innerHTML,u=this.quill.getText().trim();"


"===c&&(c=null),this.onTextChange.emit({htmlValue:c,textValue:u,delta:r,source:l}),this.onModelChange(c),this.onModelTouched()}}),this.quill.on("selection-change",(r,a,l)=>{this.onSelectionChange.emit({range:r,oldRange:a,source:l})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:j.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:j.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(n){return new(n||t)(V(bt))};static \u0275cmp=Oe({type:t,selectors:[["p-editor"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.toolbar=r.first),Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[yt([N_e])],ngContentSelectors:R_e,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(n,o){1&n&&(Ti(F_e),x(0,"div",0),g(1,L_e,3,1,"div",1),g(2,P_e,40,0,"div",1),le(3,"div",2),A()),2&n&&(Ve(o.styleClass),d("ngClass","p-editor-container"),h(1),d("ngIf",o.toolbar||o.headerTemplate),h(1),d("ngIf",!o.toolbar&&!o.headerTemplate),h(1),d("ngStyle",o.style))},dependencies:[Ct,gt,on,Ht],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0})}return t})(),B_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe]})}return t})(),ng=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),Z_e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,eg,ng,Qe]})}return t})(),Y_e=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["UploadIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),vv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[st,Et],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1)(3,"path",2)(4,"path",3),A(),x(5,"defs")(6,"clipPath",4),le(7,"rect",5),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(5),d("id",o.pathId))},encapsulation:2})}return t})(),bv=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),yv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn]})}return t})(),xv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),hIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,eE,Qe,Mi,xv,yv,dn,ng,Y_e,mn,Qe,Mi,xv,yv]})}return t})(),xIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,mn,Mi,Qe]})}return t})();const AIe=["input"];function wIe(t,i){if(1&t){const e=De();x(0,"TimesIcon",5),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-inputmask-clear-icon"),K("data-pc-section","clearIcon"))}function TIe(t,i){}function SIe(t,i){1&t&&g(0,TIe,0,0,"ng-template")}function EIe(t,i){if(1&t){const e=De();x(0,"span",6),me("click",function(){return G(e),q(f(2).clear())}),g(1,SIe,1,0,null,7),A()}if(2&t){const e=f(2);K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function DIe(t,i){if(1&t&&(we(0),g(1,wIe,1,2,"TimesIcon",3),g(2,EIe,2,2,"span",4),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}const kIe={provide:un,useExisting:ft(()=>MIe),multi:!0};let MIe=(()=>{class t{document;platformId;el;cd;type="text";slotChar="_";autoClear=!0;showClear=!1;style;inputId;styleClass;placeholder;size;maxlength;tabindex;title;ariaLabel;ariaLabelledBy;ariaRequired;disabled;readonly;unmask;name;required;characterPattern="[A-Za-z]";autoFocus;autocomplete;keepBuffer=!1;get mask(){return this._mask}set mask(e){this._mask=e,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}onComplete=new ge;onFocus=new ge;onBlur=new ge;onInput=new ge;onKeydown=new ge;onClear=new ge;inputViewChild;templates;clearIconTemplate;value;_mask;onModelChange=()=>{};onModelTouched=()=>{};input;filled;defs;tests;partialPosition;firstNonMaskPos;lastRequiredNonMaskPos;len;oldVal;buffer;defaultBuffer;focusText;caretTimeoutId;androidChrome=!0;focused;constructor(e,n,o,s){this.document=e,this.platformId=n,this.el=o,this.cd=s}ngOnInit(){if(ei(this.platformId)){let e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e)}this.initMask()}ngAfterContentInit(){this.templates.forEach(e=>{"clearicon"===e.getType()&&(this.clearIconTemplate=e.template)})}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let e=this.mask.split("");for(let n=0;n=0&&!this.tests[e];);return e}shiftL(e,n){let o,s;if(!(e<0)){for(o=e,s=this.seekNext(n);on.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}else{for(this.checkVal(!0);o.begin{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}}onInputBlur(e){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(e),this.inputViewChild?.nativeElement.value!=this.focusText||this.inputViewChild?.nativeElement.value!=this.value){this.updateModel(e);let n=this.document.createEvent("HTMLEvents");n.initEvent("change",!0,!1),this.inputViewChild?.nativeElement.dispatchEvent(n)}}onInputKeydown(e){if(this.readonly)return;let o,s,r,a,n=e.which||e.keyCode;ei(this.platformId)&&(a=/iphone/i.test(j.getUserAgent())),this.oldVal=this.inputViewChild?.nativeElement.value,this.onKeydown.emit(e),8===n||46===n||a&&127===n?(o=this.caret(),s=o.begin,r=o.end,r-s==0&&(s=46!==n?this.seekPrev(s):r=this.seekNext(s-1),r=46===n?this.seekNext(r):r),this.clearBuffer(s,r),this.shiftL(s,this.keepBuffer?r-2:r-1),this.updateModel(e),this.onInput.emit(e),e.preventDefault()):13===n?(this.onInputBlur(e),this.updateModel(e)):27===n&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}onKeyPress(e){if(!this.readonly){var s,r,a,l,n=e.which||e.keyCode,o=this.caret();e.ctrlKey||e.altKey||e.metaKey||n<32||n>34&&n<41||(n&&13!==n&&(o.end-o.begin!=0&&(this.clearBuffer(o.begin,o.end),this.shiftL(o.begin,o.end-1)),(s=this.seekNext(o.begin-1)){this.caret(a)},0):this.caret(a),o.begin<=this.lastRequiredNonMaskPos&&(l=this.isCompleted()),this.onInput.emit(e))),e.preventDefault()),this.updateModel(e),this.updateFilledState(),l&&this.onComplete.emit())}}clearBuffer(e,n){if(!this.keepBuffer){let o;for(o=e;on.length){this.clearBuffer(s+1,this.len);break}}else this.buffer[s]===n.charAt(a)&&a++,s{this.inputViewChild?.nativeElement===this.inputViewChild?.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),n==this.mask?.replace("?","").length?this.caret(0,n):this.caret(n))},10),this.onFocus.emit(e)}onInputChange(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.onInput.emit(e)}handleInputChange(e){this.readonly||setTimeout(()=>{var n=this.checkVal(!0);this.caret(n),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}getUnmaskedValue(){let e=[];for(let n=0;n{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,gf,mn,Qe]})}return t})(),LIe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const PIe=["headerchkbox"],FIe=["filter"],RIe=["lastHiddenFocusableElement"],NIe=["firstHiddenFocusableElement"],VIe=["scroller"],BIe=["list"];function HIe(t,i){1&t&&ze(0)}const ig=function(t,i){return{$implicit:t,options:i}};function zIe(t,i){if(1&t&&(x(0,"div",12),Kn(1),g(2,HIe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function jIe(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function UIe(t,i){}function $Ie(t,i){1&t&&g(0,UIe,0,0,"ng-template")}function KIe(t,i){if(1&t&&(x(0,"span",25),g(1,$Ie,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function GIe(t,i){if(1&t&&(we(0),g(1,jIe,1,2,"CheckIcon",22),g(2,KIe,2,2,"span",23),Te()),2&t){const e=f(3);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const cO=function(t){return{"p-checkbox-disabled":t}},qIe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function WIe(t,i){if(1&t){const e=De();x(0,"div",17),me("click",function(o){return G(e),q(f(2).onToggleAll(o))})("keydown",function(o){return G(e),q(f(2).onHeaderCheckboxKeyDown(o))}),x(1,"div",18)(2,"input",19,20),me("focus",function(o){return G(e),q(f(2).onHeaderCheckboxFocus(o))})("blur",function(o){return G(e),q(f(2).onHeaderCheckboxBlur(o))}),A()(),x(4,"div",21),g(5,GIe,3,2,"ng-container",6),A()()}if(2&t){const e=f(2);d("ngClass",He(8,cO,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(10,qIe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function QIe(t,i){1&t&&ze(0)}const uO=function(t){return{options:t}};function ZIe(t,i){if(1&t&&(we(0),g(1,QIe,1,0,"ng-container",13),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,uO,e.filterOptions))}}function YIe(t,i){1&t&&le(0,"SearchIcon",24),2&t&&(d("styleClass","p-listbox-filter-icon"),K("aria-hidden",!0))}function XIe(t,i){}function JIe(t,i){1&t&&g(0,XIe,0,0,"ng-template")}function eCe(t,i){if(1&t&&(x(0,"span",33),g(1,JIe,1,0,null,26),A()),2&t){const e=f(4);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function tCe(t,i){if(1&t){const e=De();x(0,"div",29)(1,"input",30,31),me("input",function(o){return G(e),q(f(3).onFilterChange(o))})("keydown",function(o){return G(e),q(f(3).onFilterKeyDown(o))})("blur",function(o){return G(e),q(f(3).onFilterBlur(o))}),A(),g(3,YIe,1,2,"SearchIcon",22),g(4,eCe,2,2,"span",32),A()}if(2&t){const e=f(3);h(1),d("value",e._filterValue()||"")("disabled",e.disabled)("tabindex",e.disabled||e.focused?-1:e.tabindex),K("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function nCe(t,i){if(1&t&&(g(0,tCe,5,9,"div",27),x(1,"span",28),Le(2),A()),2&t){const e=f(2);d("ngIf",e.filter),h(1),K("data-p-hidden-accessible",!0),h(1),Pt(" ",e.filterResultMessageText," ")}}function iCe(t,i){if(1&t&&(x(0,"div",12),g(1,WIe,6,14,"div",14),g(2,ZIe,2,4,"ng-container",15),g(3,nCe,3,3,"ng-template",null,16,In),A()),2&t){const e=Bt(4),n=f();h(1),d("ngIf",n.checkbox&&n.multiple&&n.showToggleAll),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function oCe(t,i){1&t&&ze(0)}function sCe(t,i){if(1&t&&g(0,oCe,1,0,"ng-container",13),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(9))("ngTemplateOutletContext",mt(2,ig,e,n))}}function rCe(t,i){1&t&&ze(0)}function aCe(t,i){if(1&t&&g(0,rCe,1,0,"ng-container",13),2&t){const e=i.options;d("ngTemplateOutlet",f(3).loaderTemplate)("ngTemplateOutletContext",He(2,uO,e))}}function lCe(t,i){1&t&&(we(0),g(1,aCe,1,4,"ng-template",37),Te())}const Av=function(t){return{height:t}};function cCe(t,i){if(1&t){const e=De();x(0,"p-scroller",34,35),me("onLazyLoad",function(o){return G(e),q(f().onLazyLoad.emit(o))}),g(2,sCe,1,5,"ng-template",36),g(3,lCe,2,0,"ng-container",6),A()}if(2&t){const e=f();yn(He(9,Av,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function uCe(t,i){1&t&&ze(0)}const dCe=function(){return{}};function pCe(t,i){if(1&t&&(we(0),g(1,uCe,1,0,"ng-container",13),Te()),2&t){const e=f(),n=Bt(9);h(1),d("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(3,ig,e.visibleOptions(),Jt(2,dCe)))}}function hCe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function fCe(t,i){1&t&&ze(0)}const gCe=function(t){return{$implicit:t}};function mCe(t,i){if(1&t&&(we(0),x(1,"li",42),g(2,hCe,2,1,"span",6),g(3,fCe,1,0,"ng-container",13),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f();h(1),d("ngStyle",He(5,Av,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,gCe,o.optionGroup))}}function _Ce(t,i){1&t&&le(0,"CheckIcon",24),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function ICe(t,i){}function CCe(t,i){1&t&&g(0,ICe,0,0,"ng-template")}function vCe(t,i){if(1&t&&(x(0,"span",25),g(1,CCe,1,0,null,26),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function bCe(t,i){if(1&t&&(we(0),g(1,_Ce,1,2,"CheckIcon",22),g(2,vCe,2,2,"span",23),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const yCe=function(t){return{"p-highlight":t}};function xCe(t,i){if(1&t&&(x(0,"div",45)(1,"div",46),g(2,bCe,3,2,"ng-container",6),A()()),2&t){const e=f(2).$implicit,n=f(2);d("ngClass",He(3,cO,n.disabled||n.isOptionDisabled(e))),h(1),d("ngClass",He(5,yCe,n.isSelected(e))),h(1),d("ngIf",n.isSelected(e))}}function ACe(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(2);h(1),dt(n.getOptionLabel(e))}}function wCe(t,i){1&t&&ze(0)}const TCe=function(t,i,e){return{"p-listbox-item":!0,"p-highlight":t,"p-focus":i,"p-disabled":e}},SCe=function(t,i){return{$implicit:t,index:i}};function ECe(t,i){if(1&t){const e=De();we(0),x(1,"li",43),me("click",function(o){G(e);const s=f(),r=s.$implicit,a=s.index,l=f().options,c=f();return q(c.onOptionSelect(o,r,c.getOptionIndex(a,l)))})("dblclick",function(o){G(e);const s=f().$implicit;return q(f(2).onOptionDoubleClick(o,s))})("mousedown",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseDown(o,a.getOptionIndex(s,r)))})("mouseenter",function(o){G(e);const s=f().index,r=f().options,a=f();return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))})("touchend",function(){return G(e),q(f(3).onOptionTouchEnd())}),g(2,xCe,3,7,"div",44),g(3,ACe,2,1,"span",6),g(4,wCe,1,0,"ng-container",13),A(),Te()}if(2&t){const e=f(),n=e.$implicit,o=e.index,s=f().options,r=f();h(1),d("ngStyle",He(12,Av,s.itemSize+"px"))("ngClass",Rn(14,TCe,r.isSelected(n),r.focusedOptionIndex()===r.getOptionIndex(o,s),r.isOptionDisabled(n)))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(o,s))),K("id",r.id+"_"+r.getOptionIndex(o,s))("aria-label",r.getOptionLabel(n))("aria-selected",r.isSelected(n))("aria-disabled",r.isOptionDisabled(n))("aria-setsize",r.ariaSetSize),h(1),d("ngIf",r.checkbox&&r.multiple),h(1),d("ngIf",!r.itemTemplate),h(1),d("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",mt(18,SCe,n,r.getOptionIndex(o,s)))}}function DCe(t,i){if(1&t&&(g(0,mCe,4,9,"ng-container",6),g(1,ECe,5,21,"ng-container",6)),2&t){const e=i.$implicit,n=f(2);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function kCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyFilterMessageText," ")}}function MCe(t,i){1&t&&ze(0,null,48)}function OCe(t,i){if(1&t&&(x(0,"li",47),g(1,kCe,2,1,"ng-container",15),g(2,MCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),h(1),d("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function LCe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),Pt(" ",e.emptyMessageText," ")}}function PCe(t,i){1&t&&ze(0,null,49)}function FCe(t,i){if(1&t&&(x(0,"li",47),g(1,LCe,2,1,"ng-container",15),g(2,PCe,2,0,"ng-container",26),A()),2&t){const e=f(2);h(1),d("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),h(1),d("ngTemplateOutlet",e.emptyTemplate)}}function RCe(t,i){if(1&t){const e=De();x(0,"ul",38,39),me("focus",function(o){return G(e),q(f().onListFocus(o))})("blur",function(o){return G(e),q(f().onListBlur(o))})("keydown",function(o){return G(e),q(f().onListKeyDown(o))}),g(2,DCe,2,2,"ng-template",40),g(3,OCe,3,3,"li",41),g(4,FCe,3,3,"li",41),A()}if(2&t){const e=i.$implicit,n=i.options,o=f();yn(n.contentStyle),d("tabindex",-1)("ngClass",n.contentStyleClass),K("aria-multiselectable",!0)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-label",o.ariaLabel)("aria-multiselectable",o.multiple)("aria-disabled",o.disabled),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function NCe(t,i){1&t&&ze(0)}function VCe(t,i){if(1&t&&(x(0,"div",50),Kn(1,1),g(2,NCe,1,0,"ng-container",13),A()),2&t){const e=f();h(2),d("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",mt(2,ig,e.modelValue(),e.visibleOptions()))}}function BCe(t,i){if(1&t&&(x(0,"span",10),Le(1),A()),2&t){const e=f();h(1),Pt(" ",e.emptyMessageText," ")}}const HCe=[[["p-header"]],[["p-footer"]]],zCe=["p-header","p-footer"],jCe={provide:un,useExisting:ft(()=>UCe),multi:!0};let UCe=(()=>{class t{el;cd;filterService;config;renderer;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;selectOnFocus;searchLocale;focusOnHover;filterMessage;filterFields;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;scrollHeight="200px";tabindex=0;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!1;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel="label";optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}onChange=new ge;onClick=new ge;onDblClick=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onSelectAllChange=new ge;headerCheckboxViewChild;filterViewChild;lastHiddenFocusableElement;firstHiddenFocusableElement;scroller;listViewChild;headerFacet;footerFacet;templates;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;_filterValue=bn(null);_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;focused;get containerClass(){return{"p-listbox p-component":!0,"p-focus":this.focused,"p-disabled":this.disabled}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get filterResultMessageText(){return be.isNotEmpty(this.visibleOptions())?this.filterMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptyFilterMessageText}get filterMessageText(){return this.filterMessage||this.config.translation.searchMessage||""}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptyFilterMessageText(){return this.emptyFilterMessage||this.config.translation.emptySearchMessage||this.config.translation.emptyFilterMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}get searchFields(){return this.filterFields||[this.optionLabel]}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}searchValue;searchTimeout;_selectAll=null;_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);modelValue=bn(null);visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this._options()):this._options()||[];return this._filterValue()?this.filterService.filter(e,this.searchFields,this._filterValue(),this.filterMatchMode,this.filterLocale):e});constructor(e,n,o,s,r){this.el=e,this.cd=n,this.filterService=o,this.config=s,this.renderer=r}ngOnInit(){this.id=this.id||$t(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template}})}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&!this.multiple){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()])}}updateModel(e,n){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.onChange.emit({originalEvent:n,value:this.value})}removeOption(e){return this.modelValue().filter(n=>!be.equals(n,this.getOptionValue(e),this.equalityKey()))}onOptionSelect(e,n,o=-1){this.disabled||this.isOptionDisabled(n)||(e&&this.onClick.emit({originalEvent:e,value:n}),this.multiple?this.onOptionSelectMultiple(e,n):this.onOptionSelectSingle(e,n),this.optionTouched=!1,-1!==o&&this.focusedOptionIndex.set(o))}onOptionSelectMultiple(e,n){let o=this.isSelected(n),s=null;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;o?s=a?this.removeOption(n):[this.getOptionValue(n)]:(s=a&&this.modelValue()||[],s=[...s,this.getOptionValue(n)])}else s=o?this.removeOption(n):[...this.modelValue()||[],this.getOptionValue(n)];this.updateModel(s,e)}onOptionSelectSingle(e,n){let o=this.isSelected(n),s=!1,r=null;!this.optionTouched&&this.metaKeySelection?o?(e.metaKey||e.ctrlKey)&&(r=null,s=!0):(r=this.getOptionValue(n),s=!0):(r=o?null:this.getOptionValue(n),s=!0),s&&this.updateModel(r,e)}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}onToggleAll(e){if(!this.disabled&&!this.readonly){if(j.focus(this.headerCheckboxViewChild.nativeElement),null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e),this.onChange.emit({originalEvent:e,value:this.value})}e.preventDefault()}}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}onOptionTouchEnd(){this.disabled||(this.optionTouched=!0)}onOptionMouseDown(e,n){this.changeFocusedOptionIndex(e,n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onOptionDoubleClick(e,n){this.disabled||this.isOptionDisabled(n)||this.readonly||this.onDblClick.emit({originalEvent:e,option:n,value:this.value})}onFirstHiddenFocus(e){j.focus(this.listViewChild.nativeElement);const n=j.getFirstFocusableElement(this.el.nativeElement,':not([data-p-hidden-focusable="true"])');this.lastHiddenFocusableElement.nativeElement.tabIndex=be.isEmpty(n)?"-1":void 0,this.firstHiddenFocusableElement.nativeElement.tabIndex=-1}onLastHiddenFocus(e){if(e.relatedTarget===this.listViewChild.nativeElement){const o=j.getFirstFocusableElement(this.el.nativeElement,":not(.p-hidden-focusable)");j.focus(o),this.firstHiddenFocusableElement.nativeElement.tabIndex=void 0}else j.focus(this.firstHiddenFocusableElement.nativeElement);this.lastHiddenFocusableElement.nativeElement.tabIndex=-1}onFocusout(e){!this.el.nativeElement.contains(e.relatedTarget)&&this.lastHiddenFocusableElement&&this.firstHiddenFocusableElement&&(this.firstHiddenFocusableElement.nativeElement.tabIndex=this.lastHiddenFocusableElement.nativeElement.tabIndex=void 0)}onListFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.onFocus.emit(e)}onListBlur(e){this.focused=!1,this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.searchValue=""}onHeaderCheckboxFocus(e){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e);break;case"Tab":this.onHeaderCheckboxTabKeyDown(e)}}onHeaderCheckboxTabKeyDown(e){j.focus(this.listViewChild.nativeElement),e.preventDefault()}onFilterChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onFilterBlur(e){this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1)}onListKeyDown(e){const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onSpaceKey(e);break;case"Tab":break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(this.multiple&&"KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey()}}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowUpKey(e){const n=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,n,this.startRangeIndex()),this.changeFocusedOptionIndex(e,n),e.preventDefault()}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onHomeKey(e,n=!1){if(n)e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1);else{let o=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onEndKey(e,n=!1){if(n){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findLastOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onPageDownKey(e){this.scrollInView(0),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onEnterKey(e){-1!==this.focusedOptionIndex()&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()])),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onShiftKey(){const e=this.focusedOptionIndex();this.startRangeIndex.set(e)}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions()[n]))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}scrollInView(e=-1){const o=j.findSingle(this.listViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroll&&this.scroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex())}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}equalityKey(){return this.optionValue?null:this.dataKey}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionDisabled(e){return!!this.optionDisabled&&be.resolveFieldData(e,this.optionDisabled)}isSelected(e){const n=this.getOptionValue(e);return this.multiple?(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey())):be.equals(this.modelValue(),n,this.equalityKey())}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue.set(null)}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft),V(df),V(ki),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-listbox"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,Nu,5),Gt(s,rC,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(PIe,5),je(FIe,5),je(RIe,5),je(NIe,5),je(VIe,5),je(BIe,5)),2&n){let s;Se(s=Ee())&&(o.headerCheckboxViewChild=s.first),Se(s=Ee())&&(o.filterViewChild=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElement=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElement=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.listViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:"autoOptionFocus",selectOnFocus:"selectOnFocus",searchLocale:"searchLocale",focusOnHover:"focusOnHover",filterMessage:"filterMessage",filterFields:"filterFields",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",scrollHeight:"scrollHeight",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue",selectAll:"selectAll"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onSelectAllChange:"onSelectAllChange"},features:[yt([jCe])],ngContentSelectors:zCe,decls:16,vars:24,consts:[[3,"ngClass","ngStyle","focusout"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"tabindex","focus"],["firstHiddenFocusableElement",""],["class","p-listbox-header",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInItems",""],["class","p-listbox-footer",4,"ngIf"],["role","status","aria-live","polite","class","p-hidden-accessible",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["lastHiddenFocusableElement",""],[1,"p-listbox-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"disabled","focus","blur"],["headerchkbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],["class","p-listbox-filter-container",4,"ngIf"],["role","status","attr.aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-filter-container"],["type","text","role","searchbox",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","tabindex","input","keydown","blur"],["filterInput",""],["class","p-listbox-filter-icon",4,"ngIf"],[1,"p-listbox-filter-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-listbox-list",3,"tabindex","ngClass","focus","blur","keydown"],["list",""],["ngFor","",3,"ngForOf"],["class","p-listbox-empty-message","role","option",4,"ngIf"],["role","option",1,"p-listbox-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-listbox-item",3,"ngStyle","ngClass","ariaPosInset","click","dblclick","mousedown","mouseenter","touchend"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-checkbox-box",3,"ngClass"],["role","option",1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(n,o){1&n&&(Ti(HCe),x(0,"div",0),me("focusout",function(r){return o.onFocusout(r)}),x(1,"span",1,2),me("focus",function(r){return o.onFirstHiddenFocus(r)}),A(),g(3,zIe,3,5,"div",3),g(4,iCe,5,3,"div",3),x(5,"div",4),g(6,cCe,4,11,"p-scroller",5),g(7,pCe,2,6,"ng-container",6),g(8,RCe,5,12,"ng-template",null,7,In),A(),g(10,VCe,3,5,"div",8),g(11,BCe,2,1,"span",9),x(12,"span",10),Le(13),A(),x(14,"span",1,11),me("focus",function(r){return o.onLastHiddenFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",o.headerFacet||o.headerTemplate),h(1),d("ngIf",o.checkbox&&o.multiple&&o.showToggleAll||o.filter),h(1),Ve(o.listStyleClass),fo("max-height",o.virtualScroll?"auto":o.scrollHeight||"auto"),d("ngClass","p-listbox-list-wrapper")("ngStyle",o.listStyle),h(1),d("ngIf",o.virtualScroll),h(1),d("ngIf",!o.virtualScroll),h(3),d("ngIf",o.footerFacet||o.footerTemplate),h(1),d("ngIf",o.isEmpty()),h(2),Pt(" ",o.selectedMessageText," "),h(1),d("tabindex",o.disabled?-1:o.tabindex),K("aria-hidden",!0)("data-p-hidden-focusable",!0))},dependencies:function(){return[Ct,Jn,gt,on,Ht,sn,oo,Bu,Qs,yi]},styles:["@layer primeng{.p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),$Ce=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,Qs,yi,Qe,Oi]})}return t})(),Tve=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,Or,Zo,qn,Nn,Qe]})}return t})(),s1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,qn,Nn]})}return t})(),j1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Qe,lO,Or,Zo,qn,Nn,Qe]})}return t})(),K1e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,yi,bv,ir,vv]})}return t})();function G1e(t,i){1&t&&le(0,"CheckIcon",7),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function q1e(t,i){}function W1e(t,i){1&t&&g(0,q1e,0,0,"ng-template")}function Q1e(t,i){if(1&t&&(x(0,"span",8),g(1,W1e,1,0,null,9),A()),2&t){const e=f(2);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)}}function Z1e(t,i){if(1&t&&(we(0),g(1,G1e,1,2,"CheckIcon",5),g(2,Q1e,2,2,"span",6),Te()),2&t){const e=f();h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}function Y1e(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f();let n;h(1),dt(null!==(n=e.label)&&void 0!==n?n:"empty")}}function X1e(t,i){1&t&&ze(0)}const ud=function(t){return{height:t}},J1e=function(t,i,e){return{"p-multiselect-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},ebe=function(t){return{"p-highlight":t}},Sv=function(t){return{$implicit:t}},tbe=["container"],nbe=["overlay"],ibe=["filterInput"],obe=["focusInput"],sbe=["items"],rbe=["scroller"],abe=["lastHiddenFocusableEl"],lbe=["firstHiddenFocusableEl"],cbe=["headerCheckbox"];function ube(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(2);h(1),dt(e.label()||"empty")}}function dbe(t,i){if(1&t){const e=De();x(0,"TimesCircleIcon",20),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),A()}2&t&&(d("styleClass","p-multiselect-token-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function pbe(t,i){1&t&&ze(0)}function hbe(t,i){if(1&t){const e=De();x(0,"span",21),me("click",function(){G(e);const o=f(2).$implicit,s=f(3);return q(s.removeOption(o,s.event))}),g(1,pbe,1,0,"ng-container",22),A()}if(2&t){const e=f(5);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.removeTokenIconTemplate)}}function fbe(t,i){if(1&t&&(we(0),g(1,dbe,1,3,"TimesCircleIcon",18),g(2,hbe,2,3,"span",19),Te()),2&t){const e=f(4);h(1),d("ngIf",!e.removeTokenIconTemplate),h(1),d("ngIf",e.removeTokenIconTemplate)}}function gbe(t,i){if(1&t&&(x(0,"div",15,16)(2,"span",17),Le(3),A(),g(4,fbe,3,2,"ng-container",7),A()),2&t){const e=i.$implicit,n=f(3);h(3),dt(n.getLabelByValue(e)),h(1),d("ngIf",!n.disabled)}}function mbe(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(3);h(1),dt(e.placeholder||e.defaultLabel||"empty")}}function _be(t,i){if(1&t&&(we(0),g(1,gbe,5,2,"div",14),g(2,mbe,2,1,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngForOf",e.chipSelectedItems()),h(1),d("ngIf",!e.modelValue()||0===e.modelValue().length)}}function Ibe(t,i){if(1&t&&(we(0),g(1,ube,2,1,"ng-container",7),g(2,_be,3,2,"ng-container",7),Te()),2&t){const e=f();h(1),d("ngIf","comma"===e.display),h(1),d("ngIf","chip"===e.display)}}function Cbe(t,i){1&t&&ze(0)}function vbe(t,i){if(1&t){const e=De();x(0,"TimesIcon",20),me("click",function(o){return G(e),q(f(2).clear(o))}),A()}2&t&&(d("styleClass","p-multiselect-clear-icon"),K("data-pc-section","clearicon")("aria-hidden",!0))}function bbe(t,i){}function ybe(t,i){1&t&&g(0,bbe,0,0,"ng-template")}function xbe(t,i){if(1&t){const e=De();x(0,"span",24),me("click",function(o){return G(e),q(f(2).clear(o))}),g(1,ybe,1,0,null,22),A()}if(2&t){const e=f(2);K("data-pc-section","clearicon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function Abe(t,i){if(1&t&&(we(0),g(1,vbe,1,3,"TimesIcon",18),g(2,xbe,2,3,"span",23),Te()),2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),d("ngIf",e.clearIconTemplate)}}function wbe(t,i){1&t&&le(0,"span",27),2&t&&(d("ngClass",f(2).dropdownIcon),K("data-pc-section","triggericon")("aria-hidden",!0))}function Tbe(t,i){1&t&&le(0,"ChevronDownIcon",28),2&t&&(d("styleClass","p-multiselect-trigger-icon"),K("data-pc-section","triggericon")("aria-hidden",!0))}function Sbe(t,i){if(1&t&&(we(0),g(1,wbe,1,3,"span",25),g(2,Tbe,1,3,"ChevronDownIcon",26),Te()),2&t){const e=f();h(1),d("ngIf",e.dropdownIcon),h(1),d("ngIf",!e.dropdownIcon)}}function Ebe(t,i){}function Dbe(t,i){1&t&&g(0,Ebe,0,0,"ng-template")}function kbe(t,i){if(1&t&&(x(0,"span",29),g(1,Dbe,1,0,null,22),A()),2&t){const e=f();K("data-pc-section","triggericon")("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.dropdownIconTemplate)}}function Mbe(t,i){1&t&&ze(0)}function Obe(t,i){1&t&&ze(0)}const gO=function(t){return{options:t}};function Lbe(t,i){if(1&t&&(we(0),g(1,Obe,1,0,"ng-container",8),Te()),2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",He(2,gO,e.filterOptions))}}function Pbe(t,i){1&t&&le(0,"CheckIcon",28),2&t&&(d("styleClass","p-checkbox-icon"),K("aria-hidden",!0))}function Fbe(t,i){}function Rbe(t,i){1&t&&g(0,Fbe,0,0,"ng-template")}function Nbe(t,i){if(1&t&&(x(0,"span",51),g(1,Rbe,1,0,null,8),A()),2&t){const e=f(6);K("aria-hidden",!0),h(1),d("ngTemplateOutlet",e.checkIconTemplate)("ngTemplateOutletContext",He(3,Sv,e.allSelected()))}}function Vbe(t,i){if(1&t&&(we(0),g(1,Pbe,1,2,"CheckIcon",26),g(2,Nbe,2,5,"span",50),Te()),2&t){const e=f(5);h(1),d("ngIf",!e.checkIconTemplate),h(1),d("ngIf",e.checkIconTemplate)}}const Bbe=function(t){return{"p-checkbox-disabled":t}},Hbe=function(t,i,e){return{"p-highlight":t,"p-focus":i,"p-disabled":e}};function zbe(t,i){if(1&t){const e=De();x(0,"div",46),me("click",function(o){return G(e),q(f(4).onToggleAll(o))})("keydown",function(o){return G(e),q(f(4).onHeaderCheckboxKeyDown(o))}),x(1,"div",2)(2,"input",47,48),me("focus",function(){return G(e),q(f(4).onHeaderCheckboxFocus())})("blur",function(){return G(e),q(f(4).onHeaderCheckboxBlur())}),A()(),x(4,"div",49),g(5,Vbe,3,2,"ng-container",7),A()()}if(2&t){const e=f(4);d("ngClass",He(9,Bbe,e.disabled||e.toggleAllDisabled)),h(1),K("data-p-hidden-accessible",!0),h(1),d("readonly",e.readonly)("disabled",e.disabled||e.toggleAllDisabled),K("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),h(2),d("ngClass",Rn(11,Hbe,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),K("aria-checked",e.allSelected()),h(1),d("ngIf",e.allSelected())}}function jbe(t,i){1&t&&le(0,"SearchIcon",28),2&t&&d("styleClass","p-multiselect-filter-icon")}function Ube(t,i){}function $be(t,i){1&t&&g(0,Ube,0,0,"ng-template")}function Kbe(t,i){if(1&t&&(x(0,"span",56),g(1,$be,1,0,null,22),A()),2&t){const e=f(5);h(1),d("ngTemplateOutlet",e.filterIconTemplate)}}function Gbe(t,i){if(1&t){const e=De();x(0,"div",52)(1,"input",53,54),me("input",function(o){return G(e),q(f(4).onFilterInputChange(o))})("keydown",function(o){return G(e),q(f(4).onFilterKeyDown(o))})("click",function(o){return G(e),q(f(4).onInputClick(o))})("blur",function(o){return G(e),q(f(4).onFilterBlur(o))}),A(),g(3,jbe,1,1,"SearchIcon",26),g(4,Kbe,2,1,"span",55),A()}if(2&t){const e=f(4);h(1),d("value",e._filterValue()||"")("disabled",e.disabled),K("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),h(2),d("ngIf",!e.filterIconTemplate),h(1),d("ngIf",e.filterIconTemplate)}}function qbe(t,i){1&t&&le(0,"TimesIcon",28),2&t&&d("styleClass","p-multiselect-close-icon")}function Wbe(t,i){}function Qbe(t,i){1&t&&g(0,Wbe,0,0,"ng-template")}function Zbe(t,i){if(1&t&&(x(0,"span",57),g(1,Qbe,1,0,null,22),A()),2&t){const e=f(4);h(1),d("ngTemplateOutlet",e.closeIconTemplate)}}function Ybe(t,i){if(1&t){const e=De();g(0,zbe,6,15,"div",42),g(1,Gbe,5,10,"div",43),x(2,"button",44),me("click",function(o){return G(e),q(f(3).close(o))}),g(3,qbe,1,1,"TimesIcon",26),g(4,Zbe,2,1,"span",45),A()}if(2&t){const e=f(3);d("ngIf",e.showToggleAll&&!e.selectionLimit),h(1),d("ngIf",e.filter),h(2),d("ngIf",!e.closeIconTemplate),h(1),d("ngIf",e.closeIconTemplate)}}function Xbe(t,i){if(1&t&&(x(0,"div",39),Kn(1),g(2,Mbe,1,0,"ng-container",22),g(3,Lbe,2,4,"ng-container",40),g(4,Ybe,5,4,"ng-template",null,41,In),A()),2&t){const e=Bt(5),n=f(2);h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.filterTemplate)("ngIfElse",e)}}function Jbe(t,i){1&t&&ze(0)}const mO=function(t,i){return{$implicit:t,options:i}};function eye(t,i){if(1&t&&g(0,Jbe,1,0,"ng-container",8),2&t){const e=i.$implicit,n=i.options;f(2),d("ngTemplateOutlet",Bt(8))("ngTemplateOutletContext",mt(2,mO,e,n))}}function tye(t,i){1&t&&ze(0)}function nye(t,i){if(1&t&&g(0,tye,1,0,"ng-container",8),2&t){const e=i.options;d("ngTemplateOutlet",f(4).loaderTemplate)("ngTemplateOutletContext",He(2,gO,e))}}function iye(t,i){1&t&&(we(0),g(1,nye,1,4,"ng-template",60),Te())}function oye(t,i){if(1&t){const e=De();x(0,"p-scroller",58,59),me("onLazyLoad",function(o){return G(e),q(f(2).onLazyLoad.emit(o))}),g(2,eye,1,5,"ng-template",13),g(3,iye,2,0,"ng-container",7),A()}if(2&t){const e=f(2);yn(He(9,ud,e.scrollHeight)),d("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),h(3),d("ngIf",e.loaderTemplate)}}function sye(t,i){1&t&&ze(0)}const rye=function(){return{}};function aye(t,i){if(1&t&&(we(0),g(1,sye,1,0,"ng-container",8),Te()),2&t){f();const e=Bt(8),n=f();h(1),d("ngTemplateOutlet",e)("ngTemplateOutletContext",mt(3,mO,n.visibleOptions(),Jt(2,rye)))}}function lye(t,i){if(1&t&&(x(0,"span"),Le(1),A()),2&t){const e=f(2).$implicit,n=f(3);h(1),dt(n.getOptionGroupLabel(e.optionGroup))}}function cye(t,i){1&t&&ze(0)}function uye(t,i){if(1&t&&(we(0),x(1,"li",65),g(2,lye,2,1,"span",7),g(3,cye,1,0,"ng-container",8),A(),Te()),2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("ngStyle",He(5,ud,s.itemSize+"px")),K("id",r.id+"_"+r.getOptionIndex(n,s)),h(1),d("ngIf",!r.groupTemplate),h(1),d("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(7,Sv,o.optionGroup))}}function dye(t,i){if(1&t){const e=De();we(0),x(1,"p-multiSelectItem",66),me("onClick",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionSelect(o,!1,a.getOptionIndex(s,r)))})("onMouseEnter",function(o){G(e);const s=f().index,r=f().options,a=f(2);return q(a.onOptionMouseEnter(o,a.getOptionIndex(s,r)))}),A(),Te()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f().options,r=f(2);h(1),d("id",r.id+"_"+r.getOptionIndex(n,s))("option",o)("selected",r.isSelected(o))("label",r.getOptionLabel(o))("disabled",r.isOptionDisabled(o))("template",r.itemTemplate)("checkIconTemplate",r.checkIconTemplate)("itemSize",s.itemSize)("focused",r.focusedOptionIndex()===r.getOptionIndex(n,s))("ariaPosInset",r.getAriaPosInset(r.getOptionIndex(n,s)))("ariaSetSize",r.ariaSetSize)}}function pye(t,i){if(1&t&&(g(0,uye,4,9,"ng-container",7),g(1,dye,2,11,"ng-container",7)),2&t){const e=i.$implicit,n=f(3);d("ngIf",n.isOptionGroup(e)),h(1),d("ngIf",!n.isOptionGroup(e))}}function hye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyFilterMessageLabel," ")}}function fye(t,i){1&t&&ze(0,null,68)}function gye(t,i){if(1&t&&(x(0,"li",67),g(1,hye,2,1,"ng-container",40),g(2,fye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),h(1),d("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function mye(t,i){if(1&t&&(we(0),Le(1),Te()),2&t){const e=f(4);h(1),Pt(" ",e.emptyMessageLabel," ")}}function _ye(t,i){1&t&&ze(0,null,69)}function Iye(t,i){if(1&t&&(x(0,"li",67),g(1,mye,2,1,"ng-container",40),g(2,_ye,2,0,"ng-container",22),A()),2&t){const e=f().options,n=f(2);d("ngStyle",He(4,ud,e.itemSize+"px")),h(1),d("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),h(1),d("ngTemplateOutlet",n.emptyTemplate)}}function Cye(t,i){if(1&t&&(x(0,"ul",61,62),g(2,pye,2,2,"ng-template",63),g(3,gye,3,6,"li",64),g(4,Iye,3,6,"li",64),A()),2&t){const e=i.$implicit,n=i.options,o=f(2);yn(n.contentStyle),d("ngClass",n.contentStyleClass),h(2),d("ngForOf",e),h(1),d("ngIf",o.hasFilter()&&o.isEmpty()),h(1),d("ngIf",!o.hasFilter()&&o.isEmpty())}}function vye(t,i){1&t&&ze(0)}function bye(t,i){if(1&t&&(x(0,"div",70),Kn(1,1),g(2,vye,1,0,"ng-container",22),A()),2&t){const e=f(2);h(2),d("ngTemplateOutlet",e.footerTemplate)}}function yye(t,i){if(1&t){const e=De();x(0,"div",30)(1,"span",31,32),me("focus",function(o){return G(e),q(f().onFirstHiddenFocus(o))}),A(),g(3,Xbe,6,3,"div",33),x(4,"div",34),g(5,oye,4,11,"p-scroller",35),g(6,aye,2,6,"ng-container",7),g(7,Cye,5,6,"ng-template",null,36,In),A(),g(9,bye,3,1,"div",37),x(10,"span",31,38),me("focus",function(o){return G(e),q(f().onLastHiddenFocus(o))}),A()()}if(2&t){const e=f();Ve(e.panelStyleClass),d("ngClass","p-multiselect-panel p-component")("ngStyle",e.panelStyle),h(1),K("aria-hidden","true")("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),h(2),d("ngIf",e.showHeader),h(1),fo("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h(1),d("ngIf",e.virtualScroll),h(1),d("ngIf",!e.virtualScroll),h(3),d("ngIf",e.footerFacet||e.footerTemplate),h(1),K("aria-hidden",!0)("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const xye=[[["p-header"]],[["p-footer"]]],Aye=function(t,i){return{$implicit:t,removeChip:i}},wye=["p-header","p-footer"],Tye={provide:un,useExisting:ft(()=>Eye),multi:!0};let Sye=(()=>{class t{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;template;checkIconTemplate;onClick=new ge;onMouseEnter=new ge;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected})}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:"selected",label:"label",disabled:"disabled",itemSize:"itemSize",focused:"focused",ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkIconTemplate:"checkIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},decls:6,vars:26,consts:[["pRipple","",1,"p-multiselect-item",3,"ngStyle","ngClass","id","click","mouseenter"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function(n,o){1&n&&(x(0,"li",0),me("click",function(r){return o.onOptionClick(r)})("mouseenter",function(r){return o.onOptionMouseEnter(r)}),x(1,"div",1)(2,"div",2),g(3,Z1e,3,2,"ng-container",3),A()(),g(4,Y1e,2,1,"span",3),g(5,X1e,1,0,"ng-container",4),A()),2&n&&(d("ngStyle",He(16,ud,o.itemSize+"px"))("ngClass",Rn(18,J1e,o.selected,o.disabled,o.focused))("id",o.id),K("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),h(2),d("ngClass",He(22,ebe,o.selected)),K("aria-checked",o.selected),h(1),d("ngIf",o.selected),h(1),d("ngIf",!o.template),h(1),d("ngTemplateOutlet",o.template)("ngTemplateOutletContext",He(24,Sv,o.option)))},dependencies:function(){return[Ct,gt,on,Ht,oo,yi]},encapsulation:2})}return t})(),Eye=(()=>{class t{el;renderer;cd;zone;filterService;config;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel="{0} items selected";showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="off";showClear=!1;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.warn("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder=e}get placeholder(){return this._placeholder}get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!1;filterFields;selectOnFocus=!1;autoOptionFocus=!0;onChange=new ge;onFilter=new ge;onFocus=new ge;onBlur=new ge;onClick=new ge;onClear=new ge;onPanelShow=new ge;onPanelHide=new ge;onLazyLoad=new ge;onRemove=new ge;onSelectAllChange=new ge;containerViewChild;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;templates;searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder;_itemSize;_selectionLimit;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;headerCheckboxFocus;filterOptions;maxSelectionLimitReached;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=bn(null);_filterValue=bn(null);_options=bn(null);startRangeIndex=bn(-1);focusedOptionIndex=bn(-1);get containerClass(){return{"p-multiselect p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-multiselect-clearable":this.showClear&&!this.disabled,"p-multiselect-chip":"chip"===this.display,"p-focus":this.focused,"p-inputwrapper-filled":be.isNotEmpty(this.modelValue()),"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){return{"p-multiselect-label p-inputtext":!0,"p-placeholder":(this.placeholder||this.defaultLabel)&&(this.label()===this.placeholder||this.label()===this.defaultLabel),"p-multiselect-label-empty":!this.selectedItemsTemplate&&("p-emptylabel"===this.label()||0===this.label().length)}}get panelClass(){return{"p-multiselect-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle,"p-ripple-disabled":!1===this.config.ripple}}get labelClass(){return{"p-multiselect-label":!0,"p-placeholder":this.label()===this.placeholder||this.label()===this.defaultLabel,"p-multiselect-label-empty":!(this.placeholder||this.defaultLabel||this.modelValue()&&0!==this.modelValue().length)}}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(di.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(di.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():this.modelValue()||null!=this.modelValue()||null!=this.modelValue()}get isVisibleClearIcon(){return null!=this.modelValue()&&""!==this.modelValue()&&be.isNotEmpty(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}visibleOptions=Ds(()=>{const e=this.group?this.flatOptions(this.options):this.options||[];if(this._filterValue()){const n=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale);if(this.group){const s=[];return(this.options||[]).forEach(r=>{const l=this.getOptionGroupChildren(r).filter(c=>n.includes(c));l.length>0&&s.push({...r,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...l]})}),this.flatOptions(s)}return n}return e});label=Ds(()=>{let e;const n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(be.isNotEmpty(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let o=0;obe.isNotEmpty(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,o,s,r,a,l){this.el=e,this.renderer=n,this.cd=o,this.zone=s,this.filterService=r,this.config=a,this.overlayService=l}ngOnInit(){this.id=this.id||$t(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,o,s)=>{n.push({optionGroup:o,group:!0,index:s});const r=this.getOptionGroupChildren(o);return r&&r.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());const e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,o=-1){const{originalEvent:s,option:r}=e;if(this.disabled||this.isOptionDisabled(r))return;let l=null;l=this.isSelected(r)?this.modelValue().filter(c=>!be.equals(c,this.getOptionValue(r),this.equalityKey())):[...this.modelValue()||[],this.getOptionValue(r)],this.updateModel(l,s),-1!==o&&this.focusedOptionIndex.set(o),n&&j.focus(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:l,itemValue:r})}onOptionSelectRange(e,n=-1,o=-1){if(-1===n&&(n=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==o){const s=Math.min(n,o),r=Math.max(n,o),a=this.visibleOptions().slice(s,r+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}searchFields(){return this.filterFields||[this.optionLabel]}findNearestSelectedOptionIndex(e,n=!1){let o=-1;return this.hasSelectedOption()&&(n?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}findPrevSelectedOptionIndex(e){const n=this.hasSelectedOption()&&e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){const n=this.hasSelectedOption()&&ethis.isValidSelectedOption(o)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return be.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return(this.optionDisabled?be.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)||this.maxSelectionLimitReached&&!this.isSelected(e)}isSelected(e){const n=this.getOptionValue(e);return(this.modelValue()||[]).some(o=>be.equals(o,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this._options()&&0===this._options().length}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){const o=(this.group?this.flatOptions(this._options()):this._options()||[]).find(s=>!this.isOptionGroup(s)&&be.equals(this.getOptionValue(s),e,this.equalityKey()));return o?this.getOptionLabel(o):null}getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue().length+""):this.selectedItemsLabel}getOptionLabel(e){return this.optionLabel?be.resolveFieldData(e,this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?be.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?be.resolveFieldData(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?be.resolveFieldData(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled)return void e.preventDefault();const n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if("KeyA"===e.code&&n){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!n&&be.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const n=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){const{currentTarget:o}=e;if(n)o.setSelectionRange(0,e.shiftKey?o.value.length:0),this.focusedOptionIndex.set(-1);else{let s=e.metaKey||e.ctrlKey,r=this.findFirstOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,r,this.startRangeIndex()),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){const{currentTarget:o}=e;if(n){const s=o.value.length;o.setSelectionRange(e.shiftKey?0:s,s),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,r=this.findLastFocusedOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,this.startRangeIndex(),r),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?-1!==this.focusedOptionIndex()&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(j.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(-1!==this.focusedOptionIndex()&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if("INPUT"===e.target.tagName||"clearicon"===e.target.getAttribute("data-pc-section")||e.target.closest('[data-pc-section="clearicon"]'))return void e.preventDefault();(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onInputFocus(e){this.focused=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value?.trim();this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onLastHiddenFocus(e){const n=e.relatedTarget===this.focusInputViewChild?.nativeElement?j.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;j.focus(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!this.disabled&&!this.readonly){if(null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const n=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(n,e)}j.focus(this.headerCheckboxViewChild.nativeElement),this.headerCheckboxFocus=!0,e.preventDefault(),e.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=j.findSingle(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}checkSelectionLimit(){this.maxSelectionLimitReached=!(!this.selectionLimit||!this.value||this.value.length!==this.selectionLimit)}writeValue(e){this.value=e,this.modelValue.set(this.value),this.checkSelectionLimit(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return null!==this.selectAll?this.selectAll:be.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}show(e){this.overlayVisible=!0;const n=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&j.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&j.focus(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.itemsWrapper=j.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){const n=be.isNotEmpty(this.modelValue())?this.focusedOptionIndex():-1;-1!==n&&this.scroller?.scrollToIndex(n)}else{let n=j.findSingle(this.itemsWrapper,".p-multiselect-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched()}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.checkSelectionLimit(),this.updateModel(null,e),this.onClear.emit(),e.stopPropagation()}removeOption(e,n){let o=this.modelValue().filter(s=>!be.equals(s,e,this.equalityKey()));this.updateModel(o,n),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?j.hasClass(n.children[0],"p-disabled")||j.isHidden(n.children[0])||j.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){const n=ethis.isValidOption(o)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){const n=e>0?be.findLastIndex(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?be.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return be.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}activateFilter(){if(this.hasFilter()&&this._options){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.group){let n=[];for(let o of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(o),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&n.push({...o,[this.optionGroupChildren]:s})}this._filteredOptions=n}else this._filteredOptions=this.filterService.filter(this.options,e,this._filterValue,this.filterMatchMode,this.filterLocale)}else this._filteredOptions=null}hasFocusableElements(){return j.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(V(bt),V(hn),V(Ft),V(Tt),V(df),V(ki),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-multiSelect"]],contentQueries:function(n,o,s){if(1&n&&(Gt(s,rC,5),Gt(s,Nu,5),Gt(s,sn,4)),2&n){let r;Se(r=Ee())&&(o.footerFacet=r.first),Se(r=Ee())&&(o.headerFacet=r.first),Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(tbe,5),je(nbe,5),je(ibe,5),je(obe,5),je(sbe,5),je(rbe,5),je(abe,5),je(lbe,5),je(cbe,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.overlayViewChild=s.first),Se(s=Ee())&&(o.filterInputChild=s.first),Se(s=Ee())&&(o.focusInputViewChild=s.first),Se(s=Ee())&&(o.itemsViewChild=s.first),Se(s=Ee())&&(o.scroller=s.first),Se(s=Ee())&&(o.lastHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.firstHiddenFocusableElementOnOverlay=s.first),Se(s=Ee())&&(o.headerCheckboxViewChild=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled)("p-inputwrapper-focus",o.focused||o.overlayVisible)},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:"disabled",readonly:"readonly",group:"group",filter:"filter",filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:"overlayVisible",tabindex:"tabindex",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:"selectionLimit",selectedItemsLabel:"selectedItemsLabel",showToggleAll:"showToggleAll",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:"showHeader",filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",display:"display",autocomplete:"autocomplete",showClear:"showClear",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:"focusOnHover",filterFields:"filterFields",selectOnFocus:"selectOnFocus",autoOptionFocus:"autoOptionFocus"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[yt([Tye])],ngContentSelectors:wye,decls:16,vars:41,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["role","combobox",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","focus","blur","keydown"],["focusInput",""],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-multiselect-trigger"],["class","p-multiselect-trigger-icon",4,"ngIf"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],["token",""],[1,"p-multiselect-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"styleClass","click"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["firstHiddenFocusableEl",""],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],["class","p-multiselect-footer",4,"ngIf"],["lastHiddenFocusableEl",""],[1,"p-multiselect-header"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"ngClass","click","keydown"],["type","checkbox",3,"readonly","disabled","focus","blur"],["headerCheckbox",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","searchbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"value","disabled","input","keydown","click","blur"],["filterInput",""],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"items","itemSize","autoSize","tabindex","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["items",""],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-item-group",3,"ngStyle"],[3,"id","option","selected","label","disabled","template","checkIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","onClick","onMouseEnter"],[1,"p-multiselect-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""],[1,"p-multiselect-footer"]],template:function(n,o){1&n&&(Ti(xye),x(0,"div",0,1),me("click",function(r){return o.onContainerClick(r)}),x(2,"div",2)(3,"input",3,4),me("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keydown",function(r){return o.onKeyDown(r)}),A()(),x(5,"div",5)(6,"div",6),g(7,Ibe,3,2,"ng-container",7),g(8,Cbe,1,0,"ng-container",8),A(),g(9,Abe,3,2,"ng-container",7),A(),x(10,"div",9),g(11,Sbe,3,2,"ng-container",7),g(12,kbe,2,3,"span",10),A(),x(13,"p-overlay",11,12),me("visibleChange",function(r){return o.overlayVisible=r})("onAnimationStart",function(r){return o.onOverlayAnimationStart(r)})("onHide",function(){return o.hide()}),g(15,yye,12,18,"ng-template",13),A()()),2&n&&(Ve(o.styleClass),d("ngClass",o.containerClass)("ngStyle",o.style),K("id",o.id),h(2),K("data-p-hidden-accessible",!0),h(1),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),K("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",o.overlayVisible)("aria-controls",o.id+"_list")("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0),h(2),d("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),h(1),d("ngClass",o.labelClass),h(1),d("ngIf",!o.selectedItemsTemplate),h(1),d("ngTemplateOutlet",o.selectedItemsTemplate)("ngTemplateOutletContext",mt(38,Aye,o.modelValue(),o.removeOption.bind(o))),h(1),d("ngIf",o.isVisibleClearIcon),h(2),d("ngIf",!o.dropdownIconTemplate),h(1),d("ngIf",o.dropdownIconTemplate),h(1),d("visible",o.overlayVisible)("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:function(){return[Ct,Jn,gt,on,Ht,mf,sn,Kl,oo,Bu,yi,Qs,ir,mn,bi,Sye]},styles:["@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}\n"],encapsulation:2,changeDetection:0})}return t})(),Dye=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,$l,Qe,Nn,dn,Oi,yi,Qs,ir,mn,bi,yi,$l,Qe,Oi]})}return t})();const kye=typeof Intl<"u"&&Intl.v8BreakIterator;class Ev{constructor(i){this._platformId=i,this.isBrowser=this._platformId?ei(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!kye)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}let dd;function Dv(t){return function Mye(){if(null==dd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dd=!0}))}finally{dd=dd||!1}return dd}()?t:!!t.capture}Ev.ngInjectableDef=o1({factory:function(){return new Ev(et($n,8))},token:Ev,providedIn:"root"});const xs={NORMAL:0,NEGATED:1,INVERTED:2};xs[xs.NORMAL]="NORMAL",xs[xs.NEGATED]="NEGATED",xs[xs.INVERTED]="INVERTED";const sg=Dv({passive:!1,capture:!0});class kv{constructor(i,e){this._ngZone=i,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new re,this.pointerUp=new re,this._preventScrollListener=n=>{this._activeDragInstances.size&&n.preventDefault()},this._document=e}registerDropContainer(i){if(!this._dropInstances.has(i)){if(this.getDropContainer(i.id))throw Error(`Drop instance with id "${i.id}" has already been registered.`);this._dropInstances.add(i)}}registerDragItem(i){this._dragInstances.add(i),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventScrollListener,sg)})}removeDropContainer(i){this._dropInstances.delete(i)}removeDragItem(i){this._dragInstances.delete(i),this.stopDragging(i),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventScrollListener,sg)}startDragging(i,e){if(this._activeDragInstances.add(i),1===this._activeDragInstances.size){const n=e.type.startsWith("touch"),s=n?"touchend":"mouseup";this._globalListeners.set(n?"touchmove":"mousemove",{handler:r=>this.pointerMove.next(r),options:sg}).set(s,{handler:r=>this.pointerUp.next(r),options:!0}),n||this._globalListeners.set("wheel",{handler:this._preventScrollListener,options:sg}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,a)=>{this._document.addEventListener(a,r.handler,r.options)})})}}stopDragging(i){this._activeDragInstances.delete(i),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(i){return this._activeDragInstances.has(i)}getDropContainer(i){return Array.from(this._dropInstances).find(e=>e.id===i)}ngOnDestroy(){this._dragInstances.forEach(i=>this.removeDragItem(i)),this._dropInstances.forEach(i=>this.removeDropContainer(i)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((i,e)=>{this._document.removeEventListener(e,i.handler,i.options)}),this._globalListeners.clear()}}kv.ngInjectableDef=o1({factory:function(){return new kv(et(Tt),et(Wt))},token:kv,providedIn:"root"});const Lye=new Ye("CDK_DRAG_CONFIG",{providedIn:"root",factory:function Pye(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}});class rg{}let TO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleDownIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.70786 6.59831C6.80043 6.63674 6.89974 6.65629 6.99997 6.65581C7.19621 6.64081 7.37877 6.54953 7.50853 6.40153L11.0685 2.8416C11.1364 2.69925 11.1586 2.53932 11.132 2.38384C11.1053 2.22837 11.0311 2.08498 10.9195 1.97343C10.808 1.86188 10.6646 1.78766 10.5091 1.76099C10.3536 1.73431 10.1937 1.75649 10.0513 1.82448L6.99997 4.87585L3.9486 1.82448C3.80625 1.75649 3.64632 1.73431 3.49084 1.76099C3.33536 1.78766 3.19197 1.86188 3.08043 1.97343C2.96888 2.08498 2.89466 2.22837 2.86798 2.38384C2.84131 2.53932 2.86349 2.69925 2.93147 2.8416L6.46089 6.43205C6.53132 6.50336 6.61528 6.55989 6.70786 6.59831ZM6.70786 12.1925C6.80043 12.2309 6.89974 12.2505 6.99997 12.25C7.10241 12.2465 7.20306 12.2222 7.29575 12.1785C7.38845 12.1348 7.47124 12.0726 7.53905 11.9957L11.0685 8.46629C11.1614 8.32292 11.2036 8.15249 11.1881 7.98233C11.1727 7.81216 11.1005 7.6521 10.9833 7.52781C10.866 7.40353 10.7104 7.3222 10.5415 7.29688C10.3725 7.27155 10.1999 7.30369 10.0513 7.38814L6.99997 10.4395L3.9486 7.38814C3.80006 7.30369 3.62747 7.27155 3.45849 7.29688C3.28951 7.3222 3.13393 7.40353 3.01667 7.52781C2.89942 7.6521 2.82729 7.81216 2.81184 7.98233C2.79639 8.15249 2.83852 8.32292 2.93148 8.46629L6.4609 12.0262C6.53133 12.0975 6.61529 12.1541 6.70786 12.1925Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),SO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["AngleDoubleUpIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M10.1504 6.67719C10.2417 6.71508 10.3396 6.73436 10.4385 6.73389C10.6338 6.74289 10.8249 6.67441 10.97 6.54334C11.1109 6.4023 11.19 6.21112 11.19 6.01178C11.19 5.81245 11.1109 5.62127 10.97 5.48023L7.45977 1.96998C7.31873 1.82912 7.12755 1.75 6.92821 1.75C6.72888 1.75 6.5377 1.82912 6.39666 1.96998L2.9165 5.45014C2.83353 5.58905 2.79755 5.751 2.81392 5.91196C2.83028 6.07293 2.89811 6.22433 3.00734 6.34369C3.11656 6.46306 3.26137 6.54402 3.42025 6.57456C3.57914 6.60511 3.74364 6.5836 3.88934 6.51325L6.89813 3.50446L9.90691 6.51325C9.97636 6.58357 10.0592 6.6393 10.1504 6.67719ZM9.93702 11.9993C10.065 12.1452 10.245 12.2352 10.4385 12.25C10.632 12.2352 10.812 12.1452 10.9399 11.9993C11.0633 11.8614 11.1315 11.6828 11.1315 11.4978C11.1315 11.3128 11.0633 11.1342 10.9399 10.9963L7.48987 7.48609C7.34883 7.34523 7.15765 7.26611 6.95832 7.26611C6.75899 7.26611 6.5678 7.34523 6.42677 7.48609L2.91652 10.9963C2.84948 11.1367 2.82761 11.2944 2.85391 11.4477C2.88022 11.601 2.9534 11.7424 3.06339 11.8524C3.17338 11.9624 3.31477 12.0356 3.46808 12.0619C3.62139 12.0882 3.77908 12.0663 3.91945 11.9993L6.92823 8.99048L9.93702 11.9993Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),rxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Qe,dn,rg,TO,SO,If,Or,Qs,Qe,rg]})}return t})(),yxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,bi,ff,Qe,Qe]})}return t})(),Mxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,Qe,mn,Qe]})}return t})(),Qxe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,ng,eg,Qe]})}return t})(),kO=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M0.0535499 7.25213C0.208567 7.59162 2.40413 12.4 7 12.4C11.5959 12.4 13.7914 7.59162 13.9465 7.25213C13.9487 7.2471 13.9506 7.24304 13.952 7.24001C13.9837 7.16396 14 7.08239 14 7.00001C14 6.91762 13.9837 6.83605 13.952 6.76001C13.9506 6.75697 13.9487 6.75292 13.9465 6.74788C13.7914 6.4084 11.5959 1.60001 7 1.60001C2.40413 1.60001 0.208567 6.40839 0.0535499 6.74788C0.0512519 6.75292 0.0494023 6.75697 0.048 6.76001C0.0163137 6.83605 0 6.91762 0 7.00001C0 7.08239 0.0163137 7.16396 0.048 7.24001C0.0494023 7.24304 0.0512519 7.2471 0.0535499 7.25213ZM7 11.2C3.664 11.2 1.736 7.92001 1.264 7.00001C1.736 6.08001 3.664 2.80001 7 2.80001C10.336 2.80001 12.264 6.08001 12.736 7.00001C12.264 7.92001 10.336 11.2 7 11.2ZM5.55551 9.16182C5.98308 9.44751 6.48576 9.6 7 9.6C7.68891 9.59789 8.349 9.32328 8.83614 8.83614C9.32328 8.349 9.59789 7.68891 9.59999 7C9.59999 6.48576 9.44751 5.98308 9.16182 5.55551C8.87612 5.12794 8.47006 4.7947 7.99497 4.59791C7.51988 4.40112 6.99711 4.34963 6.49276 4.44995C5.98841 4.55027 5.52513 4.7979 5.16152 5.16152C4.7979 5.52513 4.55027 5.98841 4.44995 6.49276C4.34963 6.99711 4.40112 7.51988 4.59791 7.99497C4.7947 8.47006 5.12794 8.87612 5.55551 9.16182ZM6.2222 5.83594C6.45243 5.6821 6.7231 5.6 7 5.6C7.37065 5.6021 7.72553 5.75027 7.98762 6.01237C8.24972 6.27446 8.39789 6.62934 8.4 7C8.4 7.27689 8.31789 7.54756 8.16405 7.77779C8.01022 8.00802 7.79157 8.18746 7.53575 8.29343C7.27994 8.39939 6.99844 8.42711 6.72687 8.37309C6.4553 8.31908 6.20584 8.18574 6.01005 7.98994C5.81425 7.79415 5.68091 7.54469 5.6269 7.27312C5.57288 7.00155 5.6006 6.72006 5.70656 6.46424C5.81253 6.20842 5.99197 5.98977 6.2222 5.83594Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),MO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["EyeSlashIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.9414 6.74792C13.9437 6.75295 13.9455 6.757 13.9469 6.76003C13.982 6.8394 14.0001 6.9252 14.0001 7.01195C14.0001 7.0987 13.982 7.1845 13.9469 7.26386C13.6004 8.00059 13.1711 8.69549 12.6674 9.33515C12.6115 9.4071 12.54 9.46538 12.4582 9.50556C12.3765 9.54574 12.2866 9.56678 12.1955 9.56707C12.0834 9.56671 11.9737 9.53496 11.8788 9.47541C11.7838 9.41586 11.7074 9.3309 11.6583 9.23015C11.6092 9.12941 11.5893 9.01691 11.6008 8.90543C11.6124 8.79394 11.6549 8.68793 11.7237 8.5994C12.1065 8.09726 12.4437 7.56199 12.7313 6.99995C12.2595 6.08027 10.3402 2.8014 6.99732 2.8014C6.63723 2.80218 6.27816 2.83969 5.92569 2.91336C5.77666 2.93304 5.62568 2.89606 5.50263 2.80972C5.37958 2.72337 5.29344 2.59398 5.26125 2.44714C5.22907 2.30031 5.2532 2.14674 5.32885 2.01685C5.40451 1.88696 5.52618 1.79021 5.66978 1.74576C6.10574 1.64961 6.55089 1.60134 6.99732 1.60181C11.5916 1.60181 13.7864 6.40856 13.9414 6.74792ZM2.20333 1.61685C2.35871 1.61411 2.5091 1.67179 2.6228 1.77774L12.2195 11.3744C12.3318 11.4869 12.3949 11.6393 12.3949 11.7983C12.3949 11.9572 12.3318 12.1097 12.2195 12.2221C12.107 12.3345 11.9546 12.3976 11.7956 12.3976C11.6367 12.3976 11.4842 12.3345 11.3718 12.2221L10.5081 11.3584C9.46549 12.0426 8.24432 12.4042 6.99729 12.3981C2.403 12.3981 0.208197 7.59135 0.0532336 7.25198C0.0509364 7.24694 0.0490875 7.2429 0.0476856 7.23986C0.0162332 7.16518 3.05176e-05 7.08497 3.05176e-05 7.00394C3.05176e-05 6.92291 0.0162332 6.8427 0.0476856 6.76802C0.631261 5.47831 1.46902 4.31959 2.51084 3.36119L1.77509 2.62545C1.66914 2.51175 1.61146 2.36136 1.61421 2.20597C1.61695 2.05059 1.6799 1.90233 1.78979 1.79244C1.89968 1.68254 2.04794 1.6196 2.20333 1.61685ZM7.45314 8.35147L5.68574 6.57609V6.5361C5.5872 6.78938 5.56498 7.06597 5.62183 7.33173C5.67868 7.59749 5.8121 7.84078 6.00563 8.03158C6.19567 8.21043 6.43052 8.33458 6.68533 8.39089C6.94014 8.44721 7.20543 8.43359 7.45314 8.35147ZM1.26327 6.99994C1.7351 7.91163 3.64645 11.1985 6.99729 11.1985C7.9267 11.2048 8.8408 10.9618 9.64438 10.4947L8.35682 9.20718C7.86027 9.51441 7.27449 9.64491 6.69448 9.57752C6.11446 9.51014 5.57421 9.24881 5.16131 8.83592C4.74842 8.42303 4.4871 7.88277 4.41971 7.30276C4.35232 6.72274 4.48282 6.13697 4.79005 5.64041L3.35855 4.2089C2.4954 5.00336 1.78523 5.94935 1.26327 6.99994Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();const Zxe=["input"];function Yxe(t,i){if(1&t){const e=De();x(0,"TimesIcon",8),me("click",function(){return G(e),q(f(2).clear())}),A()}2&t&&(d("styleClass","p-password-clear-icon"),K("data-pc-section","clearIcon"))}function Xxe(t,i){}function Jxe(t,i){1&t&&g(0,Xxe,0,0,"ng-template")}function eAe(t,i){if(1&t){const e=De();we(0),g(1,Yxe,1,2,"TimesIcon",5),x(2,"span",6),me("click",function(){return G(e),q(f().clear())}),g(3,Jxe,1,0,null,7),A(),Te()}if(2&t){const e=f();h(1),d("ngIf",!e.clearIconTemplate),h(1),K("data-pc-section","clearIcon"),h(1),d("ngTemplateOutlet",e.clearIconTemplate)}}function tAe(t,i){if(1&t){const e=De();x(0,"EyeSlashIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","hideIcon")}function nAe(t,i){}function iAe(t,i){1&t&&g(0,nAe,0,0,"ng-template")}function oAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,iAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.hideIconTemplate)}}function sAe(t,i){if(1&t&&(we(0),g(1,tAe,1,1,"EyeSlashIcon",9),g(2,oAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.hideIconTemplate),h(1),d("ngIf",e.hideIconTemplate)}}function rAe(t,i){if(1&t){const e=De();x(0,"EyeIcon",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),A()}2&t&&K("data-pc-section","showIcon")}function aAe(t,i){}function lAe(t,i){1&t&&g(0,aAe,0,0,"ng-template")}function cAe(t,i){if(1&t){const e=De();x(0,"span",10),me("click",function(){return G(e),q(f(3).onMaskToggle())}),g(1,lAe,1,0,null,7),A()}if(2&t){const e=f(3);h(1),d("ngTemplateOutlet",e.showIconTemplate)}}function uAe(t,i){if(1&t&&(we(0),g(1,rAe,1,1,"EyeIcon",9),g(2,cAe,2,1,"span",9),Te()),2&t){const e=f(2);h(1),d("ngIf",!e.showIconTemplate),h(1),d("ngIf",e.showIconTemplate)}}function dAe(t,i){if(1&t&&(we(0),g(1,sAe,3,2,"ng-container",3),g(2,uAe,3,2,"ng-container",3),Te()),2&t){const e=f();h(1),d("ngIf",e.unmasked),h(1),d("ngIf",!e.unmasked)}}function pAe(t,i){1&t&&ze(0)}function hAe(t,i){1&t&&ze(0)}function fAe(t,i){if(1&t&&(we(0),g(1,hAe,1,0,"ng-container",7),Te()),2&t){const e=f(2);h(1),d("ngTemplateOutlet",e.contentTemplate)}}const gAe=function(t){return{width:t}};function mAe(t,i){if(1&t&&(x(0,"div",15),le(1,"div",0),Il(2,"mapper"),A(),x(3,"div",16),Le(4),A()),2&t){const e=f(2);K("data-pc-section","meter"),h(1),d("ngClass",Cl(2,6,e.meter,e.strengthClass))("ngStyle",He(9,gAe,e.meter?e.meter.width:"")),K("data-pc-section","meterLabel"),h(2),K("data-pc-section","info"),h(1),dt(e.infoText)}}function _Ae(t,i){1&t&&ze(0)}const IAe=function(t,i){return{showTransitionParams:t,hideTransitionParams:i}},CAe=function(t){return{value:"visible",params:t}};function vAe(t,i){if(1&t){const e=De();x(0,"div",11,12),me("click",function(o){return G(e),q(f().onOverlayClick(o))})("@overlayAnimation.start",function(o){return G(e),q(f().onAnimationStart(o))})("@overlayAnimation.done",function(o){return G(e),q(f().onAnimationEnd(o))}),g(2,pAe,1,0,"ng-container",7),g(3,fAe,2,1,"ng-container",13),g(4,mAe,5,11,"ng-template",null,14,In),g(6,_Ae,1,0,"ng-container",7),A()}if(2&t){const e=Bt(5),n=f();d("ngClass","p-password-panel p-component")("@overlayAnimation",He(10,CAe,mt(7,IAe,n.showTransitionOptions,n.hideTransitionOptions))),K("data-pc-section","panel"),h(2),d("ngTemplateOutlet",n.headerTemplate),h(1),d("ngIf",n.contentTemplate)("ngIfElse",e),h(3),d("ngTemplateOutlet",n.footerTemplate)}}let bAe=(()=>{class t{transform(e,n,...o){return n(e,...o)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=Vi({name:"mapper",type:t,pure:!0})}return t})();const yAe={provide:un,useExisting:ft(()=>xAe),multi:!0};let xAe=(()=>{class t{document;platformId;renderer;cd;config;el;overlayService;ariaLabel;ariaLabelledBy;label;disabled;promptLabel;mediumRegex="^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})";strongRegex="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})";weakLabel;mediumLabel;maxLength;strongLabel;inputId;feedback=!0;appendTo;toggleMask;inputStyleClass;styleClass;style;inputStyle;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autocomplete;placeholder;showClear=!1;onFocus=new ge;onBlur=new ge;onClear=new ge;input;contentTemplate;footerTemplate;headerTemplate;clearIconTemplate;hideIconTemplate;showIconTemplate;templates;overlayVisible=!1;meter;infoText;focused=!1;unmasked=!1;mediumCheckRegExp;strongCheckRegExp;resizeListener;scrollHandler;overlay;value=null;onModelChange=()=>{};onModelTouched=()=>{};translationSubscription;constructor(e,n,o,s,r,a,l){this.document=e,this.platformId=n,this.renderer=o,this.cd=s,this.config=r,this.el=a,this.overlayService=l}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"hideicon":this.hideIconTemplate=e.template;break;case"showicon":this.showIconTemplate=e.template}})}ngOnInit(){this.infoText=this.promptText(),this.mediumCheckRegExp=new RegExp(this.mediumRegex),this.strongCheckRegExp=new RegExp(this.strongRegex),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.updateUI(this.value||"")})}onAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,Wn.set("overlay",this.overlay,this.config.zIndex.overlay),this.appendContainer(),this.alignOverlay(),this.bindScrollListener(),this.bindResizeListener();break;case"void":this.unbindScrollListener(),this.unbindResizeListener(),this.overlay=null}}onAnimationEnd(e){"void"===e.toState&&Wn.clear(e.element)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).appendChild(this.overlay))}alignOverlay(){this.appendTo?(this.overlay.style.minWidth=j.getOuterWidth(this.input.nativeElement)+"px",j.absolutePosition(this.overlay,this.input.nativeElement)):j.relativePosition(this.overlay,this.input.nativeElement)}onInput(e){this.value=e.target.value,this.onModelChange(this.value)}onInputFocus(e){this.focused=!0,this.feedback&&(this.overlayVisible=!0),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.feedback&&(this.overlayVisible=!1),this.onModelTouched(),this.onBlur.emit(e)}onKeyUp(e){if(this.feedback){if(this.updateUI(e.target.value),"Escape"===e.code)return void(this.overlayVisible&&(this.overlayVisible=!1));this.overlayVisible||(this.overlayVisible=!0)}}updateUI(e){let n=null,o=null;switch(this.testStrength(e)){case 1:n=this.weakText(),o={strength:"weak",width:"33.33%"};break;case 2:n=this.mediumText(),o={strength:"medium",width:"66.66%"};break;case 3:n=this.strongText(),o={strength:"strong",width:"100%"};break;default:n=this.promptText(),o=null}this.meter=o,this.infoText=n}onMaskToggle(){this.unmasked=!this.unmasked}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}testStrength(e){let n=0;return this.strongCheckRegExp.test(e)?n=3:this.mediumCheckRegExp.test(e)?n=2:e.length&&(n=1),n}writeValue(e){this.value=void 0===e?null:e,this.feedback&&this.updateUI(this.value||""),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindScrollListener(){ei(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new Vu(this.input.nativeElement,()=>{this.overlayVisible&&(this.overlayVisible=!1)})),this.scrollHandler.bindScrollListener())}bindResizeListener(){ei(this.platformId)&&!this.resizeListener&&(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",()=>{this.overlayVisible&&!j.isTouchDevice()&&(this.overlayVisible=!1)}))}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}containerClass(e){return{"p-password p-component p-inputwrapper":!0,"p-input-icon-right":e}}inputFieldClass(e){return{"p-password-input":!0,"p-disabled":e}}strengthClass(e){return`p-password-strength ${e?e.strength:""}`}filled(){return null!=this.value&&this.value.toString().length>0}promptText(){return this.promptLabel||this.getTranslation(di.PASSWORD_PROMPT)}weakText(){return this.weakLabel||this.getTranslation(di.WEAK)}mediumText(){return this.mediumLabel||this.getTranslation(di.MEDIUM)}strongText(){return this.strongLabel||this.getTranslation(di.STRONG)}restoreAppend(){this.overlay&&this.appendTo&&("body"===this.appendTo?this.renderer.removeChild(this.document.body,this.overlay):this.document.getElementById(this.appendTo).removeChild(this.overlay))}inputType(e){return e?"text":"password"}getTranslation(e){return this.config.getTranslation(e)}clear(){this.value=null,this.onModelChange(this.value),this.writeValue(this.value),this.onClear.emit()}ngOnDestroy(){this.overlay&&(Wn.clear(this.overlay),this.overlay=null),this.restoreAppend(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(hn),V(Ft),V(ki),V(bt),V(Dr))};static \u0275cmp=Oe({type:t,selectors:[["p-password"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&je(Zxe,5),2&n){let s;Se(s=Ee())&&(o.input=s.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:8,hostBindings:function(n,o){2&n&&Ii("p-inputwrapper-filled",o.filled())("p-inputwrapper-focus",o.focused)("p-password-clearable",o.showClear)("p-password-mask",o.toggleMask)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",label:"label",disabled:"disabled",promptLabel:"promptLabel",mediumRegex:"mediumRegex",strongRegex:"strongRegex",weakLabel:"weakLabel",mediumLabel:"mediumLabel",maxLength:"maxLength",strongLabel:"strongLabel",inputId:"inputId",feedback:"feedback",appendTo:"appendTo",toggleMask:"toggleMask",inputStyleClass:"inputStyleClass",styleClass:"styleClass",style:"style",inputStyle:"inputStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autocomplete:"autocomplete",placeholder:"placeholder",showClear:"showClear"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClear:"onClear"},features:[yt([yAe])],decls:9,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","",3,"ngClass","ngStyle","value","input","focus","blur","keyup"],["input",""],[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],[1,"p-password-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass","click"],[3,"click",4,"ngIf"],[3,"click"],[3,"ngClass","click"],["overlay",""],[4,"ngIf","ngIfElse"],["content",""],[1,"p-password-meter"],["className","p-password-info"]],template:function(n,o){1&n&&(x(0,"div",0),Il(1,"mapper"),x(2,"input",1,2),me("input",function(r){return o.onInput(r)})("focus",function(r){return o.onInputFocus(r)})("blur",function(r){return o.onInputBlur(r)})("keyup",function(r){return o.onKeyUp(r)}),Il(4,"mapper"),Il(5,"mapper"),A(),g(6,eAe,4,3,"ng-container",3),g(7,dAe,3,2,"ng-container",3),g(8,vAe,7,12,"div",4),A()),2&n&&(Ve(o.styleClass),d("ngClass",Cl(1,23,o.toggleMask,o.containerClass))("ngStyle",o.style),K("data-pc-name","password")("data-pc-section","root"),h(2),Ve(o.inputStyleClass),d("ngClass",Cl(4,26,o.disabled,o.inputFieldClass))("ngStyle",o.inputStyle)("value",o.value),K("label",o.label)("aria-label",o.ariaLabel)("aria-labelledBy",o.ariaLabelledBy)("id",o.inputId)("type",Cl(5,29,o.unmasked,o.inputType))("placeholder",o.placeholder)("autocomplete",o.autocomplete)("maxlength",o.maxLength)("data-pc-section","input"),h(4),d("ngIf",o.showClear&&null!=o.value),h(1),d("ngIf",o.toggleMask),h(1),d("ngIf",o.overlayVisible))},dependencies:function(){return[Ct,gt,on,Ht,hC,mn,MO,kO,bAe]},styles:["@layer primeng{.p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}.p-password-input::-ms-reveal,.p-password-input::-ms-clear{display:none}.p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-password-clearable.p-password-mask .p-password-clear-icon{margin-top:unset}.p-password-clearable{position:relative}}\n"],encapsulation:2,data:{animation:[Oo("overlayAnimation",[Ln(":enter",[en({opacity:0,transform:"scaleY(0.8)"}),On("{{showTransitionParams}}")]),Ln(":leave",[On("{{hideTransitionParams}}",en({opacity:0}))])])]},changeDetection:0})}return t})(),AAe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs,mn,MO,kO,Qe]})}return t})();const Nwe={zIndex:1200};let Vwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({providers:[{provide:Lye,useValue:Nwe}],imports:[Xe,Mi,Qe,dn,rg,TO,gC,mC,SO,Or,_C,Zo,If,Qs,oO,Qe,rg]})}return t})();const Bwe=["input"],Hwe=function(t,i,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":i,"p-radiobutton-label-focus":e}};function zwe(t,i){if(1&t){const e=De();x(0,"label",7),me("click",function(o){return G(e),q(f().select(o))}),Le(1),A()}if(2&t){const e=f(),n=Bt(3);Ve(e.labelStyleClass),d("ngClass",Rn(6,Hwe,n.checked,e.disabled,e.focused)),K("for",e.inputId)("data-pc-section","label"),h(1),dt(e.label)}}const jwe=function(t,i,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":i,"p-radiobutton-focused":e}},Uwe=function(t,i,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}},$we={provide:un,useExisting:ft(()=>Gwe),multi:!0};let Kwe=(()=>{class t{accessors=[];add(e,n){this.accessors.push([e,n])}remove(e){this.accessors=this.accessors.filter(n=>n[1]!==e)}select(e){this.accessors.forEach(n=>{this.isSameGroup(n,e)&&n[1]!==e&&n[1].writeValue(e.value)})}isSameGroup(e,n){return!!e[0].control&&e[0].control.root===n.control.control.root&&e[1].name===n.name}static \u0275fac=function(n){return new(n||t)};static \u0275prov=nt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gwe=(()=>{class t{cd;injector;registry;value;formControlName;name;disabled;label;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;labelStyleClass;onClick=new ge;onFocus=new ge;onBlur=new ge;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;constructor(e,n,o){this.cd=e,this.injector=n,this.registry=o}ngOnInit(){this.control=this.injector.get(ds),this.checkName(),this.registry.add(this.control,this)}handleClick(e,n,o){e.preventDefault(),!this.disabled&&(this.select(e),o&&n.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}static \u0275fac=function(n){return new(n||t)(V(Ft),V($i),V(Kwe))};static \u0275cmp=Oe({type:t,selectors:[["p-radioButton"]],viewQuery:function(n,o){if(1&n&&je(Bwe,5),2&n){let s;Se(s=Ee())&&(o.inputViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([$we])],decls:7,vars:29,consts:[[3,"ngStyle","ngClass","click"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","value","focus","blur"],["input",""],[3,"ngClass"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(n,o){if(1&n){const s=De();x(0,"div",0),me("click",function(a){G(s);const l=Bt(3);return q(o.handleClick(a,l,!0))}),x(1,"div",1)(2,"input",2,3),me("focus",function(a){return o.onInputFocus(a)})("blur",function(a){return o.onInputBlur(a)}),A()(),x(4,"div",4),le(5,"span",5),A()(),g(6,zwe,2,10,"label",6)}2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",Rn(21,jwe,o.checked,o.disabled,o.focused)),K("data-pc-name","radiobutton")("data-pc-section","root"),h(1),K("data-pc-section","hiddenInputWrapper"),h(1),d("checked",o.checked)("disabled",o.disabled)("value",o.value),K("id",o.inputId)("name",o.name)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("tabindex",o.tabindex)("aria-checked",o.checked)("data-pc-section","hiddenInput"),h(2),d("ngClass",Rn(25,Uwe,o.checked,o.disabled,o.focused)),K("data-pc-section","input"),h(1),K("data-pc-section","icon"),h(1),d("ngIf",o.label))},dependencies:[Ct,gt,Ht],encapsulation:2,changeDetection:0})}return t})(),qwe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),FO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["BanIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7 0C5.61553 0 4.26215 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.00303296 5.6003 -0.13559 7.00776 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C14 5.14348 13.2625 3.36301 11.9497 2.05025C10.637 0.737498 8.85652 0 7 0ZM1.16667 7C1.16549 5.65478 1.63303 4.35118 2.48889 3.31333L10.6867 11.5111C9.83309 12.2112 8.79816 12.6544 7.70243 12.789C6.60669 12.9236 5.49527 12.744 4.49764 12.2713C3.50001 11.7986 2.65724 11.0521 2.06751 10.1188C1.47778 9.18558 1.16537 8.10397 1.16667 7ZM11.5111 10.6867L3.31334 2.48889C4.43144 1.57388 5.84966 1.10701 7.29265 1.1789C8.73565 1.2508 10.1004 1.85633 11.1221 2.87795C12.1437 3.89956 12.7492 5.26435 12.8211 6.70735C12.893 8.15034 12.4261 9.56856 11.5111 10.6867Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),RO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.9741 13.6721C10.8806 13.6719 10.7886 13.6483 10.7066 13.6033L7.00002 11.6545L3.29345 13.6033C3.19926 13.6539 3.09281 13.6771 2.98612 13.6703C2.87943 13.6636 2.77676 13.6271 2.6897 13.5651C2.60277 13.5014 2.53529 13.4147 2.4948 13.3148C2.45431 13.215 2.44241 13.1058 2.46042 12.9995L3.17881 8.87264L0.167699 5.95324C0.0922333 5.8777 0.039368 5.78258 0.0150625 5.67861C-0.00924303 5.57463 -0.00402231 5.46594 0.030136 5.36477C0.0621323 5.26323 0.122141 5.17278 0.203259 5.10383C0.284377 5.03488 0.383311 4.99023 0.488681 4.97501L4.63087 4.37126L6.48797 0.618832C6.54083 0.530159 6.61581 0.456732 6.70556 0.405741C6.79532 0.35475 6.89678 0.327942 7.00002 0.327942C7.10325 0.327942 7.20471 0.35475 7.29447 0.405741C7.38422 0.456732 7.4592 0.530159 7.51206 0.618832L9.36916 4.37126L13.5114 4.97501C13.6167 4.99023 13.7157 5.03488 13.7968 5.10383C13.8779 5.17278 13.9379 5.26323 13.9699 5.36477C14.0041 5.46594 14.0093 5.57463 13.985 5.67861C13.9607 5.78258 13.9078 5.8777 13.8323 5.95324L10.8212 8.87264L11.532 12.9995C11.55 13.1058 11.5381 13.215 11.4976 13.3148C11.4571 13.4147 11.3896 13.5014 11.3027 13.5651C11.2059 13.632 11.0917 13.6692 10.9741 13.6721ZM7.00002 10.4393C7.09251 10.4404 7.18371 10.4613 7.2675 10.5005L10.2098 12.029L9.65193 8.75036C9.6368 8.6584 9.64343 8.56418 9.6713 8.47526C9.69918 8.38633 9.74751 8.30518 9.81242 8.23832L12.1969 5.94559L8.90298 5.45648C8.81188 5.44198 8.72555 5.406 8.65113 5.35152C8.57671 5.29703 8.51633 5.2256 8.475 5.14314L7.00002 2.1626L5.52503 5.15078C5.4837 5.23324 5.42332 5.30467 5.3489 5.35916C5.27448 5.41365 5.18815 5.44963 5.09705 5.46412L1.80318 5.94559L4.18761 8.23832C4.25252 8.30518 4.30085 8.38633 4.32873 8.47526C4.3566 8.56418 4.36323 8.6584 4.3481 8.75036L3.7902 12.0519L6.73253 10.5234C6.81451 10.4762 6.9058 10.4475 7.00002 10.4393Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})(),NO=(()=>{class t extends Rt{pathId;ngOnInit(){this.pathId="url(#"+$t()+")"}static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["StarFillIcon"]],standalone:!0,features:[st,Et],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.9718 5.36453C13.9398 5.26298 13.8798 5.17252 13.7986 5.10356C13.7175 5.0346 13.6186 4.98994 13.5132 4.97472L9.37043 4.37088L7.51307 0.617955C7.46021 0.529271 7.38522 0.455834 7.29545 0.404836C7.20568 0.353838 7.1042 0.327026 7.00096 0.327026C6.89771 0.327026 6.79624 0.353838 6.70647 0.404836C6.6167 0.455834 6.54171 0.529271 6.48885 0.617955L4.63149 4.37088L0.488746 4.97472C0.383363 4.98994 0.284416 5.0346 0.203286 5.10356C0.122157 5.17252 0.0621407 5.26298 0.03014 5.36453C-0.00402286 5.46571 -0.00924428 5.57442 0.0150645 5.67841C0.0393733 5.7824 0.0922457 5.87753 0.167722 5.95308L3.17924 8.87287L2.4684 13.0003C2.45038 13.1066 2.46229 13.2158 2.50278 13.3157C2.54328 13.4156 2.61077 13.5022 2.6977 13.5659C2.78477 13.628 2.88746 13.6644 2.99416 13.6712C3.10087 13.678 3.20733 13.6547 3.30153 13.6042L7.00096 11.6551L10.708 13.6042C10.79 13.6491 10.882 13.6728 10.9755 13.673C11.0958 13.6716 11.2129 13.6343 11.3119 13.5659C11.3988 13.5022 11.4663 13.4156 11.5068 13.3157C11.5473 13.2158 11.5592 13.1066 11.5412 13.0003L10.8227 8.87287L13.8266 5.95308C13.9033 5.87835 13.9577 5.7836 13.9833 5.67957C14.009 5.57554 14.005 5.4664 13.9718 5.36453Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0)(1,"g"),le(2,"path",1),A(),x(3,"defs")(4,"clipPath",2),le(5,"rect",3),A()()()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),h(1),K("clip-path",o.pathId),h(3),d("id",o.pathId))},encapsulation:2})}return t})();function Wwe(t,i){if(1&t&&le(0,"span",10),2&t){const e=f(3);d("ngClass",e.iconCancelClass)("ngStyle",e.iconCancelStyle)}}function Qwe(t,i){if(1&t&&le(0,"BanIcon",11),2&t){const e=f(3);d("styleClass","p-rating-icon p-rating-cancel")("ngStyle",e.iconCancelStyle),K("data-pc-section","cancelIcon")}}const Zwe=function(t){return{"p-focus":t}};function Ywe(t,i){if(1&t){const e=De();x(0,"div",5),me("click",function(o){return G(e),q(f(2).onOptionClick(o,0))}),x(1,"span",6)(2,"input",7),me("focus",function(o){return G(e),q(f(2).onInputFocus(o,0))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){return G(e),q(f(2).onChange(o,0))}),A()(),g(3,Wwe,1,2,"span",8),g(4,Qwe,1,3,"BanIcon",9),A()}if(2&t){const e=f(2);d("ngClass",He(10,Zwe,0===e.focusedOptionIndex()&&e.isFocusVisible)),K("data-pc-section","cancelItem"),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",e.name)("checked",0===e.value)("disabled",e.disabled)("readonly",e.readonly),K("aria-label",e.cancelAriaLabel()),h(1),d("ngIf",e.iconCancelClass),h(1),d("ngIf",!e.iconCancelClass)}}function Xwe(t,i){if(1&t&&le(0,"span",16),2&t){const e=f(4);d("ngStyle",e.iconOffStyle)("ngClass",e.iconOffClass),K("data-pc-section","offIcon")}}function Jwe(t,i){1&t&&le(0,"StarIcon",17),2&t&&(d("ngStyle",f(4).iconOffStyle)("styleClass","p-rating-icon"),K("data-pc-section","offIcon"))}function e2e(t,i){if(1&t&&(we(0),g(1,Xwe,1,3,"span",14),g(2,Jwe,1,3,"StarIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOffClass),h(1),d("ngIf",!e.iconOffClass)}}function t2e(t,i){if(1&t&&le(0,"span",19),2&t){const e=f(4);d("ngStyle",e.iconOnStyle)("ngClass",e.iconOnClass),K("data-pc-section","onIcon")}}function n2e(t,i){1&t&&le(0,"StarFillIcon",17),2&t&&(d("ngStyle",f(4).iconOnStyle)("styleClass","p-rating-icon p-rating-icon-active"),K("data-pc-section","onIcon"))}function i2e(t,i){if(1&t&&(we(0),g(1,t2e,1,3,"span",18),g(2,n2e,1,3,"StarFillIcon",15),Te()),2&t){const e=f(3);h(1),d("ngIf",e.iconOnClass),h(1),d("ngIf",!e.iconOnClass)}}const o2e=function(t,i){return{"p-rating-item-active":t,"p-focus":i}};function s2e(t,i){if(1&t){const e=De();x(0,"div",12),me("click",function(o){const r=G(e).$implicit;return q(f(2).onOptionClick(o,r+1))}),x(1,"span",6)(2,"input",7),me("focus",function(o){const r=G(e).$implicit;return q(f(2).onInputFocus(o,r+1))})("blur",function(o){return G(e),q(f(2).onInputBlur(o))})("change",function(o){const r=G(e).$implicit;return q(f(2).onChange(o,r+1))}),A()(),g(3,e2e,3,2,"ng-container",13),g(4,i2e,3,2,"ng-container",13),A()}if(2&t){const e=i.$implicit,n=i.index,o=f(2);d("ngClass",mt(9,o2e,e+1<=o.value,e+1===o.focusedOptionIndex()&&o.isFocusVisible)),h(1),K("data-p-hidden-accessible",!0),h(1),d("name",o.name)("checked",0===o.value)("disabled",o.disabled)("readonly",o.readonly),K("aria-label",o.starAriaLabel(e+1)),h(1),d("ngIf",!o.value||n>=o.value),h(1),d("ngIf",o.value&&nf2e),multi:!0};let f2e=(()=>{class t{cd;config;disabled;readonly;stars=5;cancel=!0;iconOnClass;iconOnStyle;iconOffClass;iconOffStyle;iconCancelClass;iconCancelStyle;onRate=new ge;onCancel=new ge;onFocus=new ge;onBlur=new ge;templates;onIconTemplate;offIconTemplate;cancelIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};starsArray;isFocusVisibleItem=!0;focusedOptionIndex=bn(-1);name;constructor(e,n){this.cd=e,this.config=n}ngOnInit(){this.name=this.name||$t(),this.starsArray=[];for(let e=0;e{switch(e.getType()){case"onicon":this.onIconTemplate=e.template;break;case"officon":this.offIconTemplate=e.template;break;case"cancelicon":this.cancelIconTemplate=e.template}})}onOptionClick(e,n){if(!this.readonly&&!this.disabled){this.onOptionSelect(e,n),this.isFocusVisibleItem=!1;const o=j.getFirstFocusableElement(e.currentTarget,"");o&&j.focus(o)}}onOptionSelect(e,n){this.focusedOptionIndex.set(n),this.updateModel(e,n||null)}onChange(e,n){this.onOptionSelect(e,n),this.isFocusVisibleItem=!0}onInputBlur(e){this.focusedOptionIndex.set(-1),this.onBlur.emit(e)}onInputFocus(e,n){this.focusedOptionIndex.set(n),this.onFocus.emit(e)}updateModel(e,n){this.value=n,this.onModelChange(this.value),this.onModelTouched(),n?this.onRate.emit({originalEvent:e,value:n}):this.onCancel.emit()}cancelAriaLabel(){return this.config.translation.clear}starAriaLabel(e){return 1===e?this.config.translation.aria.star:this.config.translation.aria.stars.replace(/{star}/g,e)}getIconTemplate(e){return!this.value||e>=this.value?this.offIconTemplate:this.onIconTemplate}writeValue(e){this.value=e,this.cd.detectChanges()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get isCustomIcon(){return this.templates&&this.templates.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft),V(ki))};static \u0275cmp=Oe({type:t,selectors:[["p-rating"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",readonly:"readonly",stars:"stars",cancel:"cancel",iconOnClass:"iconOnClass",iconOnStyle:"iconOnStyle",iconOffClass:"iconOffClass",iconOffStyle:"iconOffStyle",iconCancelClass:"iconCancelClass",iconCancelStyle:"iconCancelStyle"},outputs:{onRate:"onRate",onCancel:"onCancel",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([h2e])],decls:4,vars:8,consts:[[1,"p-rating",3,"ngClass"],[4,"ngIf","ngIfElse"],["customTemplate",""],["class","p-rating-item p-rating-cancel-item",3,"ngClass","click",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-rating-item","p-rating-cancel-item",3,"ngClass","click"],[1,"p-hidden-accessible"],["type","radio","value","0",3,"name","checked","disabled","readonly","focus","blur","change"],["class","p-rating-icon p-rating-cancel",3,"ngClass","ngStyle",4,"ngIf"],[3,"styleClass","ngStyle",4,"ngIf"],[1,"p-rating-icon","p-rating-cancel",3,"ngClass","ngStyle"],[3,"styleClass","ngStyle"],[1,"p-rating-item",3,"ngClass","click"],[4,"ngIf"],["class","p-rating-icon",3,"ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","styleClass",4,"ngIf"],[1,"p-rating-icon",3,"ngStyle","ngClass"],[3,"ngStyle","styleClass"],["class","p-rating-icon p-rating-icon-active",3,"ngStyle","ngClass",4,"ngIf"],[1,"p-rating-icon","p-rating-icon-active",3,"ngStyle","ngClass"],["class","p-rating-icon p-rating-cancel",3,"ngStyle","click",4,"ngIf"],["class","p-rating-icon",3,"click",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngStyle","click"],[4,"ngTemplateOutlet"],[1,"p-rating-icon",3,"click"]],template:function(n,o){if(1&n&&(x(0,"div",0),g(1,r2e,3,2,"ng-container",1),g(2,d2e,2,2,"ng-template",null,2,In),A()),2&n){const s=Bt(3);d("ngClass",mt(5,p2e,o.readonly,o.disabled)),K("data-pc-name","rating")("data-pc-section","root"),h(1),d("ngIf",!o.isCustomIcon)("ngIfElse",s)}},dependencies:function(){return[Ct,Jn,gt,on,Ht,NO,RO,FO]},styles:["@layer primeng{.p-rating{display:inline-flex}.p-rating-icon{cursor:pointer}.p-rating.p-rating-readonly .p-rating-icon{cursor:default}}\n"],encapsulation:2,changeDetection:0})}return t})(),g2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,NO,RO,FO,Qe]})}return t})();const m2e=["container"],_2e=["content"],I2e=["xBar"],C2e=["yBar"];function v2e(t,i){1&t&&ze(0)}const b2e=["*"];let y2e=(()=>{class t{platformId;el;zone;cd;document;renderer;style;styleClass;step=5;containerViewChild;contentViewChild;xBarViewChild;yBarViewChild;templates;scrollYRatio;scrollXRatio;timeoutFrame=e=>setTimeout(e,0);initialized=!1;lastPageY;lastPageX;isXBarClicked=!1;isYBarClicked=!1;contentTemplate;lastScrollLeft=0;lastScrollTop=0;orientation="vertical";timer;windowResizeListener;contentScrollListener;mouseEnterListener;xBarMouseDownListener;yBarMouseDownListener;documentMouseMoveListener;documentMouseUpListener;constructor(e,n,o,s,r,a){this.platformId=e,this.el=n,this.zone=o,this.cd=s,this.document=r,this.renderer=a}ngAfterViewInit(){ei(this.platformId)&&this.zone.runOutsideAngular(()=>{this.moveBar(),this.moveBar=this.moveBar.bind(this),this.onXBarMouseDown=this.onXBarMouseDown.bind(this),this.onYBarMouseDown=this.onYBarMouseDown.bind(this),this.onDocumentMouseMove=this.onDocumentMouseMove.bind(this),this.onDocumentMouseUp=this.onDocumentMouseUp.bind(this),this.windowResizeListener=this.renderer.listen(window,"resize",this.moveBar),this.contentScrollListener=this.renderer.listen(this.contentViewChild.nativeElement,"scroll",this.moveBar),this.mouseEnterListener=this.renderer.listen(this.contentViewChild.nativeElement,"mouseenter",this.moveBar),this.xBarMouseDownListener=this.renderer.listen(this.xBarViewChild.nativeElement,"mousedown",this.onXBarMouseDown),this.yBarMouseDownListener=this.renderer.listen(this.yBarViewChild.nativeElement,"mousedown",this.onYBarMouseDown),this.calculateContainerHeight(),this.initialized=!0})}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}calculateContainerHeight(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement;const s=this.document.defaultView;let r=s.getComputedStyle(e),a=s.getComputedStyle(o),l=j.getHeight(e)-parseInt(a.height,10);"none"!=r["max-height"]&&0==l&&(e.style.height=n.offsetHeight+parseInt(a.height,10)>parseInt(r["max-height"],10)?r["max-height"]:n.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}moveBar(){let e=this.containerViewChild.nativeElement,n=this.contentViewChild.nativeElement,o=this.xBarViewChild.nativeElement,s=n.scrollWidth,r=n.clientWidth,a=-1*(e.clientHeight-o.clientHeight);this.scrollXRatio=r/s;let l=this.yBarViewChild.nativeElement,c=n.scrollHeight,u=n.clientHeight,p=-1*(e.clientWidth-l.clientWidth);this.scrollYRatio=u/c,this.requestAnimationFrame(()=>{if(this.scrollXRatio>=1)o.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(o,"p-scrollpanel-hidden");else{o.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(o,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollXRatio,10);o.style.cssText="width:"+m+"%; left:"+n.scrollLeft*(100-m)/(s-r)+"%;bottom:"+a+"px;"}if(this.scrollYRatio>=1)l.setAttribute("data-p-scrollpanel-hidden","true"),j.addClass(l,"p-scrollpanel-hidden");else{l.setAttribute("data-p-scrollpanel-hidden","false"),j.removeClass(l,"p-scrollpanel-hidden");const m=Math.max(100*this.scrollYRatio,10);l.style.cssText="height:"+m+"%; top: calc("+n.scrollTop*(100-m)/(c-u)+"% - "+o.clientHeight+"px);right:"+p+"px;"}}),this.cd.markForCheck()}onScroll(e){this.lastScrollLeft!==e.target.scrollLeft?(this.lastScrollLeft=e.target.scrollLeft,this.orientation="horizontal"):this.lastScrollTop!==e.target.scrollTop&&(this.lastScrollTop=e.target.scrollTop,this.orientation="vertical"),this.moveBar()}onKeyDown(e){if("vertical"===this.orientation)switch(e.code){case"ArrowDown":this.setTimer("scrollTop",this.step),e.preventDefault();break;case"ArrowUp":this.setTimer("scrollTop",-1*this.step),e.preventDefault();break;case"ArrowLeft":case"ArrowRight":e.preventDefault()}else if("horizontal"===this.orientation)switch(e.code){case"ArrowRight":this.setTimer("scrollLeft",this.step),e.preventDefault();break;case"ArrowLeft":this.setTimer("scrollLeft",-1*this.step),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}onKeyUp(){this.clearTimer()}repeat(e,n){this.contentViewChild.nativeElement[e]+=n,this.moveBar()}setTimer(e,n){this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,n)},40)}clearTimer(){this.timer&&clearTimeout(this.timer)}bindDocumentMouseListeners(){this.documentMouseMoveListener||(this.documentMouseMoveListener=e=>{this.onDocumentMouseMove(e)},this.document.addEventListener("mousemove",this.documentMouseMoveListener)),this.documentMouseUpListener||(this.documentMouseUpListener=e=>{this.onDocumentMouseUp(e)},this.document.addEventListener("mouseup",this.documentMouseUpListener))}unbindDocumentMouseListeners(){this.documentMouseMoveListener&&(this.document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null),this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)}onYBarMouseDown(e){this.isYBarClicked=!0,this.yBarViewChild.nativeElement.focus(),this.lastPageY=e.pageY,this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","true"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onXBarMouseDown(e){this.isXBarClicked=!0,this.xBarViewChild.nativeElement.focus(),this.lastPageX=e.pageX,this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.addClass(this.document.body,"p-scrollpanel-grabbed"),this.bindDocumentMouseListeners(),e.preventDefault()}onDocumentMouseMove(e){this.isXBarClicked?this.onMouseMoveForXBar(e):(this.isYBarClicked||this.onMouseMoveForXBar(e),this.onMouseMoveForYBar(e))}onMouseMoveForXBar(e){let n=e.pageX-this.lastPageX;this.lastPageX=e.pageX,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollLeft+=n/this.scrollXRatio})}onMouseMoveForYBar(e){let n=e.pageY-this.lastPageY;this.lastPageY=e.pageY,this.requestAnimationFrame(()=>{this.contentViewChild.nativeElement.scrollTop+=n/this.scrollYRatio})}scrollTop(e){let n=this.contentViewChild.nativeElement.scrollHeight-this.contentViewChild.nativeElement.clientHeight;this.contentViewChild.nativeElement.scrollTop=e=e>n?n:e>0?e:0}onFocus(e){this.xBarViewChild.nativeElement.isSameNode(e.target)?this.orientation="horizontal":this.yBarViewChild.nativeElement.isSameNode(e.target)&&(this.orientation="vertical")}onBlur(){"horizontal"===this.orientation&&(this.orientation="vertical")}onDocumentMouseUp(e){this.yBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.yBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.xBarViewChild.nativeElement.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.xBarViewChild.nativeElement,"p-scrollpanel-grabbed"),this.document.body.setAttribute("data-p-scrollpanel-grabbed","false"),j.removeClass(this.document.body,"p-scrollpanel-grabbed"),this.unbindDocumentMouseListeners(),this.isXBarClicked=!1,this.isYBarClicked=!1}requestAnimationFrame(e){(window.requestAnimationFrame||this.timeoutFrame)(e)}unbindListeners(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null),this.contentScrollListener&&(this.contentScrollListener(),this.contentScrollListener=null),this.mouseEnterListener&&(this.mouseEnterListener(),this.mouseEnterListener=null),this.xBarMouseDownListener&&(this.xBarMouseDownListener(),this.xBarMouseDownListener=null),this.yBarMouseDownListener&&(this.yBarMouseDownListener(),this.yBarMouseDownListener=null)}ngOnDestroy(){this.initialized&&this.unbindListeners()}refresh(){this.moveBar()}static \u0275fac=function(n){return new(n||t)(V($n),V(bt),V(Tt),V(Ft),V(Wt),V(hn))};static \u0275cmp=Oe({type:t,selectors:[["p-scrollPanel"]],contentQueries:function(n,o,s){if(1&n&&Gt(s,sn,4),2&n){let r;Se(r=Ee())&&(o.templates=r)}},viewQuery:function(n,o){if(1&n&&(je(m2e,5),je(_2e,5),je(I2e,5),je(C2e,5)),2&n){let s;Se(s=Ee())&&(o.containerViewChild=s.first),Se(s=Ee())&&(o.contentViewChild=s.first),Se(s=Ee())&&(o.xBarViewChild=s.first),Se(s=Ee())&&(o.yBarViewChild=s.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",step:"step"},ngContentSelectors:b2e,decls:11,vars:14,consts:[[3,"ngClass","ngStyle"],["container",""],[1,"p-scrollpanel-wrapper"],[1,"p-scrollpanel-content",3,"mouseenter","scroll"],["content",""],[4,"ngTemplateOutlet"],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-x",3,"mousedown","keydown","keyup","focus","blur"],["xBar",""],["tabindex","0","role","scrollbar",1,"p-scrollpanel-bar","p-scrollpanel-bar-y",3,"mousedown","keydown","keyup","focus"],["yBar",""]],template:function(n,o){1&n&&(Ti(),x(0,"div",0,1)(2,"div",2)(3,"div",3,4),me("mouseenter",function(){return o.moveBar()})("scroll",function(r){return o.onScroll(r)}),Kn(5),g(6,v2e,1,0,"ng-container",5),A()(),x(7,"div",6,7),me("mousedown",function(r){return o.onXBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)})("blur",function(){return o.onBlur()}),A(),x(9,"div",8,9),me("mousedown",function(r){return o.onYBarMouseDown(r)})("keydown",function(r){return o.onKeyDown(r)})("keyup",function(){return o.onKeyUp()})("focus",function(r){return o.onFocus(r)}),A()()),2&n&&(Ve(o.styleClass),d("ngClass","p-scrollpanel p-component")("ngStyle",o.style),K("data-pc-name","scrollpanel"),h(2),K("data-pc-section","wrapper"),h(1),K("data-pc-section","content"),h(3),d("ngTemplateOutlet",o.contentTemplate),h(1),K("aria-orientation","horizontal")("aria-valuenow",o.lastScrollLeft)("data-pc-section","barx"),h(2),K("aria-orientation","vertical")("aria-valuenow",o.lastScrollTop)("data-pc-section","bary"))},dependencies:[Ct,on,Ht],styles:["@layer primeng{.p-scrollpanel-wrapper{overflow:hidden;width:100%;height:100%;position:relative;float:left}.p-scrollpanel-content{height:calc(100% + 18px);width:calc(100% + 18px);padding:0 18px 18px 0;position:relative;overflow:auto;box-sizing:border-box}.p-scrollpanel-bar{position:relative;background:#c1c1c1;border-radius:3px;cursor:pointer;opacity:0;transition:opacity .25s linear}.p-scrollpanel-bar-y{width:9px;top:0}.p-scrollpanel-bar-x{height:9px;bottom:0}.p-scrollpanel-hidden{visibility:hidden}.p-scrollpanel:hover .p-scrollpanel-bar,.p-scrollpanel:active .p-scrollpanel-bar{opacity:1}.p-scrollpanel-grabbed{-webkit-user-select:none;user-select:none}}\n"],encapsulation:2,changeDetection:0})}return t})(),x2e=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),A2e=(()=>{class t extends Rt{static \u0275fac=function(){let e;return function(o){return(e||(e=lt(t)))(o||t)}}();static \u0275cmp=Oe({type:t,selectors:[["CaretLeftIcon"]],standalone:!0,features:[st,Et],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.5553 13C10.411 13.0006 10.2704 12.9538 10.1554 12.8667L3.04473 7.53369C2.96193 7.4716 2.89474 7.39108 2.84845 7.29852C2.80217 7.20595 2.77808 7.10388 2.77808 7.00039C2.77808 6.8969 2.80217 6.79484 2.84845 6.70227C2.89474 6.60971 2.96193 6.52919 3.04473 6.4671L10.1554 1.13412C10.2549 1.05916 10.3734 1.0136 10.4976 1.0026C10.6217 0.991605 10.7464 1.01561 10.8575 1.0719C10.9668 1.12856 11.0584 1.21398 11.1226 1.31893C11.1869 1.42388 11.2212 1.54438 11.222 1.66742V12.3334C11.2212 12.4564 11.1869 12.5769 11.1226 12.6819C11.0584 12.7868 10.9668 12.8722 10.8575 12.9289C10.7629 12.9735 10.6599 12.9977 10.5553 13ZM4.55574 7.00039L9.88871 11.0001V3.00066L4.55574 7.00039Z","fill","currentColor"]],template:function(n,o){1&n&&(Mt(),x(0,"svg",0),le(1,"path",1),A()),2&n&&(Ve(o.getClassNames()),K("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),eTe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,A2e,qn,Nn,Qe]})}return t})();const tTe=["sliderHandle"],nTe=["sliderHandleStart"],iTe=["sliderHandleEnd"],oTe=function(t,i){return{left:t,width:i}};function sTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,oTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const rTe=function(t,i){return{bottom:t,height:i}};function aTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",mt(2,rTe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),K("data-pc-section","range")}}const lTe=function(t){return{height:t}};function cTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,lTe,e.handleValue+"%")),K("data-pc-section","range")}}const uTe=function(t){return{width:t}};function dTe(t,i){if(1&t&&le(0,"span",5),2&t){const e=f();d("ngStyle",He(2,uTe,e.handleValue+"%")),K("data-pc-section","range")}}const Pv=function(t,i){return{left:t,bottom:i}};function pTe(t,i){if(1&t){const e=De();x(0,"span",6,7),me("touchstart",function(o){return G(e),q(f().onDragStart(o))})("touchmove",function(o){return G(e),q(f().onDrag(o))})("touchend",function(o){return G(e),q(f().onDragEnd(o))})("mousedown",function(o){return G(e),q(f().onMouseDown(o))})("keydown",function(o){return G(e),q(f().onKeyDown(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(11,Pv,"horizontal"==e.orientation?e.handleValue+"%":null,"vertical"==e.orientation?e.handleValue+"%":null)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","handle")}}const BO=function(t){return{"p-slider-handle-active":t}};function hTe(t,i){if(1&t){const e=De();x(0,"span",8,9),me("keydown",function(o){return G(e),q(f().onKeyDown(o,0))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,0))})("touchstart",function(o){return G(e),q(f().onDragStart(o,0))})("touchmove",function(o){return G(e),q(f().onDrag(o,0))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeStartLeft,e.rangeStartBottom))("ngClass",He(15,BO,0==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[0]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","startHandler")}}function fTe(t,i){if(1&t){const e=De();x(0,"span",10,11),me("keydown",function(o){return G(e),q(f().onKeyDown(o,1))})("mousedown",function(o){return G(e),q(f().onMouseDown(o,1))})("touchstart",function(o){return G(e),q(f().onDragStart(o,1))})("touchmove",function(o){return G(e),q(f().onDrag(o,1))})("touchend",function(o){return G(e),q(f().onDragEnd(o))}),A()}if(2&t){const e=f();fo("transition",e.dragging?"none":null),d("ngStyle",mt(12,Pv,e.rangeEndLeft,e.rangeEndBottom))("ngClass",He(15,BO,1==e.handleIndex)),K("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[1]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","endHandler")}}const gTe=function(t,i,e,n){return{"p-slider p-component":!0,"p-disabled":t,"p-slider-horizontal":i,"p-slider-vertical":e,"p-slider-animate":n}},mTe={provide:un,useExisting:ft(()=>_Te),multi:!0};let _Te=(()=>{class t{document;platformId;el;renderer;ngZone;cd;animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;onChange=new ge;onSlideEnd=new ge;sliderHandle;sliderHandleStart;sliderHandleEnd;value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;constructor(e,n,o,s,r,a){this.document=e,this.platformId=n,this.el=o,this.renderer=s,this.ngZone=r,this.cd=a}onMouseDown(e,n){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,this.bindDragListeners(),e.target.focus(),e.preventDefault(),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(e,n){if(!this.disabled){var o=e.changedTouches[0];this.startHandleValue=this.range?this.handleValues[n]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:n,"horizontal"===this.orientation?(this.startx=parseInt(o.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(o.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&j.removeClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault()}}onDrag(e){if(!this.disabled){var o,n=e.changedTouches[0];o="horizontal"===this.orientation?Math.floor(100*(parseInt(n.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(n.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(e,o),e.preventDefault()}}onDragEnd(e){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault())}onBarClick(e){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(e),this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(e,n){switch(this.handleIndex=n,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,n),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,n),e.preventDefault();break;case"PageDown":this.decrementValue(e,n,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,n,!0),e.preventDefault();break;case"Home":this.updateValue(this.min,e),e.preventDefault();break;case"End":this.updateValue(this.max,e),e.preventDefault()}}decrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]-this.step:this.values[n]-1:this.step?this.value-this.step:!this.step&&o?this.value-10:this.value-1,this.updateValue(s,e),e.preventDefault()}incrementValue(e,n,o=!1){let s;s=this.range?this.step?this.values[n]+this.step:this.values[n]+1:this.step?this.value+this.step:!this.step&&o?this.value+10:this.value+1,this.updateValue(s,e),e.preventDefault()}handleChange(e){let n=this.calculateHandleValue(e);this.setValueFromHandle(e,n)}bindDragListeners(){ei(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const e=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(e,"mousemove",n=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(n)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(e,"mouseup",n=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:n,values:this.values}:{originalEvent:n,value:this.value}),this.animate&&j.addClass(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(e,n){let o=this.getValueFromHandle(n);this.range?this.step?this.handleStepChange(o,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=n,this.updateValue(o,e)):this.step?this.handleStepChange(o,this.value):(this.handleValue=n,this.updateValue(o,e)),this.cd.markForCheck()}handleStepChange(e,n){let o=e-n,s=n,r=this.step;o<0?s=n+Math.ceil(e/r-n/r)*r:o>0&&(s=n+Math.floor(e/r-n/r)*r),this.updateValue(s),this.updateHandleValue()}writeValue(e){this.range?this.values=e||[0,0]:this.value=e||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let e=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=e.left+j.getWindowScrollLeft(),this.initY=e.top+j.getWindowScrollTop(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(e){return"horizontal"===this.orientation?100*(e.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-e.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.valuethis.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(e,n){if(this.range){let o=e;0==this.handleIndex?(othis.values[1]&&o>this.max&&(o=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(o>this.max?(o=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):othis.max&&(e=this.max,this.handleValue=100),this.value=this.getNormalizedValue(e),this.onModelChange(this.value),this.onChange.emit({event:n,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(e){return e/100*(this.max-this.min)+this.min}getDecimalsCount(e){return e&&Math.floor(e)!==e&&e.toString().split(".")[1].length||0}getNormalizedValue(e){let n=this.getDecimalsCount(this.step);return n>0?+parseFloat(e.toString()).toFixed(n):Math.floor(e)}ngOnDestroy(){this.unbindDragListeners()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=function(n){return new(n||t)(V(Wt),V($n),V(bt),V(hn),V(Tt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-slider"]],viewQuery:function(n,o){if(1&n&&(je(tTe,5),je(nTe,5),je(iTe,5)),2&n){let s;Se(s=Ee())&&(o.sliderHandle=s.first),Se(s=Ee())&&(o.sliderHandleStart=s.first),Se(s=Ee())&&(o.sliderHandleEnd=s.first)}},hostAttrs:[1,"p-element"],inputs:{animate:"animate",disabled:"disabled",min:"min",max:"max",orientation:"orientation",step:"step",range:"range",style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex"},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[yt([mTe])],decls:8,vars:18,consts:[[3,"ngStyle","ngClass","click"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"ngStyle","touchstart","touchmove","touchend","mousedown","keydown"],["sliderHandle",""],["role","slider",1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleStart",""],[1,"p-slider-handle",3,"ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend"],["sliderHandleEnd",""]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.onBarClick(r)}),g(1,sTe,1,5,"span",1),g(2,aTe,1,5,"span",1),g(3,cTe,1,4,"span",1),g(4,dTe,1,4,"span",1),g(5,pTe,2,14,"span",2),g(6,hTe,2,17,"span",3),g(7,fTe,2,17,"span",4),A()),2&n&&(Ve(o.styleClass),d("ngStyle",o.style)("ngClass",gr(13,gTe,o.disabled,"horizontal"==o.orientation,"vertical"==o.orientation,o.animate)),K("data-pc-name","slider")("data-pc-section","root"),h(1),d("ngIf",o.range&&"horizontal"==o.orientation),h(1),d("ngIf",o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"vertical"==o.orientation),h(1),d("ngIf",!o.range&&"horizontal"==o.orientation),h(1),d("ngIf",!o.range),h(1),d("ngIf",o.range),h(1),d("ngIf",o.range))},dependencies:[Ct,gt,Ht],styles:["@layer primeng{.p-slider{position:relative}.p-slider .p-slider-handle{position:absolute;cursor:grab;touch-action:none;display:block}.p-slider-range{position:absolute;display:block}.p-slider-horizontal .p-slider-range{top:0;left:0;height:100%}.p-slider-horizontal .p-slider-handle{top:50%}.p-slider-vertical{height:100px}.p-slider-vertical .p-slider-handle{left:50%}.p-slider-vertical .p-slider-range{bottom:0;left:0;width:100%}}\n"],encapsulation:2,changeDetection:0})}return t})(),ITe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})();const CTe=["inputfield"],vTe=function(t){return{"ui-spinner-button ui-spinner-up ui-corner-tr ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},bTe=function(t){return{"ui-spinner-button ui-spinner-down ui-corner-br ui-button ui-widget ui-state-default":!0,"ui-state-disabled":t}},yTe={provide:un,useExisting:ft(()=>xTe),multi:!0};let xTe=(()=>{class t{el;cd;onChange=new ge;onFocus=new ge;onBlur=new ge;min;max;maxlength;size;placeholder;inputId;disabled;readonly;tabindex;required;name;ariaLabelledBy;inputStyle;inputStyleClass;formatInput;decimalSeparator;thousandSeparator;precision;value;_step=1;formattedValue;onModelChange=()=>{};onModelTouched=()=>{};keyPattern=/[0-9\+\-]/;timer;focus;filled;negativeSeparator="-";localeDecimalSeparator;localeThousandSeparator;thousandRegExp;calculatedPrecision;inputfieldViewChild;get step(){return this._step}set step(e){if(this._step=e,null!=this._step){let n=this.step.toString().split(/[,]|[.]/);this.calculatedPrecision=n[1]?n[1].length:void 0}}constructor(e,n){this.el=e,this.cd=n}ngOnInit(){this.formatInput&&(this.localeDecimalSeparator=1.1.toLocaleString().substring(1,2),this.localeThousandSeparator=1e3.toLocaleString().substring(1,2),this.thousandRegExp=new RegExp(`[${this.thousandSeparator||this.localeThousandSeparator}]`,"gim"),this.decimalSeparator&&this.thousandSeparator&&this.decimalSeparator===this.thousandSeparator&&console.warn("thousandSeparator and decimalSeparator cannot have the same value."))}repeat(e,n,o){let s=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,n){let s,o=this.step*n,r=this.getPrecision();s=this.value?"string"==typeof this.value?this.parseValue(this.value):this.value:0,this.value=r?parseFloat(this.toFixed(s+o,r)):s+o,void 0!==this.maxlength&&this.value.toString().length>this.maxlength&&(this.value=s),void 0!==this.min&&this.valuethis.max&&(this.value=this.max),this.formatValue(),this.onModelChange(this.value),this.onChange.emit(e)}getPrecision(){return void 0===this.precision?this.calculatedPrecision:this.precision}toFixed(e,n){let o=Math.pow(10,n||0);return String(Math.round(e*o)/o)}onUpButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,1),this.updateFilledState(),e.preventDefault())}onUpButtonMouseup(e){this.disabled||this.clearTimer()}onUpButtonMouseleave(e){this.disabled||this.clearTimer()}onDownButtonMousedown(e){this.disabled||(this.inputfieldViewChild.nativeElement.focus(),this.repeat(e,null,-1),this.updateFilledState(),e.preventDefault())}onDownButtonMouseup(e){this.disabled||this.clearTimer()}onDownButtonMouseleave(e){this.disabled||this.clearTimer()}onInputKeydown(e){38==e.which?(this.spin(e,1),e.preventDefault()):40==e.which&&(this.spin(e,-1),e.preventDefault())}onInputChange(e){this.onChange.emit(e)}onInput(e){this.value=this.parseValue(e.target.value),this.onModelChange(this.value),this.updateFilledState()}onInputBlur(e){this.focus=!1,this.formatValue(),this.onModelTouched(),this.onBlur.emit(e)}onInputFocus(e){this.focus=!0,this.onFocus.emit(e)}parseValue(e){let n,o=this.getPrecision();return""===e.trim()?n=null:(this.formatInput&&(e=e.replace(this.thousandRegExp,"")),o?(e=e.replace(this.formatInput?this.decimalSeparator||this.localeDecimalSeparator:",","."),n=parseFloat(e)):n=parseInt(e,10),isNaN(n)?n=null:(null!==this.max&&n>this.max&&(n=this.max),null!==this.min&&n3&&(e[0]=e[0].replace(new RegExp(`[${this.localeThousandSeparator}]`,"gim"),this.thousandSeparator)),e=e.join(""))),this.formattedValue=e.toString()):this.formattedValue=null,this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.formattedValue)}clearTimer(){this.timer&&clearInterval(this.timer)}writeValue(e){this.value=e,this.formatValue(),this.updateFilledState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}updateFilledState(){this.filled=void 0!==this.value&&null!=this.value}static \u0275fac=function(n){return new(n||t)(V(bt),V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-spinner"]],viewQuery:function(n,o){if(1&n&&je(CTe,5),2&n){let s;Se(s=Ee())&&(o.inputfieldViewChild=s.first)}},hostAttrs:[1,"p-element"],hostVars:4,hostBindings:function(n,o){2&n&&Ii("ui-inputwrapper-filled",o.filled)("ui-inputwrapper-focus",o.focus)},inputs:{min:"min",max:"max",maxlength:"maxlength",size:"size",placeholder:"placeholder",inputId:"inputId",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",required:"required",name:"name",ariaLabelledBy:"ariaLabelledBy",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",formatInput:"formatInput",decimalSeparator:"decimalSeparator",thousandSeparator:"thousandSeparator",precision:"precision",step:"step"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[yt([yTe])],decls:7,vars:28,consts:[[1,"ui-spinner","ui-widget","ui-corner-all"],["type","text",3,"value","disabled","readonly","ngStyle","ngClass","keydown","blur","input","change","focus"],["inputfield",""],["type","button","tabindex","-1",3,"ngClass","disabled","mouseleave","mousedown","mouseup"],[1,"ui-spinner-button-icon","pi","pi-caret-up","ui-clickable"],[1,"ui-spinner-button-icon","pi","pi-caret-down","ui-clickable"]],template:function(n,o){1&n&&(x(0,"span",0)(1,"input",1,2),me("keydown",function(r){return o.onInputKeydown(r)})("blur",function(r){return o.onInputBlur(r)})("input",function(r){return o.onInput(r)})("change",function(r){return o.onInputChange(r)})("focus",function(r){return o.onInputFocus(r)}),A(),x(3,"button",3),me("mouseleave",function(r){return o.onUpButtonMouseleave(r)})("mousedown",function(r){return o.onUpButtonMousedown(r)})("mouseup",function(r){return o.onUpButtonMouseup(r)}),le(4,"span",4),A(),x(5,"button",3),me("mouseleave",function(r){return o.onDownButtonMouseleave(r)})("mousedown",function(r){return o.onDownButtonMousedown(r)})("mouseup",function(r){return o.onDownButtonMouseup(r)}),le(6,"span",5),A()()),2&n&&(h(1),Ve(o.inputStyleClass),d("value",o.formattedValue||null)("disabled",o.disabled)("readonly",o.readonly)("ngStyle",o.inputStyle)("ngClass","ui-spinner-input ui-inputtext ui-widget ui-state-default ui-corner-all"),K("id",o.inputId)("name",o.name)("aria-valumin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("aria-labelledby",o.ariaLabelledBy)("size",o.size)("maxlength",o.maxlength)("tabindex",o.tabindex)("placeholder",o.placeholder)("required",o.required),h(2),d("ngClass",He(24,vTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly),h(2),d("ngClass",He(26,bTe,o.disabled))("disabled",o.disabled||o.readonly),K("readonly",o.readonly))},dependencies:[Ct,Ht],styles:["@layer primeng{.ui-spinner{display:inline-block;overflow:visible;padding:0;position:relative;vertical-align:middle}.ui-spinner-input{vertical-align:middle;padding-right:1.5em}.ui-spinner-button{cursor:default;display:block;height:50%;margin:0;overflow:hidden;padding:0;position:absolute;right:0;text-align:center;vertical-align:middle;width:1.5em}.ui-spinner .ui-spinner-button-icon{position:absolute;top:50%;left:50%;margin-top:-.5em;margin-left:-.5em;width:1em}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-fluid .ui-spinner{width:100%}.ui-fluid .ui-spinner .ui-spinner-input{padding-right:2em;width:100%}.ui-fluid .ui-spinner .ui-spinner-button{width:1.5em}.ui-fluid .ui-spinner .ui-spinner-button .ui-spinner-button-icon{left:.7em}}\n"],encapsulation:2,changeDetection:0})}return t})(),ATe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Zs]})}return t})(),Fv=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,dn,Nn,Zo,Qe,qn,Nn,Qe]})}return t})(),iSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Mi,Fv,bi,Mi,Fv]})}return t})(),pSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Nn,qn,Nn]})}return t})(),LSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,qn,Qe,dn,Nn,Mr,Qi,qn,Qe,Nn]})}return t})(),sEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Nn,dn,mn,Mr,Qi,Qe]})}return t})(),rEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,uu]})}return t})(),gEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn,yi,bv,ir,vv,mn,Qe]})}return t})();const mEe=function(t,i){return{"p-button-icon":!0,"p-button-icon-left":t,"p-button-icon-right":i}};function _Ee(t,i){if(1&t&&le(0,"span",3),2&t){const e=f();Ve(e.checked?e.onIcon:e.offIcon),d("ngClass",mt(4,mEe,"left"===e.iconPos,"right"===e.iconPos)),K("data-pc-section","icon")}}function IEe(t,i){if(1&t&&(x(0,"span",4),Le(1),A()),2&t){const e=f();K("data-pc-section","label"),h(1),dt(e.checked?e.hasOnLabel?e.onLabel:"":e.hasOffLabel?e.offLabel:"")}}const CEe=function(t,i,e){return{"p-button p-togglebutton p-component":!0,"p-button-icon-only":t,"p-highlight":i,"p-disabled":e}},vEe={provide:un,useExisting:ft(()=>bEe),multi:!0};let bEe=(()=>{class t{cd;onLabel;offLabel;onIcon;offIcon;ariaLabel;ariaLabelledBy;disabled;style;styleClass;inputId;tabindex;iconPos="left";onChange=new ge;checked=!1;onModelChange=()=>{};onModelTouched=()=>{};constructor(e){this.cd=e}toggle(e){this.disabled||(this.checked=!this.checked,this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onKeyDown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}onBlur(){this.onModelTouched()}writeValue(e){this.checked=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.onLabel&&this.onLabel.length>0}static \u0275fac=function(n){return new(n||t)(V(Ft))};static \u0275cmp=Oe({type:t,selectors:[["p-toggleButton"]],hostAttrs:[1,"p-element"],inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",style:"style",styleClass:"styleClass",inputId:"inputId",tabindex:"tabindex",iconPos:"iconPos"},outputs:{onChange:"onChange"},features:[yt([vEe])],decls:3,vars:16,consts:[["role","switch","pRipple","",3,"ngClass","ngStyle","click","keydown"],[3,"class","ngClass",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(r){return o.toggle(r)})("keydown",function(r){return o.onKeyDown(r)}),g(1,_Ee,1,7,"span",1),g(2,IEe,2,2,"span",2),A()),2&n&&(Ve(o.styleClass),d("ngClass",Rn(12,CEe,o.onIcon&&o.offIcon&&!o.hasOnLabel&&!o.hasOffLabel,o.checked,o.disabled))("ngStyle",o.style),K("tabindex",o.disabled?null:"0")("aria-checked",o.checked)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("data-pc-name","togglebutton")("data-pc-section","root"),h(1),d("ngIf",o.onIcon||o.offIcon),h(1),d("ngIf",o.onLabel||o.offLabel))},dependencies:[Ct,gt,Ht,oo],styles:['@layer primeng{.p-button[_ngcontent-%COMP%]{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label[_ngcontent-%COMP%]{flex:1 1 auto}.p-button-icon-right[_ngcontent-%COMP%]{order:1}.p-button[_ngcontent-%COMP%]:disabled{cursor:default;pointer-events:none}.p-button-icon-only[_ngcontent-%COMP%]{justify-content:center}.p-button-icon-only[_ngcontent-%COMP%]:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical[_ngcontent-%COMP%]{flex-direction:column}.p-button-icon-bottom[_ngcontent-%COMP%]{order:2}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]{margin:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:last-child){border-right:0 none}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset[_ngcontent-%COMP%] .p-button[_ngcontent-%COMP%]:focus{position:relative;z-index:1}p-button[iconpos=right][_ngcontent-%COMP%] spinnericon[_ngcontent-%COMP%]{order:1}}'],changeDetection:0})}return t})(),yEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,dn]})}return t})(),TEe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe]})}return t})(),ske=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,dn,Oi,yi,bi,Qi,eg,Qs,_s,ng,Qe,Oi]})}return t})(),dke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=qe({type:t});static \u0275inj=Ge({imports:[Xe,Qe,Oi,Qe,Oi]})}return t})();const pke=["split"],hke=["area1"],fke=["area2"],gke=["layoutMenuScroller"],mke=function(t,i,e,n,o,s){return{"layout-wrapper-overlay-sidebar":t,"layout-wrapper-slim-sidebar":i,"layout-wrapper-horizontal-sidebar":e,"layout-wrapper-overlay-sidebar-active":n,"layout-wrapper-sidebar-inactive":o,"layout-wrapper-sidebar-mobile-active":s}},_ke=function(){return{height:"100%"}};let Rv=(()=>{class t{constructor(e){this.renderer=e,this.direction="horizontal",this.sizes={percent:{area1:12,area2:88},pixel:{area1:120,area2:"*",area3:160},useTransition:!0,av1:!0,av2:!0},this.action={area1:12,area2:88,useTransition:!1,av1:!0,av2:!0},this.layoutMode="static",this.megaMenuMode="dark",this.menuMode="light",this.profileMode="inline"}dragEnd(e,{sizes:n}){"percent"===e?(this.action.area1=n[0],this.action.area2=n[1]):"pixel"===e&&(this.sizes.pixel.area1=n[0],this.sizes.pixel.area2=n[1],this.sizes.pixel.area3=n[2])}ngAfterViewInit(){setTimeout(()=>{this.layoutMenuScrollerViewChild.moveBar()},100)}onLayoutClick(){this.topbarItemClick||(this.activeTopbarItem=null,this.topbarMenuActive=!1),this.rightPanelClick||(this.rightPanelActive=!1),this.megaMenuClick||(this.megaMenuActive=!1),!this.usermenuClick&&this.isSlim()&&(this.usermenuActive=!1,this.activeProfileItem=null),this.menuClick||((this.isHorizontal()||this.isSlim())&&(this.resetMenu=!0),(this.overlayMenuActive||this.staticMenuMobileActive)&&this.hideOverlayMenu(),this.menuHoverActive=!1),this.topbarItemClick=!1,this.menuClick=!1,this.rightPanelClick=!1,this.megaMenuClick=!1,this.usermenuClick=!1}onMenuButtonClick(e){this.menuClick=!0,this.topbarMenuActive=!1,"overlay"===this.layoutMode?this.overlayMenuActive=!this.overlayMenuActive:this.isDesktop()?(this.staticMenuDesktopInactive=!this.staticMenuDesktopInactive,88==this.action.area2&&12==this.action.area1?(this.action.area2=100,this.action.area1=0):100==this.action.area2&&0==this.action.area1&&(this.action.area2=88,this.action.area1=12)):this.staticMenuMobileActive=!this.staticMenuMobileActive,e.preventDefault()}onMenuClick(e){this.menuClick=!0,this.resetMenu=!1}onTopbarMenuButtonClick(e){this.topbarItemClick=!0,this.topbarMenuActive=!this.topbarMenuActive,this.hideOverlayMenu(),e.preventDefault()}onTopbarItemClick(e,n){this.topbarItemClick=!0,this.activeTopbarItem=this.activeTopbarItem===n?null:n,e.preventDefault()}onTopbarSubItemClick(e){e.preventDefault()}onRightPanelButtonClick(e){this.rightPanelClick=!0,this.rightPanelActive=!this.rightPanelActive,e.preventDefault()}onRightPanelClick(){this.rightPanelClick=!0}onMegaMenuButtonClick(e){this.megaMenuClick=!0,this.megaMenuActive=!this.megaMenuActive,e.preventDefault()}onMegaMenuClick(){this.megaMenuClick=!0}hideOverlayMenu(){this.overlayMenuActive=!1,this.staticMenuMobileActive=!1}isTablet(){const e=window.innerWidth;return e<=1024&&e>640}isDesktop(){return window.innerWidth>1024}isMobile(){return window.innerWidth<=640}isHorizontal(){return"horizontal"===this.layoutMode}isSlim(){return"slim"===this.layoutMode}isOverlay(){return"overlay"===this.layoutMode}static#e=this.\u0275fac=function(n){return new(n||t)(V(hn))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-root"]],viewQuery:function(n,o){if(1&n&&(je(pke,5),je(hke,5),je(fke,5),je(gke,7)),2&n){let s;Se(s=Ee())&&(o.split=s.first),Se(s=Ee())&&(o.area1=s.first),Se(s=Ee())&&(o.area2=s.first),Se(s=Ee())&&(o.layoutMenuScrollerViewChild=s.first)}},decls:17,vars:17,consts:[[1,"layout-wrapper",3,"ngClass","click"],[1,"ui-g-12","ui-md-12","reportSection",2,"padding-left","0px"],["unit","percent",3,"direction","useTransition","dragEnd"],["split","asSplit"],[1,"area1",2,"overflow","auto","width","auto","height","auto","margin-top","38px",3,"size","visible"],["area1","asSplitArea"],[1,"layout-sidebar",3,"click"],["layoutMenuScroller",""],[1,"sidebar-scroll-content"],[2,"overflow","auto","height","auto","width","auto",3,"size","visible"],["area2","asSplitArea"],[1,"layout-main"],[1,"layout-main-content"]],template:function(n,o){1&n&&(x(0,"div",0),me("click",function(){return o.onLayoutClick()}),le(1,"app-topbar"),x(2,"div",1)(3,"as-split",2,3),me("dragEnd",function(r){return o.dragEnd("percent",r)}),x(5,"as-split-area",4,5)(7,"div",6),me("click",function(r){return o.onMenuClick(r)}),x(8,"p-scrollPanel",null,7)(10,"div",8),le(11,"ginger-report-menu"),A()()()(),x(12,"as-split-area",9,10)(14,"div",11)(15,"div",12),le(16,"router-outlet"),A()()()()()()),2&n&&(d("ngClass",ea(9,mke,o.isOverlay(),o.isSlim(),o.isHorizontal(),o.overlayMenuActive,o.staticMenuDesktopInactive,o.staticMenuMobileActive)),h(3),d("direction",o.direction)("useTransition",o.action.useTransition),h(2),d("size",o.action.area1)("visible",o.action.av1),h(3),yn(Jt(16,_ke)),h(4),d("size",o.action.area2)("visible",o.action.av2))},styles:[".reportSection .as-horizontal>.as-split-gutter>.as-split-gutter-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAB3SURBVChT3ZGxDcAgDASfNAzADiwA+2/AAJRUDMAADo8lZIkmUbpcgV+2dYVBSklijEJCCAJArvmgtcYC7z2X4LixOoa1eWCdzLOlzt47y+a509EzxkCtFTlnMB9O5v85yboj2fecQUeGl390OEspOjV8derIAtxNg4Qs31DpLQAAAABJRU5ErkJggg==)} .reportSection .as-horizontal>.as-split-gutter{height:auto!important;margin-top:0} .reportSection .layout-main{margin-left:0!important} .reportSection .layout-sidebar{position:relative!important;width:auto;top:25px;border-right:unset;height:99%} .reportSection .ui-panelmenu-content .ui-widget-content{height:1000px!important} .reportSection .layout-sidebar .ui-scrollpanel .sidebar-scroll-content{width:auto;padding-right:0} .reportSection .ui-panelmenu .ui-menuitem-text{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important} .reportSection a.p-menuitem-link-active{font-weight:700!important}"]})}return t})(),Ike=(()=>{class t{constructor(e,n,o,s,r){this.app=e,this.router=n,this.activeRoute=o,this.communicatorService=s,this.userDataManagerService=r,this.logoLink="#3423"}ngOnInit(){this.activeRoute.queryParams.subscribe(e=>{const n=e.ExecutionId;typeof n<"u"&&n&&(this.logoLink=`#/?ExecutionId=${n}`)})}refreshReport(){this.userDataManagerService.setItemCache(null),this.communicatorService.refreshScreen("RefreshData")}static#e=this.\u0275fac=function(n){return new(n||t)(V(Rv),V(io),V(Di),V(Ws),V(Co))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["app-topbar"]],decls:7,vars:1,consts:[[1,"layout-topbar",2,"border-bottom","4px solid transparent","border-image","linear-gradient(to right, #ec008c, #f77341 63%, #fdb515)","border-image-slice","1","z-index","9999"],[1,"logo",3,"href"],["src","assets/layout/images/amdocs_icon.png","alt","Amdocs-logo","height","30",1,"amdocs_icon"],["src","assets/layout/images/amdocs.png","alt","Amdocs-logo"],["id","menu-button","href","#",3,"click"],[1,"fa","fa-align-left"],["type","button","pButton","","icon","pi pi-refresh","pTooltip","Refresh report data","tooltipPosition","right",1,"p-button","refreshBtn",3,"click"]],template:function(n,o){1&n&&(x(0,"div",0)(1,"a",1),le(2,"img",2)(3,"img",3),A(),x(4,"a",4),me("click",function(r){return o.app.onMenuButtonClick(r)}),le(5,"i",5),A(),x(6,"button",6),me("click",function(){return o.refreshReport()}),A()()),2&n&&(h(1),g_("href",o.logoLink,Ls))},dependencies:[Kl,hf],styles:[".refreshBtn[_ngcontent-%COMP%]{border-radius:40px;height:40px;width:40px!important;font-size:2em;position:absolute;right:10px;top:8px;background-color:#ffbf3f;color:#000;border:#FFBF3F}.p-button[_ngcontent-%COMP%]:enabled:hover{background-color:#f8e08e;color:#000}"]})}return t})();const $O={production:!0},Cke=["gutterEls"];function vke(t,i){if(1&t){const e=De();x(0,"div",2,3),me("keydown",function(o){G(e);const s=f().index;return q(f().startKeyboardDrag(o,2*s+1,s+1))})("mousedown",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("touchstart",function(o){G(e);const s=f().index;return q(f().startMouseDrag(o,2*s+1,s+1))})("mouseup",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))})("touchend",function(o){G(e);const s=f().index;return q(f().clickGutter(o,s+1))}),le(2,"div",4),A()}if(2&t){const e=f(),n=e.index,o=e.$implicit,s=f();fo("flex-basis",s.gutterSize,"px")("order",2*n+1),K("aria-label",s.gutterAriaLabel)("aria-orientation",s.direction)("aria-valuemin",o.minSize)("aria-valuemax",o.maxSize)("aria-valuenow",o.size)("aria-valuetext",s.getAriaAreaSizeText(o.size))}}function bke(t,i){1&t&&g(0,vke,3,10,"div",1),2&t&&d("ngIf",!1===i.last)}const yke=["*"];function fd(t){if(void 0!==t.changedTouches&&t.changedTouches.length>0)return{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY};if(void 0!==t.clientX&&void 0!==t.clientY)return{x:t.clientX,y:t.clientY};if(void 0!==t.currentTarget){const i=t.currentTarget;return{x:i.offsetLeft,y:i.offsetTop}}return null}function KO(t,i,e){return Math.abs(t.x-i.x)<=e&&Math.abs(t.y-i.y)<=e}function GO(t,i){const e=t.nativeElement.getBoundingClientRect();return"horizontal"===i?e.width:e.height}function gd(t){return"boolean"==typeof t?t:"false"!==t}function jr(t,i){return null==t?i:(t=Number(t),!isNaN(t)&&t>=0?t:i)}function qO(t,i){if("percent"===t){const e=i.reduce((n,o)=>null!==o?n+o:n,0);return i.every(n=>null!==n)&&e>99.9&&e<100.1}if("pixel"===t)return 1===i.filter(e=>null===e).length}function lg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.minSize?null:t.component.minSize>t.size?t.size:t.component.minSize}function cg(t){return null===t.size?null:!0===t.component.lockSize?t.size:null===t.component.maxSize?null:t.component.maxSize{const r=function Ake(t,i,e,n){return 0===e?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:i.sizePercentAtStart,pixelRemain:0}:0===i.sizePixelAtStart&&e<0?{areaSnapshot:i,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:e}:"percent"===t?function wke(t,i,e){const o=(t.sizePixelAtStart+i)/e*100;if(i>0){if(null!==t.area.maxSize&&o>t.area.maxSize){const s=t.area.maxSize/100*e;return{areaSnapshot:t,pixelAbsorb:s,percentAfterAbsorption:t.area.maxSize,pixelRemain:t.sizePixelAtStart+i-s}}return{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:o>100?100:o,pixelRemain:0}}if(i<0){if(null!==t.area.minSize&&o0?null!==t.area.maxSize&&n>t.area.maxSize?{areaSnapshot:t,pixelAbsorb:t.area.maxSize-t.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:n-t.area.maxSize}:{areaSnapshot:t,pixelAbsorb:i,percentAfterAbsorption:-1,pixelRemain:0}:i<0?null!==t.area.minSize&&n{class t{set direction(e){this._direction="vertical"===e?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(e){this._unit="pixel"===e?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(e){this._gutterSize=jr(e,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(e){this._gutterStep=jr(e,1)}get gutterStep(){return this._gutterStep}set restrictMove(e){this._restrictMove=gd(e)}get restrictMove(){return this._restrictMove}set useTransition(e){this._useTransition=gd(e),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(e){this._disabled=gd(e),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(e){this._dir="rtl"===e?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(e){this._gutterDblClickDuration=jr(e,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new ce(e=>this.transitionEndSubscriber=e).pipe(nk(20))}constructor(e,n,o,s,r){this.ngZone=e,this.elRef=n,this.cdRef=o,this.renderer=s,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new ge(!1),this.dragEnd=new ge(!1),this.gutterClick=new ge(!1),this.gutterDblClick=new ge(!1),this.dragProgressSubject=new re,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=r?Object.assign(this._config,r):this._config,Object.keys(this._config).forEach(a=>{this[a]=this._config[a]})}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(e){const n={component:e,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===e.visible?(this.displayedAreas.push(n),this.build(!0,!0)):this.hiddenAreas.push(n)}removeArea(e){if(this.displayedAreas.some(n=>n.component===e)){const n=this.displayedAreas.find(o=>o.component===e);this.displayedAreas.splice(this.displayedAreas.indexOf(n),1),this.build(!0,!0)}else if(this.hiddenAreas.some(n=>n.component===e)){const n=this.hiddenAreas.find(o=>o.component===e);this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1)}}updateArea(e,n,o){!0===e.visible&&this.build(n,o)}showArea(e){const n=this.hiddenAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.hiddenAreas.splice(this.hiddenAreas.indexOf(n),1);this.displayedAreas.push(...o),this.build(!0,!0)}hideArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n)return;const o=this.displayedAreas.splice(this.displayedAreas.indexOf(n),1);o.forEach(s=>{s.order=0,s.size=0}),this.hiddenAreas.push(...o),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(e=>null===e.size?"*":e.size)}setVisibleAreaSizes(e){if(e.length!==this.displayedAreas.length)return!1;const n=e.map(s=>jr(s,null));return!1!==qO(this.unit,n)&&(this.displayedAreas.forEach((s,r)=>s.component._size=n[r]),this.build(!1,!0),!0)}build(e,n){if(this.stopDragging(),!0===e&&(this.displayedAreas.every(o=>null!==o.component.order)&&this.displayedAreas.sort((o,s)=>o.component.order-s.component.order),this.displayedAreas.forEach((o,s)=>{o.order=2*s,o.component.setStyleOrder(o.order)})),!0===n){const o=qO(this.unit,this.displayedAreas.map(s=>s.component.size));switch(this.unit){case"percent":{const s=100/this.displayedAreas.length;this.displayedAreas.forEach(r=>{r.size=o?r.component.size:s,r.minSize=lg(r),r.maxSize=cg(r)});break}case"pixel":if(o)this.displayedAreas.forEach(s=>{s.size=s.component.size,s.minSize=lg(s),s.maxSize=cg(s)});else{const s=this.displayedAreas.filter(r=>null===r.component.size);if(0===s.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((r,a)=>{r.size=0===a?null:r.component.size,r.minSize=0===a?null:lg(r),r.maxSize=0===a?null:cg(r)});else if(s.length>1){let r=!1;this.displayedAreas.forEach(a=>{null===a.component.size?!1===r?(a.size=null,a.minSize=null,a.maxSize=null,r=!0):(a.size=100,a.minSize=null,a.maxSize=null):(a.size=a.component.size,a.minSize=lg(a),a.maxSize=cg(a))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const e=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(n=>{n.component.setStyleFlex(0,0,`calc( ${n.size}% - ${n.size/100*e}px )`,null!==n.minSize&&n.minSize===n.size,null!==n.maxSize&&n.maxSize===n.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(e=>{null===e.size?e.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?e.component.setStyleFlex(0,0,"100%",!1,!1):e.component.setStyleFlex(0,0,`${e.size}px`,null!==e.minSize&&e.minSize===e.size,null!==e.maxSize&&e.maxSize===e.size)})}clickGutter(e,n){const o=fd(e);this.startPoint&&KO(this.startPoint,o,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",n),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",n),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(e,n,o){if(!0===this.disabled||!0===this.isWaitingClear)return;const s=function xke(t,i){if("horizontal"===i)switch(t.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===i)switch(t.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const e=t.currentTarget,n="PageUp"===t.key||"PageDown"===t.key?500:50;let o=e.offsetLeft,s=e.offsetTop;switch(t.key){case"ArrowLeft":o-=n;break;case"ArrowRight":o+=n;break;case"ArrowUp":s-=n;break;case"ArrowDown":s+=n;break;case"PageUp":"vertical"===i?s-=n:o+=n;break;case"PageDown":"vertical"===i?s+=n:o-=n;break;default:return null}return{x:o,y:s}}(e,this.direction);null!==s&&(this.endPoint=s,this.startPoint=fd(e),e.preventDefault(),e.stopPropagation(),this.setupForDragEvent(n,o),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(e,n,o){e.preventDefault(),e.stopPropagation(),this.startPoint=fd(e),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(n,o),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(e,n){this.snapshot={gutterNum:n,lastSteppedOffset:0,allAreasSizePixel:GO(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(o=>{const s={area:o,sizePixelAtStart:GO(o.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?o.size:-1};o.ordere&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[s]):this.snapshot.areasAfterGutter.push(s))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((o,s)=>o+s.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(e=>e.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(e){e.preventDefault(),e.stopPropagation();const n=fd(e);null!==this._clickTimeout&&!KO(this.startPoint,n,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=fd(e),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let e="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(e=-e);const n=Math.round(e/this.gutterStep)*this.gutterStep;if(n===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=n;let o=Jl(this.unit,this.snapshot.areasBeforeGutter,-n,this.snapshot.allAreasSizePixel),s=Jl(this.unit,this.snapshot.areasAfterGutter,n,this.snapshot.allAreasSizePixel);if(0!==o.remain&&0!==s.remain?Math.abs(o.remain)===Math.abs(s.remain)||(Math.abs(o.remain)>Math.abs(s.remain)?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)):0!==o.remain?s=Jl(this.unit,this.snapshot.areasAfterGutter,n+o.remain,this.snapshot.allAreasSizePixel):0!==s.remain&&(o=Jl(this.unit,this.snapshot.areasBeforeGutter,-(n-s.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const r=[...o.list,...s.list],a=r.find(l=>0!==l.percentAfterAbsorption&&l.percentAfterAbsorption!==l.areaSnapshot.area.minSize&&l.percentAfterAbsorption!==l.areaSnapshot.area.maxSize);a&&(a.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-r.filter(l=>l!==a).reduce((l,c)=>l+c.percentAfterAbsorption,0))}o.list.forEach(r=>WO(this.unit,r)),s.list.forEach(r=>WO(this.unit,r)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(e){if(e&&(e.preventDefault(),e.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(n=>n.component.unlockEvents());this.dragListeners.length>0;){const n=this.dragListeners.pop();n&&n()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(e,n){const o=this.getVisibleAreaSizes();"start"===e?this.dragStart.emit({gutterNum:n,sizes:o}):"end"===e?this.dragEnd.emit({gutterNum:n,sizes:o}):"click"===e?this.gutterClick.emit({gutterNum:n,sizes:o}):"dblclick"===e?this.gutterDblClick.emit({gutterNum:n,sizes:o}):"transitionEnd"===e?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(o)):"progress"===e&&this.dragProgressSubject.next({gutterNum:n,sizes:o})}ngOnDestroy(){this.stopDragging()}collapseArea(e,n,o){const s=this.displayedAreas.find(l=>l.component===e);if(void 0===s)return;const r="right"===o?1:-1;s.sizeBeforeCollapse||(s.sizeBeforeCollapse=s.size,s.gutterBeforeCollapse=r),s.size=n;const a=this.gutterEls.find(l=>l.nativeElement.style.order===`${s.order+r}`);a&&this.renderer.addClass(a.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}expandArea(e){const n=this.displayedAreas.find(s=>s.component===e);if(void 0===n||!n.sizeBeforeCollapse)return;n.size=n.sizeBeforeCollapse,n.sizeBeforeCollapse=null;const o=this.gutterEls.find(s=>s.nativeElement.style.order===`${n.order+n.gutterBeforeCollapse}`);o&&this.renderer.removeClass(o.nativeElement,"as-split-gutter-collapsed"),this.updateArea(e,!1,!1)}getAriaAreaSizeText(e){return null===e?null:e.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(Ft),V(hn),V(Ske,8))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["as-split"]],viewQuery:function(n,o){if(1&n&&je(Cke,5),2&n){let s;Se(s=Ee())&&(o.gutterEls=s)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:yke,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(n,o){1&n&&(Ti(),Kn(0),g(1,bke,1,1,"ng-template",0)),2&n&&(h(1),d("ngForOf",o.displayedAreas))},dependencies:[Jn,gt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0})}return t})(),Eke=(()=>{class t{set order(e){this._order=jr(e,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(e){this._size=jr(e,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(e){this._minSize=jr(e,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(e){this._maxSize=jr(e,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(e){this._lockSize=gd(e),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(e){this._visible=gd(e),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}constructor(e,n,o,s){this.ngZone=e,this.elRef=n,this.renderer=o,this.split=s,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",n=>{"flex-basis"===n.propertyName&&this.split.notify("transitionEnd",-1)})});const e=this.renderer.createElement("div");this.renderer.addClass(e,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,e)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,e)})}setStyleOrder(e){this.renderer.setStyle(this.elRef.nativeElement,"order",e)}setStyleFlex(e,n,o,s,r){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",e),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",n),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",o),!0===s?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===r?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const e=this.lockListeners.pop();e&&e()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(e=0,n="right"){this.split.collapseArea(this,e,n)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(n){return new(n||t)(V(Tt),V(bt),V(hn),V(QO))};static#t=this.\u0275dir=ut({type:t,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return t})(),Dke=(()=>{class t{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:t,providers:[]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t});static#n=this.\u0275inj=Ge({imports:[Xe]})}return t})();const kke=function(){return{width:"auto"}};let Mke=(()=>{class t{constructor(e,n){this.communicatorService=e,this.route=n,this.guid="",this.executionGeneralDetailsData=[]}ngOnInit(){this.communicatorService.messageSourceHasNewMessage.subscribe(e=>{console.log("messge arrived to menu"),console.log(e),this.items=e}),this.route.queryParams.subscribe(e=>{this.guid="",this.guid=e.Guid,typeof this.guid<"u"&&this.guid&&this.searchForSelectedRecNode(this.items)})}searchForSelectedRecNode(e){let n=!1;if(null==e)n=!1;else for(const o of e){if(o.id===this.guid){n=!0;break}if(typeof o.items<"u"&&null!=o.items&&this.searchForSelectedRecNode(o.items)){o.expanded=!0,n=!0;break}}return n}static#e=this.\u0275fac=function(n){return new(n||t)(V(Ws),V(Di))};static#t=this.\u0275cmp=Oe({type:t,selectors:[["ginger-report-menu"]],decls:1,vars:5,consts:[[3,"model","multiple"]],template:function(n,o){1&n&&le(0,"p-panelMenu",0),2&n&&(yn(Jt(4,kke)),d("model",o.items)("multiple",!1))},dependencies:[ZM],styles:[".p-panelmenu .p-panelmenu-header-action .p-menuitem-icon{margin-left:.2rem!important;margin-right:.5rem!important} .p-panelmenu .p-component{padding-top:10px}"]})}return t})(),Oke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=qe({type:t,bootstrap:[Rv]});static#n=this.\u0275inj=Ge({providers:[{provide:"environmentObj",useValue:$O},{provide:Ir,useClass:G2}],imports:[R0,uu,dhe,eE,NE,JD,Cfe,sge,Mi,uk,uge,Lge,qM,Wge,_me,Jme,g_e,nO,k_e,Ek,_f,B_e,Z_e,hIe,kk,xIe,OIe,_v,Zs,LIe,$Ce,Tve,s1e,j1e,K1e,yv,Dye,rxe,yxe,Mxe,vf,Qxe,YM,AAe,Vwe,xv,qwe,g2e,x2e,Ik,eTe,ITe,ATe,iSe,pSe,wk,LSe,sEe,rEe,Fv,gEe,yEe,TEe,Nn,ske,JM,dke,Spe,_v,Xe,Dke.forRoot()]})}return t})();Dg(Rv,function(){return[Ct,QI,y2e,Mke,QO,Eke,Ike]},[]),AB().bootstrapModule(Oke).catch(t=>console.error(t))},7536:function(tc){tc.exports=function(xe){var z={};function L(ae){if(z[ae])return z[ae].exports;var H=z[ae]={exports:{},id:ae,loaded:!1};return xe[ae].call(H.exports,H,H.exports,L),H.loaded=!0,H.exports}return L.m=xe,L.c=z,L.p="",L(0)}([function(xe,z,L){xe.exports=L(53)},function(xe,z,L){"use strict";var H=ue(L(2)),F=ue(L(18)),N=L(29),O=ue(N),I=ue(L(30)),T=ue(L(42)),k=ue(L(34)),D=ue(L(31)),M=ue(L(32)),ee=ue(L(43)),ne=ue(L(33)),Q=ue(L(44)),se=ue(L(51)),U=ue(L(52));function ue(pe){return pe&&pe.__esModule?pe:{default:pe}}F.default.register({"blots/block":O.default,"blots/block/embed":N.BlockEmbed,"blots/break":I.default,"blots/container":T.default,"blots/cursor":k.default,"blots/embed":D.default,"blots/inline":M.default,"blots/scroll":ee.default,"blots/text":ne.default,"modules/clipboard":Q.default,"modules/history":se.default,"modules/keyboard":U.default}),H.default.register(O.default,I.default,k.default,M.default,ee.default,ne.default),xe.exports=F.default},function(xe,z,L){"use strict";var ae=L(3),H=L(7),Z=L(12),F=L(13),N=L(14),O=L(15),S=L(16),I=L(17),v=L(8),T=L(10),C=L(11),k=L(9),y=L(6),D={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:ae.default,Format:H.default,Leaf:Z.default,Embed:S.default,Scroll:F.default,Block:O.default,Inline:N.default,Text:I.default,Attributor:{Attribute:v.default,Class:T.default,Style:C.default,Store:k.default}};Object.defineProperty(z,"__esModule",{value:!0}),z.default=D},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(4),Z=L(5),F=L(6),N=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.prototype.appendChild=function(v){this.insertBefore(v)},I.prototype.attach=function(){var v=this;S.prototype.attach.call(this),this.children=new H.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(T){try{var C=O(T);v.insertBefore(C,v.children.head)}catch(k){if(k instanceof F.ParchmentError)return;throw k}})},I.prototype.deleteAt=function(v,T){if(0===v&&T===this.length())return this.remove();this.children.forEachAt(v,T,function(C,k,y){C.deleteAt(k,y)})},I.prototype.descendant=function(v,T){var C=this.children.find(T),k=C[0],y=C[1];return null==v.blotName&&v(k)||null!=v.blotName&&k instanceof v?[k,y]:k instanceof I?k.descendant(v,y):[null,-1]},I.prototype.descendants=function(v,T,C){void 0===T&&(T=0),void 0===C&&(C=Number.MAX_VALUE);var k=[],y=C;return this.children.forEachAt(T,C,function(D,w,M){(null==v.blotName&&v(D)||null!=v.blotName&&D instanceof v)&&k.push(D),D instanceof I&&(k=k.concat(D.descendants(v,w,y))),y-=M}),k},I.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),S.prototype.detach.call(this)},I.prototype.formatAt=function(v,T,C,k){this.children.forEachAt(v,T,function(y,D,w){y.formatAt(D,w,C,k)})},I.prototype.insertAt=function(v,T,C){var k=this.children.find(v),y=k[0];if(y)y.insertAt(k[1],T,C);else{var w=null==C?F.create("text",T):F.create(T,C);this.appendChild(w)}},I.prototype.insertBefore=function(v,T){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(C){return v instanceof C}))throw new F.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,T)},I.prototype.length=function(){return this.children.reduce(function(v,T){return v+T.length()},0)},I.prototype.moveChildren=function(v,T){this.children.forEach(function(C){v.insertBefore(C,T)})},I.prototype.optimize=function(){if(S.prototype.optimize.call(this),0===this.children.length)if(null!=this.statics.defaultChild){var v=F.create(this.statics.defaultChild);this.appendChild(v),v.optimize()}else this.remove()},I.prototype.path=function(v,T){void 0===T&&(T=!1);var C=this.children.find(v,T),k=C[0],y=C[1],D=[[this,v]];return k instanceof I?D.concat(k.path(y,T)):(null!=k&&D.push([k,y]),D)},I.prototype.removeChild=function(v){this.children.remove(v)},I.prototype.replace=function(v){v instanceof I&&v.moveChildren(this),S.prototype.replace.call(this,v)},I.prototype.split=function(v,T){if(void 0===T&&(T=!1),!T){if(0===v)return this;if(v===this.length())return this.next}var C=this.clone();return this.parent.insertBefore(C,this.next),this.children.forEachAt(v,this.length(),function(k,y,D){k=k.split(y,T),C.appendChild(k)}),C},I.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},I.prototype.update=function(v){var T=this,C=[],k=[];v.forEach(function(y){y.target===T.domNode&&"childList"===y.type&&(C.push.apply(C,y.addedNodes),k.push.apply(k,y.removedNodes))}),k.forEach(function(y){if(!(null!=y.parentNode&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var D=F.find(y);null!=D&&(null==D.domNode.parentNode||D.domNode.parentNode===T.domNode)&&D.detach()}}),C.filter(function(y){return y.parentNode==T.domNode}).sort(function(y,D){return y===D?0:y.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var D=null;null!=y.nextSibling&&(D=F.find(y.nextSibling));var w=O(y);(w.next!=D||null==w.next)&&(null!=w.parent&&w.parent.removeChild(T),T.insertBefore(w,D))})},I}(Z.default);function O(S){var I=F.find(S);if(null==I)try{I=F.create(S)}catch{I=F.create(F.Scope.INLINE),[].slice.call(S.childNodes).forEach(function(T){I.domNode.appendChild(T)}),S.parentNode.replaceChild(I.domNode,S),I.attach()}return I}Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z){"use strict";var L=function(){function ae(){this.head=this.tail=void 0,this.length=0}return ae.prototype.append=function(){for(var H=[],Z=0;Z1&&this.append.apply(this,H.slice(1))},ae.prototype.contains=function(H){for(var Z,F=this.iterator();Z=F();)if(Z===H)return!0;return!1},ae.prototype.insertBefore=function(H,Z){H.next=Z,null!=Z?(H.prev=Z.prev,null!=Z.prev&&(Z.prev.next=H),Z.prev=H,Z===this.head&&(this.head=H)):null!=this.tail?(this.tail.next=H,H.prev=this.tail,this.tail=H):(H.prev=void 0,this.head=this.tail=H),this.length+=1},ae.prototype.offset=function(H){for(var Z=0,F=this.head;null!=F;){if(F===H)return Z;Z+=F.length(),F=F.next}return-1},ae.prototype.remove=function(H){this.contains(H)&&(null!=H.prev&&(H.prev.next=H.next),null!=H.next&&(H.next.prev=H.prev),H===this.head&&(this.head=H.next),H===this.tail&&(this.tail=H.prev),this.length-=1)},ae.prototype.iterator=function(H){return void 0===H&&(H=this.head),function(){var Z=H;return null!=H&&(H=H.next),Z}},ae.prototype.find=function(H,Z){void 0===Z&&(Z=!1);for(var F,N=this.iterator();F=N();){var O=F.length();if(Hv?F(I,H-v,Math.min(Z,v+C-H)):F(I,0,Math.min(C,H+Z-v)),v+=C}},ae.prototype.map=function(H){return this.reduce(function(Z,F){return Z.push(H(F)),Z},[])},ae.prototype.reduce=function(H,Z){for(var F,N=this.iterator();F=N();)Z=H(Z,F);return Z},ae}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=L},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F){this.domNode=F,this.attach()}return Object.defineProperty(Z.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),Z.create=function(F){if(null==this.tagName)throw new ae.ParchmentError("Blot definition missing tagName");var N;return Array.isArray(this.tagName)?("string"==typeof F&&(F=F.toUpperCase(),parseInt(F).toString()===F&&(F=parseInt(F))),N="number"==typeof F?document.createElement(this.tagName[F-1]):this.tagName.indexOf(F)>-1?document.createElement(F):document.createElement(this.tagName[0])):N=document.createElement(this.tagName),this.className&&N.classList.add(this.className),N},Z.prototype.attach=function(){this.domNode[ae.DATA_KEY]={blot:this}},Z.prototype.clone=function(){var F=this.domNode.cloneNode();return ae.create(F)},Z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[ae.DATA_KEY]},Z.prototype.deleteAt=function(F,N){this.isolate(F,N).remove()},Z.prototype.formatAt=function(F,N,O,S){var I=this.isolate(F,N);if(null!=ae.query(O,ae.Scope.BLOT)&&S)I.wrap(O,S);else if(null!=ae.query(O,ae.Scope.ATTRIBUTE)){var v=ae.create(this.statics.scope);I.wrap(v),v.format(O,S)}},Z.prototype.insertAt=function(F,N,O){var S=null==O?ae.create("text",N):ae.create(N,O),I=this.split(F);this.parent.insertBefore(S,I)},Z.prototype.insertInto=function(F,N){if(null!=this.parent&&this.parent.children.remove(this),F.children.insertBefore(this,N),null!=N)var O=N.domNode;(null==this.next||this.domNode.nextSibling!=O)&&F.domNode.insertBefore(this.domNode,typeof O<"u"?O:null),this.parent=F},Z.prototype.isolate=function(F,N){var O=this.split(F);return O.split(N),O},Z.prototype.length=function(){return 1},Z.prototype.offset=function(F){return void 0===F&&(F=this.parent),null==this.parent||this==F?0:this.parent.children.offset(this)+this.parent.offset(F)},Z.prototype.optimize=function(){null!=this.domNode[ae.DATA_KEY]&&delete this.domNode[ae.DATA_KEY].mutations},Z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},Z.prototype.replace=function(F){null!=F.parent&&(F.parent.insertBefore(this,F.next),F.remove())},Z.prototype.replaceWith=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return O.replace(this),O},Z.prototype.split=function(F,N){return 0===F?this:this.next},Z.prototype.update=function(F){void 0===F&&(F=[])},Z.prototype.wrap=function(F,N){var O="string"==typeof F?ae.create(F,N):F;return null!=this.parent&&this.parent.insertBefore(O,this.next),O.appendChild(this),O},Z}();H.blotName="abstract",Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z){"use strict";var L=this&&this.__extends||function(C,k){for(var y in k)k.hasOwnProperty(y)&&(C[y]=k[y]);function D(){this.constructor=C}C.prototype=null===k?Object.create(k):(D.prototype=k.prototype,new D)},ae=function(C){function k(y){var D;return(D=C.call(this,y="[Parchment] "+y)||this).message=y,D.name=D.constructor.name,D}return L(k,C),k}(Error);z.ParchmentError=ae;var O,C,H={},Z={},F={},N={};function v(C,k){var y;if(void 0===k&&(k=O.ANY),"string"==typeof C)y=N[C]||H[C];else if(C instanceof Text)y=N.text;else if("number"==typeof C)C&O.LEVEL&O.BLOCK?y=N.block:C&O.LEVEL&O.INLINE&&(y=N.inline);else if(C instanceof HTMLElement){var D=(C.getAttribute("class")||"").split(/\s+/);for(var w in D)if(y=Z[D[w]])break;y=y||F[C.tagName]}return null==y?null:k&O.LEVEL&y.scope&&k&O.TYPE&y.scope?y:null}z.DATA_KEY="__blot",(C=O=z.Scope||(z.Scope={}))[C.TYPE=3]="TYPE",C[C.LEVEL=12]="LEVEL",C[C.ATTRIBUTE=13]="ATTRIBUTE",C[C.BLOT=14]="BLOT",C[C.INLINE=7]="INLINE",C[C.BLOCK=11]="BLOCK",C[C.BLOCK_BLOT=10]="BLOCK_BLOT",C[C.INLINE_BLOT=6]="INLINE_BLOT",C[C.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",C[C.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",C[C.ANY=15]="ANY",z.create=function S(C,k){var y=v(C);if(null==y)throw new ae("Unable to create "+C+" blot");var D=y,w=C instanceof Node?C:D.create(k);return new D(w,k)},z.find=function I(C,k){return void 0===k&&(k=!1),null==C?null:null!=C[z.DATA_KEY]?C[z.DATA_KEY].blot:k?I(C.parentNode,k):null},z.query=v,z.register=function T(){for(var C=[],k=0;k1)return C.map(function(w){return T(w)});var y=C[0];if("string"!=typeof y.blotName&&"string"!=typeof y.attrName)throw new ae("Invalid definition");if("abstract"===y.blotName)throw new ae("Cannot register abstract class");return N[y.blotName||y.attrName]=y,"string"==typeof y.keyName?H[y.keyName]=y:(null!=y.className&&(Z[y.className]=y),null!=y.tagName&&(y.tagName=Array.isArray(y.tagName)?y.tagName.map(function(w){return w.toUpperCase()}):y.tagName.toUpperCase(),(Array.isArray(y.tagName)?y.tagName:[y.tagName]).forEach(function(w){(null==F[w]||null==y.className)&&(F[w]=y)}))),y}},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(8),Z=L(9),F=L(3),N=L(6),O=function(S){function I(){return S.apply(this,arguments)||this}return ae(I,S),I.formats=function(v){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?v.tagName.toLowerCase():void 0)},I.prototype.attach=function(){S.prototype.attach.call(this),this.attributes=new Z.default(this.domNode)},I.prototype.format=function(v,T){var C=N.query(v);C instanceof H.default?this.attributes.attribute(C,T):T&&null!=C&&(v!==this.statics.blotName||this.formats()[v]!==T)&&this.replaceWith(v,T)},I.prototype.formats=function(){var v=this.attributes.values(),T=this.statics.formats(this.domNode);return null!=T&&(v[this.statics.blotName]=T),v},I.prototype.replaceWith=function(v,T){var C=S.prototype.replaceWith.call(this,v,T);return this.attributes.copy(C),C},I.prototype.update=function(v){var T=this;S.prototype.update.call(this,v),v.some(function(C){return C.target===T.domNode&&"attributes"===C.type})&&this.attributes.build()},I.prototype.wrap=function(v,T){var C=S.prototype.wrap.call(this,v,T);return C instanceof I&&C.statics.scope===this.statics.scope&&this.attributes.move(C),C},I}(F.default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=L(6),H=function(){function Z(F,N,O){void 0===O&&(O={}),this.attrName=F,this.keyName=N,this.scope=null!=O.scope?O.scope&ae.Scope.LEVEL|ae.Scope.TYPE&ae.Scope.ATTRIBUTE:ae.Scope.ATTRIBUTE,null!=O.whitelist&&(this.whitelist=O.whitelist)}return Z.keys=function(F){return[].map.call(F.attributes,function(N){return N.name})},Z.prototype.add=function(F,N){return!!this.canAdd(F,N)&&(F.setAttribute(this.keyName,N),!0)},Z.prototype.canAdd=function(F,N){return null!=ae.query(F,ae.Scope.BLOT&(this.scope|ae.Scope.TYPE))&&(null==this.whitelist||this.whitelist.indexOf(N)>-1)},Z.prototype.remove=function(F){F.removeAttribute(this.keyName)},Z.prototype.value=function(F){var N=F.getAttribute(this.keyName);return this.canAdd(F,N)?N:""},Z}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=H},function(xe,z,L){"use strict";var ae=L(8),H=L(10),Z=L(11),F=L(6),N=function(){function O(S){this.attributes={},this.domNode=S,this.build()}return O.prototype.attribute=function(S,I){I?S.add(this.domNode,I)&&(null!=S.value(this.domNode)?this.attributes[S.attrName]=S:delete this.attributes[S.attrName]):(S.remove(this.domNode),delete this.attributes[S.attrName])},O.prototype.build=function(){var S=this;this.attributes={};var I=ae.default.keys(this.domNode),v=H.default.keys(this.domNode),T=Z.default.keys(this.domNode);I.concat(v).concat(T).forEach(function(C){var k=F.query(C,F.Scope.ATTRIBUTE);k instanceof ae.default&&(S.attributes[k.attrName]=k)})},O.prototype.copy=function(S){var I=this;Object.keys(this.attributes).forEach(function(v){var T=I.attributes[v].value(I.domNode);S.format(v,T)})},O.prototype.move=function(S){var I=this;this.copy(S),Object.keys(this.attributes).forEach(function(v){I.attributes[v].remove(I.domNode)}),this.attributes={}},O.prototype.values=function(){var S=this;return Object.keys(this.attributes).reduce(function(I,v){return I[v]=S.attributes[v].value(S.domNode),I},{})},O}();Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N,O){return(N.getAttribute("class")||"").split(/\s+/).filter(function(I){return 0===I.indexOf(O+"-")})}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("class")||"").split(/\s+/).map(function(I){return I.split("-").slice(0,-1).join("-")})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(this.remove(S),S.classList.add(this.keyName+"-"+I),!0)},O.prototype.remove=function(S){Z(S,this.keyName).forEach(function(v){S.classList.remove(v)}),0===S.classList.length&&S.removeAttribute("class")},O.prototype.value=function(S){var v=(Z(S,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(S,v)?v:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)};function Z(N){var O=N.split("-"),S=O.slice(1).map(function(I){return I[0].toUpperCase()+I.slice(1)}).join("");return O[0]+S}var F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.keys=function(S){return(S.getAttribute("style")||"").split(";").map(function(I){return I.split(":")[0].trim()})},O.prototype.add=function(S,I){return!!this.canAdd(S,I)&&(S.style[Z(this.keyName)]=I,!0)},O.prototype.remove=function(S){S.style[Z(this.keyName)]="",S.getAttribute("style")||S.removeAttribute("style")},O.prototype.value=function(S){var I=S.style[Z(this.keyName)];return this.canAdd(S,I)?I:""},O}(L(8).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(5),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.value=function(S){return!0},O.prototype.index=function(S,I){return S!==this.domNode?-1:Math.min(I,1)},O.prototype.position=function(S,I){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return S>0&&(v+=1),[this.parent.domNode,v]},O.prototype.value=function(){return(S={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,S;var S},O}(H.default);F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(S,I){for(var v in I)I.hasOwnProperty(v)&&(S[v]=I[v]);function T(){this.constructor=S}S.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)},H=L(3),Z=L(6),F={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},O=function(S){function I(v){var T=S.call(this,v)||this;return T.parent=null,T.observer=new MutationObserver(function(C){T.update(C)}),T.observer.observe(T.domNode,F),T}return ae(I,S),I.prototype.detach=function(){S.prototype.detach.call(this),this.observer.disconnect()},I.prototype.deleteAt=function(v,T){this.update(),0===v&&T===this.length()?this.children.forEach(function(C){C.remove()}):S.prototype.deleteAt.call(this,v,T)},I.prototype.formatAt=function(v,T,C,k){this.update(),S.prototype.formatAt.call(this,v,T,C,k)},I.prototype.insertAt=function(v,T,C){this.update(),S.prototype.insertAt.call(this,v,T,C)},I.prototype.optimize=function(v){var T=this;void 0===v&&(v=[]),S.prototype.optimize.call(this);for(var C=[].slice.call(this.observer.takeRecords());C.length>0;)v.push(C.pop());for(var k=function(M,$){void 0===$&&($=!0),null!=M&&M!==T&&null!=M.domNode.parentNode&&(null==M.domNode[Z.DATA_KEY].mutations&&(M.domNode[Z.DATA_KEY].mutations=[]),$&&k(M.parent))},y=function(M){null==M.domNode[Z.DATA_KEY]||null==M.domNode[Z.DATA_KEY].mutations||(M instanceof H.default&&M.children.forEach(y),M.optimize())},D=v,w=0;D.length>0;w+=1){if(w>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(D.forEach(function(M){var $=Z.find(M.target,!0);null!=$&&($.domNode===M.target&&("childList"===M.type?(k(Z.find(M.previousSibling,!1)),[].forEach.call(M.addedNodes,function(ee){var B=Z.find(ee,!1);k(B,!1),B instanceof H.default&&B.children.forEach(function(ne){k(ne,!1)})})):"attributes"===M.type&&k($.prev)),k($))}),this.children.forEach(y),C=(D=[].slice.call(this.observer.takeRecords())).slice();C.length>0;)v.push(C.pop())}},I.prototype.update=function(v){var T=this;(v=v||this.observer.takeRecords()).map(function(C){var k=Z.find(C.target,!0);if(null!=k)return null==k.domNode[Z.DATA_KEY].mutations?(k.domNode[Z.DATA_KEY].mutations=[C],k):(k.domNode[Z.DATA_KEY].mutations.push(C),null)}).forEach(function(C){null==C||C===T||null==C.domNode[Z.DATA_KEY]||C.update(C.domNode[Z.DATA_KEY].mutations||[])}),null!=this.domNode[Z.DATA_KEY].mutations&&S.prototype.update.call(this,this.domNode[Z.DATA_KEY].mutations),this.optimize(v)},I}(H.default);O.blotName="scroll",O.defaultChild="block",O.scope=Z.Scope.BLOCK_BLOT,O.tagName="DIV",Object.defineProperty(z,"__esModule",{value:!0}),z.default=O},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(O,S){for(var I in S)S.hasOwnProperty(I)&&(O[I]=S[I]);function v(){this.constructor=O}O.prototype=null===S?Object.create(S):(v.prototype=S.prototype,new v)},H=L(7),Z=L(6);var N=function(O){function S(){return O.apply(this,arguments)||this}return ae(S,O),S.formats=function(I){if(I.tagName!==S.tagName)return O.formats.call(this,I)},S.prototype.format=function(I,v){var T=this;I!==this.statics.blotName||v?O.prototype.format.call(this,I,v):(this.children.forEach(function(C){C instanceof H.default||(C=C.wrap(S.blotName,!0)),T.attributes.copy(C)}),this.unwrap())},S.prototype.formatAt=function(I,v,T,C){null!=this.formats()[T]||Z.query(T,Z.Scope.ATTRIBUTE)?this.isolate(I,v).format(T,C):O.prototype.formatAt.call(this,I,v,T,C)},S.prototype.optimize=function(){O.prototype.optimize.call(this);var I=this.formats();if(0===Object.keys(I).length)return this.unwrap();var v=this.next;v instanceof S&&v.prev===this&&function F(O,S){if(Object.keys(O).length!==Object.keys(S).length)return!1;for(var I in O)if(O[I]!==S[I])return!1;return!0}(I,v.formats())&&(v.moveChildren(this),v.remove())},S}(H.default);N.blotName="inline",N.scope=Z.Scope.INLINE_BLOT,N.tagName="SPAN",Object.defineProperty(z,"__esModule",{value:!0}),z.default=N},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(7),Z=L(6),F=function(N){function O(){return N.apply(this,arguments)||this}return ae(O,N),O.formats=function(S){var I=Z.query(O.blotName).tagName;if(S.tagName!==I)return N.formats.call(this,S)},O.prototype.format=function(S,I){null!=Z.query(S,Z.Scope.BLOCK)&&(S!==this.statics.blotName||I?N.prototype.format.call(this,S,I):this.replaceWith(O.blotName))},O.prototype.formatAt=function(S,I,v,T){null!=Z.query(v,Z.Scope.BLOCK)?this.format(v,T):N.prototype.formatAt.call(this,S,I,v,T)},O.prototype.insertAt=function(S,I,v){if(null==v||null!=Z.query(I,Z.Scope.INLINE))N.prototype.insertAt.call(this,S,I,v);else{var T=this.split(S),C=Z.create(I,v);T.parent.insertBefore(C,T)}},O}(H.default);F.blotName="block",F.scope=Z.Scope.BLOCK_BLOT,F.tagName="P",Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(F,N){for(var O in N)N.hasOwnProperty(O)&&(F[O]=N[O]);function S(){this.constructor=F}F.prototype=null===N?Object.create(N):(S.prototype=N.prototype,new S)},Z=function(F){function N(){return F.apply(this,arguments)||this}return ae(N,F),N.formats=function(O){},N.prototype.format=function(O,S){F.prototype.formatAt.call(this,0,this.length(),O,S)},N.prototype.formatAt=function(O,S,I,v){0===O&&S===this.length()?this.format(I,v):F.prototype.formatAt.call(this,O,S,I,v)},N.prototype.formats=function(){return this.statics.formats(this.domNode)},N}(L(12).default);Object.defineProperty(z,"__esModule",{value:!0}),z.default=Z},function(xe,z,L){"use strict";var ae=this&&this.__extends||function(N,O){for(var S in O)O.hasOwnProperty(S)&&(N[S]=O[S]);function I(){this.constructor=N}N.prototype=null===O?Object.create(O):(I.prototype=O.prototype,new I)},H=L(12),Z=L(6),F=function(N){function O(S){var I=N.call(this,S)||this;return I.text=I.statics.value(I.domNode),I}return ae(O,N),O.create=function(S){return document.createTextNode(S)},O.value=function(S){return S.data},O.prototype.deleteAt=function(S,I){this.domNode.data=this.text=this.text.slice(0,S)+this.text.slice(S+I)},O.prototype.index=function(S,I){return this.domNode===S?I:-1},O.prototype.insertAt=function(S,I,v){null==v?(this.text=this.text.slice(0,S)+I+this.text.slice(S),this.domNode.data=this.text):N.prototype.insertAt.call(this,S,I,v)},O.prototype.length=function(){return this.text.length},O.prototype.optimize=function(){N.prototype.optimize.call(this),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof O&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},O.prototype.position=function(S,I){return void 0===I&&(I=!1),[this.domNode,S]},O.prototype.split=function(S,I){if(void 0===I&&(I=!1),!I){if(0===S)return this;if(S===this.length())return this.next}var v=Z.create(this.domNode.splitText(S));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},O.prototype.update=function(S){var I=this;S.some(function(v){return"characterData"===v.type&&v.target===I.domNode})&&(this.text=this.statics.value(this.domNode))},O.prototype.value=function(){return this.text},O}(H.default);F.blotName="text",F.scope=Z.Scope.INLINE_BLOT,Object.defineProperty(z,"__esModule",{value:!0}),z.default=F},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.overload=z.expandConfig=void 0;var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(de){return typeof de}:function(de){return de&&"function"==typeof Symbol&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},H=function(ce,ie){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return function de(ce,ie){var J=[],oe=!0,Ie=!1,re=void 0;try{for(var Be,ye=ce[Symbol.iterator]();!(oe=(Be=ye.next()).done)&&(J.push(Be.value),!ie||J.length!==ie);oe=!0);}catch(Me){Ie=!0,re=Me}finally{try{!oe&&ye.return&&ye.return()}finally{if(Ie)throw re}}return J}(ce,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function de(ce,ie){for(var J=0;J1&&void 0!==arguments[1]?arguments[1]:{};if(function se(de,ce){if(!(de instanceof ce))throw new TypeError("Cannot call a class as a function")}(this,de),this.options=ue(ce,J),this.container=this.options.container,this.scrollingContainer=this.options.scrollingContainer||document.body,null==this.container)return X.error("Invalid Quill container",ce);this.options.debug&&de.debug(this.options.debug);var oe=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new v.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new S.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(re){re===v.default.events.TEXT_CHANGE&&ie.root.classList.toggle("ql-blank",ie.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(re,ye){var Be=ie.selection.lastRange,Me=Be&&0===Be.length?Be.index:void 0;pe.call(ie,function(){return ie.editor.update(null,ye,Me)},re)});var Ie=this.clipboard.convert("
"+oe+"


");this.setContents(Ie),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return Z(de,null,[{key:"debug",value:function(ie){!0===ie&&(ie="log"),B.default.level(ie)}},{key:"import",value:function(ie){return null==this.imports[ie]&&X.error("Cannot import "+ie+". Are you sure it was registered?"),this.imports[ie]}},{key:"register",value:function(ie,J){var oe=this,Ie=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof ie){var re=ie.attrName||ie.blotName;"string"==typeof re?this.register("formats/"+re,ie,J):Object.keys(ie).forEach(function(ye){oe.register(ye,ie[ye],J)})}else null!=this.imports[ie]&&!Ie&&X.warn("Overwriting "+ie+" with",J),this.imports[ie]=J,(ie.startsWith("blots/")||ie.startsWith("formats/"))&&"abstract"!==J.blotName&&y.default.register(J)}}]),Z(de,[{key:"addContainer",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof ie){var oe=ie;(ie=document.createElement("div")).classList.add(oe)}return this.container.insertBefore(ie,J),ie}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return pe.call(this,function(){return Ie.editor.deleteText(ie,J)},oe=ye[3],ie=ye[0],-1*(J=ye[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ie=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(ie),this.container.classList.toggle("ql-disabled",!ie),ie||this.blur()}},{key:"focus",value:function(){var ie=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=ie,this.selection.scrollIntoView()}},{key:"format",value:function(ie,J){var oe=this;return pe.call(this,function(){var re=oe.getSelection(!0),ye=new N.default;if(null==re)return ye;if(y.default.query(ie,y.default.Scope.BLOCK))ye=oe.editor.formatLine(re.index,re.length,R({},ie,J));else{if(0===re.length)return oe.selection.format(ie,J),ye;ye=oe.editor.formatText(re.index,re.length,R({},ie,J))}return oe.setSelection(re,v.default.sources.SILENT),ye},arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API)}},{key:"formatLine",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatLine(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"formatText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,J,oe,Ie,re),Ue=H(Me,4);return J=Ue[1],Be=Ue[2],pe.call(this,function(){return ye.editor.formatText(ie,J,Be)},re=Ue[3],ie=Ue[0],0)}},{key:"getBounds",value:function(ie){return"number"==typeof ie?this.selection.getBounds(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(ie.index,ie.length)}},{key:"getContents",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getContents(ie=Ie[0],J=Ie[1])}},{key:"getFormat",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection();return"number"==typeof ie?this.editor.getFormat(ie,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(ie.index,ie.length)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getModule",value:function(ie){return this.theme.modules[ie]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-ie,oe=_e(ie,J),Ie=H(oe,2);return this.editor.getText(ie=Ie[0],J=Ie[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ie,J,oe){var Ie=this;return pe.call(this,function(){return Ie.editor.insertEmbed(ie,J,oe)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:de.sources.API,ie)}},{key:"insertText",value:function(ie,J,oe,Ie,re){var Be,ye=this,Me=_e(ie,0,oe,Ie,re),Ue=H(Me,4);return Be=Ue[2],pe.call(this,function(){return ye.editor.insertText(ie,J,Be)},re=Ue[3],ie=Ue[0],J.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(ie,J,oe){this.clipboard.dangerouslyPasteHTML(ie,J,oe)}},{key:"removeFormat",value:function(ie,J,oe){var Ie=this,re=_e(ie,J,oe),ye=H(re,4);return J=ye[1],pe.call(this,function(){return Ie.editor.removeFormat(ie,J)},oe=ye[3],ie=ye[0])}},{key:"setContents",value:function(ie){var J=this;return pe.call(this,function(){ie=new N.default(ie);var Ie=J.getLength(),re=J.editor.deleteText(0,Ie),ye=J.editor.applyDelta(ie),Be=ye.ops[ye.ops.length-1];return null!=Be&&"string"==typeof Be.insert&&"\n"===Be.insert[Be.insert.length-1]&&(J.editor.deleteText(J.getLength()-1,1),ye.delete(1)),re.compose(ye)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API)}},{key:"setSelection",value:function(ie,J,oe){if(null==ie)this.selection.setRange(null,J||de.sources.API);else{var Ie=_e(ie,J,oe),re=H(Ie,4);oe=re[3],this.selection.setRange(new D.Range(ie=re[0],J=re[1]),oe)}this.selection.scrollIntoView()}},{key:"setText",value:function(ie){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API,oe=(new N.default).insert(ie);return this.setContents(oe,J)}},{key:"update",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,J=this.scroll.update(ie);return this.selection.update(ie),J}},{key:"updateContents",value:function(ie){var J=this,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.default.sources.API;return pe.call(this,function(){return ie=new N.default(ie),J.editor.applyDelta(ie,oe)},oe,!0)}}]),de}();function ue(de,ce){if((ce=(0,$.default)(!0,{container:de,modules:{clipboard:!0,keyboard:!0,history:!0}},ce)).theme&&ce.theme!==U.DEFAULTS.theme){if(ce.theme=U.import("themes/"+ce.theme),null==ce.theme)throw new Error("Invalid theme "+ce.theme+". Did you register it?")}else ce.theme=Y.default;var ie=(0,$.default)(!0,{},ce.theme.DEFAULTS);[ie,ce].forEach(function(Ie){Ie.modules=Ie.modules||{},Object.keys(Ie.modules).forEach(function(re){!0===Ie.modules[re]&&(Ie.modules[re]={})})});var oe=Object.keys(ie.modules).concat(Object.keys(ce.modules)).reduce(function(Ie,re){var ye=U.import("modules/"+re);return null==ye?X.error("Cannot load "+re+" module. Are you sure you registered it?"):Ie[re]=ye.DEFAULTS||{},Ie},{});return null!=ce.modules&&ce.modules.toolbar&&ce.modules.toolbar.constructor!==Object&&(ce.modules.toolbar={container:ce.modules.toolbar}),ce=(0,$.default)(!0,{},U.DEFAULTS,{modules:oe},ie,ce),["bounds","container","scrollingContainer"].forEach(function(Ie){"string"==typeof ce[Ie]&&(ce[Ie]=document.querySelector(ce[Ie]))}),ce.modules=Object.keys(ce.modules).reduce(function(Ie,re){return ce.modules[re]&&(Ie[re]=ce.modules[re]),Ie},{}),ce}function pe(de,ce,ie,J){if(this.options.strict&&!this.isEnabled()&&ce===v.default.sources.USER)return new N.default;var oe=null==ie?null:this.getSelection(),Ie=this.editor.delta,re=de();if(null!=oe&&ce===v.default.sources.USER&&(!0===ie&&(ie=oe.index),null==J?oe=he(oe,re,ce):0!==J&&(oe=he(oe,ie,J,ce)),this.setSelection(oe,v.default.sources.SILENT)),re.length()>0){var ye,Me,Be=[v.default.events.TEXT_CHANGE,re,Ie,ce];(ye=this.emitter).emit.apply(ye,[v.default.events.EDITOR_CHANGE].concat(Be)),ce!==v.default.sources.SILENT&&(Me=this.emitter).emit.apply(Me,Be)}return re}function _e(de,ce,ie,J,oe){var Ie={};return"number"==typeof de.index&&"number"==typeof de.length?"number"!=typeof ce?(oe=J,J=ie,ie=ce,ce=de.length,de=de.index):(ce=de.length,de=de.index):"number"!=typeof ce&&(oe=J,J=ie,ie=ce,ce=0),"object"===(typeof ie>"u"?"undefined":ae(ie))?(Ie=ie,oe=J):"string"==typeof ie&&(null!=J?Ie[ie]=J:oe=ie),[de,ce,Ie,oe=oe||v.default.sources.API]}function he(de,ce,ie,J){if(null==de)return null;var oe=void 0,Ie=void 0;if(ce instanceof N.default){var re=[de.index,de.index+de.length].map(function(Ue){return ce.transformPosition(Ue,J===v.default.sources.USER)}),ye=H(re,2);oe=ye[0],Ie=ye[1]}else{var Be=[de.index,de.index+de.length].map(function(Ue){return Ue=0?Ue+ie:Math.max(ce,Ue+ie)}),Me=H(Be,2);oe=Me[0],Ie=Me[1]}return new D.Range(oe,Ie-oe)}U.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},U.events=v.default.events,U.sources=v.default.sources,U.version="1.1.8",U.imports={delta:N.default,parchment:y.default,"core/module":C.default,"core/theme":Y.default},z.expandConfig=ue,z.overload=_e,z.default=U},function(xe,z){"use strict";var ae,L=document.createElement("div");L.classList.toggle("test-class",!1),L.classList.contains("test-class")&&(ae=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(H,Z){return arguments.length>1&&!this.contains(H)==!Z?Z:ae.call(this,H)}),String.prototype.startsWith||(String.prototype.startsWith=function(ae,H){return this.substr(H=H||0,ae.length)===ae}),String.prototype.endsWith||(String.prototype.endsWith=function(ae,H){var Z=this.toString();("number"!=typeof H||!isFinite(H)||Math.floor(H)!==H||H>Z.length)&&(H=Z.length);var F=Z.indexOf(ae,H-=ae.length);return-1!==F&&F===H}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(H){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof H)throw new TypeError("predicate must be a function");for(var O,Z=Object(this),F=Z.length>>>0,N=arguments[1],S=0;S0&&(v.attributes=I),this.push(v))},O.prototype.delete=function(S){return S<=0?this:this.push({delete:S})},O.prototype.retain=function(S,I){if(S<=0)return this;var v={retain:S};return null!=I&&"object"==typeof I&&Object.keys(I).length>0&&(v.attributes=I),this.push(v)},O.prototype.push=function(S){var I=this.ops.length,v=this.ops[I-1];if(S=Z(!0,{},S),"object"==typeof v){if("number"==typeof S.delete&&"number"==typeof v.delete)return this.ops[I-1]={delete:v.delete+S.delete},this;if("number"==typeof v.delete&&null!=S.insert&&"object"!=typeof(v=this.ops[(I-=1)-1]))return this.ops.unshift(S),this;if(H(S.attributes,v.attributes)){if("string"==typeof S.insert&&"string"==typeof v.insert)return this.ops[I-1]={insert:v.insert+S.insert},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this;if("number"==typeof S.retain&&"number"==typeof v.retain)return this.ops[I-1]={retain:v.retain+S.retain},"object"==typeof S.attributes&&(this.ops[I-1].attributes=S.attributes),this}}return I===this.ops.length?this.ops.push(S):this.ops.splice(I,0,S),this},O.prototype.filter=function(S){return this.ops.filter(S)},O.prototype.forEach=function(S){this.ops.forEach(S)},O.prototype.map=function(S){return this.ops.map(S)},O.prototype.partition=function(S){var I=[],v=[];return this.forEach(function(T){(S(T)?I:v).push(T)}),[I,v]},O.prototype.reduce=function(S,I){return this.ops.reduce(S,I)},O.prototype.chop=function(){var S=this.ops[this.ops.length-1];return S&&S.retain&&!S.attributes&&this.ops.pop(),this},O.prototype.length=function(){return this.reduce(function(S,I){return S+F.length(I)},0)},O.prototype.slice=function(S,I){S=S||0,"number"!=typeof I&&(I=1/0);for(var v=[],T=F.iterator(this.ops),C=0;C0&&(I.push(S.ops[0]),I.ops=I.ops.concat(S.ops.slice(1))),I},O.prototype.diff=function(S,I){if(this.ops===S.ops)return new O;var v=[this,S].map(function(D){return D.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:N;var M=ops===S.ops?"on":"with";throw new Error("diff() called "+M+" non-document")}).join("")}),T=new O,C=ae(v[0],v[1],I),k=F.iterator(this.ops),y=F.iterator(S.ops);return C.forEach(function(D){for(var w=D[1].length;w>0;){var M=0;switch(D[0]){case ae.INSERT:M=Math.min(y.peekLength(),w),T.push(y.next(M));break;case ae.DELETE:M=Math.min(w,k.peekLength()),k.next(M),T.delete(M);break;case ae.EQUAL:M=Math.min(k.peekLength(),y.peekLength(),w);var $=k.next(M),ee=y.next(M);H($.insert,ee.insert)?T.retain(M,F.attributes.diff($.attributes,ee.attributes)):T.push(ee).delete(M)}w-=M}}),T.chop()},O.prototype.eachLine=function(S,I){I=I||"\n";for(var v=F.iterator(this.ops),T=new O;v.hasNext();){if("insert"!==v.peekType())return;var C=v.peek(),k=F.length(C)-v.peekLength(),y="string"==typeof C.insert?C.insert.indexOf(I,k)-k:-1;y<0?T.push(v.next()):y>0?T.push(v.next(y)):(S(T,v.next(1).attributes||{}),T=new O)}T.length()>0&&S(T,{})},O.prototype.transform=function(S,I){if(I=!!I,"number"==typeof S)return this.transformPosition(S,I);for(var v=F.iterator(this.ops),T=F.iterator(S.ops),C=new O;v.hasNext()||T.hasNext();)if("insert"!==v.peekType()||!I&&"insert"===T.peekType())if("insert"===T.peekType())C.push(T.next());else{var k=Math.min(v.peekLength(),T.peekLength()),y=v.next(k),D=T.next(k);if(y.delete)continue;D.delete?C.push(D):C.retain(k,F.attributes.transform(y.attributes,D.attributes,I))}else C.retain(F.length(v.next()));return C.chop()},O.prototype.transformPosition=function(S,I){I=!!I;for(var v=F.iterator(this.ops),T=0;v.hasNext()&&T<=S;){var C=v.peekLength(),k=v.peekType();v.next(),"delete"!==k?("insert"===k&&(TM.length?w:M,B=w.length>M.length?M:w,ne=ee.indexOf(B);if(-1!=ne)return $=[[ae,ee.substring(0,ne)],[H,B],[ae,ee.substring(ne+B.length)]],w.length>M.length&&($[0][0]=$[2][0]=L),$;if(1==B.length)return[[L,w],[ae,M]];var Y=function v(w,M){var $=w.length>M.length?w:M,ee=w.length>M.length?M:w;if($.length<4||2*ee.length<$.length)return null;function B(pe,_e,he){for(var J,oe,Ie,re,de=pe.substring(he,he+Math.floor(pe.length/4)),ce=-1,ie="";-1!=(ce=_e.indexOf(de,ce+1));){var ye=S(pe.substring(he),_e.substring(ce)),Be=I(pe.substring(0,he),_e.substring(0,ce));ie.length=pe.length?[J,oe,Ie,re,ie]:null}var Q,R,se,X,U,ne=B($,ee,Math.ceil($.length/4)),Y=B($,ee,Math.ceil($.length/2));return ne||Y?(Q=Y?ne&&ne[4].length>Y[4].length?ne:Y:ne,w.length>M.length?(R=Q[0],se=Q[1],X=Q[2],U=Q[3]):(X=Q[0],U=Q[1],R=Q[2],se=Q[3]),[R,se,X,U,Q[4]]):null}(w,M);if(Y){var R=Y[1],X=Y[3],U=Y[4],ue=Z(Y[0],Y[2]),pe=Z(R,X);return ue.concat([[H,U]],pe)}return function N(w,M){for(var $=w.length,ee=M.length,B=Math.ceil(($+ee)/2),ne=B,Y=2*B,Q=new Array(Y),R=new Array(Y),se=0;se$)pe+=2;else if(oe>ee)ue+=2;else if(U&&(Ie=ne+X-ce)>=0&&Ie=(re=$-R[Ie]))return O(w,M,J,oe)}for(var ye=-de+_e;ye<=de-he;ye+=2){for(var re,Ie=ne+ye,Be=(re=ye==-de||ye!=de&&R[Ie-1]$)he+=2;else if(Be>ee)_e+=2;else if(!U){var J;if((ie=ne+X-ye)>=0&&ie=(re=$-re)))return O(w,M,J,oe)}}}return[[L,w],[ae,M]]}(w,M)}(w=w.substring(0,w.length-ee),M=M.substring(0,M.length-ee));return B&&Y.unshift([H,B]),ne&&Y.push([H,ne]),T(Y),null!=$&&(Y=function y(w,M){var $=function k(w,M){if(0===M)return[H,w];for(var $=0,ee=0;ee0&&ee.splice(B+2,0,[Y[0],Q]),D(ee,B,3)}return w}(Y,$)),Y}function O(w,M,$,ee){var B=w.substring(0,$),ne=M.substring(0,ee),Y=w.substring($),Q=M.substring(ee),R=Z(B,ne),se=Z(Y,Q);return R.concat(se)}function S(w,M){if(!w||!M||w.charAt(0)!=M.charAt(0))return 0;for(var $=0,ee=Math.min(w.length,M.length),B=ee,ne=0;$1?(0!==$&&0!==ee&&(0!==(Y=S(ne,B))&&(M-$-ee>0&&w[M-$-ee-1][0]==H?w[M-$-ee-1][1]+=ne.substring(0,Y):(w.splice(0,0,[H,ne.substring(0,Y)]),M++),ne=ne.substring(Y),B=B.substring(Y)),0!==(Y=I(ne,B))&&(w[M][1]=ne.substring(ne.length-Y)+w[M][1],ne=ne.substring(0,ne.length-Y),B=B.substring(0,B.length-Y))),0===$?w.splice(M-ee,$+ee,[ae,ne]):0===ee?w.splice(M-$,$+ee,[L,B]):w.splice(M-$-ee,$+ee,[L,B],[ae,ne]),M=M-$-ee+($?1:0)+(ee?1:0)+1):0!==M&&w[M-1][0]==H?(w[M-1][1]+=w[M][1],w.splice(M,1)):M++,ee=0,$=0,B="",ne=""}""===w[w.length-1][1]&&w.pop();var Q=!1;for(M=1;M=0&&ee>=M-1;ee--)if(ee+1=0;C--)if(y[C]!=D[C])return!1;for(C=y.length-1;C>=0;C--)if(!F(I[k=y[C]],v[k],T))return!1;return typeof I==typeof v}(I,v,T))};function N(I){return null==I}function O(I){return!(!I||"object"!=typeof I||"number"!=typeof I.length||"function"!=typeof I.copy||"function"!=typeof I.slice||I.length>0&&"number"!=typeof I[0])}},function(xe,z){function L(ae){var H=[];for(var Z in ae)H.push(Z);return H}(xe.exports="function"==typeof Object.keys?Object.keys:L).shim=L},function(xe,z){var L="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function ae(Z){return"[object Arguments]"==Object.prototype.toString.call(Z)}function H(Z){return Z&&"object"==typeof Z&&"number"==typeof Z.length&&Object.prototype.hasOwnProperty.call(Z,"callee")&&!Object.prototype.propertyIsEnumerable.call(Z,"callee")||!1}(z=xe.exports=L?ae:H).supported=ae,z.unsupported=H},function(xe,z){"use strict";var L=Object.prototype.hasOwnProperty,ae=Object.prototype.toString,H=function(N){return"function"==typeof Array.isArray?Array.isArray(N):"[object Array]"===ae.call(N)},Z=function(N){if(!N||"[object Object]"!==ae.call(N))return!1;var I,O=L.call(N,"constructor"),S=N.constructor&&N.constructor.prototype&&L.call(N.constructor.prototype,"isPrototypeOf");if(N.constructor&&!O&&!S)return!1;for(I in N);return typeof I>"u"||L.call(N,I)};xe.exports=function F(){var N,O,S,I,v,T,C=arguments[0],k=1,y=arguments.length,D=!1;for("boolean"==typeof C?(D=C,C=arguments[1]||{},k=2):("object"!=typeof C&&"function"!=typeof C||null==C)&&(C={});k0?I:void 0},diff:function(N,O){"object"!=typeof N&&(N={}),"object"!=typeof O&&(O={});var S=Object.keys(N).concat(Object.keys(O)).reduce(function(I,v){return ae(N[v],O[v])||(I[v]=void 0===O[v]?null:O[v]),I},{});return Object.keys(S).length>0?S:void 0},transform:function(N,O,S){if("object"!=typeof N)return O;if("object"==typeof O){if(!S)return O;var I=Object.keys(O).reduce(function(v,T){return void 0===N[T]&&(v[T]=O[T]),v},{});return Object.keys(I).length>0?I:void 0}}},iterator:function(N){return new F(N)},length:function(N){return"number"==typeof N.delete?N.delete:"number"==typeof N.retain?N.retain:"string"==typeof N.insert?N.insert.length:1}};function F(N){this.ops=N,this.index=0,this.offset=0}F.prototype.hasNext=function(){return this.peekLength()<1/0},F.prototype.next=function(N){N||(N=1/0);var O=this.ops[this.index];if(O){var S=this.offset,I=Z.length(O);if(N>=I-S?(N=I-S,this.index+=1,this.offset=0):this.offset+=N,"number"==typeof O.delete)return{delete:N};var v={};return O.attributes&&(v.attributes=O.attributes),"number"==typeof O.retain?v.retain=N:v.insert="string"==typeof O.insert?O.insert.substr(S,N):O.insert,v}return{retain:1/0}},F.prototype.peek=function(){return this.ops[this.index]},F.prototype.peekLength=function(){return this.ops[this.index]?Z.length(this.ops[this.index])-this.offset:1/0},F.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},xe.exports=Z},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(pe){return typeof pe}:function(pe){return pe&&"function"==typeof Symbol&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},H=function(_e,he){if(Array.isArray(_e))return _e;if(Symbol.iterator in Object(_e))return function pe(_e,he){var de=[],ce=!0,ie=!1,J=void 0;try{for(var Ie,oe=_e[Symbol.iterator]();!(ce=(Ie=oe.next()).done)&&(de.push(Ie.value),!he||de.length!==he);ce=!0);}catch(re){ie=!0,J=re}finally{try{!ce&&oe.return&&oe.return()}finally{if(ie)throw J}}return de}(_e,he);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function pe(_e,he){for(var de=0;de=ie&&!ye.endsWith("\n")&&(ce=!0),de.scroll.insertAt(J,ye);var Be=de.scroll.line(J),Me=H(Be,2),Ue=Me[0],Bn=Me[1],at=(0,Y.default)({},(0,D.bubbleFormats)(Ue));if(Ue instanceof w.default){var Fe=Ue.descendant(v.default.Leaf,Bn),Re=H(Fe,1);at=(0,Y.default)(at,(0,D.bubbleFormats)(Re[0]))}re=S.default.attributes.diff(at,re)||{}}else if("object"===ae(oe.insert)){var rt=Object.keys(oe.insert)[0];if(null==rt)return J;de.scroll.insertAt(J,rt,oe.insert[rt])}ie+=Ie}return Object.keys(re).forEach(function(ot){de.scroll.formatAt(J,Ie,ot,re[ot])}),J+Ie},0),he.reduce(function(J,oe){return"number"==typeof oe.delete?(de.scroll.deleteAt(J,oe.delete),J):J+(oe.retain||oe.insert.length||1)},0),this.scroll.batch=!1,this.scroll.optimize(),this.update(he)}},{key:"deleteText",value:function(he,de){return this.scroll.deleteAt(he,de),this.update((new N.default).retain(he).delete(de))}},{key:"formatLine",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(ie).forEach(function(J){var oe=ce.scroll.lines(he,Math.max(de,1)),Ie=de;oe.forEach(function(re){var ye=re.length();if(re instanceof C.default){var Be=he-re.offset(ce.scroll),Me=re.newlineIndex(Be+Ie)-Be+1;re.formatAt(Be,Me,J,ie[J])}else re.format(J,ie[J]);Ie-=ye})}),this.scroll.optimize(),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"formatText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de,J,ie[J])}),this.update((new N.default).retain(he).retain(de,(0,$.default)(ie)))}},{key:"getContents",value:function(he,de){return this.delta.slice(he,he+de)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(he,de){return he.concat(de.delta())},new N.default)}},{key:"getFormat",value:function(he){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ce=[],ie=[];0===de?this.scroll.path(he).forEach(function(oe){var re=H(oe,1)[0];re instanceof w.default?ce.push(re):re instanceof v.default.Leaf&&ie.push(re)}):(ce=this.scroll.lines(he,de),ie=this.scroll.descendants(v.default.Leaf,he,de));var J=[ce,ie].map(function(oe){if(0===oe.length)return{};for(var Ie=(0,D.bubbleFormats)(oe.shift());Object.keys(Ie).length>0;){var re=oe.shift();if(null==re)return Ie;Ie=U((0,D.bubbleFormats)(re),Ie)}return Ie});return Y.default.apply(Y.default,J)}},{key:"getText",value:function(he,de){return this.getContents(he,de).filter(function(ce){return"string"==typeof ce.insert}).map(function(ce){return ce.insert}).join("")}},{key:"insertEmbed",value:function(he,de,ce){return this.scroll.insertAt(he,de,ce),this.update((new N.default).retain(he).insert(function R(pe,_e,he){return _e in pe?Object.defineProperty(pe,_e,{value:he,enumerable:!0,configurable:!0,writable:!0}):pe[_e]=he,pe}({},de,ce)))}},{key:"insertText",value:function(he,de){var ce=this,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return de=de.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(he,de),Object.keys(ie).forEach(function(J){ce.scroll.formatAt(he,de.length,J,ie[J])}),this.update((new N.default).retain(he).insert(de,(0,$.default)(ie)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var he=this.scroll.children.head;return he.length()<=1&&0==Object.keys(he.formats()).length}},{key:"removeFormat",value:function(he,de){var ce=this.getText(he,de),ie=this.scroll.line(he+de),J=H(ie,2),oe=J[0],Ie=J[1],re=0,ye=new N.default;null!=oe&&(re=oe instanceof C.default?oe.newlineIndex(Ie)-Ie+1:oe.length()-Ie,ye=oe.delta().slice(Ie,Ie+re-1).insert("\n"));var Me=this.getContents(he,de+re).diff((new N.default).insert(ce).concat(ye)),Ue=(new N.default).retain(he).concat(Me);return this.applyDelta(Ue)}},{key:"update",value:function(he){var oe,Ie,re,ye,Be,Me,ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,J=this.delta;return 1===ce.length&&"characterData"===ce[0].type&&v.default.find(ce[0].target)?(oe=v.default.find(ce[0].target),Ie=(0,D.bubbleFormats)(oe),re=oe.offset(this.scroll),ye=ce[0].oldValue.replace(y.default.CONTENTS,""),Be=(new N.default).insert(ye),Me=(new N.default).insert(oe.value()),he=(new N.default).retain(re).concat(Be.diff(Me,ie)).reduce(function(Bn,at){return at.insert?Bn.insert(at.insert,Ie):Bn.push(at)},new N.default),this.delta=J.compose(he)):(this.delta=this.getDelta(),(!he||!(0,B.default)(J.compose(he),this.delta))&&(he=J.diff(this.delta,ie))),he}}]),pe}();function U(pe,_e){return Object.keys(_e).reduce(function(he,de){return null==pe[de]||(_e[de]===pe[de]?he[de]=_e[de]:Array.isArray(_e[de])?_e[de].indexOf(pe[de])<0&&(he[de]=_e[de].concat([pe[de]])):he[de]=[_e[de],pe[de]]),he},{})}z.default=X},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Code=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R=R+se)){var pe=this.newlineIndex(R,!0)+1,_e=ue-pe+1,he=this.isolate(pe,_e),de=he.next;he.format(X,U),de instanceof Y&&de.formatAt(0,R-pe+se-_e,X,U)}}}},{key:"insertAt",value:function(R,se,X){if(null==X){var U=this.descendant(y.default,R),ue=ae(U,2);ue[0].insertAt(ue[1],se)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?R:R+1}},{key:"newlineIndex",value:function(R){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,R).lastIndexOf("\n");var X=this.domNode.textContent.slice(R).indexOf("\n");return X>-1?R+X:-1}},{key:"optimize",value:function(){this.domNode.textContent.endsWith("\n")||this.appendChild(S.default.create("text","\n")),Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"optimize",this).call(this);var R=this.next;null!=R&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(),R.moveChildren(this),R.remove())}},{key:"replace",value:function(R){Z(Y.prototype.__proto__||Object.getPrototypeOf(Y.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(se){var X=S.default.find(se);null==X?se.parentNode.removeChild(se):X instanceof S.default.Embed?X.remove():X.unwrap()})}}],[{key:"create",value:function(R){var se=Z(Y.__proto__||Object.getPrototypeOf(Y),"create",this).call(this,R);return se.setAttribute("spellcheck",!1),se}},{key:"formats",value:function(){return!0}}]),Y}(v.default);B.blotName="code-block",B.tagName="PRE",B.TAB=" ",z.Code=ee,z.default=B},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BlockEmbed=z.bubbleFormats=void 0;var ae=function(){function X(U,ue){for(var pe=0;pe0&&(pe1&&void 0!==arguments[1]&&arguments[1];if(_e&&(0===pe||pe>=this.length()-1)){var he=this.clone();return 0===pe?(this.parent.insertBefore(he,this),this):(this.parent.insertBefore(he,this.next),he)}var de=H(U.prototype.__proto__||Object.getPrototypeOf(U.prototype),"split",this).call(this,pe,_e);return this.cache={},de}}]),U}(I.default.Block);function se(X){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==X||("function"==typeof X.formats&&(U=(0,F.default)(U,X.formats())),null==X.parent||"scroll"==X.parent.blotName||X.parent.statics.scope!==X.statics.scope)?U:se(X.parent,U)}R.blotName="block",R.tagName="P",R.defaultChild="break",R.allowedChildren=[D.default,k.default,M.default],z.bubbleFormats=se,z.BlockEmbed=Q,z.default=R},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y0){var $=this.parent.isolate(this.offset(),this.length());this.moveChildren($),$.wrap(this)}}}],[{key:"compare",value:function($,ee){var B=w.order.indexOf($),ne=w.order.indexOf(ee);return B>=0||ne>=0?B-ne:$===ee?0:$1?N-1:0),S=1;S"u"&&(C=!0),typeof k>"u"&&(k=1/0),function ee(B,ne){if(null===B)return null;if(0===ne)return B;var Y,Q;if("object"!=typeof B)return B;if(B instanceof ae)Y=new ae;else if(B instanceof H)Y=new H;else if(B instanceof Z)Y=new Z(function(re,ye){B.then(function(Be){re(ee(Be,ne-1))},function(Be){ye(ee(Be,ne-1))})});else if(F.__isArray(B))Y=[];else if(F.__isRegExp(B))Y=new RegExp(B.source,v(B)),B.lastIndex&&(Y.lastIndex=B.lastIndex);else if(F.__isDate(B))Y=new Date(B.getTime());else{if($&&Buffer.isBuffer(B))return Y=new Buffer(B.length),B.copy(Y),Y;B instanceof Error?Y=Object.create(B):typeof y>"u"?(Q=Object.getPrototypeOf(B),Y=Object.create(Q)):(Y=Object.create(y),Q=y)}if(C){var R=w.indexOf(B);if(-1!=R)return M[R];w.push(B),M.push(Y)}if(B instanceof ae)for(var se=B.keys();!(X=se.next()).done;){var U=ee(X.value,ne-1),ue=ee(B.get(X.value),ne-1);Y.set(U,ue)}if(B instanceof H)for(var pe=B.keys();;){var X;if((X=pe.next()).done)break;var _e=ee(X.value,ne-1);Y.add(_e)}for(var he in B){var de;Q&&(de=Object.getOwnPropertyDescriptor(Q,he)),(!de||null!=de.set)&&(Y[he]=ee(B[he],ne-1))}if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(B);for(he=0;he1&&void 0!==arguments[1]?arguments[1]:{};(function L(H,Z){if(!(H instanceof Z))throw new TypeError("Cannot call a class as a function")})(this,H),this.quill=Z,this.options=F};ae.DEFAULTS={},z.default=ae},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.Range=void 0;var ae=function(Y,Q){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return function ne(Y,Q){var R=[],se=!0,X=!1,U=void 0;try{for(var pe,ue=Y[Symbol.iterator]();!(se=(pe=ue.next()).done)&&(R.push(pe.value),!Q||R.length!==Q);se=!0);}catch(_e){X=!0,U=_e}finally{try{!se&&ue.return&&ue.return()}finally{if(X)throw U}}return R}(Y,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function ne(Y,Q){for(var R=0;R1&&void 0!==arguments[1]?arguments[1]:0;w(this,ne),this.index=Y,this.length=Q},ee=function(){function ne(Y,Q){var R=this;w(this,ne),this.emitter=Q,this.scroll=Y,this.composing=!1,this.root=this.scroll.domNode,this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){R.composing=!1}),this.cursor=F.default.create("cursor",this),this.lastRange=this.savedRange=new $(0,0),["keyup","mouseup","mouseleave","touchend","touchleave","focus","blur"].forEach(function(se){R.root.addEventListener(se,function(){setTimeout(R.update.bind(R,T.default.sources.USER),100)})}),this.emitter.on(T.default.events.EDITOR_CHANGE,function(se,X){se===T.default.events.TEXT_CHANGE&&X.length()>0&&R.update(T.default.sources.SILENT)}),this.emitter.on(T.default.events.SCROLL_BEFORE_UPDATE,function(){var se=R.getNativeRange();null!=se&&se.start.node!==R.cursor.textNode&&R.emitter.once(T.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(se.start.node,se.start.offset,se.end.node,se.end.offset)}catch{}})}),this.update(T.default.sources.SILENT)}return H(ne,[{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Q,R){if(null==this.scroll.whitelist||this.scroll.whitelist[Q]){this.scroll.update();var se=this.getNativeRange();if(null!=se&&se.native.collapsed&&!F.default.query(Q,F.default.Scope.BLOCK)){if(se.start.node!==this.cursor.textNode){var X=F.default.find(se.start.node,!1);if(null==X)return;if(X instanceof F.default.Leaf){var U=X.split(se.start.offset);X.parent.insertBefore(this.cursor,U)}else X.insertBefore(this.cursor,se.start.node);this.cursor.attach()}this.cursor.format(Q,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Q){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,se=this.scroll.length();Q=Math.min(Q,se-1),R=Math.min(Q+R,se-1)-Q;var X=void 0,U=void 0,ue=this.scroll.leaf(Q),pe=ae(ue,2),_e=pe[0],he=pe[1];if(null==_e)return null;var de=_e.position(he,!0),ce=ae(de,2);U=ce[0],he=ce[1];var ie=document.createRange();if(R>0){ie.setStart(U,he);var J=this.scroll.leaf(Q+R),oe=ae(J,2);if(null==(_e=oe[0]))return null;var Ie=_e.position(he=oe[1],!0),re=ae(Ie,2);ie.setEnd(U=re[0],he=re[1]),X=ie.getBoundingClientRect()}else{var ye="left",Be=void 0;U instanceof Text?(he0&&(ye="right")),X={height:Be.height,left:Be[ye],width:0,top:Be.top}}var Me=this.root.parentNode.getBoundingClientRect();return{left:X.left-Me.left,right:X.left+X.width-Me.left,top:X.top-Me.top,bottom:X.top+X.height-Me.top,height:X.height,width:X.width}}},{key:"getNativeRange",value:function(){var Q=document.getSelection();if(null==Q||Q.rangeCount<=0)return null;var R=Q.getRangeAt(0);if(null==R||!B(this.root,R.startContainer)||!R.collapsed&&!B(this.root,R.endContainer))return null;var se={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[se.start,se.end].forEach(function(X){for(var U=X.node,ue=X.offset;!(U instanceof Text)&&U.childNodes.length>0;)if(U.childNodes.length>ue)U=U.childNodes[ue],ue=0;else{if(U.childNodes.length!==ue)break;ue=(U=U.lastChild)instanceof Text?U.data.length:U.childNodes.length+1}X.node=U,X.offset=ue}),M.info("getNativeRange",se),se}},{key:"getRange",value:function(){var Q=this,R=this.getNativeRange();if(null==R)return[null,null];var se=[[R.start.node,R.start.offset]];R.native.collapsed||se.push([R.end.node,R.end.offset]);var X=se.map(function(pe){var _e=ae(pe,2),he=_e[0],de=_e[1],ce=F.default.find(he,!0),ie=ce.offset(Q.scroll);return 0===de?ie:ce instanceof F.default.Container?ie+ce.length():ie+ce.index(he,de)}),U=Math.min.apply(Math,D(X)),ue=Math.max.apply(Math,D(X));return ue=Math.min(ue,this.scroll.length()-1),[new $(U,ue-U),R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"scrollIntoView",value:function(){var Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastRange;if(null!=Q){var R=this.getBounds(Q.index,Q.length);if(null!=R)if(this.root.offsetHeight2&&void 0!==arguments[2]?arguments[2]:Q,X=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R,U=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(M.info("setNativeRange",Q,R,se,X),null==Q||null!=this.root.parentNode&&null!=Q.parentNode&&null!=se.parentNode){var ue=document.getSelection();if(null!=ue)if(null!=Q){this.hasFocus()||this.root.focus();var pe=(this.getNativeRange()||{}).native;if(null==pe||U||Q!==pe.startContainer||R!==pe.startOffset||se!==pe.endContainer||X!==pe.endOffset){var _e=document.createRange();_e.setStart(Q,R),_e.setEnd(se,X),ue.removeAllRanges(),ue.addRange(_e)}}else ue.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Q){var U,ue,pe,R=this,se=arguments.length>1&&void 0!==arguments[1]&&arguments[1],X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.default.sources.API;"string"==typeof se&&(X=se,se=!1),M.info("setRange",Q),null!=Q?(U=Q.collapsed?[Q.index]:[Q.index,Q.index+Q.length],ue=[],pe=R.scroll.length(),U.forEach(function(_e,he){_e=Math.min(pe-1,_e);var ce=R.scroll.leaf(_e),ie=ae(ce,2),oe=ie[1],Ie=ie[0].position(oe,0!==he),re=ae(Ie,2);ue.push(re[0],oe=re[1])}),ue.length<2&&(ue=ue.concat(ue)),R.setNativeRange.apply(R,D(ue).concat([se]))):this.setNativeRange(null),this.update(X)}},{key:"update",value:function(){var R,Q=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T.default.sources.USER,se=this.lastRange,X=this.getRange(),U=ae(X,2);if(this.lastRange=U[0],R=U[1],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,I.default)(se,this.lastRange)){var ue;!this.composing&&null!=R&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var _e,pe=[T.default.events.SELECTION_CHANGE,(0,O.default)(this.lastRange),(0,O.default)(se),Q];(ue=this.emitter).emit.apply(ue,[T.default.events.EDITOR_CHANGE].concat(pe)),Q!==T.default.sources.SILENT&&(_e=this.emitter).emit.apply(_e,pe)}}}]),ne}();function B(ne,Y){return Y instanceof Text&&(Y=Y.parentNode),ne.contains(Y)}z.Range=$,z.default=ee},function(xe,z){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var L=function(){function Z(F,N){for(var O=0;O0)||_e instanceof I.BlockEmbed||ie instanceof I.BlockEmbed||(ie instanceof w.default&&ie.deleteAt(ie.length()-1,1),_e.moveChildren(ie,ie.children.head instanceof C.default?null:ie.children.head),_e.remove()),this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(X,U,ue,pe){null!=this.whitelist&&!this.whitelist[ue]||(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,X,U,ue,pe),this.optimize())}},{key:"insertAt",value:function(X,U,ue){if(null==ue||null==this.whitelist||this.whitelist[U]){if(X>=this.length())if(null==ue||null==N.default.query(U,N.default.Scope.BLOCK)){var pe=N.default.create(this.statics.defaultChild);this.appendChild(pe),null==ue&&U.endsWith("\n")&&(U=U.slice(0,-1)),pe.insertAt(0,U,ue)}else{var _e=N.default.create(U,ue);this.appendChild(_e)}else Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,X,U,ue);this.optimize()}}},{key:"insertBefore",value:function(X,U){if(X.statics.scope===N.default.Scope.INLINE_BLOT){var ue=N.default.create(this.statics.defaultChild);ue.appendChild(X),X=ue}Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,X,U)}},{key:"leaf",value:function(X){return this.path(X).pop()||[null,-1]}},{key:"line",value:function(X){return X===this.length()?this.line(X-1):this.descendant(ne,X)}},{key:"lines",value:function(){return function pe(_e,he,de){var ce=[],ie=de;return _e.children.forEachAt(he,de,function(J,oe,Ie){ne(J)?ce.push(J):J instanceof N.default.Container&&(ce=ce.concat(pe(J,oe,ie))),ie-=Ie}),ce}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var X=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!0!==this.batch&&(Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,X),X.length>0&&this.emitter.emit(S.default.events.SCROLL_OPTIMIZE,X))}},{key:"path",value:function(X){return Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,X).slice(1)}},{key:"update",value:function(X){if(!0!==this.batch){var U=S.default.sources.USER;"string"==typeof X&&(U=X),Array.isArray(X)||(X=this.observer.takeRecords()),X.length>0&&this.emitter.emit(S.default.events.SCROLL_BEFORE_UPDATE,U,X),Z(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,X.concat([])),X.length>0&&this.emitter.emit(S.default.events.SCROLL_UPDATE,U,X)}}}]),R}(N.default.Scroll);Y.blotName="scroll",Y.className="ql-editor",Y.tagName="DIV",Y.defaultChild="block",Y.allowedChildren=[v.default,I.BlockEmbed,y.default],z.default=Y},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.matchText=z.matchSpacing=z.matchNewline=z.matchBlot=z.matchAttributor=z.default=void 0;var ae=function(Re,Je){if(Array.isArray(Re))return Re;if(Symbol.iterator in Object(Re))return function Fe(Re,Je){var rt=[],ot=!0,Dt=!1,Xt=void 0;try{for(var ni,rn=Re[Symbol.iterator]();!(ot=(ni=rn.next()).done)&&(rt.push(ni.value),!Je||rt.length!==Je);ot=!0);}catch(Jo){Dt=!0,Xt=Jo}finally{try{!ot&&rn.return&&rn.return()}finally{if(Dt)throw Xt}}return rt}(Re,Je);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function Fe(Re,Je){for(var rt=0;rt0&&(Re=Re.compose((new F.default).retain(Re.length(),Je))),parseFloat(rt.textIndent||0)>0&&(Re=(new F.default).insert("\t").concat(Re)),Re}],["b",oe.bind(oe,"bold")],["i",oe.bind(oe,"italic")],["style",function Be(){return new F.default}]],pe=[y.AlignAttribute,M.DirectionAttribute].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),_e=[y.AlignStyle,D.BackgroundStyle,w.ColorStyle,M.DirectionStyle,$.FontStyle,ee.SizeStyle].reduce(function(Fe,Re){return Fe[Re.keyName]=Re,Fe},{}),he=function(Fe){function Re(Je,rt){!function Q(Fe,Re){if(!(Fe instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Re);var ot=function R(Fe,Re){if(!Fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Re||"object"!=typeof Re&&"function"!=typeof Re?Fe:Re}(this,(Re.__proto__||Object.getPrototypeOf(Re)).call(this,Je,rt));return ot.quill.root.addEventListener("paste",ot.onPaste.bind(ot)),ot.container=ot.quill.addContainer("ql-clipboard"),ot.container.setAttribute("contenteditable",!0),ot.container.setAttribute("tabindex",-1),ot.matchers=[],ue.concat(ot.options.matchers).forEach(function(Dt){ot.addMatcher.apply(ot,function Y(Fe){if(Array.isArray(Fe)){for(var Re=0,Je=Array(Fe.length);Re2&&void 0!==arguments[2]?arguments[2]:I.default.sources.API;if("string"==typeof rt)return this.quill.setContents(this.convert(rt),ot);var Xt=this.convert(ot);return this.quill.updateContents((new F.default).retain(rt).concat(Xt),Dt)}},{key:"onPaste",value:function(rt){var ot=this;if(!rt.defaultPrevented&&this.quill.isEnabled()){var Dt=this.quill.getSelection(),Xt=(new F.default).retain(Dt.index),rn=this.quill.scrollingContainer.scrollTop;this.container.focus(),setTimeout(function(){ot.quill.selection.update(I.default.sources.SILENT),Xt=Xt.concat(ot.convert()).delete(Dt.length),ot.quill.updateContents(Xt,I.default.sources.USER),ot.quill.setSelection(Xt.length()-Dt.length,I.default.sources.SILENT),ot.quill.scrollingContainer.scrollTop=rn,ot.quill.selection.scrollIntoView()},1)}}},{key:"prepareMatching",value:function(){var rt=this,ot=[],Dt=[];return this.matchers.forEach(function(Xt){var rn=ae(Xt,2),ni=rn[0],Jo=rn[1];switch(ni){case Node.TEXT_NODE:Dt.push(Jo);break;case Node.ELEMENT_NODE:ot.push(Jo);break;default:[].forEach.call(rt.container.querySelectorAll(ni),function(an){an[U]=an[U]||[],an[U].push(Jo)})}}),[ot,Dt]}}]),Re}(k.default);function de(Fe){if(Fe.nodeType!==Node.ELEMENT_NODE)return{};var Re="__ql-computed-style";return Fe[Re]||(Fe[Re]=window.getComputedStyle(Fe))}function ce(Fe,Re){for(var Je="",rt=Fe.ops.length-1;rt>=0&&Je.length-1}function J(Fe,Re,Je){return Fe.nodeType===Fe.TEXT_NODE?Je.reduce(function(rt,ot){return ot(Fe,rt)},new F.default):Fe.nodeType===Fe.ELEMENT_NODE?[].reduce.call(Fe.childNodes||[],function(rt,ot){var Dt=J(ot,Re,Je);return ot.nodeType===Fe.ELEMENT_NODE&&(Dt=Re.reduce(function(Xt,rn){return rn(ot,Xt)},Dt),Dt=(ot[U]||[]).reduce(function(Xt,rn){return rn(ot,Xt)},Dt)),rt.concat(Dt)},new F.default):new F.default}function oe(Fe,Re,Je){return Je.compose((new F.default).retain(Je.length(),ne({},Fe,!0)))}function Ie(Fe,Re){var Je=O.default.Attributor.Attribute.keys(Fe),rt=O.default.Attributor.Class.keys(Fe),ot=O.default.Attributor.Style.keys(Fe),Dt={};return Je.concat(rt).concat(ot).forEach(function(Xt){var rn=O.default.query(Xt,O.default.Scope.ATTRIBUTE);null!=rn&&(Dt[rn.attrName]=rn.value(Fe),Dt[rn.attrName])||(null!=pe[Xt]&&(Dt[(rn=pe[Xt]).attrName]=rn.value(Fe)),null!=_e[Xt]&&(Dt[(rn=_e[Xt]).attrName]=rn.value(Fe)))}),Object.keys(Dt).length>0&&(Re=Re.compose((new F.default).retain(Re.length(),Dt))),Re}function re(Fe,Re){var Je=O.default.query(Fe);if(null==Je)return Re;if(Je.prototype instanceof O.default.Embed){var rt={},ot=Je.value(Fe);null!=ot&&(rt[Je.blotName]=ot,Re=(new F.default).insert(rt,Je.formats(Fe)))}else if("function"==typeof Je.formats){var Dt=ne({},Je.blotName,Je.formats(Fe));Re=Re.compose((new F.default).retain(Re.length(),Dt))}return Re}function Me(Fe,Re){return ie(Fe)&&!ce(Re,"\n")&&Re.insert("\n"),Re}function Ue(Fe,Re){if(ie(Fe)&&null!=Fe.nextElementSibling&&!ce(Re,"\n\n")){var Je=Fe.offsetHeight+parseFloat(de(Fe).marginTop)+parseFloat(de(Fe).marginBottom);Fe.nextElementSibling.offsetTop>Fe.offsetTop+1.5*Je&&Re.insert("\n")}return Re}function at(Fe,Re){var Je=Fe.data;if("O:P"===Fe.parentNode.tagName)return Re.insert(Je.trim());if(!de(Fe.parentNode).whiteSpace.startsWith("pre")){var rt=function(Dt,Xt){return(Xt=Xt.replace(/[^\u00a0]/g,"")).length<1&&Dt?" ":Xt};Je=(Je=Je.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,rt.bind(rt,!0)),(null==Fe.previousSibling&&ie(Fe.parentNode)||null!=Fe.previousSibling&&ie(Fe.previousSibling))&&(Je=Je.replace(/^\s+/,rt.bind(rt,!1))),(null==Fe.nextSibling&&ie(Fe.parentNode)||null!=Fe.nextSibling&&ie(Fe.nextSibling))&&(Je=Je.replace(/\s+$/,rt.bind(rt,!1)))}return Re.insert(Je)}he.DEFAULTS={matchers:[]},z.default=he,z.matchAttributor=Ie,z.matchBlot=re,z.matchNewline=Me,z.matchSpacing=Ue,z.matchText=at},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.AlignStyle=z.AlignClass=z.AlignAttribute=void 0;var H=function Z(I){return I&&I.__esModule?I:{default:I}}(L(2));var F={scope:H.default.Scope.BLOCK,whitelist:["right","center","justify"]},N=new H.default.Attributor.Attribute("align","align",F),O=new H.default.Attributor.Class("align","ql-align",F),S=new H.default.Attributor.Style("align","text-align",F);z.AlignAttribute=N,z.AlignClass=O,z.AlignStyle=S},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.BackgroundStyle=z.BackgroundClass=void 0;var H=function F(S){return S&&S.__esModule?S:{default:S}}(L(2)),Z=L(47);var N=new H.default.Attributor.Class("background","ql-bg",{scope:H.default.Scope.INLINE}),O=new Z.ColorAttributor("background","background-color",{scope:H.default.Scope.INLINE});z.BackgroundClass=N,z.BackgroundStyle=O},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.ColorStyle=z.ColorClass=z.ColorAttributor=void 0;var ae=function(){function k(y,D){for(var w=0;wY&&this.stack.undo.length>0){var Q=this.stack.undo.pop();ne=ne.compose(Q.undo),ee=Q.redo.compose(ee)}else this.lastRecorded=Y;this.stack.undo.push({redo:ee,undo:ne}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ee){this.stack.undo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)}),this.stack.redo.forEach(function(B){B.undo=ee.transform(B.undo,!0),B.redo=ee.transform(B.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),M}(I(L(39)).default);function D(w){var M=w.reduce(function(ee,B){return ee+(B.delete||0)},0),$=w.length()-M;return function y(w){var M=w.ops[w.ops.length-1];return null!=M&&(null!=M.insert?"string"==typeof M.insert&&M.insert.endsWith("\n"):null!=M.attributes&&Object.keys(M.attributes).some(function($){return null!=Z.default.query($,Z.default.Scope.BLOCK)}))}(w)&&($-=1),$}k.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},z.default=k,z.getLastChangeIndex=D},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},H=function(oe,Ie){if(Array.isArray(oe))return oe;if(Symbol.iterator in Object(oe))return function J(oe,Ie){var re=[],ye=!0,Be=!1,Me=void 0;try{for(var Bn,Ue=oe[Symbol.iterator]();!(ye=(Bn=Ue.next()).done)&&(re.push(Bn.value),!Ie||re.length!==Ie);ye=!0);}catch(at){Be=!0,Me=at}finally{try{!ye&&Ue.return&&Ue.return()}finally{if(Be)throw Me}}return re}(oe,Ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Z=function(){function J(oe,Ie){for(var re=0;re1&&void 0!==arguments[1]?arguments[1]:{},Be=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Me=ie(re);if(null==Me||null==Me.key)return se.warn("Attempted to add invalid keyboard binding",Me);"function"==typeof ye&&(ye={handler:ye}),"function"==typeof Be&&(Be={handler:Be}),Me=(0,v.default)(Me,ye,Be),this.bindings[Me.key]=this.bindings[Me.key]||[],this.bindings[Me.key].push(Me)}},{key:"listen",value:function(){var re=this;this.quill.root.addEventListener("keydown",function(ye){if(!ye.defaultPrevented){var Me=(re.bindings[ye.which||ye.keyCode]||[]).filter(function(jn){return oe.match(ye,jn)});if(0!==Me.length){var Ue=re.quill.getSelection();if(null!=Ue&&re.quill.hasFocus()){var Bn=re.quill.scroll.line(Ue.index),at=H(Bn,2),Fe=at[0],Re=at[1],Je=re.quill.scroll.leaf(Ue.index),rt=H(Je,2),ot=rt[0],Dt=rt[1],Xt=0===Ue.length?[ot,Dt]:re.quill.scroll.leaf(Ue.index+Ue.length),rn=H(Xt,2),ni=rn[0],Jo=rn[1],an=ot instanceof y.default.Text?ot.value().slice(0,Dt):"",As=ni instanceof y.default.Text?ni.value().slice(Jo):"",bo={collapsed:0===Ue.length,empty:0===Ue.length&&Fe.length()<=1,format:re.quill.getFormat(Ue),offset:Re,prefix:an,suffix:As};Me.some(function(jn){if(null!=jn.collapsed&&jn.collapsed!==bo.collapsed||null!=jn.empty&&jn.empty!==bo.empty||null!=jn.offset&&jn.offset!==bo.offset)return!1;if(Array.isArray(jn.format)){if(jn.format.every(function(yo){return null==bo.format[yo]}))return!1}else if("object"===ae(jn.format)&&!Object.keys(jn.format).every(function(yo){return!0===jn.format[yo]?null!=bo.format[yo]:!1===jn.format[yo]?null==bo.format[yo]:(0,S.default)(jn.format[yo],bo.format[yo])}))return!1;return!(null!=jn.prefix&&!jn.prefix.test(bo.prefix)||null!=jn.suffix&&!jn.suffix.test(bo.suffix))&&!0!==jn.handler.call(re,Ue,bo)})&&ye.preventDefault()}}}})}}]),oe}(B.default);function ue(J,oe){if(0!==J.index){var Ie=this.quill.scroll.line(J.index),re=H(Ie,1),Be={};if(0===oe.offset){var Me=re[0].formats(),Ue=this.quill.getFormat(J.index-1,1);Be=C.default.attributes.diff(Me,Ue)||{}}this.quill.deleteText(J.index-1,1,w.default.sources.USER),Object.keys(Be).length>0&&this.quill.formatLine(J.index-1,1,Be,w.default.sources.USER),this.quill.selection.scrollIntoView()}}function pe(J){J.index>=this.quill.getLength()-1||this.quill.deleteText(J.index,1,w.default.sources.USER)}function _e(J){this.quill.deleteText(J,w.default.sources.USER),this.quill.setSelection(J.index,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}function he(J,oe){var Ie=this;J.length>0&&this.quill.scroll.deleteAt(J.index,J.length);var re=Object.keys(oe.format).reduce(function(ye,Be){return y.default.query(Be,y.default.Scope.BLOCK)&&!Array.isArray(oe.format[Be])&&(ye[Be]=oe.format[Be]),ye},{});this.quill.insertText(J.index,"\n",re,w.default.sources.USER),this.quill.selection.scrollIntoView(),Object.keys(oe.format).forEach(function(ye){null==re[ye]&&(Array.isArray(oe.format[ye])||"link"!==ye&&Ie.quill.format(ye,oe.format[ye],w.default.sources.USER))})}function de(J){return{key:U.keys.TAB,shiftKey:!J,format:{"code-block":!0},handler:function(Ie){var re=y.default.query("code-block"),ye=Ie.index,Be=Ie.length,Me=this.quill.scroll.descendant(re,ye),Ue=H(Me,2),Bn=Ue[0],at=Ue[1];if(null!=Bn){var Fe=this.quill.scroll.offset(Bn),Re=Bn.newlineIndex(at,!0)+1,Je=Bn.newlineIndex(Fe+at+Be),rt=Bn.domNode.textContent.slice(Re,Je).split("\n");at=0,rt.forEach(function(ot,Dt){J?(Bn.insertAt(Re+at,re.TAB),at+=re.TAB.length,0===Dt?ye+=re.TAB.length:Be+=re.TAB.length):ot.startsWith(re.TAB)&&(Bn.deleteAt(Re+at,re.TAB.length),at-=re.TAB.length,0===Dt?ye-=re.TAB.length:Be-=re.TAB.length),at+=ot.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(ye,Be,w.default.sources.SILENT)}}}}function ce(J){return{key:J[0].toUpperCase(),shortKey:!0,handler:function(Ie,re){this.quill.format(J,!re.format[J],w.default.sources.USER)}}}function ie(J){if("string"==typeof J||"number"==typeof J)return ie({key:J});if("object"===(typeof J>"u"?"undefined":ae(J))&&(J=(0,N.default)(J,!1)),"string"==typeof J.key)if(null!=U.keys[J.key.toUpperCase()])J.key=U.keys[J.key.toUpperCase()];else{if(1!==J.key.length)return null;J.key=J.key.toUpperCase().charCodeAt(0)}return J}U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:ce("bold"),italic:ce("italic"),underline:ce("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(oe,Ie){if(Ie.collapsed&&0!==Ie.offset)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,format:["blockquote","indent","list"],offset:0,handler:function(oe,Ie){null!=Ie.format.indent?this.quill.format("indent","-1",w.default.sources.USER):null!=Ie.format.blockquote?this.quill.format("blockquote",!1,w.default.sources.USER):null!=Ie.format.list&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":de(!0),"outdent code-block":de(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(oe){this.quill.deleteText(oe.index-1,1,w.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(oe,Ie){Ie.collapsed||this.quill.scroll.deleteAt(oe.index,oe.length),this.quill.insertText(oe.index,"\t",w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(oe,Ie){this.quill.format("list",!1,w.default.sources.USER),Ie.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n");var Ie=this.quill.scroll.line(oe.index+1);H(Ie,1)[0].format("list","unchecked"),this.quill.update(w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(oe){this.quill.scroll.insertAt(oe.index,"\n"),this.quill.formatText(oe.index+1,1,"header",!1,w.default.sources.USER),this.quill.setSelection(oe.index+1,w.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^(1\.|-)$/,handler:function(oe,Ie){var re=Ie.prefix.length;this.quill.scroll.deleteAt(oe.index-re,re),this.quill.formatLine(oe.index-re,1,"list",1===re?"bullet":"ordered",w.default.sources.USER),this.quill.setSelection(oe.index-re,w.default.sources.SILENT)}}}},z.default=U},function(xe,z,L){"use strict";var H=an(L(1)),Z=L(45),F=L(48),N=L(54),S=an(L(55)),v=an(L(56)),T=L(57),C=an(T),k=L(46),y=L(47),D=L(49),w=L(50),$=an(L(58)),B=an(L(59)),Y=an(L(60)),R=an(L(61)),X=an(L(62)),ue=an(L(63)),_e=an(L(64)),de=an(L(65)),ce=L(28),ie=an(ce),oe=an(L(66)),re=an(L(67)),Be=an(L(68)),Ue=an(L(69)),at=an(L(102)),Re=an(L(104)),rt=an(L(105)),Dt=an(L(106)),rn=an(L(107)),Jo=an(L(109));function an(As){return As&&As.__esModule?As:{default:As}}H.default.register({"attributors/attribute/direction":F.DirectionAttribute,"attributors/class/align":Z.AlignClass,"attributors/class/background":k.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":F.DirectionClass,"attributors/class/font":D.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":Z.AlignStyle,"attributors/style/background":k.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":F.DirectionStyle,"attributors/style/font":D.FontStyle,"attributors/style/size":w.SizeStyle},!0),H.default.register({"formats/align":Z.AlignClass,"formats/direction":F.DirectionClass,"formats/indent":N.IndentClass,"formats/background":k.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":D.FontClass,"formats/size":w.SizeClass,"formats/blockquote":S.default,"formats/code-block":ie.default,"formats/header":v.default,"formats/list":C.default,"formats/bold":$.default,"formats/code":ce.Code,"formats/italic":B.default,"formats/link":Y.default,"formats/script":R.default,"formats/strike":X.default,"formats/underline":ue.default,"formats/image":_e.default,"formats/video":de.default,"formats/list/item":T.ListItem,"modules/formula":oe.default,"modules/syntax":re.default,"modules/toolbar":Be.default,"themes/bubble":rn.default,"themes/snow":Jo.default,"ui/icons":Ue.default,"ui/picker":at.default,"ui/icon-picker":rt.default,"ui/color-picker":Re.default,"ui/tooltip":Dt.default},!0),xe.exports=H.default},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.IndentClass=void 0;var ae=function(){function C(k,y){for(var D=0;D0&&this.children.tail.format(B,ne)}},{key:"formats",value:function(){return function T(M,$,ee){return $ in M?Object.defineProperty(M,$,{value:ee,enumerable:!0,configurable:!0,writable:!0}):M[$]=ee,M}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(B,ne){if(B instanceof D)H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"insertBefore",this).call(this,B,ne);else{var Y=null==ne?this.length():ne.offset(this),Q=this.split(Y);Q.parent.insertBefore(B,Q)}}},{key:"optimize",value:function(){H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"optimize",this).call(this);var B=this.next;null!=B&&B.prev===this&&B.statics.blotName===this.statics.blotName&&B.domNode.tagName===this.domNode.tagName&&B.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(B.moveChildren(this),B.remove())}},{key:"replace",value:function(B){if(B.statics.blotName!==this.statics.blotName){var ne=F.default.create(this.statics.defaultChild);B.moveChildren(ne),this.appendChild(ne)}H($.prototype.__proto__||Object.getPrototypeOf($.prototype),"replace",this).call(this,B)}}],[{key:"create",value:function(B){var ne="ordered"===B?"OL":"UL",Y=H($.__proto__||Object.getPrototypeOf($),"create",this).call(this,ne);return("checked"===B||"unchecked"===B)&&Y.setAttribute("data-checked","checked"===B),Y}},{key:"formats",value:function(B){return"OL"===B.tagName?"ordered":"UL"===B.tagName?B.hasAttribute("data-checked")?"true"===B.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),$}(I.default);w.blotName="list",w.scope=F.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[D],z.ListItem=D,z.default=w},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1}v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",z.default=v,z.sanitize=T},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return"string"==typeof w&&M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,N.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(F.default);C.blotName="image",C.tagName="IMG",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function k(y,D){for(var w=0;w-1?M?this.domNode.setAttribute(w,M):this.domNode.removeAttribute(w):H(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,M)}}],[{key:"create",value:function(w){var M=H(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return M.setAttribute("frameborder","0"),M.setAttribute("allowfullscreen",!0),M.setAttribute("src",this.sanitize(w)),M}},{key:"formats",value:function(w){return T.reduce(function(M,$){return w.hasAttribute($)&&(M[$]=w.getAttribute($)),M},{})}},{key:"sanitize",value:function(w){return N.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y}(Z.BlockEmbed);C.blotName="video",C.className="ql-video",C.tagName="IFRAME",z.default=C},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.FormulaBlot=void 0;var ae=function(){function y(D,w){for(var M=0;M0||null==this.cachedHTML)&&(this.domNode.innerHTML=Y(Q),this.attach()),this.cachedHTML=this.domNode.innerHTML}}}]),B}(C(L(28)).default);w.className="ql-syntax";var M=new F.default.Attributor.Class("token","hljs",{scope:F.default.Scope.INLINE}),$=function(ee){function B(ne,Y){k(this,B);var Q=y(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,ne,Y));if("function"!=typeof Q.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");O.default.register(M,!0),O.default.register(w,!0);var R=null;return Q.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){null==R&&(R=setTimeout(function(){Q.highlight(),R=null},100))}),Q.highlight(),Q}return D(B,ee),ae(B,[{key:"highlight",value:function(){var Y=this;if(!this.quill.selection.composing){var Q=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(R){R.highlight(Y.options.highlight)}),this.quill.update(O.default.sources.SILENT),null!=Q&&this.quill.setSelection(Q,O.default.sources.SILENT)}}}]),B}(I.default);$.DEFAULTS={highlight:null==window.hljs?null:function(ee){return window.hljs.highlightAuto(ee).value}},z.CodeBlock=w,z.CodeToken=M,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.addControls=z.default=void 0;var ae=function(se,X){if(Array.isArray(se))return se;if(Symbol.iterator in Object(se))return function R(se,X){var U=[],ue=!0,pe=!1,_e=void 0;try{for(var de,he=se[Symbol.iterator]();!(ue=(de=he.next()).done)&&(U.push(de.value),!X||U.length!==X);ue=!0);}catch(ce){pe=!0,_e=ce}finally{try{!ue&&he.return&&he.return()}finally{if(pe)throw _e}}return U}(se,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function(){function R(se,X){for(var U=0;U '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},H=function(){function I(v,T){for(var C=0;C1&&void 0!==arguments[1]&&arguments[1],k=this.container.querySelector(".ql-selected");if(T!==k&&(k?.classList.remove("ql-selected"),null!=T&&(T.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(T.parentNode.children,T),T.hasAttribute("data-value")?this.label.setAttribute("data-value",T.getAttribute("data-value")):this.label.removeAttribute("data-value"),T.hasAttribute("data-label")?this.label.setAttribute("data-label",T.getAttribute("data-label")):this.label.removeAttribute("data-label"),C))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":ae(Event))){var y=document.createEvent("Event");y.initEvent("change",!0,!0),this.select.dispatchEvent(y)}this.close()}}},{key:"update",value:function(){var T=void 0;if(this.select.selectedIndex>-1){var C=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];T=this.select.options[this.select.selectedIndex],this.selectItem(C)}else this.selectItem(null);var k=null!=T&&T!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",k)}}]),I}();z.default=S},function(xe,z){xe.exports=' '},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(){function T(C,k){for(var y=0;y=this.quill.root.offsetHeight)}},{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(N){var O=N.left+N.width/2-this.root.offsetWidth/2,S=N.bottom+this.quill.root.scrollTop;this.root.style.left=O+"px",this.root.style.top=S+"px";var I=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),T=0;return v.right>I.right&&(this.root.style.left=O+(T=I.right-v.right)+"px"),v.left0){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var U=R.quill.scroll.lines(X.index,X.length);if(1===U.length)R.position(R.quill.getBounds(X));else{var ue=U[U.length-1],pe=ue.offset(R.quill.scroll),_e=Math.min(ue.length()-1,X.index+X.length-pe),he=R.quill.getBounds(new v.Range(pe,_e));R.position(he)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return w(ne,B),H(ne,[{key:"listen",value:function(){var Q=this;ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Q.root.classList.remove("ql-editing")}),this.quill.on(O.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Q.root.classList.contains("ql-hidden")){var R=Q.quill.getSelection();null!=R&&Q.position(Q.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Q){var R=ae(ne.prototype.__proto__||Object.getPrototypeOf(ne.prototype),"position",this).call(this,Q),se=this.root.querySelector(".ql-tooltip-arrow");if(se.style.marginLeft="",0===R)return R;se.style.marginLeft=-1*R-se.offsetWidth/2+"px"}}]),ne}(S.BaseTooltip);ee.TEMPLATE=['','
','','',"
"].join(""),z.BubbleTooltip=ee,z.default=$},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=z.BaseTooltip=void 0;var ae=function(){function ie(J,oe){for(var Ie=0;Ie0&&void 0!==arguments[0]?arguments[0]:"link",re=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=re?this.textbox.value=re:Ie!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Ie)||""),this.root.setAttribute("data-mode",Ie)}},{key:"restoreFocus",value:function(){var Ie=this.quill.root.scrollTop;this.quill.focus(),this.quill.root.scrollTop=Ie}},{key:"save",value:function(){var Ie=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var re=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Ie,I.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Ie,I.default.sources.USER)),this.quill.root.scrollTop=re;break;case"video":var ye=Ie.match(/^(https?):\/\/(www\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Ie.match(/^(https?):\/\/(www\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);ye?Ie=ye[1]+"://www.youtube.com/embed/"+ye[3]+"?showinfo=0":(ye=Ie.match(/^(https?):\/\/(www\.)?vimeo\.com\/(\d+)/))&&(Ie=ye[1]+"://player.vimeo.com/video/"+ye[3]+"/");case"formula":var Be=this.quill.getSelection(!0),Me=Be.index+Be.length;null!=Be&&(this.quill.insertEmbed(Me,this.root.getAttribute("data-mode"),Ie,I.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Me+1," ",I.default.sources.USER),this.quill.setSelection(Me+2,I.default.sources.USER))}this.textbox.value="",this.hide()}}]),J}(ne.default);function ce(ie,J){var oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];J.forEach(function(Ie){var re=document.createElement("option");Ie===oe?re.setAttribute("selected","selected"):re.setAttribute("value",Ie),ie.appendChild(re)})}z.BaseTooltip=de,z.default=he},function(xe,z,L){"use strict";Object.defineProperty(z,"__esModule",{value:!0});var ae=function(R,se){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function Q(R,se){var X=[],U=!0,ue=!1,pe=void 0;try{for(var he,_e=R[Symbol.iterator]();!(U=(he=_e.next()).done)&&(X.push(he.value),!se||X.length!==se);U=!0);}catch(de){ue=!0,pe=de}finally{try{!U&&_e.return&&_e.return()}finally{if(ue)throw pe}}return X}(R,se);throw new TypeError("Invalid attempt to destructure non-iterable instance")},H=function Q(R,se,X){null===R&&(R=Function.prototype);var U=Object.getOwnPropertyDescriptor(R,se);if(void 0===U){var ue=Object.getPrototypeOf(R);return null===ue?void 0:Q(ue,se,X)}if("value"in U)return U.value;var pe=U.get;return void 0===pe?void 0:pe.call(X)},Z=function(){function Q(R,se){for(var X=0;X','','',''].join(""),z.default=ne}])}},tc=>{tc(tc.s=5544)}]); \ No newline at end of file From 4f7eba1731a2a325e5233a351949a628b1e08710 Mon Sep 17 00:00:00 2001 From: Ravi Kumar_1 Date: Tue, 30 Apr 2024 12:26:06 +0530 Subject: [PATCH 06/86] fixing source app name and user for cli execution --- Ginger/GingerCoreNET/RunLib/CLILib/CLIHelper.cs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Ginger/GingerCoreNET/RunLib/CLILib/CLIHelper.cs b/Ginger/GingerCoreNET/RunLib/CLILib/CLIHelper.cs index 76a4887edb..773379ea74 100644 --- a/Ginger/GingerCoreNET/RunLib/CLILib/CLIHelper.cs +++ b/Ginger/GingerCoreNET/RunLib/CLILib/CLIHelper.cs @@ -870,18 +870,22 @@ internal void SetSealightsTestRecommendations(bool? value) } } + /// + /// Sets the source application and user in the RunSetConfig object. + /// If the SourceApplication property is empty, it sets it to "Ginger CLI". + /// If the SourceApplicationUser property is empty, it sets it to the current user's username. + /// internal void SetSourceAppAndUser() { - if (string.IsNullOrEmpty(this.SourceApplication)) + if (string.IsNullOrEmpty(mRunSetConfig.SourceApplication)) { - this.SourceApplication = "Ginger CLI"; + mRunSetConfig.SourceApplication = string.IsNullOrEmpty(this.SourceApplication) ? "Ginger CLI" : this.SourceApplication; } - if (string.IsNullOrEmpty(this.SourceApplicationUser)) + if (string.IsNullOrEmpty(mRunSetConfig.SourceApplicationUser)) { - this.SourceApplicationUser = System.Environment.UserName; + mRunSetConfig.SourceApplicationUser = string.IsNullOrEmpty(this.SourceApplicationUser) ? System.Environment.UserName : this.SourceApplicationUser; } - mRunSetConfig.SourceApplication = this.SourceApplication; - mRunSetConfig.SourceApplicationUser = this.SourceApplicationUser; } + } } From a1ccb4565c6a38f7f3c3e25d56d369bb65a683b7 Mon Sep 17 00:00:00 2001 From: Harsimranjeet Singh Date: Tue, 30 Apr 2024 15:24:21 +0530 Subject: [PATCH 07/86] Bug: If the solution name is different than the name of solution folder then, when we switch from one dirty runset to another, we don't get a popup to save the dirty runset before switching. RC: When we move from one runset to another, we check if the previous runset was the part of the same solution or not. To do this check we rely solution folder and solution name which can be different is some cases. Fix: Instead of relying on the solution folder and name, we can check if the current solution have a runset with the id of the previous runset or not. If yes then the previous runset was part of the current solution otherwise not. --- Ginger/Ginger/RunSetPageLib/NewRunSetPage.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ginger/Ginger/RunSetPageLib/NewRunSetPage.xaml.cs b/Ginger/Ginger/RunSetPageLib/NewRunSetPage.xaml.cs index c9b3460f6d..2dd0427b76 100644 --- a/Ginger/Ginger/RunSetPageLib/NewRunSetPage.xaml.cs +++ b/Ginger/Ginger/RunSetPageLib/NewRunSetPage.xaml.cs @@ -1646,7 +1646,8 @@ public async void LoadRunSetConfig(RunSetConfig runSetConfig, bool runAsync = tr //show current Run set UI xRunsetPageGrid.Visibility = Visibility.Visible; - bool isSolutionSame = mRunSetConfig != null && mRunSetConfig.ContainingFolderFullPath != null && mRunSetConfig.ContainingFolderFullPath.Contains(WorkSpace.Instance.Solution.FileName); + bool isSolutionSame = + mRunSetConfig != null && WorkSpace.Instance.SolutionRepository.GetRepositoryItemByGuid(mRunSetConfig.Guid) != null; bool bIsRunsetDirty = mRunSetConfig != null && mRunSetConfig.DirtyStatus == eDirtyStatus.Modified && isSolutionSame; if (WorkSpace.Instance.RunsetExecutor.DefectSuggestionsList != null) { From e6221ccbfbbf811ac9ca40a7bdc64e2548f6f63f Mon Sep 17 00:00:00 2001 From: Harsimranjeet Singh Date: Tue, 30 Apr 2024 15:51:55 +0530 Subject: [PATCH 08/86] Bug: When making changes to shared repository activity from automate page, getting errors logged while saving. RC: We concurrently update all instances of a linked activity. These errors are due to concurrency. Fix: Use multi-threading appropriate code in these areas. --- .../UserControlsLib/UCListView/UcListView.xaml.cs | 10 +++++++++- .../Repository/BusinessFlowLib/Activity.cs | 5 ++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Ginger/Ginger/UserControlsLib/UCListView/UcListView.xaml.cs b/Ginger/Ginger/UserControlsLib/UCListView/UcListView.xaml.cs index c2c60d43df..6d35211ff8 100644 --- a/Ginger/Ginger/UserControlsLib/UCListView/UcListView.xaml.cs +++ b/Ginger/Ginger/UserControlsLib/UCListView/UcListView.xaml.cs @@ -31,6 +31,7 @@ limitations under the License. using System.Collections.Specialized; using System.ComponentModel; using System.Linq; +using System.Threading; using System.Threading.Tasks; using System.Windows; using System.Windows.Automation; @@ -191,7 +192,14 @@ public IObservableList DataSourceList filteredView.Filter = LVItemFilter; } - xListView.ItemsSource = mObjList; + if (Dispatcher.Thread == Thread.CurrentThread) + { + xListView.ItemsSource = mObjList; + } + else + { + Dispatcher.Invoke(() => xListView.ItemsSource = mObjList); + } if(value is ObservableList) { diff --git a/Ginger/GingerCoreCommon/Repository/BusinessFlowLib/Activity.cs b/Ginger/GingerCoreCommon/Repository/BusinessFlowLib/Activity.cs index 75638029a2..f5864692ab 100644 --- a/Ginger/GingerCoreCommon/Repository/BusinessFlowLib/Activity.cs +++ b/Ginger/GingerCoreCommon/Repository/BusinessFlowLib/Activity.cs @@ -894,9 +894,8 @@ public override void UpdateInstance(RepositoryItemBase instance, string partToUp if (hostItem != null) { //replace old instance object with new - int originalIndex = ((BusinessFlow)hostItem).Activities.IndexOf(activityInstance); - ((BusinessFlow)hostItem).Activities.Remove(activityInstance); - ((BusinessFlow)hostItem).Activities.Insert(originalIndex, newInstance); + int index = ((BusinessFlow)hostItem).Activities.IndexOf(activityInstance); + ((BusinessFlow)hostItem).Activities[index] = newInstance; } return; } From 327d9028ce227062dec58daf1224d211101b5cce Mon Sep 17 00:00:00 2001 From: mayurrat Date: Tue, 30 Apr 2024 16:18:52 +0530 Subject: [PATCH 09/86] API Model's Headers were not getting set when pulled in Business flow for execution or in View Raw Request --- .../ActionsLib/Webservices/ActWebAPIModel.cs | 1 + .../WebServicesDriver/HttpWebClientUtils.cs | 55 +++++++++++-------- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/Ginger/GingerCoreNET/ActionsLib/Webservices/ActWebAPIModel.cs b/Ginger/GingerCoreNET/ActionsLib/Webservices/ActWebAPIModel.cs index 7ae3bdda70..ebc467319f 100644 --- a/Ginger/GingerCoreNET/ActionsLib/Webservices/ActWebAPIModel.cs +++ b/Ginger/GingerCoreNET/ActionsLib/Webservices/ActWebAPIModel.cs @@ -215,6 +215,7 @@ private ObservableList ConvertAPIModelKeyValueToActInputValues(Ob { ActInputValue AIV = new ActInputValue(); AIV.Param = AMKV.Param; + AIV.Value = AMKV.Value; AIV.ValueForDriver = ReplacePlaceHolderParameneterWithActual(AMKV.Value, actWebAPIModel.APIModelParamsValue); GingerCoreHttpHeaders.Add(AIV); } diff --git a/Ginger/GingerCoreNET/Drivers/WebServicesDriver/HttpWebClientUtils.cs b/Ginger/GingerCoreNET/Drivers/WebServicesDriver/HttpWebClientUtils.cs index a4d6b3843d..1da00db882 100644 --- a/Ginger/GingerCoreNET/Drivers/WebServicesDriver/HttpWebClientUtils.cs +++ b/Ginger/GingerCoreNET/Drivers/WebServicesDriver/HttpWebClientUtils.cs @@ -122,37 +122,48 @@ private void SetAutoDecompression() private void AddHeadersToClient() { - //Add request headers - if (mAct.HttpHeaders.Any()) + string param = string.Empty; + try { - for (int i = 0; i < mAct.HttpHeaders.Count(); i++) + //Add request headers + if (mAct.HttpHeaders.Any()) { - - var specialCharactersReg = new Regex("^[a-zA-Z0-9 ]*$"); - string param = mAct.HttpHeaders[i].Param; - string value = mAct.HttpHeaders[i].ValueForDriver; - if (!string.IsNullOrEmpty(param)) + for (int i = 0; i < mAct.HttpHeaders.Count(); i++) { - if (param == "Content-Type") - { - ContentType = value; - } - else if (param.ToUpper() == "DATE") - { - Client.DefaultRequestHeaders.Date = System.DateTime.Parse(value); - } - else if (!specialCharactersReg.IsMatch(value)) - { - Client.DefaultRequestHeaders.TryAddWithoutValidation(param, value); - } - else + var specialCharactersReg = new Regex("^[a-zA-Z0-9 ]*$"); + param = mAct.HttpHeaders[i].Param; + string value = mAct.HttpHeaders[i].ValueForDriver; + if (!string.IsNullOrEmpty(param)) { - Client.DefaultRequestHeaders.Add(param, value); + if (param == "Content-Type") + { + ContentType = value; + } + else if (param.ToUpper() == "DATE") + { + + Client.DefaultRequestHeaders.Date = System.DateTime.Parse(value); + } + else if (!specialCharactersReg.IsMatch(value)) + { + Client.DefaultRequestHeaders.TryAddWithoutValidation(param, value); + } + else + { + Client.DefaultRequestHeaders.Add(param, value); + } } } } } + catch (Exception Ex) + { + if (Ex.Message.Equals("The format of value '' is invalid.")) + { + throw new Exception($"Value of '{param}' header is Null or Empty, please set some value to Header."); + } + } } private void SetProxySettings(string ProxySettings, bool useProxyServerSettings) From 8da8e26042194e723e8ff335f016f2c3db40de36 Mon Sep 17 00:00:00 2001 From: prashelke Date: Tue, 30 Apr 2024 17:22:10 +0530 Subject: [PATCH 10/86] D40129_D40130_D40131_CLI Orchestration Fix --- .../ActCLIOrchestrationEditPage.xaml | 27 ++++++++++------- .../ActCLIOrchestrationEditPage.xaml.cs | 30 +++++++++++++++++-- .../VisualTesting/VRTComparePage.xaml | 4 +-- .../VisualTesting/VRTComparePage.xaml.cs | 2 +- .../ActionsLib/ActCliOrchestration.cs | 15 +++++++++- 5 files changed, 60 insertions(+), 18 deletions(-) diff --git a/Ginger/Ginger/Actions/ActionEditPages/ActCLIOrchestrationEditPage.xaml b/Ginger/Ginger/Actions/ActionEditPages/ActCLIOrchestrationEditPage.xaml index 7fee52a96b..6dc5483cbf 100644 --- a/Ginger/Ginger/Actions/ActionEditPages/ActCLIOrchestrationEditPage.xaml +++ b/Ginger/Ginger/Actions/ActionEditPages/ActCLIOrchestrationEditPage.xaml @@ -5,6 +5,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:usercontrols="clr-namespace:Amdocs.Ginger.UserControls" mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800" Title="ActCliOrchestrationEditPage"> @@ -12,31 +13,35 @@ + + - + - - + + - - + + - - + + - - - + + + - diff --git a/Ginger/Ginger/Actions/ActionEditPages/ActCLIOrchestrationEditPage.xaml.cs b/Ginger/Ginger/Actions/ActionEditPages/ActCLIOrchestrationEditPage.xaml.cs index 5bd7407945..788816c269 100644 --- a/Ginger/Ginger/Actions/ActionEditPages/ActCLIOrchestrationEditPage.xaml.cs +++ b/Ginger/Ginger/Actions/ActionEditPages/ActCLIOrchestrationEditPage.xaml.cs @@ -18,6 +18,8 @@ limitations under the License. using amdocs.ginger.GingerCoreNET; using Amdocs.Ginger.Common; +using Ginger.Configurations; +using Ginger.ValidationRules; using GingerCore.Actions; using System.Windows; using System.Windows.Controls; @@ -63,8 +65,23 @@ public ActCLIOrchestrationEditPage(ActCLIOrchestration act) xPanelParseResult.Visibility = Visibility.Collapsed; xPanelDelimiter.Visibility = Visibility.Collapsed; } - - + ApplyValidationRules(); + + } + + private void ApplyValidationRules() + { + // check if fields have been populated (font-end validation) + FilePath.FilePathTextBox.AddValidationRule(new ValidateEmptyValue("Application/File path cannot be empty")); + xDelimiterTextBox.ValueTextBox.AddValidationRule(new ValidateEmptyValue("Delimiter cannot be empty")); + + CallPropertyChange(); + } + + private void CallPropertyChange() + { + mAct.OnPropertyChanged(nameof(mAct.FilePath)); + mAct.OnPropertyChanged(nameof(mAct.Delimiter)); } private void DelimiterTextBox_TextChanged(object sender, TextChangedEventArgs e) @@ -91,7 +108,14 @@ private void WaitForProcessToFinishChecked(object sender, RoutedEventArgs e) { mAct.WaitForProcessToFinish = true; xPanelParseResult.Visibility = Visibility.Visible; - xPanelDelimiter.Visibility = Visibility.Visible; + if (mAct.ParseResult) + { + xPanelDelimiter.Visibility = Visibility.Visible; + } + else + { + xPanelDelimiter.Visibility = Visibility.Collapsed; + } mAct.InvokPropertyChanngedForAllFields(); } diff --git a/Ginger/Ginger/Actions/ActionEditPages/VisualTesting/VRTComparePage.xaml b/Ginger/Ginger/Actions/ActionEditPages/VisualTesting/VRTComparePage.xaml index dac72e440b..0fe9b0830a 100644 --- a/Ginger/Ginger/Actions/ActionEditPages/VisualTesting/VRTComparePage.xaml +++ b/Ginger/Ginger/Actions/ActionEditPages/VisualTesting/VRTComparePage.xaml @@ -93,12 +93,12 @@